The Gaudi Framework  master (902e3694)
TestAppMgrStateMachine.cpp File Reference
#include <GaudiKernel/Bootstrap.h>
#include <GaudiKernel/IAppMgrUI.h>
#include <GaudiKernel/IProperty.h>
#include <GaudiKernel/SmartIF.h>
#include <GaudiKernel/StatusCode.h>
#include <iostream>
Include dependency graph for TestAppMgrStateMachine.cpp:

Go to the source code of this file.

Macros

#define CHECK(SC)   if ( SC.isFailure() ) return 1;
 

Functions

int main ()
 

Macro Definition Documentation

◆ CHECK

#define CHECK (   SC)    if ( SC.isFailure() ) return 1;

Definition at line 21 of file TestAppMgrStateMachine.cpp.

Function Documentation

◆ main()

int main ( )

Definition at line 23 of file TestAppMgrStateMachine.cpp.

23  {
25  auto propMgr = appMgr.as<IProperty>();
26 
27  if ( !appMgr || !propMgr ) {
28  std::cout << "Fatal error while creating the ApplicationMgr " << std::endl;
29  return 1;
30  }
31 
32  propMgr->setProperty( "JobOptionsType", "NONE" ).ignore();
33  propMgr->setProperty( "EvtMax", 1 ).ignore();
34 
35  CHECK( appMgr->configure() );
36  CHECK( appMgr->initialize() );
37  CHECK( appMgr->reinitialize() );
38  CHECK( appMgr->start() );
39  CHECK( appMgr->stop() );
40  CHECK( appMgr->start() );
41  CHECK( appMgr->run() );
42 }
Gaudi::createApplicationMgr
GAUDI_API IAppMgrUI * createApplicationMgr(const std::string &dllname, const std::string &factname)
IProperty
Definition: IProperty.h:33
std::cout
SmartIF< IAppMgrUI >
std::endl
T endl(T... args)
CHECK
#define CHECK(SC)
Definition: TestAppMgrStateMachine.cpp:20
IOTest.appMgr
appMgr
Definition: IOTest.py:105