gyear Class Template Reference

Class corresponding to the XML Schema gYear built-in type. More...

Inheritance diagram for gyear:

time_zone

List of all members.

Constructors

 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 gyear &x, flags f=0, container *c=0)
 Copy constructor.
virtual gyear_clone (flags f=0, container *c=0) const
 Copy the instance polymorphically.
template<typename S>
 gyear (istream< S > &s, flags f=0, container *c=0)
 Create an instance from a data representation stream.
 gyear (const xercesc::DOMElement &e, flags f=0, container *c=0)
 Create an instance from a DOM element.
 gyear (const xercesc::DOMAttr &a, flags f=0, container *c=0)
 Create an instance from a DOM Attribute.
 gyear (const std::basic_string< C > &s, const xercesc::DOMElement *e, flags f=0, container *c=0)
 Create an instance from a string fragment.

Public Member Functions

int year () const
 Get the year component.
void year (int y)
 Set the year component.


Detailed Description

template<typename C, typename B>
class xsd::cxx::tree::gyear< C, B >

Class corresponding to the XML Schema gYear built-in type.

The gyear class represents a year with an optional time zone.


Constructor & Destructor Documentation

gyear ( int  year  )  [explicit]

Initialize an instance with the year component.

When this constructor is used, the time zone is left unspecified.

Parameters:
year The year component.

gyear ( int  year,
short  zone_hours,
short  zone_minutes 
)

Initialize an instance with the year component and time zone.

Parameters:
year The year component.
zone_hours The time zone hours component.
zone_minutes The time zone minutes component.

gyear ( const gyear< C, B > &  x,
flags  f = 0,
container c = 0 
)

Copy constructor.

Parameters:
x An instance to make a copy of.
f Flags to create the copy with.
c A pointer to the object that will contain the copy.
For polymorphic object models use the _clone function instead.

gyear ( istream< S > &  s,
flags  f = 0,
container c = 0 
) [inline]

Create an instance from a data representation stream.

Parameters:
s A stream to extract the data from.
f Flags to create the new instance with.
c A pointer to the object that will contain the new instance.

gyear ( const xercesc::DOMElement &  e,
flags  f = 0,
container c = 0 
)

Create an instance from a DOM element.

Parameters:
e A DOM element to extract the data from.
f Flags to create the new instance with.
c A pointer to the object that will contain the new instance.

gyear ( const xercesc::DOMAttr &  a,
flags  f = 0,
container c = 0 
)

Create an instance from a DOM Attribute.

Parameters:
a A DOM attribute to extract the data from.
f Flags to create the new instance with.
c A pointer to the object that will contain the new instance.

gyear ( const std::basic_string< C > &  s,
const xercesc::DOMElement *  e,
flags  f = 0,
container c = 0 
)

Create an instance from a string fragment.

Parameters:
s A string fragment to extract the data from.
e A pointer to DOM element containing the string fragment.
f Flags to create the new instance with.
c A pointer to the object that will contain the new instance.


Member Function Documentation

virtual gyear* _clone ( flags  f = 0,
container c = 0 
) const [virtual]

Copy the instance polymorphically.

Parameters:
f Flags to create the copy with.
c A pointer to the object that will contain the copy.
Returns:
A pointer to the dynamically allocated copy.
This function ensures that the dynamic type of the instance is used for copying and should be used for polymorphic object models instead of the copy constructor.

int year (  )  const

Get the year component.

Returns:
The year component.

void year ( int  y  ) 

Set the year component.

Parameters:
y The new year component.


The documentation for this class was generated from the following file:

Copyright © 2005-2010 CODE SYNTHESIS TOOLS CC