|
ADTF Display Toolbox
|
Namespace for functionality provided by the Display Toolbox. More...
Namespaces | |
| namespace | mixinlib |
| Namespace for functionality provided by the Mixin Library. | |
Functions | |
| std::string | BuildPropertyName (std::string const &prefix, std::string const &prop_name) |
| Rule to build a full property name, based on its prefix and (base) name. | |
| template<typename T> | |
| void | AttachPropertyEntry (const tChar *prop_name_prefix, const tChar *prop_name, T const &prop_val, adtf::base::ant::IConfiguration &configuration) |
| Attaches a property and its value to a given configuration. | |
| template<typename T> | |
| T | GetPropertyValue (std::string const &prop_name_prefix, std::string const &prop_name, adtf::base::ant::IConfiguration const &configuration) |
| Retrieves the value of a property from a given configuration. | |
| bool | HasProperty (std::string const &prop_name_prefix, std::string const &prop_name, adtf::base::ant::IConfiguration const &configuration) |
| Query whether a configuration contains a property. | |
| template<typename ValueType> | |
| ValueType | RestorePropertyValue (std::string const &prefix, std::string const &prop_name, adtf::base::ant::IConfiguration const &configuration) |
| Restores the value of a property from a given configuration. | |
Variables | |
| static constexpr char | property_separator [] = "." |
| Define a separator for properties. | |
Namespace for functionality provided by the Display Toolbox.
| void AttachPropertyEntry | ( | const tChar * | prop_name_prefix, |
| const tChar * | prop_name, | ||
| T const & | prop_val, | ||
| adtf::base::ant::IConfiguration & | configuration ) |
Attaches a property and its value to a given configuration.
Note: only use with supported property value types (parameter prop_val), e.g. cString, tBool, tFloat
| [in] | prop_name_prefix | The prefix of the property. |
| [in] | prop_name | The name of the property. |
| [in] | prop_val | The value of the property. |
| [in] | configuration | The configuration to add the entry to. |
Definition at line 44 of file adtf_display_toolbox_base.h.
References BuildPropertyName().
|
inline |
Rule to build a full property name, based on its prefix and (base) name.
| [in] | prefix | The prefix of the property. |
| [in] | prop_name | The name of the property. |
Definition at line 29 of file adtf_display_toolbox_base.h.
References property_separator.
Referenced by AttachPropertyEntry(), GetPropertyValue(), HasProperty(), and RestorePropertyValue().
| T GetPropertyValue | ( | std::string const & | prop_name_prefix, |
| std::string const & | prop_name, | ||
| adtf::base::ant::IConfiguration const & | configuration ) |
Retrieves the value of a property from a given configuration.
Note: only use with supported property value types (parameter prop_val), e.g. cString, tBool, tFloat
| [in] | prop_name_prefix | The prefix of the property. |
| [in] | prop_name | The name of the property. |
| [in] | configuration | The configuration to add the entry. |
Definition at line 63 of file adtf_display_toolbox_base.h.
References BuildPropertyName().
Referenced by RestorePropertyValue().
|
inline |
Query whether a configuration contains a property.
| [in] | prop_name_prefix | The prefix of the property. |
| [in] | prop_name | The name of the property. |
| [in] | configuration | The configuration to add the entry. |
Definition at line 79 of file adtf_display_toolbox_base.h.
References BuildPropertyName().
Referenced by RestorePropertyValue().
| ValueType RestorePropertyValue | ( | std::string const & | prefix, |
| std::string const & | prop_name, | ||
| adtf::base::ant::IConfiguration const & | configuration ) |
Restores the value of a property from a given configuration.
If the property cannot be found inside the configuration, an error report is given. Note: only use with supported property value types (parameter prop_val), e.g. cString, tBool, tFloat
| [in] | prefix | The prefix of the property. |
| [in] | prop_name | The name of the property. |
| [in] | configuration | The configuration which should contain the property. |
Definition at line 101 of file adtf_display_toolbox_base.h.
References BuildPropertyName(), GetPropertyValue(), and HasProperty().
|
staticconstexpr |
Define a separator for properties.
Definition at line 20 of file adtf_display_toolbox_base.h.
Referenced by BuildPropertyName().