X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=SXSIStorageInterface.cpp;h=88ed42f2ef8930d69a43c4125f0ac2bd964c96e2;hb=25dd7fcc77c2188732d96d5ff98d759bb81737cb;hp=e5bd7cf873c798d796ec02a6ddd28b5a3f3f27b6;hpb=95367aa932a9e179976e59ea326542c50905f5b3;p=SXSI%2Fxpathcomp.git diff --git a/SXSIStorageInterface.cpp b/SXSIStorageInterface.cpp index e5bd7cf..88ed42f 100644 --- a/SXSIStorageInterface.cpp +++ b/SXSIStorageInterface.cpp @@ -11,11 +11,10 @@ #include "SXSIStorageInterface.h" #include "Utils.h" - -SXSIStorageInterface::SXSIStorageInterface() +SXSIStorageInterface::SXSIStorageInterface(int sf,bool iet,bool dtc) { tree = new XMLTree(); - tree->OpenDocument(false,64); + tree->OpenDocument(iet,sf,dtc); } SXSIStorageInterface::~SXSIStorageInterface() @@ -42,13 +41,13 @@ void SXSIStorageInterface::newText(string text) tree->NewText((unsigned char*) text.c_str()); } } - void SXSIStorageInterface::nodeFinished(string name) { tree->NewClosingTag((unsigned char*) name.c_str()); - } + +} void SXSIStorageInterface::parsingFinished() { @@ -58,11 +57,13 @@ void SXSIStorageInterface::nodeFinished(string name) } void *SXSIStorageInterface::returnDocument(){ - +#ifdef DEBUG printStats(); +#endif return ((void *) tree); } + void SXSIStorageInterface::printStats(){ std::cerr << "Parsing stats : \n"; std::cerr << _new_child << " calls to newOpenTag/newClosingTag\n";