![]() |
AOSharedServiceLibrary
|
PropertiesReaderInterface. More...
#include <properties_reader_interface.h>
Public Member Functions | |
| virtual bool | opt_exist (std::string key)=0 |
| Does a key exist? | |
| virtual std::string | get_opt (std::string key)=0 |
| Get an option by key. | |
| virtual bool | list_exist (std::string key)=0 |
| Does a list exist within the configuration? | |
| virtual std::vector< std::string > | get_list (std::string key)=0 |
| Get a list that exists within the configuration. | |
Here we create a new interpreter by passing in a single argument, the address of a properties file. This file is opened and read, with properties in the form: property_name=property_value This also accepts lists in the form -list_name-list_value -list_name-list_value2
1.8.11