All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
tesseract::TessUnlvRenderer Class Reference

#include <renderer.h>

Inheritance diagram for tesseract::TessUnlvRenderer:

Public Member Functions

 TessUnlvRenderer (const char *outputbase)
- Public Member Functions inherited from tesseract::TessResultRenderer
virtual ~TessResultRenderer ()
void insert (TessResultRenderer *next)
TessResultRenderernext ()
bool BeginDocument (const char *title)
bool AddImage (TessBaseAPI *api)
bool EndDocument ()
const char * file_extension () const
const char * title () const
int imagenum () const

Protected Member Functions

virtual bool AddImageHandler (TessBaseAPI *api)
- Protected Member Functions inherited from tesseract::TessResultRenderer
 TessResultRenderer (const char *outputbase, const char *extension)
virtual bool BeginDocumentHandler ()
virtual bool EndDocumentHandler ()
void AppendString (const char *s)
void AppendData (const char *s, int len)

Detailed Description

Renders tesseract output into a plain UTF-8 text string

Definition at line 205 of file renderer.h.

Constructor & Destructor Documentation

tesseract::TessUnlvRenderer::TessUnlvRenderer ( const char *  outputbase)

Definition at line 185 of file renderer.cpp.

186  : TessResultRenderer(outputbase, "unlv") {
187 }
TessResultRenderer(const char *outputbase, const char *extension)
Definition: renderer.cpp:16

Member Function Documentation

bool tesseract::TessUnlvRenderer::AddImageHandler ( TessBaseAPI api)

Implements tesseract::TessResultRenderer.

Definition at line 189 of file renderer.cpp.

189  {
190  char* unlv = api->GetUNLVText();
191  if (unlv == NULL) return false;
193  AppendString(unlv);
194  delete[] unlv;
196  return true;
197 }
void AppendString(const char *s)
Definition: renderer.cpp:83
#define NULL
Definition: host.h:144

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