|
ADTF
|
Namespace for all functionality of the ADTF Base SDK provided since v3.0. More...
Namespaces | |
| namespace | detail |
| Namespace for all internally used functionality implemented. | |
Typedefs | |
| template<ant::IRunnable::tActivationType DEFAULT_ACTIVATION_TYPE = ant::IRunnable::RUN_UNSPECIFIED, typename ANT_INTERFACE = ant::IRunnable, typename CALLABLE = ant::IRunnable::tRunFunction> | |
| using | runnable = adtf::base::runnable<DEFAULT_ACTIVATION_TYPE, ANT_INTERFACE, flash::IRunnable, CALLABLE> |
Enumerations | |
| enum | tADTFRunLevel : int8_t { RL_Shutdown = ucom::ant::IRuntime::RL_Shutdown , RL_System = 1 , RL_Session = 2 , RL_StreamingGraph = 3 , RL_FilterGraph = 4 , RL_Running = 5 , RL_Max = RL_Running , RL_Internal = ucom::ant::IRuntime::RL_Internal } |
Functions | |
| template<typename VALUETYPE> | |
| VALUETYPE | get_property (const IConfiguration &oConfiguration, const char *strNameOfValue, VALUETYPE oDefaultValue) |
Get the property content converted to the VALUETYPE. | |
| template<typename VALUETYPE> | |
| VALUETYPE | get_property (const IConfiguration &oConfiguration, const char *strNameOfValue) |
Get the property converted to the VALUETYPE. | |
| template<typename VALUETYPE> | |
| tResult | set_property (IConfiguration &oConfiguration, const char *strNameOfValue, VALUETYPE oValue) |
| Set the property. | |
| tResult | set_property (IConfiguration &oConfiguration, const char *strNameOfValue, const char *poValue) |
Set the property of type string for a const char* parameter poValue. | |
| adtf::util::cVariant | get_hash_value (const IHashValueMap &oMap, const IHashValueMap::tHashKey &oHash, const adtf::util::cVariant oDefault) |
| tResult | set_hash_value (IHashValueMap &oMap, const IHashValueMap::tHashKey &oHash, const adtf::util::cVariant oValue) |
| IHashValueMap::tHashKey | create_hash_value_key (const char *strToHash) |
| template<typename VALUETYPE> | |
| tResult | set_property (IProperties &oProperties, const char *strNameOfValue, VALUETYPE oValue) |
| tResult | set_property (IProperties &oProperties, const char *strNameOfValue, const char *poValue) |
| template<typename T> | |
| T | get_property (const IProperties &oProperties, const char *strNameOfValue, const T &oDefaultValue) |
| template<typename VALUETYPE> | |
| VALUETYPE | get_property (const IProperties &oProperties, const char *strNameOfValue) |
| bool | operator== (const IProperty &oPropertyLeft, const IProperty &oPropertyRight) |
The equality operator returns true only if the given oPropertyLeft is the same as oPropertyRight. It checks the property (sub properties included) values and names for equality. Standard property types are compared by their types, user defined properties as strings. This works in both ways. | |
| bool | operator!= (const IProperty &oPropertyLeft, const IProperty &oPropertyRight) |
The not-equality operator returns false only if the given oPropertyLeft is exact the same as oPropertyRight. It checks the property types and raw values for equality. Standard property types are compared by their types, user defined properties as strings. This works in both ways. | |
| bool | operator== (const IProperties &oPropertiesLeft, const IProperties &oPropertiesRight) |
The equality operator returns true only if the given oPropertiesLeft has the same properties and property values as oPropertiesRight. Therefore property values, names and sub properties are compared. The property type is exactly compared for standard property types. User defined properties are compared as strings. This works in both ways. | |
| bool | operator!= (const IProperties &oPropertiesLeft, const IProperties &oPropertiesRight) |
The not-equality operator returns false only if the given oPropertiesLeft has the same properties and property values as oPropertiesRight. Therefore property values, names and sub properties are compared. The property type is exactly compared for standard property types. User defined properties are compared as strings. This works in both ways. | |
Namespace for all functionality of the ADTF Base SDK provided since v3.0.
| using adtf::base::ant::runnable = adtf::base::runnable<DEFAULT_ACTIVATION_TYPE, ANT_INTERFACE, flash::IRunnable, CALLABLE> |
Runnable template alias for detail::runnable with ANT_INTERFACE set to ant::IRunnable and FLASH_INTERFACE set to flash::IRunnable.
| DEFAULT_ACTIVATION_TYPE | The default activation type for the runnable, which will be used if not specified |
| ANT_INTERFACE | The ant::IRunnable interface to expose, ant::IRunnable or any derived type. |
| CALLABLE | The type of the callable to be executed on Run, must be invocable with either of the defined signatures: see detail::runnable. |
| enum adtf::base::ant::tADTFRunLevel : int8_t |
The ADTF Runtime Level State are used to define a ADTF Runtime specialization for a adtf::ucom::ant::runtime.
| IHashValueMap::tHashKey adtf::base::ant::create_hash_value_key | ( | const char * | strToHash | ) |
Generation of unambigious hash key for a string. This generation is independent to process and platform.
| [in] | strToHash | null terminated string to generate a hash key for. |
strToHash. | adtf::util::cVariant adtf::base::ant::get_hash_value | ( | const IHashValueMap & | oMap, |
| const IHashValueMap::tHashKey & | oHash, | ||
| const adtf::util::cVariant | oDefault ) |
Retrieves a variant value for the hash key oHash out of the hashed value map oMap. If the value does not exists the oDefault is returned.
| [in] | oMap | The map to retrieve the value from. |
| [in] | oHash | The hash key of the value. |
| [in] | oDefault | default value if value does not exist. |
| VALUETYPE adtf::base::ant::get_property | ( | const IConfiguration & | oConfiguration, |
| const char * | strNameOfValue ) |
Get the property converted to the VALUETYPE.
| VALUETYPE | The type of the property |
| oConfiguration | The configuration to look at |
| strNameOfValue | The name of the property |
| VALUETYPE adtf::base::ant::get_property | ( | const IConfiguration & | oConfiguration, |
| const char * | strNameOfValue, | ||
| VALUETYPE | oDefaultValue ) |
Get the property content converted to the VALUETYPE.
| VALUETYPE | The type of the property |
| oConfiguration | The configuratiion to look at |
| strNameOfValue | The name of the property |
| oDefaultValue | The default value if not found |
| VALUETYPE adtf::base::ant::get_property | ( | const IProperties & | oProperties, |
| const char * | strNameOfValue ) |
Gets a property value of the value type VALUETYPE from a IProperties implementation.
Make sure the property<VALUETYPE> implementation exists, see also property_type_definition.
| VALUETYPE | [in] value type of the value to return |
| oProperties | [in] property store where to get the property from. |
| strNameOfValue | [in] The Name of the property |
| T adtf::base::ant::get_property | ( | const IProperties & | oProperties, |
| const char * | strNameOfValue, | ||
| const T & | oDefaultValue ) |
Gets a property value of the value type VALUETYPE from a IProperties implementation.
Make sure the property<VALUETYPE> implementation exists, see also property_type_definition.
| VALUETYPE | [in] value type of the value to return |
| oProperties | [in] property store where to get the property from. |
| strNameOfValue | [in] The Name of the property |
| oDefaultValue | [in] default value of return value if property is not found. |
| bool adtf::base::ant::operator!= | ( | const IProperties & | oPropertiesLeft, |
| const IProperties & | oPropertiesRight ) |
The not-equality operator returns false only if the given oPropertiesLeft has the same properties and property values as oPropertiesRight. Therefore property values, names and sub properties are compared. The property type is exactly compared for standard property types. User defined properties are compared as strings. This works in both ways.
| oPropertiesLeft | The left property set for comparison |
| oPropertiesRight | The property set to compare with |
| true | properties and the corresponding values are not equal |
| false | properties and the corresponding values are equal |
| bool adtf::base::ant::operator!= | ( | const IProperty & | oPropertyLeft, |
| const IProperty & | oPropertyRight ) |
The not-equality operator returns false only if the given oPropertyLeft is exact the same as oPropertyRight. It checks the property types and raw values for equality. Standard property types are compared by their types, user defined properties as strings. This works in both ways.
| oPropertyLeft | The left property for comparison |
| oPropertyRight | The property to compare with |
| true | property value and the corresponding property type are not equal |
| false | property value and the corresponding property type are equal |
| bool adtf::base::ant::operator== | ( | const IProperties & | oPropertiesLeft, |
| const IProperties & | oPropertiesRight ) |
The equality operator returns true only if the given oPropertiesLeft has the same properties and property values as oPropertiesRight. Therefore property values, names and sub properties are compared. The property type is exactly compared for standard property types. User defined properties are compared as strings. This works in both ways.
| oPropertiesLeft | The left property set for comparison |
| oPropertiesRight | The property set to compare with |
| true | properties and the corresponding values are equal |
| false | properties and the corresponding values are not equal |
| bool adtf::base::ant::operator== | ( | const IProperty & | oPropertyLeft, |
| const IProperty & | oPropertyRight ) |
The equality operator returns true only if the given oPropertyLeft is the same as oPropertyRight. It checks the property (sub properties included) values and names for equality. Standard property types are compared by their types, user defined properties as strings. This works in both ways.
| oPropertyLeft | The left property for comparison |
| oPropertyRight | The property to compare with |
| true | property value and the corresponding property type are equal |
| false | property value and the corresponding property type are not equal |
| tResult adtf::base::ant::set_hash_value | ( | IHashValueMap & | oMap, |
| const IHashValueMap::tHashKey & | oHash, | ||
| const adtf::util::cVariant | oValue ) |
Sets a variant value for the hash key oHash into the hashed value map oMap.
| [in] | oMap | The map to set the value to. |
| [in] | oHash | The hash key of the value. |
| [in] | oValue | value to set. |
| ERR_NOERROR | value is set |
| ERR_INVALID_TYPE | Type is not supported. See IHashValueMapValue::tType |
|
inline |
Set the property of type string for a const char* parameter poValue.
| oConfiguration | The configuration to set at |
| strNameOfValue | The name of the property |
| oValue | The value of the property |
| tResult adtf::base::ant::set_property | ( | IConfiguration & | oConfiguration, |
| const char * | strNameOfValue, | ||
| VALUETYPE | oValue ) |
Set the property.
| VALUETYPE | The type of the property to set |
| oConfiguration | The configuration to set at |
| strNameOfValue | The name of the property |
| oValue | The value of the property |
|
inline |
Sets a property of the value type const char* to a IProperties implementation.
This function specialization will be used to set const char* values as adtf::util::cString value.
| [in] | oProperties | property store where to set the property to. |
| [in] | strNameOfValue | the name of the property |
| [in] | poValue | const tCHar* value |
| ERR_NOERROR | Property is set. |
| ERR_NOT_IMPL | Property can not be set. |
| tResult adtf::base::ant::set_property | ( | IProperties & | oProperties, |
| const char * | strNameOfValue, | ||
| VALUETYPE | oValue ) |
Sets a property of the value type VALUETYPE to a IProperties implementation.
Make sure the property<VALUETYPE> implementation exists, see also property_type_definition.
| VALUETYPE | [in] value type of value oValue |
| [in] | oProperties | property store where to set the property to. |
| [in] | strNameOfValue | the name of the property |
| [in] | oValue | value of type VALUETYPE |
| ERR_NOERROR | Property is set. |
| ERR_NOT_IMPL | Property can not be set. |