FieldNode Class Reference
[Data classes]

#include <nedelements.h>

Inheritance diagram for FieldNode:

NEDElement List of all members.

Detailed Description

GENERATED CLASS.

Represents the <field> XML element in memory. DTD declaration:

 <!ELEMENT field EMPTY>
 <!ATTLIST field
      name                NMTOKEN   REQUIRED
      data-type           CDATA     IMPLIED
      is-abstract     (true|false)  "false"
      is-readonly     (true|false)  "false"
      is-vector       (true|false)  "false"
      vector-size         CDATA     IMPLIED
      enum-name           NMTOKEN   IMPLIED
      default-value       CDATA     IMPLIED
      banner-comment      CDATA     IMPLIED
      right-comment       CDATA     "&#10;" >
 


Public Member Functions

Constructors, destructor
 FieldNode ()
 FieldNode (NEDElement *parent)
virtual ~FieldNode ()
Redefined NEDElement methods, incl. generic access to attributes
virtual const char * getTagName () const
virtual int getTagCode () const
virtual int getNumAttributes () const
virtual const char * getAttributeName (int k) const
virtual const char * getAttribute (int k) const
virtual void setAttribute (int k, const char *val)
virtual const char * getAttributeDefault (int k) const
Typed access to attributes, children and siblings
const char * getName () const
void setName (const char *val)
const char * getDataType () const
void setDataType (const char *val)
bool getIsAbstract () const
void setIsAbstract (bool val)
bool getIsReadonly () const
void setIsReadonly (bool val)
bool getIsVector () const
void setIsVector (bool val)
const char * getVectorSize () const
void setVectorSize (const char *val)
const char * getEnumName () const
void setEnumName (const char *val)
const char * getDefaultValue () const
void setDefaultValue (const char *val)
const char * getBannerComment () const
void setBannerComment (const char *val)
const char * getRightComment () const
void setRightComment (const char *val)
virtual FieldNodegetNextFieldNodeSibling () const


Constructor & Destructor Documentation

FieldNode::FieldNode  )  [inline]
 

FieldNode::FieldNode NEDElement parent  )  [inline]
 

virtual FieldNode::~FieldNode  )  [inline, virtual]
 


Member Function Documentation

virtual const char* FieldNode::getAttribute int  k  )  const [virtual]
 

Pure virtual method, it should be redefined in subclasses to return the value of the kth attribute (i.e.

the attribute with the name getAttributeName(k)).

It should return NULL if k is out of range (i.e. negative or greater than getNumAttributes()).

Implements NEDElement.

virtual const char* FieldNode::getAttributeDefault int  k  )  const [virtual]
 

Pure virtual method, it should be redefined in subclasses to return the default value of the kth attribute, as defined in the DTD.

It should return NULL if k is out of range (i.e. negative or greater than getNumAttributes()).

Implements NEDElement.

virtual const char* FieldNode::getAttributeName int  k  )  const [virtual]
 

Pure virtual method, it should be redefined in subclasses to return the name of the kth attribute as defined in the DTD.

It should return NULL if k is out of range (i.e. negative or greater than getNumAttributes()).

Implements NEDElement.

const char* FieldNode::getBannerComment  )  const [inline]
 

const char* FieldNode::getDataType  )  const [inline]
 

const char* FieldNode::getDefaultValue  )  const [inline]
 

const char* FieldNode::getEnumName  )  const [inline]
 

bool FieldNode::getIsAbstract  )  const [inline]
 

bool FieldNode::getIsReadonly  )  const [inline]
 

bool FieldNode::getIsVector  )  const [inline]
 

const char* FieldNode::getName  )  const [inline]
 

virtual FieldNode* FieldNode::getNextFieldNodeSibling  )  const [virtual]
 

virtual int FieldNode::getNumAttributes  )  const [virtual]
 

Pure virtual method, it should be redefined in subclasses to return the number of attributes defined in the DTD.

Implements NEDElement.

const char* FieldNode::getRightComment  )  const [inline]
 

virtual int FieldNode::getTagCode  )  const [inline, virtual]
 

Overridden in subclasses to return the numeric code (NED_xxx) of the XML element the class represents.

Implements NEDElement.

virtual const char* FieldNode::getTagName  )  const [inline, virtual]
 

Overridden in subclasses to return the name of the XML element the class represents.

Implements NEDElement.

const char* FieldNode::getVectorSize  )  const [inline]
 

virtual void FieldNode::setAttribute int  k,
const char *  val
[virtual]
 

Pure virtual method, it should be redefined in subclasses to set the value of the kth attribute (i.e.

the attribute with the name getAttributeName(k)).

If k is out of range (i.e. negative or greater than getNumAttributes()), the call should be ignored.

Implements NEDElement.

void FieldNode::setBannerComment const char *  val  )  [inline]
 

void FieldNode::setDataType const char *  val  )  [inline]
 

void FieldNode::setDefaultValue const char *  val  )  [inline]
 

void FieldNode::setEnumName const char *  val  )  [inline]
 

void FieldNode::setIsAbstract bool  val  )  [inline]
 

void FieldNode::setIsReadonly bool  val  )  [inline]
 

void FieldNode::setIsVector bool  val  )  [inline]
 

void FieldNode::setName const char *  val  )  [inline]
 

void FieldNode::setRightComment const char *  val  )  [inline]
 

void FieldNode::setVectorSize const char *  val  )  [inline]
 


The documentation for this class was generated from the following file:
Generated on Sat Oct 21 17:47:59 2006 for OMNeT++/OMNEST NEDXML by  doxygen 1.4.6