Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

CSignFile Class Reference

#include <signfile.hpp>

Inheritance diagram for CSignFile:

CFile ICFile List of all members.

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

Member Typedef Documentation

typedef range_set<long> CSignFile::t_ranges [private]
 

Definition at line 40 of file signfile.hpp.


Constructor & Destructor Documentation

CSignFile::CSignFile const char *    filename,
const char *    mode
 

Definition at line 32 of file signfile.cpp.

00032                                                          :CFile(filename,mode)
00033 {
00034 }


Member Function Documentation

const range_set<long>& CSignFile::GetRanges   [inline]
 

Definition at line 38 of file signfile.hpp.

References ranges.

Referenced by CodeParser::ExcludeFileRange().

00038 { return ranges; };

void CSignFile::RawRead void *    ptr,
size_t    size
const [virtual]
 

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 }

char * CSignFile::ReadString   const [virtual]
 

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 }

char * CSignFile::ReadStringFlag unsigned    flag const [virtual]
 

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 }


Member Data Documentation

t_ranges CSignFile::ranges [private]
 

Definition at line 41 of file signfile.hpp.

Referenced by GetRanges(), RawRead(), ReadString(), and ReadStringFlag().


The documentation for this class was generated from the following files:
Generated on Mon Jan 13 22:20:36 2003 for perdr by doxygen1.2.15