class ART::Factory
Factory class needed to create planetary framework classes instances. More...
#include <ARTFactory.h>
Public static functions:
static RED::Object * | CreateInstance ( const RED::CID & iCID ) |
static RED_RC | DeleteInstance ( RED::Object * iObject ) |
Protected static variables:
static RED::Object * | _assetmgr |
static RED::Object * | _observer |
static RED::Object * | _world |
Detailed description:
Factory class needed to create planetary framework classes instances.
The ART::Factory class works as the RED::Factory class, for the creation of ART framework classes, except that there's no transaction management at the ART framework level. Object do themselves internally manage all REDsdk transactions.
Objects are created using ART::Factory::CreateInstance, and are released using ART::Factory::DeleteInstance.
Functions documentation
public static RED::Object * ART::Factory::CreateInstance | ( | const RED::CID & | iCID | ) |
Creates an intance of a given ART class.
Parameters:
iCID: | Class identifier. |
Returns:
The created object address, NULL if a memory allocation has failed.
public static RED_RC ART::Factory::DeleteInstance | ( | RED::Object * | iObject | ) |
Delete an instance of a given ART class.
Parameters:
iObject: | The object address. |
Returns:
RED_OK if the operation has succeeded,
RED_BAD_PARAM if iObject is NULL,
RED_FAIL if iObject is of an unknown type.
RED_BAD_PARAM if iObject is NULL,
RED_FAIL if iObject is of an unknown type.
Variables documentation
protected static RED::Object * ART::Factory::_assetmgr
Asset manager singleton.
protected static RED::Object * ART::Factory::_observer
Observer singleton.
protected static RED::Object * ART::Factory::_world
World singleton.