#include <nedutil.h>
Static Public Member Functions | |
Utilities for accessing properties | |
static const char * | getLocalStringProperty (NEDElement *parent, const char *name) |
static bool | getLocalBoolProperty (NEDElement *parent, const char *name) |
static PropertyElement * | getLocalProperty (NEDElement *parent, const char *name) |
static LiteralElement * | getTheOnlyValueFrom (PropertyElement *property) |
static bool | propertyAsBool (PropertyElement *property) |
static const char * | propertyAsString (PropertyElement *property) |
Comparison | |
static int | compare (NEDElement *node1, NEDElement *node2) |
static int | compareTree (NEDElement *node1, NEDElement *node2) |
Misc | |
static bool | isNEDType (NEDElement *node) |
static int NEDElementUtil::compare | ( | NEDElement * | node1, | |
NEDElement * | node2 | |||
) | [static] |
Compares tagname and declared attrs (ignores id, srcloc, srcregion, etc).
static int NEDElementUtil::compareTree | ( | NEDElement * | node1, | |
NEDElement * | node2 | |||
) | [static] |
Recursive version of compare().
static bool NEDElementUtil::getLocalBoolProperty | ( | NEDElement * | parent, | |
const char * | name | |||
) | [static] |
static PropertyElement* NEDElementUtil::getLocalProperty | ( | NEDElement * | parent, | |
const char * | name | |||
) | [static] |
static const char* NEDElementUtil::getLocalStringProperty | ( | NEDElement * | parent, | |
const char * | name | |||
) | [static] |
static LiteralElement* NEDElementUtil::getTheOnlyValueFrom | ( | PropertyElement * | property | ) | [static] |
static bool NEDElementUtil::isNEDType | ( | NEDElement * | node | ) | [static] |
static bool NEDElementUtil::propertyAsBool | ( | PropertyElement * | property | ) | [static] |
static const char* NEDElementUtil::propertyAsString | ( | PropertyElement * | property | ) | [static] |