ConnectionElement Class Reference
[Data classes]

GENERATED CLASS. More...

#include <nedelements.h>

Inheritance diagram for ConnectionElement:
NEDElement

List of all members.

Public Member Functions

Constructors, destructor

 ConnectionElement ()
 ConnectionElement (NEDElement *parent)
virtual ~ConnectionElement ()
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 ConnectionElementdup () const
Typed access to attributes, children and siblings

const char * getSrcModule () const
void setSrcModule (const char *val)
const char * getSrcModuleIndex () const
void setSrcModuleIndex (const char *val)
const char * getSrcGate () const
void setSrcGate (const char *val)
bool getSrcGatePlusplus () const
void setSrcGatePlusplus (bool val)
const char * getSrcGateIndex () const
void setSrcGateIndex (const char *val)
int getSrcGateSubg () const
void setSrcGateSubg (int val)
const char * getDestModule () const
void setDestModule (const char *val)
const char * getDestModuleIndex () const
void setDestModuleIndex (const char *val)
const char * getDestGate () const
void setDestGate (const char *val)
bool getDestGatePlusplus () const
void setDestGatePlusplus (bool val)
const char * getDestGateIndex () const
void setDestGateIndex (const char *val)
int getDestGateSubg () const
void setDestGateSubg (int val)
const char * getName () const
void setName (const char *val)
const char * getType () const
void setType (const char *val)
const char * getLikeType () const
void setLikeType (const char *val)
const char * getLikeExpr () const
void setLikeExpr (const char *val)
bool getIsDefault () const
void setIsDefault (bool val)
bool getIsBidirectional () const
void setIsBidirectional (bool val)
bool getIsForwardArrow () const
void setIsForwardArrow (bool val)
virtual ConnectionElementgetNextConnectionSibling () const
virtual CommentElementgetFirstCommentChild () const
virtual ExpressionElementgetFirstExpressionChild () const
virtual ParametersElementgetFirstParametersChild () const
virtual LoopElementgetFirstLoopChild () const
virtual ConditionElementgetFirstConditionChild () const

Detailed Description

GENERATED CLASS.

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

 <!ELEMENT connection (comment*, expression*, parameters?, (loop|condition)*)>
 <!ATTLIST connection
      src-module          NMTOKEN   #IMPLIED
      src-module-index    CDATA     #IMPLIED
      src-gate            NMTOKEN   #REQUIRED
      src-gate-plusplus  (true|false) "false"
      src-gate-index      CDATA     #IMPLIED
      src-gate-subg       (i|o)     #IMPLIED
      dest-module         NMTOKEN   #IMPLIED
      dest-module-index   CDATA     #IMPLIED
      dest-gate           NMTOKEN   #REQUIRED
      dest-gate-plusplus (true|false) "false"
      dest-gate-index     CDATA     #IMPLIED
      dest-gate-subg      (i|o)     #IMPLIED
      name                NMTOKEN   #IMPLIED
      type                CDATA     #IMPLIED
      like-type           CDATA     #IMPLIED
      like-expr           CDATA     #IMPLIED
      is-default         (true|false) "false"
      is-bidirectional   (true|false) "false"
      is-forward-arrow   (true|false) "true">
 

Constructor & Destructor Documentation

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

Member Function Documentation

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

Creates and returns a duplicate of the element.

Child elements are not copied.

Implements NEDElement.

virtual const char* ConnectionElement::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* ConnectionElement::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* ConnectionElement::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* ConnectionElement::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* ConnectionElement::getDestGate (  )  const [inline]
const char* ConnectionElement::getDestGateIndex (  )  const [inline]
bool ConnectionElement::getDestGatePlusplus (  )  const [inline]
int ConnectionElement::getDestGateSubg (  )  const [inline]
const char* ConnectionElement::getDestModule (  )  const [inline]
const char* ConnectionElement::getDestModuleIndex (  )  const [inline]
virtual CommentElement* ConnectionElement::getFirstCommentChild (  )  const [virtual]
virtual ConditionElement* ConnectionElement::getFirstConditionChild (  )  const [virtual]
virtual ExpressionElement* ConnectionElement::getFirstExpressionChild (  )  const [virtual]
virtual LoopElement* ConnectionElement::getFirstLoopChild (  )  const [virtual]
virtual ParametersElement* ConnectionElement::getFirstParametersChild (  )  const [virtual]
bool ConnectionElement::getIsBidirectional (  )  const [inline]
bool ConnectionElement::getIsDefault (  )  const [inline]
bool ConnectionElement::getIsForwardArrow (  )  const [inline]
const char* ConnectionElement::getLikeExpr (  )  const [inline]
const char* ConnectionElement::getLikeType (  )  const [inline]
const char* ConnectionElement::getName (  )  const [inline]
virtual ConnectionElement* ConnectionElement::getNextConnectionSibling (  )  const [virtual]
virtual int ConnectionElement::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* ConnectionElement::getSrcGate (  )  const [inline]
const char* ConnectionElement::getSrcGateIndex (  )  const [inline]
bool ConnectionElement::getSrcGatePlusplus (  )  const [inline]
int ConnectionElement::getSrcGateSubg (  )  const [inline]
const char* ConnectionElement::getSrcModule (  )  const [inline]
const char* ConnectionElement::getSrcModuleIndex (  )  const [inline]
virtual int ConnectionElement::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_CONNECTION.

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

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

Implements NEDElement.

const char* ConnectionElement::getType (  )  const [inline]
virtual void ConnectionElement::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 ConnectionElement::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 ConnectionElement::setDestGate ( const char *  val  )  [inline]
void ConnectionElement::setDestGateIndex ( const char *  val  )  [inline]
void ConnectionElement::setDestGatePlusplus ( bool  val  )  [inline]
void ConnectionElement::setDestGateSubg ( int  val  ) 
void ConnectionElement::setDestModule ( const char *  val  )  [inline]
void ConnectionElement::setDestModuleIndex ( const char *  val  )  [inline]
void ConnectionElement::setIsBidirectional ( bool  val  )  [inline]
void ConnectionElement::setIsDefault ( bool  val  )  [inline]
void ConnectionElement::setIsForwardArrow ( bool  val  )  [inline]
void ConnectionElement::setLikeExpr ( const char *  val  )  [inline]
void ConnectionElement::setLikeType ( const char *  val  )  [inline]
void ConnectionElement::setName ( const char *  val  )  [inline]
void ConnectionElement::setSrcGate ( const char *  val  )  [inline]
void ConnectionElement::setSrcGateIndex ( const char *  val  )  [inline]
void ConnectionElement::setSrcGatePlusplus ( bool  val  )  [inline]
void ConnectionElement::setSrcGateSubg ( int  val  ) 
void ConnectionElement::setSrcModule ( const char *  val  )  [inline]
void ConnectionElement::setSrcModuleIndex ( const char *  val  )  [inline]
void ConnectionElement::setType ( 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