tesseract  3.03
tesseract::StringParam Class Reference

#include <params.h>

Inheritance diagram for tesseract::StringParam:
tesseract::Param

List of all members.

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 ()

Detailed Description

Definition at line 191 of file params.h.


Constructor & Destructor Documentation

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

Definition at line 193 of file params.h.

                                  : Param(name, comment, init) {
    value_ = value;
    default_ = value;
    params_vec_ = &(vec->string_params);
    vec->string_params.push_back(this);
  }

Definition at line 201 of file params.h.

{ ParamUtils::RemoveParam<StringParam>(this, params_vec_); }

Member Function Documentation

const char* tesseract::StringParam::c_str ( ) const [inline]

Definition at line 204 of file params.h.

{ return value_.string(); }
bool tesseract::StringParam::empty ( ) [inline]

Definition at line 205 of file params.h.

{ return value_.length() <= 0; }
tesseract::StringParam::operator STRING & ( ) [inline]

Definition at line 202 of file params.h.

{ return value_; }
void tesseract::StringParam::operator= ( const STRING value) [inline]

Definition at line 207 of file params.h.

{ value_ = value; }
bool tesseract::StringParam::operator== ( const STRING other) [inline]

Definition at line 206 of file params.h.

{ return value_ == other; }

Definition at line 209 of file params.h.

                        {
    value_ = default_;
  }
void tesseract::StringParam::set_value ( const STRING value) [inline]

Definition at line 208 of file params.h.

{ value_ = value; }
const char* tesseract::StringParam::string ( ) const [inline]

Definition at line 203 of file params.h.

{ return value_.string(); }

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines