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

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

Public Types

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

Public Member Functions

virtual ~DtPageCollectionManager ()
 DTOR. More...
 
DtPageCollectionfindPageCollection (const std::string &collectionClassName) const
 Find an instance of the page collection. More...
 
DtPageCollectionassemblePageCollection (const std::string &collectionClassName) const
 Assemble a collection if it does not exist. More...
 
const CollectionMappageCollections () const
 Get the map of all page collections. More...
 
void showCollection (const std::string &collectionClassName, const std::string &page=std::string())
 Show a collection. More...
 
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor. More...
 
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor. More...
 

Static Public Member Functions

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

Protected Member Functions

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

Protected Attributes

DtDemyDe
 
CollectionMap myCollections
 

Friends

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

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

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 Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)