00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #ifndef _T_XML_HH_
00011 #define _T_XML_HH_
00012
00013 #include <rtworks/ipc.h>
00014 #include <rtworks/types.h>
00015 #include <rtworks/tex.h>
00016
00017 namespace SmartSockets {
00018
00025 class T_IPCX_API XMLException : public Exception {
00026
00027 public:
00031 XMLException () {}
00032
00036 virtual ~XMLException () throw() {}
00037 };
00038
00042 class T_IPCX_API XML
00043 {
00044
00045 T_XML _xml;
00046
00047 public:
00052 XML (const char * xml) throw (XMLException);
00053
00057 XML (T_XML xml) throw (XMLException):
00058 _xml(xml)
00059 {
00060 if (_xml == NULL)
00061 {
00062 TutErrNumSet(T_ERR_NULL_PTR);
00063 throw XMLException();
00064 }
00065 }
00066
00067
00068
00072 virtual ~XML () throw();
00073
00077 operator T_XML() const throw() {return _xml;}
00078
00087 static T_XML createFromStaticBuf (const char * xml)
00088 throw (XMLException);
00089
00094 T_XML clone () const throw (XMLException);
00095
00100 const char * getString () const throw (XMLException);
00101
00106 void setString (const char * xml) throw (XMLException);
00107 };
00108
00109 }
00110
00111 #endif //_T_XML_HH_