gem5 v24.0.0.0
|
CxxConfigManager interface for using .ini files. More...
#include <cxx_config_ini.hh>
Public Member Functions | |
CxxIniFile () | |
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 | 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 | objectExists (const std::string &object_name) const |
Does an object with this path exist? | |
void | getAllObjectNames (std::vector< std::string > &list) const |
Get all SimObjects in the config. | |
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 | load (const std::string &filename) |
Load config file. | |
Public Member Functions inherited from gem5::CxxConfigFileBase | |
CxxConfigFileBase () | |
virtual | ~CxxConfigFileBase () |
virtual CxxConfigParams::Flags | getFlags () const |
Get the flags which should be used to modify parameter parsing behaviour. | |
Protected Attributes | |
IniFile | iniFile |
CxxConfigManager interface for using .ini files.
Definition at line 54 of file cxx_config_ini.hh.
|
inline |
Definition at line 60 of file cxx_config_ini.hh.
|
virtual |
Get all SimObjects in the config.
Implements gem5::CxxConfigFileBase.
Definition at line 85 of file cxx_config_ini.cc.
References gem5::IniFile::getSectionNames(), and iniFile.
|
virtual |
Get the names or paths of all the children SimObjects of this SimObject.
If return_paths is true then full paths are returned. If false, only the last name component for each object is returned
Implements gem5::CxxConfigFileBase.
Definition at line 91 of file cxx_config_ini.cc.
References getParamVector(), and gem5::ArmISA::i.
|
virtual |
Get a single parameter value as a string returned in value.
For booleans, the function expects "true" or "false" in value. For NULL SimObjects, it expects "Null"
Implements gem5::CxxConfigFileBase.
Definition at line 46 of file cxx_config_ini.cc.
References gem5::IniFile::find(), and iniFile.
|
virtual |
Get a list/vector parameter.
Implements gem5::CxxConfigFileBase.
Definition at line 54 of file cxx_config_ini.cc.
References gem5::IniFile::find(), iniFile, and gem5::tokenize().
Referenced by getObjectChildren(), and getPortPeers().
|
virtual |
Get the peer (connected) ports of the named ports.
Implements gem5::CxxConfigFileBase.
Definition at line 71 of file cxx_config_ini.cc.
References getParamVector().
|
virtual |
Load config file.
Implements gem5::CxxConfigFileBase.
Definition at line 104 of file cxx_config_ini.cc.
References iniFile, and gem5::IniFile::load().
|
virtual |
Does an object with this path exist?
Implements gem5::CxxConfigFileBase.
Definition at line 79 of file cxx_config_ini.cc.
References iniFile, and gem5::IniFile::sectionExists().
|
protected |
Definition at line 57 of file cxx_config_ini.hh.
Referenced by getAllObjectNames(), getParam(), getParamVector(), load(), and objectExists().