OMNeT++ NEDXML 6.1
Discrete Event Simulation Library
yyutil.h File Reference
Include dependency graph for yyutil.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 omnetpp
 
 omnetpp::nedxml
 

Macros

#define DETECT_PARSER_REENTRY()
 

Functions

std::string slashifyFilename (const char *fname)
 
ASTNode * createElementWithTag (ParseContext *np, ASTNodeFactory *factory, int tagcode, ASTNode *parent=nullptr)
 
ASTNode * getOrCreateElementWithTag (ParseContext *np, ASTNodeFactory *factory, int tagcode, ASTNode *parent)
 
void storePos (ParseContext *np, ASTNode *node, YYLoc pos)
 
void storePos (ParseContext *np, ASTNode *node, YYLoc firstpos, YYLoc lastpos)
 
void swapAttributes (ASTNode *node, const char *attr1, const char *attr2)
 
void transferChildren (ASTNode *from, ASTNode *to)
 
YYLoc trimQuotes (YYLoc vectorpos)
 
YYLoc trimDoubleBraces (YYLoc vectorpos)
 
const char * toString (ParseContext *np, YYLoc)
 
const char * toString (long)
 
std::string removeSpaces (ParseContext *np, YYLoc pos)
 
bool isEmpty (YYLoc pos)
 
YYLoc makeYYLoc (int fl, int fc, int ll, int lc)
 
YYLoc makeEmptyYYLoc ()
 

Variables

bool parseInProgress
 

Macro Definition Documentation

◆ DETECT_PARSER_REENTRY

#define DETECT_PARSER_REENTRY ( )
Value:
struct Guard { \
Guard() {if (parseInProgress) throw opp_runtime_error("non-reentrant parser invoked again while parsing"); parseInProgress = true;} \
~Guard() {parseInProgress = false;} \
} __guard;
omnetpp::nedxml::parseInProgress
bool parseInProgress