The Gaudi Framework  master (82fdf313)
Loading...
Searching...
No Matches
PythonConfig.h
Go to the documentation of this file.
1/***********************************************************************************\
2* (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3* *
4* This software is distributed under the terms of the Apache version 2 licence, *
5* copied verbatim in the file "LICENSE". *
6* *
7* In applying this licence, CERN does not waive the privileges and immunities *
8* granted to it by virtue of its status as an Intergovernmental Organization *
9* or submit itself to any jurisdiction. *
10\***********************************************************************************/
11#pragma once
14#include <string>
15
16// Class to translate between Python and C++ worlds
17// It will be exposed to Python via Boost (see .cpp file)
19public:
21 void addPropertyToJobOptions( const std::string& client, const std::string& name, const std::string& value ) {
22 m_optsSvc->set( client + '.' + name, value );
23 }
24
25private:
27};
28
29// Helper class to be invoked by JobOptionsSvc
31public:
33 StatusCode evaluateConfig( const std::string& filename, const std::string& preAction, const std::string& postAction );
34
35private:
37};
void addPropertyToJobOptions(const std::string &client, const std::string &name, const std::string &value)
PythonAdaptor(Gaudi::Interfaces::IOptionsSvc *optsSvc)
Gaudi::Interfaces::IOptionsSvc * m_optsSvc
PythonConfig(Gaudi::Interfaces::IOptionsSvc *optsSvc)
StatusCode evaluateConfig(const std::string &filename, const std::string &preAction, const std::string &postAction)
Gaudi::Interfaces::IOptionsSvc * m_optsSvc
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64
Interface for a component that manages application configuration options.
Definition IOptionsSvc.h:46