class MwFieldData


Public Fields

PFSTRUCT_DECLARE

Public Methods

void addField(MwNode *defObject, const char *fieldName, const MwField *field)
Adds a field to current data, given default value object, name of field and pointer to field within default value object
void copy(const MwFieldData *from)
Copies all fields from given field data into this one, creating new fields for them
MwField* getField(const MwNode *object, int index)
Returns pointer to field with given index within given object instance
MwField* getField(const MwNode *object, const MwName& n)
const MwName& getFieldName(int index)
Returns name of field with given index
const MwName& getFieldName(MwNode *obj, MwField *f)
int getIndex(const MwNode *object, const MwField *)
Returns index of field, given the field and the instance it is in
int getNumFields()
Returns number of fields
MbBool isSame(const MwNode *c1, const MwNode *c2)
Returns TRUE if the values in the fields of one container are the same as those in another (of the same type)
MwFieldData()
MwFieldData(const MwFieldData *)
MbBool read(MwInput *in, MwNode *object, const MwName &fieldName, MbBool &foundName)
This function is used when the field name has already been read, and just the value needs to be read in
MbBool read(MwInput *in, MwNode *object, MbBool errorOnUnknownField = TRUE)
MbBool readFieldTypes(MwInput *in, MwNode *object)
MbBool readNewField(MwInput *in, MwNode *object)
int getIndex(const MwNode *object, const MwName& n) const;
~MwFieldData()

Private Fields

MbPList fields

Documentation

MwFieldData()

MwFieldData(const MwFieldData *)

~MwFieldData()

void addField(MwNode *defObject, const char *fieldName, const MwField *field)
Adds a field to current data, given default value object, name of field and pointer to field within default value object

int getNumFields()
Returns number of fields

const MwName& getFieldName(int index)
Returns name of field with given index

const MwName& getFieldName(MwNode *obj, MwField *f)

MwField* getField(const MwNode *object, int index)
Returns pointer to field with given index within given object instance

MwField* getField(const MwNode *object, const MwName& n)

int getIndex(const MwNode *object, const MwField *)
Returns index of field, given the field and the instance it is in

MbBool readNewField(MwInput *in, MwNode *object)
int getIndex(const MwNode *object, const MwName& n) const;

MbBool read(MwInput *in, MwNode *object, MbBool errorOnUnknownField = TRUE)

MbBool read(MwInput *in, MwNode *object, const MwName &fieldName, MbBool &foundName)
This function is used when the field name has already been read, and just the value needs to be read in. It is used by the above read() method and to read in GlobalFields. It returns TRUE if there were no problems reading, and will return FALSE in 'foundName' if the given name is not the name of one of the fields in the fieldData.

MbBool readFieldTypes(MwInput *in, MwNode *object)

void copy(const MwFieldData *from)
Copies all fields from given field data into this one, creating new fields for them

MbBool isSame(const MwNode *c1, const MwNode *c2)
Returns TRUE if the values in the fields of one container are the same as those in another (of the same type)

PFSTRUCT_DECLARE

MbPList fields


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