OMNeT++ NEDXML  5.4.1
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 swapExpressionChildren (ASTNode *node, const char *attr1, const char *attr2)
 
void swapConnection (ASTNode *conn)
 
ExpressionElement * createExpression (ParseContext *np, ASTNode *expr)
 
OperatorElement * createOperator (ParseContext *np, const char *op, ASTNode *operand1, ASTNode *operand2=nullptr, ASTNode *operand3=nullptr)
 
FunctionElement * createFunction (ParseContext *np, const char *funcname, ASTNode *arg1=nullptr, ASTNode *arg2=nullptr, ASTNode *arg3=nullptr, ASTNode *arg4=nullptr, ASTNode *arg5=nullptr, ASTNode *arg6=nullptr, ASTNode *arg7=nullptr, ASTNode *arg8=nullptr, ASTNode *arg9=nullptr, ASTNode *arg10=nullptr)
 
IdentElement * createIdent (ParseContext *np, YYLoc parampos)
 
IdentElement * createIdent (ParseContext *np, YYLoc parampos, YYLoc modulepos, ASTNode *moduleindexoperand=nullptr)
 
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

ASTNode* omnetpp::nedxml::nedyyutil::createNedElementWithTag ( ParseContext np,
int  tagcode,
ASTNode parent = nullptr 
)
ASTNode* omnetpp::nedxml::nedyyutil::getOrCreateNedElementWithTag ( ParseContext np,
int  tagcode,
ASTNode parent 
)
PropertyElement* omnetpp::nedxml::nedyyutil::addProperty ( ParseContext np,
ASTNode node,
const char *  name 
)
PropertyElement* omnetpp::nedxml::nedyyutil::addComponentProperty ( ParseContext np,
ASTNode node,
const char *  name 
)
PropertyElement* omnetpp::nedxml::nedyyutil::storeSourceCode ( ParseContext np,
ASTNode node,
YYLoc  tokenpos 
)
PropertyElement* omnetpp::nedxml::nedyyutil::storeComponentSourceCode ( ParseContext np,
ASTNode node,
YYLoc  tokenpos 
)
PropertyElement* omnetpp::nedxml::nedyyutil::setIsNetworkProperty ( ParseContext np,
ASTNode node 
)
void omnetpp::nedxml::nedyyutil::addComment ( ParseContext np,
ASTNode node,
const char *  locId,
const char *  comment,
const char *  defaultValue 
)
void omnetpp::nedxml::nedyyutil::storeFileComment ( ParseContext np,
ASTNode node 
)
void omnetpp::nedxml::nedyyutil::storeBannerComment ( ParseContext np,
ASTNode node,
YYLoc  tokenpos 
)
void omnetpp::nedxml::nedyyutil::storeRightComment ( ParseContext np,
ASTNode node,
YYLoc  tokenpos 
)
void omnetpp::nedxml::nedyyutil::storeTrailingComment ( ParseContext np,
ASTNode node,
YYLoc  tokenpos 
)
void omnetpp::nedxml::nedyyutil::storeBannerAndRightComments ( ParseContext np,
ASTNode node,
YYLoc  pos 
)
void omnetpp::nedxml::nedyyutil::storeBannerAndRightComments ( ParseContext np,
ASTNode node,
YYLoc  firstpos,
YYLoc  lastpos 
)
void omnetpp::nedxml::nedyyutil::storeInnerComments ( ParseContext np,
ASTNode node,
YYLoc  pos 
)
ParamElement* omnetpp::nedxml::nedyyutil::addParameter ( ParseContext np,
ASTNode params,
YYLoc  namepos 
)
ParamElement* omnetpp::nedxml::nedyyutil::addParameter ( ParseContext np,
ASTNode params,
const char *  name,
YYLoc  namepos 
)
GateElement* omnetpp::nedxml::nedyyutil::addGate ( ParseContext np,
ASTNode gates,
YYLoc  namepos 
)
void omnetpp::nedxml::nedyyutil::swapExpressionChildren ( ASTNode node,
const char *  attr1,
const char *  attr2 
)
void omnetpp::nedxml::nedyyutil::swapConnection ( ASTNode conn)
ExpressionElement* omnetpp::nedxml::nedyyutil::createExpression ( ParseContext np,
ASTNode expr 
)
OperatorElement* omnetpp::nedxml::nedyyutil::createOperator ( ParseContext np,
const char *  op,
ASTNode operand1,
ASTNode operand2 = nullptr,
ASTNode operand3 = nullptr 
)
FunctionElement* omnetpp::nedxml::nedyyutil::createFunction ( ParseContext np,
const char *  funcname,
ASTNode arg1 = nullptr,
ASTNode arg2 = nullptr,
ASTNode arg3 = nullptr,
ASTNode arg4 = nullptr,
ASTNode arg5 = nullptr,
ASTNode arg6 = nullptr,
ASTNode arg7 = nullptr,
ASTNode arg8 = nullptr,
ASTNode arg9 = nullptr,
ASTNode arg10 = nullptr 
)
IdentElement* omnetpp::nedxml::nedyyutil::createIdent ( ParseContext np,
YYLoc  parampos 
)
IdentElement* omnetpp::nedxml::nedyyutil::createIdent ( ParseContext np,
YYLoc  parampos,
YYLoc  modulepos,
ASTNode moduleindexoperand = nullptr 
)
LiteralElement* omnetpp::nedxml::nedyyutil::createPropertyValue ( ParseContext np,
YYLoc  textpos 
)
LiteralElement* omnetpp::nedxml::nedyyutil::createLiteral ( ParseContext np,
int  type,
YYLoc  valuepos,
YYLoc  textpos 
)
LiteralElement* omnetpp::nedxml::nedyyutil::createLiteral ( ParseContext np,
int  type,
const char *  value,
const char *  text 
)
LiteralElement* omnetpp::nedxml::nedyyutil::createStringLiteral ( ParseContext np,
YYLoc  textpos 
)
LiteralElement* omnetpp::nedxml::nedyyutil::createQuantityLiteral ( ParseContext np,
YYLoc  textpos 
)
ASTNode* omnetpp::nedxml::nedyyutil::prependMinusSign ( ParseContext np,
ASTNode node 
)
void omnetpp::nedxml::nedyyutil::addOptionalExpression ( ParseContext np,
ASTNode elem,
const char *  attrname,
YYLoc  exprpos,
ASTNode expr 
)
void omnetpp::nedxml::nedyyutil::addExpression ( ParseContext np,
ASTNode elem,
const char *  attrname,
YYLoc  exprpos,
ASTNode expr 
)