OMNeT++ NEDXML  6.0.3
omnetpp::nedxml::nedyyutil Namespace Reference

Functions

ASTNodecreateNedElementWithTag (ParseContext *np, int tagcode, ASTNode *parent=nullptr)
 
ASTNodegetOrCreateNedElementWithTag (ParseContext *np, int tagcode, ASTNode *parent)
 
PropertyElement * addProperty (ParseContext *np, ASTNode *node, const char *name)
 
PropertyElement * addComponentProperty (ParseContext *np, ASTNode *node, const char *name)
 
PropertyElement * storeSourceCode (ParseContext *np, ASTNode *node, YYLoc tokenpos)
 
PropertyElement * storeComponentSourceCode (ParseContext *np, ASTNode *node, YYLoc tokenpos)
 
PropertyElement * setIsNetworkProperty (ParseContext *np, ASTNode *node)
 
void addComment (ParseContext *np, ASTNode *node, const char *locId, const char *comment, const char *defaultValue)
 
void storeFileComment (ParseContext *np, ASTNode *node)
 
void storeBannerComment (ParseContext *np, ASTNode *node, YYLoc tokenpos)
 
void storeRightComment (ParseContext *np, ASTNode *node, YYLoc tokenpos)
 
void storeTrailingComment (ParseContext *np, ASTNode *node, YYLoc tokenpos)
 
void storeBannerAndRightComments (ParseContext *np, ASTNode *node, YYLoc pos)
 
void storeBannerAndRightComments (ParseContext *np, ASTNode *node, YYLoc firstpos, YYLoc lastpos)
 
void storeInnerComments (ParseContext *np, ASTNode *node, YYLoc pos)
 
ParamElement * addParameter (ParseContext *np, ASTNode *params, YYLoc namepos)
 
ParamElement * addParameter (ParseContext *np, ASTNode *params, const char *name, YYLoc namepos)
 
GateElement * addGate (ParseContext *np, ASTNode *gates, YYLoc namepos)
 
void swapConnection (ASTNode *conn)
 
LiteralElement * createPropertyValue (ParseContext *np, YYLoc textpos)
 
LiteralElement * createLiteral (ParseContext *np, int type, YYLoc valuepos, YYLoc textpos)
 
LiteralElement * createLiteral (ParseContext *np, int type, const char *value, const char *text)
 
LiteralElement * createStringLiteral (ParseContext *np, YYLoc textpos)
 
LiteralElement * createQuantityLiteral (ParseContext *np, YYLoc textpos)
 
ASTNodeprependMinusSign (ParseContext *np, ASTNode *node)
 
void addOptionalExpression (ParseContext *np, ASTNode *elem, const char *attrname, YYLoc exprpos, ASTNode *expr)
 
void addExpression (ParseContext *np, ASTNode *elem, const char *attrname, YYLoc exprpos, ASTNode *expr)
 

Function Documentation

◆ createNedElementWithTag()

ASTNode* omnetpp::nedxml::nedyyutil::createNedElementWithTag ( ParseContext np,
int  tagcode,
ASTNode parent = nullptr 
)

◆ getOrCreateNedElementWithTag()

ASTNode* omnetpp::nedxml::nedyyutil::getOrCreateNedElementWithTag ( ParseContext np,
int  tagcode,
ASTNode parent 
)

◆ addProperty()

PropertyElement* omnetpp::nedxml::nedyyutil::addProperty ( ParseContext np,
ASTNode node,
const char *  name 
)

◆ addComponentProperty()

PropertyElement* omnetpp::nedxml::nedyyutil::addComponentProperty ( ParseContext np,
ASTNode node,
const char *  name 
)

◆ storeSourceCode()

PropertyElement* omnetpp::nedxml::nedyyutil::storeSourceCode ( ParseContext np,
ASTNode node,
YYLoc  tokenpos 
)

◆ storeComponentSourceCode()

