OTB  9.0.0
Orfeo Toolbox
Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | Friends | List of all members
otb::MetaData::Duration Class Reference

#include <otbDateTime.h>

+ Inheritance diagram for otb::MetaData::Duration:
+ Collaboration diagram for otb::MetaData::Duration:

Public Types

using InternalDurationType = details::InternalDurationType
 

Public Member Functions

std::ostream & Display (std::ostream &os) const
 
 Duration ()=default
 
 Duration (InternalDurationType const &d)
 
InternalDurationType::rep NumberOfTicks () const
 
std::istream & Read (std::istream &is)
 
double TotalSeconds () const
 

Static Public Member Functions

static Duration Microseconds (double us)
 
static Duration Milliseconds (double ms)
 
static Duration Nanoseconds (double ns)
 
static Duration Seconds (double s)
 

Private Attributes

InternalDurationType m_Duration
 

Friends

OTBMetadata_EXPORT Duration Abs (Duration d)
 
Durationoperator*= (Duration &u, double v)
 
Durationoperator+= (Duration &u, Duration const &v)
 
TimePointoperator+= (TimePoint &u, Duration const &v)
 
Durationoperator-= (Duration &u, Duration const &v)
 
TimePointoperator-= (TimePoint &u, Duration const &v)
 
Durationoperator/= (Duration &u, double v)
 
bool operator< (Duration const &lhs, Duration const &rhs)
 
bool operator== (Duration const &lhs, Duration const &rhs)
 

Additional Inherited Members

Detailed Description

Represents a duration.

Definition at line 162 of file otbDateTime.h.

Member Typedef Documentation

◆ InternalDurationType

Definition at line 173 of file otbDateTime.h.

Constructor & Destructor Documentation

◆ Duration() [1/2]

otb::MetaData::Duration::Duration ( )
default

◆ Duration() [2/2]

otb::MetaData::Duration::Duration ( InternalDurationType const &  d)
inline

Definition at line 176 of file otbDateTime.h.

Member Function Documentation

◆ Display()

std::ostream& otb::MetaData::Duration::Display ( std::ostream &  os) const

◆ Microseconds()

static Duration otb::MetaData::Duration::Microseconds ( double  us)
inlinestatic

Definition at line 188 of file otbDateTime.h.

References otb::MetaData::details::internalPeriod.

◆ Milliseconds()

static Duration otb::MetaData::Duration::Milliseconds ( double  ms)
inlinestatic

Definition at line 183 of file otbDateTime.h.

References otb::MetaData::details::internalPeriod.

◆ Nanoseconds()

static Duration otb::MetaData::Duration::Nanoseconds ( double  ns)
inlinestatic

Definition at line 193 of file otbDateTime.h.

References otb::MetaData::details::internalPeriod.

◆ NumberOfTicks()

InternalDurationType::rep otb::MetaData::Duration::NumberOfTicks ( ) const

◆ Read()

std::istream& otb::MetaData::Duration::Read ( std::istream &  is)

◆ Seconds()

static Duration otb::MetaData::Duration::Seconds ( double  s)
inlinestatic

Definition at line 178 of file otbDateTime.h.

References otb::MetaData::details::internalPeriod.

◆ TotalSeconds()

double otb::MetaData::Duration::TotalSeconds ( ) const

Friends And Related Function Documentation

◆ Abs

OTBMetadata_EXPORT Duration Abs ( Duration  d)
friend

◆ operator*=

Duration& operator*= ( Duration u,
double  v 
)
friend

Definition at line 214 of file otbDateTime.h.

◆ operator+= [1/2]

Duration& operator+= ( Duration u,
Duration const &  v 
)
friend

Definition at line 202 of file otbDateTime.h.

◆ operator+= [2/2]

TimePoint& operator+= ( TimePoint u,
Duration const &  v 
)
friend

Definition at line 238 of file otbDateTime.h.

◆ operator-= [1/2]

Duration& operator-= ( Duration u,
Duration const &  v 
)
friend

Definition at line 208 of file otbDateTime.h.

◆ operator-= [2/2]

TimePoint& operator-= ( TimePoint u,
Duration const &  v 
)
friend

Definition at line 244 of file otbDateTime.h.

◆ operator/=

Duration& operator/= ( Duration u,
double  v 
)
friend

Definition at line 221 of file otbDateTime.h.

◆ operator<

bool operator< ( Duration const &  lhs,
Duration const &  rhs 
)
friend

Definition at line 228 of file otbDateTime.h.

◆ operator==

bool operator== ( Duration const &  lhs,
Duration const &  rhs 
)
friend

Definition at line 233 of file otbDateTime.h.

Member Data Documentation

◆ m_Duration

InternalDurationType otb::MetaData::Duration::m_Duration
private

Definition at line 256 of file otbDateTime.h.


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