#include <CivilTime.hpp>
Inheritance diagram for CivilTime:


Definition at line 39 of file CivilTime.hpp.
Public Member Functions | ||||
| CivilTime (int yr=0, int mo=0, int dy=0, int hr=0, int mn=0, double s=0.0) throw () | ||||
| Default Constructor. | ||||
| CivilTime (const CivilTime &right) throw () | ||||
| Copy Constructor. | ||||
| CivilTime (const TimeTag &right) throw ( InvalidRequest ) | ||||
| Alternate Copy Constructor. | ||||
| CivilTime (const CommonTime &right) throw () | ||||
| Alternate Copy Constructor. | ||||
| CivilTime & | operator= (const CivilTime &right) throw () | |||
| Assignment Operator. | ||||
| virtual | ~CivilTime () throw () | |||
| Virtual Destructor. | ||||
| virtual CommonTime | convertToCommonTime () const throw ( InvalidRequest ) | |||
| ||||
| virtual void | convertFromCommonTime (const CommonTime &ct) throw () | |||
| ||||
| virtual std::string | printf (const std::string &fmt) const throw ( gpstk::StringUtils::StringException ) | |||
| This function formats this time to a string. | ||||
| virtual std::string | printError (const std::string &fmt) const throw ( gpstk::StringUtils::StringException ) | |||
| This function works similarly to printf. | ||||
| virtual bool | setFromInfo (const IdToValue &info) throw () | |||
| Set this object using the information provided in info. | ||||
| virtual std::string | getPrintChars () const throw () | |||
| Return a string containing the characters that this class understands when printing times. | ||||
| virtual std::string | getDefaultFormat () const throw () | |||
| Return a string containing the default format to use in printing. | ||||
| virtual bool | isValid () const throw () | |||
| Returns true if this object's members are valid, false otherwise. | ||||
| virtual void | reset () throw () | |||
| Reset this object to the default state. | ||||
| bool | operator== (const CivilTime &right) const throw () | |||
| bool | operator!= (const CivilTime &right) const throw () | |||
| bool | operator< (const CivilTime &right) const throw () | |||
| bool | operator> (const CivilTime &right) const throw () | |||
| bool | operator<= (const CivilTime &right) const throw () | |||
| bool | operator>= (const CivilTime &right) const throw () | |||
Public Attributes | ||||
| int | year | |||
| int | month | |||
| int | day | |||
| int | hour | |||
| int | minute | |||
| double | second | |||
Static Public Attributes | ||||
| const char * | MonthNames [] | |||
| Long month names for converstion from numbers to strings. | ||||
| const char * | MonthAbbrevNames [] | |||
| Short month names for converstion from numbers to strings. | ||||
|
|
Implements TimeTag. Definition at line 82 of file CivilTime.cpp. References gpstk::convertJDtoCalendar(), and gpstk::convertSODtoTime(). Referenced by CivilTime::isValid(). |
|
|
Implements TimeTag. Definition at line 61 of file CivilTime.cpp. References gpstk::convertCalendarToJD(), gpstk::convertTimeToSOD(), CivilTime::day, GPSTK_THROW, CivilTime::hour, CivilTime::minute, CivilTime::month, CivilTime::second, and CivilTime::year. Referenced by CivilTime::isValid(), gpstk::mixedScanTime(), and gpstk::scanTime(). |
|
|
Return a string containing the default format to use in printing.
Implements TimeTag. Definition at line 153 of file CivilTime.hpp. |
|
|
Return a string containing the characters that this class understands when printing times.
Implements TimeTag. Definition at line 146 of file CivilTime.hpp. |
|
|
Returns true if this object's members are valid, false otherwise.
Implements TimeTag. Definition at line 258 of file CivilTime.cpp. References CivilTime::convertFromCommonTime(), and CivilTime::convertToCommonTime(). |
|
|
This function works similarly to printf. Instead of filling the format with data, it fills with error messages. Implements TimeTag. Definition at line 133 of file CivilTime.cpp. References gpstk::StringUtils::formattedPrint(), and GPSTK_RETHROW. |
|
|
This function formats this time to a string. The exceptions thrown would only be due to problems parsing the fmt string. Implements TimeTag. Definition at line 97 of file CivilTime.cpp. References gpstk::StringUtils::formattedPrint(), and GPSTK_RETHROW. |
|
|
Reset this object to the default state.
Implements TimeTag. Definition at line 270 of file CivilTime.cpp. References CivilTime::day, CivilTime::hour, CivilTime::minute, CivilTime::month, CivilTime::second, and CivilTime::year. |
|
|
Set this object using the information provided in info.
Implements TimeTag. Definition at line 169 of file CivilTime.cpp. References gpstk::StringUtils::asDouble(), gpstk::StringUtils::asInt(), gpstk::StringUtils::isLike(), and gpstk::StringUtils::lowerCase(). Referenced by gpstk::scanTime(). |
|
|
Definition at line 189 of file CivilTime.hpp. Referenced by CivilTime::convertToCommonTime(), gpstk::mixedScanTime(), and CivilTime::reset(). |
|
|
Definition at line 190 of file CivilTime.hpp. Referenced by CivilTime::convertToCommonTime(), gpstk::mixedScanTime(), CivilTime::reset(), and gpstk::scanTime(). |
|
|
Definition at line 191 of file CivilTime.hpp. Referenced by CivilTime::convertToCommonTime(), gpstk::mixedScanTime(), CivilTime::reset(), and gpstk::scanTime(). |
|
|
Definition at line 188 of file CivilTime.hpp. Referenced by CivilTime::convertToCommonTime(), gpstk::mixedScanTime(), and CivilTime::reset(). |
|
|
Initial value:
{
"err", "Jan", "Feb", "Mar", "Apr", "May", "Jun","Jul",
"Aug", "Sep", "Oct", "Nov", "Dec"
}
Definition at line 43 of file CivilTime.cpp. |
|
|
Initial value:
{
"Error",
"January","February", "March", "April",
"May", "June","July", "August",
"September", "October", "November", "December"
}
Definition at line 34 of file CivilTime.cpp. |
|
|
Definition at line 192 of file CivilTime.hpp. Referenced by CivilTime::convertToCommonTime(), gpstk::mixedScanTime(), CivilTime::reset(), and gpstk::scanTime(). |
|
|
Definition at line 187 of file CivilTime.hpp. Referenced by CivilTime::convertToCommonTime(), and CivilTime::reset(). |
1.3.9.1