class MwInput


Public Fields

static int* busy
char* filename
PFSTRUCT_DECLARE

Public Methods

void addReference(const MwName &name, MwNode *node)
Adds a reference to dictionary in current file
MbBool eof()
MwNode* findReference(const MwName &name)
MbBool get(char &c)
FILE* getCurFile()
void getLocationString(MbString &string)
MwSceneState* getSceneState()
float getVersion()
static float isASCIIHeader(const char *string)
int isValidFilePointer()
MwInput(char *fileName, MwSceneState *)
void putBack(char c)
void putBack(const char *string)
MbBool read(int &i)
MbBool read(unsigned int &i)
MbBool read(short &s)
MbBool read(unsigned short &s)
MbBool read(long &l)
MbBool read(unsigned long &l)
MbBool read(float &f)
MbBool read(double &d)
MbBool read(MwNode *&n)
MbBool read(char &c)
MbBool read(MbString &s)
MbBool read(MwName &n, MbBool validIdent = FALSE)
MwNode* readReference()
void setFilePointer(FILE *newFP)
~MwInput()

Private Fields

MbString backBuf
int backBufIndex
FILE* fp
File pointer
MbBool headerOk
TRUE if header was read ok
int lineNum
Number of line currently reading
friend class MwDB
friend class MwNode
MbBool readHeader
TRUE if header was checked for A/B
MbDict refDict
Node reference dictionary
MwSceneState* sceneState
float version
Version number of file

Private Methods

MbBool checkHeader()
int readChar(char *string, char charToRead)
int readDigits(char *string)
int readHexDigits(char *string)
MbBool readInteger(long &l)
MbBool readReal(double &d)
MbBool readUnsignedInteger(unsigned long &l)
MbBool readUnsignedIntegerString(char *str)
MbBool skipWhiteSpace()

Documentation

MwInput(char *fileName, MwSceneState *)

~MwInput()

char* filename

static int* busy

MwSceneState* getSceneState()

static float isASCIIHeader(const char *string)

void setFilePointer(FILE *newFP)

int isValidFilePointer()

FILE* getCurFile()

float getVersion()

MbBool get(char &c)

MbBool read(char &c)

MbBool read(MbString &s)

MbBool read(MwName &n, MbBool validIdent = FALSE)

MbBool read(int &i)

MbBool read(unsigned int &i)

MbBool read(short &s)

MbBool read(unsigned short &s)

MbBool read(long &l)

MbBool read(unsigned long &l)

MbBool read(float &f)

MbBool read(double &d)

MbBool read(MwNode *&n)

MbBool eof()

void getLocationString(MbString &string)

void putBack(char c)

void putBack(const char *string)

void addReference(const MwName &name, MwNode *node)
Adds a reference to dictionary in current file. This may also add a reference to the global dictionary if addToGlobalDict is TRUE (the default).

MwNode* findReference(const MwName &name)

MwNode* readReference()

PFSTRUCT_DECLARE

FILE* fp
File pointer

int lineNum
Number of line currently reading

float version
Version number of file

MbBool readHeader
TRUE if header was checked for A/B

MbBool headerOk
TRUE if header was read ok

MbDict refDict
Node reference dictionary

MbString backBuf

int backBufIndex

MwSceneState* sceneState

MbBool checkHeader()

MbBool skipWhiteSpace()

MbBool readInteger(long &l)

MbBool readUnsignedInteger(unsigned long &l)

MbBool readReal(double &d)

MbBool readUnsignedIntegerString(char *str)

int readDigits(char *string)

int readHexDigits(char *string)

int readChar(char *string, char charToRead)

friend class MwNode

friend class MwDB


This class has no child classes.

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de