Tizen Native API
Dali::TypeRegistration Class Reference

Register a type from type info. More...

Public Member Functions

 TypeRegistration (const std::type_info &registerType, const std::type_info &baseType, TypeInfo::CreateFunction f)
 Constructor registers the type creation function.
 TypeRegistration (const std::type_info &registerType, const std::type_info &baseType, TypeInfo::CreateFunction f, bool callCreateOnInit)
 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

Register a type from type info.

Since :
2.4

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
Parameters:
[in]registerTypethe type info for the type to be registered
[in]baseTypethe base type info of registerType
[in]fregisterType 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
Parameters:
[in]registerTypethe type info for the type to be registered
[in]baseTypethe base type info of registerType
[in]fregisterType instance creation function
[in]callCreateOnInitIf true the creation function is called as part of Dali initialisation
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
Parameters:
[in]namethe name of the type to be registered
[in]baseTypethe base type info of registerType
[in]fregisterType 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
Returns:
the registered name or empty if unregistered