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

SMultiPKFileRep::Header Class Reference

#include <SMultiPKFileRep.H>

List of all members.

Public Types

typedef FP::TagFPTagPtr

Public Member Functions

 Header () throw ()
 Header (std::ifstream &ifs) throw (BadMPKFile, FS::EndOfFile, FS::Failure)
bool AppendNewHeaderEntry (const FP::Tag &pk) throw ()
void RemoveHeaderEntry (const FP::Tag &pk) throw ()
void Read (std::ifstream &ifs) throw (BadMPKFile, FS::EndOfFile,FS::Failure)
void ReadEntries (std::ifstream &ifs) throw (FS::EndOfFile, FS::Failure)
void ReadPKFiles (std::ifstream &ifs) throw (FS::EndOfFile, FS::Failure)
void Write (std::ostream &ofs) throw (FS::Failure)
void WriteEntries (std::ostream &ofs) throw (FS::Failure)
void BackPatch (std::ostream &ofs) throw (FS::Failure)
int Size ()
void Debug (std::ostream &os, bool verbose=false) const throw ()

Public Attributes

UShort version
UShort num
UInt totalLen
UShort type
UInt lenOffset
UShort pksLen
FPTagPtrpkSeq
HdrEntryMap pkTbl

Private Member Functions

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


Member Typedef Documentation

typedef FP::Tag* SMultiPKFileRep::Header::FPTagPtr
 

Definition at line 197 of file SMultiPKFileRep.H.


Constructor & Destructor Documentation

SMultiPKFileRep::Header::Header  )  throw () [inline]
 

Definition at line 126 of file SMultiPKFileRep.H.

SMultiPKFileRep::Header::Header std::ifstream &  ifs  )  throw (BadMPKFile, FS::EndOfFile, FS::Failure) [inline]
 

Definition at line 129 of file SMultiPKFileRep.H.

References SMultiPKFileRep::HeaderEntry::Read().


Member Function Documentation

bool SMultiPKFileRep::Header::AppendNewHeaderEntry const FP::Tag pk  )  throw ()
 

Definition at line 68 of file SMultiPKFileRep.C.

References max(), NEW_ARRAY, NEW_CONSTR, and SMultiPKFileRep::HeaderEntry::pk.

void SMultiPKFileRep::Header::BackPatch std::ostream &  ofs  )  throw (FS::Failure)
 

Definition at line 278 of file SMultiPKFileRep.C.

References SMultiPKFileRep::HeaderEntry::offset, SMultiPKFileRep::HeaderEntry::offsetLoc, FS::Posn(), FS::Seek(), and FS::Write().

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

Definition at line 300 of file SMultiPKFileRep.C.

References SMultiPKFileRep::HeaderEntry::Debug(), verbose, and VestaSourceSRPC::version.

void SMultiPKFileRep::Header::Read std::ifstream &  ifs  )  throw (BadMPKFile, FS::EndOfFile,FS::Failure)
 

Definition at line 111 of file SMultiPKFileRep.C.

References SPKFileRep::FirstVersion, SPKFileRep::LastVersion, SPKFileRep::MPKMagicNumVersion, FS::Posn(), and FS::Read().

void SMultiPKFileRep::Header::ReadEntries std::ifstream &  ifs  )  throw (FS::EndOfFile, FS::Failure)
 

Definition at line 160 of file SMultiPKFileRep.C.

References SPKFileRep::SourceFuncVersion.

Referenced by SMultiPKFile::ReadHeader().

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

Definition at line 202 of file SMultiPKFileRep.C.

References NEW_ARRAY, NEW_CONSTR, SMultiPKFileRep::HeaderEntry::offset, SMultiPKFileRep::HeaderEntry::pk, and SMultiPKFileRep::HeaderEntry::pkLen.

void SMultiPKFileRep::Header::ReadPKFiles std::ifstream &  ifs  )  throw (FS::EndOfFile, FS::Failure)
 

Definition at line 263 of file SMultiPKFileRep.C.

References NEW_CONSTR, SMultiPKFileRep::HeaderEntry::offset, SMultiPKFileRep::HeaderEntry::pk, SMultiPKFileRep::HeaderEntry::pkfile, and SMultiPKFileRep::HeaderEntry::pkhdr.

void SMultiPKFileRep::Header::RemoveHeaderEntry const FP::Tag pk  )  throw ()
 

Definition at line 89 of file SMultiPKFileRep.C.

int SMultiPKFileRep::Header::Size  )  [inline]
 

Definition at line 186 of file SMultiPKFileRep.H.

References VestaSourceSRPC::version.

void SMultiPKFileRep::Header::Write std::ostream &  ofs  )  throw (FS::Failure)
 

Definition at line 134 of file SMultiPKFileRep.C.

References SPKFileRep::LastVersion, SPKFileRep::MPKMagicNumVersion, FS::Posn(), VestaSourceSRPC::version, and FS::Write().

void SMultiPKFileRep::Header::WriteEntries std::ostream &  ofs  )  throw (FS::Failure)
 

Definition at line 184 of file SMultiPKFileRep.C.

void SMultiPKFileRep::Header::WriteList std::ostream &  ofs  )  throw (FS::Failure) [private]
 

Definition at line 229 of file SMultiPKFileRep.C.

References SMultiPKFileRep::HeaderEntry::Write().

void SMultiPKFileRep::Header::WriteSortedList std::ostream &  ofs  )  throw (FS::Failure) [private]
 

Definition at line 251 of file SMultiPKFileRep.C.


Member Data Documentation

UInt SMultiPKFileRep::Header::lenOffset
 

Definition at line 206 of file SMultiPKFileRep.H.

UShort SMultiPKFileRep::Header::num
 

Definition at line 201 of file SMultiPKFileRep.H.

Referenced by MPKFileIter::Next(), and SMultiPKFile::SeekToPKFile().

FPTagPtr* SMultiPKFileRep::Header::pkSeq
 

Definition at line 208 of file SMultiPKFileRep.H.

Referenced by MPKFileIter::Next(), and CacheS::VToSCache().

UShort SMultiPKFileRep::Header::pksLen
 

Definition at line 207 of file SMultiPKFileRep.H.

HdrEntryMap SMultiPKFileRep::Header::pkTbl
 

Definition at line 209 of file SMultiPKFileRep.H.

Referenced by MPKFileIter::Next().

UInt SMultiPKFileRep::Header::totalLen
 

Definition at line 202 of file SMultiPKFileRep.H.

UShort SMultiPKFileRep::Header::type
 

Definition at line 203 of file SMultiPKFileRep.H.

Referenced by SMultiPKFile::SeekToPKFile().

UShort SMultiPKFileRep::Header::version
 

Definition at line 200 of file SMultiPKFileRep.H.

Referenced by SMultiPKFile::SeekToPKFile().


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