#include <libCMMLParse/CMMLParser.h>
#include <libCMMLParse/xtag.h>
#include <libCMMLTags/libCMMLTags.h>
#include <libilliCore/StringHelper.h>
#include <fstream>
Include dependency graph for CMMLParser.cpp:
Go to the source code of this file.
Defines | |
#define | XTAG_PARSE_INTO(tagParser, parseMethod, TagType, parentTagSetter, parentTag) |
#define | XTAG_SET_ATTRIBUTE(tagParser, attributeName, tag, attributeSetter) |
#define | XTAG_REQUIRED_ATTRIBUTE(tagParser, attributeName, tag) |
#define | XTAG_PARSE_CHILD(parentParser, tagName, tagParser, tagType, setterMethod, parentTag) |
#define | XTAG_EXACTLY_ONE_CHILD(parentParser, tagName) |
#define | XTAG_PARSE_LIST(TagType, listTagName, tagParser, parentParser, parentTag, parentGetListMethod) |
#define | XTAG_SET_CDATA(tagParser, tag) |
|
Value: { \ XTag *locParser = xtag_first_child(parentParser, tagName); \ if (locParser != NULL) { \ /* Found at least one child */ \ locParser = xtag_next_child(parentParser, tagName); \ if (locParser) { \ /* Danger will robinson, found more than one child */ \ return false; \ } \ } else { \ /* Found no child */ \ return false; \ } \ }; Definition at line 266 of file CMMLParser.cpp. Referenced by CMMLParser::parseHeadTag(), and CMMLParser::parseRootTag(). |
|
Value: { \ XTag *locParser = NULL; \ locParser = xtag_first_child(parentParser, tagName); \ if (locParser) { \ XTAG_PARSE_INTO(locParser, tagParser, tagType, setterMethod, parentTag); \ } \ }; Definition at line 257 of file CMMLParser.cpp. Referenced by CMMLParser::parseClipTag(), CMMLParser::parseHeadTag(), and CMMLParser::parseRootTag(). |
|
Value: { \ TagType *locTag = new TagType; \ if (!parseMethod(tagParser, locTag)) { \ return false; \ } \ parentTag->parentTagSetter(locTag); \ }; Definition at line 229 of file CMMLParser.cpp. |
|
Value: { \ XTag *locTagListParser = NULL; \ for ( locTagListParser = xtag_first_child(parentParser, listTagName); \ locTagListParser != NULL; \ locTagListParser = xtag_next_child(parentParser, listTagName)) { \ XTAG_PARSE_INTO(locTagListParser, tagParser, TagType, addTag, parentTag->parentGetListMethod()); \ } \ }; Definition at line 282 of file CMMLParser.cpp. Referenced by CMMLParser::parseClipTag(), CMMLParser::parseHeadTag(), CMMLParser::parseImportTag(), CMMLParser::parseRootTag(), and CMMLParser::parseStreamTag(). |
|
Value: { \ const char *locAttributeCString = xtag_get_attribute(tagParser, attributeName); \ if (!locAttributeCString) { \ return false; \ } else { \ /* free((void *) locAttributeCString); */ \ } \ }; Definition at line 247 of file CMMLParser.cpp. Referenced by CMMLParser::parseAnchorTag(), CMMLParser::parseBaseTag(), CMMLParser::parseClipTag(), CMMLParser::parseImageTag(), and CMMLParser::parseParamTag(). |
|
Value: { \ const char *locAttributeCString = xtag_get_attribute(tagParser, attributeName); \ if (locAttributeCString) { \ tag->attributeSetter(StringHelper::toWStr(locAttributeCString)); \ /* free((void *) locAttributeCString); */ \ } \ }; Definition at line 238 of file CMMLParser.cpp. Referenced by CMMLParser::parseAnchorTag(), CMMLParser::parseBaseTag(), CMMLParser::parseClipTag(), CMMLParser::parseDescTag(), CMMLParser::parseHeadTag(), CMMLParser::parseImageTag(), CMMLParser::parseImportTag(), CMMLParser::parseMetaTag(), CMMLParser::parseParamTag(), CMMLParser::parseRootTag(), CMMLParser::parseStreamTag(), and CMMLParser::parseTitleTag(). |
|
Value: { \ const char *locCData = xtag_get_pcdata(tagParser); \ if (locCData) { \ tag->setText(StringHelper::toWStr(locCData)); \ /* free((void *) locCData); */ \ } \ }; Definition at line 292 of file CMMLParser.cpp. Referenced by CMMLParser::parseAnchorTag(), CMMLParser::parseDescTag(), and CMMLParser::parseTitleTag(). |