The Gaudi Framework  master (ff829712)
Loading...
Searching...
No Matches
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
15#include <GaudiKernel/Service.h>
16
24class PythonScriptingSvc : public extends<Service, IRunable> {
25
26public:
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
42private:
44 std::string m_startupScript;
45};
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition ISvcLocator.h:42
std::string m_startupScript
Startup script.
~PythonScriptingSvc() override
Destructor.
StatusCode initialize() override
Initialize the service. [IService::initialize()].
StatusCode finalize() override
Finalize the service. [IService::finalize()].
StatusCode run() override
Run the service by taking full control. [IRunable::run()].
PythonScriptingSvc(const std::string &name, ISvcLocator *svc)
Standard Constructor.
const std::string & name() const override
Retrieve name of the service.
Definition Service.cpp:333
This class is used for returning status codes from appropriate routines.
Definition StatusCode.h:64
Base class used to extend a class implementing other interfaces.
Definition extends.h:19