|
Zivid
1.0.1+3607.8a7510c4
Zivid API
|
Information about camera connection state, live mode, temperatures, etc. More...
#include <CameraState.h>
Classes | |
| class | Available |
| Flag if camera is available for use or not More... | |
| class | Connected |
| Flag if camera is initialized or not More... | |
| class | Live |
| Camera live status More... | |
| class | Temperature |
| Current temperature(s) More... | |
Public Member Functions | |
| CameraState (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... | |
| CameraState & | set (const Connected &value) |
| Set Connected More... | |
| const Connected & | isConnected () const |
| Get Connected More... | |
| CameraState & | set (const Available &value) |
| Set Available More... | |
| const Available & | isAvailable () const |
| Get Available More... | |
| CameraState & | set (const Live &value) |
| Set Live More... | |
| const Live & | live () const |
| Get Live More... | |
| CameraState & | set (const Temperature &value) |
| Set Temperature More... | |
| const Temperature & | temperature () const |
| Get Temperature More... | |
| CameraState & | set (const Temperature::General &value) |
| Set Temperature::General More... | |
| CameraState & | set (const Temperature::Lens &value) |
| Set Temperature::Lens More... | |
| CameraState & | set (const Temperature::LED &value) |
| Set Temperature::LED More... | |
| CameraState & | set (const Temperature::PCB &value) |
| Set Temperature::PCB More... | |
| CameraState & | set (const Temperature::DMD &value) |
| Set Temperature::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 CameraState &other) const |
| Equality operator More... | |
| bool | operator!= (const CameraState &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 {""} |
| The full path for this value More... | |
| static constexpr const char * | name {"CameraState"} |
| The name of this value More... | |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, const CameraState &value) |
| Operator to send the value as string to a stream More... | |
| std::istream & | operator>> (std::istream &stream, CameraState &value) |
| Operator to set the value from a stream More... | |
Information about camera connection state, live mode, temperatures, etc.
|
explicit |
Construct object by loading from file
|
inline |
Run the given function on each direct member with the value of the member as parameter
|
inline |
Run the given function on each direct member with the value of the member as parameter
| std::string Zivid::CameraState::getString | ( | const std::string & | fullPath | ) | const |
Get a value as string by specifying the path
| void Zivid::CameraState::load | ( | const std::string & | fileName | ) |
Load from the given file
| bool Zivid::CameraState::operator!= | ( | const CameraState & | other | ) | const |
Inequality operator
| bool Zivid::CameraState::operator== | ( | const CameraState & | other | ) | const |
Equality operator
| void Zivid::CameraState::save | ( | const std::string & | fileName | ) | const |
Save to the given file
| void Zivid::CameraState::set | ( | const std::string & | fullPath, |
| const std::string & | value | ||
| ) |
Set a value from string by specifying the path
|
inline |
Set Connected
|
inline |
Set Available
|
inline |
Set Live
|
inline |
Set Temperature
|
inline |
|
inline |
|
inline |
Set Temperature::LED
|
inline |
Set Temperature::PCB
|
inline |
Set Temperature::DMD
| void Zivid::CameraState::setFromString | ( | const std::string & | value | ) |
Set from the given string
|
inline |
Get Temperature
| std::string Zivid::CameraState::toString | ( | ) | const |
Get the value as string
|
inline |
Traverse the entire tree using the given function with the value of the member as parameter
|
inline |
Traverse all members using the given function with the value of the member as parameter
|
friend |
Operator to send the value as string to a stream
|
friend |
Operator to set the value from a stream
|
static |
Whether this node contains child values
|
static |
The name of this value
|
static |
The full path for this value
1.8.13