Home || Architecture || Video Search || Visual Search || Scripts || Applications || Important Messages || OGL || Src

ThreadSystemWnd.h

Go to the documentation of this file.
00001 #ifndef Impala_Visualization_ThreadSystemWnd_h
00002 #define Impala_Visualization_ThreadSystemWnd_h
00003 
00004 #ifndef OglGui_Window_h
00005 #include "OglGui/Window.h"
00006 #endif
00007 
00008 namespace Impala {
00009 namespace Visualization {
00010 
00011 class ThreadSystemWnd : public OglGui::Window
00012 {
00013 public:
00014     ThreadSystemWnd(int x, int y, int w, int h, strconst str) : OglGui::Window(x,y,w,h)
00015     {
00016         Init(str);
00017     }
00018 
00019     virtual void DisplayFunc()
00020     {
00021         if (!mInitialized)
00022         {
00023             mInitialized = true;
00024             int sysRes = system(mStr.c_str());
00025         }
00026     }
00027 
00028 private:
00029     void Init(strconst str)
00030     {
00031         mStr = str;
00032         mInitialized = false;
00033     }
00034 
00035     bool            mInitialized;
00036     std::string     mStr;
00037 };
00038 
00039 } // namespace Visualization
00040 } // namespace Impala
00041 
00042 #endif

Generated on Fri Mar 19 09:31:55 2010 for ImpalaSrc by  doxygen 1.5.1