TSDuck v3.46-4930
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
ts::SignalState::Value Class Reference

#include <tsSignalState.h>

Inheritance diagram for ts::SignalState::Value:
Collaboration diagram for ts::SignalState::Value:

Public Member Functions

 Value (int64_t v=0, Unit u=Unit::COUNTER)
virtual UString toString () const override

Public Attributes

Unit unit
 The unit of value.
int64_t value
 The value.

Detailed Description

Implementation of a state value. Since different operating systems or drivers may return different units, there is no standard way to represent values. Each value comes with its unit.

Constructor & Destructor Documentation

◆ Value()

ts::SignalState::Value::Value ( int64_t v = 0,
Unit u = Unit::COUNTER )
inlineexplicit

Constructor.

Parameters
[in]vInitial value.
[in]uUnit of v.

Member Function Documentation

◆ toString()

virtual UString ts::SignalState::Value::toString ( ) const
overridevirtual

Convert to a string object.

Returns
This object, converted as a string.

Implements ts::StringifyInterface.


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