DataDirector API
Public Member Functions | List of all members
DDD_AssetContainer Class Referenceabstract

A virtual interface class for containers of assets. Allows assets to find each other, exchange events and update attributes of each other. More...

#include <DDD_AssetBase.h>

Inheritance diagram for DDD_AssetContainer:
DDD_DataDirector

Public Member Functions

virtual void AddEventSubscriber (DDD_ObjectEventSubscriber *subscriber)=0
 
virtual void RemoveEventSubscriber (DDD_ObjectEventSubscriber *subscriber)=0
 
virtual void PostEvent (DDD_ObjectEvent *event)=0
 
virtual DDD_AssetBaseFindAsset (const std::string &assetName)=0
 
virtual DDD_AttributeBaseFindAttribute (const std::string &name)=0
 

Detailed Description

A virtual interface class for containers of assets. Allows assets to find each other, exchange events and update attributes of each other.

Member Function Documentation

virtual void AddEventSubscriber ( DDD_ObjectEventSubscriber subscriber)
pure virtual

Add a new event subscriber to subscriber list

Parameters
subscriberThe event subscriber to add

Implemented in DDD_DataDirector.

virtual DDD_AssetBase* FindAsset ( const std::string &  assetName)
pure virtual

Searches the asset list for an asset with the specified instance name

Parameters
assetNameThe instance name of the asset to find
Returns
Returns a pointer to the asset or NULL if not found

Implemented in DDD_DataDirector.

virtual DDD_AttributeBase* FindAttribute ( const std::string &  name)
pure virtual

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

Implemented in DDD_DataDirector.

virtual void PostEvent ( DDD_ObjectEvent event)
pure virtual

Post a new event that will be received by all event subscribers

Parameters
eventThe object event to post

Implemented in DDD_DataDirector.

virtual void RemoveEventSubscriber ( DDD_ObjectEventSubscriber subscriber)
pure virtual

Remove an event subscriber from the subscriber list

Parameters
subscriberThe event subscriber to remove

Implemented in DDD_DataDirector.


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