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