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
68
69
|
#ifndef DTKeyedConfig_H
#define DTKeyedConfig_H
/** \class DTKeyedConfig
*
* Description:
*
*
* $Date: 2010/03/18 16:02:30 $
* $Revision: 1.1.2.1 $
* \author Paolo Ronchese INFN Padova
*
*/
//----------------------
// Base Class Headers --
//----------------------
#include "CondFormats/Serialization/interface/Serializable.h"
#include "CondFormats/Common/interface/BaseKeyed.h"
//------------------------------------
// Collaborating Class Declarations --
//------------------------------------
//---------------
// C++ Headers --
//---------------
#include <string>
#include <vector>
// ---------------------
// -- Class Interface --
// ---------------------
class DTKeyedConfig : public cond::BaseKeyed {
public:
/** Constructor
*/
DTKeyedConfig();
DTKeyedConfig(const DTKeyedConfig& obj);
/** Destructor
*/
~DTKeyedConfig() override;
/** Operations
*/
///
int getId() const;
void setId(int id);
void add(const std::string& data);
void add(int id);
typedef std::vector<std::string>::const_iterator data_iterator;
typedef std::vector<int>::const_iterator link_iterator;
data_iterator dataBegin() const;
data_iterator dataEnd() const;
link_iterator linkBegin() const;
link_iterator linkEnd() const;
private:
int cfgId;
std::vector<std::string> dataList;
std::vector<int> linkList;
COND_SERIALIZABLE;
};
#endif // DTKeyedConfig_H
|