Main Page Modules Class Hierarchy Compound List File List Compound Members

# FieldNode Class Reference

`#include <nedelements.h>`

Inheritance diagram for FieldNode::

List of all members.

## Public Methods

| 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 | 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 FieldNode* | getNextFieldNodeSibling () const

## Detailed Description

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

     <!ELEMENT field EMPTY>
     <!ATTLIST field
          name                NMTOKEN   REQUIRED
          data-type           CDATA     REQUIRED
          is-abstract     (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;" >

## Member Function Documentation

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()). Reimplemented from NEDElement.

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()). Reimplemented from NEDElement.

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()). Reimplemented from NEDElement.

int FieldNode::getNumAttributes ( | ) const`[virtual]`

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

int FieldNode::getTagCode ( | ) const`[inline, virtual]`

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

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

| Overridden in subclasses to return the name of the XML element the class represents. Reimplemented from NEDElement.

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. Reimplemented from NEDElement.

The documentation for this class was generated from the following file:

- nedelements.h