Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

XmlTempString.h

Go to the documentation of this file.
00001 #ifndef XMLTEMPSTRING_H 00002 #define XMLTEMPSTRING_H 00003 00004 #include <exception> 00005 #include <assert.h> 00006 #include <xercesc/util/XMLString.hpp> 00007 00008 using namespace std; 00009 00010 // So long as this class remains instantiated, the XMLChr * it provides is valid. 00011 class XmlTempString 00012 { 00013 public: 00014 XmlTempString(const char * pszString) 00015 throw (exception); 00016 00017 virtual ~XmlTempString(); 00018 00019 // This object retains ownership of the string whose pointer is retunrned. 00020 const XMLCh * toXml() const; 00021 00022 private: 00023 XmlTempString() {assert(false);} 00024 XmlTempString(const XmlTempString &) {assert(false);} 00025 XmlTempString & operator= (const XmlTempString &) {assert(false); return *this;} 00026 00027 XMLCh * _pXmlString; 00028 }; 00029 00030 #endif

Generated on Fri Nov 12 15:15:22 2004 for Borealis by doxygen 1.3.8