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) | |
| PropertyTree & | operator= (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 |
Fonctions membres protégées | |
| PropertyTree (detail::PropertyTreeImpl *p, bool is_own) | |
Attributs privés | |
| detail::PropertyTreeImpl * | 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 112 du fichier AlinaUtils.h.
| Arcane::Alina::PropertyTree::PropertyTree | ( | ) |
Définition à la ligne 453 du fichier AlinaUtils.cc.
| Arcane::Alina::PropertyTree::PropertyTree | ( | const PropertyTree & | rhs | ) |
Définition à la ligne 463 du fichier AlinaUtils.cc.
| Arcane::Alina::PropertyTree::~PropertyTree | ( | ) |
Définition à la ligne 495 du fichier AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::_addChild | ( | const std::string & | path, |
| const char * | name, | ||
| const PropertyTree & | obj ) |
Définition à la ligne 625 du fichier AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::check_params | ( | const std::set< std::string > & | names | ) | const |
Définition à la ligne 635 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 658 du fichier AlinaUtils.cc.
| size_t Arcane::Alina::PropertyTree::count | ( | const char * | name | ) | const |
Définition à la ligne 527 du fichier AlinaUtils.cc.
| bool Arcane::Alina::PropertyTree::erase | ( | const char * | name | ) |
Définition à la ligne 518 du fichier AlinaUtils.cc.
|
inline |
Définition à la ligne 144 du fichier AlinaUtils.h.
| std::string Arcane::Alina::PropertyTree::get | ( | const char * | param_type, |
| const std::string & | default_value ) const |
Définition à la ligne 589 du fichier AlinaUtils.cc.
| double * Arcane::Alina::PropertyTree::get | ( | const char * | param_type, |
| double * | default_value ) const |
Définition à la ligne 575 du fichier AlinaUtils.cc.
| double Arcane::Alina::PropertyTree::get | ( | const char * | param_type, |
| double | default_value ) const |
Définition à la ligne 568 du fichier AlinaUtils.cc.
Définition à la ligne 554 du fichier AlinaUtils.cc.
Définition à la ligne 561 du fichier AlinaUtils.cc.
|
inline |
Définition à la ligne 134 du fichier AlinaUtils.h.
| void * Arcane::Alina::PropertyTree::get | ( | const char * | param_type, |
| void * | default_value ) const |
Définition à la ligne 582 du fichier AlinaUtils.cc.
| PropertyTree Arcane::Alina::PropertyTree::get_child_empty | ( | const std::string & | path | ) | const |
Définition à la ligne 505 du fichier AlinaUtils.cc.
| PropertyTree & Arcane::Alina::PropertyTree::operator= | ( | const PropertyTree & | rhs | ) |
Définition à la ligne 479 du fichier AlinaUtils.cc.
|
inline |
Définition à la ligne 171 du fichier AlinaUtils.h.
| void Arcane::Alina::PropertyTree::put | ( | const std::string & | path, |
| const std::string & | value ) |
Définition à la ligne 609 du fichier AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::put | ( | const std::string & | path, |
| double * | value ) |
Définition à la ligne 613 du fichier AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::put | ( | const std::string & | path, |
| double | value ) |
Définition à la ligne 605 du fichier AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::put | ( | const std::string & | path, |
| Int32 | value ) |
Définition à la ligne 597 du fichier AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::put | ( | const std::string & | path, |
| Int64 | value ) |
Définition à la ligne 601 du fichier AlinaUtils.cc.
|
inline |
Définition à la ligne 160 du fichier AlinaUtils.h.
| void Arcane::Alina::PropertyTree::put | ( | const std::string & | path, |
| void * | value ) |
Définition à la ligne 617 du fichier AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::putKeyValue | ( | const std::string & | param | ) |
Définition à la ligne 688 du fichier AlinaUtils.cc.
| void Arcane::Alina::PropertyTree::read_json | ( | const std::string & | filename | ) |
Définition à la ligne 536 du fichier AlinaUtils.cc.
|
friend |
Définition à la ligne 712 du fichier AlinaUtils.cc.
|
private |
Définition à la ligne 203 du fichier AlinaUtils.h.
|
private |
Définition à la ligne 202 du fichier AlinaUtils.h.