XIOS
1.0
Xml I/O Server
|
#include <date.hpp>
Fonctions membres publiques | |
CDate (void) | |
Create an empty date associated to the specified calendar. Plus de détails... | |
CDate (const CCalendar &cal) | |
Create a date associated to the specified calendar. Plus de détails... | |
CDate (const CCalendar &cal, int yr, int mth, int d, int hr=0, int min=0, int sec=0) | |
CDate (const CDate &odate) | |
CDate (const CDate *const odate) | |
~CDate (void) | |
Destructeur ///. Plus de détails... | |
CDate & | operator= (const CDate &date) |
Opérateurs ///. Plus de détails... | |
bool | operator== (const CDate &date) |
operator Time (void) const | |
bool | checkDate (void) |
Traitements ///. Plus de détails... | |
int | getYear (void) const |
Divers accesseurs ///. Plus de détails... | |
int | getMonth (void) const |
int | getDay (void) const |
int | getHour (void) const |
int | getMinute (void) const |
int | getSecond (void) const |
Get the calendar associated to the date. Plus de détails... | |
const CCalendar & | getRelCalendar (void) const |
bool | hasRelCalendar (void) const |
Get the number of seconds since the beginning of the year. Plus de détails... | |
int | getSecondOfYear () const |
Get the number of days (expressed as a real number) since the beginning of the year. Plus de détails... | |
double | getDayOfYear () const |
Get the fraction of the current year as a real number between 0 and 1. Plus de détails... | |
double | getFractionOfYear () const |
Get the number of seconds since the beginning of the day. Plus de détails... | |
int | getSecondOfDay () const |
Get the fraction of the current day as a real number between 0 and 1. Plus de détails... | |
double | getFractionOfDay () const |
Get the fraction of the current day as a real number between 0 and 1. Plus de détails... | |
void | setYear (int newyear) |
Mutateurs ///. Plus de détails... | |
void | setMonth (int newmonth) |
void | setDay (int newday) |
void | setHour (int newhour) |
void | setMinute (int newminute) |
void | setSecond (int newsecond) |
void | setDate (int yr, int mth, int d, int hr=0, int min=0, int sec=0) |
void | addMonth (int value) |
Set the calendar associated to the date. Plus de détails... | |
bool | setRelCalendar (const CCalendar &relCalendar) |
StdString | toString (void) const |
Autres ///. Plus de détails... | |
StdString | getStryyyymmdd (void) const |
string | getStr (const string &str) const |
Fonctions membres publiques statiques | |
static CDate | FromString (const StdString &str, const CCalendar &calendar) |
Attributs privés | |
const CCalendar * | relCalendar |
Propriétés privées ///. Plus de détails... | |
int | year |
int | month |
int | day |
int | hour |
int | minute |
int | second |
Amis | |
StdOStream & | operator<< (StdOStream &out, const CDate &date) |
StdIStream & | operator>> (StdIStream &in, CDate &date) |
Return the number of seconds since the time origin fixed when creating the calendar. Plus de détails... | |
xios::CDate::CDate | ( | void | ) |
xios::CDate::CDate | ( | const CCalendar & | cal | ) |
xios::CDate::CDate | ( | const CCalendar & | cal, |
int | yr, | ||
int | mth, | ||
int | d, | ||
int | hr = 0 , |
||
int | min = 0 , |
||
int | sec = 0 |
||
) |
Définition à la ligne 26 du fichier date.cpp.
Références checkDate(), et DEBUG.
xios::CDate::CDate | ( | const CDate & | odate | ) |
Définition à la ligne 40 du fichier date.cpp.
Références checkDate(), DEBUG, et relCalendar.
xios::CDate::CDate | ( | const CDate *const | odate | ) |
void xios::CDate::addMonth | ( | int | value | ) |
Set the calendar associated to the date.
Définition à la ligne 235 du fichier date.cpp.
Références getRelCalendar(), xios::CCalendar::getYearLength(), month, et year.
Référencé par xios::operator+().
bool xios::CDate::checkDate | ( | void | ) |
Traitements ///.
Définition à la ligne 128 du fichier date.cpp.
Références xios::CCalendar::checkDate(), et getRelCalendar().
Référencé par CDate(), xios::CCalendar::parseDateDefault(), et setRelCalendar().
Définition à la ligne 257 du fichier date.cpp.
Référencé par xios::CCalendarWrapper::createCalendar(), xios::CFile::createHeader(), cxios_date_convert_from_string(), et xios::CCalendar::initializeDate().
int xios::CDate::getDay | ( | void | ) | const |
Définition à la ligne 138 du fichier date.cpp.
Références day.
Référencé par xios::CUserDefinedCalendar::checkDate(), xios::CCalendar::checkDate(), cxios_date_add_duration(), cxios_date_convert_from_string(), cxios_date_sub_duration(), cxios_get_calendar_wrapper_date_start_date(), cxios_get_calendar_wrapper_date_time_origin(), cxios_get_current_date(), getSecondOfYear(), xios::operator+(), xios::operator-(), xios::operator<(), et xios::operator==().
double xios::CDate::getDayOfYear | ( | ) | const |
Get the fraction of the current year as a real number between 0 and 1.
Get the number of days (expressed as a real number) since the beginning of the year.
Définition à la ligne 181 du fichier date.cpp.
Références xios::CCalendar::getDayLengthInSeconds(), getRelCalendar(), et getSecondOfYear().
Référencé par cxios_date_get_day_of_year().
double xios::CDate::getFractionOfDay | ( | ) | const |
Get the fraction of the current day as a real number between 0 and 1.
Définition à la ligne 209 du fichier date.cpp.
Références xios::CCalendar::getDayLengthInSeconds(), getRelCalendar(), et getSecondOfDay().
Référencé par cxios_date_get_fraction_of_day().
double xios::CDate::getFractionOfYear | ( | ) | const |
Get the number of seconds since the beginning of the day.
Get the fraction of the current year as a real number between 0 and 1.
Définition à la ligne 190 du fichier date.cpp.
Références getRelCalendar(), getSecondOfYear(), et xios::CCalendar::getYearTotalLength().
Référencé par cxios_date_get_fraction_of_year().
int xios::CDate::getHour | ( | void | ) | const |
Définition à la ligne 139 du fichier date.cpp.
Références hour.
Référencé par xios::CUserDefinedCalendar::checkDate(), xios::CCalendar::checkDate(), cxios_date_add_duration(), cxios_date_convert_from_string(), cxios_date_sub_duration(), cxios_get_calendar_wrapper_date_start_date(), cxios_get_calendar_wrapper_date_time_origin(), cxios_get_current_date(), getSecondOfDay(), getSecondOfYear(), xios::operator+(), xios::operator-(), xios::operator<(), et xios::operator==().
int xios::CDate::getMinute | ( | void | ) | const |
Définition à la ligne 140 du fichier date.cpp.
Références minute.
Référencé par xios::CUserDefinedCalendar::checkDate(), xios::CCalendar::checkDate(), cxios_date_add_duration(), cxios_date_convert_from_string(), cxios_date_sub_duration(), cxios_get_calendar_wrapper_date_start_date(), cxios_get_calendar_wrapper_date_time_origin(), cxios_get_current_date(), getSecondOfDay(), getSecondOfYear(), xios::operator+(), xios::operator-(), xios::operator<(), et xios::operator==().
int xios::CDate::getMonth | ( | void | ) | const |
Définition à la ligne 137 du fichier date.cpp.
Références month.
Référencé par xios::CUserDefinedCalendar::checkDate(), xios::CCalendar::checkDate(), cxios_date_add_duration(), cxios_date_convert_from_string(), cxios_date_sub_duration(), cxios_get_calendar_wrapper_date_start_date(), cxios_get_calendar_wrapper_date_time_origin(), cxios_get_current_date(), xios::CAllLeapCalendar::getMonthLength(), xios::CGregorianCalendar::getMonthLength(), xios::CJulianCalendar::getMonthLength(), xios::CUserDefinedCalendar::getMonthLength(), xios::CCalendar::getMonthLength(), getSecondOfYear(), xios::operator+(), xios::operator-(), xios::operator<(), et xios::operator==().
const CCalendar & xios::CDate::getRelCalendar | ( | void | ) | const |
Définition à la ligne 145 du fichier date.cpp.
Références xios::ERROR, et relCalendar.
Référencé par addMonth(), xios::CTemporalFilter::apply(), checkDate(), getDayOfYear(), getFractionOfDay(), getFractionOfYear(), getSecondOfDay(), getSecondOfYear(), getStr(), xios::operator+(), xios::operator-(), xios::CCalendar::setInitDate(), et xios::CCalendar::setTimeOrigin().
int xios::CDate::getSecond | ( | void | ) | const |
Get the calendar associated to the date.
Définition à la ligne 141 du fichier date.cpp.
Références second.
Référencé par xios::CUserDefinedCalendar::checkDate(), xios::CCalendar::checkDate(), cxios_date_add_duration(), cxios_date_convert_from_string(), cxios_date_sub_duration(), cxios_get_calendar_wrapper_date_start_date(), cxios_get_calendar_wrapper_date_time_origin(), cxios_get_current_date(), getSecondOfDay(), getSecondOfYear(), xios::operator+(), xios::operator-(), xios::operator<(), et xios::operator==().
int xios::CDate::getSecondOfDay | ( | ) | const |
Get the fraction of the current day as a real number between 0 and 1.
Get the number of seconds since the beginning of the day.
Définition à la ligne 199 du fichier date.cpp.
Références getHour(), xios::CCalendar::getHourLength(), getMinute(), xios::CCalendar::getMinuteLength(), getRelCalendar(), et getSecond().
Référencé par cxios_date_get_second_of_day(), et getFractionOfDay().
int xios::CDate::getSecondOfYear | ( | ) | const |
Get the number of days (expressed as a real number) since the beginning of the year.
Get the number of seconds since the beginning of the year.
Définition à la ligne 162 du fichier date.cpp.
Références getDay(), xios::CCalendar::getDayLengthInSeconds(), getHour(), xios::CCalendar::getHourLength(), getMinute(), xios::CCalendar::getMinuteLength(), getMonth(), xios::CCalendar::getMonthLength(), getRelCalendar(), getSecond(), et setMonth().
Référencé par cxios_date_get_second_of_year(), getDayOfYear(), getFractionOfYear(), et operator Time().
string xios::CDate::getStr | ( | const string & | str | ) | const |
Définition à la ligne 281 du fichier date.cpp.
Références day, xios::CCalendar::getDayLengthInSeconds(), getRelCalendar(), hour, minute, month, second, et year.
Référencé par xios::CFile::createHeader(), et xios::CFile::openInReadMode().
StdString xios::CDate::getStryyyymmdd | ( | void | ) | const |
int xios::CDate::getYear | ( | void | ) | const |
Divers accesseurs ///.
Définition à la ligne 136 du fichier date.cpp.
Références year.
Référencé par cxios_date_add_duration(), cxios_date_convert_from_string(), cxios_date_sub_duration(), cxios_get_calendar_wrapper_date_start_date(), cxios_get_calendar_wrapper_date_time_origin(), cxios_get_current_date(), xios::CJulianCalendar::getMonthLength(), xios::CGregorianCalendar::getMonthLength(), xios::CUserDefinedCalendar::getMonthLength(), xios::CJulianCalendar::getYearTotalLength(), xios::CGregorianCalendar::getYearTotalLength(), xios::CUserDefinedCalendar::getYearTotalLength(), operator Time(), xios::operator+(), xios::operator-(), xios::operator<(), et xios::operator==().
bool xios::CDate::hasRelCalendar | ( | void | ) | const |
Get the number of seconds since the beginning of the year.
Définition à la ligne 153 du fichier date.cpp.
Références relCalendar.
Référencé par xios::CCalendar::parseDateDefault().
xios::CDate::operator Time | ( | void | ) | const |
Définition à la ligne 107 du fichier date.cpp.
Références getSecondOfYear(), xios::CCalendar::getTimeOrigin(), getYear(), xios::CCalendar::getYearTotalLength(), et xios::CCalendar::hasLeapYear().
bool xios::CDate::operator== | ( | const CDate & | date | ) |
void xios::CDate::setDate | ( | int | yr, |
int | mth, | ||
int | d, | ||
int | hr = 0 , |
||
int | min = 0 , |
||
int | sec = 0 |
||
) |
Définition à la ligne 223 du fichier date.cpp.
Références day, hour, minute, month, second, et year.
Référencé par xios::CUserDefinedCalendar::parseDate(), et xios::CCalendar::parseDateDefault().
void xios::CDate::setDay | ( | int | newday | ) |
Définition à la ligne 218 du fichier date.cpp.
Références day.
Référencé par xios::CUserDefinedCalendar::checkDate(), xios::CCalendar::checkDate(), et xios::operator+().
void xios::CDate::setHour | ( | int | newhour | ) |
Définition à la ligne 219 du fichier date.cpp.
Références hour.
Référencé par xios::CUserDefinedCalendar::checkDate(), et xios::CCalendar::checkDate().
void xios::CDate::setMinute | ( | int | newminute | ) |
Définition à la ligne 220 du fichier date.cpp.
Références minute.
Référencé par xios::CUserDefinedCalendar::checkDate(), et xios::CCalendar::checkDate().
void xios::CDate::setMonth | ( | int | newmonth | ) |
Définition à la ligne 217 du fichier date.cpp.
Références month.
Référencé par xios::CUserDefinedCalendar::checkDate(), xios::CCalendar::checkDate(), et getSecondOfYear().
bool xios::CDate::setRelCalendar | ( | const CCalendar & | relCalendar | ) |
Définition à la ligne 249 du fichier date.cpp.
Références checkDate(), et relCalendar.
Référencé par xios::CCalendar::initializeDate().
void xios::CDate::setSecond | ( | int | newsecond | ) |
Définition à la ligne 221 du fichier date.cpp.
Références second.
Référencé par xios::CUserDefinedCalendar::checkDate(), et xios::CCalendar::checkDate().
void xios::CDate::setYear | ( | int | newyear | ) |
StdString xios::CDate::toString | ( | void | ) | const |
Autres ///.
Définition à la ligne 351 du fichier date.cpp.
Référencé par cxios_date_convert_to_string(), xios::CCalendarWrapper::setInitDate(), xios::CCalendarWrapper::setTimeOrigin(), et xios::CNc4DataOutput::writeTimeAxis_().
|
friend |
|
friend |
|
private |
Définition à la ligne 97 du fichier date.hpp.
Référencé par getDay(), getStr(), getStryyyymmdd(), xios::operator<<(), operator=(), operator==(), setDate(), et setDay().
|
private |
Définition à la ligne 97 du fichier date.hpp.
Référencé par getHour(), getStr(), xios::operator<<(), operator=(), operator==(), setDate(), et setHour().
|
private |
Définition à la ligne 97 du fichier date.hpp.
Référencé par getMinute(), getStr(), xios::operator<<(), operator=(), operator==(), setDate(), et setMinute().
|
private |
Définition à la ligne 97 du fichier date.hpp.
Référencé par addMonth(), getMonth(), getStr(), getStryyyymmdd(), xios::operator<<(), operator=(), operator==(), setDate(), et setMonth().
|
private |
Propriétés privées ///.
Calendar associated to the date
Définition à la ligne 96 du fichier date.hpp.
Référencé par CDate(), getRelCalendar(), hasRelCalendar(), operator=(), operator==(), xios::operator>>(), et setRelCalendar().
|
private |
Définition à la ligne 97 du fichier date.hpp.
Référencé par getSecond(), getStr(), xios::operator<<(), operator=(), operator==(), setDate(), et setSecond().
|
private |
Définition à la ligne 97 du fichier date.hpp.
Référencé par addMonth(), cxios_get_calendar_wrapper_date_start_date(), cxios_get_calendar_wrapper_date_time_origin(), cxios_get_current_date(), getStr(), getStryyyymmdd(), getYear(), xios::operator<<(), operator=(), operator==(), setDate(), et setYear().