Libpf::Persistency::QuantityOption Struct Reference

To define the supported Quantity options within a TypeDescriptor. More...

#include <TypeDescriptor.h>

Public Member Functions

 QuantityOption (const std::string &fulltag, const std::string &description, double value, const std::string &unit)
 
 QuantityOption (void)
 
 ~QuantityOption (void)
 
std::string json (void) const
 

Public Attributes

std::string fulltag_
 UTF-8 encoded string. More...
 
std::string description_
 UTF-8 encoded string. More...
 
double value_
 default value More...
 
std::string unit_
 UTF-8 encoded string. More...
 

Detailed Description

To define the supported Quantity options within a TypeDescriptor.

See also
TypeDescriptor

Constructor & Destructor Documentation

◆ QuantityOption() [1/2]

Libpf::Persistency::QuantityOption::QuantityOption ( const std::string &  fulltag,
const std::string &  description,
double  value,
const std::string &  unit 
)

◆ QuantityOption() [2/2]

Libpf::Persistency::QuantityOption::QuantityOption ( void  )

◆ ~QuantityOption()

Libpf::Persistency::QuantityOption::~QuantityOption ( void  )

Member Function Documentation

◆ json()

std::string Libpf::Persistency::QuantityOption::json ( void  ) const
Returns
UTF-8 encoded string with the JSON-serialized object

Member Data Documentation

◆ description_

std::string Libpf::Persistency::QuantityOption::description_

UTF-8 encoded string.

◆ fulltag_

std::string Libpf::Persistency::QuantityOption::fulltag_

UTF-8 encoded string.

◆ unit_

std::string Libpf::Persistency::QuantityOption::unit_

UTF-8 encoded string.

◆ value_

double Libpf::Persistency::QuantityOption::value_

default value


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