Public Member Functions | |
| PropertyTree (const PropertyTree &rhs) | |
| Int32 | get (const char *param_type, Int32 default_value) const |
| Int64 | get (const char *param_type, Int64 default_value) const |
| size_t | get (const char *param_type, size_t default_value) const |
| double | get (const char *param_type, double default_value) const |
| double * | get (const char *param_type, double *default_value) const |
| void * | get (const char *param_type, void *default_value) const |
| std::string | get (const char *param_type, const std::string &default_value) const |
| template<typename DataType> requires (std::is_enum_v<DataType>) | |
| DataType | get (const char *param_type, const DataType &default_value) const |
| void | put (const std::string &path, Int32 value) |
| void | put (const std::string &path, Int64 value) |
| void | put (const std::string &path, size_t value) |
| void | put (const std::string &path, double value) |
| void | put (const std::string &path, const std::string &value) |
| void | put (const std::string &path, double *value) |
| void | put (const std::string &path, void *value) |
| template<typename DataType> requires (std::is_enum_v<DataType>) | |
| void | put (const std::string &path, const DataType &value) |
| void | putKeyValue (const std::string ¶m) |
| PropertyTree | get_child_empty (const std::string &path) const |
| bool | erase (const char *name) |
| size_t | count (const char *name) const |
| void | _addChild (const std::string &path, const char *name, const PropertyTree &obj) |
| void | read_json (const std::string &filename) |
| void | check_params (const std::set< std::string > &names) const |
| void | check_params (const std::set< std::string > &names, const std::set< std::string > &opt_names) const |
Private Attributes | |
| void * | m_property_tree = nullptr |
| bool | m_is_own = false |
Friends | |
| ARCCORE_ALINA_EXPORT friend std::ostream & | operator<< (std::ostream &o, const PropertyTree &obj) |
Definition at line 106 of file AlinaUtils.h.
| Arcane::Alina::PropertyTree::PropertyTree | ( | ) |
Definition at line 76 of file AlinaUtils.cc.
| Arcane::Alina::PropertyTree::PropertyTree | ( | const PropertyTree & | rhs | ) |
Definition at line 86 of file AlinaUtils.cc.
| Arcane::Alina::PropertyTree::~PropertyTree | ( | ) |
Definition at line 111 of file AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::_addChild | ( | const std::string & | path, |
| const char * | name, | ||
| const PropertyTree & | obj ) |
Definition at line 212 of file AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::check_params | ( | const std::set< std::string > & | names | ) | const |
Definition at line 223 of file AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::check_params | ( | const std::set< std::string > & | names, |
| const std::set< std::string > & | opt_names ) const |
Definition at line 246 of file AlinaUtils.cc.
| size_t Arcane::Alina::PropertyTree::count | ( | const char * | name | ) | const |
Definition at line 143 of file AlinaUtils.cc.
| bool Arcane::Alina::PropertyTree::erase | ( | const char * | name | ) |
Definition at line 134 of file AlinaUtils.cc.
|
inline |
Definition at line 135 of file AlinaUtils.h.
| std::string Arcane::Alina::PropertyTree::get | ( | const char * | param_type, |
| const std::string & | default_value ) const |
Definition at line 179 of file AlinaUtils.cc.
| double * Arcane::Alina::PropertyTree::get | ( | const char * | param_type, |
| double * | default_value ) const |
Definition at line 171 of file AlinaUtils.cc.
| double Arcane::Alina::PropertyTree::get | ( | const char * | param_type, |
| double | default_value ) const |
Definition at line 167 of file AlinaUtils.cc.
Definition at line 159 of file AlinaUtils.cc.
Definition at line 163 of file AlinaUtils.cc.
|
inline |
Definition at line 125 of file AlinaUtils.h.
| void * Arcane::Alina::PropertyTree::get | ( | const char * | param_type, |
| void * | default_value ) const |
Definition at line 175 of file AlinaUtils.cc.
| PropertyTree Arcane::Alina::PropertyTree::get_child_empty | ( | const std::string & | path | ) | const |
Definition at line 121 of file AlinaUtils.cc.
|
inline |
Definition at line 162 of file AlinaUtils.h.
| void Arcane::Alina::PropertyTree::put | ( | const std::string & | path, |
| const std::string & | value ) |
Definition at line 196 of file AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::put | ( | const std::string & | path, |
| double * | value ) |
Definition at line 200 of file AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::put | ( | const std::string & | path, |
| double | value ) |
Definition at line 192 of file AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::put | ( | const std::string & | path, |
| Int32 | value ) |
Definition at line 184 of file AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::put | ( | const std::string & | path, |
| Int64 | value ) |
Definition at line 188 of file AlinaUtils.cc.
|
inline |
Definition at line 151 of file AlinaUtils.h.
| void Arcane::Alina::PropertyTree::put | ( | const std::string & | path, |
| void * | value ) |
Definition at line 204 of file AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::putKeyValue | ( | const std::string & | param | ) |
Definition at line 276 of file AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::read_json | ( | const std::string & | filename | ) |
Definition at line 152 of file AlinaUtils.cc.
|
friend |
Definition at line 301 of file AlinaUtils.cc.
|
private |
Definition at line 194 of file AlinaUtils.h.
|
private |
Definition at line 193 of file AlinaUtils.h.