| The Gaudi Framework v27r1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

PropertyAlg.h
Go to the documentation of this file.
1 #ifndef GAUDIEXAMPLE_PROPERTYALG_H
2 #define GAUDIEXAMPLE_PROPERTYALG_H
3
4 // Include files
5 #include "GaudiKernel/Algorithm.h"
6 #include "GaudiKernel/Property.h"
7 #include "GaudiKernel/MsgStream.h"
8
14 class PropertyAlg : public Algorithm {
15 public:
17 PropertyAlg(const std::string& name, ISvcLocator* pSvcLocator);
18
20 StatusCode initialize() { return StatusCode::SUCCESS; }
21 StatusCode execute() { return StatusCode::SUCCESS; }
22 StatusCode finalize() { return StatusCode::SUCCESS; }
23
24 private:
27
28 bool m_bool;
29 char m_char;
30 signed char m_schar;
31 unsigned char m_uchar;
32 short m_short;
33 unsigned short m_ushort;
34 int m_int;
35 unsigned int m_uint;
36 long m_long;
37 unsigned long m_ulong;
38 long long m_longlong;
39 unsigned long long m_ulonglong;
40 float m_float;
41 double m_double;
42 std::string m_string;
43
44 std::vector<bool> m_boolarray;
45 std::vector<char> m_chararray;
46 std::vector<unsigned char> m_uchararray;
47 std::vector<signed char> m_schararray;
48 std::vector<short> m_shortarray;
49 std::vector<unsigned short> m_ushortarray;
50 std::vector<int> m_intarray;
51 std::vector<unsigned int> m_uintarray;
52 std::vector<long> m_longarray;
53 std::vector<unsigned long> m_ulongarray;
54 std::vector<long long> m_longlongarray;
55 std::vector<unsigned long long> m_ulonglongarray;
56 std::vector<float> m_floatarray;
57 std::vector<double> m_doublearray;
58 std::vector<std::string> m_stringarray;
59
60 };
61
62 #endif // GAUDIEXAMPLE_PROPERTYALG_H
PropertyAlg::m_uchararray
std::vector< unsigned char > m_uchararray
Definition: PropertyAlg.h:46
PropertyAlg::m_double
double m_double
Definition: PropertyAlg.h:41
Algorithm.h
PropertyAlg::m_ulonglong
unsigned long long m_ulonglong
Definition: PropertyAlg.h:39
ISvcLocator
The ISvcLocator is the interface implemented by the Service Factory in the Application Manager to loc...
Definition: ISvcLocator.h:25
PropertyAlg::m_intarray
std::vector< int > m_intarray
Definition: PropertyAlg.h:50
PropertyAlg::m_char
char m_char
Definition: PropertyAlg.h:29
MsgStream.h
PropertyAlg::PropertyAlg
PropertyAlg(const std::string &name, ISvcLocator *pSvcLocator)
Constructor of this form must be provided.
Definition: PropertyAlg.cpp:16
PropertyAlg::m_short
short m_short
Definition: PropertyAlg.h:32
PropertyAlg::m_float
float m_float
Definition: PropertyAlg.h:40
PropertyAlg::m_uchar
unsigned char m_uchar
Definition: PropertyAlg.h:31
PropertyAlg::m_uintarray
std::vector< unsigned int > m_uintarray
Definition: PropertyAlg.h:51
PropertyAlg::initialize
StatusCode initialize()
Three mandatory member functions of any algorithm.
Definition: PropertyAlg.h:20
std::string
STL class.
Algorithm::name
const std::string & name() const override
The identifying name of the algorithm object.
Definition: Algorithm.cpp:820
PropertyAlg::m_ulonglongarray
std::vector< unsigned long long > m_ulonglongarray
Definition: PropertyAlg.h:55
PropertyAlg::m_ulongarray
std::vector< unsigned long > m_ulongarray
Definition: PropertyAlg.h:53
PropertyAlg::m_shortarray
std::vector< short > m_shortarray
Definition: PropertyAlg.h:48
PropertyAlg::m_schar
signed char m_schar
Definition: PropertyAlg.h:30
PropertyAlg::m_boolarray
std::vector< bool > m_boolarray
Definition: PropertyAlg.h:44
StatusCode::SUCCESS
Definition: StatusCode.h:30
StatusCode
This class is used for returning status codes from appropriate routines.
Definition: StatusCode.h:26
PropertyAlg::execute
StatusCode execute()
Definition: PropertyAlg.h:21
PropertyAlg::m_string
std::string m_string
Definition: PropertyAlg.h:42
PropertyAlg::finalize
StatusCode finalize()
Definition: PropertyAlg.h:22
PropertyAlg::m_bool
bool m_bool
These data members are used in the execution of this algorithm They are set in the initialisation pha...
Definition: PropertyAlg.h:28
PropertyAlg::m_longlongarray
std::vector< long long > m_longlongarray
Definition: PropertyAlg.h:54
PropertyAlg::m_schararray
std::vector< signed char > m_schararray
Definition: PropertyAlg.h:47
PropertyAlg::m_stringarray
std::vector< std::string > m_stringarray
Definition: PropertyAlg.h:58
Algorithm
Base class from which all concrete algorithm classes should be derived.
Definition: Algorithm.h:74
PropertyAlg::m_ushort
unsigned short m_ushort
Definition: PropertyAlg.h:33
std::vector< bool >
PropertyAlg::m_longarray
std::vector< long > m_longarray
Definition: PropertyAlg.h:52
PropertyAlg::m_longlong
long long m_longlong
Definition: PropertyAlg.h:38
PropertyAlg::m_ushortarray
std::vector< unsigned short > m_ushortarray
Definition: PropertyAlg.h:49
Property.h
PropertyAlg::m_int
int m_int
Definition: PropertyAlg.h:34
PropertyAlg::m_doublearray
std::vector< double > m_doublearray
Definition: PropertyAlg.h:57
PropertyAlg::m_uint
unsigned int m_uint
Definition: PropertyAlg.h:35
PropertyAlg::m_floatarray
std::vector< float > m_floatarray
Definition: PropertyAlg.h:56
PropertyAlg::m_chararray
std::vector< char > m_chararray
Definition: PropertyAlg.h:45
PropertyAlg
Trivial Algorithm for tutotial purposes.
Definition: PropertyAlg.h:14
PropertyAlg::m_long
long m_long
Definition: PropertyAlg.h:36
PropertyAlg::m_ulong
unsigned long m_ulong
Definition: PropertyAlg.h:37