Public Member Functions

IndexFile Class Reference

List of all members.

Public Member Functions

void Init (int file_handler)
bool FindInFile (std::string key, tag &offset)
bool UpdateIndex (std::string key)
bool WriteBack (std::string key, std::string ad)
bool DeleteFromStorageFile (std::string key)
bool UpdateIndex (std::string key, int offset)
int First (std::string &key)
int Next (std::string &key)
std::string GetClassadFromFile (std::string key, int offset)
bool TruncateStorageFile ()
int dump_index ()
void Init (int file_handler)
bool FindInFile (std::string key, tag &offset)
bool UpdateIndex (std::string key)
bool WriteBack (std::string key, std::string ad)
bool DeleteFromStorageFile (std::string key)
bool UpdateIndex (std::string key, int offset)
int First (std::string &key)
int Next (std::string &key)
std::string GetClassadFromFile (std::string key, int offset)
bool TruncateStorageFile ()
int dump_index ()

Member Function Documentation

bool IndexFile::UpdateIndex ( std::string  key  ) 

the cache in mem is full, so we write one classad back to file and wri

Parameters:
s_id the pointer to the ID
bool IndexFile::UpdateIndex ( std::string  key  ) 

the cache in mem is full, so we write one classad back to file and wri

Parameters:
s_id the pointer to the ID

The documentation for this class was generated from the following files:
 All Classes Functions Variables Typedefs Enumerations Enumerator Friends