ATLAS Offline Software
CrestModel.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2019-2024 CERN for the benefit of the ATLAS collaboration
3  */
4 
5 #ifndef CREST_DTOS_HPP
6 #define CREST_DTOS_HPP
7 
8 #include <string>
9 #include <vector>
10 #include <optional>
11 #include "nlohmann/json.hpp"
13 
14 #include <optional>
15 
17 
18 class RespPage
19 {
20 public:
21  int size;
22  int64_t totalElements;
24  int number;
25 
26  json to_json() const;
27  static RespPage from_json(const json &j);
28 };
29 
31 {
32 public:
33  std::map<std::string, std::string> additionalProperties;
34 
35  json to_json() const;
36 
37  static GenericMap from_json(const json &j);
38 };
39 
41 {
42 private:
43 public:
44  virtual ~CrestBaseResponse() = default;
45  std::optional<std::string> datatype;
46  std::optional<RespPage> page;
47  std::optional<GenericMap> filter;
48  json to_json() const;
49  void load_from_json(const json &j);
50  virtual const char* getFormat() const =0;
51  virtual int64_t getSize() const =0;
52 };
53 
55 {
56 public:
57  std::string name;
58  int64_t validity;
59  std::string description;
60  std::string release;
61  std::optional<std::string> insertionTime;
62  std::string snapshotTime;
63  std::string scenario;
64  std::string workflow;
65  std::string type;
68 
69  // Ctor
70  GlobalTagDto(const char* _name, const char* _description, const char* _release, const char* _workflow);
71 
72  // Default Ctor
73  GlobalTagDto();
74 
75  json to_json() const ;
76 
77  static GlobalTagDto from_json(const json &j);
78 };
79 
81 {
82 public:
83  std::vector<GlobalTagDto> resources;
84  const char* getFormat() const {return "GlobalTagSetDto";}
85  int64_t getSize() const{return resources.size();}
86 
87  json to_json() const;
88 
89  static GlobalTagSetDto from_json(const json &j);
90 };
91 
97 class TagDto
98 {
99 public:
100  std::string name;
101  std::string timeType;
102  std::string objectType;
103  std::string synchronization;
104  std::string description;
107  std::optional<std::string> insertionTime;
108  std::optional<std::string> modificationTime;
109  // Ctor
110  TagDto(std::string _name, std::string _timeType, std::string _description): name(_name), timeType(_timeType),
111  objectType(""),
112  synchronization("none"),
113  description(_description),
115 
116  }
117  // Default Ctor
119 
120  }
121  json to_json() const;
122  static TagDto from_json(const json &j);
123 };
124 
126 {
127 public:
128  std::vector<TagDto> resources;
129  const char* getFormat() const {return "TagSetDto";}
130  int64_t getSize() const{return resources.size();}
131 
132  json to_json() const;
133 
134  static TagSetDto from_json(const json &j);
135 };
136 
137 
139 {
140 public:
141  std::string tagName;
142  std::string globalTagName;
143  std::string record;
144  std::string label;
145  // Ctor
146  GlobalTagMapDto(const std::string& tagName, const std::string& globalTagName, const std::string& record):
148 
149  }
150  // Default Ctor
151  GlobalTagMapDto(): tagName(""), globalTagName(""), record("none"), label("none"){
152 
153  }
154 
155  json to_json() const;
156  static GlobalTagMapDto from_json(const json &j);
157 };
158 
160 {
161 public:
162  std::vector<GlobalTagMapDto> resources;
163  const char* getFormat() const {return "GlobalTagMapSetDto";}
164  int64_t getSize() const{return resources.size();}
165 
166  json to_json() const;
167  static GlobalTagMapSetDto from_json(const json &j);
168 
169  static GlobalTagMapSetDto from_fs_json(const json &j);
170 };
171 
173 private:
174  std::vector< std::pair<std::string,std::string> > m_channels;
175 public:
178 
181  void add(const std::string& id,const std::string& name);
182  const std::vector< std::pair<std::string,std::string> >& getChannels() const {return m_channels;}
183  size_t getSize() const {return m_channels.size();}
184  json to_json() const;
185  static ChannelSetDto from_json(const json &j);
186 };
187 
189 private:
190  std::vector< std::pair<std::string,std::string> > m_row;
191 public:
196  const std::vector< std::pair<std::string,std::string> >& getColumns() const {return m_row;}
197  size_t getSize() const {return m_row.size();}
198  void add(const std::string& name,const std::string& type);
199  json to_json() const;
200  static PayloadSpecDto from_json(const json &j);
201 };
202 
204 private:
205  std::string m_node_description;
208 public:
210  }
211  TagInfoDto(const std::string& description,PayloadSpecDto& payload_spec,ChannelSetDto& channel_list):
213  }
216  }
219  }
221  {
222  return m_payload_spec;
223  }
225  {
226  return m_channel_list;
227  }
228  const std::string& getFolderDescription(){ return m_node_description;}
229  size_t getChannelSize() const {return m_channel_list.getSize();}
230  size_t getColumnSize() const {return m_payload_spec.getSize();}
231  json to_json() const;
232  static TagInfoDto from_json(const json &j);
233 
234 };
235 
236 
238 {
239 public:
240  std::string tagName;
241  std::string description;
242  std::optional<std::string> insertionTime;
244  // Ctor
245  TagMetaDto(const std::string& tagName, const std::string& description, const TagInfoDto& info):
247  }
248  // Default Ctor
250  }
251 
252  json to_json() const;
253  static TagMetaDto from_json(const json &j);
254 };
255 
257 {
258 public:
259  std::vector<TagMetaDto> resources;
260  const char* getFormat() const {return "TagMetaSetDto";}
261  int64_t getSize() const{return resources.size();}
262 
263  json to_json() const;
264  static TagMetaSetDto from_json(const json &j);
265 };
266 
267 class IovDto
268 {
269 public:
270  std::string tagName;
272  std::optional<std::string> insertionTime;
273  std::string payloadHash;
274  // Ctor
275  IovDto(const std::string& tagName, uint64_t since, const std::string& payloadHash):
277  }
278  // Default Ctor
279  IovDto(): tagName(""), since(0), payloadHash("") {
280  }
281 
282  json to_json() const;
283  static IovDto from_json(const json &j);
284 };
285 
287 {
288 public:
289  std::vector<IovDto> resources;
290  const char* getFormat() const {return "IovSetDto";}
291  int64_t getSize() const{return resources.size();}
292  std::vector<uint64_t> getListSince();
293  json to_json() const;
294 
295  static IovSetDto from_json(const json &j);
296 
297  static IovSetDto from_fs_json(const json &j);
298 };
299 
300 class StoreDto
301 {
302  std::optional<std::string> m_app_name;
303  std::optional<std::string> m_app_version;
304 public:
306  std::string hash;
307  std::string data;
308  std::optional<std::string> insertionTime;
309  StoreDto(uint64_t l_since, const std::string& l_data):
310  since(l_since), hash(""), data(l_data){
311 
312  }
313  // Ctor
314  StoreDto(uint64_t since, const std::string& hash, const std::string& data):
315  since(since), hash(hash), data(data){
316 
317  }
318  // Default Ctor
319  StoreDto(): since(0), hash(""), data(""){
320  }
321 
322  void setAppVersion (const char* str){m_app_version=str;}
323  void setAppName (const char* str){m_app_name=str;}
324  json getStreamerInfo() const;
325  json to_json() const;
326 
327  static StoreDto from_json(const json &j);
328 };
329 
331 {
332 public:
333  std::vector<StoreDto> resources;
334  const char* getFormat() const {return "StoreSetDto";}
335  int64_t getSize() const{return resources.size();}
336 
337  void push_back(StoreDto dto);
338  void clear();
339  json to_json() const;
340 
341  static StoreSetDto from_json(const json &j);
342 };
343 
345 {
346 public:
347  std::string hash;
348  std::string version;
349  std::string objectType;
350  std::string objectName;
351  std::string compressionType;
352  std::string checkSum;
353  int size;
354  std::optional<std::string> insertionTime;
355 
356  // Function to serialize the object to JSON
357 
358  json to_json() const;
359 
360  // Function to deserialize the object from JSON
361 
362  static PayloadDto from_json(const json &j);
363 };
364 
366 {
367 public:
368  std::vector<PayloadDto> resources;
369  const char* getFormat() const {return "PayloadSetDto";}
370  int64_t getSize() const{return resources.size();}
371 
372  // Function to serialize the object to JSON
373 
374  json to_json() const;
375 
376  // Function to deserialize the object from JSON
377 
378  static PayloadSetDto from_json(const json &j);
379 };
380 
381 #endif // CREST_DTOS_HPP
grepfile.info
info
Definition: grepfile.py:38
TagDto::description
std::string description
Definition: CrestModel.h:104
GlobalTagMapSetDto::from_json
static GlobalTagMapSetDto from_json(const json &j)
Definition: CrestModel.cxx:264
GlobalTagMapDto::record
std::string record
Definition: CrestModel.h:143
TagInfoDto::getChannelSize
size_t getChannelSize() const
Definition: CrestModel.h:229
IovSetDto::from_fs_json
static IovSetDto from_fs_json(const json &j)
Definition: CrestModel.cxx:531
TagDto::timeType
std::string timeType
Definition: CrestModel.h:101
TagMetaDto::tagInfo
TagInfoDto tagInfo
Definition: CrestModel.h:243
GlobalTagMapSetDto::from_fs_json
static GlobalTagMapSetDto from_fs_json(const json &j)
Definition: CrestModel.cxx:277
StoreDto
Definition: CrestModel.h:301
StoreDto::m_app_name
std::optional< std::string > m_app_name
Definition: CrestModel.h:302
PayloadSpecDto::PayloadSpecDto
PayloadSpecDto(PayloadSpecDto const &copy)
Definition: CrestModel.h:195
sendEI_SPB.ch
ch
Definition: sendEI_SPB.py:35
GlobalTagMapDto::to_json
json to_json() const
Definition: CrestModel.cxx:235
StoreDto::since
uint64_t since
Definition: CrestModel.h:305
GlobalTagDto::insertionTime
std::optional< std::string > insertionTime
Definition: CrestModel.h:61
GlobalTagDto::GlobalTagDto
GlobalTagDto()
Definition: CrestModel.cxx:126
TagInfoDto::setChannel
void setChannel(ChannelSetDto &ch)
Definition: CrestModel.h:217
IovSetDto::resources
std::vector< IovDto > resources
Definition: CrestModel.h:289
TagInfoDto::TagInfoDto
TagInfoDto(const std::string &description)
Definition: CrestModel.h:209
PayloadDto::size
int size
Definition: CrestModel.h:353
RespPage::size
int size
Definition: CrestModel.h:21
GlobalTagDto::validity
int64_t validity
Definition: CrestModel.h:58
RespPage::from_json
static RespPage from_json(const json &j)
Definition: CrestModel.cxx:20
TagInfoDto::m_channel_list
ChannelSetDto m_channel_list
Definition: CrestModel.h:207
TagInfoDto::m_payload_spec
PayloadSpecDto m_payload_spec
Definition: CrestModel.h:206
json
nlohmann::json json
Definition: HistogramDef.cxx:9
CrestBaseResponse::load_from_json
void load_from_json(const json &j)
Definition: CrestModel.cxx:85
ChannelSetDto::m_channels
std::vector< std::pair< std::string, std::string > > m_channels
Definition: CrestModel.h:174
IovDto::insertionTime
std::optional< std::string > insertionTime
Definition: CrestModel.h:272
GlobalTagDto::type
std::string type
Definition: CrestModel.h:65
PayloadSpecDto::operator=
PayloadSpecDto & operator=(PayloadSpecDto &&)=default
GlobalTagSetDto::resources
std::vector< GlobalTagDto > resources
Definition: CrestModel.h:83
CaloCondBlobAlgs_fillNoiseFromASCII.spec
spec
Definition: CaloCondBlobAlgs_fillNoiseFromASCII.py:47
TagDto::to_json
json to_json() const
Definition: CrestModel.cxx:172
StoreDto::hash
std::string hash
Definition: CrestModel.h:306
IovDto
Definition: CrestModel.h:268
ChannelSetDto::operator=
ChannelSetDto & operator=(const ChannelSetDto &)=default
CrestBaseResponse::getSize
virtual int64_t getSize() const =0
StoreDto::to_json
json to_json() const
Definition: CrestModel.cxx:547
GlobalTagMapDto::from_json
static GlobalTagMapDto from_json(const json &j)
Definition: CrestModel.cxx:243
PayloadSetDto::resources
std::vector< PayloadDto > resources
Definition: CrestModel.h:368
CrestException.h
IovDto::tagName
std::string tagName
Definition: CrestModel.h:270
GlobalTagSetDto::getSize
int64_t getSize() const
Definition: CrestModel.h:85
PayloadSpecDto
Definition: CrestModel.h:188
GlobalTagDto::snapshotTimeMilli
int64_t snapshotTimeMilli
Definition: CrestModel.h:66
PayloadDto::insertionTime
std::optional< std::string > insertionTime
Definition: CrestModel.h:354
TagSetDto
Definition: CrestModel.h:126
GlobalTagMapSetDto::getFormat
const char * getFormat() const
Definition: CrestModel.h:163
PayloadSpecDto::getColumns
const std::vector< std::pair< std::string, std::string > > & getColumns() const
Definition: CrestModel.h:196
TagDto::name
std::string name
Definition: CrestModel.h:100
ChannelSetDto::add
void add(const std::string &id, const std::string &name)
Definition: CrestModel.cxx:293
PayloadSpecDto::m_row
std::vector< std::pair< std::string, std::string > > m_row
Definition: CrestModel.h:190
GlobalTagMapDto::globalTagName
std::string globalTagName
Definition: CrestModel.h:142
PayloadSpecDto::getSize
size_t getSize() const
Definition: CrestModel.h:197
TagDto::from_json
static TagDto from_json(const json &j)
Definition: CrestModel.cxx:188
GlobalTagMapSetDto::resources
std::vector< GlobalTagMapDto > resources
Definition: CrestModel.h:162
TagMetaDto::to_json
json to_json() const
Definition: CrestModel.cxx:389
PayloadSetDto::getSize
int64_t getSize() const
Definition: CrestModel.h:370
GenericMap::to_json
json to_json() const
Definition: CrestModel.cxx:29
GlobalTagSetDto
Definition: CrestModel.h:81
PayloadSpecDto::PayloadSpecDto
PayloadSpecDto()
Definition: CrestModel.h:194
GlobalTagDto::release
std::string release
Definition: CrestModel.h:60
ChannelSetDto::to_json
json to_json() const
Definition: CrestModel.cxx:310
TagSetDto::getFormat
const char * getFormat() const
Definition: CrestModel.h:129
StoreDto::StoreDto
StoreDto()
Definition: CrestModel.h:319
IovDto::payloadHash
std::string payloadHash
Definition: CrestModel.h:273
TagMetaDto
Definition: CrestModel.h:238
GlobalTagSetDto::to_json
json to_json() const
Definition: CrestModel.cxx:101
GlobalTagDto::name
std::string name
Definition: CrestModel.h:57
PayloadDto
Definition: CrestModel.h:345
IovDto::to_json
json to_json() const
Definition: CrestModel.cxx:445
PayloadSpecDto::to_json
json to_json() const
Definition: CrestModel.cxx:355
RespPage::to_json
json to_json() const
Definition: CrestModel.cxx:12
ChannelSetDto
Definition: CrestModel.h:172
PayloadDto::version
std::string version
Definition: CrestModel.h:348
PayloadDto::to_json
json to_json() const
Definition: CrestModel.cxx:610
CrestBaseResponse::filter
std::optional< GenericMap > filter
Definition: CrestModel.h:47
PayloadDto::objectType
std::string objectType
Definition: CrestModel.h:349
TagDto::insertionTime
std::optional< std::string > insertionTime
Definition: CrestModel.h:107
TagSetDto::resources
std::vector< TagDto > resources
Definition: CrestModel.h:128
PayloadDto::objectName
std::string objectName
Definition: CrestModel.h:350
GlobalTagDto::from_json
static GlobalTagDto from_json(const json &j)
Definition: CrestModel.cxx:155
StoreSetDto::getSize
int64_t getSize() const
Definition: CrestModel.h:335
CrestBaseResponse::getFormat
virtual const char * getFormat() const =0
TagMetaSetDto::getFormat
const char * getFormat() const
Definition: CrestModel.h:260
RespPage
Definition: CrestModel.h:19
TagMetaDto::TagMetaDto
TagMetaDto()
Definition: CrestModel.h:249
GlobalTagSetDto::getFormat
const char * getFormat() const
Definition: CrestModel.h:84
GlobalTagDto
Definition: CrestModel.h:55
PayloadSpecDto::from_json
static PayloadSpecDto from_json(const json &j)
Definition: CrestModel.cxx:325
json
nlohmann::json json
Definition: CrestModel.h:16
TagInfoDto
Definition: CrestModel.h:203
PayloadDto::from_json
static PayloadDto from_json(const json &j)
Definition: CrestModel.cxx:627
GlobalTagDto::description
std::string description
Definition: CrestModel.h:59
TagDto
The TagDto class It contains all fields of the TagDto class from the CREST API.
Definition: CrestModel.h:98
PayloadSpecDto::add
void add(const std::string &name, const std::string &type)
Definition: CrestModel.cxx:321
ChannelSetDto::operator=
ChannelSetDto & operator=(ChannelSetDto &&)=default
RespPage::totalElements
int64_t totalElements
Definition: CrestModel.h:22
StoreDto::m_app_version
std::optional< std::string > m_app_version
Definition: CrestModel.h:303
GlobalTagDto::snapshotTime
std::string snapshotTime
Definition: CrestModel.h:62
PayloadSetDto::to_json
json to_json() const
Definition: CrestModel.cxx:644
TagDto::TagDto
TagDto(std::string _name, std::string _timeType, std::string _description)
Definition: CrestModel.h:110
TagMetaSetDto
Definition: CrestModel.h:257
TagSetDto::to_json
json to_json() const
Definition: CrestModel.cxx:212
PayloadSetDto::from_json
static PayloadSetDto from_json(const json &j)
Definition: CrestModel.cxx:658
CrestBaseResponse
Definition: CrestModel.h:41
ChannelSetDto::from_json
static ChannelSetDto from_json(const json &j)
Definition: CrestModel.cxx:297
StoreSetDto::push_back
void push_back(StoreDto dto)
Definition: CrestModel.cxx:587
TagDto::modificationTime
std::optional< std::string > modificationTime
Definition: CrestModel.h:108
xAOD::uint64_t
uint64_t
Definition: EventInfo_v1.cxx:123
doL1CaloHVCorrections.channel_list
channel_list
Definition: doL1CaloHVCorrections.py:320
PayloadDto::checkSum
std::string checkSum
Definition: CrestModel.h:352
GlobalTagMapSetDto::getSize
int64_t getSize() const
Definition: CrestModel.h:164
IovSetDto::getFormat
const char * getFormat() const
Definition: CrestModel.h:290
GlobalTagMapSetDto
Definition: CrestModel.h:160
StoreSetDto::from_json
static StoreSetDto from_json(const json &j)
Definition: CrestModel.cxx:596
RespPage::number
int number
Definition: CrestModel.h:24
GlobalTagMapDto::GlobalTagMapDto
GlobalTagMapDto()
Definition: CrestModel.h:151
TagInfoDto::to_json
json to_json() const
Definition: CrestModel.cxx:366
CrestBaseResponse::datatype
std::optional< std::string > datatype
Definition: CrestModel.h:45
StoreSetDto::clear
void clear()
Definition: CrestModel.cxx:591
GlobalTagMapSetDto::to_json
json to_json() const
Definition: CrestModel.cxx:253
StoreDto::data
std::string data
Definition: CrestModel.h:307
TagInfoDto::getPayloadSpec
const PayloadSpecDto & getPayloadSpec()
Definition: CrestModel.h:220
TagDto::lastValidatedTime
uint64_t lastValidatedTime
Definition: CrestModel.h:105
PayloadDto::compressionType
std::string compressionType
Definition: CrestModel.h:351
IovSetDto::getSize
int64_t getSize() const
Definition: CrestModel.h:291
TagMetaSetDto::getSize
int64_t getSize() const
Definition: CrestModel.h:261
GenericMap
Definition: CrestModel.h:31
StoreDto::setAppName
void setAppName(const char *str)
Definition: CrestModel.h:323
StoreDto::StoreDto
StoreDto(uint64_t l_since, const std::string &l_data)
Definition: CrestModel.h:309
PayloadSpecDto::operator=
PayloadSpecDto & operator=(const PayloadSpecDto &)=default
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
PayloadSetDto
Definition: CrestModel.h:366
PayloadDto::hash
std::string hash
Definition: CrestModel.h:347
TagDto::endOfValidity
uint64_t endOfValidity
Definition: CrestModel.h:106
GlobalTagMapDto::tagName
std::string tagName
Definition: CrestModel.h:141
StoreDto::getStreamerInfo
json getStreamerInfo() const
Definition: CrestModel.cxx:556
TagInfoDto::m_node_description
std::string m_node_description
Definition: CrestModel.h:205
RespPage::totalPages
int totalPages
Definition: CrestModel.h:23
GenericMap::additionalProperties
std::map< std::string, std::string > additionalProperties
Definition: CrestModel.h:33
TagInfoDto::from_json
static TagInfoDto from_json(const json &j)
Definition: CrestModel.cxx:374
IovSetDto::getListSince
std::vector< uint64_t > getListSince()
Definition: CrestModel.cxx:509
StoreSetDto::resources
std::vector< StoreDto > resources
Definition: CrestModel.h:333
TagMetaDto::description
std::string description
Definition: CrestModel.h:241
GlobalTagDto::scenario
std::string scenario
Definition: CrestModel.h:63
IovDto::IovDto
IovDto()
Definition: CrestModel.h:279
IovSetDto::from_json
static IovSetDto from_json(const json &j)
Definition: CrestModel.cxx:518
StoreDto::from_json
static StoreDto from_json(const json &j)
Definition: CrestModel.cxx:566
StoreDto::setAppVersion
void setAppVersion(const char *str)
Definition: CrestModel.h:322
ChannelSetDto::getSize
size_t getSize() const
Definition: CrestModel.h:183
TagMetaDto::from_json
static TagMetaDto from_json(const json &j)
Definition: CrestModel.cxx:401
IovDto::since
uint64_t since
Definition: CrestModel.h:271
TagMetaDto::tagName
std::string tagName
Definition: CrestModel.h:240
python.CaloScaleNoiseConfig.str
str
Definition: CaloScaleNoiseConfig.py:78
TagInfoDto::getChannels
const ChannelSetDto & getChannels()
Definition: CrestModel.h:224
ChannelSetDto::getChannels
const std::vector< std::pair< std::string, std::string > > & getChannels() const
Definition: CrestModel.h:182
StoreSetDto::to_json
json to_json() const
Definition: CrestModel.cxx:576
StoreSetDto::getFormat
const char * getFormat() const
Definition: CrestModel.h:334
GlobalTagDto::to_json
json to_json() const
Definition: CrestModel.cxx:138
IovSetDto
Definition: CrestModel.h:287
TagSetDto::from_json
static TagSetDto from_json(const json &j)
Definition: CrestModel.cxx:223
python.CaloScaleNoiseConfig.type
type
Definition: CaloScaleNoiseConfig.py:78
TagSetDto::getSize
int64_t getSize() const
Definition: CrestModel.h:130
CrestBaseResponse::~CrestBaseResponse
virtual ~CrestBaseResponse()=default
TagInfoDto::getFolderDescription
const std::string & getFolderDescription()
Definition: CrestModel.h:228
PayloadSetDto::getFormat
const char * getFormat() const
Definition: CrestModel.h:369
CrestBaseResponse::page
std::optional< RespPage > page
Definition: CrestModel.h:46
StoreDto::insertionTime
std::optional< std::string > insertionTime
Definition: CrestModel.h:308
CrestBaseResponse::to_json
json to_json() const
Definition: CrestModel.cxx:54
TagMetaSetDto::resources
std::vector< TagMetaDto > resources
Definition: CrestModel.h:259
str
Definition: BTagTrackIpAccessor.cxx:11
GlobalTagDto::workflow
std::string workflow
Definition: CrestModel.h:64
ChannelSetDto::ChannelSetDto
ChannelSetDto()
Definition: CrestModel.h:179
TagDto::objectType
std::string objectType
Definition: CrestModel.h:102
calibdata.copy
bool copy
Definition: calibdata.py:27
TagDto::TagDto
TagDto()
Definition: CrestModel.h:118
ChannelSetDto::ChannelSetDto
ChannelSetDto(ChannelSetDto const &copy)
Definition: CrestModel.h:180
TagInfoDto::TagInfoDto
TagInfoDto(const std::string &description, PayloadSpecDto &payload_spec, ChannelSetDto &channel_list)
Definition: CrestModel.h:211
TagInfoDto::setPayloadSpec
void setPayloadSpec(PayloadSpecDto &spec)
Definition: CrestModel.h:214
StoreSetDto
Definition: CrestModel.h:331
StoreDto::StoreDto
StoreDto(uint64_t since, const std::string &hash, const std::string &data)
Definition: CrestModel.h:314
GlobalTagMapDto::GlobalTagMapDto
GlobalTagMapDto(const std::string &tagName, const std::string &globalTagName, const std::string &record)
Definition: CrestModel.h:146
GlobalTagDto::insertionTimeMilli
int64_t insertionTimeMilli
Definition: CrestModel.h:67
IovDto::IovDto
IovDto(const std::string &tagName, uint64_t since, const std::string &payloadHash)
Definition: CrestModel.h:275
TagInfoDto::getColumnSize
size_t getColumnSize() const
Definition: CrestModel.h:230
GlobalTagSetDto::from_json
static GlobalTagSetDto from_json(const json &j)
Definition: CrestModel.cxx:113
TagMetaSetDto::from_json
static TagMetaSetDto from_json(const json &j)
Definition: CrestModel.cxx:432
TagMetaSetDto::to_json
json to_json() const
Definition: CrestModel.cxx:421
IovDto::from_json
static IovDto from_json(const json &j)
Definition: CrestModel.cxx:456
TagDto::synchronization
std::string synchronization
Definition: CrestModel.h:103
GlobalTagMapDto
Definition: CrestModel.h:139
GenericMap::from_json
static GenericMap from_json(const json &j)
Definition: CrestModel.cxx:41
GlobalTagMapDto::label
std::string label
Definition: CrestModel.h:144
IovSetDto::to_json
json to_json() const
Definition: CrestModel.cxx:497
TagMetaDto::TagMetaDto
TagMetaDto(const std::string &tagName, const std::string &description, const TagInfoDto &info)
Definition: CrestModel.h:245
description
std::string description
glabal timer - how long have I taken so far?
Definition: hcg.cxx:88
TagMetaDto::insertionTime
std::optional< std::string > insertionTime
Definition: CrestModel.h:242