Further optimisations, changed the prototype of Tree.mli
[SXSI/xpathcomp.git] / StorageInterface.h
1 /*************************************
2  * StorageInterface.h
3  * ---------------------
4  * Header file for abstract class defining a storage interface.
5  * 
6  * Author: Greg Leighton
7  * Date: 02/11/08
8  * 
9  * Changes:
10  *              05/11/08 -- Added returnDocument() method
11  */
12
13
14 #ifndef STORAGEINTERFACE_H_
15 #define STORAGEINTERFACE_H_
16
17 #include <string> 
18
19 using namespace std;
20
21 class StorageInterface
22 {
23  public:
24         virtual ~StorageInterface();
25         virtual void newChild(string name) = 0;
26         virtual void newText(string text) = 0;
27         virtual void nodeFinished(string name) = 0;
28         virtual void parsingFinished() = 0;
29         virtual void* returnDocument() = 0;
30         virtual void printStats() = 0;
31  private:
32         
33
34 };
35
36 #endif /*STORAGEINTERFACE_H_*/