VR-Forces 4.0.4 Class Documentation
Public Member Functions | Protected Member Functions | Protected Attributes
DtVrfProcessStateRepositoryManager Class Reference

class DtVrfProcessStateRepositoryManager: More...

Inheritance diagram for DtVrfProcessStateRepositoryManager:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 DtVrfProcessStateRepositoryManager ()
 default constructor
 DtVrfProcessStateRepositoryManager (const DtString &name, DtReaderWriterRegistry *parentRegistry=0)
 readable/writable constructor
virtual ~DtVrfProcessStateRepositoryManager ()
 destructor
 DtVrfProcessStateRepositoryManager (const DtString &name, const DtVrfProcessStateRepositoryManager &orig, DtReaderWriterRegistry *parentRegistry=0)
 copy constructor
DtVrfProcessStateRepositoryManageroperator= (const DtVrfProcessStateRepositoryManager &orig)
 assignment operator
virtual
DtVrfProcessStateRepositoryManager
clone (const DtString &name, DtReaderWriterRegistry *parentRegistry=0)
virtual void addProcessStateRepository (DtVrfProcessStateRepository *repToAdd)
 add Does not assume responsibility for or deallocate memory associated with the PSR.
virtual void removeProcessStateRepository (DtVrfProcessStateRepository *repToRemove)
 remove Does not deallocate memory associated with the PSR
virtual
DtVrfProcessStateRepository
lookupProcessStateRepository (const DtString &procRepName) const
 lookup by name Looks only in the list immediately owned by this manager and not in any children PSRmanagers
const
DtVrfProcessStateRepositoryIterator
iterator () const
 iterate -
virtual void completePSRList (std::list< DtVrfProcessStateRepository * > &psrList) const
 Fills in psrList with pointers to all the PSRs of this PSR Manager and all PSRs listed in system PSRs that are part of this manager.
virtual void addProcessStateRepositoryAddedCallback (DtVrfProcessStateManagerCallbackFcn fcn, void *usrData)
 track process state additions and removals
virtual void removeProcessStateRepositoryAddedCallback (DtVrfProcessStateManagerCallbackFcn fcn, void *usrData)
 Remove a previously register callback for notification when a DtVrfProcessStateRepository is removed.
virtual void invokeProcessStateRepositoryAddedCallbacks (DtVrfProcessStateRepository *repBeingRemove) const
 Called by removeProcessStateRepository(). Calls registered callbacks.
virtual void addProcessStateRepositoryAboutToBeRemovedCallback (DtVrfProcessStateManagerCallbackFcn fcn, void *usrData)
 Registers a callback for notification when a new DtVrfProcessStateRepository is about to be removed.
virtual void removeProcessStateRepositoryAboutToBeRemovedCallback (DtVrfProcessStateManagerCallbackFcn fcn, void *usrData)
 Remove a previously register callback for notification when a DtVrfProcessStateRepository is removed.
virtual void invokeProcessStateRepositoryAboutToBeRemovedCallbacks (DtVrfProcessStateRepository *repBeingRemove) const
 Called by removeProcessStateRepository(). Calls registered callbacks.

Protected Member Functions

void emptyList ()
 Used by the destructor.
void copyList (const DtVrfProcessStateRepositoryManager &origList)
void emptyCallbackList (DtList &listToEmpty)
void copyCallbackList (DtList &destList, const DtList &origList)
virtual DtlObjPtr getData (DtlObjPtr args, const DtFilename &searchPath, const DtVariableBindingsList &variableBindings)
 This form assumes the relevant process state repository has already been created.
virtual DtListItem * lookupProcessStateRepositoryItem (const DtString &repositoryName)
virtual void addProcessStateRepositoryAddedCallback (DtVrfProcessStateManagerCallbackInfo *cbInfo)
virtual void removeProcessStateRepositoryAddedCallback (const DtVrfProcessStateManagerCallbackInfo &cbInfo)
virtual void addProcessStateRepositoryAboutToBeRemovedCallback (DtVrfProcessStateManagerCallbackInfo *cbInfo)
virtual void removeProcessStateRepositoryAboutToBeRemovedCallback (const DtVrfProcessStateManagerCallbackInfo &cbInfo)

Protected Attributes

DtHashlist myHashIndex
DtList myAboutToBeRemovedProcessStateRepositoryCallbackList
DtList myAddedProcessStateRepositoryCallbackList
DtVrfProcessStateRepositoryIteratormyIterator

Detailed Description

class DtVrfProcessStateRepositoryManager:

Instances of DtVrfProcessStateRepositoryManager are readable/writeable lists of DtVrfProcessStateRepositories.


Constructor & Destructor Documentation

default constructor

readable/writable constructor

destructor

copy constructor


Member Function Documentation

DtVrfProcessStateRepositoryManager& DtVrfProcessStateRepositoryManager::operator= ( const DtVrfProcessStateRepositoryManager orig)

assignment operator

add Does not assume responsibility for or deallocate memory associated with the PSR.

remove Does not deallocate memory associated with the PSR

lookup by name Looks only in the list immediately owned by this manager and not in any children PSRmanagers

iterate -

allocates and returns an iterator to iterate over this subObject list. It is the responsibility of the caller to delete this iterator when finished with it.

virtual void DtVrfProcessStateRepositoryManager::completePSRList ( std::list< DtVrfProcessStateRepository * > &  psrList) const [virtual]

Fills in psrList with pointers to all the PSRs of this PSR Manager and all PSRs listed in system PSRs that are part of this manager.

track process state additions and removals

Registers a callback for notification when a new DtVrfProcessStateRepository is added.

Remove a previously register callback for notification when a DtVrfProcessStateRepository is removed.

Called by removeProcessStateRepository(). Calls registered callbacks.

Registers a callback for notification when a new DtVrfProcessStateRepository is about to be removed.

Remove a previously register callback for notification when a DtVrfProcessStateRepository is removed.

Called by removeProcessStateRepository(). Calls registered callbacks.

Used by the destructor.

It removes all process state rep pointers on the list.

void DtVrfProcessStateRepositoryManager::emptyCallbackList ( DtList &  listToEmpty) [protected]
void DtVrfProcessStateRepositoryManager::copyCallbackList ( DtList &  destList,
const DtList &  origList 
) [protected]
virtual DtlObjPtr DtVrfProcessStateRepositoryManager::getData ( DtlObjPtr  args,
const DtFilename &  searchPath,
const DtVariableBindingsList variableBindings 
) [protected, virtual]

This form assumes the relevant process state repository has already been created.

It does a lookup for the object named by args and if it exists, reads relevant data from the stream.

Implements DtRwList.

Reimplemented in DtLegacyProcessStateRepositoryManager.

virtual DtListItem* DtVrfProcessStateRepositoryManager::lookupProcessStateRepositoryItem ( const DtString repositoryName) [protected, virtual]

Member Data Documentation


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)