807fc79686a4c740ce51791c446f8fe7bd03212f
[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
16
17 using namespace std;
18
19 class SXSIStorageInterface: public StorageInterface
20 {
21  public:
22         SXSIStorageInterface(int sf, bool iet, bool dtc);
23         virtual ~SXSIStorageInterface();
24         virtual void newChild(string name);
25         virtual void newText(string text); 
26         virtual void nodeFinished(string name);
27         virtual void parsingFinished();
28         virtual void* returnDocument();
29         virtual void printStats();
30         
31  private:
32         XMLTree* tree;
33         int _new_text;
34         int _new_empty_text;
35         int _new_child;
36         int _length_text;
37         int _heap_base;
38         int _heap_parsing;
39         int _heap_done;
40         
41 };
42
43 #endif /*SXSISTORAGEINTERFACE_H_*/