X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=SXSIStorageInterface.cpp;h=d770d7e044be60816fa42f915fc7c65ff62cc881;hb=cea756c7adc49891004bfe455628010eb7a28bc9;hp=af7ba7fa97bc04093dffe567c015925973f16e85;hpb=24fdea81b5506233d139bd7d72364a190bef35b8;p=SXSI%2Fxpathcomp.git diff --git a/SXSIStorageInterface.cpp b/SXSIStorageInterface.cpp index af7ba7f..d770d7e 100644 --- a/SXSIStorageInterface.cpp +++ b/SXSIStorageInterface.cpp @@ -12,11 +12,10 @@ #include "Utils.h" -SXSIStorageInterface::SXSIStorageInterface() +SXSIStorageInterface::SXSIStorageInterface(int sf,bool iet,bool dtc) { tree = new XMLTree(); - tree->OpenDocument(true,64); - + tree->OpenDocument(iet,sf,dtc); } SXSIStorageInterface::~SXSIStorageInterface() @@ -43,13 +42,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() { @@ -59,8 +58,9 @@ void SXSIStorageInterface::nodeFinished(string name) } void *SXSIStorageInterface::returnDocument(){ - +#ifdef DEBUG printStats(); +#endif return ((void *) tree); } @@ -70,8 +70,5 @@ void SXSIStorageInterface::printStats(){ std::cerr << _new_text << " calls to newText\n"; std::cerr << _new_empty_text << " calls to newEmptyText\n"; std::cerr << _length_text << " bytes (=" << _length_text/1024 << "kb ) added to TextCollection\n"; - std::cerr << _heap_base << " bytes of memory (initial)\n"; - std::cerr << _heap_parsing << " bytes of memory (during parsing)\n"; - std::cerr << _heap_done << " bytes of memory (final)\n"; return; }