#include <HltStoreSvc.h>
Definition at line 16 of file HltStoreSvc.h.
◆ ContainerType
◆ HltStoreSvc()
| HltStoreSvc::HltStoreSvc |
( |
const std::string & | name, |
|
|
ISvcLocator * | sl ) |
◆ ~HltStoreSvc()
| HltStoreSvc::~HltStoreSvc |
( |
| ) |
|
◆ clear()
| bool HltStoreSvc::clear |
( |
void | | ) |
|
|
inline |
Definition at line 104 of file HltStoreSvc.h.
104 {
105 for ( ContainerType::iterator it =
m_map.begin(); it !=
m_map.end(); it++ )
106 { delete ( *it ).second; }
108 return true;
109 }
◆ erase()
| bool HltStoreSvc::erase |
( |
const std::string & | name | ) |
|
|
inline |
Definition at line 90 of file HltStoreSvc.h.
90 {
91 ContainerType::iterator it =
m_map.find( name );
92 if ( it !=
m_map.end() )
93 {
94 delete ( *it ).second;
96 return true;
97 }
98 return false;
99 }
◆ exists()
| bool HltStoreSvc::exists |
( |
const std::string & | name | ) |
|
◆ finalize()
| StatusCode HltStoreSvc::finalize |
( |
| ) |
|
|
virtual |
Definition at line 49 of file HltStoreSvc.cxx.
49 {
50 ContainerType::iterator pos;
51 for ( pos =
m_map.begin(); pos !=
m_map.end(); ++pos )
52 {
53
54 }
56 return StatusCode::SUCCESS;
57}
◆ get()
template<class T>
| bool HltStoreSvc::get |
( |
const std::string & | name, |
|
|
T & | value ) |
|
inline |
Definition at line 70 of file HltStoreSvc.h.
70 {
71
72 ContainerType::iterator it =
m_map.find( name );
73
74 if ( it !=
m_map.end() )
75 {
77 {
78 value = ptr->value();
79 return true;
80 }
81 }
82
83 return false;
84 }
◆ initialize()
| StatusCode HltStoreSvc::initialize |
( |
| ) |
|
|
virtual |
Definition at line 29 of file HltStoreSvc.cxx.
29 {
30 StatusCode sc;
31
32 MsgStream log(
msgSvc(), name() );
33 log << MSG::INFO << name() << ": Start of run initialisation" << endmsg;
34
35 sc = Service::initialize();
36 if ( sc.isFailure() ) return sc;
37
38
39
40
41
42
43
44
45
46 return StatusCode::SUCCESS;
47}
◆ interfaceID()
| const InterfaceID & HltStoreSvc::interfaceID |
( |
| ) |
|
|
inlinestatic |
Definition at line 30 of file HltStoreSvc.h.
30{ return IID_IHltStoreSvc; }
◆ max_size()
| int HltStoreSvc::max_size |
( |
| ) |
|
◆ printKeys()
| void HltStoreSvc::printKeys |
( |
| ) |
|
Definition at line 62 of file HltStoreSvc.cxx.
62 {
63 ContainerType::iterator pos;
64 for ( pos =
m_map.begin(); pos !=
m_map.end(); ++pos ) { cout << pos->first << endl; }
65}
◆ put()
template<class T>
| bool HltStoreSvc::put |
( |
const std::string & | name, |
|
|
const T & | value ) |
|
inline |
Definition at line 54 of file HltStoreSvc.h.
54 {
57 {
58 std::cout << "demanded key already exists, overwrite old one" << std::endl;
59 delete old;
60 }
62 return true;
63 }
◆ queryInterface()
| StatusCode HltStoreSvc::queryInterface |
( |
const InterfaceID & | riid, |
|
|
void ** | ppvIF ) |
|
virtual |
Definition at line 19 of file HltStoreSvc.cxx.
19 {
20 if ( IID_IHltStoreSvc.versionMatch( riid ) )
21 {
22
24 }
25 else { return Service::queryInterface( riid, ppvIF ); }
26 return StatusCode::SUCCESS;
27}
HltStoreSvc(const std::string &name, ISvcLocator *sl)
◆ size()
| int HltStoreSvc::size |
( |
| ) |
|
◆ sListLength()
| string HltStoreSvc::sListLength |
( |
| ) |
|
Definition at line 76 of file HltStoreSvc.cxx.
76 {
77 unsigned int iListLength = this->
size();
78 iListLength += 1;
79 ostrstream ListLength;
80
81
82 ListLength << iListLength;
83 ListLength << '\0';
84 string stringListLength = ListLength.str();
85 if ( this->
exists( stringListLength ) )
86 {
87 stringListLength = "unset";
88 for (
int i = 0; i < this->
max_size(); i++ )
89 {
90 iListLength += 1;
91 ListLength << iListLength;
92 ListLength << '\0';
93 stringListLength = ListLength.str();
94 if ( !( this->
exists( stringListLength ) ) )
95 {
96 ListLength.freeze( 0 );
97 return stringListLength;
98 }
99 }
100 }
101
102 ListLength.freeze( 0 );
103 return stringListLength;
104}
bool exists(const std::string &name)
◆ m_map
The documentation for this class was generated from the following files: