Go to the source code of this file.
GAUDI_API int GaudiMain |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 15 of file GaudiMain.cpp.
20 if( !
appMgr.isValid() || !propMgr.isValid() ) {
21 std::cout <<
"Fatal error while creating the ApplicationMgr " << std::endl;
26 std:: string
opts = (
argc>1) ?
argv[1] :
"jobOptions.txt";
28 propMgr->setProperty(
"JobOptionsPath", opts ).ignore();
30 if( opts.substr( opts.length() - 3, 3 ) ==
".py" ) {
31 propMgr->setProperty(
"EvtSel",
"NONE" ).ignore();
32 propMgr->setProperty(
"JobOptionsType",
"NONE" ).ignore();
33 propMgr->setProperty(
"DLLs",
"['GaudiPython']" ).ignore();
34 propMgr->setProperty(
"Runable",
"PythonScriptingSvc" ).ignore();
40 propMgr->getProperty(&returnCode).ignore();
44 if (sc.
isFailure() && returnCode.value() == 0) {
46 returnCode.setValue(1);
48 return returnCode.value();
GAUDI_API long argc()
Number of arguments passed to the commandline (==numCmdLineArgs()); just to match argv call...
bool isFailure() const
Test for a status code of FAILURE.
This class is used for returning status codes from appropriate routines.
Definition of the basic interface.
virtual unsigned long release()=0
Release Interface instance.
GAUDI_API IAppMgrUI * createApplicationMgr(const std::string &dllname, const std::string &factname)