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

Definition at line 27 of file date.h.
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. | |
|
|
Default constructor.
|
|
||||||||||||||||
|
Constructor.
|
|
|
Constructor.
|
|
|
Constructor.
|
|
|
Copy constructor.
|
|
|
Destructor.
|
|
|
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.
Reimplemented from IT_Bus::AnyType. |
|
|
Initializes this instance with the date corresponding to the string argument.
|
|
|
Returns the IT_Bus::AnyType::Kind for the type.
Reimplemented from IT_Bus::AnySimpleType. |
|
|
Return an instance of the IT_Reflect::Reflection type that encapsulates this instance.
Reimplemented from IT_Bus::AnyType. |
|
|
Return an instance of the IT_Reflect::Reflection type that encapsulates this instance.
Reimplemented from IT_Bus::AnyType. |
|
|
Returns the IT_Bus::QName for the type. Derived subclasses implement this method and return their QName.
Implements IT_Bus::AnyType. |
|
|
Returns a numeric value for the day corresponding to the date this instance represents.
|
|
|
Returns a numeric value for the month corresponding to the date this instance represents.
|
|
||||||||||||
|
Obtain the UTC time zone offset values. The values are returned through the method arguments. |
|
|
Returns a numeric value for the year corresponding to the date this instance represents.
|
|
|
Returns a bool indicating whether the instance has the UTC time zone offset set.
|
|
|
Inequality operator. Compares two dates. |
|
|
Duration addition with assignment operator.
|
|
|
Duration subtraction with assignment operator.
|
|
|
Assignment operator.
|
|
|
Equality operator. Compares two dates. |
|
|
Read the value into the instance. Derived classes implement this method. Implements IT_Bus::AnySimpleType. |
|
|
Sets the value for the day to the numeric value supplied as an argument.
|
|
|
Set the instance to the local time zone.
|
|
|
Sets the value for the month to the numeric value supplied as an argument.
|
|
||||||||||||
|
Set the UTC time zone offset to the values supplied as arguments.
|
|
|
Sets the value for the year to the numeric value supplied as an argument.
|
|
|
Returns a string representation of the date.
|
|
|
Write the instance value. Derived classes implement this method. Implements IT_Bus::AnySimpleType. |
1.3.9.1