47 const std::string ¶m_name,
48 std::string &value)
const
50 return iniFile.
find(object_name, param_name, value);
55 const std::string ¶m_name,
59 bool ret =
iniFile.
find(object_name, param_name, value);
72 const std::string &port_name,
97 if (return_paths && object_name !=
"root") {
98 for (
auto i = children.begin();
i != children.end(); ++
i)
99 *
i = object_name +
"." + *
i;
bool objectExists(const std::string &object_name) const
Does an object with this path exist?
bool getParamVector(const std::string &object_name, const std::string ¶m_name, std::vector< std::string > &values) const
Get a list/vector parameter.
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.
bool load(const std::string &filename)
Load config file.
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.
void getAllObjectNames(std::vector< std::string > &list) const
Get all SimObjects in the config.
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.
bool find(const std::string §ion, const std::string &entry, std::string &value) const
Find value corresponding to given section and entry names.
void getSectionNames(std::vector< std::string > &list) const
Push all section names into the given vector.
bool load(std::istream &f)
Load parameter settings from given istream.
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
Copyright (c) 2024 Arm Limited All rights reserved.
void tokenize(std::vector< std::string > &v, const std::string &s, char token, bool ignore)