Tizen Native API  4.0
Dali::TypeRegistration Class Reference

Registers 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

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]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, DALi version 1.0.0
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 initialization
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]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, DALi version 1.0.0
Returns:
The registered name or empty if unregistered