Tizen Native API
6.5
|
Registers a type from type info. More...
Public Member Functions | |
TypeRegistration (const std::type_info ®isterType, const std::type_info &baseType, TypeInfo::CreateFunction f) | |
Constructor registers the type creation function. | |
TypeRegistration (const std::type_info ®isterType, const std::type_info &baseType, TypeInfo::CreateFunction f, bool callCreateOnInit) | |
Constructor registers the type creation function. | |
TypeRegistration (const std::type_info ®isterType, const std::type_info &baseType, TypeInfo::CreateFunction f, const DefaultPropertyMetadata &defaultProperties) | |
Constructor registers the type creation function. | |
TypeRegistration (const std::string &name, const std::type_info &baseType, TypeInfo::CreateFunction f) | |
Constructor registers the type creation function for a named class or type. | |
const std::string | RegisteredName () const |
The name the type is registered under (derived from type_info). |
Detailed Description
Registers a type from type info.
- Since:
- 2.4, DALi version 1.0.0
Constructor & Destructor Documentation
Dali::TypeRegistration::TypeRegistration | ( | const std::type_info & | registerType, |
const std::type_info & | baseType, | ||
TypeInfo::CreateFunction | f | ||
) |
Constructor registers the type creation function.
- Since:
- 2.4, DALi version 1.0.0
- Parameters:
-
[in] registerType The type info for the type to be registered [in] baseType The base type info of registerType [in] f registerType Instance creation function
Dali::TypeRegistration::TypeRegistration | ( | const std::type_info & | registerType, |
const std::type_info & | baseType, | ||
TypeInfo::CreateFunction | f, | ||
bool | callCreateOnInit | ||
) |
Constructor registers the type creation function.
- Since:
- 2.4, DALi version 1.0.0
- Parameters:
-
[in] registerType the type info for the type to be registered [in] baseType the base type info of registerType [in] f registerType instance creation function [in] callCreateOnInit If true the creation function is called as part of Dali initialization
Dali::TypeRegistration::TypeRegistration | ( | const std::type_info & | registerType, |
const std::type_info & | baseType, | ||
TypeInfo::CreateFunction | f, | ||
const DefaultPropertyMetadata & | defaultProperties | ||
) |
Constructor registers the type creation function.
- Since:
- 5.5, DALi version 1.4.0
- Parameters:
-
[in] registerType the type info for the type to be registered [in] baseType the base type info of registerType [in] f registerType instance creation function [in] defaultProperties the default property meta-data
Dali::TypeRegistration::TypeRegistration | ( | const std::string & | name, |
const std::type_info & | baseType, | ||
TypeInfo::CreateFunction | f | ||
) |
Constructor registers the type creation function for a named class or type.
This allows types to be created dynamically from script. The name must be unique for successful registration.
- Since:
- 2.4, DALi version 1.0.0
- Parameters:
-
[in] name the name of the type to be registered [in] baseType the base type info of registerType [in] f registerType instance creation function
Member Function Documentation
const std::string Dali::TypeRegistration::RegisteredName | ( | ) | const |
The name the type is registered under (derived from type_info).
- Since:
- 2.4, DALi version 1.0.0
- Returns:
- The registered name or empty if unregistered