XIOS  1.0
Xml I/O Server
 Tout Classes Espaces de nommage Fichiers Fonctions Variables Définitions de type Énumérations Valeurs énumérées Amis Macros
Référence de la classe xios::CDate

#include <date.hpp>

+ Graphe de collaboration de xios::CDate:

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...
 
CDateoperator= (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 CCalendargetRelCalendar (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 CCalendarrelCalendar
 Propriétés privées ///. Plus de détails...
 
int year
 
int month
 
int day
 
int hour
 
int minute
 
int second
 

Amis

StdOStreamoperator<< (StdOStream &out, const CDate &date)
 
StdIStreamoperator>> (StdIStream &in, CDate &date)
 Return the number of seconds since the time origin fixed when creating the calendar. Plus de détails...
 

Description détaillée

Définition à la ligne 14 du fichier date.hpp.

Documentation des constructeurs et destructeur

xios::CDate::CDate ( void  )

Create an empty date associated to the specified calendar.

////////////////////// Définitions ////////////////////// ///

Constructeurs /// Create an empty date associated to no calendar

Définition à la ligne 14 du fichier date.cpp.

xios::CDate::CDate ( const CCalendar cal)

Create a date associated to the specified calendar.

Définition à la ligne 20 du fichier date.cpp.

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.

+ Voici le graphe d'appel pour cette fonction :

xios::CDate::CDate ( const CDate odate)

Définition à la ligne 40 du fichier date.cpp.

Références checkDate(), DEBUG, et relCalendar.

+ Voici le graphe d'appel pour cette fonction :

xios::CDate::CDate ( const CDate *const  odate)
xios::CDate::~CDate ( void  )

Destructeur ///.

Définition à la ligne 53 du fichier date.cpp.

Documentation des fonctions membres

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+().

+ Voici le graphe d'appel pour cette fonction :

+ Voici le graphe des appelants de cette fonction :

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().

+ Voici le graphe d'appel pour cette fonction :

+ Voici le graphe des appelants de cette fonction :

CDate xios::CDate::FromString ( const StdString str,
const CCalendar calendar 
)
static

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().

+ Voici le graphe des appelants de cette fonction :

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.

Renvoie
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().

+ Voici le graphe d'appel pour cette fonction :

+ Voici le graphe des appelants de cette fonction :

double xios::CDate::getFractionOfDay ( ) const

Get the fraction of the current day as a real number between 0 and 1.

Renvoie
the fraction of the current day.

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().

+ Voici le graphe d'appel pour cette fonction :

+ Voici le graphe des appelants de cette fonction :

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.

Renvoie
the fraction of the current year.

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().

+ Voici le graphe d'appel pour cette fonction :

+ Voici le graphe des appelants de cette fonction :

const CCalendar & xios::CDate::getRelCalendar ( void  ) const
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.

Renvoie
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().

+ Voici le graphe d'appel pour cette fonction :

+ Voici le graphe des appelants de cette fonction :

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.

Renvoie
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().

+ Voici le graphe d'appel pour cette fonction :

+ Voici le graphe des appelants de cette fonction :

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().

+ Voici le graphe d'appel pour cette fonction :

+ Voici le graphe des appelants de cette fonction :

StdString xios::CDate::getStryyyymmdd ( void  ) const

Définition à la ligne 267 du fichier date.cpp.

Références day, month, et year.

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().

+ Voici le graphe des appelants de cette fonction :

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().

+ Voici le graphe d'appel pour cette fonction :

CDate & xios::CDate::operator= ( const CDate date)

Opérateurs ///.


Définition à la ligne 58 du fichier date.cpp.

Références day, hour, minute, month, relCalendar, second, et year.

bool xios::CDate::operator== ( const CDate date)

Définition à la ligne 66 du fichier date.cpp.

Références day, hour, minute, month, relCalendar, second, et year.

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().

+ Voici le graphe des appelants de cette fonction :

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+().

+ Voici le graphe des appelants de cette fonction :

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().

+ Voici le graphe des appelants de cette fonction :

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().

+ Voici le graphe des appelants de cette fonction :

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().

+ Voici le graphe des appelants de cette fonction :

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().

+ Voici le graphe d'appel pour cette fonction :

+ Voici le graphe des appelants de cette fonction :

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().

+ Voici le graphe des appelants de cette fonction :

void xios::CDate::setYear ( int  newyear)

Mutateurs ///.

Définition à la ligne 216 du fichier date.cpp.

Références year.

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_().

+ Voici le graphe des appelants de cette fonction :

Documentation des fonctions amies et associées

StdOStream& operator<< ( StdOStream out,
const CDate date 
)
friend

Définition à la ligne 74 du fichier date.cpp.

StdIStream& operator>> ( StdIStream in,
CDate date 
)
friend

Return the number of seconds since the time origin fixed when creating the calendar.

Définition à la ligne 97 du fichier date.cpp.

Documentation des données membres

int xios::CDate::day
private

Définition à la ligne 97 du fichier date.hpp.

Référencé par getDay(), getStr(), getStryyyymmdd(), xios::operator<<(), operator=(), operator==(), setDate(), et setDay().

int xios::CDate::hour
private

Définition à la ligne 97 du fichier date.hpp.

Référencé par getHour(), getStr(), xios::operator<<(), operator=(), operator==(), setDate(), et setHour().

int xios::CDate::minute
private

Définition à la ligne 97 du fichier date.hpp.

Référencé par getMinute(), getStr(), xios::operator<<(), operator=(), operator==(), setDate(), et setMinute().

int xios::CDate::month
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().

const CCalendar* xios::CDate::relCalendar
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().

int xios::CDate::second
private

Définition à la ligne 97 du fichier date.hpp.

Référencé par getSecond(), getStr(), xios::operator<<(), operator=(), operator==(), setDate(), et setSecond().


La documentation de cette classe a été générée à partir des fichiers suivants :