#include <params.h>
Definition at line 220 of file params.h.
◆ StringParam()
tesseract::StringParam::StringParam |
( |
const char * |
value, |
|
|
const char * |
name, |
|
|
const char * |
comment, |
|
|
bool |
init, |
|
|
ParamsVectors * |
vec |
|
) |
| |
|
inline |
Definition at line 222 of file params.h.
222 { value_ = default_; }
223 void ResetFrom(
const ParamsVectors* vec) {
224 for (
int i = 0; i < vec->string_params.size(); ++i) {
225 if (strcmp(vec->string_params[i]->name_str(),
name_) == 0) {
228 value_ = *vec->string_params[i];
◆ ~StringParam()
tesseract::StringParam::~StringParam |
( |
| ) |
|
|
inline |
◆ c_str()
const char* tesseract::StringParam::c_str |
( |
| ) |
const |
|
inline |
◆ empty()
bool tesseract::StringParam::empty |
( |
| ) |
|
|
inline |
◆ operator STRING &()
tesseract::StringParam::operator STRING & |
( |
| ) |
|
|
inline |
◆ operator=()
void tesseract::StringParam::operator= |
( |
const STRING & |
value | ) |
|
|
inline |
◆ operator==()
bool tesseract::StringParam::operator== |
( |
const STRING & |
other | ) |
|
|
inline |
◆ ResetFrom()
void tesseract::StringParam::ResetFrom |
( |
const ParamsVectors * |
vec | ) |
|
|
inline |
Definition at line 239 of file params.h.
243 DoubleParam(
double value,
const char* name,
const char* comment,
bool init,
245 :
Param(name, comment, init) {
248 params_vec_ = &(vec->double_params);
◆ ResetToDefault()
void tesseract::StringParam::ResetToDefault |
( |
| ) |
|
|
inline |
◆ set_value()
void tesseract::StringParam::set_value |
( |
const STRING & |
value | ) |
|
|
inline |
◆ string()
const char* tesseract::StringParam::string |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: