X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=SXSIStorageInterface.cpp;fp=SXSIStorageInterface.cpp;h=0000000000000000000000000000000000000000;hb=99ac0ee0d0f85549a19b5e96442caa5a56f95a78;hp=2594bd2595aab552d37845d02c1612cfff2ba3fc;hpb=04639fe524ee20f7f84c8b08387312d714c9bd56;p=SXSI%2Fxpathcomp.git diff --git a/SXSIStorageInterface.cpp b/SXSIStorageInterface.cpp deleted file mode 100644 index 2594bd2..0000000 --- a/SXSIStorageInterface.cpp +++ /dev/null @@ -1,66 +0,0 @@ -/******************************************* - * SXSIStorageInterface.cpp - * ------------------------ - * - * - * Author: Kim Nguyen - * Date: 04/11/08 - */ - - -#include "SXSIStorageInterface.h" -#include "Utils.h" - -SXSIStorageInterface::SXSIStorageInterface(int sf,bool iet,bool dtc) -{ - tree = NULL; - tb = new XMLTreeBuilder(); - tb ->OpenDocument(iet,sf,dtc); -} - -SXSIStorageInterface::~SXSIStorageInterface() -{ -} - -void SXSIStorageInterface::newChild(string name) -{ - tb->NewOpenTag(name); -} - - -void SXSIStorageInterface::newText(string text) -{ - - tb->NewText(text); -} - - -void SXSIStorageInterface::nodeFinished(string name) -{ - tb->NewClosingTag(name); - -} - - void SXSIStorageInterface::parsingFinished() -{ - - tree = tb->CloseDocument(); - -} - -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"; - 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"; - return; -}