CMS 3D CMS Logo

DTKeyedConfig.cc
Go to the documentation of this file.
1 /*
2  * See header file for a description of this class.
3  *
4  * $Date: 2010/03/18 16:03:17 $
5  * $Revision: 1.1.2.1 $
6  * \author Paolo Ronchese INFN Padova
7  *
8  */
9 
10 //-----------------------
11 // This Class' Header --
12 //-----------------------
14 
15 //-------------------------------
16 // Collaborating Class Headers --
17 //-------------------------------
18 
19 //---------------
20 // C++ Headers --
21 //---------------
22 #include <iostream>
23 
24 //-------------------
25 // Initializations --
26 //-------------------
27 
28 //----------------
29 // Constructors --
30 //----------------
32 
33 DTKeyedConfig::DTKeyedConfig(const DTKeyedConfig& obj) : cond::BaseKeyed::BaseKeyed(obj) {
34  cfgId = obj.cfgId;
35  data_iterator d_iter = obj.dataList.begin();
36  data_iterator d_iend = obj.dataList.end();
37  while (d_iter != d_iend)
38  dataList.push_back(*d_iter++);
39  link_iterator l_iter = obj.linkList.begin();
40  link_iterator l_iend = obj.linkList.end();
41  while (l_iter != l_iend)
42  linkList.push_back(*l_iter++);
43 }
44 
45 //--------------
46 // Destructor --
47 //--------------
49 
50 //--------------
51 // Operations --
52 //--------------
53 int DTKeyedConfig::getId() const { return cfgId; }
54 
55 void DTKeyedConfig::setId(int id) { cfgId = id; }
56 
57 void DTKeyedConfig::add(const std::string& data) { dataList.push_back(data); }
58 
59 void DTKeyedConfig::add(int id) { linkList.push_back(id); }
60 
62 
64 
66 
DTKeyedConfig::linkBegin
link_iterator linkBegin() const
Definition: DTKeyedConfig.cc:65
DTKeyedConfig::data_iterator
std::vector< std::string >::const_iterator data_iterator
Definition: DTKeyedConfig.h:54
DTKeyedConfig::add
void add(const std::string &data)
Definition: DTKeyedConfig.cc:57
getGTfromDQMFile.obj
obj
Definition: getGTfromDQMFile.py:32
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
cond
Definition: plugin.cc:23
DTKeyedConfig::setId
void setId(int id)
Definition: DTKeyedConfig.cc:55
DTKeyedConfig::dataList
std::vector< std::string > dataList
Definition: DTKeyedConfig.h:63
DTKeyedConfig::getId
int getId() const
Definition: DTKeyedConfig.cc:53
DTKeyedConfig::linkEnd
link_iterator linkEnd() const
Definition: DTKeyedConfig.cc:67
DTKeyedConfig::cfgId
int cfgId
Definition: DTKeyedConfig.h:62
DTKeyedConfig.h
DTKeyedConfig::DTKeyedConfig
DTKeyedConfig()
Definition: DTKeyedConfig.cc:31
DTKeyedConfig
Definition: DTKeyedConfig.h:35
DTKeyedConfig::linkList
std::vector< int > linkList
Definition: DTKeyedConfig.h:64
triggerObjects_cff.id
id
Definition: triggerObjects_cff.py:29
DTKeyedConfig::dataBegin
data_iterator dataBegin() const
Definition: DTKeyedConfig.cc:61
DTKeyedConfig::~DTKeyedConfig
~DTKeyedConfig() override
Definition: DTKeyedConfig.cc:48
DTKeyedConfig::dataEnd
data_iterator dataEnd() const
Definition: DTKeyedConfig.cc:63
data
char data[epos_bytes_allocation]
Definition: EPOS_Wrapper.h:79
DTKeyedConfig::link_iterator
std::vector< int >::const_iterator link_iterator
Definition: DTKeyedConfig.h:55