made *Handler member functions public rather than private. Thanks to Isak Johnsson for pointing this out

This commit is contained in:
jez_higgins 2006-06-27 09:37:11 +00:00
parent 65bcac5d31
commit e7fdb6e546

View file

@ -16,8 +16,8 @@ namespace SAX {
template<class string_type> template<class string_type>
class basic_Writer : public basic_XMLFilterImpl<string_type>, class basic_Writer : public basic_XMLFilterImpl<string_type>,
private basic_LexicalHandler<string_type>, public basic_LexicalHandler<string_type>,
private basic_DeclHandler<string_type> public basic_DeclHandler<string_type>
{ {
public: public:
typedef string_type stringT; typedef string_type stringT;
@ -42,6 +42,7 @@ class basic_Writer : public basic_XMLFilterImpl<string_type>,
typedef typename XMLReaderT::template Property<declHandlerT*> getDeclHandlerT; typedef typename XMLReaderT::template Property<declHandlerT*> getDeclHandlerT;
typedef typename XMLReaderT::template Property<declHandlerT&> setDeclHandlerT; typedef typename XMLReaderT::template Property<declHandlerT&> setDeclHandlerT;
using XMLFilterT::getParent; using XMLFilterT::getParent;
public: public:
basic_Writer(ostreamT& stream, unsigned int indent = 2) : basic_Writer(ostreamT& stream, unsigned int indent = 2) :
inCDATA_(false), inCDATA_(false),
@ -116,6 +117,7 @@ class basic_Writer : public basic_XMLFilterImpl<string_type>,
virtual std::auto_ptr<PropertyBaseT> doGetProperty(const stringT& name); virtual std::auto_ptr<PropertyBaseT> doGetProperty(const stringT& name);
virtual void doSetProperty(const stringT& name, std::auto_ptr<PropertyBaseT> value); virtual void doSetProperty(const stringT& name, std::auto_ptr<PropertyBaseT> value);
public:
// ContentHandler // ContentHandler
virtual void startDocument(); virtual void startDocument();
virtual void endDocument(); virtual void endDocument();
@ -148,7 +150,7 @@ class basic_Writer : public basic_XMLFilterImpl<string_type>,
virtual void internalEntityDecl(const stringT& name, const stringT& value); virtual void internalEntityDecl(const stringT& name, const stringT& value);
virtual void externalEntityDecl(const stringT& name, const stringT& publicId, const stringT& systemId); virtual void externalEntityDecl(const stringT& name, const stringT& publicId, const stringT& systemId);
protected:
///////////////// /////////////////
void startEntityDecl(const stringT& name); void startEntityDecl(const stringT& name);
void publicAndSystem(const stringT& publicId, const stringT& systemId); void publicAndSystem(const stringT& publicId, const stringT& systemId);