X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=XMLDocShredder.cpp;h=c048d2e625e725f738330f0271cc891a7ea2a160;hb=cea756c7adc49891004bfe455628010eb7a28bc9;hp=1c25d611d336558886d096132ef871f87bce481a;hpb=496df5f7d3e6f8271763314f2067719cc2904c71;p=SXSI%2Fxpathcomp.git diff --git a/XMLDocShredder.cpp b/XMLDocShredder.cpp index 1c25d61..c048d2e 100644 --- a/XMLDocShredder.cpp +++ b/XMLDocShredder.cpp @@ -53,21 +53,24 @@ void XMLDocShredder::setProperties(){ } XMLDocShredder::XMLDocShredder(const unsigned char * data, - TextReader::size_type size) + TextReader::size_type size, + int sf, + bool iet, + bool dtc) { last_text = false; reader_ = new TextReader(data,size,""); setProperties(); - storageIfc_ = new SXSIStorageInterface(); + storageIfc_ = new SXSIStorageInterface(sf,iet,dtc); buffer = ""; } -XMLDocShredder::XMLDocShredder(const string inFileName) +XMLDocShredder::XMLDocShredder(const string inFileName,int sf, bool iet, bool dtc) { last_text = false; reader_ = new TextReader(inFileName); setProperties(); - storageIfc_ = new SXSIStorageInterface(); + storageIfc_ = new SXSIStorageInterface(sf,iet,dtc); buffer = ""; } @@ -127,7 +130,6 @@ void XMLDocShredder::processPCDATA() if (reader_->has_value()) { buffer += reader_->get_value(); - }; }