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, size_t n, size_t itemSize, dataType t)
virtual void parseError (const char *what)

Protected Attributes

FILE * f

Detailed Description

Definition at line 577 of file pup.h.


Constructor & Destructor Documentation

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

Definition at line 590 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 746 of file pup_util.C.

References f, and parseError().

Referenced by bytes().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 754 of file pup_util.C.

References f, parseError(), and PUP::u.

Referenced by bytes().

Here is the call graph for this function:

Here is the caller graph for this function:

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

Definition at line 762 of file pup_util.C.

References f, parseError(), and PUP::u.

Here is the call graph for this function:

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

Definition at line 770 of file pup_util.C.

References f, and parseError().

Referenced by bytes().

Here is the call graph for this function:

Here is the caller graph for this function:

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

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

Definition at line 730 of file pup_util.C.

References PUP::c, CmiAbort(), f, and lineno.

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

Here is the call graph for this function:

Here is the caller graph for this function:

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 833 of file pup_util.C.

References PUP::c, CmiAbort(), CmiTmpAlloc(), CmiTmpFree(), and f.

Here is the call graph for this function:


Field Documentation

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

Definition at line 579 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 Mon Sep 21 08:34:16 2020 for Charm++ by  doxygen 1.5.5