X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=SXSIStorageInterface.cpp;h=88ed42f2ef8930d69a43c4125f0ac2bd964c96e2;hb=8b3283c30149065d761e38cf0818c8ede62d48ab;hp=98d15b7f1668b488904412f58e1bbf9f12a48a43;hpb=eebef30070a951d852ce5811b289d8131a5300eb;p=SXSI%2Fxpathcomp.git diff --git a/SXSIStorageInterface.cpp b/SXSIStorageInterface.cpp index 98d15b7..88ed42f 100644 --- a/SXSIStorageInterface.cpp +++ b/SXSIStorageInterface.cpp @@ -11,7 +11,6 @@ #include "SXSIStorageInterface.h" #include "Utils.h" - SXSIStorageInterface::SXSIStorageInterface(int sf,bool iet,bool dtc) { tree = new XMLTree(); @@ -47,7 +46,8 @@ void SXSIStorageInterface::newText(string text) void SXSIStorageInterface::nodeFinished(string name) { tree->NewClosingTag((unsigned char*) name.c_str()); - } + +} void SXSIStorageInterface::parsingFinished() { @@ -57,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";