OMNeT++ NEDXML  6.0.3
ASTNodeUtil Class Reference

#include <nedutil.h>

Description

Various utilities for the ASTNode tree.

Static Public Member Functions

Utilities for accessing properties
static const char * getLocalStringProperty (ASTNode *parent, const char *name)
 
static bool getLocalBoolProperty (ASTNode *parent, const char *name)
 
static PropertyElement * getLocalProperty (ASTNode *parent, const char *name)
 
static LiteralElement * getTheOnlyValueFrom (PropertyElement *property)
 
static bool propertyAsBool (PropertyElement *property)
 
static const char * propertyAsString (PropertyElement *property)
 
Comparison
static int compare (ASTNode *node1, ASTNode *node2)
 
static int compareTree (ASTNode *node1, ASTNode *node2)
 

Member Function Documentation

◆ getLocalStringProperty()

static const char* getLocalStringProperty ( ASTNode parent,
const char *  name 
)
static

◆ getLocalBoolProperty()

static bool getLocalBoolProperty ( ASTNode parent,
const char *  name 
)
static

◆ getLocalProperty()

static PropertyElement* getLocalProperty ( ASTNode parent,
const char *  name 
)
static

◆ getTheOnlyValueFrom()

static LiteralElement* getTheOnlyValueFrom ( PropertyElement *  property)
static

◆ propertyAsBool()

static bool propertyAsBool ( PropertyElement *  property)
static

◆ propertyAsString()

static const char* propertyAsString ( PropertyElement *  property)
static

◆ compare()

static int compare ( ASTNode node1,
ASTNode node2 
)
static

Compares tagname and declared attrs (ignores id, srcloc, srcregion, etc)

◆ compareTree()

static int compareTree ( ASTNode node1,
ASTNode node2 
)
static

Recursive version of compare()


The documentation for this class was generated from the following file: