The Gaudi Framework
v27r0
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
GaudiCommonConstructors.cpp
Go to the documentation of this file.
1
2
// ============================================================================
3
/* @file GaudiCommonConstructors.cpp
4
*
5
* Specialised constructors for GaudiCommon
6
*
7
* @author Chris Jones Christopher.Rob.Jones@cern.ch
8
* @date 2005-08-08
9
*/
10
// ============================================================================
11
12
// ============================================================================
13
// GaudiKernel
14
// ============================================================================
15
#include "GaudiKernel/Algorithm.h"
16
#include "GaudiKernel/AlgTool.h"
17
// ============================================================================
18
// GaudiAlg
19
// ============================================================================
20
#include "GaudiAlg/GaudiCommon.h"
21
// ============================================================================
22
23
//=============================================================================
24
// Null algorithm like constructor for AlgTool
25
// should NEVER be used...
26
//=============================================================================
27
template
<>
28
GaudiCommon<AlgTool>::GaudiCommon
(
const
std::string&
/* name */
,
29
ISvcLocator
*
/* pSvcLocator */
)
30
: base_class (
"ERROR"
,
"ERROR"
, nullptr )
31
{
32
throw
GaudiException
(
"Invalid GaudiCommon<AlgTool> constructor"
,
33
"GaudiCommon"
,
StatusCode::FAILURE
);
34
}
35
//=============================================================================
36
37
//=============================================================================
38
// Null tool like constructor for Algorithm
39
// should NEVER be used...
40
//=============================================================================
41
template
<>
42
GaudiCommon<Algorithm>::GaudiCommon
(
const
std::string&
/* type */
,
43
const
std::string&
/* name */
,
44
const
IInterface
*
/* parent */
)
45
: base_class (
"ERROR"
, nullptr )
46
{
47
throw
GaudiException
(
"Invalid GaudiCommon<Algorithm> constructor"
,
48
"GaudiCommon"
,
StatusCode::FAILURE
);
49
}
50
//=============================================================================
51
52
//=============================================================================
53
// Standard algorithm constructor, initializes variables
54
//=============================================================================
55
template
<>
56
GaudiCommon<Algorithm>::GaudiCommon
(
const
std::string&
name
,
57
ISvcLocator
* pSvcLocator )
58
:
base_class
( name, pSvcLocator )
59
{
60
initGaudiCommonConstructor
();
61
}
62
//=============================================================================
63
64
//=============================================================================
65
// Standard tool constructor, initializes variables
66
//=============================================================================
67
template
<>
68
GaudiCommon<AlgTool>::GaudiCommon
(
const
std::string&
type
,
69
const
std::string&
name
,
70
const
IInterface
* parnt )
71
: base_class ( type , name , parnt )
72
{
73
initGaudiCommonConstructor
(parent());
74
}
75
//=============================================================================
76
77
// ============================================================================
78
// The END
79
// ============================================================================
GaudiException
Define general base for Gaudi exception.
Definition:
GaudiException.h:23
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition:
ISvcLocator.h:25
gaudiComponentHelp.name
name
Definition:
gaudiComponentHelp.py:28
GaudiCommon::initGaudiCommonConstructor
void initGaudiCommonConstructor(const IInterface *parent=0)
Constructor initializations.
Definition:
GaudiCommon.icpp:64
IInterface
Definition of the basic interface.
Definition:
IInterface.h:234
StatusCode::FAILURE
Definition:
StatusCode.h:29
CommonMessaging
Definition:
CommonMessaging.h:60
gaudirun.type
string type
Definition:
gaudirun.py:151
GaudiCommon::GaudiCommon
GaudiCommon()=delete
GaudiAlg
src
lib
GaudiCommonConstructors.cpp
Generated on Thu Feb 4 2016 16:42:09 for The Gaudi Framework by
1.8.9.1