tesseract  4.0.0-1-g2a2b
commandlineflags.h File Reference
#include <cstdlib>
#include "tprintf.h"
#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

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 36 of file commandlineflags.h.

◆ DECLARE_BOOL_PARAM_FLAG

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

Definition at line 38 of file commandlineflags.h.

◆ DECLARE_DOUBLE_PARAM_FLAG

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

Definition at line 34 of file commandlineflags.h.

◆ DECLARE_INT_PARAM_FLAG

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

Definition at line 30 of file commandlineflags.h.

◆ DECLARE_STRING_PARAM_FLAG

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

Definition at line 42 of file commandlineflags.h.

◆ DOUBLE_PARAM_FLAG

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

Definition at line 32 of file commandlineflags.h.

◆ INT_PARAM_FLAG

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

Definition at line 28 of file commandlineflags.h.

◆ STRING_PARAM_FLAG

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

Definition at line 40 of file commandlineflags.h.