Factory

Functions

Object *

CreateInstance

RED_RC

DeleteInstance

Detailed Description

class Factory

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.

Public Static Functions

static RED::Object *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.

static RED_RC 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.