VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes | Friends
makVrv::DtAgent Class Reference

A distributed object agent base class. More...

Inheritance diagram for makVrv::DtAgent:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~DtAgent ()
 DTOR.
DtAgentManagerInterface & sceneInterface ()
 Get the scene interface, the scene interface may not be NULL (so a reference is safe.
void setSceneInterface (DtAgentManagerInterface *iface)
 Set the internal scene interface pointer.
void init (DtAgentManagerInterface &sceneInterface, bool bDistribute)
 Initialize the object proxy this must be called once before using the object.
const std::string & className () const
 Get the class name.
void clean ()
void dirty ()
DtUniqueID uniqueId () const
 inline accessor
bool distributeMessages () const
 Accessor for myDistributeMessageFlag.

Protected Member Functions

DtMessage & startNewCall (unsigned int function)
 Inline get arguments for a operation call operation.
void addCreateObjectCall ()
 Add a call which will create the actual object.
void addDeleteObjectCall ()
 Add a call to delete an object.
unsigned int callCount () const
 Get the number of calls.
template<typename C >
void queueOperationCall (unsigned int state_function, void(C::*m)())
 DtAgent ()
 Support up to 9 args, if more needed simply add, as they are template functions that will be dynamically generated.
 DtAgent (DtAgent &)
 Copy CTOR is used internally for last update values.
DtAgentManagerInterface::OrderedCallList & callList ()
 Get a pointer to the call list.

Protected Attributes

DtAgentManagerInterface * mySceneInterface
DtUniqueID myUniqueId
std::string myClassName
bool myUpdateFlag
DtAgentManagerInterface::OrderedCallList myCalls
bool myDistributeObjectFlag

Friends

class DtAgentManagerInterface
 Allow the scene manager interface access the processed functions.
class DtAgentManager

Detailed Description

A distributed object agent base class.


Constructor & Destructor Documentation

virtual makVrv::DtAgent::~DtAgent ( ) [virtual]

DTOR.

makVrv::DtAgent::DtAgent ( ) [protected]

Support up to 9 args, if more needed simply add, as they are template functions that will be dynamically generated.

CTOR

makVrv::DtAgent::DtAgent ( DtAgent &  ) [protected]

Copy CTOR is used internally for last update values.


Member Function Documentation

Get the scene interface, the scene interface may not be NULL (so a reference is safe.

Set the internal scene interface pointer.

void makVrv::DtAgent::init ( DtAgentManagerInterface &  sceneInterface,
bool  bDistribute 
)

Initialize the object proxy this must be called once before using the object.

It will be called automatically during proxy creation

const std::string& makVrv::DtAgent::className ( ) const [inline]

Get the class name.

void makVrv::DtAgent::clean ( ) [inline]
void makVrv::DtAgent::dirty ( ) [inline]

inline accessor

Accessor for myDistributeMessageFlag.

Returns true if messages are going to be distributed to each slave in addition to the master.

DtMessage& makVrv::DtAgent::startNewCall ( unsigned int  function) [inline, protected]

Inline get arguments for a operation call operation.

Add a call which will create the actual object.

Add a call to delete an object.

unsigned int makVrv::DtAgent::callCount ( ) const [inline, protected]

Get the number of calls.

template<typename C >
void makVrv::DtAgent::queueOperationCall ( unsigned int  state_function,
void(C::*)()  m 
) [inline, protected]

Get a pointer to the call list.


Friends And Related Function Documentation

friend class DtAgentManagerInterface [friend]

Allow the scene manager interface access the processed functions.

friend class DtAgentManager [friend]

Member Data Documentation

std::string makVrv::DtAgent::myClassName [protected]

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

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)