44#ifndef __SIM_CXX_CONFIG_INI_HH__
45#define __SIM_CXX_CONFIG_INI_HH__
48#include <unordered_map>
68 bool getParam(
const std::string &object_name,
69 const std::string ¶m_name,
70 std::string &value)
const;
73 const std::string ¶m_name,
82 const std::string ¶m_name,
83 std::unordered_map<std::string, std::string> &values)
const;
86 const std::string &port_name,
95 bool return_paths =
false)
const;
97 bool load(
const std::string &filename);
bool getParamDict(const std::string &object_name, const std::string ¶m_name, std::unordered_map< std::string, std::string > &values) const
Finds the dictionary parameter of the object in the ini file and unserializes it into the values argu...
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.
This class represents the contents of a ".ini" file.
C++-only configuration and instantiation support.
Declaration of IniFile object.
Copyright (c) 2024 Arm Limited All rights reserved.