DataDirector API
Public Member Functions | Protected Attributes | List of all members
DDD_GlsComponentBaseAdapter Class Reference

Public Member Functions

 DDD_GlsComponentBaseAdapter (ComponentBase *component)
 
virtual ~DDD_GlsComponentBaseAdapter ()
 
bool LoadXML (const char *filename)
 
void Process (double time)
 
ComponentBase * GetComponentBase ()
 
DDD_AttributeBaseFindAttribute (const std::string &name)
 
DDD_AssetBaseFindAsset (const std::string &name)
 
void StartAssets ()
 
void StopAssets ()
 

Protected Attributes

DDD_DataDirector_director
 
ComponentBase * _component
 

Constructor & Destructor Documentation

DDD_GlsComponentBaseAdapter ( ComponentBase *  component)

Constructor.

Parameters
frameThe ComponentBase to associate with this adapter
virtual ~DDD_GlsComponentBaseAdapter ( )
virtual

Destructor

Member Function Documentation

DDD_AssetBase* FindAsset ( const std::string &  name)
inline

Searches all instantiated assets by name

Parameters
assetNameAsset instance name to find
Returns
Returns a pointer to the asset if found or NULL if not found
DDD_AttributeBase* FindAttribute ( const std::string &  name)
inline

Searches all instantiated assets for the attribute

Parameters
nameThe fully qualified name of the attribute to find (e.g. assetName.attribName)
Returns
Returns a pointer to the attribute or NULL if not found
ComponentBase* GetComponentBase ( )
inline
Returns
Returns a pointer to the glsComponentBase associated with this adapter
bool LoadXML ( const char *  filename)

Load a Data Director XML config file. Any RSO assets in the config file will be treated as references to RSOs contained in the associated ComponentBase

Parameters
filenameThe name of the XML file to load
Returns
True if the XML was successfully parsed
void Process ( double  time)

Pump the Data Director instance associated with this adapter. This call is normally placed into the Calculate method of the glsComponentBase associated with this adapter

Parameters
timeThe process/calculate time
void StartAssets ( )
inline

Starts all assets

void StopAssets ( )
inline

Stops all assets

Member Data Documentation

ComponentBase* _component
protected

ComponentBase associated with this adapter

DDD_DataDirector* _director
protected

Data Director instance


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