#include <paramsd.h>
Definition at line 47 of file paramsd.h.
◆ ParamContent() [1/5]
tesseract::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 tesseract::ParamContent::Compare |
( |
const void * |
v1, |
|
|
const void * |
v2 |
|
) |
| |
|
static |
Definition at line 194 of file paramsd.cpp.
194 {
197 return strcmp(one->GetName(), two->GetName());
198}
◆ GetDescription()
const char * tesseract::ParamContent::GetDescription |
( |
| ) |
const |
Definition at line 130 of file paramsd.cpp.
130 {
139 } else {
140 return nullptr;
141 }
142}
const char * info_str() const
◆ GetId()
int tesseract::ParamContent::GetId |
( |
| ) |
const |
|
inline |
Definition at line 68 of file paramsd.h.
68 {
69 return my_id_;
70 }
◆ GetName()
const char * tesseract::ParamContent::GetName |
( |
| ) |
const |
Definition at line 115 of file paramsd.cpp.
115 {
124 } else {
125 return "ERROR: ParamContent::GetName()";
126 }
127}
const char * name_str() const
◆ GetParamContentById()
ParamContent * tesseract::ParamContent::GetParamContentById |
( |
int |
id | ) |
|
|
static |
Definition at line 91 of file paramsd.cpp.
91 {
92 return vcMap[id];
93}
◆ GetValue()
std::string tesseract::ParamContent::GetValue |
( |
| ) |
const |
Definition at line 145 of file paramsd.cpp.
145 {
146 std::string result;
148 result += std::to_string(*
iIt);
150 result += std::to_string(*
bIt);
152 result += std::to_string(*
dIt);
155 }
156 return result;
157}
const char * c_str() const
◆ HasChanged()
bool tesseract::ParamContent::HasChanged |
( |
| ) |
const |
|
inline |
Definition at line 71 of file paramsd.h.
71 {
72 return changed_;
73 }
◆ SetValue()
void tesseract::ParamContent::SetValue |
( |
const char * |
val | ) |
|
Definition at line 160 of file paramsd.cpp.
160 {
161
162
163 changed_ = true;
169 std::stringstream stream(val);
170
171 stream.imbue(std::locale::classic());
172 double d = 0;
173 stream >> d;
177 }
178}
void set_value(int32_t value)
void set_value(bool value)
void set_value(const std::string &value)
void set_value(double value)
◆ bIt
◆ dIt
◆ iIt
◆ sIt
The documentation for this class was generated from the following files:
- /media/home/debian/src/github/tesseract-ocr/tesseract/src/ccmain/paramsd.h
- /media/home/debian/src/github/tesseract-ocr/tesseract/src/ccmain/paramsd.cpp