CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | Friends
edm::Entry Class Reference

#include <Entry.h>

Public Member Functions

 Entry (std::string const &name, bool val, bool is_tracked)
 
 Entry (std::string const &name, int val, bool is_tracked)
 
 Entry (std::string const &name, std::vector< int > const &val, bool is_tracked)
 
 Entry (std::string const &name, unsigned val, bool is_tracked)
 
 Entry (std::string const &name, std::vector< unsigned > const &val, bool is_tracked)
 
 Entry (std::string const &name, long long val, bool is_tracked)
 
 Entry (std::string const &name, std::vector< long long > const &val, bool is_tracked)
 
 Entry (std::string const &name, unsigned long long val, bool is_tracked)
 
 Entry (std::string const &name, std::vector< unsigned long long > const &val, bool is_tracked)
 
 Entry (std::string const &name, double val, bool is_tracked)
 
 Entry (std::string const &name, std::vector< double > const &val, bool is_tracked)
 
 Entry (std::string const &name, std::string const &val, bool is_tracked)
 
 Entry (std::string const &name, std::vector< std::string > const &val, bool is_tracked)
 
 Entry (std::string const &name, FileInPath const &val, bool is_tracked)
 
 Entry (std::string const &name, InputTag const &tag, bool is_tracked)
 
 Entry (std::string const &name, std::vector< InputTag > const &vtag, bool is_tracked)
 
 Entry (std::string const &name, ESInputTag const &tag, bool is_tracked)
 
 Entry (std::string const &name, std::vector< ESInputTag > const &vtag, bool is_tracked)
 
 Entry (std::string const &name, EventID const &tag, bool is_tracked)
 
 Entry (std::string const &name, std::vector< EventID > const &vtag, bool is_tracked)
 
 Entry (std::string const &name, LuminosityBlockID const &tag, bool is_tracked)
 
 Entry (std::string const &name, std::vector< LuminosityBlockID > const &vtag, bool is_tracked)
 
 Entry (std::string const &name, LuminosityBlockRange const &tag, bool is_tracked)
 
 Entry (std::string const &name, std::vector< LuminosityBlockRange > const &vtag, bool is_tracked)
 
 Entry (std::string const &name, EventRange const &tag, bool is_tracked)
 
 Entry (std::string const &name, std::vector< EventRange > const &vtag, bool is_tracked)
 
 Entry (std::string const &name, ParameterSet const &val, bool is_tracked)
 
 Entry (std::string const &name, std::vector< ParameterSet > const &val, bool is_tracked)
 
 Entry (std::string name, std::string_view)
 
 Entry (std::string name, std::string_view type, std::string_view value, bool is_tracked)
 
 Entry (std::string name, std::string_view type, std::vector< std::string > const &value, bool is_tracked)
 
 Entry (Entry const &)=default
 
 Entry (Entry &&)=default
 
bool getBool () const
 
double getDouble () const
 
ESInputTag getESInputTag () const
 
EventID getEventID () const
 
EventRange getEventRange () const
 
FileInPath getFileInPath () const
 
InputTag getInputTag () const
 
int getInt32 () const
 
long long getInt64 () const
 
LuminosityBlockID getLuminosityBlockID () const
 
LuminosityBlockRange getLuminosityBlockRange () const
 
ParameterSet getPSet () const
 
std::string getString () const
 
unsigned getUInt32 () const
 
unsigned long long getUInt64 () const
 
std::vector< double > getVDouble () const
 
std::vector< ESInputTaggetVESInputTag () const
 
std::vector< EventIDgetVEventID () const
 
std::vector< EventRangegetVEventRange () const
 
std::vector< InputTaggetVInputTag () const
 
std::vector< int > getVInt32 () const
 
std::vector< long long > getVInt64 () const
 
std::vector< LuminosityBlockIDgetVLuminosityBlockID () const
 
std::vector< LuminosityBlockRangegetVLuminosityBlockRange () const
 
std::vector< ParameterSetgetVPSet () const
 
std::vector< std::string > getVString () const
 
std::vector< unsigned > getVUInt32 () const
 
std::vector< unsigned long long > getVUInt64 () const
 
bool isTracked () const
 
Entryoperator= (Entry const &)=default
 
Entryoperator= (Entry &&)=default
 
size_t sizeOfString () const
 
void toDigest (cms::Digest &digest) const
 
std::string toString () const
 
void toString (std::string &result) const
 
char typeCode () const
 
 ~Entry ()=default
 

Static Public Member Functions

static std::string_view bounds (std::string_view, std::size_t iEndHint)
 

Private Member Functions

bool fromString (std::string_view::const_iterator b, std::string_view::const_iterator e)
 
void throwEncodeError (char const *type) const
 
void throwEntryError (char const *expectedType, std::string const &badRep) const
 
void throwValueError (char const *expectedType) const
 
void validate () const
 

Private Attributes

std::string name_
 
std::string rep_
 
char tracked_
 
char type_
 

Friends

std::ostream & operator<< (std::ostream &ost, Entry const &entry)
 

Detailed Description

Definition at line 40 of file Entry.h.

Constructor & Destructor Documentation

◆ Entry() [1/33]

Entry::Entry ( std::string const &  name,
bool  val,
bool  is_tracked 
)

Definition at line 432 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

