Zivid  1.0.1+3607.8a7510c4
Zivid API
Classes | Public Member Functions | Static Public Attributes | Friends | List of all members
Zivid::CameraState::Temperature Class Reference

Current temperature(s) More...

#include <CameraState.h>

Classes

class  DMD
 DMD temperature More...
 
class  General
 General temperature More...
 
class  LED
 LED temperature More...
 
class  Lens
 Lens temperature More...
 
class  PCB
 PCB temperature More...
 

Public Member Functions

 Temperature (const std::string &fileName)
 Construct object by loading from file More...
 
void set (const std::string &fullPath, const std::string &value)
 Set a value from string by specifying the path More...
 
std::string getString (const std::string &fullPath) const
 Get a value as string by specifying the path More...
 
Temperatureset (const General &value)
 Set General More...
 
const Generalgeneral () const
 Get General More...
 
Temperatureset (const Lens &value)
 Set Lens More...
 
const Lenslens () const
 Get Lens More...
 
Temperatureset (const LED &value)
 Set LED More...
 
const LEDled () const
 Get LED More...
 
Temperatureset (const PCB &value)
 Set PCB More...
 
const PCBpcb () const
 Get PCB More...
 
Temperatureset (const DMD &value)
 Set DMD More...
 
const DMDdmd () const
 Get DMD More...
 
template<typename F >
void forEach (const F &f) const
 Run the given function on each direct member with the value of the member as parameter More...
 
template<typename F >
void forEach (const F &f)
 Run the given function on each direct member with the value of the member as parameter More...
 
template<typename F >
void traverseValues (const F &f) const
 Traverse the entire tree using the given function with the value of the member as parameter More...
 
template<typename F >
void traverseValues (const F &f)
 Traverse all members using the given function with the value of the member as parameter More...
 
std::string toString () const
 Get the value as string More...
 
void save (const std::string &fileName) const
 Save to the given file More...
 
void setFromString (const std::string &value)
 Set from the given string More...
 
void load (const std::string &fileName)
 Load from the given file More...
 
bool operator== (const Temperature &other) const
 Equality operator More...
 
bool operator!= (const Temperature &other) const
 Inequality operator More...
 

Static Public Attributes

static constexpr bool isContainer {true}
 Whether this node contains child values More...
 
static constexpr const char * path {"Temperature"}
 The full path for this value More...
 
static constexpr const char * name {"Temperature"}
 The name of this value More...
 

Friends

std::ostream & operator<< (std::ostream &stream, const Temperature &value)
 Operator to send the value as string to a stream More...
 
std::istream & operator>> (std::istream &stream, Temperature &value)
 Operator to set the value from a stream More...
 

Detailed Description

Current temperature(s)

Constructor & Destructor Documentation

◆ Temperature()

Zivid::CameraState::Temperature::Temperature ( const std::string &  fileName)
explicit

Construct object by loading from file

Member Function Documentation

◆ dmd()

const DMD& Zivid::CameraState::Temperature::dmd ( ) const
inline

Get DMD

◆ forEach() [1/2]

template<typename F >
void Zivid::CameraState::Temperature::forEach ( const F &  f) const
inline

Run the given function on each direct member with the value of the member as parameter

◆ forEach() [2/2]

template<typename F >
void Zivid::CameraState::Temperature::forEach ( const F &  f)
inline

Run the given function on each direct member with the value of the member as parameter

◆ general()

const General& Zivid::CameraState::Temperature::general ( ) const
inline

Get General

◆ getString()

std::string Zivid::CameraState::Temperature::getString ( const std::string &  fullPath) const

Get a value as string by specifying the path

◆ led()

const LED& Zivid::CameraState::Temperature::led ( ) const
inline

Get LED

◆ lens()

const Lens& Zivid::CameraState::Temperature::lens ( ) const
inline

Get Lens

◆ load()

void Zivid::CameraState::Temperature::load ( const std::string &  fileName)

Load from the given file

◆ operator!=()

bool Zivid::CameraState::Temperature::operator!= ( const Temperature other) const

Inequality operator

◆ operator==()

bool Zivid::CameraState::Temperature::operator== ( const Temperature other) const

Equality operator

◆ pcb()

const PCB& Zivid::CameraState::Temperature::pcb ( ) const
inline

Get PCB

◆ save()

void Zivid::CameraState::Temperature::save ( const std::string &  fileName) const

Save to the given file

◆ set() [1/6]

void Zivid::CameraState::Temperature::set ( const std::string &  fullPath,
const std::string &  value 
)

Set a value from string by specifying the path

◆ set() [2/6]

Temperature& Zivid::CameraState::Temperature::set ( const General value)
inline

Set General

◆ set() [3/6]

Temperature& Zivid::CameraState::Temperature::set ( const Lens value)
inline

Set Lens

◆ set() [4/6]

Temperature& Zivid::CameraState::Temperature::set ( const LED value)
inline

Set LED

◆ set() [5/6]

Temperature& Zivid::CameraState::Temperature::set ( const PCB value)
inline

Set PCB

◆ set() [6/6]

Temperature& Zivid::CameraState::Temperature::set ( const DMD value)
inline

Set DMD

◆ setFromString()

void Zivid::CameraState::Temperature::setFromString ( const std::string &  value)

Set from the given string

◆ toString()

std::string Zivid::CameraState::Temperature::toString ( ) const

Get the value as string

◆ traverseValues() [1/2]

template<typename F >
void Zivid::CameraState::Temperature::traverseValues ( const F &  f) const
inline

Traverse the entire tree using the given function with the value of the member as parameter

◆ traverseValues() [2/2]

template<typename F >
void Zivid::CameraState::Temperature::traverseValues ( const F &  f)
inline

Traverse all members using the given function with the value of the member as parameter

Friends And Related Function Documentation

◆ operator<<

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

Operator to send the value as string to a stream

◆ operator>>

std::istream& operator>> ( std::istream &  stream,
Temperature value 
)
friend

Operator to set the value from a stream

Member Data Documentation

◆ isContainer

constexpr bool Zivid::CameraState::Temperature::isContainer {true}
static

Whether this node contains child values

◆ name

constexpr const char* Zivid::CameraState::Temperature::name {"Temperature"}
static

The name of this value

◆ path

constexpr const char* Zivid::CameraState::Temperature::path {"Temperature"}
static

The full path for this value


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