summaryrefslogtreecommitdiffstats
path: root/addon/xmlread/strx.h
diff options
context:
space:
mode:
Diffstat (limited to 'addon/xmlread/strx.h')
-rw-r--r--addon/xmlread/strx.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/addon/xmlread/strx.h b/addon/xmlread/strx.h
new file mode 100644
index 0000000..ee58791
--- /dev/null
+++ b/addon/xmlread/strx.h
@@ -0,0 +1,24 @@
+#ifndef _STRX_H
+#define _STRX_H
+
+// ---------------------------------------------------------------------------
+// Includes for all the program files to see
+// ---------------------------------------------------------------------------
+#include "qtbc.h"
+#include <iostream.h>
+
+/*!
+ * This is a simple wrapper class around QCString that lets us do easy
+ * trancoding of XMLCh data to local code page for display.
+ */
+class StrX : public QCString
+{
+ public:
+ /*! Constructor */
+ StrX(const XMLCh* const toTranscode) :
+ QCString(XMLString::transcode(toTranscode)) {}
+ /*! Destructor */
+ ~StrX() {}
+};
+
+#endif