Subversion Repositories HomeAutomation

Rev

Rev 1594 | Rev 1599 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 1594 Rev 1596
Line 44... Line 44...
44
    ("CommandPort", boost::program_options::value<int>()->default_value(1202), "TCP port to open for command input")
44
    ("CommandPort", boost::program_options::value<int>()->default_value(1202), "TCP port to open for command input")
45
    ("LogFile",     boost::program_options::value<std::string>(),              "File to log output to")
45
    ("LogFile",     boost::program_options::value<std::string>(),              "File to log output to")
46
    ("LogLevel",    boost::program_options::value<std::string>(),              "Level of logging")
46
    ("LogLevel",    boost::program_options::value<std::string>(),              "Level of logging")
47
    ("ScriptsPath", boost::program_options::value<std::string>(),              "Path to where the scripts")
47
    ("ScriptsPath", boost::program_options::value<std::string>(),              "Path to where the scripts")
48
    ("ProtocolFile",boost::program_options::value<std::string>(),              "File to read the protocol form")
48
    ("ProtocolFile",boost::program_options::value<std::string>(),              "File to read the protocol form")
49
    ("CanNet",      boost::program_options::value<std::vector<std::string> >(),"Information on where to locate the CAN networks");
49
    ("CanNet",      boost::program_options::value<type::StringList>(),         "Information on where to locate the CAN networks");
50
 
50
 
51
    this->command_line_.add_options()
51
    this->command_line_.add_options()
52
    ("version,v", "print version string")
52
    ("version,v", "print version string")
53
    ("help,h",    "produce help message")
53
    ("help,h",    "produce help message")
54
    ("daemon,d",  "start in daemon mode")
54
    ("daemon,d",  "start in daemon mode")
Line 140... Line 140...
140
std::string Manager::GetAsString(std::string name)
140
std::string Manager::GetAsString(std::string name)
141
{
141
{
142
    return this->variable_map_[name].as<std::string>();
142
    return this->variable_map_[name].as<std::string>();
143
}
143
}
144
 
144
 
145
std::vector<std::string> Manager::GetAsStringVector(std::string name)
145
type::StringList Manager::GetAsStringVector(std::string name)
146
{
146
{
147
    return this->variable_map_[name].as<std::vector<std::string> >();
147
    return this->variable_map_[name].as<type::StringList>();
148
}
148
}
149
 
149
 
150
 
150
 
151
}; // namespace config
151
}; // namespace config
152
}; // namespace atom
152
}; // namespace atom