ATLAS Offline Software
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
GlobalTagMapDto Class Reference

#include <CrestModel.h>

Collaboration diagram for GlobalTagMapDto:

Public Member Functions

 GlobalTagMapDto (std::string tagName, std::string globalTagName, std::string record)
 
 GlobalTagMapDto ()
 
json to_json () const
 

Static Public Member Functions

static GlobalTagMapDto from_json (const json &j)
 

Public Attributes

std::string tagName
 
std::string globalTagName
 
std::string record
 
std::string label
 

Detailed Description

Definition at line 138 of file CrestModel.h.

Constructor & Destructor Documentation

◆ GlobalTagMapDto() [1/2]

GlobalTagMapDto::GlobalTagMapDto ( std::string  tagName,
std::string  globalTagName,
std::string  record 
)
inline

Definition at line 146 of file CrestModel.h.

146  :
148 
149  }

◆ GlobalTagMapDto() [2/2]

GlobalTagMapDto::GlobalTagMapDto ( )
inline

Definition at line 151 of file CrestModel.h.

151  : tagName(""), globalTagName(""), record("none"), label("none"){
152 
153  }

Member Function Documentation

◆ from_json()

GlobalTagMapDto GlobalTagMapDto::from_json ( const json j)
static

Definition at line 243 of file CrestModel.cxx.

244 {
245  GlobalTagMapDto tagmap;
246  tagmap.tagName = j.value("tagName", "");
247  tagmap.globalTagName = j.value("globalTagName", "");
248  tagmap.record = j.value("record", "none");
249  tagmap.label = j.value("label", "none");
250  return tagmap;
251 }

◆ to_json()

json GlobalTagMapDto::to_json ( ) const

Definition at line 235 of file CrestModel.cxx.

236 {
237  return {
238  {"tagName", tagName},
239  {"globalTagName", globalTagName},
240  {"record", record},
241  {"label", label}};
242 }

Member Data Documentation

◆ globalTagName

std::string GlobalTagMapDto::globalTagName

Definition at line 142 of file CrestModel.h.

◆ label

std::string GlobalTagMapDto::label

Definition at line 144 of file CrestModel.h.

◆ record

std::string GlobalTagMapDto::record

Definition at line 143 of file CrestModel.h.

◆ tagName

std::string GlobalTagMapDto::tagName

Definition at line 141 of file CrestModel.h.


The documentation for this class was generated from the following files:
GlobalTagMapDto::record
std::string record
Definition: CrestModel.h:143
GlobalTagMapDto::globalTagName
std::string globalTagName
Definition: CrestModel.h:142
GlobalTagMapDto::tagName
std::string tagName
Definition: CrestModel.h:141
GlobalTagMapDto
Definition: CrestModel.h:139
GlobalTagMapDto::label
std::string label
Definition: CrestModel.h:144