DataIO
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Member Functions | List of all members
EM::Strojcek::VstupneUdaje::EBinarySortedFileSearch Class Reference

#include <EBinarySortedFileSearch.h>

Classes

class  DataClass
 

Public Member Functions

 EBinarySortedFileSearch ()
 
 EBinarySortedFileSearch (const EBinarySortedFileSearch &rhs)
 
 ~EBinarySortedFileSearch ()
 
bool Init (std::string path, EBinaryRecord *prototype, unsigned short headSize=0)
 
EBinaryRecordCol Find (std::string key, long offsetFrom=0, long offsetTo=0)
 
 EBinarySortedFileSearch ()
 
 EBinarySortedFileSearch (const EBinarySortedFileSearch &rhs)
 
 ~EBinarySortedFileSearch ()
 
bool Init (std::string path, EBinaryRecord *prototype, unsigned short headSize=0)
 
EBinaryRecordCol Find (std::string key, long offsetFrom=0, long offsetTo=0)
 

Constructor & Destructor Documentation

EBinarySortedFileSearch::EBinarySortedFileSearch ( )
EBinarySortedFileSearch::EBinarySortedFileSearch ( const EBinarySortedFileSearch rhs)
EBinarySortedFileSearch::~EBinarySortedFileSearch ( )
EM::Strojcek::VstupneUdaje::EBinarySortedFileSearch::EBinarySortedFileSearch ( )
EM::Strojcek::VstupneUdaje::EBinarySortedFileSearch::EBinarySortedFileSearch ( const EBinarySortedFileSearch rhs)
EM::Strojcek::VstupneUdaje::EBinarySortedFileSearch::~EBinarySortedFileSearch ( )

Member Function Documentation

EBinaryRecordCol EBinarySortedFileSearch::Find ( std::string  key,
long  offsetFrom = 0,
long  offsetTo = 0 
)

Searching by key

Parameters
key= search key (key "--all" returns all records from file)
Returns
Collection of all records with key "key". These record ARE NOT deleted by EBinarySortedFileSearch!

Here is the call graph for this function:

Here is the caller graph for this function:

EBinaryRecordCol EM::Strojcek::VstupneUdaje::EBinarySortedFileSearch::Find ( std::string  key,
long  offsetFrom = 0,
long  offsetTo = 0 
)

Searching by key

Parameters
key= search key (key "--all" returns all records from file)
Returns
Collection of all records with key "key". These record ARE NOT deleted by EBinarySortedFileSearch!
bool EM::Strojcek::VstupneUdaje::EBinarySortedFileSearch::Init ( std::string  path,
EBinaryRecord prototype,
unsigned short  headSize = 0 
)

Inicialization of search engine

Parameters
path= absolute path of file including its name ( e.g. "/tmp/records.bin" )
prototype= instance of class inherited from EBinaryRecord which defines the structure of data in file (deleted by EBinarySortedFileSearch)
headSize= size of file header in bytes (0 = file doesn't have any header)
Returns
false = file not found true = otherwise
bool EM::Strojcek::VstupneUdaje::EBinarySortedFileSearch::Init ( std::string  path,
EBinaryRecord prototype,
unsigned short  headSize = 0 
)

Inicialization of search engine

Parameters
path= absolute path of file including its name ( e.g. "/tmp/records.bin" )
prototype= instance of class inherited from EBinaryRecord which defines the structure of data in file (deleted by EBinarySortedFileSearch)
headSize= size of file header in bytes (0 = file doesn't have any header)
Returns
false = file not found true = otherwise

Here is the caller graph for this function:


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