VR-Forces 4.0.4 Class Documentation
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. More...

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

List of all members.

Public Types

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

Public Member Functions

virtual ~DtPageCollectionManager ()
 DTOR.
DtPageCollectionfindPageCollection (const std::string &collectionClassName) const
 Find an instance of the page collection.
DtPageCollectionassemblePageCollection (const std::string &collectionClassName) const
 Assemble a collection if it does not exist.
const CollectionMappageCollections () const
 Get the map of all page collections.
void showCollection (const std::string &collectionClassName, const std::string &page=std::string(""))
 Show a collection.

Static Public Member Functions

static DtPageCollectionManagerinstance (DtDe &de)
 Get access to the page collection instance for the DtDe.

Protected Member Functions

 DtPageCollectionManager (DtDe &de)
void registerInstance (DtPageCollection *)
 Adds an instance of a DtPageCollection so it can be found by name.
void unregisterInstance (DtPageCollection *)
 Removes an instance of a DtPageCollection so it will not b be found by name.

Protected Attributes

DtDemyDe
CollectionMap myCollections

Friends

class DtPageCollection
 Allow the page collection interface to register and unregister themselves.

Detailed Description

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


Member Typedef Documentation

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

Constructor & Destructor Documentation

DTOR.


Member Function Documentation

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.

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

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.

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


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)