summaryrefslogtreecommitdiffstats
path: root/sca-cpp/trunk/kernel/xml.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'sca-cpp/trunk/kernel/xml.hpp')
-rw-r--r--sca-cpp/trunk/kernel/xml.hpp17
1 files changed, 15 insertions, 2 deletions
diff --git a/sca-cpp/trunk/kernel/xml.hpp b/sca-cpp/trunk/kernel/xml.hpp
index 14549e5dfc..d00a2905fb 100644
--- a/sca-cpp/trunk/kernel/xml.hpp
+++ b/sca-cpp/trunk/kernel/xml.hpp
@@ -78,6 +78,19 @@ public:
debug("xml::XMLReader::copy");
}
+ const XMLReader& operator=(const XMLReader& r) {
+ debug("xml::XMLReader::operator=");
+ if(this == &r)
+ return *this;
+ xml = r.xml;
+ owner = false;
+ tokenType = r.tokenType;
+ isEmptyElement = r.isEmptyElement;
+ hasValue = r.hasValue;
+ hasAttributes = r.hasAttributes;
+ return *this;
+ }
+
~XMLReader() {
if (!owner)
return;
@@ -112,8 +125,8 @@ public:
}
private:
- const xmlTextReaderPtr xml;
- const bool owner;
+ xmlTextReaderPtr xml;
+ bool owner;
int tokenType;
bool isEmptyElement;
bool hasValue;