Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

SPKFileRep::Header Class Reference

#include <SPKFileRep.H>

List of all members.

Public Member Functions

 Header ()
 Header (std::ifstream &ifs, std::streampos origin, int version, bool readEntries=true) throw (FS::EndOfFile, FS::Failure)
void Read (std::ifstream &ifs, std::streampos origin, int version, bool readEntries=true) throw (FS::EndOfFile, FS::Failure)
void Write (std::ostream &ofs, std::streampos origin) throw (FS::Failure)
void BackPatch (std::ostream &ofs, std::streampos origin) const throw (FS::Failure)
void Debug (std::ostream &os, bool verbose=false) const throw ()

Static Public Member Functions

static void Skip (std::ifstream &ifs, std::streampos origin, int version) throw (FS::EndOfFile, FS::Failure)

Public Attributes

UShort num
UShort type
HeaderEntryentry

Private Member Functions

void ReadListV1 (std::ifstream &ifs, std::streampos origin) throw (FS::EndOfFile, FS::Failure)
void WriteList (std::ostream &ofs, std::streampos origin) throw (FS::Failure)
void WriteSortedList (std::ostream &ofs, std::streampos origin) throw (FS::Failure)

Static Private Member Functions

static void SkipListV1 (std::ifstream &ifs, int num) throw (FS::EndOfFile, FS::Failure)


Constructor & Destructor Documentation

SPKFileRep::Header::Header  )  [inline]
 

Definition at line 101 of file SPKFileRep.H.

SPKFileRep::Header::Header std::ifstream &  ifs,
std::streampos  origin,
int  version,
bool  readEntries = true
throw (FS::EndOfFile, FS::Failure) [inline]
 

Definition at line 102 of file SPKFileRep.H.

References Read().


Member Function Documentation

void SPKFileRep::Header::BackPatch std::ostream &  ofs,
std::streampos  origin
const throw (FS::Failure)
 

Definition at line 200 of file SPKFileRep.C.

References FS::Seek(), and FS::Write().

Referenced by SMultiPKFile::Rewrite().

void SPKFileRep::Header::Debug std::ostream &  os,
bool  verbose = false
const throw ()
 

Definition at line 213 of file SPKFileRep.C.

References verbose.

void SPKFileRep::Header::Read std::ifstream &  ifs,
std::streampos  origin,
int  version,
bool  readEntries = true
throw (FS::EndOfFile, FS::Failure)
 

Definition at line 97 of file SPKFileRep.C.

References NEW_ARRAY, FS::Read(), SPKFileRep::SourceFuncVersion, and VestaSourceSRPC::version.

Referenced by Header().

void SPKFileRep::Header::ReadListV1 std::ifstream &  ifs,
std::streampos  origin
throw (FS::EndOfFile, FS::Failure) [private]
 

Definition at line 160 of file SPKFileRep.C.

void SPKFileRep::Header::Skip std::ifstream &  ifs,
std::streampos  origin,
int  version
throw (FS::EndOfFile, FS::Failure) [static]
 

Definition at line 65 of file SPKFileRep.C.

References num, SPKFileRep::SourceFuncVersion, type, and VestaSourceSRPC::version.

Referenced by SPKFile::Read().

void SPKFileRep::Header::SkipListV1 std::ifstream &  ifs,
int  num
throw (FS::EndOfFile, FS::Failure) [static, private]
 

Definition at line 90 of file SPKFileRep.C.

References FS::Seek().

void SPKFileRep::Header::Write std::ostream &  ofs,
std::streampos  origin
throw (FS::Failure)
 

Definition at line 128 of file SPKFileRep.C.

References FS::Write().

void SPKFileRep::Header::WriteList std::ostream &  ofs,
std::streampos  origin
throw (FS::Failure) [private]
 

Definition at line 169 of file SPKFileRep.C.

void SPKFileRep::Header::WriteSortedList std::ostream &  ofs,
std::streampos  origin
throw (FS::Failure) [private]
 

Definition at line 189 of file SPKFileRep.C.


Member Data Documentation

HeaderEntry* SPKFileRep::Header::entry
 

Definition at line 150 of file SPKFileRep.H.

UShort SPKFileRep::Header::num
 

Definition at line 146 of file SPKFileRep.H.

Referenced by Skip().

UShort SPKFileRep::Header::type
 

Definition at line 147 of file SPKFileRep.H.

Referenced by Skip().


The documentation for this class was generated from the following files:
Generated on Mon May 8 00:49:13 2006 for Vesta by  doxygen 1.4.2