tesseract  v4.0.0-17-g361f3264
Open Source OCR Engine
tesseract::TFile Class Reference

#include <serialis.h>

Collaboration diagram for tesseract::TFile:

Public Member Functions

 TFile ()
 
 ~TFile ()
 
bool Open (const STRING &filename, FileReader reader)
 
bool Open (const char *data, int size)
 
bool Open (FILE *fp, int64_t end_offset)
 
void set_swap (bool value)
 
bool DeSerialize (char *data, size_t count=1)
 
bool DeSerialize (double *data, size_t count=1)
 
bool DeSerialize (float *data, size_t count=1)
 
bool DeSerialize (int8_t *data, size_t count=1)
 
bool DeSerialize (int16_t *data, size_t count=1)
 
bool DeSerialize (int32_t *data, size_t count=1)
 
bool DeSerialize (int64_t *data, size_t count=1)
 
bool DeSerialize (uint8_t *data, size_t count=1)
 
bool DeSerialize (uint16_t *data, size_t count=1)
 
bool DeSerialize (uint32_t *data, size_t count=1)
 
bool DeSerialize (uint64_t *data, size_t count=1)
 
bool Serialize (const char *data, size_t count=1)
 
bool Serialize (const double *data, size_t count=1)
 
bool Serialize (const float *data, size_t count=1)
 
bool Serialize (const int8_t *data, size_t count=1)
 
bool Serialize (const int16_t *data, size_t count=1)
 
bool Serialize (const int32_t *data, size_t count=1)
 
bool Serialize (const int64_t *data, size_t count=1)
 
bool Serialize (const uint8_t *data, size_t count=1)
 
bool Serialize (const uint16_t *data, size_t count=1)
 
bool Serialize (const uint32_t *data, size_t count=1)
 
bool Serialize (const uint64_t *data, size_t count=1)
 
bool Skip (size_t count)
 
char * FGets (char *buffer, int buffer_size)
 
int FReadEndian (void *buffer, size_t size, int count)
 
int FRead (void *buffer, size_t size, int count)
 
void Rewind ()
 
void OpenWrite (GenericVector< char > *data)
 
bool CloseWrite (const STRING &filename, FileWriter writer)
 
int FWrite (const void *buffer, size_t size, int count)
 

Private Attributes

int offset_
 
GenericVector< char > * data_
 
bool data_is_owned_
 
bool is_writing_
 
bool swap_
 

Constructor & Destructor Documentation

◆ TFile()

tesseract::TFile::TFile ( )

◆ ~TFile()

tesseract::TFile::~TFile ( )

Member Function Documentation

◆ CloseWrite()

bool tesseract::TFile::CloseWrite ( const STRING filename,
FileWriter  writer 
)

◆ DeSerialize() [1/11]

bool tesseract::TFile::DeSerialize ( char *  data,
size_t  count = 1 
)

◆ DeSerialize() [2/11]

bool tesseract::TFile::DeSerialize ( double *  data,
size_t  count = 1 
)

◆ DeSerialize() [3/11]

bool tesseract::TFile::DeSerialize ( float *  data,
size_t  count = 1 
)

◆ DeSerialize() [4/11]

bool tesseract::TFile::DeSerialize ( int8_t *  data,
size_t  count = 1 
)

◆ DeSerialize() [5/11]

bool tesseract::TFile::DeSerialize ( int16_t *  data,
size_t  count = 1 
)

◆ DeSerialize() [6/11]

bool tesseract::TFile::DeSerialize ( int32_t *  data,
size_t  count = 1 
)

◆ DeSerialize() [7/11]

bool tesseract::TFile::DeSerialize ( int64_t *  data,
size_t  count = 1 
)

◆ DeSerialize() [8/11]

bool tesseract::TFile::DeSerialize ( uint8_t *  data,
size_t  count = 1 
)

◆ DeSerialize() [9/11]

bool tesseract::TFile::DeSerialize ( uint16_t *  data,
size_t  count = 1 
)

◆ DeSerialize() [10/11]

bool tesseract::TFile::DeSerialize ( uint32_t *  data,
size_t  count = 1 
)

◆ DeSerialize() [11/11]

bool tesseract::TFile::DeSerialize ( uint64_t *  data,
size_t  count = 1 
)

◆ FGets()

char * tesseract::TFile::FGets ( char *  buffer,
int  buffer_size 
)

◆ FRead()

int tesseract::TFile::FRead ( void *  buffer,
size_t  size,
int  count 
)

◆ FReadEndian()

int tesseract::TFile::FReadEndian ( void *  buffer,
size_t  size,
int  count 
)

◆ FWrite()

int tesseract::TFile::FWrite ( const void *  buffer,
size_t  size,
int  count 
)

◆ Open() [1/3]

bool tesseract::TFile::Open ( const STRING filename,
FileReader  reader 
)

◆ Open() [2/3]

bool tesseract::TFile::Open ( const char *  data,
int  size 
)

◆ Open() [3/3]

bool tesseract::TFile::Open ( FILE *  fp,
int64_t  end_offset 
)

◆ OpenWrite()

void tesseract::TFile::OpenWrite ( GenericVector< char > *  data)

◆ Rewind()

void tesseract::TFile::Rewind ( )

◆ Serialize() [1/11]

bool tesseract::TFile::Serialize ( const char *  data,
size_t  count = 1 
)

◆ Serialize() [2/11]

bool tesseract::TFile::Serialize ( const double *  data,
size_t  count = 1 
)

◆ Serialize() [3/11]

bool tesseract::TFile::Serialize ( const float *  data,
size_t  count = 1 
)

◆ Serialize() [4/11]

bool tesseract::TFile::Serialize ( const int8_t *  data,
size_t  count = 1 
)

◆ Serialize() [5/11]

bool tesseract::TFile::Serialize ( const int16_t *  data,
size_t  count = 1 
)

◆ Serialize() [6/11]

bool tesseract::TFile::Serialize ( const int32_t *  data,
size_t  count = 1 
)

◆ Serialize() [7/11]

bool tesseract::TFile::Serialize ( const int64_t *  data,
size_t  count = 1 
)

◆ Serialize() [8/11]

bool tesseract::TFile::Serialize ( const uint8_t *  data,
size_t  count = 1 
)

◆ Serialize() [9/11]

bool tesseract::TFile::Serialize ( const uint16_t *  data,
size_t  count = 1 
)

◆ Serialize() [10/11]

bool tesseract::TFile::Serialize ( const uint32_t *  data,
size_t  count = 1 
)

◆ Serialize() [11/11]

bool tesseract::TFile::Serialize ( const uint64_t *  data,
size_t  count = 1 
)

◆ set_swap()

void tesseract::TFile::set_swap ( bool  value)
inline

◆ Skip()

bool tesseract::TFile::Skip ( size_t  count)

Member Data Documentation

◆ data_

GenericVector<char>* tesseract::TFile::data_
private

◆ data_is_owned_

bool tesseract::TFile::data_is_owned_
private

◆ is_writing_

bool tesseract::TFile::is_writing_
private

◆ offset_

int tesseract::TFile::offset_
private

◆ swap_

bool tesseract::TFile::swap_
private

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