VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Friends
makVrv::DtPageCollectionManager Class Reference

This class is a static singleton manager for getting page collection interfaces.

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

Public Types

typedef boost::unordered_map
< std::string,
DtPageCollection * > 
CollectionMap
 

Public Member Functions

virtual ~DtPageCollectionManager ()
 
DtPageCollectionfindPageCollection (const std::string &collectionClassName) const
 
DtPageCollectionassemblePageCollection (const std::string &collectionClassName) const
 
const CollectionMappageCollections () const
 
void showCollection (const std::string &collectionClassName, const std::string &page=std::string())
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 
virtual ~DtVirtualBaseClass ()
 

Static Public Member Functions

static DtPageCollectionManagerinstance (DtDe &de)
 

Protected Member Functions

 DtPageCollectionManager (DtDe &de)
 
void registerInstance (DtPageCollection *)
 
void unregisterInstance (DtPageCollection *)
 

Protected Attributes

DtDemyDe
 
CollectionMap myCollections
 

Friends

class DtPageCollection
 

Member Typedef Documentation

typedef boost::unordered_map<std::string,DtPageCollection*> makVrv::DtPageCollectionManager::CollectionMap

Constructor & Destructor Documentation

virtual makVrv::DtPageCollectionManager::~DtPageCollectionManager ( )
virtual

DTOR.

makVrv::DtPageCollectionManager::DtPageCollectionManager ( DtDe de)
protected

Member Function Documentation

static DtPageCollectionManager& makVrv::DtPageCollectionManager::instance ( DtDe de)
static

Get access to the page collection instance for the DtDe.

DtPageCollection* makVrv::DtPageCollectionManager::findPageCollection ( const std::string &  collectionClassName) const

Find an instance of the page collection.

DtPageCollection* makVrv::DtPageCollectionManager::assemblePageCollection ( const std::string &  collectionClassName) const

Assemble a collection if it does not exist.

const CollectionMap& makVrv::DtPageCollectionManager::pageCollections ( ) const

Get the map of all page collections.

void makVrv::DtPageCollectionManager::showCollection ( const std::string &  collectionClassName,
const std::string &  page = std::string() 
)

Show a collection. This is useful for displaying Dialog collections. Place the starting page as the second parameter, or, leave blank to default to page as defined in the collection.

void makVrv::DtPageCollectionManager::registerInstance ( DtPageCollection )
protected

Adds an instance of a DtPageCollection so it can be found by name.

Exceptions
DtCorruptedStateif a page collection with the same name was already registered.
void makVrv::DtPageCollectionManager::unregisterInstance ( DtPageCollection )
protected

Removes an instance of a DtPageCollection so it will not b be found by name.

Friends And Related Function Documentation

friend class DtPageCollection
friend

Allow the page collection interface to register and unregister themselves.

Member Data Documentation

DtDe& makVrv::DtPageCollectionManager::myDe
protected
CollectionMap makVrv::DtPageCollectionManager::myCollections
protected

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

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)