VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtVrfEntityIdentifierFactory Class Reference

Public Member Functions

 DtVrfEntityIdentifierFactory (DtVrfObjectManager *)
 CTOR.
virtual ~DtVrfEntityIdentifierFactory ()
 DTOR.
virtual DtEntityIdentifier nextId (DtVrfObject *, const DtEntityIdentifier &base=DtEntityIdentifier::nullId())
 Return the next available identifier.
virtual void startScenarioLoad ()
 Call when about to start loading a scenario. Initializes internal structures for load.
virtual void endScenarioLoad ()
 Call when scenario load is over.
virtual void setNextId (int)
 Accessors for nextId.
int nextId () const

Protected Attributes

DtVrfObjectManagermyVrfObjectManager
std::set< DtStringmyUsedIdentifiers
bool myLoadingScenario
int myNextId

Constructor & Destructor Documentation

DtVrfEntityIdentifierFactory::DtVrfEntityIdentifierFactory ( DtVrfObjectManager )

CTOR.

virtual DtVrfEntityIdentifierFactory::~DtVrfEntityIdentifierFactory ( )
virtual

DTOR.

Member Function Documentation

virtual DtEntityIdentifier DtVrfEntityIdentifierFactory::nextId ( DtVrfObject ,
const DtEntityIdentifier &  base = DtEntityIdentifier::nullId() 
)
virtual

Return the next available identifier.

If there is a given identifer and the site/app does not match the current exercise connection site/app, the user will be warned and a new id created

virtual void DtVrfEntityIdentifierFactory::startScenarioLoad ( )
virtual

Call when about to start loading a scenario. Initializes internal structures for load.

virtual void DtVrfEntityIdentifierFactory::endScenarioLoad ( )
virtual

Call when scenario load is over.

Clears out internal structures and sets factory to always create a new identifier regardless of whether or not one is passed in

virtual void DtVrfEntityIdentifierFactory::setNextId ( int  )
virtual

Accessors for nextId.

int DtVrfEntityIdentifierFactory::nextId ( ) const
inline

Member Data Documentation

DtVrfObjectManager* DtVrfEntityIdentifierFactory::myVrfObjectManager
protected
std::set<DtString> DtVrfEntityIdentifierFactory::myUsedIdentifiers
protected
bool DtVrfEntityIdentifierFactory::myLoadingScenario
protected
int DtVrfEntityIdentifierFactory::myNextId
protected

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

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)