VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Member Functions | Static Protected Member Functions | Protected Attributes | Private Member Functions
DtOrgChangeSetExecutorOperation Class Reference

Class carries out the organizations specified in a DtOrganizationChangeSet. More...

Inheritance diagram for DtOrgChangeSetExecutorOperation:
Inheritance graph
[legend]

Public Member Functions

 DtOrgChangeSetExecutorOperation (const DtOrganizationChangeSet &changeSet)
virtual ~DtOrgChangeSetExecutorOperation ()
virtual DtString type () const
virtual bool execute (DtOrganizationManager *orgMgr)
 Runs the operation on the specified hierarchy.
virtual bool complete () const
virtual void setId (int id)
virtual int id () const
- Public Member Functions inherited from DtOrgManagerPendingOperation
 DtOrgManagerPendingOperation ()
virtual ~DtOrgManagerPendingOperation ()
virtual void addCompletionCallback (DtOrganizationManagerCallbackFcn fcn, void *usr)
virtual void removeCompletionCallback (DtOrganizationManagerCallbackFcn fcn, void *usr)
- Public Member Functions inherited from DtOrgManagerOperation
 DtOrgManagerOperation ()
virtual ~DtOrgManagerOperation ()
virtual void print (DtOrganizationManager *orgMgr) const

Protected Types

typedef std::pair< unsigned
int,
DtOrgChangeSetExecutorOperation * > 
DtIdExecutorPair

Protected Member Functions

virtual void processSingleChangeComplete (unsigned int changeId)
virtual void queueAllChanges (DtOrganizationManager *orgMgr)
 Calls the relevant calls on the organization manger for all changes listed in the change set.
- Protected Member Functions inherited from DtOrgManagerPendingOperation
virtual void invokeCompletionCallback ()
 Invokes the specified callback method, if one is set.

Static Protected Member Functions

static void singleChangeCompleteCallback (void *usr)
 Callback that is invoked by each single completion of the org manager.

Protected Attributes

std::list< unsigned int > myPendingChangeIdList
 List of change IDs that are still pending.
bool myAllChangesQueued
 Internal use variable indicating whether or not all the changes in the set have been queued with the organization manager.
DtOrganizationChangeSet myChangeSet
int myId
- Protected Attributes inherited from DtOrgManagerPendingOperation
DtNoArgumentCallbackList myCompletionCallbackList
 Callback and user data that will be called when this operation is complete.

Private Member Functions

 DtOrgChangeSetExecutorOperation (const DtOrgChangeSetExecutorOperation &orig)
 Not Implemented.
DtOrgChangeSetExecutorOperationoperator= (const DtOrgChangeSetExecutorOperation &orig)
 Not Implemented.

Detailed Description

Class carries out the organizations specified in a DtOrganizationChangeSet.

It is also responsible for invoking any completion callbacks associated with the change set.

Member Typedef Documentation

Constructor & Destructor Documentation

DtOrgChangeSetExecutorOperation::DtOrgChangeSetExecutorOperation ( const DtOrgChangeSetExecutorOperation orig)
private

Not Implemented.

DtOrgChangeSetExecutorOperation::DtOrgChangeSetExecutorOperation ( const DtOrganizationChangeSet changeSet)
virtual DtOrgChangeSetExecutorOperation::~DtOrgChangeSetExecutorOperation ( )
virtual

Member Function Documentation

DtOrgChangeSetExecutorOperation& DtOrgChangeSetExecutorOperation::operator= ( const DtOrgChangeSetExecutorOperation orig)
private

Not Implemented.

virtual DtString DtOrgChangeSetExecutorOperation::type ( ) const
virtual
Returns
"ChangeSetExecutor"

Implements DtOrgManagerOperation.

virtual bool DtOrgChangeSetExecutorOperation::execute ( DtOrganizationManager orgMgr)
virtual

Runs the operation on the specified hierarchy.

Returns true if this operation should be deleted. (either it has executed, or it has expired). Returns false if it has not executed, and execute should be called again later.

Implements DtOrgManagerOperation.

virtual bool DtOrgChangeSetExecutorOperation::complete ( ) const
virtual
Returns
True if the change set is complete.
virtual void DtOrgChangeSetExecutorOperation::setId ( int  id)
virtual
virtual int DtOrgChangeSetExecutorOperation::id ( ) const
virtual
static void DtOrgChangeSetExecutorOperation::singleChangeCompleteCallback ( void *  usr)
staticprotected

Callback that is invoked by each single completion of the org manager.

virtual void DtOrgChangeSetExecutorOperation::processSingleChangeComplete ( unsigned int  changeId)
protectedvirtual
virtual void DtOrgChangeSetExecutorOperation::queueAllChanges ( DtOrganizationManager orgMgr)
protectedvirtual

Calls the relevant calls on the organization manger for all changes listed in the change set.

Member Data Documentation

std::list<unsigned int> DtOrgChangeSetExecutorOperation::myPendingChangeIdList
protected

List of change IDs that are still pending.

Note
These change IDs are completely local to this class, and not accessible or used outside this class at all.
bool DtOrgChangeSetExecutorOperation::myAllChangesQueued
protected

Internal use variable indicating whether or not all the changes in the set have been queued with the organization manager.

DtOrganizationChangeSet DtOrgChangeSetExecutorOperation::myChangeSet
protected
int DtOrgChangeSetExecutorOperation::myId
protected

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

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)