PropertyElement* omnetpp::nedxml::nedyyutil::storeComponentSourceCode ( ParseContext np,
ASTNode node,
YYLoc  tokenpos 
)

◆ setIsNetworkProperty()

PropertyElement* omnetpp::nedxml::nedyyutil::setIsNetworkProperty ( ParseContext np,
ASTNode node 
)

◆ addComment()

void omnetpp::nedxml::nedyyutil::addComment ( ParseContext np,
ASTNode node,
const char *  locId,
const char *  comment,
const char *  defaultValue 
)

◆ storeFileComment()

void omnetpp::nedxml::nedyyutil::storeFileComment ( ParseContext np,
ASTNode node 
)

◆ storeBannerComment()

void omnetpp::nedxml::nedyyutil::storeBannerComment ( ParseContext np,
ASTNode node,
YYLoc  tokenpos 
)

◆ storeRightComment()

void omnetpp::nedxml::nedyyutil::storeRightComment ( ParseContext np,
ASTNode node,
YYLoc  tokenpos 
)

◆ storeTrailingComment()

void omnetpp::nedxml::nedyyutil::storeTrailingComment ( ParseContext np,
ASTNode node,
YYLoc  tokenpos 
)

◆ storeBannerAndRightComments() [1/2]

void omnetpp::nedxml::nedyyutil::storeBannerAndRightComments ( ParseContext np,
ASTNode node,
YYLoc  pos 
)

◆ storeBannerAndRightComments() [2/2]

void omnetpp::nedxml::nedyyutil::storeBannerAndRightComments ( ParseContext np,
ASTNode node,
YYLoc  firstpos,
YYLoc  lastpos 
)

◆ storeInnerComments()

void omnetpp::nedxml::nedyyutil::storeInnerComments ( ParseContext np,
ASTNode node,
YYLoc  pos 
)

◆ addParameter() [1/2]

ParamElement* omnetpp::nedxml::nedyyutil::addParameter ( ParseContext np,
ASTNode params,
YYLoc  namepos 
)

◆ addParameter() [2/2]

ParamElement* omnetpp::nedxml::nedyyutil::addParameter ( ParseContext np,
ASTNode params,
const char *  name,
YYLoc  namepos 
)

◆ addGate()

GateElement* omnetpp::nedxml::nedyyutil::addGate ( ParseContext np,
ASTNode gates,
YYLoc  namepos 
)

◆ swapConnection()

void omnetpp::nedxml::nedyyutil::swapConnection ( ASTNode conn)

◆ createPropertyValue()

LiteralElement* omnetpp::nedxml::nedyyutil::createPropertyValue ( ParseContext np,
YYLoc  textpos 
)

◆ createLiteral() [1/2]

LiteralElement* omnetpp::nedxml::nedyyutil::createLiteral ( ParseContext np,
int  type,
YYLoc  valuepos,
YYLoc  textpos 
)

◆ createLiteral() [2/2]

LiteralElement* omnetpp::nedxml::nedyyutil::createLiteral ( ParseContext np,
int  type,
const char *  value,
const char *  text 
)

◆ createStringLiteral()

LiteralElement* omnetpp::nedxml::nedyyutil::createStringLiteral ( ParseContext np,
YYLoc  textpos 
)

◆ createQuantityLiteral()

LiteralElement* omnetpp::nedxml::nedyyutil::createQuantityLiteral ( ParseContext np,
YYLoc  textpos 
)

◆ prependMinusSign()

ASTNode* omnetpp::nedxml::nedyyutil::prependMinusSign ( ParseContext np,
ASTNode node 
)

◆ addOptionalExpression()

void omnetpp::nedxml::nedyyutil::addOptionalExpression ( ParseContext np,
ASTNode elem,
const char *  attrname,
YYLoc  exprpos,
ASTNode expr 
)

◆ addExpression()

void omnetpp::nedxml::nedyyutil::addExpression ( ParseContext np,
ASTNode elem,
const char *  attrname,
YYLoc  exprpos,
ASTNode expr 
)