tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::StringParam Class Reference

#include <params.h>

Inheritance diagram for tesseract::StringParam:
Collaboration diagram for tesseract::StringParam:

Public Member Functions

 StringParam (const char *value, const char *name, const char *comment, bool init, ParamsVectors *vec)
 
 ~StringParam ()
 
 operator STRING & ()
 
const char * string () const
 
const char * c_str () const
 
bool empty ()
 
bool operator== (const STRING &other)
 
void operator= (const STRING &value)
 
void set_value (const STRING &value)
 
void ResetToDefault ()
 
- Public Member Functions inherited from tesseract::Param
 ~Param ()=default
 
const char * name_str () const
 
const char * info_str () const
 
bool is_init () const
 
bool is_debug () const
 
bool constraint_ok (SetParamConstraint constraint) const
 

Private Attributes

STRING value_
 
STRING default_
 
GenericVector< StringParam * > * params_vec_
 

Additional Inherited Members

- Protected Member Functions inherited from tesseract::Param
 Param (const char *name, const char *comment, bool init)
 
- Protected Attributes inherited from tesseract::Param
const char * name_
 
const char * info_
 
bool init_
 
bool debug_
 

Constructor & Destructor Documentation

◆ StringParam()

tesseract::StringParam::StringParam ( const char *  value,
const char *  name,
const char *  comment,
bool  init,
ParamsVectors vec 
)
inline

◆ ~StringParam()

tesseract::StringParam::~StringParam ( )
inline

Member Function Documentation

◆ 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

◆ 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

Member Data Documentation

◆ default_

STRING tesseract::StringParam::default_
private

◆ params_vec_

GenericVector<StringParam *>* tesseract::StringParam::params_vec_
private

◆ value_

STRING tesseract::StringParam::value_
private

The documentation for this class was generated from the following file: