Classe pour stocker les paramètres sous forme d'arbre hiérarchique clé/valeur. Plus de détails...
Fonctions membres publiques | |
| 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 |
Attributs privés | |
| void * | m_property_tree = nullptr |
| bool | m_is_own = false |
Amis | |
| ARCCORE_ALINA_EXPORT friend std::ostream & | operator<< (std::ostream &o, const PropertyTree &obj) |
Classe pour stocker les paramètres sous forme d'arbre hiérarchique clé/valeur.
Elle enveloppe l'implémentation interne 'detail::PropertyTreeImpl' (
Définition à la ligne 111 du fichier AlinaUtils.h.
| Arcane::Alina::PropertyTree::PropertyTree | ( | ) |
Définition à la ligne 447 du fichier AlinaUtils.cc.
| Arcane::Alina::PropertyTree::PropertyTree | ( | const PropertyTree & | rhs | ) |
Définition à la ligne 457 du fichier AlinaUtils.cc.
| Arcane::Alina::PropertyTree::~PropertyTree | ( | ) |
Définition à la ligne 473 du fichier AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::_addChild | ( | const std::string & | path, |
| const char * | name, | ||
| const PropertyTree & | obj ) |
Définition à la ligne 603 du fichier AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::check_params | ( | const std::set< std::string > & | names | ) | const |
Définition à la ligne 613 du fichier AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::check_params | ( | const std::set< std::string > & | names, |
| const std::set< std::string > & | opt_names ) const |
Définition à la ligne 636 du fichier AlinaUtils.cc.
| size_t Arcane::Alina::PropertyTree::count | ( | const char * | name | ) | const |
Définition à la ligne 505 du fichier AlinaUtils.cc.
| bool Arcane::Alina::PropertyTree::erase | ( | const char * | name | ) |
Définition à la ligne 496 du fichier AlinaUtils.cc.
|
inline |
Définition à la ligne 138 du fichier AlinaUtils.h.
| std::string Arcane::Alina::PropertyTree::get | ( | const char * | param_type, |
| const std::string & | default_value ) const |
Définition à la ligne 567 du fichier AlinaUtils.cc.
| double * Arcane::Alina::PropertyTree::get | ( | const char * | param_type, |
| double * | default_value ) const |
Définition à la ligne 553 du fichier AlinaUtils.cc.
| double Arcane::Alina::PropertyTree::get | ( | const char * | param_type, |
| double | default_value ) const |
Définition à la ligne 546 du fichier AlinaUtils.cc.
Définition à la ligne 532 du fichier AlinaUtils.cc.
Définition à la ligne 539 du fichier AlinaUtils.cc.
|
inline |
Définition à la ligne 128 du fichier AlinaUtils.h.
| void * Arcane::Alina::PropertyTree::get | ( | const char * | param_type, |
| void * | default_value ) const |
Définition à la ligne 560 du fichier AlinaUtils.cc.
| PropertyTree Arcane::Alina::PropertyTree::get_child_empty | ( | const std::string & | path | ) | const |
Définition à la ligne 483 du fichier AlinaUtils.cc.
|
inline |
Définition à la ligne 165 du fichier AlinaUtils.h.
| void Arcane::Alina::PropertyTree::put | ( | const std::string & | path, |
| const std::string & | value ) |
Définition à la ligne 587 du fichier AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::put | ( | const std::string & | path, |
| double * | value ) |
Définition à la ligne 591 du fichier AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::put | ( | const std::string & | path, |
| double | value ) |
Définition à la ligne 583 du fichier AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::put | ( | const std::string & | path, |
| Int32 | value ) |
Définition à la ligne 575 du fichier AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::put | ( | const std::string & | path, |
| Int64 | value ) |
Définition à la ligne 579 du fichier AlinaUtils.cc.
|
inline |
Définition à la ligne 154 du fichier AlinaUtils.h.
| void Arcane::Alina::PropertyTree::put | ( | const std::string & | path, |
| void * | value ) |
Définition à la ligne 595 du fichier AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::putKeyValue | ( | const std::string & | param | ) |
Définition à la ligne 666 du fichier AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::read_json | ( | const std::string & | filename | ) |
Définition à la ligne 514 du fichier AlinaUtils.cc.
|
friend |
Définition à la ligne 690 du fichier AlinaUtils.cc.
|
private |
Définition à la ligne 197 du fichier AlinaUtils.h.
|
private |
Définition à la ligne 196 du fichier AlinaUtils.h.