#include <it_bus/date.h>
Inheritance diagram for IT_Bus::Date:

Definition at line 27 of file date.h.
Public Types | |
|
typedef IT_Reflect::ValueRef< IT_Bus::Date > | IT_ReflectionType |
Public Member Functions | |
| Date () | |
| Default constructor. | |
| Date (short wYear, short wMonth, short wDay) throw ((Exception)) | |
| Constructor. | |
| Date (const char *value) throw ((Exception)) | |
| Constructor. | |
| Date (const String &value) throw ((Exception)) | |
| Constructor. | |
| Date (const Date ©) | |
| Copy constructor. | |
| virtual | ~Date () |
| Destructor. | |
| virtual AnyType & | copy (const AnyType &rhs) |
| Returns a reference to an AnyType that is a copy of the AnyType parameter. | |
| virtual void | write_value (AnySimpleTypeWriter &writer) const throw ((IT_Bus::SerializationException)) |
| Write the instance value. | |
| virtual void | read_value (AnySimpleTypeReader &reader) throw ((IT_Bus::DeserializationException)) |
| Read the value into the instance. | |
| virtual AnyType::Kind | get_kind () const |
| Returns the IT_Bus::AnyType::Kind for the type. | |
| virtual const QName & | get_type () const |
| Returns the IT_Bus::QName for the type. | |
| virtual IT_Reflect::Reflection * | get_reflection () throw ((IT_Reflect::ReflectException)) |
| Return an instance of the IT_Reflect::Reflection type that encapsulates this instance. | |
| virtual const IT_Reflect::Reflection * | get_reflection () const throw ((IT_Reflect::ReflectException)) |
| Return an instance of the IT_Reflect::Reflection type that encapsulates this instance. | |
| String | to_string () const |
| Returns a string representation of the date. | |
| void | from_string (const String &str) throw ((Exception)) |
| Initializes this instance with the date corresponding to the string argument. | |
| short | getYear () const |
| Returns a numeric value for the year corresponding to the date this instance represents. | |
| void | setYear (short wYear) throw ((Exception)) |
| Sets the value for the year to the numeric value supplied as an argument. | |
| short | getMonth () const |
| Returns a numeric value for the month corresponding to the date this instance represents. | |
| void | setMonth (short wMonth) throw ((Exception)) |
| Sets the value for the month to the numeric value supplied as an argument. | |
| short | getDay () const |
| Returns a numeric value for the day corresponding to the date this instance represents. | |
| void | setDay (short wDay) throw ((Exception)) |
| Sets the value for the day to the numeric value supplied as an argument. | |
| bool | haveUTCTimeZoneOffset () const |
| Returns a bool indicating whether the instance has the UTC time zone offset set. | |
| void | setLocalTimeZone () |
| Set the instance to the local time zone. | |
| void | setUTCTimeZoneOffset (short hour_offset, short minute_offset) throw ((Exception)) |
| Set the UTC time zone offset to the values supplied as arguments. | |
| void | getUTCTimeZoneOffset (short &hour_offset, short &minute_offset) const |
| Obtain the UTC time zone offset values. | |
| bool | operator== (const Date &other) const |
| Equality operator. | |
| bool | operator!= (const Date &other) const |
| Inequality operator. | |
| Date & | operator= (const Date &rhs) |
| Assignment operator. | |
| Date & | operator+= (const Duration &rhs) throw ((IT_Bus::Exception)) |
| Duration addition with assignment operator. | |
| Date & | operator-= (const Duration &rhs) throw ((IT_Bus::Exception)) |
| Duration subtraction with assignment operator. | |
Private Attributes | |
| DateImpl * | m_impl |
| IT_Bus::Date::Date | ( | short | wYear, | |
| short | wMonth, | |||
| short | wDay | |||
| ) | throw ((Exception)) |
Constructor.
| wYear | the year, including the century | |
| wMonth | the month (1-12) | |
| wDay | the day of the month |
| Exception |
| IT_Bus::Date::Date | ( | const char * | value | ) | throw ((Exception)) |
Returns a reference to an AnyType that is a copy of the AnyType parameter.
Derived classes override this method, providing an appropriate implementation. In this base class, this method is not supported; an exception is always thrown.
| AnyType | to be copied. |
| IT_Bus::Exception | with message "Copy not supported" |
Reimplemented from IT_Bus::AnyType.
| virtual void IT_Bus::Date::write_value | ( | AnySimpleTypeWriter & | writer | ) | const throw ((IT_Bus::SerializationException)) [virtual] |
| virtual void IT_Bus::Date::read_value | ( | AnySimpleTypeReader & | reader | ) | throw ((IT_Bus::DeserializationException)) [virtual] |
Read the value into the instance.
Derived classes implement this method.
Implements IT_Bus::AnySimpleType.
| virtual AnyType::Kind IT_Bus::Date::get_kind | ( | ) | const [virtual] |
Returns the IT_Bus::AnyType::Kind for the type.
Reimplemented from IT_Bus::AnySimpleType.
| virtual const QName& IT_Bus::Date::get_type | ( | ) | const [virtual] |
Returns the IT_Bus::QName for the type.
Derived subclasses implement this method and return their QName.
Implements IT_Bus::AnyType.
| virtual IT_Reflect::Reflection* IT_Bus::Date::get_reflection | ( | ) | throw ((IT_Reflect::ReflectException)) [virtual] |
Return an instance of the IT_Reflect::Reflection type that encapsulates this instance.
| IT_Reflect::ReflectException |
Reimplemented from IT_Bus::AnyType.
| virtual const IT_Reflect::Reflection* IT_Bus::Date::get_reflection | ( | ) | const throw ((IT_Reflect::ReflectException)) [virtual] |
Return an instance of the IT_Reflect::Reflection type that encapsulates this instance.
| IT_Reflect::ReflectException |
Reimplemented from IT_Bus::AnyType.
| String IT_Bus::Date::to_string | ( | ) | const |
Initializes this instance with the date corresponding to the string argument.
| String | representation of the date. |
| short IT_Bus::Date::getYear | ( | ) | const |
Returns a numeric value for the year corresponding to the date this instance represents.
| void IT_Bus::Date::setYear | ( | short | wYear | ) | throw ((Exception)) |
Sets the value for the year to the numeric value supplied as an argument.
| short | representing the year. |
| short IT_Bus::Date::getMonth | ( | ) | const |
Returns a numeric value for the month corresponding to the date this instance represents.
| void IT_Bus::Date::setMonth | ( | short | wMonth | ) | throw ((Exception)) |
Sets the value for the month to the numeric value supplied as an argument.
| short | representing the month. |
| short IT_Bus::Date::getDay | ( | ) | const |
Returns a numeric value for the day corresponding to the date this instance represents.
| void IT_Bus::Date::setDay | ( | short | wDay | ) | throw ((Exception)) |
Sets the value for the day to the numeric value supplied as an argument.
| short | representing the day. |
| bool IT_Bus::Date::haveUTCTimeZoneOffset | ( | ) | const |
Returns a bool indicating whether the instance has the UTC time zone offset set.
| void IT_Bus::Date::setUTCTimeZoneOffset | ( | short | hour_offset, | |
| short | minute_offset | |||
| ) | throw ((Exception)) |
Set the UTC time zone offset to the values supplied as arguments.
| short | numeric value for the hour offset. | |
| short | numeric value for the minute offset. |
| void IT_Bus::Date::getUTCTimeZoneOffset | ( | short & | hour_offset, | |
| short & | minute_offset | |||
| ) | const |
Obtain the UTC time zone offset values.
The values are returned through the method arguments.
| bool IT_Bus::Date::operator== | ( | const Date & | other | ) | const |
Equality operator.
Compares two dates.
| bool IT_Bus::Date::operator!= | ( | const Date & | other | ) | const |
Inequality operator.
Compares two dates.
1.5.1-p1