#include "GaudiKernel/Bootstrap.h"
#include "GaudiKernel/IAppMgrUI.h"
#include "GaudiKernel/IProperty.h"
#include "GaudiKernel/ISvcLocator.h"
#include "GaudiKernel/Property.h"
#include "GaudiKernel/SmartIF.h"
#include <iostream>
#include <string>
#include "boost/program_options.hpp"
Go to the source code of this file.
|
int | main (int argc, char **argv) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 16 of file concurrentRun.cpp.
18 options_description desc(
"Allowed options" );
19 desc.add_options()(
"help,h",
"produce help message" )(
"config", value<std::string>(),
20 "comma separated list of python configuration files" )(
21 "post-option", value<std::string>(),
"python command to be run after ConfigurableUser has been applied" )(
23 positional_options_description p;
27 store( command_line_parser(
argc,
argv ).
options( desc ).positional( p ).run(), vm );
28 }
catch ( boost::exception_detail::clone_impl<
29 boost::exception_detail::error_info_injector<boost::program_options::unknown_option>>& ) {
37 if ( vm.count(
"help" ) or vm.count(
"h" ) ) {
41 if ( !vm.count(
"config" ) ) {
49 if ( 0 != vm.count(
"param" ) ) {
59 if ( 0 != vm.count(
"post-option" ) ) { postAction = vm[
"post-option"].as<
std::string>(); }
65 propMgr->setProperty(
"JobOptionsType",
"PYTHON" );
66 propMgr->setProperty(
"JobOptionsPath", fileName );
67 propMgr->setProperty(
"JobOptionsPreAction", params.str() );
68 propMgr->setProperty(
"JobOptionsPostAction", postAction );
69 return appUI->run().getCode();
Definition of the basic interface.
GAUDI_API IAppMgrUI * createApplicationMgr(const std::string &dllname, const std::string &factname)