1 #ifndef __JDB_JDATE_T__
2 #define __JDB_JDATE_T__
16 namespace JDATABASE {}
17 namespace JPP {
using namespace JDATABASE; }
34 public JMultiComparable<JDateAndTime_t, JTYPELIST<JDate_t, JTime_t>::typelist>
58 in >>
static_cast<JDate_t&
>(object);
61 in >>
static_cast<JTime_t&
>(object);
77 out << static_cast<const JDate_t&>(object);
79 out << static_cast<const JTime_t&>(object);
113 while (isspace(in.peek())) { in.ignore(); }
115 const locale
loc = in.imbue(locale(in.getloc(),
new JWhiteSpacesFacet(in.getloc(),
JDate_t::SEPARATOR)));
117 in >>
object.month >>
object.day >>
object.year;
119 if (in.get() == (int)
' ') {
121 in.imbue(locale(in.getloc(),
new JWhiteSpacesFacet(in.getloc(),
JTime_t::SEPARATOR)));
123 in >>
object.hour >>
object.minute >>
object.second;
125 if (in.get() == (int)
' ') {
131 if (key ==
"am" || key ==
"AM") {}
132 if (key ==
"pm" || key ==
"PM") {
object.hour += 12; }
static const char SEPARATOR
Separation character.
JDateAndTime_t()
Default constructor;.
JDateAndTimeUS_t()
Default constructor;.
Auxiliary class for recursive type list generation.
Auxiliary class for simple date.
friend std::ostream & operator<<(std::ostream &out, const JDateAndTime_t &object)
Write date and time to output stream.
static const char SEPARATOR
Separation character.
JEEP::JTime<':'> JTime_t
type defintion of time according database format
friend std::istream & operator>>(std::istream &in, JDateAndTimeUS_t &object)
Read date and time from input stream.
static const char SEPARATOR
Separation character.
then fatal The output file must have the wildcard in the e g root fi eval JPrintDetector a $DETECTOR O IDENTIFIER eval JPrintDetector a $DETECTOR O SUMMARY JAcoustics sh $DETECTOR_ID source JAcousticsToolkit sh CHECK_EXIT_CODE typeset A EMITTERS get_tripods $WORKDIR tripod txt EMITTERS get_transmitters $WORKDIR transmitter txt EMITTERS for EMITTER in
friend std::istream & operator>>(std::istream &in, JDateAndTime_t &object)
Read date and time from input stream.
Template definition of auxiliary base class for composite data structures composed of base classes wi...
Auxiliary class for simple time.
JEEP::JDate<'/'> JDate_t
type defintion of date according database format