#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 108 of file HltStoreSvc.h.
108 {
109 for (ContainerType::iterator it =
m_map.begin(); it !=
m_map.end(); it++) {
110 delete (*it).second;
111 }
113 return true;
114 }
◆ erase()
bool HltStoreSvc::erase |
( |
const std::string & | name | ) |
|
|
inline |
Definition at line 95 of file HltStoreSvc.h.
95 {
96 ContainerType::iterator it =
m_map.find(name);
97 if(it !=
m_map.end()) {
98 delete (*it).second;
100 return true;
101 }
102 return false;
103 }
◆ exists()
bool HltStoreSvc::exists |
( |
const std::string & | name | ) |
|
◆ finalize()
StatusCode HltStoreSvc::finalize |
( |
| ) |
|
|
virtual |
Definition at line 53 of file HltStoreSvc.cxx.
54{
55 ContainerType::iterator pos;
56 for (pos =
m_map.begin(); pos !=
m_map.end(); ++pos) {
57
58 }
60 return StatusCode::SUCCESS;
61}
◆ get()
template<class T >
bool HltStoreSvc::get |
( |
const std::string & | name, |
|
|
T & | value ) |
|
inline |
◆ initialize()
StatusCode HltStoreSvc::initialize |
( |
| ) |
|
|
virtual |
Definition at line 32 of file HltStoreSvc.cxx.
33{
34 StatusCode sc;
35
36 MsgStream log(messageService(), name());
37 log << MSG::INFO << name() << ": Start of run initialisation" << endreq;
38
39 sc = Service::initialize();
40 if ( sc.isFailure() ) return sc;
41
42
43
44
45
46
47
48
49
50 return StatusCode::SUCCESS;
51}
◆ interfaceID()
static const InterfaceID & HltStoreSvc::interfaceID |
( |
| ) |
|
|
inlinestatic |
Definition at line 32 of file HltStoreSvc.h.
32{ return IID_IHltStoreSvc; }
◆ max_size()
int HltStoreSvc::max_size |
( |
| ) |
|
◆ printKeys()
void HltStoreSvc::printKeys |
( |
| ) |
|
Definition at line 66 of file HltStoreSvc.cxx.
66 {
67 ContainerType::iterator pos;
68 for (pos =
m_map.begin(); pos !=
m_map.end(); ++pos) {
69 cout << pos->first << endl;
70 }
71}
◆ put()
template<class T >
bool HltStoreSvc::put |
( |
const std::string & | name, |
|
|
const T & | value ) |
|
inline |
◆ queryInterface()
StatusCode HltStoreSvc::queryInterface |
( |
const InterfaceID & | riid, |
|
|
void ** | ppvIF ) |
|
virtual |
Definition at line 21 of file HltStoreSvc.cxx.
22{
23 if ( IID_IHltStoreSvc.versionMatch(riid) ) {
24
26 } else {
27 return Service::queryInterface(riid, ppvIF) ;
28 }
29 return StatusCode::SUCCESS;
30}
◆ size()
int HltStoreSvc::size |
( |
| ) |
|
◆ sListLength()
string HltStoreSvc::sListLength |
( |
| ) |
|
Definition at line 86 of file HltStoreSvc.cxx.
86 {
87 unsigned int iListLength = this->
size();
88 iListLength += 1;
89 ostrstream ListLength;
90
91
92 ListLength << iListLength;
93 ListLength << '\0';
94 string stringListLength = ListLength.str();
95 if (this->
exists(stringListLength)){
96 stringListLength = "unset";
97 for (
int i = 0; i < this->
max_size(); i++){
98 iListLength += 1;
99 ListLength << iListLength;
100 ListLength << '\0';
101 stringListLength = ListLength.str();
102 if (!(this->
exists(stringListLength))) {
103 ListLength.freeze(0);
104 return stringListLength;
105 }
106 }
107 }
108
109 ListLength.freeze(0);
110 return stringListLength;
111}
bool exists(const std::string &name)
◆ m_map
The documentation for this class was generated from the following files: