RecoveryReader Class Reference

#include <Recovery.H>

Collaboration diagram for RecoveryReader:

Collaboration graph
[legend]
List of all members.

Public Types

typedef char Ident [256]

Public Member Functions

 RecoveryReader (VestaLog *vl) throw ()
 RecoveryReader (std::istream *is) throw ()
void get (char &c) throw (VestaLog::Eof, VestaLog::Error)
void get (char *p, int n, char term='\n') throw (VestaLog::Eof, VestaLog::Error)
int read (char *p, int n) throw (VestaLog::Error)
void readAll (char *p, int n) throw (VestaLog::Eof, VestaLog::Error)
bool eof () throw (VestaLog::Error)
void skipWhite (char &c) throw (VestaLog::Eof, VestaLog::Error)
void requireChar (char &c, char required) throw (VestaLog::Eof, VestaLog::Error)
void getIdent (char &c, Ident id) throw (VestaLog::Eof, VestaLog::Error)
void getLong (char &c, long &n) throw (VestaLog::Eof, VestaLog::Error)
void getULong (char &c, unsigned long &n) throw (VestaLog::Eof, VestaLog::Error)
void getLongId (char &c, Byte32 &value) throw (VestaLog::Eof, VestaLog::Error)
void getQuotedString (char &c, char *buf, int maxLen) throw (VestaLog::Eof, VestaLog::Error)
void getNewQuotedString (char &c, char *&string) throw (VestaLog::Eof, VestaLog::Error)

Private Attributes

VestaLogvl_
std::istream * is_

Detailed Description

Definition at line 39 of file Recovery.H.


Member Typedef Documentation

typedef char RecoveryReader::Ident[256]

Definition at line 61 of file Recovery.H.


Constructor & Destructor Documentation

RecoveryReader::RecoveryReader ( VestaLog vl  )  throw ()

Definition at line 33 of file Recovery.C.

RecoveryReader::RecoveryReader ( std::istream *  is  )  throw ()


Member Function Documentation

void RecoveryReader::get ( char &  c  )  throw (VestaLog::Eof, VestaLog::Error)

Definition at line 46 of file Recovery.C.

References Basics::errno_Text().

Referenced by GetFPTag(), and GetHexUint64().

Here is the call graph for this function:

Here is the caller graph for this function:

void RecoveryReader::get ( char *  p,
int  n,
char  term = '\n' 
) throw (VestaLog::Eof, VestaLog::Error)

Definition at line 60 of file Recovery.C.

References Basics::errno_Text().

Here is the call graph for this function:

int RecoveryReader::read ( char *  p,
int  n 
) throw (VestaLog::Error)

Definition at line 75 of file Recovery.C.

References Basics::errno_Text().

Here is the call graph for this function:

void RecoveryReader::readAll ( char *  p,
int  n 
) throw (VestaLog::Eof, VestaLog::Error)

Definition at line 92 of file Recovery.C.

References Basics::errno_Text().

Here is the call graph for this function:

bool RecoveryReader::eof (  )  throw (VestaLog::Error)

Definition at line 111 of file Recovery.C.

References VestaLog::eof(), Basics::errno_Text(), is_, and vl_.

Referenced by Weeder::CopyGLtoPending(), EmptyPKLog::EndOfFile(), Print_used_cis(), Weeder::PruneGraphLog(), CacheS::RecoverCILog(), and Weeder::WeededPrefixes().

Here is the call graph for this function:

Here is the caller graph for this function:

void RecoveryReader::skipWhite ( char &  c  )  throw (VestaLog::Eof, VestaLog::Error)

Definition at line 130 of file Recovery.C.

References VestaConfig::get().

Referenced by GetFPTag(), and GetHexUint64().

Here is the call graph for this function:

Here is the caller graph for this function:

void RecoveryReader::requireChar ( char &  c,
char  required 
) throw (VestaLog::Eof, VestaLog::Error)

Definition at line 138 of file Recovery.C.

References VestaConfig::get().

Here is the call graph for this function:

void RecoveryReader::getIdent ( char &  c,
Ident  id 
) throw (VestaLog::Eof, VestaLog::Error)

Definition at line 150 of file Recovery.C.

References VestaConfig::get().

Here is the call graph for this function:

void RecoveryReader::getLong ( char &  c,
long &  n 
) throw (VestaLog::Eof, VestaLog::Error)

Definition at line 169 of file Recovery.C.

References VestaConfig::get().

Here is the call graph for this function:

void RecoveryReader::getULong ( char &  c,
unsigned long &  n 
) throw (VestaLog::Eof, VestaLog::Error)

Definition at line 196 of file Recovery.C.

References VestaConfig::get().

Here is the call graph for this function:

void RecoveryReader::getLongId ( char &  c,
Byte32 value 
) throw (VestaLog::Eof, VestaLog::Error)

Definition at line 223 of file Recovery.C.

References VestaConfig::get().

Here is the call graph for this function:

void RecoveryReader::getQuotedString ( char &  c,
char *  buf,
int  maxLen 
) throw (VestaLog::Eof, VestaLog::Error)

Definition at line 253 of file Recovery.C.

References VestaConfig::get().

Here is the call graph for this function:

void RecoveryReader::getNewQuotedString ( char &  c,
char *&  string 
) throw (VestaLog::Eof, VestaLog::Error)

Definition at line 286 of file Recovery.C.

References VestaConfig::get(), and NEW_PTRFREE_ARRAY.

Here is the call graph for this function:


Member Data Documentation

VestaLog* RecoveryReader::vl_ [private]

Definition at line 80 of file Recovery.H.

Referenced by eof().

std::istream* RecoveryReader::is_ [private]

Definition at line 81 of file Recovery.H.

Referenced by eof().


The documentation for this class was generated from the following files:
Generated on Fri May 25 01:14:00 2007 for Vesta by  doxygen 1.5.1