Thermal Camera SDK 11.3.0
SDK for Optris Thermal Cameras
Loading...
Searching...
No Matches
UncommittedValueStatus.h
Go to the documentation of this file.
1// Copyright (c) 2008-2026 Optris GmbH & Co. KG
2
10
11#pragma once
12
13#include <ostream>
14#include <string>
15
16#include "otcsdk/Api.h"
18
19
20namespace optris
21{
22
25{
26public:
29
30
36 const PifIndex& getPifIndex() const noexcept;
37
43 const std::string& getName() const noexcept;
44
50 const std::string& getUnit() const noexcept;
51
57 float getValue() const noexcept;
58
59
68 OTC_SDK_API void update(const PifIndex& pifIndex,
69 const std::string& name,
70 const std::string& unit,
71 float value) noexcept;
72
73
74private:
76 PifIndex _index;
77
79 std::string _name;
80
82 std::string _unit;
83
85 float _value;
86};
87
88
89// Utility functions
98OTC_SDK_API std::ostream& operator<<(std::ostream& out, const UncommittedValueStatus& status);
99
100
101// Inline implementations
102inline const PifIndex& UncommittedValueStatus::getPifIndex() const noexcept
103{
104 return _index;
105}
106
107inline const std::string& UncommittedValueStatus::getName() const noexcept
108{
109 return _name;
110}
111
112inline const std::string& UncommittedValueStatus::getUnit() const noexcept
113{
114 return _unit;
115}
116
117inline float UncommittedValueStatus::getValue() const noexcept
118{
119 return _value;
120}
121
122} // namespace optris
Contains defines controlling the Windows DLL export and import of symbols.
#define OTC_SDK_API
Only needed when working with Windows DLLs.
Definition Api.h:65
Contains enums defining various properties of process interfaces.
Holds the status of an uncommitted value derived from a PIF analog input.
Definition UncommittedValueStatus.h:25
OTC_SDK_API void update(const PifIndex &pifIndex, const std::string &name, const std::string &unit, float value) noexcept
Updates the uncommitted value status.
const PifIndex & getPifIndex() const noexcept
Returns the index of the PIF analog input that generated the uncommitted value.
Definition UncommittedValueStatus.h:102
float getValue() const noexcept
Returns the uncommitted value.
Definition UncommittedValueStatus.h:117
const std::string & getName() const noexcept
Returns the name of the uncommitted value.
Definition UncommittedValueStatus.h:107
OTC_SDK_API UncommittedValueStatus() noexcept
Constructor.
const std::string & getUnit() const noexcept
Returns the unit of the uncommitted value.
Definition UncommittedValueStatus.h:112
Main SDK namespace.
Definition AlarmChannel.h:21
Holds the indices that identify the physical pin on a PIF device for a PIF channel.
Definition PifProperties.h:98