From 4d41741491ab0a7cd128f59bf5853391fef4738b Mon Sep 17 00:00:00 2001
From: PeiYong Zhang <peiyongz@apache.org>
Date: Tue, 4 Jun 2002 14:22:51 +0000
Subject: [PATCH] Implement setter/getter from DOMWriterFilter

git-svn-id: https://svn.apache.org/repos/asf/xerces/c/trunk@173791 13f79535-47bb-0310-9956-ffa450edef68
---
 samples/DOMPrint/DOMPrintFilter.cpp | 5 ++++-
 samples/DOMPrint/DOMPrintFilter.hpp | 9 +++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/samples/DOMPrint/DOMPrintFilter.cpp b/samples/DOMPrint/DOMPrintFilter.cpp
index 26a73d09d..4c13e8ee0 100644
--- a/samples/DOMPrint/DOMPrintFilter.cpp
+++ b/samples/DOMPrint/DOMPrintFilter.cpp
@@ -57,6 +57,9 @@
 /*
  * $Id$
  * $Log$
+ * Revision 1.3  2002/06/04 14:22:51  peiyongz
+ * Implement setter/getter from DOMWriterFilter
+ *
  * Revision 1.2  2002/06/03 22:40:07  peiyongz
  * *** empty log message ***
  *
@@ -80,7 +83,7 @@ static const XMLCh  element_link[]=
 };
 
 DOMPrintFilter::DOMPrintFilter(unsigned long whatToShow)
-:DOMWriterFilter(whatToShow)
+:fWhatToShow(whatToShow)
 {}
 
 short DOMPrintFilter::acceptNode(const DOMNode* node) const
diff --git a/samples/DOMPrint/DOMPrintFilter.hpp b/samples/DOMPrint/DOMPrintFilter.hpp
index 0016ad4f3..f0e57b226 100644
--- a/samples/DOMPrint/DOMPrintFilter.hpp
+++ b/samples/DOMPrint/DOMPrintFilter.hpp
@@ -57,6 +57,9 @@
 /*
  * $Id$
  * $Log$
+ * Revision 1.3  2002/06/04 14:22:51  peiyongz
+ * Implement setter/getter from DOMWriterFilter
+ *
  * Revision 1.2  2002/06/03 22:40:07  peiyongz
  * *** empty log message ***
  *
@@ -90,11 +93,17 @@ public:
 	virtual short acceptNode(const DOMNode*) const;
     //@{
 
+	virtual unsigned long getWhatToShow() const {return fWhatToShow;};
+
+	virtual void          setWhatToShow(unsigned long toShow) {fWhatToShow = toShow;};
+
 private:
 	// unimplemented copy ctor and assignement operator
 	DOMPrintFilter(const DOMPrintFilter&);
 	DOMPrintFilter & operator = (const DOMPrintFilter&);
 
+	unsigned long fWhatToShow;   
+
 };
 
 #endif
-- 
GitLab