#include <it_bus/gmonthday.h>
Inheritance diagram for IT_Bus::GMonthDay:
Definition at line 27 of file gmonthday.h.
Public Types | |
typedef IT_Reflect::ValueRef< IT_Bus::GMonthDay > | IT_ReflectionType |
Public Member Functions | |
GMonthDay (short wMonth=1, short wDay=1) IT_THROW_DECL((Exception)) | |
Constructor. | |
GMonthDay (const char *value) IT_THROW_DECL((Exception)) | |
Constructor. | |
GMonthDay (const String &value) IT_THROW_DECL((Exception)) | |
Constructor. | |
GMonthDay (const GMonthDay ©) | |
Copy constructor. | |
virtual | ~GMonthDay () |
Destructor. | |
virtual const QName & | get_type () const |
Returns the IT_Bus::QName for the type. | |
void | from_string (const String &str) IT_THROW_DECL((Exception)) |
Sets the monthday represented by the instance. | |
short | getMonth () const |
Returns a numeric representation of the month. | |
void | setMonth (short wMonth) IT_THROW_DECL((Exception)) |
Set the month represented by the instance from a numeric representation. | |
short | getDay () const |
Returns a numeric representation of the day. | |
void | setDay (short wDay) IT_THROW_DECL((Exception)) |
Set the day represented by the instance from a numeric representation. | |
bool | haveUTCTimeZoneOffset () const |
Returns a flag indicating whether the UTC offset is set. | |
void | setLocalTimeZone () |
Sets the local time zone. | |
void | getUTCTimeZoneOffset (short &hour_offset, short &minute_offset) const |
Obtain the UTC offset. | |
void | setUTCTimeZoneOffset (short hour_offset, short minute_offset) IT_THROW_DECL((Exception)) |
Set the UTC offset. | |
bool | operator== (const GMonthDay &other) const |
The equality operator. | |
bool | operator!= (const GMonthDay &other) const |
The inequality operator. | |
GMonthDay & | operator= (const GMonthDay &rhs) |
Assignment operator. | |
Static Public Member Functions | |
GMonthDay &operator+=(const Duration | get_static_type ()&rhs) IT_THROW_DECL((IT_Bus GMonthDay &static operator-=(const Duration &rhs) IT_THROW_DECL((IT_Bus const QName & |
Duration subtraction with assignment operator. | |
Public Attributes | |
virtual IT_Reflect::Reflection *virtual get_reflection() IT_THROW_DECL((IT_Reflect const IT_Reflect::Reflection *get_reflection() const IT_THROW_DECL((IT_Reflect Strin | to_string )() const |
Returns the monthday represented by the instance. | |
Private Attributes | |
GMonthDayImpl * | m_impl |
IT_Bus::GMonthDay::GMonthDay | ( | short | wMonth = 1 , |
|
short | wDay = 1 | |||
) |
Constructor.
wMonth | the month (1-12). The default is 1 | |
wDay | the day of the month. The default is 1 |
Exception |
IT_Bus::GMonthDay::GMonthDay | ( | const char * | value | ) |
IT_Bus::GMonthDay::GMonthDay | ( | const String & | value | ) |
void IT_Bus::GMonthDay::from_string | ( | const String & | str | ) |
virtual const QName& IT_Bus::GMonthDay::get_type | ( | ) | const [virtual] |
short IT_Bus::GMonthDay::getDay | ( | ) | const |
Returns a numeric representation of the day.
short IT_Bus::GMonthDay::getMonth | ( | ) | const |
Returns a numeric representation of the month.
void IT_Bus::GMonthDay::getUTCTimeZoneOffset | ( | short & | hour_offset, | |
short & | minute_offset | |||
) | const |
Obtain the UTC offset.
Hour and minute offsets are returned via out parameters.
bool IT_Bus::GMonthDay::haveUTCTimeZoneOffset | ( | ) | const |
Returns a flag indicating whether the UTC offset is set.
bool IT_Bus::GMonthDay::operator!= | ( | const GMonthDay & | other | ) | const |
The inequality operator.
bool IT_Bus::GMonthDay::operator== | ( | const GMonthDay & | other | ) | const |
The equality operator.
void IT_Bus::GMonthDay::setDay | ( | short | wDay | ) |
Set the day represented by the instance from a numeric representation.
short |
void IT_Bus::GMonthDay::setMonth | ( | short | wMonth | ) |
Set the month represented by the instance from a numeric representation.
short |
void IT_Bus::GMonthDay::setUTCTimeZoneOffset | ( | short | hour_offset, | |
short | minute_offset | |||
) |
Set the UTC offset.
short | the hours offset | |
short | the minutes offset |
virtual IT_Reflect::Reflection* virtual get_reflection () IT_THROW_DECL((IT_Reflect const IT_Reflect::Reflection* get_reflection () const IT_THROW_DECL((IT_Reflect Strin IT_Bus::GMonthDay::to_string)() const |