Zivid C++ API 2.19.0+b5c53d0f-1
Zivid::FrameInfo::Metrics::TransferTime Class Reference

Transfer Time is the duration from when the capture is sent to the camera to when the last of the frame's data has arrived on the host. Acquisition Time ends when the camera has acquired the last image; Transfer Time ends when that image has reached the host. Both are part of Capture Time, which also includes the processing of the data. More...

#include <Zivid/FrameInfo.h>

Public Types

using ValueType = std::chrono::microseconds
 The type of the underlying value.

Public Member Functions

 TransferTime ()=default
 Default constructor.
constexpr TransferTime (std::chrono::microseconds value)
 Constructor.
std::chrono::microseconds value () const
 Get the value.
bool hasValue () const
 Check if the value is set.
void reset ()
 Reset the node to unset state.
std::string toString () const
 Get the value as string.
bool operator== (const TransferTime &other) const
 Comparison operator.
bool operator!= (const TransferTime &other) const
 Comparison operator.
bool operator< (const TransferTime &other) const
 Comparison operator.
bool operator> (const TransferTime &other) const
 Comparison operator.
bool operator<= (const TransferTime &other) const
 Comparison operator.
bool operator>= (const TransferTime &other) const
 Comparison operator.

Static Public Member Functions

static constexpr Range< std::chrono::microseconds > validRange ()
 The range of valid values for TransferTime.

Static Public Attributes

static constexpr DataModel::NodeType nodeType = DataModel::NodeType::leafValue
 The type of this node.
static constexpr const char * path { "Metrics/TransferTime" }
 The full path for this value.
static constexpr const char * name { "TransferTime" }
 The name of this value.
static constexpr const char * description
 The description for this value.

Friends

struct DataModel::Detail::Befriend< TransferTime >
std::ostream & operator<< (std::ostream &stream, const TransferTime &value)
 Operator to serialize the value to a stream.

Detailed Description

Transfer Time is the duration from when the capture is sent to the camera to when the last of the frame's data has arrived on the host. Acquisition Time ends when the camera has acquired the last image; Transfer Time ends when that image has reached the host. Both are part of Capture Time, which also includes the processing of the data.

Transfer Time is unset for a frame that did not cross a network, such as one from a file camera or one loaded from a file saved by an SDK older than 2.19.0, and for a camera whose transport does not time the transfer.

Member Typedef Documentation

◆ ValueType

using Zivid::FrameInfo::Metrics::TransferTime::ValueType = std::chrono::microseconds

The type of the underlying value.

Constructor & Destructor Documentation

◆ TransferTime() [1/2]

Zivid::FrameInfo::Metrics::TransferTime::TransferTime ( )
default

Default constructor.

◆ TransferTime() [2/2]

Zivid::FrameInfo::Metrics::TransferTime::TransferTime ( std::chrono::microseconds value)
inlineexplicitconstexpr

Constructor.

Member Function Documentation

◆ hasValue()

bool Zivid::FrameInfo::Metrics::TransferTime::hasValue ( ) const

Check if the value is set.

◆ operator!=()

bool Zivid::FrameInfo::Metrics::TransferTime::operator!= ( const TransferTime & other) const
inline

Comparison operator.

◆ operator<()

bool Zivid::FrameInfo::Metrics::TransferTime::operator< ( const TransferTime & other) const
inline

Comparison operator.

◆ operator<=()

bool Zivid::FrameInfo::Metrics::TransferTime::operator<= ( const TransferTime & other) const
inline

Comparison operator.

◆ operator==()

bool Zivid::FrameInfo::Metrics::TransferTime::operator== ( const TransferTime & other) const
inline

Comparison operator.

◆ operator>()

bool Zivid::FrameInfo::Metrics::TransferTime::operator> ( const TransferTime & other) const
inline

Comparison operator.

◆ operator>=()

bool Zivid::FrameInfo::Metrics::TransferTime::operator>= ( const TransferTime & other) const
inline

Comparison operator.

◆ reset()

void Zivid::FrameInfo::Metrics::TransferTime::reset ( )

Reset the node to unset state.

◆ toString()

std::string Zivid::FrameInfo::Metrics::TransferTime::toString ( ) const

Get the value as string.

◆ validRange()

constexpr Range< std::chrono::microseconds > Zivid::FrameInfo::Metrics::TransferTime::validRange ( )
inlinestaticconstexpr

The range of valid values for TransferTime.

◆ value()

std::chrono::microseconds Zivid::FrameInfo::Metrics::TransferTime::value ( ) const

Get the value.

If this object does not contain a value (see hasValue) then this method throws an exception.

◆ DataModel::Detail::Befriend< TransferTime >

friend struct DataModel::Detail::Befriend< TransferTime >
friend

◆ operator<<

std::ostream & operator<< ( std::ostream & stream,
const TransferTime & value )
friend

Operator to serialize the value to a stream.

Member Data Documentation

◆ description

const char* Zivid::FrameInfo::Metrics::TransferTime::description
staticconstexpr
Initial value:
{
R"description(Transfer Time is the duration from when the capture is sent to the camera to when the last of the
frame's data has arrived on the host. Acquisition Time ends when the camera has acquired the last
image; Transfer Time ends when that image has reached the host. Both are part of Capture Time, which
also includes the processing of the data.
Transfer Time is unset for a frame that did not cross a network, such as one from a file camera or
one loaded from a file saved by an SDK older than 2.19.0, and for a camera whose transport does not
time the transfer.
)description"
}

The description for this value.

◆ name

const char* Zivid::FrameInfo::Metrics::TransferTime::name { "TransferTime" }
staticconstexpr

The name of this value.

◆ nodeType

DataModel::NodeType Zivid::FrameInfo::Metrics::TransferTime::nodeType = DataModel::NodeType::leafValue
staticconstexpr

The type of this node.

◆ path

const char* Zivid::FrameInfo::Metrics::TransferTime::path { "Metrics/TransferTime" }
staticconstexpr

The full path for this value.


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