#include <params.h>
Definition at line 204 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 206 of file params.h.
208 :
Param(name, comment, init) {
211 params_vec_ = &(vec->string_params);
212 vec->string_params.push_back(
this);
Param(const char *name, const char *comment, bool init)
◆ ~StringParam()
tesseract::StringParam::~StringParam |
( |
| ) |
|
|
inline |
Definition at line 214 of file params.h.
214 { ParamUtils::RemoveParam<StringParam>(
this, params_vec_); }
◆ c_str()
const char* tesseract::StringParam::c_str |
( |
| ) |
const |
|
inline |
Definition at line 217 of file params.h.
217 {
return value_.
string(); }
const char * string() const
◆ 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 |
Definition at line 219 of file params.h.
219 {
return value_ == other; }
◆ ResetFrom()
void tesseract::StringParam::ResetFrom |
( |
const ParamsVectors * |
vec | ) |
|
|
inline |
Definition at line 223 of file params.h.
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];
◆ ResetToDefault()
void tesseract::StringParam::ResetToDefault |
( |
| ) |
|
|
inline |
Definition at line 222 of file params.h.
222 { value_ = default_; }
◆ set_value()
void tesseract::StringParam::set_value |
( |
const STRING & |
value | ) |
|
|
inline |
◆ string()
const char* tesseract::StringParam::string |
( |
| ) |
const |
|
inline |
Definition at line 216 of file params.h.
216 {
return value_.
string(); }
const char * string() const
The documentation for this class was generated from the following file: