vega
|
A class which wraps a Time type (VR of vr::TM). More...
#include <vega/time.h>
Public Member Functions | |
Time (const std::string &s) | |
Time (const std::shared_ptr< Time > &lower, const std::shared_ptr< Time > &upper) | |
bool | is_range () const |
const std::shared_ptr< const Time > & | lower () const |
const std::shared_ptr< const Time > & | upper () const |
bool | operator== (const Time &other) const |
bool | operator!= (const Time &other) const |
std::string | str () const |
void | set_string (const std::string &s) |
Public Attributes | |
std::shared_ptr< const RegexString > | m_time |
std::shared_ptr< const Time > | m_lower |
std::shared_ptr< const Time > | m_upper |
Static Public Attributes | |
static const std::shared_ptr< const std::regex > | SINGLE_TIME_REGEX |
static const std::shared_ptr< const std::regex > | TIME_RANGE_REGEX |
A class which wraps a Time type (VR of vr::TM).
A string of characters of the format hhmmss.frac; where hh contains hours (range 00 to 23), mm contains minutes (range 00 to 59), ss contains seconds (range 00 to 59), and frac contains a fractional part of a second as small as 1 millionth of a second (range 000000 to 999999). A 24 hour clock is assumed. Midnight can be represented by only 0000 since 2400 would violate the hour range. The string may be padded with trailing spaces. Leading and embedded spaces are not allowed. One or more of the components mm, ss, or frac may be unspecified as long as every component to the right of an unspecified component is also unspecified. If frac is unspecified the preceding '.' may not be included.
|
explicit |
bool vega::Time::is_range | ( | ) | const |
const std::shared_ptr<const Time>& vega::Time::lower | ( | ) | const |
bool vega::Time::operator!= | ( | const Time & | other | ) | const |
bool vega::Time::operator== | ( | const Time & | other | ) | const |
void vega::Time::set_string | ( | const std::string & | s | ) |
std::string vega::Time::str | ( | ) | const |
const std::shared_ptr<const Time>& vega::Time::upper | ( | ) | const |
std::shared_ptr<const Time> vega::Time::m_lower |
std::shared_ptr<const RegexString> vega::Time::m_time |
std::shared_ptr<const Time> vega::Time::m_upper |
|
static |
|
static |