14#ifndef XSD_CXX_TREE_DATE_TIME_HXX
15#define XSD_CXX_TREE_DATE_TIME_HXX
20#include <xercesc/dom/DOMAttr.hpp>
21#include <xercesc/dom/DOMElement.hpp>
24#include <xsd/cxx/tree/istream-fwd.hxx>
129 template <
typename C>
131 zone_parse (
const C*, std::size_t);
133 template <
typename S>
135 zone_extract (istream<S>&);
172 template <
typename C,
typename B>
215 operator= (
const gday&) =
default;
241 template <
typename S>
273 gday (
const std::basic_string<C>& s,
274 const xercesc::DOMElement* e,
302 parse (
const std::basic_string<C>&);
316 template <
typename C,
typename B>
326 template <
typename C,
typename B>
338 template <
typename C,
typename B>
381 operator= (
const gmonth&) =
default;
407 template <
typename S>
440 const xercesc::DOMElement* e,
468 parse (
const std::basic_string<C>&);
473 unsigned short month_;
482 template <
typename C,
typename B>
492 template <
typename C,
typename B>
504 template <
typename C,
typename B>
547 operator= (
const gyear&) =
default;
573 template <
typename S>
605 gyear (
const std::basic_string<C>& s,
606 const xercesc::DOMElement* e,
634 parse (
const std::basic_string<C>&);
648 template <
typename C,
typename B>
658 template <
typename C,
typename B>
671 template <
typename C,
typename B>
742 template <
typename S>
777 const xercesc::DOMElement* e,
821 parse (
const std::basic_string<C>&);
826 unsigned short month_;
836 template <
typename C,
typename B>
846 template <
typename C,
typename B>
860 template <
typename C,
typename B>
931 template <
typename S>
968 const xercesc::DOMElement* e,
1012 parse (
const std::basic_string<C>&);
1018 unsigned short month_;
1027 template <
typename C,
typename B>
1037 template <
typename C,
typename B>
1050 template <
typename C,
typename B>
1098 operator= (
const date&) =
default;
1124 template <
typename S>
1156 date (
const std::basic_string<C>& s,
1157 const xercesc::DOMElement* e,
1217 parse (
const std::basic_string<C>&);
1223 unsigned short month_;
1224 unsigned short day_;
1233 template <
typename C,
typename B>
1243 template <
typename C,
typename B>
1256 template <
typename C,
typename B>
1304 operator= (
const time&) =
default;
1330 template <
typename S>
1362 time (
const std::basic_string<C>& s,
1363 const xercesc::DOMElement* e,
1423 parse (
const std::basic_string<C>&);
1428 unsigned short hours_;
1429 unsigned short minutes_;
1439 template <
typename C,
typename B>
1449 template <
typename C,
typename B>
1462 template <
typename C,
typename B>
1545 template <
typename S>
1580 const xercesc::DOMElement* e,
1688 parse (
const std::basic_string<C>&);
1694 unsigned short month_;
1695 unsigned short day_;
1696 unsigned short hours_;
1697 unsigned short minutes_;
1707 template <
typename C,
typename B>
1717 template <
typename C,
typename B>
1730 template <
typename C,
typename B>
1768 operator= (
const duration&) =
default;
1794 template <
typename S>
1829 const xercesc::DOMElement* e,
1954 parse (
const std::basic_string<C>&);
1960 unsigned int years_;
1961 unsigned int months_;
1963 unsigned int hours_;
1964 unsigned int minutes_;
1974 template <
typename C,
typename B>
1984 template <
typename C,
typename B>
1991#include <xsd/cxx/tree/date-time.ixx>
1992#include <xsd/cxx/tree/date-time.txx>
Class corresponding to the XML Schema anyType built-in type.
Definition elements.hxx:318
Class corresponding to the XML Schema dateTime built-in type.
Definition date-time.hxx:1464
void year(int y)
Set the year component.
unsigned short month() const
Get the month component.
date_time(const date_time &x, flags f=0, container *c=0)
Copy constructor.
int year() const
Get the year component.
unsigned short minutes() const
Get the minutes component.
void month(unsigned short m)
Set the month component.
double seconds() const
Get the seconds component.
void hours(unsigned short h)
Set the hours component.
unsigned short day() const
Get the day component.
void day(unsigned short d)
Set the day component.
date_time(int year, unsigned short month, unsigned short day, unsigned short hours, unsigned short minutes, double seconds, short zone_hours, short zone_minutes)
Initialize an instance with the year, month, day, hours, minutes, and seconds components as well as t...
void seconds(double s)
Set the seconds component.
date_time(istream< S > &s, flags f=0, container *c=0)
Create an instance from a data representation stream.
date_time(const std::basic_string< C > &s, const xercesc::DOMElement *e, flags f=0, container *c=0)
Create an instance from a string fragment.
date_time(int year, unsigned short month, unsigned short day, unsigned short hours, unsigned short minutes, double seconds)
Initialize an instance with the year, month, day, hours, minutes, and seconds components.
date_time(const xercesc::DOMElement &e, flags f=0, container *c=0)
Create an instance from a DOM element.
virtual date_time * _clone(flags f=0, container *c=0) const
Copy the instance polymorphically.
unsigned short hours() const
Get the hours component.
void minutes(unsigned short m)
Set the minutes component.
date_time(const xercesc::DOMAttr &a, flags f=0, container *c=0)
Create an instance from a DOM Attribute.
Class corresponding to the XML Schema date built-in type.
Definition date-time.hxx:1052
void year(int y)
Set the year component.
unsigned short month() const
Get the month component.
int year() const
Get the year component.
void month(unsigned short m)
Set the month component.
unsigned short day() const
Get the day component.
date(int year, unsigned short month, unsigned short day, short zone_hours, short zone_minutes)
Initialize an instance with the year, month, and day components as well as time zone.
date(const date &x, flags f=0, container *c=0)
Copy constructor.
date(const std::basic_string< C > &s, const xercesc::DOMElement *e, flags f=0, container *c=0)
Create an instance from a string fragment.
void day(unsigned short d)
Set the day component.
virtual date * _clone(flags f=0, container *c=0) const
Copy the instance polymorphically.
date(istream< S > &s, flags f=0, container *c=0)
Create an instance from a data representation stream.
date(int year, unsigned short month, unsigned short day)
Initialize an instance with the year, month, and day components.
date(const xercesc::DOMAttr &a, flags f=0, container *c=0)
Create an instance from a DOM Attribute.
date(const xercesc::DOMElement &e, flags f=0, container *c=0)
Create an instance from a DOM element.
Class corresponding to the XML Schema duration built-in type.
Definition date-time.hxx:1732
unsigned int years() const
Get the years component.
duration(const xercesc::DOMAttr &a, flags f=0, container *c=0)
Create an instance from a DOM Attribute.
double seconds() const
Get the seconds component.
void minutes(unsigned int m)
Set the minutes component.
void negative(bool n)
Change duration sign.
duration(const duration &x, flags f=0, container *c=0)
Copy constructor.
void days(unsigned int d)
Set the days component.
unsigned int minutes() const
Get the minutes component.
void months(unsigned int m)
Set the months component.
unsigned int days() const
Get the days component.
unsigned int months() const
Get the months component.
duration(const std::basic_string< C > &s, const xercesc::DOMElement *e, flags f=0, container *c=0)
Create an instance from a string fragment.
void years(unsigned int y)
Set the years component.
void seconds(double s)
Set the seconds component.
bool negative() const
Determine if duration is negative.
duration(const xercesc::DOMElement &e, flags f=0, container *c=0)
Create an instance from a DOM element.
duration(bool negative, unsigned int years, unsigned int months, unsigned int days, unsigned int hours, unsigned int minutes, double seconds)
Initialize a potentially negative instance with the years, months, days, hours, minutes,...
unsigned int hours() const
Get the hours component.
duration(istream< S > &s, flags f=0, container *c=0)
Create an instance from a data representation stream.
virtual duration * _clone(flags f=0, container *c=0) const
Copy the instance polymorphically.
void hours(unsigned int h)
Set the hours component.
Parsing and serialization flags.
Definition elements.hxx:76
Class corresponding to the XML Schema gDay built-in type.
Definition date-time.hxx:174
virtual gday * _clone(flags f=0, container *c=0) const
Copy the instance polymorphically.
unsigned short day() const
Get the day component.
gday(unsigned short day, short zone_hours, short zone_minutes)
Initialize an instance with the day component and time zone.
void day(unsigned short d)
Set the day component.
gday(istream< S > &s, flags f=0, container *c=0)
Create an instance from a data representation stream.
gday(const std::basic_string< C > &s, const xercesc::DOMElement *e, flags f=0, container *c=0)
Create an instance from a string fragment.
gday(const gday &x, flags f=0, container *c=0)
Copy constructor.
gday(const xercesc::DOMAttr &a, flags f=0, container *c=0)
Create an instance from a DOM Attribute.
gday(const xercesc::DOMElement &e, flags f=0, container *c=0)
Create an instance from a DOM element.
gday(unsigned short day)
Initialize an instance with the day component.
Class corresponding to the XML Schema gMonthDay built-in type.
Definition date-time.hxx:673
unsigned short month() const
Get the month component.
void month(unsigned short m)
Set the month component.
gmonth_day(istream< S > &s, flags f=0, container *c=0)
Create an instance from a data representation stream.
unsigned short day() const
Get the day component.
gmonth_day(unsigned short month, unsigned short day)
Initialize an instance with the month and day components.
gmonth_day(const xercesc::DOMAttr &a, flags f=0, container *c=0)
Create an instance from a DOM Attribute.
gmonth_day(const xercesc::DOMElement &e, flags f=0, container *c=0)
Create an instance from a DOM element.
void day(unsigned short d)
Set the day component.
gmonth_day(unsigned short month, unsigned short day, short zone_hours, short zone_minutes)
Initialize an instance with the month and day components as well as time zone.
gmonth_day(const std::basic_string< C > &s, const xercesc::DOMElement *e, flags f=0, container *c=0)
Create an instance from a string fragment.
virtual gmonth_day * _clone(flags f=0, container *c=0) const
Copy the instance polymorphically.
gmonth_day(const gmonth_day &x, flags f=0, container *c=0)
Copy constructor.
Class corresponding to the XML Schema gMonth built-in type.
Definition date-time.hxx:340
unsigned short month() const
Get the month component.
void month(unsigned short m)
Set the month component.
gmonth(const xercesc::DOMElement &e, flags f=0, container *c=0)
Create an instance from a DOM element.
gmonth(const std::basic_string< C > &s, const xercesc::DOMElement *e, flags f=0, container *c=0)
Create an instance from a string fragment.
gmonth(const gmonth &x, flags f=0, container *c=0)
Copy constructor.
gmonth(unsigned short month, short zone_hours, short zone_minutes)
Initialize an instance with the month component and time zone.
virtual gmonth * _clone(flags f=0, container *c=0) const
Copy the instance polymorphically.
gmonth(istream< S > &s, flags f=0, container *c=0)
Create an instance from a data representation stream.
gmonth(unsigned short month)
Initialize an instance with the month component.
gmonth(const xercesc::DOMAttr &a, flags f=0, container *c=0)
Create an instance from a DOM Attribute.
Class corresponding to the XML Schema gYearMonth built-in type.
Definition date-time.hxx:862
void year(int y)
Set the year component.
unsigned short month() const
Get the month component.
gyear_month(int year, unsigned short month, short zone_hours, short zone_minutes)
Initialize an instance with the year and month components as well as time zone.
int year() const
Get the year component.
void month(unsigned short m)
Set the month component.
gyear_month(const xercesc::DOMAttr &a, flags f=0, container *c=0)
Create an instance from a DOM Attribute.
virtual gyear_month * _clone(flags f=0, container *c=0) const
Copy the instance polymorphically.
gyear_month(istream< S > &s, flags f=0, container *c=0)
Create an instance from a data representation stream.
gyear_month(const std::basic_string< C > &s, const xercesc::DOMElement *e, flags f=0, container *c=0)
Create an instance from a string fragment.
gyear_month(const gyear_month &x, flags f=0, container *c=0)
Copy constructor.
gyear_month(int year, unsigned short month)
Initialize an instance with the year and month components.
gyear_month(const xercesc::DOMElement &e, flags f=0, container *c=0)
Create an instance from a DOM element.
Class corresponding to the XML Schema gYear built-in type.
Definition date-time.hxx:506
gyear(istream< S > &s, flags f=0, container *c=0)
Create an instance from a data representation stream.
void year(int y)
Set the year component.
int year() const
Get the year component.
gyear(const xercesc::DOMElement &e, flags f=0, container *c=0)
Create an instance from a DOM element.
gyear(int year)
Initialize an instance with the year component.
gyear(int year, short zone_hours, short zone_minutes)
Initialize an instance with the year component and time zone.
gyear(const std::basic_string< C > &s, const xercesc::DOMElement *e, flags f=0, container *c=0)
Create an instance from a string fragment.
virtual gyear * _clone(flags f=0, container *c=0) const
Copy the instance polymorphically.
gyear(const xercesc::DOMAttr &a, flags f=0, container *c=0)
Create an instance from a DOM Attribute.
gyear(const gyear &x, flags f=0, container *c=0)
Copy constructor.
Time zone representation.
Definition date-time.hxx:52
time_zone(short hours, short minutes)
Initialize an instance with the hours and minutes components.
bool zone_present() const
Determine if time zone is specified.
time_zone()
Default constructor.
void zone_hours(short h)
Set the hours component of the time zone.
short zone_hours() const
Get the hours component of the time zone.
void zone_reset()
Reset the time zone to the 'not specified' state.
short zone_minutes() const
Get the minutes component of the time zone.
void zone_minutes(short m)
Set the minutes component of the time zone.
Class corresponding to the XML Schema time built-in type.
Definition date-time.hxx:1258
time(const xercesc::DOMAttr &a, flags f=0, container *c=0)
Create an instance from a DOM Attribute.
unsigned short minutes() const
Get the minutes component.
double seconds() const
Get the seconds component.
void hours(unsigned short h)
Set the hours component.
time(istream< S > &s, flags f=0, container *c=0)
Create an instance from a data representation stream.
virtual time * _clone(flags f=0, container *c=0) const
Copy the instance polymorphically.
void seconds(double s)
Set the seconds component.
time(unsigned short hours, unsigned short minutes, double seconds, short zone_hours, short zone_minutes)
Initialize an instance with the hours, minutes, and seconds components as well as time zone.
time(unsigned short hours, unsigned short minutes, double seconds)
Initialize an instance with the hours, minutes, and seconds components.
time(const std::basic_string< C > &s, const xercesc::DOMElement *e, flags f=0, container *c=0)
Create an instance from a string fragment.
unsigned short hours() const
Get the hours component.
void minutes(unsigned short m)
Set the minutes component.
time(const xercesc::DOMElement &e, flags f=0, container *c=0)
Create an instance from a DOM element.
time(const time &x, flags f=0, container *c=0)
Copy constructor.
Contains C++ class definitions for XML Schema anyType and anySimpleType types as well as supporting c...
bool operator==(const buffer< C > &a, const buffer< C > &b)
buffer comparison operator.
Definition buffer.hxx:311
bool operator!=(const buffer< C > &a, const buffer< C > &b)
buffer comparison operator.
Definition buffer.hxx:325