Media duration stored as nanoseconds.
More...
#include <StormByte/multimedia/property/duration.hxx>
Media duration stored as nanoseconds.
- Note
- DLL exchange requires compatible C++ ABIs. Base and Multimedia must remain loaded while their values and provider callbacks are in use.
◆ Duration() [1/4]
| StormByte::Multimedia::Property::Duration::Duration |
( |
| ) |
|
|
defaultnoexcept |
Constructs a zero duration for Safe value storage.
◆ Duration() [2/4]
| StormByte::Multimedia::Property::Duration::Duration |
( |
std::chrono::nanoseconds | value | ) |
|
|
explicitnoexcept |
Constructs from nanoseconds.
- Parameters
-
◆ Duration() [3/4]
| StormByte::Multimedia::Property::Duration::Duration |
( |
const Duration & | | ) |
|
|
default |
◆ Duration() [4/4]
| StormByte::Multimedia::Property::Duration::Duration |
( |
Duration && | | ) |
|
|
defaultnoexcept |
◆ ~Duration()
| StormByte::Multimedia::Property::Duration::~Duration |
( |
| ) |
|
|
defaultnoexcept |
◆ Nanoseconds()
| std::chrono::nanoseconds StormByte::Multimedia::Property::Duration::Nanoseconds |
( |
| ) |
const |
|
noexcept |
Duration in nanoseconds.
- Returns
- Stored value.
◆ operator<=>()
| auto StormByte::Multimedia::Property::Duration::operator<=> |
( |
const Duration & | | ) |
const |
|
defaultnoexcept |
Three-way compare.
- Returns
- Ordering of the stored nanosecond values.
◆ operator=() [1/2]
| Duration & StormByte::Multimedia::Property::Duration::operator= |
( |
const Duration & | | ) |
|
|
default |
Copy assignment.
- Returns
- *this.
◆ operator=() [2/2]
Move assignment.
- Returns
- *this.
◆ ToString()
[HH:][MM:]SS.mmm (hours/minutes omitted when zero).
- Returns
- Human-readable text.
- Exceptions
-
| StormByte::Exception | If Base-owned text cannot be allocated. |
| std::bad_alloc | If temporary formatting storage cannot be allocated. |
The documentation for this class was generated from the following file: