Auxiliary class for integration date.
More...
#include <JDetectorIntegration.hh>
Auxiliary class for integration date.
The corresponding ASCII format is "yyyy/mm/dd".
Definition at line 40 of file JDetectorIntegration.hh.
◆ JDate_t() [1/2]
JDATABASE::JDate_t::JDate_t |
( |
| ) |
|
|
inline |
◆ JDate_t() [2/2]
JDATABASE::JDate_t::JDate_t |
( |
const int |
year, |
|
|
const int |
month, |
|
|
const int |
day |
|
) |
| |
|
inline |
◆ min()
static JDate_t JDATABASE::JDate_t::min |
( |
| ) |
|
|
inlinestatic |
◆ max()
static JDate_t JDATABASE::JDate_t::max |
( |
| ) |
|
|
inlinestatic |
◆ less()
bool JDATABASE::JDate_t::less |
( |
const JDate_t & |
date | ) |
const |
|
inline |
Less-than method.
- Parameters
-
- Returns
- true if this date earlier than given date; else false
Definition at line 85 of file JDetectorIntegration.hh.
90 return this->
day < date.
day;
◆ operator>>
std::istream& operator>> |
( |
std::istream & |
in, |
|
|
JDate_t & |
object |
|
) |
| |
|
friend |
Read date from input stream.
- Parameters
-
in | input stream |
object | date |
- Returns
- input stream
Definition at line 108 of file JDetectorIntegration.hh.
118 for (string::iterator i = buffer.begin(); i != buffer.end(); ++i) {
124 istringstream is(buffer);
126 is >>
object.year >>
object.month >>
object.day;
128 in.setstate(is.rdstate());
◆ operator<<
std::ostream& operator<< |
( |
std::ostream & |
out, |
|
|
const JDate_t & |
object |
|
) |
| |
|
friend |
Write date to output stream.
- Parameters
-
out | output stream |
object | date |
- Returns
- output stream
Definition at line 142 of file JDetectorIntegration.hh.
◆ SEPARATOR
const char JDATABASE::JDate_t::SEPARATOR = '/' |
|
static |
◆ year
int JDATABASE::JDate_t::year |
◆ month
int JDATABASE::JDate_t::month |
◆ day
int JDATABASE::JDate_t::day |
The documentation for this struct was generated from the following file: