diff options
author | deva <deva> | 2011-07-01 11:54:26 +0000 |
---|---|---|
committer | deva <deva> | 2011-07-01 11:54:26 +0000 |
commit | 23f39df8b8edeacfa5821050abbdc855acb2edd6 (patch) | |
tree | e56f7826c361a85a3bac9e0b3206086c81114748 /server/src/saxparser.cc | |
parent | 2c53b5ef16626112dfc738420eec3e1963b1a343 (diff) |
removed macrotool.
add lua wrapper for praxisd.
new type attributes_t for sax parser and children.
make macros/templates use real vars instead of var map.
add data ttl on macro level.
add 'important' attribute to macrotags in templates.
Diffstat (limited to 'server/src/saxparser.cc')
-rw-r--r-- | server/src/saxparser.cc | 22 |
1 files changed, 20 insertions, 2 deletions
diff --git a/server/src/saxparser.cc b/server/src/saxparser.cc index 72f0fe4..597b853 100644 --- a/server/src/saxparser.cc +++ b/server/src/saxparser.cc @@ -155,8 +155,10 @@ bool SAXParser::parse(const char *data, size_t size) } } - if(done) DEBUG(sax, "Got END_OF_DOCUMENT [%s] at %ld\n", - outertag.c_str(), XML_GetCurrentByteIndex(p)); + if(done) { + DEBUG(sax, "Got END_OF_DOCUMENT [%s] at %ld\n", + outertag.c_str(), XML_GetCurrentByteIndex(p)); + } return done; } @@ -176,6 +178,22 @@ unsigned int SAXParser::usedBytes() return bufferbytes + (XML_GetCurrentByteIndex(p) - totalbytes); } +int SAXParser::readData(char *, size_t) +{ + return 0; +} + +void SAXParser::endTag(std::string) +{ +} + +void SAXParser::startTag(std::string, attributes_t &) +{ +} + +void SAXParser::characterData(std::string &) +{ +} #ifdef TEST_SAXPARSER //deps: log.cc debug.cc exception.cc |