#include <pup.h>
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 |
Definition at line 577 of file pup.h.
PUP::fromTextFile::fromTextFile | ( | const fromTextFile & | p | ) |
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().
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().
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.
double PUP::fromTextFile::readDouble | ( | void | ) | [protected] |
Definition at line 770 of file pup_util.C.
References f, and parseError().
Referenced by bytes().
void PUP::fromTextFile::bytes | ( | void * | p, | |
size_t | n, | |||
size_t | itemSize, | |||
dataType | t | |||
) | [protected, virtual] |
Implements PUP::er.
Reimplemented in fromProjectionsFile.
Definition at line 778 of file pup_util.C.
References CmiAbort(), f, float, parseError(), readDouble(), readInt(), readUint(), PUP::Tbool, PUP::Tbyte, PUP::Tchar, PUP::Tdouble, PUP::Tfloat, PUP::Tint, PUP::Tlong, PUP::Tlongdouble, PUP::Tlonglong, PUP::Tpointer, PUP::Tshort, PUP::Tuchar, PUP::Tuint, PUP::Tulong, PUP::Tulonglong, and PUP::Tushort.
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().
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.
FILE* PUP::fromTextFile::f [protected] |
Definition at line 579 of file pup.h.
Referenced by bytes(), comment(), parseError(), readDouble(), readInt(), readLongInt(), and readUint().