29 throw IOVDataError(
"SubStamp of an IOVTimeStamp cannot have more than six digits!");
31 std::stringstream stream;
39 std::string substamp_str;
40 if (ts.find_first_of(
".") == std::string::npos) {
41 stamp = std::stoul(ts);
45 stamp = std::stoul(ts.substr(0, ts.find_first_of(
".")));
46 substamp_str = ts.substr(ts.find_first_of(
".") + 1);
50 throw IOVDataError(
"SubStamp of an IOVTimeStamp cannot have more than six digits!");
54 unsigned int substamp = std::stoi(substamp_str);
72 if (
this == &ts)
return *
this;
100 return !(*
this == ts);
105 if (*
this < ts || *
this == ts)
static IOVTimeStamp MinTimeStamp()
bool operator==(const IOVTimeStamp &ts) const
implementation of equality operator
IOVTimeStamp(unsigned long stamp, unsigned int substamp=0)
Constructor.
bool operator>=(const IOVTimeStamp &ts) const
bool operator<(const IOVTimeStamp &ts) const
comparison operators
const std::string & DBStamp() const
Class def header for a class IOVTimeStamp.
bool operator<=(const IOVTimeStamp &ts) const
unsigned long SubStamp() const
const unsigned int kMAX_SUBSTAMP_VALUE
bool operator>(const IOVTimeStamp &ts) const
bool operator!=(const IOVTimeStamp &ts) const
remaining comparison operators implemented in terms of == and <
Filters for channels, events, etc.
unsigned long Stamp() const
Collection of exception classes for IOVData.
IOVTimeStamp & operator=(const IOVTimeStamp &ts)
assignment operator
const unsigned short kMAX_SUBSTAMP_LENGTH
static IOVTimeStamp GetFromString(const std::string &ts)
static IOVTimeStamp MaxTimeStamp()