46 const std::string ¶m_name,
47 std::string &value)
const
49 return iniFile.
find(object_name, param_name, value);
54 const std::string ¶m_name,
58 bool ret =
iniFile.
find(object_name, param_name, value);
71 const std::string &port_name,
96 if (return_paths && object_name !=
"root") {
97 for (
auto i = children.begin();
i != children.end(); ++
i)
98 *
i = object_name +
"." + *
i;
void getSectionNames(std::vector< std::string > &list) const
Push all section names into the given vector.
bool getParamVector(const std::string &object_name, const std::string ¶m_name, std::vector< std::string > &values) const
Get a list/vector parameter.
void getObjectChildren(const std::string &object_name, std::vector< std::string > &children, bool return_paths=false) const
Get the names or paths of all the children SimObjects of this SimObject.
bool find(const std::string §ion, const std::string &entry, std::string &value) const
Find value corresponding to given section and entry names.
bool load(std::istream &f)
Load parameter settings from given istream.
bool getParam(const std::string &object_name, const std::string ¶m_name, std::string &value) const
Get a single parameter value as a string returned in value.
void getAllObjectNames(std::vector< std::string > &list) const
Get all SimObjects in the config.
bool load(const std::string &filename)
Load config file.
void tokenize(vector< string > &v, const string &s, char token, bool ignore)
bool sectionExists(const std::string §ion) const
Determine whether the named section exists in the .ini file.
.ini file reading wrapper for use with CxxConfigManager
bool objectExists(const std::string &object_name) const
Does an object with this path exist?
bool getPortPeers(const std::string &object_name, const std::string &port_name, std::vector< std::string > &peers) const
Get the peer (connected) ports of the named ports.