Aug 22, 2012

MGT

MGT(Merged Text)

mgtidx and mgtcontent formats are pair

mgt-idx
key \t start \t end
...

mgt-content
content \n
...

CUMGT is a class to deal with these files.

Methods
  • bool Load( char *prefix)
  • bool IsLoaded()
  • void Close()
  • int GetNumRecord()
  • bool HaveKey( char *key )
  • bool GetInfo( char *prefix, CUMGTInfo &info )
  • CUStringList GetKeyList()
  • bool Create( char *prefix )
  • bool Insert( char *key, char *content )
  • bool Delete( char *key )