opendnp3  3.1.0
Reference implementation of DNP3 (IEEE-1815)
opendnp3::Timestamp Class Reference

Strong typing for millisecond-based monotonic timestamps. More...

#include <opendnp3/util/Timestamp.h>

Public Member Functions

 Timestamp ()
 
 Timestamp (std::chrono::steady_clock::time_point value)
 
bool IsMax () const
 
bool IsMin () const
 
bool operator!= (const Timestamp &other) const
 
Timestamp operator+ (const TimeDuration &duration) const
 
Timestampoperator+= (const TimeDuration &duration)
 
Timestamp operator- (const TimeDuration &duration) const
 
TimeDuration operator- (const Timestamp &timestamp) const
 
Timestampoperator-= (const TimeDuration &duration)
 
bool operator< (const Timestamp &other) const
 
bool operator<= (const Timestamp &other) const
 
bool operator== (const Timestamp &other) const
 
bool operator> (const Timestamp &other) const
 
bool operator>= (const Timestamp &other) const
 

Static Public Member Functions

static Timestamp Max ()
 
static Timestamp Min ()
 

Public Attributes

std::chrono::steady_clock::time_point value
 

Detailed Description

Strong typing for millisecond-based monotonic timestamps.

Definition at line 31 of file Timestamp.h.

Constructor & Destructor Documentation

◆ Timestamp() [1/2]

opendnp3::Timestamp::Timestamp ( )

◆ Timestamp() [2/2]

opendnp3::Timestamp::Timestamp ( std::chrono::steady_clock::time_point  value)
explicit

Member Function Documentation

◆ IsMax()

bool opendnp3::Timestamp::IsMax ( ) const

◆ IsMin()

bool opendnp3::Timestamp::IsMin ( ) const

◆ Max()

static Timestamp opendnp3::Timestamp::Max ( )
static

◆ Min()

static Timestamp opendnp3::Timestamp::Min ( )
static

◆ operator!=()

bool opendnp3::Timestamp::operator!= ( const Timestamp other) const

◆ operator+()

Timestamp opendnp3::Timestamp::operator+ ( const TimeDuration duration) const

◆ operator+=()

Timestamp& opendnp3::Timestamp::operator+= ( const TimeDuration duration)

◆ operator-() [1/2]

Timestamp opendnp3::Timestamp::operator- ( const TimeDuration duration) const

◆ operator-() [2/2]

TimeDuration opendnp3::Timestamp::operator- ( const Timestamp timestamp) const

◆ operator-=()

Timestamp& opendnp3::Timestamp::operator-= ( const TimeDuration duration)

◆ operator<()

bool opendnp3::Timestamp::operator< ( const Timestamp other) const

◆ operator<=()

bool opendnp3::Timestamp::operator<= ( const Timestamp other) const

◆ operator==()

bool opendnp3::Timestamp::operator== ( const Timestamp other) const

◆ operator>()

bool opendnp3::Timestamp::operator> ( const Timestamp other) const

◆ operator>=()

bool opendnp3::Timestamp::operator>= ( const Timestamp other) const

Member Data Documentation

◆ value

std::chrono::steady_clock::time_point opendnp3::Timestamp::value

Definition at line 59 of file Timestamp.h.


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