Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
An object that describes the way an object of a given class can be configured through properties. More...
#include <bayeux/datatools/object_configuration_description.h>
Public Types | |
enum | po_flags_type { po_none = 0, po_no_config = 0x1, po_no_title = 0x2 } |
Print option flags. More... | |
enum | sgo_flags_type { sgo_none = 0, sgo_no_add_infos = 0x1, sgo_no_config_hints = 0x2, sgo_minimal = sgo_no_add_infos | sgo_no_config_hints } |
Skeleton/sample generator option flags. More... | |
typedef std::vector< configuration_property_description > | cpd_col_type |
Protected Member Functions | |
void | _generate_static_property (const configuration_property_description &cpd_, properties &props_) const |
bool | _validate_static (const configuration_property_description &cpd_, const properties &config_, std::string &error_message_) const |
bool | _validate_traits (const configuration_property_description &cpd_, const properties &config_, std::string &error_message_) const |
An object that describes the way an object of a given class can be configured through properties.
typedef std::vector<configuration_property_description> datatools::object_configuration_description::cpd_col_type |
datatools::object_configuration_description::object_configuration_description | ( | ) |
|
protected |
|
protected |
|
protected |
configuration_property_description& datatools::object_configuration_description::add_configuration_property_info | ( | ) |
void datatools::object_configuration_description::add_example | ( | const std::string & | example_ | ) |
void datatools::object_configuration_description::add_group | ( | const std::string & | group_ | ) |
configuration_property_description& datatools::object_configuration_description::add_property_info | ( | ) |
void datatools::object_configuration_description::dump | ( | std::ostream & | out_ = std::clog , |
const std::string & | title_ = "" , |
||
const std::string & | indent_ = "" |
||
) | const |
Raw print.
void datatools::object_configuration_description::generate_sample_configuration | ( | std::ostream & | out_, |
const std::string & | topic_ = "" , |
||
uint32_t | sgo_flags_ = 0 |
||
) | const |
Generate a sample configuration stream.
const std::string& datatools::object_configuration_description::get_class_description | ( | ) | const |
const std::string& datatools::object_configuration_description::get_class_documentation | ( | ) | const |
const std::string& datatools::object_configuration_description::get_class_library | ( | ) | const |
const std::string& datatools::object_configuration_description::get_class_name | ( | ) | const |
const std::string& datatools::object_configuration_description::get_configuration_hints | ( | ) | const |
const configuration_property_description& datatools::object_configuration_description::get_configuration_property_info | ( | int | i_ | ) | const |
const std::string& datatools::object_configuration_description::get_example | ( | int | ) | const |
const std::set<std::string>& datatools::object_configuration_description::get_groups | ( | ) | const |
unsigned int datatools::object_configuration_description::get_number_of_documented_properties | ( | ) | const |
unsigned int datatools::object_configuration_description::get_number_of_examples | ( | ) | const |
bool datatools::object_configuration_description::has_class_description | ( | ) | const |
bool datatools::object_configuration_description::has_class_documentation | ( | ) | const |
bool datatools::object_configuration_description::has_class_library | ( | ) | const |
bool datatools::object_configuration_description::has_configuration_hints | ( | ) | const |
bool datatools::object_configuration_description::has_validation_support | ( | ) | const |
bool datatools::object_configuration_description::is_available | ( | ) | const |
bool datatools::object_configuration_description::is_locked | ( | ) | const |
Check the lock flag.
void datatools::object_configuration_description::lock | ( | ) |
Lock the object.
void datatools::object_configuration_description::print | ( | std::ostream & | out_, |
const std::string & | indent_ = "" , |
||
uint32_t | po_flags_ = 0 |
||
) | const |
object_configuration_description& datatools::object_configuration_description::set_class_description | ( | const std::string & | ) |
object_configuration_description& datatools::object_configuration_description::set_class_documentation | ( | const std::string & | ) |
object_configuration_description& datatools::object_configuration_description::set_class_library | ( | const std::string & | ) |
object_configuration_description& datatools::object_configuration_description::set_class_name | ( | const std::string & | ) |
object_configuration_description& datatools::object_configuration_description::set_configuration_hints | ( | const std::string & | ) |
object_configuration_description& datatools::object_configuration_description::set_validation_support | ( | bool | ) |
bool datatools::object_configuration_description::validate | ( | const datatools::properties & | config_, |
std::string & | error_message_ | ||
) | const |
Check the validity of a container of properties with respect to the OCD description.