Tesseract  3.02
tesseract-ocr/ccutil/params.h File Reference
#include <stdio.h>
#include "genericvector.h"
#include "strngs.h"

Go to the source code of this file.

Classes

struct  tesseract::ParamsVectors
class  tesseract::ParamUtils
class  tesseract::Param
class  tesseract::IntParam
class  tesseract::BoolParam
class  tesseract::StringParam
class  tesseract::DoubleParam

Namespaces

namespace  tesseract

Defines

#define INT_VAR_H(name, val, comment)   tesseract::IntParam name
#define BOOL_VAR_H(name, val, comment)   tesseract::BoolParam name
#define STRING_VAR_H(name, val, comment)   tesseract::StringParam name
#define double_VAR_H(name, val, comment)   tesseract::DoubleParam name
#define INT_VAR(name, val, comment)   tesseract::IntParam name(val,#name,comment,false,GlobalParams())
#define BOOL_VAR(name, val, comment)   tesseract::BoolParam name(val,#name,comment,false,GlobalParams())
#define STRING_VAR(name, val, comment)   tesseract::StringParam name(val,#name,comment,false,GlobalParams())
#define double_VAR(name, val, comment)   tesseract::DoubleParam name(val,#name,comment,false,GlobalParams())
#define INT_INIT_VAR(name, val, comment)   tesseract::IntParam name(val,#name,comment,true,GlobalParams())
#define BOOL_INIT_VAR(name, val, comment)   tesseract::BoolParam name(val,#name,comment,true,GlobalParams())
#define STRING_INIT_VAR(name, val, comment)   tesseract::StringParam name(val,#name,comment,true,GlobalParams())
#define double_INIT_VAR(name, val, comment)   tesseract::DoubleParam name(val,#name,comment,true,GlobalParams())
#define INT_MEMBER(name, val, comment, vec)   name(val, #name, comment, false, vec)
#define BOOL_MEMBER(name, val, comment, vec)   name(val, #name, comment, false, vec)
#define STRING_MEMBER(name, val, comment, vec)   name(val, #name, comment, false, vec)
#define double_MEMBER(name, val, comment, vec)   name(val, #name, comment, false, vec)
#define INT_INIT_MEMBER(name, val, comment, vec)   name(val, #name, comment, true, vec)
#define BOOL_INIT_MEMBER(name, val, comment, vec)   name(val, #name, comment, true, vec)
#define STRING_INIT_MEMBER(name, val, comment, vec)   name(val, #name, comment, true, vec)
#define double_INIT_MEMBER(name, val, comment, vec)   name(val, #name, comment, true, vec)

Enumerations

enum  tesseract::SetParamConstraint { tesseract::SET_PARAM_CONSTRAINT_NONE, tesseract::SET_PARAM_CONSTRAINT_DEBUG_ONLY, tesseract::SET_PARAM_CONSTRAINT_NON_DEBUG_ONLY, tesseract::SET_PARAM_CONSTRAINT_NON_INIT_ONLY }

Functions

tesseract::ParamsVectorsGlobalParams ()

Define Documentation

#define BOOL_INIT_MEMBER (   name,
  val,
  comment,
  vec 
)    name(val, #name, comment, true, vec)

Definition at line 287 of file params.h.

#define BOOL_INIT_VAR (   name,
  val,
  comment 
)    tesseract::BoolParam name(val,#name,comment,true,GlobalParams())

Definition at line 263 of file params.h.

#define BOOL_MEMBER (   name,
  val,
  comment,
  vec 
)    name(val, #name, comment, false, vec)

Definition at line 275 of file params.h.

#define BOOL_VAR (   name,
  val,
  comment 
)    tesseract::BoolParam name(val,#name,comment,false,GlobalParams())

Definition at line 251 of file params.h.

#define BOOL_VAR_H (   name,
  val,
  comment 
)    tesseract::BoolParam name

Definition at line 239 of file params.h.

#define double_INIT_MEMBER (   name,
  val,
  comment,
  vec 
)    name(val, #name, comment, true, vec)

Definition at line 293 of file params.h.

#define double_INIT_VAR (   name,
  val,
  comment 
)    tesseract::DoubleParam name(val,#name,comment,true,GlobalParams())

Definition at line 269 of file params.h.

#define double_MEMBER (   name,
  val,
  comment,
  vec 
)    name(val, #name, comment, false, vec)

Definition at line 281 of file params.h.

#define double_VAR (   name,
  val,
  comment 
)    tesseract::DoubleParam name(val,#name,comment,false,GlobalParams())

Definition at line 257 of file params.h.

#define double_VAR_H (   name,
  val,
  comment 
)    tesseract::DoubleParam name

Definition at line 245 of file params.h.

#define INT_INIT_MEMBER (   name,
  val,
  comment,
  vec 
)    name(val, #name, comment, true, vec)

Definition at line 284 of file params.h.

#define INT_INIT_VAR (   name,
  val,
  comment 
)    tesseract::IntParam name(val,#name,comment,true,GlobalParams())

Definition at line 260 of file params.h.

#define INT_MEMBER (   name,
  val,
  comment,
  vec 
)    name(val, #name, comment, false, vec)

Definition at line 272 of file params.h.

#define INT_VAR (   name,
  val,
  comment 
)    tesseract::IntParam name(val,#name,comment,false,GlobalParams())

Definition at line 248 of file params.h.

#define INT_VAR_H (   name,
  val,
  comment 
)    tesseract::IntParam name

Definition at line 236 of file params.h.

#define STRING_INIT_MEMBER (   name,
  val,
  comment,
  vec 
)    name(val, #name, comment, true, vec)

Definition at line 290 of file params.h.

#define STRING_INIT_VAR (   name,
  val,
  comment 
)    tesseract::StringParam name(val,#name,comment,true,GlobalParams())

Definition at line 266 of file params.h.

#define STRING_MEMBER (   name,
  val,
  comment,
  vec 
)    name(val, #name, comment, false, vec)

Definition at line 278 of file params.h.

#define STRING_VAR (   name,
  val,
  comment 
)    tesseract::StringParam name(val,#name,comment,false,GlobalParams())

Definition at line 254 of file params.h.

#define STRING_VAR_H (   name,
  val,
  comment 
)    tesseract::StringParam name

Definition at line 242 of file params.h.


Function Documentation

tesseract::ParamsVectors* GlobalParams ( )

Definition at line 35 of file params.cpp.

                                       {
  static tesseract::ParamsVectors *global_params =
    new tesseract::ParamsVectors();
  return global_params;
}