#include <acstimeDurationHelper.h>
Inheritance diagram for DurationHelper:


Public Member Functions | |
| DurationHelper (const acstime::Duration &duration) | |
| DurationHelper () | |
| DurationHelper (long double seconds) | |
| DurationHelper (const ACS::TimeInterval &duration) | |
| virtual | ~DurationHelper () |
| acstime::Duration | value () |
| void | value (const acstime::Duration &duration) |
| void | value (const ACS::TimeInterval &duration) |
| void | value (long double seconds) |
| CORBA::Boolean | positive () |
| void | positive (const CORBA::Boolean &) |
| CORBA::Long | day () |
| void | day (const CORBA::Long &) |
| CORBA::Long | hour () |
| void | hour (const CORBA::Long &) |
| CORBA::Long | minute () |
| void | minute (const CORBA::Long &) |
| CORBA::Long | second () |
| void | second (const CORBA::Long &) |
| CORBA::ULong | microSecond () |
| void | microSecond (const CORBA::ULong &) |
| CORBA::Boolean | normalize () |
| void | normalize (const CORBA::Boolean &) |
| void | reset () |
| acstime::TimeComparison | compare (const acstime::Duration &duration) |
| CORBA::Boolean | operator== (const acstime::Duration &duration) const |
| CORBA::Boolean | operator<= (const acstime::Duration &duration) const |
| CORBA::Boolean | operator< (const acstime::Duration &duration) const |
| CORBA::Boolean | operator>= (const acstime::Duration &duration) const |
| CORBA::Boolean | operator> (const acstime::Duration &duration) const |
| void | add (const acstime::Duration &duration) |
| DurationHelper & | operator+= (const acstime::Duration &duration) |
| void | subtract (const acstime::Duration &duration) |
| DurationHelper & | operator-= (const acstime::Duration &duration) |
| void | modulo (const acstime::Duration &duration) |
| DurationHelper & | operator%= (const acstime::Duration &duration) |
| void | multiply (const CORBA::ULong &multiplier) |
| DurationHelper & | operator *= (const CORBA::ULong &multiplier) |
| void | divide (const CORBA::ULong ÷r) |
| DurationHelper & | operator/= (const CORBA::ULong ÷r) |
| std::string | toString (const char *format) |
| void | fromString (const char *duration) |
| long double | toSeconds () |
Private Member Functions | |
| void | m_toValue () |
| void | m_toAttributes () |
| void | m_microSec (std::ostringstream &) |
| DurationHelper (const DurationHelper &) | |
| void | operator= (const DurationHelper &) |
Private Attributes | |
| acstime::Duration | value_m |
| CORBA::Boolean | positive_m |
| CORBA::Long | day_m |
| CORBA::Long | hour_m |
| CORBA::Long | minute_m |
| CORBA::Long | second_m |
| CORBA::ULong | microSecond_m |
| CORBA::Boolean | normalize_m |
TODO:
|
|
Constructor
|
|
|
Standard constructor |
|
|
Constructor
|
|
|
Constructor
|
|
|
Destructor - nothing to delete! |
|
|
copy not allowed |
|
|
Adds the given Duration to this Duration.
|
|
|
Compares this Duration with the given Duration and returns the relation. DWF-should this be replaced completely by operators? ? ?
|
|
|
Sets the current value of the day.
|
|
|
Returns the current value of the day.
|
|
|
Divides this Duration by the given integer value.
|
|
|
Sets this Duration's value from the given String.
|
|
|
Sets the current value of the hour.
|
|
|
Returns the current value of the hour.
|
|
|
|
|
|
|
|
|
|
|
|
Sets the current value of the microsecond.
|
|
|
Returns the current value of the microsecond.
|
|
|
Sets the current value of the minute.
|
|
|
Returns the current value of the minute.
|
|
|
Modulos this Duration by the given Duration.
|
|
|
Multiplies this Duration by the integer value.
|
|
|
Sets the Normalize or out-of-range flag. When this flag is set FALSE the interface causes an exception when any out-of-range attribute value is set. normalize is set to FALSE initially and after a reset(). When this flag is set TRUE the interface accepts out-of-range values for hour, minute, second, or microSecond. An out-of-range value causes all attributes to be normalized.
|
|
|
Returns the Normalize or out-of-range flag. When this flag is set FALSE the interface causes an exception when any out-of-range attribute value is set. normalize is set to FALSE initially and after a reset(). When this flag is set TRUE the interface accepts out-of-range values for hour, minute, second, or microSecond. An out-of-range value causes all attributes to be normalized.
|
|
|
Multiplies this Duration by the integer value.
|
|
|
Modulos this Duration by the given Duration.
|
|
|
Adds the given Duration to this Duration.
|
|
|
Subtracts the given Duration from this Duration.
|
|
|
Divides this Duration by the given integer value.
|
|
|
|
|
|
|
|
|
assignment not allowed |
|
|
|
|
|
|
|
|
|
|
|
Sets Duration's sign, TRUE => positive, FALSE => negative. positive is set TRUE initially and after a reset()..
|
|
|
Returns Duration's sign, TRUE => positive, FALSE => negative. positive is set TRUE initially and after a reset().
|
|
|
Sets all numeral attributes to zero, and normalize to FALSE. This facilities reuse of the object.
|
|
|
Sets the current value of the second.
|
|
|
Returns the current value of the second.
|
|
|
Subtracts the given Duration from this Duration.
|
|
|
Returns this Duration's value as the equivalent value in seconds (fractional).
|
|
|
Returns this Duration's value as a String.
|
|
|
Sets the current value of the Duration.
|
|
|
Sets the current value of the Duration.
|
|
|
Sets the current value of the Duration.
|
|
|
Returns the current value of the Duration.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.3.8