tesseract  5.0.0-alpha-619-ge9db
commandlineflags.h File Reference
#include <cstdlib>
#include "params.h"

Go to the source code of this file.

Namespaces

 tesseract
 

Macros

#define INT_PARAM_FLAG(name, val, comment)   INT_VAR(FLAGS_##name, val, comment)
 
#define DECLARE_INT_PARAM_FLAG(name)   extern INT_VAR_H(FLAGS_##name, 0, "")
 
#define DOUBLE_PARAM_FLAG(name, val, comment)   double_VAR(FLAGS_##name, val, comment)
 
#define DECLARE_DOUBLE_PARAM_FLAG(name)   extern double_VAR_H(FLAGS_##name, "", "")
 
#define BOOL_PARAM_FLAG(name, val, comment)   BOOL_VAR(FLAGS_##name, val, comment)
 
#define DECLARE_BOOL_PARAM_FLAG(name)   extern BOOL_VAR_H(FLAGS_##name, 0, "")
 
#define STRING_PARAM_FLAG(name, val, comment)   STRING_VAR(FLAGS_##name, val, comment)
 
#define DECLARE_STRING_PARAM_FLAG(name)   extern STRING_VAR_H(FLAGS_##name, "", "")
 

Functions

 DECLARE_INT_PARAM_FLAG (debug_level)
 
 DECLARE_STRING_PARAM_FLAG (D)
 
 DECLARE_STRING_PARAM_FLAG (F)
 
 DECLARE_STRING_PARAM_FLAG (O)
 
 DECLARE_STRING_PARAM_FLAG (U)
 
 DECLARE_STRING_PARAM_FLAG (X)
 
 DECLARE_STRING_PARAM_FLAG (fonts_dir)
 
 DECLARE_STRING_PARAM_FLAG (fontconfig_tmpdir)
 
 DECLARE_STRING_PARAM_FLAG (output_trainer)
 
 DECLARE_STRING_PARAM_FLAG (test_ch)
 
void tesseract::ParseCommandLineFlags (const char *usage, int *argc, char ***argv, const bool remove_flags)
 

Macro Definition Documentation

◆ BOOL_PARAM_FLAG

#define BOOL_PARAM_FLAG (   name,
  val,
  comment 
)    BOOL_VAR(FLAGS_##name, val, comment)

Definition at line 33 of file commandlineflags.h.

◆ DECLARE_BOOL_PARAM_FLAG

#define DECLARE_BOOL_PARAM_FLAG (   name)    extern BOOL_VAR_H(FLAGS_##name, 0, "")

Definition at line 35 of file commandlineflags.h.

◆ DECLARE_DOUBLE_PARAM_FLAG

#define DECLARE_DOUBLE_PARAM_FLAG (   name)    extern double_VAR_H(FLAGS_##name, "", "")

Definition at line 31 of file commandlineflags.h.

◆ DECLARE_INT_PARAM_FLAG

#define DECLARE_INT_PARAM_FLAG (   name)    extern INT_VAR_H(FLAGS_##name, 0, "")

Definition at line 27 of file commandlineflags.h.

◆ DECLARE_STRING_PARAM_FLAG

#define DECLARE_STRING_PARAM_FLAG (   name)    extern STRING_VAR_H(FLAGS_##name, "", "")

Definition at line 39 of file commandlineflags.h.

◆ DOUBLE_PARAM_FLAG

#define DOUBLE_PARAM_FLAG (   name,
  val,
  comment 
)    double_VAR(FLAGS_##name, val, comment)

Definition at line 29 of file commandlineflags.h.

◆ INT_PARAM_FLAG

#define INT_PARAM_FLAG (   name,
  val,
  comment 
)    INT_VAR(FLAGS_##name, val, comment)

Definition at line 25 of file commandlineflags.h.

◆ STRING_PARAM_FLAG

#define STRING_PARAM_FLAG (   name,
  val,
  comment 
)    STRING_VAR(FLAGS_##name, val, comment)

Definition at line 37 of file commandlineflags.h.

Function Documentation

◆ DECLARE_INT_PARAM_FLAG()

DECLARE_INT_PARAM_FLAG ( debug_level  )

◆ DECLARE_STRING_PARAM_FLAG() [1/9]

DECLARE_STRING_PARAM_FLAG ( )

◆ DECLARE_STRING_PARAM_FLAG() [2/9]

DECLARE_STRING_PARAM_FLAG ( )

◆ DECLARE_STRING_PARAM_FLAG() [3/9]

DECLARE_STRING_PARAM_FLAG ( fontconfig_tmpdir  )

◆ DECLARE_STRING_PARAM_FLAG() [4/9]

DECLARE_STRING_PARAM_FLAG ( fonts_dir  )

◆ DECLARE_STRING_PARAM_FLAG() [5/9]

DECLARE_STRING_PARAM_FLAG ( )

◆ DECLARE_STRING_PARAM_FLAG() [6/9]

DECLARE_STRING_PARAM_FLAG ( output_trainer  )

◆ DECLARE_STRING_PARAM_FLAG() [7/9]

DECLARE_STRING_PARAM_FLAG ( test_ch  )

◆ DECLARE_STRING_PARAM_FLAG() [8/9]

DECLARE_STRING_PARAM_FLAG ( )

◆ DECLARE_STRING_PARAM_FLAG() [9/9]

DECLARE_STRING_PARAM_FLAG ( )