X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=XMLDocShredder.h;h=437452ebaaa00093154100605ccfd270526780d4;hb=c10ce35cd399aff15a49f3b24a31b38cb2191da0;hp=19ed10f252b19ce917729ad2eb6ddacc56fbb052;hpb=3623eefccfb5fc69e19ad975a3669f51a2a8b276;p=SXSI%2Fxpathcomp.git diff --git a/XMLDocShredder.h b/XMLDocShredder.h index 19ed10f..437452e 100644 --- a/XMLDocShredder.h +++ b/XMLDocShredder.h @@ -15,16 +15,11 @@ #include #include #include -#include #include "StorageInterface.h" using namespace std; using namespace xmlpp; -/* For Hashmap. Seems fairly well supported */ -using namespace __gnu_cxx; -typedef pair cons_str; -typedef pair cons_int; class XMLDocShredder { @@ -45,8 +40,6 @@ public: virtual void processUnknownNodeType(); virtual void processCDATASection(); virtual void parse(); - virtual int tagID(string); - virtual string idTag(int); StorageInterface *storageIfc_; @@ -54,8 +47,10 @@ public: private: TextReader *reader_; void setProperties(); - unordered_map idTags_; - unordered_map tagsID_; + bool last_text; + string buffer; + // used to coalece successive text events + // which can occur if we discard pi and comment nodes. }; #endif /*XMLDOCSHREDDER_H_*/