433  : name_(name), rep_(), type_(kTbool), tracked_(is_tracked ? '+' : '-') {
434  if (!encode(rep_, val))
435  throwEncodeError("bool");
436  validate();
437  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
Definition: Entry.cc:23
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [2/33]

Entry::Entry ( std::string const &  name,
int  val,
bool  is_tracked 
)

Definition at line 442 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

443  : name_(name), rep_(), type_(kTint32), tracked_(is_tracked ? '+' : '-') {
444  if (!encode(rep_, val))
445  throwEncodeError("int");
446  validate();
447  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
Definition: Entry.cc:25
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [3/33]

Entry::Entry ( std::string const &  name,
std::vector< int > const &  val,
bool  is_tracked 
)

Definition at line 452 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

453  : name_(name), rep_(), type_(kTvint32), tracked_(is_tracked ? '+' : '-') {
454  if (!encode(rep_, val))
455  throwEncodeError("vector<int>");
456  validate();
457  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [4/33]

Entry::Entry ( std::string const &  name,
unsigned  val,
bool  is_tracked 
)

Definition at line 462 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

463  : name_(name), rep_(), type_(kTuint32), tracked_(is_tracked ? '+' : '-') {
464  if (!encode(rep_, val))
465  throwEncodeError("unsigned int");
466  validate();
467  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [5/33]

Entry::Entry ( std::string const &  name,
std::vector< unsigned > const &  val,
bool  is_tracked 
)

Definition at line 472 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

473  : name_(name), rep_(), type_(kTvuint32), tracked_(is_tracked ? '+' : '-') {
474  if (!encode(rep_, val))
475  throwEncodeError("vector<unsigned int>");
476  validate();
477  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [6/33]

Entry::Entry ( std::string const &  name,
long long  val,
bool  is_tracked 
)

Definition at line 482 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

483  : name_(name), rep_(), type_(kTint64), tracked_(is_tracked ? '+' : '-') {
484  if (!encode(rep_, val))
485  throwEncodeError("int64");
486  validate();
487  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
Definition: Entry.cc:29
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [7/33]

Entry::Entry ( std::string const &  name,
std::vector< long long > const &  val,
bool  is_tracked 
)

Definition at line 492 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

493  : name_(name), rep_(), type_(kTvint64), tracked_(is_tracked ? '+' : '-') {
494  if (!encode(rep_, val))
495  throwEncodeError("vector<int64>");
496  validate();
497  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [8/33]

Entry::Entry ( std::string const &  name,
unsigned long long  val,
bool  is_tracked 
)

Definition at line 502 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

503  : name_(name), rep_(), type_(kTuint64), tracked_(is_tracked ? '+' : '-') {
504  if (!encode(rep_, val))
505  throwEncodeError("unsigned int64");
506  validate();
507  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [9/33]

Entry::Entry ( std::string const &  name,
std::vector< unsigned long long > const &  val,
bool  is_tracked 
)

Definition at line 512 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

513  : name_(name), rep_(), type_(kTvuint64), tracked_(is_tracked ? '+' : '-') {
514  if (!encode(rep_, val))
515  throwEncodeError("vector<unsigned int64>");
516  validate();
517  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [10/33]

Entry::Entry ( std::string const &  name,
double  val,
bool  is_tracked 
)

Definition at line 522 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

523  : name_(name), rep_(), type_(kTdouble), tracked_(is_tracked ? '+' : '-') {
524  if (!encode(rep_, val))
525  throwEncodeError("double");
526  validate();
527  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [11/33]

Entry::Entry ( std::string const &  name,
std::vector< double > const &  val,
bool  is_tracked 
)

Definition at line 532 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

533  : name_(name), rep_(), type_(kTvdouble), tracked_(is_tracked ? '+' : '-') {
534  if (!encode(rep_, val))
535  throwEncodeError("vector<double>");
536  validate();
537  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [12/33]

Entry::Entry ( std::string const &  name,
std::string const &  val,
bool  is_tracked 
)

Definition at line 542 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

543  : name_(name), rep_(), type_(kTstringRaw), tracked_(is_tracked ? '+' : '-') {
544  if (!encode(rep_, val))
545  throwEncodeError("string");
546  validate();
547  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [13/33]

Entry::Entry ( std::string const &  name,
std::vector< std::string > const &  val,
bool  is_tracked 
)

Definition at line 552 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

553  : name_(name), rep_(), type_(kTvstringRaw), tracked_(is_tracked ? '+' : '-') {
554  if (!encode(rep_, val))
555  throwEncodeError("vector<string>");
556  validate();
557  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [14/33]

Entry::Entry ( std::string const &  name,
FileInPath const &  val,
bool  is_tracked 
)

Definition at line 562 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

563  : name_(name), rep_(), type_(kTFileInPath), tracked_(is_tracked ? '+' : '-') {
564  if (!encode(rep_, val))
565  throwEncodeError("FileInPath");
566  validate();
567  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [15/33]

Entry::Entry ( std::string const &  name,
InputTag const &  tag,
bool  is_tracked 
)

Definition at line 572 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

573  : name_(name), rep_(), type_(kTInputTag), tracked_(is_tracked ? '+' : '-') {
574  if (!encode(rep_, val))
575  throwEncodeError("InputTag");
576  validate();
577  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [16/33]

Entry::Entry ( std::string const &  name,
std::vector< InputTag > const &  vtag,
bool  is_tracked 
)

Definition at line 582 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

583  : name_(name), rep_(), type_(kTVInputTag), tracked_(is_tracked ? '+' : '-') {
584  if (!encode(rep_, val))
585  throwEncodeError("VInputTag");
586  validate();
587  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [17/33]

Entry::Entry ( std::string const &  name,
ESInputTag const &  tag,
bool  is_tracked 
)

Definition at line 592 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

593  : name_(name), rep_(), type_(kTESInputTag), tracked_(is_tracked ? '+' : '-') {
594  if (!encode(rep_, val))
595  throwEncodeError("InputTag");
596  validate();
597  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [18/33]

Entry::Entry ( std::string const &  name,
std::vector< ESInputTag > const &  vtag,
bool  is_tracked 
)

Definition at line 602 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

603  : name_(name), rep_(), type_(kTVESInputTag), tracked_(is_tracked ? '+' : '-') {
604  if (!encode(rep_, val))
605  throwEncodeError("VESInputTag");
606  validate();
607  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [19/33]

Entry::Entry ( std::string const &  name,
EventID const &  tag,
bool  is_tracked 
)

Definition at line 612 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

613  : name_(name), rep_(), type_(kTEventID), tracked_(is_tracked ? '+' : '-') {
614  if (!encode(rep_, val))
615  throwEncodeError("EventID");
616  validate();
617  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [20/33]

Entry::Entry ( std::string const &  name,
std::vector< EventID > const &  vtag,
bool  is_tracked 
)

Definition at line 622 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

623  : name_(name), rep_(), type_(kTVEventID), tracked_(is_tracked ? '+' : '-') {
624  if (!encode(rep_, val))
625  throwEncodeError("VEventID");
626  validate();
627  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [21/33]

Entry::Entry ( std::string const &  name,
LuminosityBlockID const &  tag,
bool  is_tracked 
)

Definition at line 632 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

633  : name_(name), rep_(), type_(kTLuminosityBlockID), tracked_(is_tracked ? '+' : '-') {
634  if (!encode(rep_, val))
635  throwEncodeError("LuminosityBlockID");
636  validate();
637  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [22/33]

Entry::Entry ( std::string const &  name,
std::vector< LuminosityBlockID > const &  vtag,
bool  is_tracked 
)

Definition at line 642 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

643  : name_(name), rep_(), type_(kTVLuminosityBlockID), tracked_(is_tracked ? '+' : '-') {
644  if (!encode(rep_, val))
645  throwEncodeError("VLuminosityBlockID");
646  validate();
647  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [23/33]

Entry::Entry ( std::string const &  name,
LuminosityBlockRange const &  tag,
bool  is_tracked 
)

Definition at line 652 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

653  : name_(name), rep_(), type_(kTLuminosityBlockRange), tracked_(is_tracked ? '+' : '-') {
654  if (!encode(rep_, val))
655  throwEncodeError("LuminosityBlockRange");
656  validate();
657  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [24/33]

Entry::Entry ( std::string const &  name,
std::vector< LuminosityBlockRange > const &  vtag,
bool  is_tracked 
)

Definition at line 662 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

663  : name_(name), rep_(), type_(kTVLuminosityBlockRange), tracked_(is_tracked ? '+' : '-') {
664  if (!encode(rep_, val))
665  throwEncodeError("VLuminosityBlockRange");
666  validate();
667  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [25/33]

Entry::Entry ( std::string const &  name,
EventRange const &  tag,
bool  is_tracked 
)

Definition at line 672 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

673  : name_(name), rep_(), type_(kTEventRange), tracked_(is_tracked ? '+' : '-') {
674  if (!encode(rep_, val))
675  throwEncodeError("EventRange");
676  validate();
677  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [26/33]

Entry::Entry ( std::string const &  name,
std::vector< EventRange > const &  vtag,
bool  is_tracked 
)

Definition at line 682 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

683  : name_(name), rep_(), type_(kTVEventRange), tracked_(is_tracked ? '+' : '-') {
684  if (!encode(rep_, val))
685  throwEncodeError("VEventRange");
686  validate();
687  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [27/33]

Entry::Entry ( std::string const &  name,
ParameterSet const &  val,
bool  is_tracked 
)

Definition at line 692 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

693  : name_(name), rep_(), type_(kTPSet), tracked_(is_tracked ? '+' : '-') {
694  if (!encode(rep_, val))
695  throwEncodeError("ParameterSet");
696  validate();
697  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
Definition: Entry.cc:39
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [28/33]

Entry::Entry ( std::string const &  name,
std::vector< ParameterSet > const &  val,
bool  is_tracked 
)

Definition at line 702 of file Entry.cc.

References edm::encode(), rep_, throwEncodeError(), heppy_batch::val, and validate().

703  : name_(name), rep_(), type_(kTvPSet), tracked_(is_tracked ? '+' : '-') {
704  if (!encode(rep_, val))
705  throwEncodeError("vector<ParameterSet>");
706  validate();
707  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool encode(std::string &, bool)
Definition: types.cc:86
Definition: Entry.cc:40
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ Entry() [29/33]

Entry::Entry ( std::string  name,
std::string_view  code 
)

Definition at line 712 of file Entry.cc.

References fromString(), throwEncodeError(), and validate().

712  : name_(std::move(name)), rep_(), type_('?'), tracked_('?') {
713  if (!fromString(code.begin(), code.end()))
714  throwEncodeError("coded string");
715  validate();
716  }
void validate() const
Definition: Entry.cc:220
void throwEncodeError(char const *type) const
Definition: Entry.cc:1308
bool fromString(std::string_view::const_iterator b, std::string_view::const_iterator e)
Definition: Entry.cc:828
char tracked_
Definition: Entry.h:187
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
def move(src, dest)
Definition: eostools.py:511
std::string rep_
Definition: Entry.h:185

◆ Entry() [30/33]

Entry::Entry ( std::string  name,
std::string_view  type,
std::string_view  value,
bool  is_tracked 
)

Definition at line 718 of file Entry.cc.

References codeFromType(), edm::errors::Configuration, Exception, fromString(), AlCaHLTBitMon_QueryRunRegistry::string, findQualityFiles::v, validate(), and relativeConstraints::value.

719  : name_(std::move(name)), rep_(), type_('?'), tracked_('?') {
720  std::string codedString(is_tracked ? "-" : "+");
721 
722  codedString += codeFromType(type);
723  codedString += '(';
724  codedString += value;
725  codedString += ')';
726 
727  std::string_view v = codedString;
728  if (!fromString(v.begin(), v.end())) {
729  throw Exception(errors::Configuration) << "bad encoded Entry string " << codedString;
730  }
731  validate();
732  }
void validate() const
Definition: Entry.cc:220
bool fromString(std::string_view::const_iterator b, std::string_view::const_iterator e)
Definition: Entry.cc:828
char tracked_
Definition: Entry.h:187
static char codeFromType(std::string_view iType)
Definition: Entry.cc:208
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
def move(src, dest)
Definition: eostools.py:511
std::string rep_
Definition: Entry.h:185

◆ Entry() [31/33]

Entry::Entry ( std::string  name,
std::string_view  type,
std::vector< std::string > const &  value,
bool  is_tracked 
)

Definition at line 734 of file Entry.cc.

References codeFromType(), edm::errors::Configuration, MillePedeFileConverter_cfg::e, Exception, fromString(), mps_fire::i, AlCaHLTBitMon_QueryRunRegistry::string, findQualityFiles::v, and validate().

735  : name_(std::move(name)), rep_(), type_('?'), tracked_('?') {
736  std::string codedString(is_tracked ? "-" : "+");
737 
738  codedString += codeFromType(type);
739  codedString += '(';
740  codedString += '{';
741  std::vector<std::string>::const_iterator i = value.begin();
742  std::vector<std::string>::const_iterator e = value.end();
743  std::string const kSeparator(",");
744  std::string sep("");
745  for (; i != e; ++i) {
746  codedString += sep;
747  codedString += *i;
748  sep = kSeparator;
749  }
750  codedString += '}';
751  codedString += ')';
752 
753  std::string_view v = codedString;
754  if (!fromString(v.begin(), v.end())) {
755  throw Exception(errors::Configuration) << "bad encoded Entry string " << codedString;
756  }
757  validate();
758  }
void validate() const
Definition: Entry.cc:220
bool fromString(std::string_view::const_iterator b, std::string_view::const_iterator e)
Definition: Entry.cc:828
char tracked_
Definition: Entry.h:187
static char codeFromType(std::string_view iType)
Definition: Entry.cc:208
Definition: value.py:1
std::string name_
Definition: Entry.h:184
char type_
Definition: Entry.h:186
def move(src, dest)
Definition: eostools.py:511
std::string rep_
Definition: Entry.h:185

◆ ~Entry()

edm::Entry::~Entry ( )
default

◆ Entry() [32/33]

edm::Entry::Entry ( Entry const &  )
default

◆ Entry() [33/33]

edm::Entry::Entry ( Entry &&  )
default

Member Function Documentation

◆ bounds()

std::string_view Entry::bounds ( std::string_view  iView,
std::size_t  iEndHint 
)
static

Definition at line 760 of file Entry.cc.

References edm::decode_pset_extent(), edm::decode_string_extent(), edm::decode_vpset_extent(), edm::decode_vstring_extent(), kTPSet, kTstringRaw, kTvPSet, and kTvstringRaw.

Referenced by edm::ParameterSet::extent(), and edm::ParameterSet::fromString().

760  {
761  if (iView.size() < 4) {
762  return {};
763  }
764  if (iView[1] == kTPSet) {
765  auto extent = edm::decode_pset_extent(iView.substr(3));
766  if (not extent) {
767  return {};
768  }
769  return iView.substr(0, extent->size() + 3 + 1);
770  } else if (iView[1] == kTvPSet) {
771  auto extent = edm::decode_vpset_extent(iView.substr(3));
772  if (not extent) {
773  return {};
774  }
775  return iView.substr(0, extent->size() + 3 + 1);
776  } else if (iView[1] != kTstringRaw and iView[1] != kTvstringRaw) {
777  return iView.substr(0, iEndHint);
778  }
779  if (iView[1] == kTstringRaw) {
780  // is of the form
781  // [trackiness][type](...\0)[endHintChar]
782  // where decode returns the ...\0 part
783  auto extent = edm::decode_string_extent(iView.substr(3));
784  if (not extent) {
785  return {};
786  }
787  return iView.substr(0, extent->size() + 3 + 1);
788  }
789  // is of the form
790  // [trackiness][type]({...})[endHitChar]
791  // where decode returns the {...} part
792  auto extent = edm::decode_vstring_extent(iView.substr(3));
793  if (not extent) {
794  return {};
795  }
796  return iView.substr(0, extent->size() + 3 + 1);
797  }
std::optional< std::string_view > decode_pset_extent(std::string_view from)
Definition: types.cc:1207
std::optional< std::string_view > decode_vstring_extent(std::string_view from)
Definition: types.cc:1060
Definition: Entry.cc:39
std::optional< std::string_view > decode_string_extent(std::string_view from)
Definition: types.cc:504
Definition: Entry.cc:40
std::optional< std::string_view > decode_vpset_extent(std::string_view from)
Definition: types.cc:1275

◆ fromString()

bool Entry::fromString ( std::string_view::const_iterator  b,
std::string_view::const_iterator  e 
)
private

Definition at line 828 of file Entry.cc.

References b, MillePedeFileConverter_cfg::e, rep_, AlCaHLTBitMon_QueryRunRegistry::string, tracked_, and type_.

Referenced by Entry().

828  {
829  if (static_cast<unsigned int>(e - b) < 4u || b[2] != '(' || e[-1] != ')')
830 
831  return false;
832 
833  tracked_ = b[0];
834  type_ = b[1];
835  rep_ = std::string(b + 3, e - 1);
836 
837  return true;
838  } // from_string()
char tracked_
Definition: Entry.h:187
double b
Definition: hdecay.h:120
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ getBool()

bool Entry::getBool ( ) const

Definition at line 847 of file Entry.cc.

References edm::decode(), kTbool, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter().

847  {
848  if (type_ != kTbool)
849  throwValueError("bool");
850  bool val;
851  if (!decode(val, rep_))
852  throwEntryError("bool", rep_);
853  return val;
854  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
Definition: Entry.cc:23
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getDouble()

double Entry::getDouble ( ) const

Definition at line 955 of file Entry.cc.

References edm::decode(), kTdouble, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter().

955  {
956  if (type_ != kTdouble)
957  throwValueError("double");
958  double val;
959  if (!decode(val, rep_))
960  throwEntryError("double", rep_);
961  return val;
962  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getESInputTag()

ESInputTag Entry::getESInputTag ( ) const

Definition at line 1048 of file Entry.cc.

References edm::decode(), kTESInputTag, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter().

1048  {
1049  if (type_ != kTESInputTag)
1050  throwValueError("ESInputTag");
1051  ESInputTag val;
1052  if (!decode(val, rep_))
1053  throwEntryError("ESInputTag", rep_);
1054  return val;
1055  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getEventID()

EventID Entry::getEventID ( ) const

Definition at line 1072 of file Entry.cc.

References edm::decode(), kTEventID, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter().

1072  {
1073  if (type_ != kTEventID)
1074  throwValueError("EventID");
1075  EventID val;
1076  if (!decode(val, rep_))
1077  throwEntryError("EventID", rep_);
1078  return val;
1079  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getEventRange()

EventRange Entry::getEventRange ( ) const

Definition at line 1143 of file Entry.cc.

References edm::decode(), kTEventRange, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter().

1143  {
1144  if (type_ != kTEventRange)
1145  throwValueError("EventRange");
1146  EventRange val;
1147  if (!decode(val, rep_))
1148  throwEntryError("EventRange", rep_);
1149  return val;
1150  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getFileInPath()

FileInPath Entry::getFileInPath ( ) const

Definition at line 1012 of file Entry.cc.

References edm::decode(), kTFileInPath, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter().

1012  {
1013  if (type_ != kTFileInPath)
1014  throwValueError("FileInPath");
1015  FileInPath val;
1016  if (!decode(val, rep_))
1017  throwEntryError("FileInPath", rep_);
1018  return val;
1019  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getInputTag()

InputTag Entry::getInputTag ( ) const

Definition at line 1024 of file Entry.cc.

References edm::decode(), kTInputTag, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getParameter(), and edm::ParameterSet::getUntrackedParameter().

1024  {
1025  if (type_ != kTInputTag)
1026  throwValueError("InputTag");
1027  InputTag val;
1028  if (!decode(val, rep_))
1029  throwEntryError("InputTag", rep_);
1030  return val;
1031  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getInt32()

int Entry::getInt32 ( ) const

Definition at line 859 of file Entry.cc.

References edm::decode(), kTint32, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter().

859  {
860  if (type_ != kTint32)
861  throwValueError("int");
862  int val;
863  if (!decode(val, rep_))
864  throwEntryError("int", rep_);
865  return val;
866  }
Definition: Entry.cc:25
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getInt64()

long long Entry::getInt64 ( ) const

Definition at line 883 of file Entry.cc.

References edm::decode(), kTint64, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter().

883  {
884  if (type_ != kTint64)
885  throwValueError("int64");
886  long long val;
887  if (!decode(val, rep_))
888  throwEntryError("int64", rep_);
889  return val;
890  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
Definition: Entry.cc:29
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getLuminosityBlockID()

LuminosityBlockID Entry::getLuminosityBlockID ( ) const

Definition at line 1096 of file Entry.cc.

References edm::decode(), kTLuminosityBlockID, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter().

1096  {
1097  if (type_ != kTLuminosityBlockID)
1098  throwValueError("LuminosityBlockID");
1099  LuminosityBlockID val;
1100  if (!decode(val, rep_))
1101  throwEntryError("LuminosityBlockID", rep_);
1102  return val;
1103  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getLuminosityBlockRange()

LuminosityBlockRange Entry::getLuminosityBlockRange ( ) const

Definition at line 1119 of file Entry.cc.

References edm::decode(), kTLuminosityBlockRange, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter().

1119  {
1121  throwValueError("LuminosityBlockRange");
1123  if (!decode(val, rep_))
1124  throwEntryError("LuminosityBlockRange", rep_);
1125  return val;
1126  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getPSet()

ParameterSet Entry::getPSet ( ) const

Definition at line 1168 of file Entry.cc.

References edm::decode(), kTPSet, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

1168  {
1169  if (type_ != kTPSet)
1170  throwValueError("ParameterSet");
1171  ParameterSet val;
1172  if (!decode(val, rep_))
1173  throwEntryError("ParameterSet", rep_);
1174  return val;
1175  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
Definition: Entry.cc:39
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getString()

std::string Entry::getString ( void  ) const

Definition at line 979 of file Entry.cc.

References edm::decode(), edm::decode_deprecated(), kTstringHex, kTstringRaw, rep_, AlCaHLTBitMon_QueryRunRegistry::string, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getParameter(), and edm::ParameterSet::getUntrackedParameter< std::string >().

979  {
980  if (type_ != kTstringRaw and type_ != kTstringHex)
981  throwValueError("string");
983  if (type_ == kTstringHex) {
984  if (!decode_deprecated(val, rep_)) {
985  throwEntryError("string", rep_);
986  }
987  } else if (!decode(val, rep_)) {
988  throwEntryError("string", rep_);
989  }
990  return val;
991  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
bool decode_deprecated(std::string &, std::string_view)
Definition: types.cc:539
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getUInt32()

unsigned Entry::getUInt32 ( ) const

Definition at line 907 of file Entry.cc.

References edm::decode(), kTuint32, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter().

907  {
908  if (type_ != kTuint32)
909  throwValueError("unsigned int");
910  unsigned val;
911  if (!decode(val, rep_))
912  throwEntryError("unsigned int", rep_);
913  return val;
914  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getUInt64()

unsigned long long Entry::getUInt64 ( ) const

Definition at line 931 of file Entry.cc.

References edm::decode(), kTuint64, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter().

931  {
932  if (type_ != kTuint64)
933  throwValueError("uint64");
934  unsigned long long val;
935  if (!decode(val, rep_))
936  throwEntryError("uint64", rep_);
937  return val;
938  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getVDouble()

std::vector< double > Entry::getVDouble ( ) const

Definition at line 967 of file Entry.cc.

References edm::decode(), kTvdouble, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter< std::vector< double > >().

967  {
968  if (type_ != kTvdouble)
969  throwValueError("vector<double>");
970  std::vector<double> val;
971  if (!decode(val, rep_))
972  throwEntryError("vector<double>", rep_);
973  return val;
974  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getVESInputTag()

std::vector< ESInputTag > Entry::getVESInputTag ( ) const

Definition at line 1060 of file Entry.cc.

References edm::decode(), kTVESInputTag, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter< std::vector< ESInputTag > >().

1060  {
1061  if (type_ != kTVESInputTag)
1062  throwValueError("VESInputTag");
1063  std::vector<ESInputTag> val;
1064  if (!decode(val, rep_))
1065  throwEntryError("VESInputTag", rep_);
1066  return val;
1067  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getVEventID()

std::vector< EventID > Entry::getVEventID ( ) const

Definition at line 1084 of file Entry.cc.

References edm::decode(), kTVEventID, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter< std::vector< EventID > >().

1084  {
1085  if (type_ != kTVEventID)
1086  throwValueError("VEventID");
1087  std::vector<EventID> val;
1088  if (!decode(val, rep_))
1089  throwEntryError("EventID", rep_);
1090  return val;
1091  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getVEventRange()

std::vector< EventRange > Entry::getVEventRange ( ) const

Definition at line 1155 of file Entry.cc.

References edm::decode(), kTVEventRange, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter< std::vector< EventRange > >().

1155  {
1156  if (type_ != kTVEventRange)
1157  throwValueError("VEventRange");
1158  std::vector<EventRange> val;
1159  if (!decode(val, rep_))
1160  throwEntryError("EventRange", rep_);
1161  return val;
1162  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getVInputTag()

std::vector< InputTag > Entry::getVInputTag ( ) const

Definition at line 1036 of file Entry.cc.

References edm::decode(), kTVInputTag, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter< std::vector< InputTag > >().

1036  {
1037  if (type_ != kTVInputTag)
1038  throwValueError("VInputTag");
1039  std::vector<InputTag> val;
1040  if (!decode(val, rep_))
1041  throwEntryError("VInputTag", rep_);
1042  return val;
1043  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getVInt32()

std::vector< int > Entry::getVInt32 ( ) const

Definition at line 871 of file Entry.cc.

References edm::decode(), kTvint32, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter< std::vector< int > >().

871  {
872  if (type_ != kTvint32)
873  throwValueError("vector<int>");
874  std::vector<int> val;
875  if (!decode(val, rep_))
876  throwEntryError("vector<int>", rep_);
877  return val;
878  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getVInt64()

std::vector< long long > Entry::getVInt64 ( ) const

Definition at line 895 of file Entry.cc.

References edm::decode(), kTvint64, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter< std::vector< long long > >().

895  {
896  if (type_ != kTvint64)
897  throwValueError("vector<int64>");
898  std::vector<long long> val;
899  if (!decode(val, rep_))
900  throwEntryError("vector<int64>", rep_);
901  return val;
902  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getVLuminosityBlockID()

std::vector< LuminosityBlockID > Entry::getVLuminosityBlockID ( ) const

Definition at line 1108 of file Entry.cc.

References edm::decode(), kTVLuminosityBlockID, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter< std::vector< LuminosityBlockID > >().

1108  {
1109  if (type_ != kTVLuminosityBlockID)
1110  throwValueError("VLuminosityBlockID");
1111  std::vector<LuminosityBlockID> val;
1112  if (!decode(val, rep_))
1113  throwEntryError("LuminosityBlockID", rep_);
1114  return val;
1115  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getVLuminosityBlockRange()

std::vector< LuminosityBlockRange > Entry::getVLuminosityBlockRange ( ) const

Definition at line 1131 of file Entry.cc.

References edm::decode(), kTVLuminosityBlockRange, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter< std::vector< LuminosityBlockRange > >().

1131  {
1133  throwValueError("VLuminosityBlockRange");
1134  std::vector<LuminosityBlockRange> val;
1135  if (!decode(val, rep_))
1136  throwEntryError("LuminosityBlockRange", rep_);
1137  return val;
1138  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getVPSet()

std::vector< ParameterSet > Entry::getVPSet ( ) const

Definition at line 1180 of file Entry.cc.

References edm::decode(), kTvPSet, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

1180  {
1181  if (type_ != kTvPSet)
1182  throwValueError("vector<ParameterSet>");
1183  std::vector<ParameterSet> val;
1184  if (!decode(val, rep_))
1185  throwEntryError("vector<ParameterSet>", rep_);
1186  return val;
1187  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
Definition: Entry.cc:40
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getVString()

std::vector< std::string > Entry::getVString ( ) const

Definition at line 996 of file Entry.cc.

References edm::decode(), edm::decode_deprecated(), kTvstringHex, kTvstringRaw, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter< std::vector< std::string > >().

996  {
997  if (type_ != kTvstringRaw and type_ != kTvstringHex)
998  throwValueError("vector<string>");
999  std::vector<std::string> val;
1000  if (type_ == kTvstringHex) {
1001  if (!decode_deprecated(val, rep_))
1002  throwEntryError("vector<string>", rep_);
1003  } else if (!decode(val, rep_)) {
1004  throwEntryError("vector<string>", rep_);
1005  }
1006  return val;
1007  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
bool decode_deprecated(std::string &, std::string_view)
Definition: types.cc:539
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getVUInt32()

std::vector< unsigned > Entry::getVUInt32 ( ) const

Definition at line 919 of file Entry.cc.

References edm::decode(), kTvuint32, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter< std::vector< unsigned int > >().

919  {
920  if (type_ != kTvuint32)
921  throwValueError("vector<unsigned int>");
922  std::vector<unsigned> val;
923  if (!decode(val, rep_))
924  throwEntryError("vector<unsigned int>", rep_);
925  return val;
926  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ getVUInt64()

std::vector< unsigned long long > Entry::getVUInt64 ( ) const

Definition at line 943 of file Entry.cc.

References edm::decode(), kTvuint64, rep_, throwEntryError(), throwValueError(), type_, and heppy_batch::val.

Referenced by edm::ParameterSet::getUntrackedParameter< std::vector< unsigned long long > >().

943  {
944  if (type_ != kTvuint64)
945  throwValueError("vector<uint64>");
946  std::vector<unsigned long long> val;
947  if (!decode(val, rep_))
948  throwEntryError("vector<uint64>", rep_);
949  return val;
950  }
void throwValueError(char const *expectedType) const
Definition: Entry.cc:1298
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

◆ isTracked()

bool edm::Entry::isTracked ( ) const
inline

◆ operator=() [1/2]

Entry& edm::Entry::operator= ( Entry const &  )
default

◆ operator=() [2/2]

Entry& edm::Entry::operator= ( Entry &&  )
default

◆ sizeOfString()

size_t edm::Entry::sizeOfString ( ) const
inline

Definition at line 171 of file Entry.h.

References rep_.

Referenced by toString().

171 { return rep_.size() + 4; }
std::string rep_
Definition: Entry.h:185

◆ throwEncodeError()

void Entry::throwEncodeError ( char const *  type) const
private

Definition at line 1308 of file Entry.cc.

References edm::errors::Configuration, Exception, and name_.

Referenced by Entry().

1308  {
1309  throw Exception(errors::Configuration, "EncodingError") << "can not encode " << name_ << " as type: " << type;
1310  }
std::string name_
Definition: Entry.h:184

◆ throwEntryError()

void Entry::throwEntryError ( char const *  expectedType,
std::string const &  badRep 
) const
private

◆ throwValueError()

void Entry::throwValueError ( char const *  expectedType) const
private

◆ toDigest()

void Entry::toDigest ( cms::Digest digest) const

Definition at line 812 of file Entry.cc.

References cms::Digest::append(), rep_, tracked_, and type_.

812  {
813  digest.append(&tracked_, 1);
814  digest.append(&type_, 1);
815  digest.append("(", 1);
816  digest.append(rep_);
817  digest.append(")", 1);
818  }
char tracked_
Definition: Entry.h:187
char type_
Definition: Entry.h:186
void append(std::string const &s)
Definition: Digest.cc:161
std::string rep_
Definition: Entry.h:185

◆ toString() [1/2]

std::string Entry::toString ( ) const

◆ toString() [2/2]

void Entry::toString ( std::string &  result) const

Definition at line 803 of file Entry.cc.

References rep_, mps_fire::result, sizeOfString(), tracked_, and type_.

803  {
804  result.reserve(result.size() + sizeOfString());
805  result += tracked_;
806  result += type_;
807  result += '(';
808  result += rep_;
809  result += ')';
810  }
size_t sizeOfString() const
Definition: Entry.h:171
char tracked_
Definition: Entry.h:187
char type_
Definition: Entry.h:186
std::string rep_
Definition: Entry.h:185

◆ typeCode()

char edm::Entry::typeCode ( ) const
inline

Definition at line 176 of file Entry.h.

References type_.

Referenced by edm::ParameterSet::getParameter(), and edm::ParameterSet::getParameterNamesForType().

176 { return type_; }
char type_
Definition: Entry.h:186

◆ validate()

void Entry::validate ( ) const
private

Definition at line 220 of file Entry.cc.

References cms::cuda::assert(), edm::errors::Configuration, edm::decode(), edm::decode_deprecated(), Exception, kTbool, kTdouble, kTESInputTag, kTEventID, kTEventRange, kTFileInPath, kTInputTag, kTint32, kTint64, kTLuminosityBlockID, kTLuminosityBlockRange, kTPSet, kTstringHex, kTstringRaw, kTuint32, kTuint64, kTvBool, kTvdouble, kTVESInputTag, kTVEventID, kTVEventRange, kTVInputTag, kTvint32, kTvint64, kTVLuminosityBlockID, kTVLuminosityBlockRange, kTvPSet, kTvstringHex, kTvstringRaw, kTvuint32, kTvuint64, rep_, AlCaHLTBitMon_QueryRunRegistry::string, throwEntryError(), tracked_, type_, and heppy_batch::val.

Referenced by Entry().

220  {
221  // tracked
222  assert(tracked_ == '+' || tracked_ == '-');
223  // if(tracked_ != '+' && tracked_ != '-')
224  // throw EntryError(std::string("invalid tracked code ") + tracked_);
225 
226  // type and rep
227  switch (type_) {
228  case kTbool: { // Bool
229  bool val;
230  if (!decode(val, rep_))
231  throwEntryError("bool", rep_);
232  break;
233  }
234  case kTvBool: { // vBool
235  std::vector<bool> val;
236  if (!decode(val, rep_))
237  throwEntryError("vector<bool>", rep_);
238  break;
239  }
240  case kTint32: { // Int32
241  int val;
242  if (!decode(val, rep_))
243  throwEntryError("int", rep_);
244  break;
245  }
246  case kTvint32: { // vInt32
247  std::vector<int> val;
248  if (!decode(val, rep_))
249  throwEntryError("vector<int>", rep_);
250  break;
251  }
252  case kTuint32: { // Uint32
253  unsigned val;
254  if (!decode(val, rep_))
255  throwEntryError("unsigned int", rep_);
256  break;
257  }
258  case kTvuint32: { // vUint32
259  std::vector<unsigned> val;
260  if (!decode(val, rep_))
261  throwEntryError("vector<unsigned int>", rep_);
262  break;
263  }
264  case kTint64: { // Int64
265  long long int val;
266  if (!decode(val, rep_))
267  throwEntryError("int64", rep_);
268  break;
269  }
270  case kTvint64: { // vInt64
271  std::vector<long long int> val;
272  if (!decode(val, rep_))
273  throwEntryError("vector<int64>", rep_);
274  break;
275  }
276  case kTuint64: { // Uint64
277  unsigned long long int val;
278  if (!decode(val, rep_))
279  throwEntryError("unsigned int64", rep_);
280  break;
281  }
282  case kTvuint64: { // vUint64
283  std::vector<unsigned long long int> val;
284  if (!decode(val, rep_))
285  throwEntryError("vector<unsigned int64>", rep_);
286  break;
287  }
288  case kTstringRaw: { // String
290  if (!decode(val, rep_))
291  throwEntryError("string", rep_);
292  break;
293  }
294  case kTvstringRaw: { // vString
295  std::vector<std::string> val;
296  if (!decode(val, rep_))
297  throwEntryError("vector<string>", rep_);
298  break;
299  }
300  case kTstringHex: { // String
302  if (!decode_deprecated(val, rep_))
303  throwEntryError("string_hex", rep_);
304  break;
305  }
306  case kTvstringHex: { // vString
307  std::vector<std::string> val;
308  if (!decode_deprecated(val, rep_))
309  throwEntryError("vector<string_hex>", rep_);
310  break;
311  }
312 
313  case kTFileInPath: { // FileInPath
314  FileInPath val;
315  if (!decode(val, rep_))
316  throwEntryError("FileInPath", rep_);
317  break;
318  }
319  case kTInputTag: { // InputTag
320  InputTag val;
321  if (!decode(val, rep_))
322  throwEntryError("InputTag", rep_);
323  break;
324  }
325  case kTVInputTag: { // VInputTag
326  std::vector<InputTag> val;
327  if (!decode(val, rep_))
328  throwEntryError("VInputTag", rep_);
329  break;
330  }
331  case kTESInputTag: { //ESInputTag
332  ESInputTag val;
333  if (!decode(val, rep_))
334  throwEntryError("ESInputTag", rep_);
335  break;
336  }
337  case kTVESInputTag: { //ESInputTag
338  std::vector<ESInputTag> val;
339  if (!decode(val, rep_))
340  throwEntryError("VESInputTag", rep_);
341  break;
342  }
343  case kTEventID: { // EventID
344  EventID val;
345  if (!decode(val, rep_))
346  throwEntryError("EventID", rep_);
347  break;
348  }
349  case kTVEventID: { // VEventID
350  std::vector<EventID> val;
351  if (!decode(val, rep_))
352  throwEntryError("VEventID", rep_);
353  break;
354  }
355  case kTLuminosityBlockID: { // LuminosityBlockID
356  LuminosityBlockID val;
357  if (!decode(val, rep_))
358  throwEntryError("LuminosityBlockID", rep_);
359  break;
360  }
361  case kTVLuminosityBlockID: { // VLuminosityBlockID
362  std::vector<LuminosityBlockID> val;
363  if (!decode(val, rep_))
364  throwEntryError("VLuminosityBlockID", rep_);
365  break;
366  }
367  case kTdouble: { // Double
368  double val;
369  if (!decode(val, rep_))
370  throwEntryError("double", rep_);
371  break;
372  }
373  case kTvdouble: { // vDouble
374  std::vector<double> val;
375  if (!decode(val, rep_))
376  throwEntryError("vector<double>", rep_);
377  break;
378  }
379  case kTPSet: { // ParameterSet
381  if (!decode(val, rep_))
382  throwEntryError("ParameterSet", rep_);
383  break;
384  }
385  case kTvPSet: { // vParameterSet
386  std::vector<ParameterSet> val;
387  if (!decode(val, rep_))
388  throwEntryError("vector<ParameterSet>", rep_);
389  break;
390  }
391  case kTLuminosityBlockRange: { // LuminosityBlockRange
393  if (!decode(val, rep_))
394  throwEntryError("LuminosityBlockRange", rep_);
395  break;
396  }
397  case kTVLuminosityBlockRange: { // VLuminosityBlockRange
398  std::vector<LuminosityBlockRange> val;
399  if (!decode(val, rep_))
400  throwEntryError("VLuminosityBlockRange", rep_);
401  break;
402  }
403  case kTEventRange: { // EventRange
404  EventRange val;
405  if (!decode(val, rep_))
406  throwEntryError("EventRange", rep_);
407  break;
408  }
409  case kTVEventRange: { // VEventRange
410  std::vector<EventRange> val;
411  if (!decode(val, rep_))
412  throwEntryError("VEventRange", rep_);
413  break;
414  }
415  default: {
416  // We should never get here.
417  throw edm::Exception(edm::errors::Configuration) << "Unknown ParameterSet Entry type encoding: '" << type_
418  << "'.\n This could be caused by reading a file which was "
419  "written using a newer incompatible software release.";
420  break;
421  }
422  } // switch(type)
423  } // Entry::validate()
Definition: Entry.cc:25
bool decode_deprecated(std::string &, std::string_view)
Definition: types.cc:539
Definition: Entry.cc:29
void throwEntryError(char const *expectedType, std::string const &badRep) const
Definition: Entry.cc:1303
Definition: Entry.cc:23
assert(be >=bs)
Definition: Entry.cc:39
Definition: Entry.cc:40
char tracked_
Definition: Entry.h:187
Definition: Entry.cc:24
char type_
Definition: Entry.h:186
bool decode(bool &, std::string_view)
Definition: types.cc:72
std::string rep_
Definition: Entry.h:185

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  ost,
Entry const &  entry 
)
friend

Definition at line 1189 of file Entry.cc.

1189  {
1190  os << typeFromCode(entry.typeCode()) << " " << (entry.isTracked() ? "tracked " : "untracked ") << " = ";
1191 
1192  // now handle the difficult cases
1193  switch (entry.typeCode()) {
1194  case kTPSet: // ParameterSet
1195  {
1196  os << entry.getPSet();
1197  break;
1198  }
1199  case 'p': // vector<ParameterSet>
1200  {
1201  // Make sure we get the representation of each contained
1202  // ParameterSet including *only* tracked parameters
1203  std::vector<ParameterSet> whole = entry.getVPSet();
1204  std::vector<ParameterSet>::const_iterator i = whole.begin();
1205  std::vector<ParameterSet>::const_iterator e = whole.end();
1206  std::string start = "";
1207  std::string const between(",\n");
1208  os << "{" << std::endl;
1209  for (; i != e; ++i) {
1210  os << start << *i;
1211  start = between;
1212  }
1213  if (!whole.empty()) {
1214  os << std::endl;
1215  }
1216  os << "}";
1217  break;
1218  }
1219  case kTstringRaw: {
1220  os << "'" << entry.getString() << "'";
1221  break;
1222  }
1223  case kTvstringRaw: {
1224  os << "{";
1225  std::string_view start = "'";
1226  std::string_view const between(",'");
1227  std::vector<std::string> strings = entry.getVString();
1228  for (auto const& s : strings) {
1229  os << start << s << "'";
1230  start = between;
1231  }
1232  os << "}";
1233  break;
1234  }
1235  case kTstringHex: {
1236  os << "'" << entry.getString() << "'";
1237  break;
1238  }
1239  case kTvstringHex: {
1240  os << "{";
1241  std::string_view start = "'";
1242  std::string_view const between(",'");
1243  std::vector<std::string> strings = entry.getVString();
1244  for (auto const& s : strings) {
1245  os << start << s << "'";
1246  start = between;
1247  }
1248  os << "}";
1249  break;
1250  }
1251  case kTint32: {
1252  os << entry.getInt32();
1253  break;
1254  }
1255  case kTuint32: {
1256  os << entry.getUInt32();
1257  break;
1258  }
1259  case kTVInputTag: {
1260  //VInputTag needs to be treated seperately because it is encode like
1261  // vector<string> rather than using the individual encodings of each InputTag
1262  os << "{";
1263  std::string start = "";
1264  std::string const between(",");
1265  std::vector<InputTag> tags = entry.getVInputTag();
1266  for (std::vector<InputTag>::const_iterator it = tags.begin(), itEnd = tags.end(); it != itEnd; ++it) {
1267  os << start << it->encode();
1268  start = between;
1269  }
1270  os << "}";
1271  break;
1272  }
1273  case kTVESInputTag: {
1274  //VESInputTag needs to be treated seperately because it is encode like
1275  // vector<string> rather than using the individual encodings of each ESInputTag
1276  os << "{";
1277  std::string start = "";
1278  std::string const between(",");
1279  std::vector<ESInputTag> tags = entry.getVESInputTag();
1280  for (std::vector<ESInputTag>::const_iterator it = tags.begin(), itEnd = tags.end(); it != itEnd; ++it) {
1281  os << start << it->encode();
1282  start = between;
1283  }
1284  os << "}";
1285  break;
1286  }
1287  default: {
1288  os << entry.rep_;
1289  break;
1290  }
1291  }
1292 
1293  return os;
1294  }
Definition: start.py:1
Definition: Entry.cc:25
Definition: Entry.cc:39
static constexpr std::string_view typeFromCode(char iCode)
Definition: Entry.cc:206

Member Data Documentation

◆ name_

std::string edm::Entry::name_
private

Definition at line 184 of file Entry.h.

Referenced by throwEncodeError(), throwEntryError(), and throwValueError().

◆ rep_

std::string edm::Entry::rep_
private

◆ tracked_

char edm::Entry::tracked_
private

Definition at line 187 of file Entry.h.

Referenced by fromString(), isTracked(), toDigest(), toString(), and validate().

◆ type_

char edm::Entry::type_
private