DataDirector API
Public Member Functions | Static Public Member Functions | List of all members
DDD_AssetFactory Class Reference

The DDD_AssetFactory class. Factory for creating Data Director assets. More...

#include <DDD_AssetFactory.h>

Inheritance diagram for DDD_AssetFactory:
DDD_LogFacade

Public Member Functions

DDD_AssetBaseInstantiateNewAsset (const std::string &className, DDD_AssetContainer *container)
 
bool FindAsset (const std::string &className, std::string libFileName)
 
DDD_StringList GetKnownAssetTypes ()
 

Static Public Member Functions

static DDD_AssetFactoryInstance ()
 
- Static Public Member Functions inherited from DDD_LogFacade
static void LogDebug (const char *format,...)
 
static void LogInfo (const char *format,...)
 
static void LogWarning (const char *format,...)
 
static void LogError (const char *format,...)
 

Detailed Description

The DDD_AssetFactory class. Factory for creating Data Director assets.

Member Function Documentation

bool FindAsset ( const std::string &  className,
std::string  libFileName 
)

Load the library file for the particular asset and install it in the factory

Parameters
classNameThe class name of the asset
libFileNameThe name of the DLL/.SO file that has the creator function
Returns
True if the class was successfully installed in the factory
DDD_StringList GetKnownAssetTypes ( )
Returns
Returns a list of known asset types that the factory can create
static DDD_AssetFactory& Instance ( )
static

Public interface to the singleton

Returns
Returns a pointer to the singleton instance
DDD_AssetBase* InstantiateNewAsset ( const std::string &  className,
DDD_AssetContainer container 
)

Creates a new asset of the requested type

Parameters
classNameThe name of the asset class to instantiate
containerThe container that owns the asset
Returns
Returns a pointer to instantiated asset, or null if asset cannot be instantiated

The documentation for this class was generated from the following file: