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

RecoveryReader Class Reference

#include <Recovery.H>

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

VestaLog * vl_
std::istream * is_


Member Typedef Documentation

typedef char RecoveryReader::Ident[256]
 

Definition at line 63 of file Recovery.H.


Constructor & Destructor Documentation

RecoveryReader::RecoveryReader (  VestaLog *  vl  )  throw ()
 

Definition at line 37 of file Recovery.C.

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

Definition at line 43 of file Recovery.C.


Member Function Documentation

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

Definition at line 115 of file Recovery.C.

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

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

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

Definition at line 64 of file Recovery.C.

References Basics::errno_Text().

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

Definition at line 50 of file Recovery.C.

References Basics::errno_Text().

Referenced by GetFPTag().

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

Definition at line 154 of file Recovery.C.

References VestaConfig::get().

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

Definition at line 173 of file Recovery.C.

References VestaConfig::get().

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

Definition at line 227 of file Recovery.C.

References VestaConfig::get().

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

Definition at line 290 of file Recovery.C.

References VestaConfig::get(), and NEW_PTRFREE_ARRAY.

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

Definition at line 257 of file Recovery.C.

References VestaConfig::get().

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

Definition at line 200 of file Recovery.C.

References VestaConfig::get().

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

Definition at line 79 of file Recovery.C.

References Basics::errno_Text().

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

Definition at line 96 of file Recovery.C.

References Basics::errno_Text().

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

Definition at line 142 of file Recovery.C.

References VestaConfig::get().

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

Definition at line 134 of file Recovery.C.

References VestaConfig::get().

Referenced by GetFPTag().


Member Data Documentation

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

Definition at line 83 of file Recovery.H.

Referenced by eof().

VestaLog* RecoveryReader::vl_ [private]
 

Definition at line 82 of file Recovery.H.

Referenced by eof().


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