#include <acstimeEpochHelper.h>
Inheritance diagram for EpochHelper:
Public Member Functions | |
EpochHelper (const acstime::Epoch &epoch) | |
EpochHelper () | |
EpochHelper (long double MJDSeconds) | |
EpochHelper (const ACS::Time &value) | |
virtual | ~EpochHelper () |
acstime::Epoch | value () |
void | value (const acstime::Epoch &epoch) |
void | value (const ACS::Time &epoch) |
void | value (long double MJDSeconds) |
CORBA::ULong | year () |
void | year (const CORBA::ULong &) |
CORBA::Long | month () |
void | month (const CORBA::Long &) |
CORBA::Long | day () |
void | day (const CORBA::Long &) |
CORBA::Long | dayOfYear () |
void | dayOfYear (const CORBA::Long &) |
CORBA::ULong | dayOfWeek () |
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::Long | microSecond () |
void | microSecond (const CORBA::Long &) |
CORBA::Boolean | normalize () |
void | normalize (const CORBA::Boolean &) |
void | reset () |
acstime::TimeComparison | compare (const acstime::Epoch &epoch) |
CORBA::Boolean | operator== (const acstime::Epoch &epoch) const |
CORBA::Boolean | operator<= (const acstime::Epoch &epoch) const |
CORBA::Boolean | operator< (const acstime::Epoch &epoch) const |
CORBA::Boolean | operator>= (const acstime::Epoch &epoch) const |
CORBA::Boolean | operator> (const acstime::Epoch &epoch) const |
void | add (const acstime::Duration &) |
EpochHelper & | operator+= (const acstime::Duration &duration) |
void | subtract (const acstime::Duration &) |
EpochHelper & | operator-= (const acstime::Duration &duration) |
acstime::Duration | difference (const acstime::Epoch &subtrahend) |
void | modulo (const acstime::Epoch &epoch) |
EpochHelper & | operator%= (const acstime::Epoch &epoch) |
CORBA::Double | toUTCdate (CORBA::Long array2TAI, CORBA::Long TAI2UTC) |
long double | toMJDseconds () |
CORBA::Double | toJulianYear (CORBA::Long array2TAI, CORBA::Long TAI2UTC) |
std::string | toString (acstime::TimeSystem, const char *, const CORBA::Long array2TAI, const CORBA::Long TAI2UTC) |
void | fromString (acstime::TimeSystem, const char *) |
Private Member Functions | |
void | m_toValue (CORBA::Boolean booVal) |
void | m_toAttributes () |
long | m_calcLeap () |
void | m_almostUnix (std::ostringstream &) |
void | m_iso8601date (std::ostringstream &) |
void | m_iso8601full (std::ostringstream &) |
void | m_abbrevMonth (std::ostringstream &) |
void | m_abbrevWeekday (std::ostringstream &) |
void | m_microSec (std::ostringstream &, int) |
EpochHelper (const EpochHelper &) | |
void | operator= (const EpochHelper &) |
Private Attributes | |
acstime::Epoch | value_m |
CORBA::ULong | year_m |
CORBA::Long | month_m |
CORBA::Long | day_m |
CORBA::Long | day_mOfYear |
CORBA::ULong | dayOfWeek_m |
CORBA::Long | hour_m |
CORBA::Long | minute_m |
CORBA::Long | second_m |
CORBA::Long | microSecond_m |
CORBA::Boolean | normalize_m |
Friends | |
DurationHelper * | operator% (const EpochHelper &, const ACS::TimeInterval &) |
DurationHelper * | operator% (const ACS::TimeInterval &, const EpochHelper &) |
TODO:
|
Constructor
|
|
Standard constructor |
|
Constructor
|
|
Constructor
|
|
Destructor - nothing to delete! |
|
copy not allowed |
|
Adds the given Duration to this Epoch.
|
|
Compares this Epoch with the given Epoch 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.
|
|
Returns the current value of the day of week.
|
|
Sets the current value of the day of year.
|
|
Returns the current value of the day of year.
|
|
Subtracts the given Epoch from this Epoch and returns a Duration. result. Notice the returned duration will be positive if the subtrahend is earlier than this, and negative if the subtrahend is later than this.
|
|
Sets this Epoch'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 Epoch by the given Epoch.
|
|
Sets the current value of the month.
|
|
Returns the current value of the month.
|
|
Set normalize or out-of-range flag. When this flag is set FALSE the class causes an exception when any out-of-range value is set. normalize is set to FALSE initially and after a reset(). When this flag is set TRUE the class accepts out-of-range values for month, day, dayOfYear, hour, minute, second, or microSecond. An out-of-range value causes all attributes to be normalized. For example, with normalize set true and setting the month,day to 3,32 will result in month,day 4,1. Setting hour,minute to 2,-62 will result in hour,minute 1,2. This can be used as a convenient way of adding to or subtracting from an Epoch.
|
|
Get normalize or out-of-range flag. When this flag is set FALSE the class causes an exception when any out-of-range value is set. normalize is set to FALSE initially and after a reset(). When this flag is set TRUE the class accepts out-of-range values for month, day, dayOfYear, hour, minute, second, or microSecond. An out-of-range value causes all attributes to be normalized. For example, with normalize set true and setting the month,day to 3,32 will result in month,day 4,1. Setting hour,minute to 2,-62 will result in hour,minute 1,2. This can be used as a convenient way of adding to or subtracting from an Epoch.
|
|
Modulos this Epoch by the given Epoch.
|
|
Adds the given Duration to this Epoch.
|
|
Subtracts the given Duration from this Epoch.
|
|
|
|
|
|
assignment not allowed |
|
|
|
|
|
|
|
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 Epoch.
|
|
Returns this Epoch's value as the equivalent Julian year.
|
|
Returns this Epoch's value as the equivalent modified Julian date in the form of fractional seconds.
|
|
Returns this Epoch's value as a String.
|
|
Returns this Epoch's value as the equivalent UTC date and fractional day.
|
|
Sets the current value of the Epoch.
|
|
Sets the current value of the Epoch.
|
|
Sets the current value of the Epoch.
|
|
Returns the current value of the Epoch.
|
|
Sets the current value of the year.
|
|
Returns the current value of the year.
|
|
Implemented this modulo operand to fulfill the requirements on an SPR from Correlator. Caller is responsible for deleting the DurationHelper allocated by this operand.
|
|
Implemented this modulo operand to fulfill the requirements on an SPR from Correlator. Caller is responsible for deleting the DurationHelper allocated by this operand.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|