61 lines
1.4 KiB
C++
61 lines
1.4 KiB
C++
// This code implementation is the intellectual property of
|
|
// the RD44 GEANT4 collaboration.
|
|
//
|
|
// By copying, distributing or modifying the Program (or any work
|
|
// based on the Program) you indicate your acceptance of this statement,
|
|
// and all its terms.
|
|
//
|
|
// $Id: cstartup.cxx,v 2.1 1998/07/12 02:39:02 urbi Exp $
|
|
// GEANT4 tag $Name: geant4-00 $
|
|
//
|
|
/*********************************************************************
|
|
*
|
|
Copyright (c) 1996
|
|
|
|
File Name: CStartup.cxx
|
|
|
|
Implements main()
|
|
*
|
|
*********************************************************************/
|
|
|
|
#include "XVTPwr.h"
|
|
#include "AppDef.h"
|
|
|
|
#include GUI_i
|
|
#include G4XvtGUI_i
|
|
|
|
#ifdef DSP_RELEASE
|
|
#include FactoryCommands_i
|
|
#endif
|
|
|
|
#ifndef PAFACTORY_QBASE_NAME
|
|
#define PAFACTORY_QBASE_NAME "GUI"
|
|
#endif
|
|
|
|
int main( int argc, char** argv )
|
|
{
|
|
// Instantiate an application object, then invoke its Go()
|
|
// method to begin life as a GUI application. On some platforms
|
|
// Go() will never return control to main(), so do not place
|
|
// any meaningful code after Go().
|
|
//
|
|
// Add any GUI initialization code to the application class
|
|
// constructor, rather than doing it here.
|
|
|
|
G4XvtGUI theApplication;
|
|
|
|
theApplication.Go(
|
|
argc,
|
|
argv,
|
|
PAFACTORY_APP_MENU,
|
|
PAFACTORY_APP_ABOUT_BOX,
|
|
PAFACTORY_QBASE_NAME,
|
|
PAFACTORY_APP_NAME,
|
|
PAFACTORY_APP_TITLE );
|
|
|
|
// In case Go() returns and/or to avoid compiler warnings
|
|
|
|
return( 0 );
|
|
}
|
|
|