PPL Logo

PUP::fromTextFile Class Reference

#include <pup.h>

Inheritance diagram for PUP::fromTextFile:

Inheritance graph
[legend]
Collaboration diagram for PUP::fromTextFile:

Collaboration graph
[legend]

Public Member Functions

 fromTextFile (FILE *f_)
 fromTextFile (const fromTextFile &p)
void operator= (const fromTextFile &p)
virtual void comment (const char *message)
 A descriptive (but entirely optional) human-readable comment field.

Protected Member Functions

int readInt (const char *fmt="%d")
unsigned int readUint (const char *fmt="%u")
CMK_TYPEDEF_INT8 readLongInt (const char *fmt="%lld")
double readDouble (void)
virtual void bytes (void *p, int n, size_t itemSize, dataType t)
virtual void parseError (const char *what)

Protected Attributes

FILE * f

Detailed Description

Definition at line 517 of file pup.h.


Constructor & Destructor Documentation

PUP::fromTextFile::fromTextFile ( FILE *  f_  )  [inline]

Definition at line 530 of file pup.h.

PUP::fromTextFile::fromTextFile ( const fromTextFile p  ) 


Member Function Documentation

int PUP::fromTextFile::readInt ( const char *  fmt = "%d"  )  [protected]

Definition at line 636 of file pup_util.C.

References f, and parseError().

Referenced by bytes().

unsigned int PUP::fromTextFile::readUint ( const char *  fmt = "%u"  )  [protected]

Definition at line 644 of file pup_util.C.

References f, and parseError().

Referenced by bytes().

CMK_TYPEDEF_INT8 PUP::fromTextFile::readLongInt ( const char *  fmt = "%lld"  )  [protected]

Definition at line 652 of file pup_util.C.

References f, and parseError().

double PUP::fromTextFile::readDouble ( void   )  [protected]

Definition at line 660 of file pup_util.C.

References f, and parseError().

Referenced by bytes().

void PUP::fromTextFile::bytes ( void *  p,
int  n,
size_t  itemSize,
dataType  t 
) [protected, virtual]

void PUP::fromTextFile::parseError ( const char *  what  )  [protected, virtual]

Definition at line 622 of file pup_util.C.

References c, CmiAbort(), and f.

Referenced by bytes(), readDouble(), readInt(), readLongInt(), and readUint().

void PUP::fromTextFile::operator= ( const fromTextFile p  ) 

void PUP::fromTextFile::comment ( const char *  message  )  [virtual]

A descriptive (but entirely optional) human-readable comment field.

Reimplemented from PUP::er.

Definition at line 723 of file pup_util.C.

References c, CmiTmpAlloc(), CmiTmpFree(), and f.


Field Documentation

FILE* PUP::fromTextFile::f [protected]

Definition at line 519 of file pup.h.

Referenced by bytes(), comment(), parseError(), readDouble(), readInt(), readLongInt(), and readUint().


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

Generated on Fri May 25 08:06:13 2012 for Charm++ by  doxygen 1.5.5