diff --git a/src/dom/ls.h b/src/dom/ls.h
--- a/src/dom/ls.h
+++ b/src/dom/ls.h
#include "events.h"
#include "traversal.h"
-#include "domstream.h"
+#include "io/domstream.h"
namespace org
{
//use our own class which is designed to be a bit similar to
//java.io streams
-typedef dom::InputStream LSInputStream;
-typedef dom::OutputStream LSOutputStream;
-typedef dom::Reader LSReader;
-typedef dom::Writer LSWriter;
+typedef dom::io::InputStream LSInputStream;
+typedef dom::io::OutputStream LSOutputStream;
+typedef dom::io::Reader LSReader;
+typedef dom::io::Writer LSWriter;
//local definitions
typedef dom::DOMString DOMString;
typedef dom::DOMConfiguration DOMConfiguration;
typedef dom::Node Node;
+typedef dom::NodePtr NodePtr;
typedef dom::Document Document;
+typedef dom::DocumentPtr DocumentPtr;
typedef dom::Element Element;
+typedef dom::ElementPtr ElementPtr;
//forward declarations
/**
*
*/
- virtual unsigned short startElement(const Element *elementArg) =0;
+ virtual unsigned short startElement(const ElementPtr elementArg) =0;
/**
*
*/
- virtual unsigned short acceptNode(const Node *nodeArg) =0;
+ virtual unsigned short acceptNode(const NodePtr nodeArg) =0;
/**
*
/**
*
*/
- virtual Document *parse(const LSInput &input)
- throw(dom::DOMException, LSException)
+ virtual DocumentPtr parse(const LSInput &input)
+ throw(dom::DOMException, LSException)
{ return NULL; }
/**
*
*/
- virtual Document *parseURI(const DOMString &uri)
- throw(dom::DOMException, LSException)
+ virtual DocumentPtr parseURI(const DOMString &uri)
+ throw(dom::DOMException, LSException)
{ return NULL; }
typedef enum
/**
*
*/
- virtual Node *parseWithContext(const LSInput &input,
- const Node *contextArg,
- unsigned short action)
- throw(dom::DOMException, LSException)
+ virtual NodePtr parseWithContext(const LSInput &input,
+ const NodePtr contextArg,
+ unsigned short action)
+ throw(dom::DOMException, LSException)
{ return NULL; }
/**
/**
*
*/
- virtual bool write(const Node *nodeArg,
+ virtual bool write(const NodePtr nodeArg,
const LSOutput &destination)
throw (LSException)
{ return false; }
/**
*
*/
- virtual bool writeToURI(const Node *nodeArg,
+ virtual bool writeToURI(const NodePtr nodeArg,
const DOMString &uri)
throw(LSException)
{ return false; }
/**
*
*/
- virtual DOMString writeToString(const Node *nodeArg)
+ virtual DOMString writeToString(const NodePtr nodeArg)
throw(dom::DOMException, LSException)
{
DOMString str;
/**
*
*/
- virtual Document *getNewDocument()
+ virtual DocumentPtr getNewDocument()
{ return newDocument; }
/**
/**
*
*/
- LSLoadEvent(const LSInput &inputArg, const Document *docArg)
+ LSLoadEvent(const LSInput &inputArg,
+ const DocumentPtr docArg)
: input((LSInput &)inputArg)
- { newDocument = (Document *)docArg; }
+ { newDocument = docArg; }
/**
*
*/
- LSLoadEvent(const LSLoadEvent &other) : events::Event(other) , input(other.input)
+ LSLoadEvent(const LSLoadEvent &other)
+ : events::Event(other) , input(other.input)
{
newDocument = other.newDocument;
}
protected:
- Document *newDocument;
+ DocumentPtr newDocument;
LSInput &input;