nedyylib.h File Reference

#include <string>
#include "nedelements.h"
#include "nedyydefs.h"
#include "nedparser.h"

Go to the source code of this file.

Defines

#define NONREENTRANT_NED_PARSER(p)

Functions

std::string slashifyFilename (const char *fname)
const char * currentLocation ()
NEDElementcreateElementWithTag (int tagcode, NEDElement *parent=NULL)
NEDElementgetOrCreateElementWithTag (int tagcode, NEDElement *parent)
void storePos (NEDElement *node, YYLTYPE pos)
void storePos (NEDElement *node, YYLTYPE firstpos, YYLTYPE lastpos)
PropertyElementaddProperty (NEDElement *node, const char *name)
PropertyElementaddComponentProperty (NEDElement *node, const char *name)
PropertyElementstoreSourceCode (NEDElement *node, YYLTYPE tokenpos)
PropertyElementstoreComponentSourceCode (NEDElement *node, YYLTYPE tokenpos)
PropertyElementsetIsNetworkProperty (NEDElement *node)
void addComment (NEDElement *node, const char *locId, const char *comment, const char *defaultValue)
void storeFileComment (NEDElement *node)
void storeBannerComment (NEDElement *node, YYLTYPE tokenpos)
void storeRightComment (NEDElement *node, YYLTYPE tokenpos)
void storeTrailingComment (NEDElement *node, YYLTYPE tokenpos)
void storeBannerAndRightComments (NEDElement *node, YYLTYPE pos)
void storeBannerAndRightComments (NEDElement *node, YYLTYPE firstpos, YYLTYPE lastpos)
void storeInnerComments (NEDElement *node, YYLTYPE pos)
ParamElementaddParameter (NEDElement *params, YYLTYPE namepos)
ParamElementaddParameter (NEDElement *params, const char *name, YYLTYPE namepos)
GateElementaddGate (NEDElement *gates, YYLTYPE namepos)
YYLTYPE trimQuotes (YYLTYPE vectorpos)
YYLTYPE trimDoubleBraces (YYLTYPE vectorpos)
void swapAttributes (NEDElement *node, const char *attr1, const char *attr2)
void swapExpressionChildren (NEDElement *node, const char *attr1, const char *attr2)
void swapConnection (NEDElement *conn)
void transferChildren (NEDElement *from, NEDElement *to)
const char * toString (YYLTYPE)
const char * toString (long)
std::string removeSpaces (YYLTYPE pos)
ExpressionElementcreateExpression (NEDElement *expr)
OperatorElementcreateOperator (const char *op, NEDElement *operand1, NEDElement *operand2=NULL, NEDElement *operand3=NULL)
FunctionElementcreateFunction (const char *funcname, NEDElement *arg1=NULL, NEDElement *arg2=NULL, NEDElement *arg3=NULL, NEDElement *arg4=NULL, NEDElement *arg5=NULL, NEDElement *arg6=NULL, NEDElement *arg7=NULL, NEDElement *arg8=NULL, NEDElement *arg9=NULL, NEDElement *arg10=NULL)
IdentElementcreateIdent (YYLTYPE parampos)
IdentElementcreateIdent (YYLTYPE parampos, YYLTYPE modulepos, NEDElement *moduleindexoperand=NULL)
LiteralElementcreateLiteral (int type, YYLTYPE valuepos, YYLTYPE textpos)
LiteralElementcreateLiteral (int type, const char *value, const char *text)
LiteralElementcreateStringLiteral (YYLTYPE textpos)
LiteralElementcreateQuantityLiteral (YYLTYPE textpos)
NEDElementunaryMinus (NEDElement *node)
void addOptionalExpression (NEDElement *elem, const char *attrname, YYLTYPE exprpos, NEDElement *expr)
void addExpression (NEDElement *elem, const char *attrname, YYLTYPE exprpos, NEDElement *expr)
std::string convertBackgroundDisplayString (const char *old)
bool isEmpty (YYLTYPE pos)
YYLTYPE makeYYLTYPE (int fl, int fc, int ll, int lc)
YYLTYPE makeEmptyYYLTYPE ()


Define Documentation

#define NONREENTRANT_NED_PARSER (  ) 

Value:

struct Guard { \
      Guard(NEDParser *parser) {if (np) throw opp_runtime_error("non-reentrant parser invoked again while parsing"); np=parser;} \
      ~Guard() {np=NULL;} \
    } __guard(p);


Function Documentation

void addComment ( NEDElement node,
const char *  locId,
const char *  comment,
const char *  defaultValue 
)

