Src_HARP/CGlobal.cpp
//IMPORTANT NOTE:: init() MUST be called INSTANTLY
//AFTER all cmd line options have been parsed
IMPORTANT NOTE:: init() MUST be called INSTANTLY
AFTER all cmd line options have been parsed
IMPORTANT NOTE :: init () MUST be called INSTANTLY AFTER all cmd line options have been parsed
void CGlobal::init()
    {
		if(initDone)
		  THROW_ERROR("CGlobal: multiple initialization attempted");
#ifdef ACTIVATE_HARP
#ifdef ACTIVATE_HARPGUI
		int argc = 2;
		char* argv[] ={strdup("program"),strdup("first-argument")};
		App =	new QApplication(argc, &argv[0]);
		HarpGUI = new CHarpGUI;
		HarpGUI->show();
#endif
#endif
		if(not HARP_RateCurves)
			initTmpDir();
		initDone = true;
    }
void CGlobal :: init ( ) { if ( initDone ) THROW_ERROR ( " " ) ; #ifdef ACTIVATE_HARP #ifdef ACTIVATE_HARPGUI int argc = 2 ; char * argv [ ] = { strdup ( " " ) , strdup ( " " ) } ; App = new QApplication ( argc , & argv [ 0 ] ) ; HarpGUI = new CHarpGUI ; HarpGUI -> show ( ) ; #endif #endif if ( not HARP_RateCurves ) initTmpDir ( ) ; initDone = true ; }
IMPORTANT NOTE:: init() MUST be called INSTANTLY
AFTER all cmd line options have been parsed
IMPORTANT NOTE :: init () MUST be called INSTANTLY AFTER all cmd line options have been parsed
//GUI //INIT TMP DIR //cout << "Global.init() done" << endl;