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_RCDeleteInstance ( 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

Creates an intance of a given ART class.

Parameters:

iCID:Class identifier.

Returns:

The created object address, NULL if a memory allocation has failed.

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.

Variables documentation

Asset manager singleton.

Observer singleton.

World singleton.