ulib  1.0
S.W. Lee's essential C++ library
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
Public Member Functions | Public Attributes | List of all members
ulib::CUIndexFile Class Reference

#include <uindexfile.h>

Public Member Functions

 CUIndexFile ()
 ~CUIndexFile ()
bool Load (char *prefix)
bool IsLoaded ()
void Close ()
int GetNumRecord ()
CUStringList GetKeyList ()
bool HaveKey (char *key)
bool GetInfo (char *key, CUIndexFileInfo &info)
bool GetInfo (char *key, unsigned long &start, unsigned long &end)
bool GetValue (char *key, CUString &ret)
bool GetValue (CUIndexFileInfo info, CUString &ret)
bool GetValue (char *key, void *ret)
bool GetValue (CUIndexFileInfo info, void *ret)
bool Create (char *prefix)
bool Insert (char *key, char *value)
bool Insert (char *key, char *value, int len)

Public Attributes

map< string, CUIndexFileInfoinfo_map

Constructor & Destructor Documentation

ulib::CUIndexFile::CUIndexFile ( )
ulib::CUIndexFile::~CUIndexFile ( )

References Close().

Member Function Documentation

void ulib::CUIndexFile::Close ( )
bool ulib::CUIndexFile::Create ( char *  prefix)
bool ulib::CUIndexFile::GetInfo ( char *  key,
CUIndexFileInfo info 
)

References info_map.

Referenced by GetValue().

bool ulib::CUIndexFile::GetInfo ( char *  key,
unsigned long &  start,
unsigned long &  end 
)
CUStringList ulib::CUIndexFile::GetKeyList ( )
int ulib::CUIndexFile::GetNumRecord ( )
inline
bool ulib::CUIndexFile::GetValue ( char *  key,
CUString ret 
)

References GetInfo().

Referenced by GetValue().

bool ulib::CUIndexFile::GetValue ( CUIndexFileInfo  info,
CUString ret 
)
bool ulib::CUIndexFile::GetValue ( char *  key,
void *  ret 
)

References GetInfo(), and GetValue().

bool ulib::CUIndexFile::GetValue ( CUIndexFileInfo  info,
void *  ret 
)
bool ulib::CUIndexFile::HaveKey ( char *  key)
bool ulib::CUIndexFile::Insert ( char *  key,
char *  value 
)
bool ulib::CUIndexFile::Insert ( char *  key,
char *  value,
int  len 
)
bool ulib::CUIndexFile::IsLoaded ( )

References ulib::CUTextFile::IsOpen().

Referenced by GetValue(), and Insert().

bool ulib::CUIndexFile::Load ( char *  prefix)

Member Data Documentation

map<string, CUIndexFileInfo> ulib::CUIndexFile::info_map

Referenced by GetInfo(), GetKeyList(), Insert(), and Load().


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