MsgFileElement Class Reference
[Data classes]

GENERATED CLASS. More...

#include <nedelements.h>

Inheritance diagram for MsgFileElement:
NEDElement

List of all members.

Public Member Functions

Constructors, destructor

 MsgFileElement ()
 MsgFileElement (NEDElement *parent)
virtual ~MsgFileElement ()
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 const char * getAttribute (const char *name) const
virtual void setAttribute (int k, const char *val)
virtual void setAttribute (const char *name, const char *val)
virtual const char * getAttributeDefault (int k) const
virtual MsgFileElementdup () const
Typed access to attributes, children and siblings

const char * getFilename () const
void setFilename (const char *val)
const char * getVersion () const
void setVersion (const char *val)
virtual MsgFileElementgetNextMsgFileSibling () const
virtual CommentElementgetFirstCommentChild () const
virtual NamespaceElementgetFirstNamespaceChild () const
virtual PropertyDeclElementgetFirstPropertyDeclChild () const
virtual PropertyElementgetFirstPropertyChild () const
virtual CplusplusElementgetFirstCplusplusChild () const
virtual StructDeclElementgetFirstStructDeclChild () const
virtual ClassDeclElementgetFirstClassDeclChild () const
virtual MessageDeclElementgetFirstMessageDeclChild () const
virtual PacketDeclElementgetFirstPacketDeclChild () const
virtual EnumDeclElementgetFirstEnumDeclChild () const
virtual StructElementgetFirstStructChild () const
virtual ClassElementgetFirstClassChild () const
virtual MessageElementgetFirstMessageChild () const
virtual PacketElementgetFirstPacketChild () const
virtual EnumElementgetFirstEnumChild () const

Detailed Description

GENERATED CLASS.

Represents the <msg-file> XML element in memory. DTD declaration:

 <!ELEMENT msg-file (comment*, (namespace|property-decl|property|cplusplus|
                     struct-decl|class-decl|message-decl|packet-decl|enum-decl|
                     struct|class|message|packet|enum)*)>
 <!ATTLIST msg-file
      filename            CDATA     #IMPLIED
      version             CDATA     "2">
 

Constructor & Destructor Documentation

MsgFileElement::MsgFileElement (  ) 
MsgFileElement::MsgFileElement ( NEDElement parent  ) 
virtual MsgFileElement::~MsgFileElement (  )  [inline, virtual]

Member Function Documentation

virtual MsgFileElement* MsgFileElement::dup (  )  const [virtual]

Creates and returns a duplicate of the element.

Child elements are not copied.

Implements NEDElement.

virtual const char* MsgFileElement::getAttribute ( const char *  attr  )  const [inline, virtual]

Returns the value of the attribute with the given name.

Relies on lookupAttribute() and getAttribute().

It returns NULL if the given attribute is not found.

Reimplemented from NEDElement.

References NEDElement::getAttribute().

virtual const char* MsgFileElement::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* MsgFileElement::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()), or if the attribute is #REQUIRED; and return "" if the attribute is #IMPLIED.

Implements NEDElement.

virtual const char* MsgFileElement::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* MsgFileElement::getFilename (  )  const [inline]
virtual ClassElement* MsgFileElement::getFirstClassChild (  )  const [virtual]
virtual ClassDeclElement* MsgFileElement::getFirstClassDeclChild (  )  const [virtual]
virtual CommentElement* MsgFileElement::getFirstCommentChild (  )  const [virtual]
virtual CplusplusElement* MsgFileElement::getFirstCplusplusChild (  )  const [virtual]
virtual EnumElement* MsgFileElement::getFirstEnumChild (  )  const [virtual]
virtual EnumDeclElement* MsgFileElement::getFirstEnumDeclChild (  )  const [virtual]
virtual MessageElement* MsgFileElement::getFirstMessageChild (  )  const [virtual]
virtual MessageDeclElement* MsgFileElement::getFirstMessageDeclChild (  )  const [virtual]
virtual NamespaceElement* MsgFileElement::getFirstNamespaceChild (  )  const [virtual]
virtual PacketElement* MsgFileElement::getFirstPacketChild (  )  const [virtual]
virtual PacketDeclElement* MsgFileElement::getFirstPacketDeclChild (  )  const [virtual]
virtual PropertyElement* MsgFileElement::getFirstPropertyChild (  )  const [virtual]
virtual PropertyDeclElement* MsgFileElement::getFirstPropertyDeclChild (  )  const [virtual]
virtual StructElement* MsgFileElement::getFirstStructChild (  )  const [virtual]
virtual StructDeclElement* MsgFileElement::getFirstStructDeclChild (  )  const [virtual]
virtual MsgFileElement* MsgFileElement::getNextMsgFileSibling (  )  const [virtual]
virtual int MsgFileElement::getNumAttributes (  )  const [virtual]

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

Implements NEDElement.

virtual int MsgFileElement::getTagCode (  )  const [inline, virtual]

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

Implements NEDElement.

References NED_MSG_FILE.

virtual const char* MsgFileElement::getTagName (  )  const [inline, virtual]

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

Implements NEDElement.

const char* MsgFileElement::getVersion (  )  const [inline]
virtual void MsgFileElement::setAttribute ( const char *  attr,
const char *  value 
) [inline, virtual]

Sets the value of the attribute with the given name.

Relies on lookupAttribute() and setAttribute().

If the given attribute is not found, the call has no effect.

Reimplemented from NEDElement.

References NEDElement::setAttribute().

virtual void MsgFileElement::setAttribute ( int  k,
const char *  value 
) [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 MsgFileElement::setFilename ( const char *  val  )  [inline]
void MsgFileElement::setVersion ( const char *  val  )  [inline]

The documentation for this class was generated from the following file:
Generated on Tue Dec 2 11:16:31 2014 for OMNeT++ NEDXML by  doxygen 1.6.3