gem5
|
Config file wrapper providing a common interface to CxxConfigManager. More...
#include <cxx_config.hh>
Public Member Functions | |
CxxConfigFileBase () | |
virtual | ~CxxConfigFileBase () |
virtual bool | getParam (const std::string &object_name, const std::string ¶m_name, std::string &value) const =0 |
Get a single parameter value as a string returned in value. More... | |
virtual bool | getParamVector (const std::string &object_name, const std::string ¶m_name, std::vector< std::string > &values) const =0 |
Get a list/vector parameter. More... | |
virtual bool | getPortPeers (const std::string &object_name, const std::string &port_name, std::vector< std::string > &peers) const =0 |
Get the peer (connected) ports of the named ports. More... | |
virtual bool | objectExists (const std::string &object_name) const =0 |
Does an object with this path exist? More... | |
virtual void | getAllObjectNames (std::vector< std::string > &list) const =0 |
Get all SimObjects in the config. More... | |
virtual void | getObjectChildren (const std::string &object_name, std::vector< std::string > &children, bool return_paths=false) const =0 |
Get the names or paths of all the children SimObjects of this SimObject. More... | |
virtual bool | load (const std::string &filename)=0 |
Load config file. More... | |
virtual CxxConfigParams::Flags | getFlags () const |
Get the flags which should be used to modify parameter parsing behaviour. More... | |
Config file wrapper providing a common interface to CxxConfigManager.
Definition at line 187 of file cxx_config.hh.
|
inline |
Definition at line 190 of file cxx_config.hh.
|
inlinevirtual |
Definition at line 191 of file cxx_config.hh.
|
pure virtual |
Get all SimObjects in the config.
Implemented in CxxIniFile.
Referenced by CxxConfigManager::findAllObjects().
|
inlinevirtual |
Get the flags which should be used to modify parameter parsing behaviour.
Definition at line 228 of file cxx_config.hh.
|
pure 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
Implemented in CxxIniFile.
Referenced by CxxConfigManager::findObject(), and CxxConfigManager::findTraversalOrder().
|
pure 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"
Implemented in CxxIniFile.
Referenced by CxxConfigManager::findObject(), CxxConfigManager::findObjectParams(), and CxxConfigManager::findObjectType().
|
pure virtual |
Get a list/vector parameter.
Implemented in CxxIniFile.
Referenced by CxxConfigManager::findObject(), and CxxConfigManager::findObjectParams().
|
pure virtual |
Get the peer (connected) ports of the named ports.
Implemented in CxxIniFile.
Referenced by CxxConfigManager::bindObjectPorts(), and CxxConfigManager::findObjectParams().
|
pure virtual |
Load config file.
Implemented in CxxIniFile.
|
pure virtual |
Does an object with this path exist?
Implemented in CxxIniFile.
Referenced by CxxConfigManager::findObjectType().