removed cruft, fixed ptset.ml
[SXSI/xpathcomp.git] / SXSIStorageInterface.h
1 /*****************************************
2  * SXSIStorageInterface.h
3  * ------------------------
4  * Header file for an SXSI Storage Interface
5  * 
6  * Author: Kim Nguyen
7  * Date: 25/11/08
8  */
9
10 #ifndef SXSISTORAGEINTERFACE_H_
11 #define SXSISTORAGEINTERFACE_H_
12
13 #include "XMLTree.h"
14 #include "StorageInterface.h"
15 extern "C" {
16 #include <caml/mlvalues.h>
17 #include <caml/alloc.h>
18 #include <caml/memory.h>
19 #include <caml/callback.h>
20 #include <caml/fail.h>
21 #include <caml/custom.h>
22   
23
24 } //extern C
25
26 using namespace std;
27
28 class SXSIStorageInterface: public StorageInterface
29 {
30  public:
31         SXSIStorageInterface(int sf, bool iet, bool dtc);
32         virtual ~SXSIStorageInterface();
33         virtual void newChild(string name);
34         virtual void newText(string text); 
35         virtual void nodeFinished(string name);
36         virtual void parsingFinished();
37         virtual void* returnDocument();
38         virtual void printStats();
39         
40  private:
41
42         XMLTree* tree;
43         int _new_text;
44         int _new_empty_text;
45         int _new_child;
46         int _length_text;
47         int _heap_base;
48         int _heap_parsing;
49         int _heap_done;
50         
51 };
52
53 #endif /*SXSISTORAGEINTERFACE_H_*/