PPL Logo

patchReader Class Reference

Collaboration diagram for patchReader:

Collaboration graph
[legend]

Public Member Functions

 patchReader (const char *fileName)
 ~patchReader ()
int nextLine (void)
int nextInt (void)
double nextDouble (void)
blockDim nextDim (void)
blockSpan nextSpan (void)

Private Member Functions

void abort (const char *why)

Private Attributes

const char * fName
FILE * f
int lineCount
char line [1024]
int curChar

Detailed Description

Definition at line 20 of file patch.C.


Constructor & Destructor Documentation

patchReader::patchReader ( const char *  fileName  )  [inline]

Definition at line 33 of file patch.C.

References CkExit(), f, fName, lineCount, and nextLine().

patchReader::~patchReader (  )  [inline]

Definition at line 42 of file patch.C.

References f.


Member Function Documentation

void patchReader::abort ( const char *  why  )  [inline, private]

Definition at line 27 of file patch.C.

References CkExit(), fName, and lineCount.

Referenced by nextDouble(), and nextInt().

int patchReader::nextLine ( void   )  [inline]

Definition at line 45 of file patch.C.

References curChar, f, line, and lineCount.

Referenced by block::block(), and patchReader().

int patchReader::nextInt ( void   )  [inline]

Definition at line 58 of file patch.C.

References abort(), curChar, and line.

Referenced by block::block(), nextDim(), and nextSpan().

double patchReader::nextDouble ( void   )  [inline]

Definition at line 66 of file patch.C.

References abort(), curChar, and line.

Referenced by block::block().

blockDim patchReader::nextDim ( void   )  [inline]

Definition at line 75 of file patch.C.

References nextInt().

Referenced by block::block().

blockSpan patchReader::nextSpan ( void   )  [inline]

Definition at line 82 of file patch.C.

References blockSpan::end, nextInt(), and blockSpan::start.

Referenced by block::block().


Field Documentation

const char* patchReader::fName [private]

Definition at line 21 of file patch.C.

Referenced by abort(), and patchReader().

FILE* patchReader::f [private]

Definition at line 22 of file patch.C.

Referenced by nextLine(), patchReader(), and ~patchReader().

Definition at line 23 of file patch.C.

Referenced by abort(), nextLine(), and patchReader().

char patchReader::line[1024] [private]

Definition at line 24 of file patch.C.

Referenced by nextDouble(), nextInt(), and nextLine().

Definition at line 25 of file patch.C.

Referenced by nextDouble(), nextInt(), and nextLine().


The documentation for this class was generated from the following file:

Generated on Fri May 25 08:04:43 2012 for Charm++ by  doxygen 1.5.5