Rev 1619 | Rev 1646 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed
| Rev 1619 | Rev 1642 | ||
|---|---|---|---|
| Line 45... | Line 45... | ||
| 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<int>()->default_value(4), "Level of logging") |
46 | ("LogLevel", boost::program_options::value<int>()->default_value(4), "Level of logging") |
| 47 | ("ScriptPath", boost::program_options::value<std::string>(), "Path to where the scripts are") |
47 | ("ScriptPath", boost::program_options::value<std::string>(), "Path to where the scripts are") |
| 48 | ("StoragePath", boost::program_options::value<std::string>(), "Path to where the storage files are") |
48 | ("StoragePath", boost::program_options::value<std::string>(), "Path to where the storage files are") |
| 49 | ("ProtocolFile",boost::program_options::value<std::string>(), "File to read the protocol form") |
49 | ("ProtocolFile",boost::program_options::value<std::string>(), "File to read the protocol form") |
| 50 | ("CanNet", boost::program_options::value< |
50 | ("CanNet", boost::program_options::value<common::StringList>(), "Information on where to locate the CAN networks") |
| 51 | ("Legacy", "Start legacy VM environment"); |
51 | ("Legacy", "Start legacy VM environment"); |
| 52 | 52 | ||
| 53 | this->command_line_.add_options() |
53 | this->command_line_.add_options() |
| 54 | ("version,v", "print version string") |
54 | ("version,v", "print version string") |
| 55 | ("help,h", "produce help message") |
55 | ("help,h", "produce help message") |
| Line 147... | Line 147... | ||
| 147 | std::string Manager::GetAsString(std::string name) |
147 | std::string Manager::GetAsString(std::string name) |
| 148 | { |
148 | { |
| 149 | return this->variable_map_[name].as<std::string>(); |
149 | return this->variable_map_[name].as<std::string>(); |
| 150 | } |
150 | } |
| 151 | 151 | ||
| 152 |
|
152 | common::StringList Manager::GetAsStringVector(std::string name) |
| 153 | { |
153 | { |
| 154 | return this->variable_map_[name].as< |
154 | return this->variable_map_[name].as<common::StringList>(); |
| 155 | } |
155 | } |
| 156 | 156 | ||
| 157 | 157 | ||
| 158 | }; // namespace config |
158 | }; // namespace config |
| 159 | }; // namespace atom |
159 | }; // namespace atom |