DAQ  1.0.0
Data Acquisition System (basic demo)
Public Member Functions | Private Attributes | List of all members
VarValue Class Reference

The VarValue class define a readed value. More...

#include <varvalue.h>

Collaboration diagram for VarValue:
Collaboration graph
[legend]

Public Member Functions

 VarValue ()=default
 
 VarValue (const Variable &variable, double val, std::uint64_t ts)
 
 VarValue (Variable &&variable, double &&val, std::uint64_t &&ts)
 
 VarValue (VarValue &&var) noexcept
 
 VarValue (const VarValue &var)=default
 
const Variablevariable () const noexcept
 
void set_vaiable (const Variable &var) noexcept
 
double val () const noexcept
 
void set_val (double val) noexcept
 
std::uint64_t timestamp () const noexcept
 
void set_timestamp (std::uint64_t ts) noexcept
 
const std::string & name () const noexcept
 
VarValue DeepCopy ()
 

Private Attributes

Variable variable_
 
double val_
 
std::uint64_t timestamp_
 

Detailed Description

The VarValue class define a readed value.

A read value is always related to a variable, for a better understanding check out the following MER diagram.

dot_inline_dotgraph_1.png

Constructor & Destructor Documentation

VarValue::VarValue ( )
default
VarValue::VarValue ( const Variable variable,
double  val,
std::uint64_t  ts 
)
VarValue::VarValue ( Variable &&  variable,
double &&  val,
std::uint64_t &&  ts 
)

Here is the caller graph for this function:

VarValue::VarValue ( VarValue &&  var)
noexcept
VarValue::VarValue ( const VarValue var)
default

Member Function Documentation

VarValue VarValue::DeepCopy ( )
inline

Here is the call graph for this function:

const std::string & VarValue::name ( ) const
noexcept
void VarValue::set_timestamp ( std::uint64_t  ts)
noexcept
void VarValue::set_vaiable ( const Variable var)
noexcept
void VarValue::set_val ( double  val)
noexcept
std::uint64_t VarValue::timestamp ( ) const
noexcept
double VarValue::val ( ) const
noexcept
const Variable & VarValue::variable ( ) const
noexcept

Member Data Documentation

std::uint64_t VarValue::timestamp_
private
double VarValue::val_
private
Variable VarValue::variable_
private

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