#include <it_bus/duration.h>
Inheritance diagram for IT_Bus::Duration:

Definition at line 26 of file duration.h.
Public Member Functions | |
| Duration () throw (()) | |
| Default constructor. | |
| Duration (bool isNegative, Long years, Long months, Long days, Long hours, Long minutes, Long seconds, Long milliseconds) throw ((Exception)) | |
| Constructor. | |
| Duration (const char *value) throw ((Exception)) | |
| Constructor. | |
| Duration (const String &value) throw ((Exception)) | |
| Constructor. | |
| Duration (const Duration ©) throw (()) | |
| Copy constructor. | |
| virtual | ~Duration () |
| 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 throw (()) |
| Returns a string representation of the duration. | |
| void | from_string (const String &str) throw ((Exception)) |
| Initializes this instance with the duration corresponding to the string argument. | |
| bool | is_zero () const throw (()) |
| Returns whether or not the duration is zero. | |
| bool | is_negative () const throw (()) |
| Returns whether or not the duration is negative. | |
| bool | is_years_set () const throw (()) |
| Returns whether or not the years item in the duration is set. | |
| bool | is_months_set () const throw (()) |
| Returns whether or not the months item in the duration is set. | |
| bool | is_days_set () const throw (()) |
| Returns whether or not the days item in the duration is set. | |
| bool | is_hours_set () const throw (()) |
| Returns whether or not the hours item in the duration is set. | |
| bool | is_minutes_set () const throw (()) |
| Returns whether or not the minutes item in the duration is set. | |
| bool | is_seconds_set () const throw (()) |
| Returns whether or not the seconds item in the duration is set. | |
| bool | is_seconds_fraction_set () const throw (()) |
| Returns whether or not the fractional part of the seconds item in the duration is set. | |
| Long | get_years () const throw (()) |
| Returns the value of the years item in the duration. | |
| Long | get_months () const throw (()) |
| Returns the value of the months item in the duration. | |
| Long | get_days () const throw (()) |
| Returns the value of the days item in the duration. | |
| Long | get_hours () const throw (()) |
| Returns the value of the hours item in the duration. | |
| Long | get_minutes () const throw (()) |
| Returns the value of the minutes item in the duration. | |
| Long | get_seconds () const throw (()) |
| Returns the value of the non-fractional part of the seconds item in the duration. | |
| Long | get_seconds_fraction () const throw (()) |
| Returns the value of the fractional part of the seconds item in the duration as milliseconds. | |
| void | reset () throw (()) |
| Reset the duration to zero. | |
| void | set_is_negative (bool is_negative) throw (()) |
| Sets whether or not the duration is negative. | |
| void | set_years (Long years) throw (()) |
| Set the years item in the duration. | |
| void | set_months (Long months) throw (()) |
| Set the months item in the duration. | |
| void | set_days (Long days) throw (()) |
| Set the days item in the duration. | |
| void | set_hours (Long hours) throw (()) |
| Set the hours item in the duration. | |
| void | set_minutes (Long minutes) throw (()) |
| Set the minutes item in the duration. | |
| void | set_seconds (Long seconds, Long milliseconds) throw ((Exception)) |
| Set the seconds item in the duration. | |
| bool | operator== (const Duration &other) const throw (()) |
| Equality operator. | |
| bool | operator!= (const Duration &other) const throw (()) |
| Inequality operator. | |
| Duration & | operator= (const Duration &rhs) throw (()) |
| Assignment operator. | |
|
|
Default constructor.
|
|
||||||||||||||||||||||||||||||||||||
|
Constructor. The seconds and milliseconds values will be normalized so that milliseconds is less than 1000. A value that is less than zero indicates that the item should not be set.
|
|
|
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 duration corresponding to the string argument.
|
|
|
Returns the value of the days item in the duration.
|
|
|
Returns the value of the hours item in the duration.
|
|
|
Returns the IT_Bus::AnyType::Kind for the type.
Reimplemented from IT_Bus::AnySimpleType. |
|
|
Returns the value of the minutes item in the duration.
|
|
|
Returns the value of the months item in the duration.
|
|
|
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 value of the non-fractional part of the seconds item in the duration.
|
|
|
Returns the value of the fractional part of the seconds item in the duration as milliseconds.
|
|
|
Returns the IT_Bus::QName for the type. Derived subclasses implement this method and return their QName.
Implements IT_Bus::AnyType. |
|
|
Returns the value of the years item in the duration.
|
|
|
Returns whether or not the days item in the duration is set.
|
|
|
Returns whether or not the hours item in the duration is set.
|
|
|
Returns whether or not the minutes item in the duration is set.
|
|
|
Returns whether or not the months item in the duration is set.
|
|
|
Returns whether or not the duration is negative.
|
|
|
Returns whether or not the fractional part of the seconds item in the duration is set.
|
|
|
Returns whether or not the seconds item in the duration is set.
|
|
|
Returns whether or not the years item in the duration is set.
|
|
|
Returns whether or not the duration is zero.
|
|
|
Inequality operator. Compares two durations for inequality. |
|
|
Assignment operator.
|
|
|
Equality operator. Compares two durations for equality. |
|
|
Read the value into the instance. Derived classes implement this method. Implements IT_Bus::AnySimpleType. |
|
|
Set the days item in the duration. A value that is less than zero unsets the item.
|
|
|
Set the hours item in the duration. A value that is less than zero unsets the item.
|
|
|
Sets whether or not the duration is negative.
|
|
|
Set the minutes item in the duration. A value that is less than zero unsets the item.
|
|
|
Set the months item in the duration. A value that is less than zero unsets the item.
|
|
||||||||||||
|
Set the seconds item in the duration. The fractional part of the seconds item is set using milliseconds. A second value that is less than zero unsets the item. A millisecond value that is less than zero indicates that item should not contain a fractional part. The seconds and milliseconds values will be normalized so that milliseconds is less than 1000.
|
|
|
Set the years item in the duration. A value that is less than zero unsets the item.
|
|
|
Returns a string representation of the duration.
|
|
|
Write the instance value. Derived classes implement this method. Implements IT_Bus::AnySimpleType. |
1.3.9.1