1 /*****************************************
2 * OCamlStorageInterface.h
3 * ------------------------
4 * Header file for an OCaml Storage Interface
10 #ifndef OCAMLSTORAGEINTERFACE_H_
11 #define OCAMLSTORAGEINTERFACE_H_
13 #include "StorageInterface.h"
15 /* OCaml memory managment */
17 #include <caml/mlvalues.h>
18 #include <caml/alloc.h>
19 #include <caml/memory.h>
20 #include <caml/callback.h>
28 class OCamlStorageInterface: public StorageInterface
31 OCamlStorageInterface();
32 virtual ~OCamlStorageInterface();
33 virtual void newChild(string name);
34 virtual void newText(string text);
35 virtual void nodeFinished();
36 virtual void parsingFinished();
37 virtual void* returnDocument();
47 #endif /*OCAMLSTORAGEINTERFACE_H_*/