The Gaudi Framework  master (b9786168)
Loading...
Searching...
No Matches
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)
 

Functions

int main ()
 

Macro Definition Documentation

◆ CHECK

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

Definition at line 20 of file TestAppMgrStateMachine.cpp.

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

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}
#define CHECK(SC)
The IProperty is the basic interface for all components which have properties that can be set or get.
Definition IProperty.h:32
StatusCode setProperty(const Gaudi::Details::PropertyBase &p)
Set the property from a property.
Definition IProperty.h:38
Small smart pointer class with automatic reference counting for IInterface.
Definition SmartIF.h:28
const StatusCode & ignore() const
Allow discarding a StatusCode without warning.
Definition StatusCode.h:139
GAUDI_API IAppMgrUI * createApplicationMgr(const std::string &dllname, const std::string &factname)