removed cruft, fixed ptset.ml
[SXSI/xpathcomp.git] / SXSIStorageInterface.h
index 8f09a48..943a000 100644 (file)
 
 #include "XMLTree.h"
 #include "StorageInterface.h"
+extern "C" {
+#include <caml/mlvalues.h>
+#include <caml/alloc.h>
+#include <caml/memory.h>
+#include <caml/callback.h>
+#include <caml/fail.h>
+#include <caml/custom.h>
+  
 
+} //extern C
 
 using namespace std;
 
 class SXSIStorageInterface: public StorageInterface
 {
  public:
-       SXSIStorageInterface();
+       SXSIStorageInterface(int sf, bool iet, bool dtc);
        virtual ~SXSIStorageInterface();
        virtual void newChild(string name);
        virtual void newText(string text); 
        virtual void nodeFinished(string name);
        virtual void parsingFinished();
        virtual void* returnDocument();
+       virtual void printStats();
        
  private:
+
        XMLTree* tree;
+       int _new_text;
+       int _new_empty_text;
+       int _new_child;
+       int _length_text;
+       int _heap_base;
+       int _heap_parsing;
+       int _heap_done;
+       
 };
 
 #endif /*SXSISTORAGEINTERFACE_H_*/