#include <EBinarySortedFileSearch.h>
| EBinarySortedFileSearch::EBinarySortedFileSearch |
( |
| ) |
|
| EBinarySortedFileSearch::~EBinarySortedFileSearch |
( |
| ) |
|
| EM::Strojcek::VstupneUdaje::EBinarySortedFileSearch::EBinarySortedFileSearch |
( |
| ) |
|
| EM::Strojcek::VstupneUdaje::EBinarySortedFileSearch::EBinarySortedFileSearch |
( |
const EBinarySortedFileSearch & |
rhs | ) |
|
| EM::Strojcek::VstupneUdaje::EBinarySortedFileSearch::~EBinarySortedFileSearch |
( |
| ) |
|
| 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!
| 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
The documentation for this class was generated from the following files: