-/*****************************************
- * SXSIStorageInterface.h
- * ------------------------
- * Header file for an SXSI Storage Interface
- *
- * Author: Kim Nguyen
- * Date: 25/11/08
- */
-
-#ifndef SXSISTORAGEINTERFACE_H_
-#define SXSISTORAGEINTERFACE_H_
-
-#include "XMLTree.h"
-#include "XMLTreeBuilder.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(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;
- XMLTreeBuilder* tb;
- 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_*/