creaImageIO_lib
BlockScopeWxApp Class Reference

#include <BlockScopeWxApp.h>

Public Member Functions

 BlockScopeWxApp ()
 
 ~BlockScopeWxApp ()
 

Private Attributes

bool mNeedToUninitialize
 

Detailed Description

Definition at line 32 of file BlockScopeWxApp.h.

Constructor & Destructor Documentation

BlockScopeWxApp::BlockScopeWxApp ( )

Definition at line 54 of file BlockScopeWxApp.cpp.

References mNeedToUninitialize.

55 {
56  mNeedToUninitialize = false;
57  if (wxApp::GetInstance()==0)
58  {
59  wxApp::SetInstance(new DummyWxApp);
60  wxInitialize();
61  mNeedToUninitialize = true;
62  }
63 }
BlockScopeWxApp::~BlockScopeWxApp ( )

Definition at line 65 of file BlockScopeWxApp.cpp.

References mNeedToUninitialize.

66 {
67  if (mNeedToUninitialize) wxUninitialize();
68 }

Member Data Documentation

bool BlockScopeWxApp::mNeedToUninitialize
private

Definition at line 38 of file BlockScopeWxApp.h.

Referenced by BlockScopeWxApp(), and ~BlockScopeWxApp().


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