PropertyElement* addComponentProperty ( NEDElement node,
const char *  name 
)

void addExpression ( NEDElement elem,
const char *  attrname,
YYLTYPE  exprpos,
NEDElement expr 
)

GateElement* addGate ( NEDElement gates,
YYLTYPE  namepos 
)

void addOptionalExpression ( NEDElement elem,
const char *  attrname,
YYLTYPE  exprpos,
NEDElement expr 
)

ParamElement* addParameter ( NEDElement params,
const char *  name,
YYLTYPE  namepos 
)

ParamElement* addParameter ( NEDElement params,
YYLTYPE  namepos 
)

PropertyElement* addProperty ( NEDElement node,
const char *  name 
)

std::string convertBackgroundDisplayString ( const char *  old  ) 

NEDElement* createElementWithTag ( int  tagcode,
NEDElement parent = NULL 
)

ExpressionElement* createExpression ( NEDElement expr  ) 

FunctionElement* createFunction ( const char *  funcname,
NEDElement arg1 = NULL,
NEDElement arg2 = NULL,
NEDElement arg3 = NULL,
NEDElement arg4 = NULL,
NEDElement arg5 = NULL,
NEDElement arg6 = NULL,
NEDElement arg7 = NULL,
NEDElement arg8 = NULL,
NEDElement arg9 = NULL,
NEDElement arg10 = NULL 
)

IdentElement* createIdent ( YYLTYPE  parampos,
YYLTYPE  modulepos,
NEDElement moduleindexoperand = NULL 
)

IdentElement* createIdent ( YYLTYPE  parampos  ) 

LiteralElement* createLiteral ( int  type,
const char *  value,
const char *  text 
)

LiteralElement* createLiteral ( int  type,
YYLTYPE  valuepos,
YYLTYPE  textpos 
)

OperatorElement* createOperator ( const char *  op,
NEDElement operand1,
NEDElement operand2 = NULL,
NEDElement operand3 = NULL 
)

LiteralElement* createQuantityLiteral ( YYLTYPE  textpos  ) 

LiteralElement* createStringLiteral ( YYLTYPE  textpos  ) 

const char* currentLocation (  ) 

NEDElement* getOrCreateElementWithTag ( int  tagcode,
NEDElement parent 
)

bool isEmpty ( YYLTYPE  pos  )  [inline]

YYLTYPE makeEmptyYYLTYPE (  )  [inline]

References makeYYLTYPE().

YYLTYPE makeYYLTYPE ( int  fl,
int  fc,
int  ll,
int  lc 
) [inline]

References pos, and YYLTYPE.

Referenced by makeEmptyYYLTYPE().

std::string removeSpaces ( YYLTYPE  pos  ) 

PropertyElement* setIsNetworkProperty ( NEDElement node  ) 

std::string slashifyFilename ( const char *  fname  ) 

void storeBannerAndRightComments ( NEDElement node,
YYLTYPE  firstpos,
YYLTYPE  lastpos 
)

void storeBannerAndRightComments ( NEDElement node,
YYLTYPE  pos 
)

void storeBannerComment ( NEDElement node,
YYLTYPE  tokenpos 
)

PropertyElement* storeComponentSourceCode ( NEDElement node,
YYLTYPE  tokenpos 
)

void storeFileComment ( NEDElement node  ) 

void storeInnerComments ( NEDElement node,
YYLTYPE  pos 
)

void storePos ( NEDElement node,
YYLTYPE  firstpos,
YYLTYPE  lastpos 
)

void storePos ( NEDElement node,
YYLTYPE  pos 
)

void storeRightComment ( NEDElement node,
YYLTYPE  tokenpos 
)

PropertyElement* storeSourceCode ( NEDElement node,
YYLTYPE  tokenpos 
)

void storeTrailingComment ( NEDElement node,
YYLTYPE  tokenpos 
)

void swapAttributes ( NEDElement node,
const char *  attr1,
const char *  attr2 
)

void swapConnection ( NEDElement conn  ) 

void swapExpressionChildren ( NEDElement node,
const char *  attr1,
const char *  attr2 
)

const char* toString ( long   ) 

const char* toString ( YYLTYPE   ) 

void transferChildren ( NEDElement from,
NEDElement to 
)

YYLTYPE trimDoubleBraces ( YYLTYPE  vectorpos  ) 

YYLTYPE trimQuotes ( YYLTYPE  vectorpos  ) 

NEDElement* unaryMinus ( NEDElement node  ) 


Generated on Wed Apr 3 14:40:29 2013 for OMNeT++ NEDXML by  doxygen 1.5.5