PPINCLUDES=$(OCAMLINCLUDES:%=-ppopt %)
-CXXSOURCES = XMLDocShredder.cpp SXSIStorageInterface.cpp StorageInterface.cpp OCamlDriver.cpp
+CXXSOURCES = XMLDocShredder.cpp OCamlDriver.cpp
CXXOBJECTS = $(CXXSOURCES:.cpp=.o)
CXXINCLUDES = \
# $(LIBS) testXMLTree.cpp
rm -rf .libs
-SXSIStorageInterface.o: SXSIStorageInterface.h SXSIStorageInterface.cpp StorageInterface.h
-StorageInterface.o: StorageInterface.h
-XMLDocShredder.o: XMLDocShredder.h XMLDocShredder.cpp SXSIStorageInterface.h StorageInterface.h
-OCamlDriver.o: XMLDocShredder.h StorageInterface.h
+XMLDocShredder.o: XMLDocShredder.h XMLDocShredder.cpp
+OCamlDriver.o: XMLDocShredder.h
compute_depend:
@echo [DEP]
+++ /dev/null
-/*******************************************
- * SXSIStorageInterface.cpp
- * ------------------------
- *
- *
- * Author: Kim Nguyen
- * Date: 04/11/08
- */
-
-
-#include "SXSIStorageInterface.h"
-#include "Utils.h"
-
-SXSIStorageInterface::SXSIStorageInterface(int sf,bool iet,bool dtc)
-{
- tree = NULL;
- tb = new XMLTreeBuilder();
- tb ->OpenDocument(iet,sf,dtc);
-}
-
-SXSIStorageInterface::~SXSIStorageInterface()
-{
-}
-
-void SXSIStorageInterface::newChild(string name)
-{
- tb->NewOpenTag(name);
-}
-
-
-void SXSIStorageInterface::newText(string text)
-{
-
- tb->NewText(text);
-}
-
-
-void SXSIStorageInterface::nodeFinished(string name)
-{
- tb->NewClosingTag(name);
-
-}
-
- void SXSIStorageInterface::parsingFinished()
-{
-
- tree = tb->CloseDocument();
-
-}
-
-void *SXSIStorageInterface::returnDocument(){
-#ifdef DEBUG
- printStats();
-#endif
- return ((void *) tree);
-
-}
-
-void SXSIStorageInterface::printStats(){
- std::cerr << "Parsing stats : \n";
- std::cerr << _new_child << " calls to newOpenTag/newClosingTag\n";
- std::cerr << _new_text << " calls to newText\n";
- std::cerr << _new_empty_text << " calls to newEmptyText\n";
- std::cerr << _length_text << " bytes (=" << _length_text/1024 << "kb ) added to TextCollection\n";
- return;
-}
+++ /dev/null
-/*****************************************
- * 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_*/
+++ /dev/null
-/**********************************************
- * StorageInterface.cpp
- * ------------------------
- * Abstract class defining methods for the storage interface.
- *
- * Author: Greg Leighton
- * Date: 02/11/08
- */
-
-
-#include "StorageInterface.h"
-
-StorageInterface::~StorageInterface()
-{
-
-}
+++ /dev/null
-/*************************************
- * StorageInterface.h
- * ---------------------
- * Header file for abstract class defining a storage interface.
- *
- * Author: Greg Leighton
- * Date: 02/11/08
- *
- * Changes:
- * 05/11/08 -- Added returnDocument() method
- */
-
-
-#ifndef STORAGEINTERFACE_H_
-#define STORAGEINTERFACE_H_
-
-#include <string>
-
-using namespace std;
-
-class StorageInterface
-{
- public:
- virtual ~StorageInterface();
- virtual void newChild(string name) = 0;
- virtual void newText(string text) = 0;
- virtual void nodeFinished(string name) = 0;
- virtual void parsingFinished() = 0;
- virtual void* returnDocument() = 0;
- virtual void printStats() = 0;
- private:
-
-
-};
-
-#endif /*STORAGEINTERFACE_H_*/