artdaq_utilities  v1_05_07b
artdaq::MetricData::MetricDataValue Union Reference

This union holds the values for all other metric types More...

#include <artdaq-utilities/Plugins/MetricData.hh>

Public Member Functions

 MetricDataValue ()
 Construct a MetricDataValue More...
 
 MetricDataValue (int v)
 Construct a MetricDataValue as integer More...
 
 MetricDataValue (double v)
 Construct a MetricDataValue as double More...
 
 MetricDataValue (float v)
 Construct a MetricDataValue as fload More...
 
 MetricDataValue (uint64_t v)
 Construct a MetricDataValue as unsigned int More...
 

Public Attributes

int i
 Value of the metric, if it is a MetricType::IntMetric.
 
double d
 Value of the metric, if it is a MetricType::DoubleMetric.
 
float f
 Value of the metric, if it is a MetricType::FloatMetric.
 
uint64_t u
 Value of the metric, if it is a MetricType::UnsignedMetric.
 

Detailed Description

This union holds the values for all other metric types

Definition at line 105 of file MetricData.hh.

Constructor & Destructor Documentation

artdaq::MetricData::MetricDataValue::MetricDataValue ( )
inline

Construct a MetricDataValue

Definition at line 115 of file MetricData.hh.

artdaq::MetricData::MetricDataValue::MetricDataValue ( int  v)
inline

Construct a MetricDataValue as integer

Parameters
vInteger to store

Definition at line 121 of file MetricData.hh.

artdaq::MetricData::MetricDataValue::MetricDataValue ( double  v)
inline

Construct a MetricDataValue as double

Parameters
vDouble to store

Definition at line 127 of file MetricData.hh.

artdaq::MetricData::MetricDataValue::MetricDataValue ( float  v)
inline

Construct a MetricDataValue as fload

Parameters
vFloat to store

Definition at line 133 of file MetricData.hh.

artdaq::MetricData::MetricDataValue::MetricDataValue ( uint64_t  v)
inline

Construct a MetricDataValue as unsigned int

Parameters
vUnsigned int to store

Definition at line 139 of file MetricData.hh.


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