Definition at line 59 of file TimeRange.hpp.
#include <TimeRange.hpp>
Public Types | |
typedef std::pair< CommonTime, CommonTime > | DTPair |
Public Member Functions | |
std::string | dump (const std::string formatArg="%02m/%02d/%02y %02H:%02M:%02S") const |
Dump method. More... | |
CommonTime | getEnd () const |
CommonTime | getStart () const |
bool | inRange (const CommonTime &testDT) const |
bool | isAfter (const TimeRange &right) const |
bool | isPriorTo (const TimeRange &right) const |
bool | isSubsetOf (const TimeRange &right) const |
NEW_EXCEPTION_CLASS (TimeRangeException, Exception) | |
bool | operator< (const TimeRange &right) const |
bool | operator== (const TimeRange &right) const |
Equivalence means all members are identical. More... | |
bool | overlaps (const TimeRange &right) const |
std::string | printf (const std::string formatArg="%02m/%02d/%02y %02H:%02M:%02S") const |
void | set (const CommonTime &startDT, const CommonTime &endDT, const bool startInclusive=true, const bool endInclusive=true) |
TimeRange & | setToString (const std::string &str, const std::string &fmt) |
TimeRange () | |
TimeRange (const CommonTime &startDT, const CommonTime &endDT, const bool startInclusive=true, const bool endInclusive=true) | |
TimeRange (const TimeRange &tr) | |
Copy construtor. More... | |
TimeRange (DTPair dtPair, const bool startInclusive=true, const bool endInclusive=true) | |
~TimeRange () | |
Protected Member Functions | |
void | init (const CommonTime &startDT, const CommonTime &endDT, const bool startInclusive=true, const bool endInclusive=true) |
Protected Attributes | |
CommonTime | end |
bool | includeEndTime |
bool | includeStartTime |
CommonTime | start |
typedef std::pair<CommonTime, CommonTime> gnsstk::TimeRange::DTPair |
Definition at line 65 of file TimeRange.hpp.
gnsstk::TimeRange::TimeRange | ( | ) |
Definition at line 50 of file TimeRange.cpp.
gnsstk::TimeRange::TimeRange | ( | const CommonTime & | startDT, |
const CommonTime & | endDT, | ||
const bool | startInclusive = true , |
||
const bool | endInclusive = true |
||
) |
TimeRangeException |
Definition at line 57 of file TimeRange.cpp.
gnsstk::TimeRange::TimeRange | ( | DTPair | dtPair, |
const bool | startInclusive = true , |
||
const bool | endInclusive = true |
||
) |
To cover potential use with RiseSetTimeList
TimeRangeException |
Definition at line 74 of file TimeRange.cpp.
Copy construtor.
Definition at line 137 of file TimeRange.cpp.
|
inline |
Definition at line 87 of file TimeRange.hpp.
std::string gnsstk::TimeRange::dump | ( | const std::string | formatArg = "%02m/%02d/%02y %02H:%02M:%02S" | ) | const |
Dump method.
Definition at line 394 of file TimeRange.cpp.
|
inline |
Definition at line 91 of file TimeRange.hpp.
|
inline |
Definition at line 90 of file TimeRange.hpp.
|
protected |
TimeRangeException |
Definition at line 93 of file TimeRange.cpp.
bool gnsstk::TimeRange::inRange | ( | const CommonTime & | testDT | ) | const |
Return true is testDT is within the TimeRange. Whether the boundaries are included is in accordance with the indications provided in includeStartTime and includeEndTime.
Definition at line 146 of file TimeRange.cpp.
True if start/end of this object are both after the end of "right"
Definition at line 258 of file TimeRange.cpp.
True if start/end of this object are both prior to start of "right"
Definition at line 204 of file TimeRange.cpp.
Definition at line 249 of file TimeRange.cpp.
gnsstk::TimeRange::NEW_EXCEPTION_CLASS | ( | TimeRangeException | , |
Exception | |||
) |
Included to enable use in maps/sets. This operator returns true if the start time of left is less than start time of right, regardless of end time.
Definition at line 175 of file TimeRange.cpp.
Equivalence means all members are identical.
Definition at line 166 of file TimeRange.cpp.
Definition at line 221 of file TimeRange.cpp.
std::string gnsstk::TimeRange::printf | ( | const std::string | formatArg = "%02m/%02d/%02y %02H:%02M:%02S" | ) | const |
Formatted print
StringUtils::StringException |
Definition at line 376 of file TimeRange.cpp.
void gnsstk::TimeRange::set | ( | const CommonTime & | startDT, |
const CommonTime & | endDT, | ||
const bool | startInclusive = true , |
||
const bool | endInclusive = true |
||
) |
TimeRangeException |
Definition at line 120 of file TimeRange.cpp.
Formatted string input. Assume string has
TimeRangeException | |
StringUtils::StringException |
std::cout << "secondTime: '" << secondTime << "'" << endl;
Definition at line 274 of file TimeRange.cpp.
|
protected |
Definition at line 157 of file TimeRange.hpp.
|
protected |
Definition at line 159 of file TimeRange.hpp.
|
protected |
Definition at line 158 of file TimeRange.hpp.
|
protected |
Definition at line 156 of file TimeRange.hpp.