#include <TagBlock.h>
Inherits RawFileClass.
Classes | |
| struct | BlockHeader |
| struct | FileHeader |
Public Member Functions | |
| TagBlockFile (const char *fname) | |
| virtual | ~TagBlockFile () |
| virtual void | Reset_File () |
| TagBlockHandle * | Open_Tag (const char *tagname) |
| TagBlockHandle * | Create_Tag (const char *tagname) |
| void | Close_Tag (TagBlockHandle *handle) |
| int | Does_Tag_Exist (const char *tagname) |
| virtual unsigned long | Get_Date_Time (void) |
Static Public Member Functions | |
| static int | Calc_Tag_Offset (int blockoffset) |
| static int | Calc_Data_Offset (int blockoffset, const char *tagname) |
Protected Types | |
| enum | { FILE_VERSION = 20000626 , MAX_TAG_NAME_SIZE = 1024 } |
Protected Types inherited from FileClass | |
| enum | { READ = 1 , WRITE = 2 , PRINTF_BUFFER_SIZE = 1024 } |
| enum | { READ = 1 , WRITE = 2 , PRINTF_BUFFER_SIZE = 1024 } |
Protected Member Functions | |
| TagBlockIndex * | Find_Block (const char *tagname) |
| TagBlockIndex * | Create_Index (const char *tagname, int blockoffset) |
| int | Handle_Can_Write (TagBlockHandle *handle) |
| void | Destroy_Handle (TagBlockHandle *handle) |
| int | End_Write_Access (TagBlockHandle *handle) |
| void | Save_Header () |
| void | Empty_Index_List () |
Protected Member Functions inherited from RawFileClass | |
| int | Transfer_Block_Size (void) |
| int | Raw_Seek (int pos, int dir=SEEK_CUR) |
| void | Reset (void) |
| int | Transfer_Block_Size (void) |
| int | Raw_Seek (int pos, int dir=SEEK_CUR) |
| void | Reset (void) |
| RawFileClass (char const *filename) | |
| RawFileClass (void) | |
| RawFileClass (RawFileClass const &f) | |
| RawFileClass & | operator= (RawFileClass const &f) |
| virtual | ~RawFileClass (void) |
| virtual char const * | File_Name (void) const |
| virtual char const * | Set_Name (char const *filename) |
| virtual int | Create (void) |
| virtual int | Delete (void) |
| virtual bool | Is_Available (int forced=false) |
| virtual bool | Is_Open (void) const |
| virtual int | Open (char const *filename, int rights=READ) |
| virtual int | Open (int rights=READ) |
| virtual int | Read (void *buffer, int size) |
| virtual int | Seek (int pos, int dir=SEEK_CUR) |
| virtual int | Size (void) |
| virtual int | Write (void const *buffer, int size) |
| virtual void | Close (void) |
| virtual bool | Set_Date_Time (unsigned long datetime) |
| virtual void | Error (int error, int canretry=false, char const *filename=NULL) |
| virtual void | Bias (int start, int length=-1) |
| virtual void * | Get_File_Handle (void) |
| virtual void | Attach (void *handle, int rights=READ) |
| virtual void | Detach (void) |
| RawFileClass (char const *filename) | |
| RawFileClass (void) | |
| RawFileClass (RawFileClass const &f) | |
| RawFileClass & | operator= (RawFileClass const &f) |
| virtual | ~RawFileClass (void) |
| virtual char const * | File_Name (void) const |
| virtual char const * | Set_Name (char const *filename) |
| virtual int | Create (void) |
| virtual int | Delete (void) |
| virtual bool | Is_Available (int forced=false) |
| virtual bool | Is_Open (void) const |
| virtual int | Open (char const *filename, int rights=READ) |
| virtual int | Open (int rights=READ) |
| virtual int | Read (void *buffer, int size) |
| virtual int | Seek (int pos, int dir=SEEK_CUR) |
| virtual int | Size (void) |
| virtual int | Write (void const *buffer, int size) |
| virtual void | Close (void) |
| virtual bool | Set_Date_Time (unsigned long datetime) |
| virtual void | Error (int error, int canretry=false, char const *filename=NULL) |
| void | Bias (int start, int length=-1) |
| virtual void * | Get_File_Handle (void) |
| virtual void | Attach (void *handle, int rights=READ) |
| virtual void | Detach (void) |
Protected Member Functions inherited from FileClass | |
| virtual | ~FileClass (void) |
| virtual int | Tell (void) |
| operator char const * () | |
| int | Printf (char *str,...) |
| int | Printf (char *buffer, int bufferSize, char *str,...) |
| int | Printf_Indented (unsigned depth, char *str,...) |
| virtual | ~FileClass (void) |
| virtual int | Tell (void) |
| operator char const * () | |
| int | Printf (char *str,...) |
| int | Printf (char *buffer, int bufferSize, char *str,...) |
| int | Printf_Indented (unsigned depth, char *str,...) |
Protected Attributes | |
| FileHeader | Header |
| TagBlockHandle * | CreateHandle |
| int | NumOpenHandles |
| unsigned long | FileTime |
| SList< TagBlockIndex > | IndexList |
Protected Attributes inherited from RawFileClass | |
| int | Rights |
| int | BiasStart |
| int | BiasLength |
Friends | |
| class | TagBlockHandle |
Definition at line 68 of file TagBlock.h.
|
protected |
| Enumerator | |
|---|---|
| FILE_VERSION | |
| MAX_TAG_NAME_SIZE | |
Definition at line 111 of file TagBlock.h.
| TagBlockFile::TagBlockFile | ( | const char * | fname | ) |
Definition at line 123 of file tagblock.cpp.
|
virtual |
Definition at line 199 of file tagblock.cpp.
|
inlinestatic |
Definition at line 103 of file TagBlock.h.
|
inlinestatic |
Definition at line 100 of file TagBlock.h.
| void TagBlockFile::Close_Tag | ( | TagBlockHandle * | handle | ) |
Definition at line 327 of file tagblock.cpp.
|
protected |
Definition at line 406 of file tagblock.cpp.
| TagBlockHandle * TagBlockFile::Create_Tag | ( | const char * | tagname | ) |
Definition at line 282 of file tagblock.cpp.
|
protected |
Definition at line 344 of file tagblock.cpp.
|
inline |
Definition at line 90 of file TagBlock.h.
|
protected |
Definition at line 504 of file tagblock.cpp.
|
protected |
Definition at line 371 of file tagblock.cpp.
|
protected |
Definition at line 450 of file tagblock.cpp.
|
inlinevirtual |
Reimplemented from RawFileClass.
Definition at line 94 of file TagBlock.h.
|
inlineprotected |
Definition at line 191 of file TagBlock.h.
| TagBlockHandle * TagBlockFile::Open_Tag | ( | const char * | tagname | ) |
Definition at line 247 of file tagblock.cpp.
|
virtual |
Definition at line 216 of file tagblock.cpp.
|
inlineprotected |
Definition at line 202 of file TagBlock.h.
|
friend |
Definition at line 209 of file TagBlock.h.
|
protected |
Definition at line 167 of file TagBlock.h.
|
protected |
Definition at line 174 of file TagBlock.h.
|
protected |
Definition at line 163 of file TagBlock.h.
|
protected |
Definition at line 178 of file TagBlock.h.
|
protected |
Definition at line 171 of file TagBlock.h.