Added parsing of command line options to set sample factor, disabling storage
[SXSI/xpathcomp.git] / SXSIStorageInterface.cpp
index e5bd7cf..98d15b7 100644 (file)
 #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,7 +42,6 @@ void SXSIStorageInterface::newText(string text)
     tree->NewText((unsigned char*) text.c_str());  
   }
 }
-       
 
 
 void SXSIStorageInterface::nodeFinished(string name)