#include <paramsd.h>
Definition at line 53 of file paramsd.h.
◆ ParamContent() [1/5]
ParamContent::ParamContent |
( |
| ) |
|
|
default |
◆ ParamContent() [2/5]
Definition at line 58 of file paramsd.cpp.
58 {
59 my_id_ = nrParams;
60 nrParams++;
63 vcMap[my_id_] = this;
64}
tesseract::StringParam * sIt
◆ ParamContent() [3/5]
Definition at line 66 of file paramsd.cpp.
66 {
67 my_id_ = nrParams;
68 nrParams++;
71 vcMap[my_id_] = this;
72}
tesseract::IntParam * iIt
◆ ParamContent() [4/5]
Definition at line 74 of file paramsd.cpp.
74 {
75 my_id_ = nrParams;
76 nrParams++;
79 vcMap[my_id_] = this;
80}
tesseract::BoolParam * bIt
◆ ParamContent() [5/5]
Definition at line 82 of file paramsd.cpp.
82 {
83 my_id_ = nrParams;
84 nrParams++;
87 vcMap[my_id_] = this;
88}
tesseract::DoubleParam * dIt
◆ Compare()
int ParamContent::Compare |
( |
const void * |
v1, |
|
|
const void * |
v2 |
|
) |
| |
|
static |
Definition at line 189 of file paramsd.cpp.
189 {
193}
const char * GetName() const
◆ GetDescription()
const char * ParamContent::GetDescription |
( |
| ) |
const |
Definition at line 126 of file paramsd.cpp.
126 {
131 else return nullptr;
132}
const char * info_str() const
◆ GetId()
int ParamContent::GetId |
( |
| ) |
|
|
inline |
◆ GetName()
const char * ParamContent::GetName |
( |
| ) |
const |
Definition at line 116 of file paramsd.cpp.
116 {
121 else
122 return "ERROR: ParamContent::GetName()";
123}
const char * name_str() const
◆ GetParamContentById()
Definition at line 91 of file paramsd.cpp.
91 {
92 return vcMap[id];
93}
◆ GetValue()
STRING ParamContent::GetValue |
( |
| ) |
const |
Definition at line 135 of file paramsd.cpp.
135 {
144 if (
STRING(*(
sIt)).
string() !=
nullptr) {
146 } else {
147 result = "Null";
148 }
149 }
150 return result;
151}
const char * string() const
void add_str_int(const char *str, int number)
void add_str_double(const char *str, double number)
◆ HasChanged()
bool ParamContent::HasChanged |
( |
| ) |
|
|
inline |
◆ SetValue()
void ParamContent::SetValue |
( |
const char * |
val | ) |
|
Definition at line 154 of file paramsd.cpp.
154 {
155
156
157 changed_ = true;
163 std::stringstream stream(val);
164
165 stream.imbue(std::locale::classic());
166 double d = 0;
167 stream >> d;
171 }
172}
void set_value(int32_t value)
void set_value(bool value)
void set_value(const STRING &value)
void set_value(double value)
◆ bIt
◆ dIt
◆ iIt
◆ sIt
The documentation for this class was generated from the following files: