29 throw IOVDataError(
"SubStamp of an IOVTimeStamp cannot have more than six digits!");
39 if (ts.find_first_of(
".") == std::string::npos) {
40 stamp = std::stoul(ts);
44 stamp = std::stoul(ts.substr(0, ts.find_first_of(
".")));
45 substamp_str = ts.substr(ts.find_first_of(
".")+1);
49 throw IOVDataError(
"SubStamp of an IOVTimeStamp cannot have more than six digits!");
52 unsigned int substamp = std::stoi(substamp_str);
67 if (
this == &ts)
return *
this;
89 return !( *
this == ts);
93 if ( *
this < ts || *
this == ts)
return true;
98 if ( !( *
this < ts) )
return true;
103 if ( !( *
this <= ts) )
return true;
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 <
static int max(int a, int b)
Q_EXPORT QTSManip setw(int w)
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()
Q_EXPORT QTSManip setfill(int f)