vega
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
vega::Time Class Reference

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 RegexStringm_time
 
std::shared_ptr< const Timem_lower
 
std::shared_ptr< const Timem_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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ Time() [1/2]

vega::Time::Time ( const std::string &  s)
explicit

◆ Time() [2/2]

vega::Time::Time ( const std::shared_ptr< Time > &  lower,
const std::shared_ptr< Time > &  upper 
)

Member Function Documentation

◆ is_range()

bool vega::Time::is_range ( ) const

◆ lower()

const std::shared_ptr<const Time>& vega::Time::lower ( ) const

◆ operator!=()

bool vega::Time::operator!= ( const Time other) const

◆ operator==()

bool vega::Time::operator== ( const Time other) const

◆ set_string()

void vega::Time::set_string ( const std::string &  s)

◆ str()

std::string vega::Time::str ( ) const

◆ upper()

const std::shared_ptr<const Time>& vega::Time::upper ( ) const

Member Data Documentation

◆ m_lower

std::shared_ptr<const Time> vega::Time::m_lower

◆ m_time

std::shared_ptr<const RegexString> vega::Time::m_time

◆ m_upper

std::shared_ptr<const Time> vega::Time::m_upper

◆ SINGLE_TIME_REGEX

const std::shared_ptr<const std::regex> vega::Time::SINGLE_TIME_REGEX
static

◆ TIME_RANGE_REGEX

const std::shared_ptr<const std::regex> vega::Time::TIME_RANGE_REGEX
static

The documentation for this class was generated from the following file: