Loading [MathJax]/extensions/tex2jax.js
The Gaudi Framework  master (d98a2936)
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
PythonScriptingSvc.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
12 
13 // Include Files
14 #include <GaudiKernel/IRunable.h>
15 #include <GaudiKernel/Service.h>
16 
24 class PythonScriptingSvc : public extends<Service, IRunable> {
25 
26 public:
28  PythonScriptingSvc( const std::string& name, ISvcLocator* svc );
29 
31  StatusCode initialize() override;
32 
34  StatusCode finalize() override;
35 
37  StatusCode run() override;
38 
40  ~PythonScriptingSvc() override;
41 
42 private:
44  std::string m_startupScript;
45 };
PythonScriptingSvc::PythonScriptingSvc
PythonScriptingSvc(const std::string &name, ISvcLocator *svc)
Standard Constructor.
Definition: PythonScriptingSvc.cpp:34
PythonScriptingSvc::m_startupScript
std::string m_startupScript
Startup script.
Definition: PythonScriptingSvc.h:44
ISvcLocator
Definition: ISvcLocator.h:42
Service::name
const std::string & name() const override
Retrieve name of the service
Definition: Service.cpp:333
StatusCode
Definition: StatusCode.h:64
extends
Base class used to extend a class implementing other interfaces.
Definition: extends.h:19
PythonScriptingSvc::~PythonScriptingSvc
~PythonScriptingSvc() override
Destructor.
Definition: PythonScriptingSvc.cpp:42
PythonScriptingSvc::run
StatusCode run() override
Run the service by taking full control. [IRunable::run()].
Definition: PythonScriptingSvc.cpp:123
Service.h
PythonScriptingSvc::initialize
StatusCode initialize() override
Initialize the service. [IService::initialize()].
Definition: PythonScriptingSvc.cpp:46
IRunable.h
PythonScriptingSvc
Definition: PythonScriptingSvc.h:24
PythonScriptingSvc::finalize
StatusCode finalize() override
Finalize the service. [IService::finalize()].
Definition: PythonScriptingSvc.cpp:110