|
RTC Toolkit 5.1.0
|
Represents an ISO 8601 time string in format: YYYY-MM-DDThh:mm:ss.sssZ. More...
Public Member Functions | |
| TimeString ()=default | |
| operator std::string () const | |
Implicit conversion to std::string. | |
| std::string | ToString () const |
Explicit conversion to std::string. | |
| bool | operator== (const TimeString &) const =default |
| Operator to test equality. | |
| TimeString (const std::string &str) | |
Constructs TimeString from std::string. | |
| TimeString (const char *str) | |
| Constructs TimeString from c-style string. | |
| template<typename Clock , typename Duration = typename Clock::duration> | |
| TimeString (std::chrono::time_point< Clock, Duration > timepoint) | |
| Constructs TimeString from chrono timepoint. | |
| TimeString (std::chrono::nanoseconds ns_since_epoch) | |
Constructs TimeString from chrono::nanoseconds (based on taiclock::TaiClock). | |
| TimeString (uint64_t ns_since_epoch) | |
Constructs TimeString from nanoseconds number (based on taiclock::TaiClock). | |
Public Attributes | |
| std::string | value |
Represents an ISO 8601 time string in format: YYYY-MM-DDThh:mm:ss.sssZ.
|
default |
| rtctk::componentFramework::TimeString::TimeString | ( | const std::string & | str | ) |
Constructs TimeString from std::string.
| RtctkException | if format does not match. |
Constructs TimeString from c-style string.
| RtctkException | if format does not match. |
|
inline |
Constructs TimeString from chrono timepoint.
| rtctk::componentFramework::TimeString::TimeString | ( | std::chrono::nanoseconds | ns_since_epoch | ) |
Constructs TimeString from chrono::nanoseconds (based on taiclock::TaiClock).
| rtctk::componentFramework::TimeString::TimeString | ( | uint64_t | ns_since_epoch | ) |
Constructs TimeString from nanoseconds number (based on taiclock::TaiClock).
| rtctk::componentFramework::TimeString::operator std::string | ( | ) | const |
Implicit conversion to std::string.
|
default |
Operator to test equality.
| std::string rtctk::componentFramework::TimeString::ToString | ( | ) | const |
Explicit conversion to std::string.
| std::string rtctk::componentFramework::TimeString::value |