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

The DtInsetViewObserverDestroyer will destroy an observer when its window is destroyed. More...

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

Public Member Functions

virtual ~DtInsetViewObserverDestroyer ()
 DTOR.
void registerInsetViewForDestruction (const std::string &windowName, const std::string &observerName)
 Register the observer to be destoryed when the window is destroyed.
void setEnabled (bool enable)
 Used to enable or disable this class if needed. Used to avoid destroying the observer which it should not.
bool enabled ()
 Get the state of the enabled flag.
- Public Member Functions inherited from makVrv::DtVirtualBaseClass
 DtVirtualBaseClass ()
 Do nothing constructor.
virtual ~DtVirtualBaseClass ()
 Virtual do nothing destructor.

Static Public Member Functions

static
DtInsetViewObserverDestroyer
instance (DtDe &de)
 Get an instance. Lazily create if one doesn't exist.

Protected Member Functions

 DtInsetViewObserverDestroyer (DtDe &de)
 CTOR.
void slot_onWindowToBeDestroyed (DtWindow *window)
 Called when a window is destroyed.

Protected Attributes

DtDemyDe
std::map< std::string,
std::string > 
myObserverMap
bool myEnabled

Detailed Description

The DtInsetViewObserverDestroyer will destroy an observer when its window is destroyed.

Constructor & Destructor Documentation

virtual makVrv::DtInsetViewObserverDestroyer::~DtInsetViewObserverDestroyer ( )
virtual

DTOR.

makVrv::DtInsetViewObserverDestroyer::DtInsetViewObserverDestroyer ( DtDe de)
protected

CTOR.

Member Function Documentation

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

Get an instance. Lazily create if one doesn't exist.

void makVrv::DtInsetViewObserverDestroyer::registerInsetViewForDestruction ( const std::string &  windowName,
const std::string &  observerName 
)

Register the observer to be destoryed when the window is destroyed.

void makVrv::DtInsetViewObserverDestroyer::setEnabled ( bool  enable)

Used to enable or disable this class if needed. Used to avoid destroying the observer which it should not.

bool makVrv::DtInsetViewObserverDestroyer::enabled ( )

Get the state of the enabled flag.

void makVrv::DtInsetViewObserverDestroyer::slot_onWindowToBeDestroyed ( DtWindow window)
protected

Called when a window is destroyed.

Member Data Documentation

DtDe& makVrv::DtInsetViewObserverDestroyer::myDe
protected
std::map<std::string, std::string> makVrv::DtInsetViewObserverDestroyer::myObserverMap
protected
bool makVrv::DtInsetViewObserverDestroyer::myEnabled
protected

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

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)