Class Reference for E1039 Core & Analysis Software
|
#include </dev/shm/kenichi/update-github-e1039-doc/e1039-core/framework/phool/PHTimeStamp.h>
Public Types | |
enum | { PHFarFuture = 2147483647 } |
Public Member Functions | |
PHTimeStamp () | |
PHTimeStamp (const int, const int, const int, const int, const int, const int, const int=0) | |
PHTimeStamp (const time_t) | |
void | setBinTics (const phtime_t t) |
virtual | ~PHTimeStamp () |
void | set (const int, const int, const int, const int, const int, const int, const int=0) |
void | set (const char *) |
void | setToSystemTime () |
void | setToFarFuture () |
phtime_t | getBinaryTime () const |
time_t | getTics () const |
void | setTics (const time_t) |
int | isInRange (const PHTimeStamp &, const PHTimeStamp &) |
void | print () |
int | operator== (const PHTimeStamp &) const |
int | operator!= (const PHTimeStamp &) const |
int | operator> (const PHTimeStamp &) const |
int | operator>= (const PHTimeStamp &) const |
int | operator< (const PHTimeStamp &) const |
int | operator<= (const PHTimeStamp &) const |
PHTimeStamp & | operator= (const PHTimeStamp &) |
PHTimeStamp | operator+= (time_t) |
PHTimeStamp | operator-= (time_t) |
char * | formatTimeString () const |
void | print () const |
![]() | |
PHObject () | |
ctor More... | |
virtual | ~PHObject () |
dtor More... | |
virtual PHObject * | clone () const |
Virtual copy constructor. More... | |
virtual void | identify (std::ostream &os=std::cout) const |
virtual void | Reset () |
Clear Event. More... | |
virtual int | isValid () const |
isValid returns non zero if object contains vailid data More... | |
virtual int | isValid (const float) const |
virtual int | isValid (const double) const |
virtual int | isValid (const int) const |
virtual int | isValid (const unsigned int) const |
virtual int | isImplemented (const float f) const |
virtual int | isImplemented (const double f) const |
virtual int | isImplemented (const int i) const |
virtual int | isImplemented (const unsigned int i) const |
void | SplitLevel (const int i) |
int | SplitLevel () const |
void | BufferSize (const int i) |
int | BufferSize () const |
Protected Attributes | |
phtime_t | binaryTime |
Definition at line 21 of file PHTimeStamp.h.
anonymous enum |
Enumerator | |
---|---|
PHFarFuture |
Definition at line 25 of file PHTimeStamp.h.
PHTimeStamp::PHTimeStamp | ( | ) |
Definition at line 36 of file PHTimeStamp.cc.
PHTimeStamp::PHTimeStamp | ( | const int | year, |
const int | month, | ||
const int | day, | ||
const int | hour, | ||
const int | minute, | ||
const int | second, | ||
const int | fraction = 0 |
||
) |
Definition at line 43 of file PHTimeStamp.cc.
PHTimeStamp::PHTimeStamp | ( | const time_t | t | ) |
Definition at line 50 of file PHTimeStamp.cc.
|
inlinevirtual |
Definition at line 33 of file PHTimeStamp.h.
char * PHTimeStamp::formatTimeString | ( | ) | const |
Definition at line 187 of file PHTimeStamp.cc.
|
inline |
Definition at line 43 of file PHTimeStamp.h.
References binaryTime.
Referenced by isInRange(), operator!=(), operator<(), operator<=(), operator=(), operator==(), operator>(), and operator>=().
time_t PHTimeStamp::getTics | ( | ) | const |
Definition at line 97 of file PHTimeStamp.cc.
Referenced by operator-(), operator<<(), PdbParameterMapContainer::WriteToFile(), PHParametersContainer::WriteToFile(), and PHG4ParametersContainer::WriteToFile().
int PHTimeStamp::isInRange | ( | const PHTimeStamp & | t1, |
const PHTimeStamp & | t2 | ||
) |
Definition at line 122 of file PHTimeStamp.cc.
References getBinaryTime().
int PHTimeStamp::operator!= | ( | const PHTimeStamp & | t | ) | const |
Definition at line 140 of file PHTimeStamp.cc.
References getBinaryTime().
PHTimeStamp PHTimeStamp::operator+= | ( | time_t | t | ) |
Definition at line 171 of file PHTimeStamp.cc.
References ticFactor.
PHTimeStamp PHTimeStamp::operator-= | ( | time_t | t | ) |
Definition at line 177 of file PHTimeStamp.cc.
References ticFactor.
int PHTimeStamp::operator< | ( | const PHTimeStamp & | t | ) | const |
Definition at line 150 of file PHTimeStamp.cc.
References getBinaryTime().
int PHTimeStamp::operator<= | ( | const PHTimeStamp & | t | ) | const |
Definition at line 160 of file PHTimeStamp.cc.
References getBinaryTime().
PHTimeStamp & PHTimeStamp::operator= | ( | const PHTimeStamp & | t | ) |
Definition at line 165 of file PHTimeStamp.cc.
References getBinaryTime().
int PHTimeStamp::operator== | ( | const PHTimeStamp & | t | ) | const |
Definition at line 135 of file PHTimeStamp.cc.
References getBinaryTime().
int PHTimeStamp::operator> | ( | const PHTimeStamp & | t | ) | const |
Definition at line 145 of file PHTimeStamp.cc.
References getBinaryTime().
int PHTimeStamp::operator>= | ( | const PHTimeStamp & | t | ) | const |
Definition at line 155 of file PHTimeStamp.cc.
References getBinaryTime().
void PHTimeStamp::print | ( | ) |
Definition at line 127 of file PHTimeStamp.cc.
Referenced by Fun4AllServer::BeginRun(), and Fun4AllServer::BeginRunTimeStamp().
void PHTimeStamp::print | ( | ) | const |
Definition at line 183 of file PHTimeStamp.cc.
void PHTimeStamp::set | ( | const char * | timeString | ) |
Definition at line 83 of file PHTimeStamp.cc.
References strptime().
void PHTimeStamp::set | ( | const int | year, |
const int | month, | ||
const int | day, | ||
const int | hour, | ||
const int | minute, | ||
const int | second, | ||
const int | fraction = 0 |
||
) |
Definition at line 58 of file PHTimeStamp.cc.
Referenced by operator>>().
void PHTimeStamp::setBinTics | ( | const phtime_t | t | ) |
Definition at line 107 of file PHTimeStamp.cc.
void PHTimeStamp::setTics | ( | const time_t | tics | ) |
Definition at line 102 of file PHTimeStamp.cc.
Referenced by setToFarFuture().
|
inline |
Definition at line 41 of file PHTimeStamp.h.
References PHFarFuture, and setTics().
void PHTimeStamp::setToSystemTime | ( | ) |
Definition at line 92 of file PHTimeStamp.cc.
|
protected |
Definition at line 70 of file PHTimeStamp.h.
Referenced by getBinaryTime().