libdrmconf
0.11.3
A library to program DMR radios.
|
Represents a time interval. More...
#include <interval.hh>
Public Types | |
enum class | Format { Automatic , Milliseconds , Seconds , Minutes } |
Possible formats. | |
Public Member Functions | |
Interval () | |
Default constructor. | |
constexpr | Interval (const Interval &other) |
Copy constructor. | |
Interval & | operator= (const Interval &other) |
bool | isNull () const |
Test for 0. | |
bool | operator== (const Interval &other) const |
bool | operator< (const Interval &other) const |
unsigned long long | milliseconds () const |
Unit conversion. | |
unsigned long long | seconds () const |
Unit conversion. | |
unsigned long long | minutes () const |
Unit conversion. | |
QString | format (Format f=Format::Automatic) const |
Format the frequency. | |
bool | parse (const QString &value) |
Parses a frequency. | |
Static Public Member Functions | |
static constexpr Interval | fromMilliseconds (unsigned long long ms) |
static constexpr Interval | fromSeconds (unsigned long long s) |
static constexpr Interval | fromMinutes (unsigned long long min) |
Protected Member Functions | |
constexpr | Interval (unsigned long long ms) |
Constructor from milliseconds. | |
Represents a time interval.
|
inlinestaticconstexpr |
< Unit conversion.
|
inlinestaticconstexpr |
< Unit conversion.
|
inlinestaticconstexpr |
< Unit conversion.
|
inline |
< Comparison.
|
inline |
< Comparison.