VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator 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.
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.
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

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

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 Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)