ConnectionElement Class Reference
[Data classes]
GENERATED CLASS.
More...
#include <nedelements.h>
List of all members.
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
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] |
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] |
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: