#include <signfile.hpp>
Inheritance diagram for CSignFile:
Public Methods | |
CSignFile (const char *filename, const char *mode) | |
char * | ReadString () const |
char * | ReadStringFlag (unsigned flag) const |
void | RawRead (void *ptr, size_t size) const |
const range_set< long > & | GetRanges () |
Private Types | |
typedef range_set< long > | t_ranges |
Private Attributes | |
t_ranges | ranges |
|
Definition at line 40 of file signfile.hpp. |
|
Definition at line 32 of file signfile.cpp.
00032 :CFile(filename,mode) 00033 { 00034 } |
|
Definition at line 38 of file signfile.hpp. References ranges. Referenced by CodeParser::ExcludeFileRange().
00038 { return ranges; }; |
|
Reimplemented from CFile. Definition at line 54 of file signfile.cpp. References range_set< long >::insert(), ranges, CFile::RawRead(), and CFile::Tell(). Referenced by RawDump().
00055 { 00056 long start = Tell(); 00057 CFile::RawRead(ptr,size); 00058 ranges.insert(range<long>(start,start+size)); 00059 } |
|
Reimplemented from CFile. Definition at line 36 of file signfile.cpp. References range_set< long >::insert(), ranges, CFile::ReadString(), and CFile::Tell().
00037 { 00038 long start = Tell(); 00039 char* res = CFile::ReadString(); 00040 if (res) 00041 ranges.insert(range<long>(start,start+(strlen(res)+1))); 00042 return res; 00043 } |
|
Reimplemented from CFile. Definition at line 45 of file signfile.cpp. References range_set< long >::insert(), ranges, CFile::ReadStringFlag(), and CFile::Tell().
00046 { 00047 long start = Tell(); 00048 char* res = CFile::ReadStringFlag(flag); 00049 if (res) 00050 ranges.insert(range<long>(start,Tell() - start)); 00051 return res; 00052 } |
|
Definition at line 41 of file signfile.hpp. Referenced by GetRanges(), RawRead(), ReadString(), and ReadStringFlag(). |