aboutsummaryrefslogtreecommitdiff
path: root/Src/playlist/XMLString.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Src/playlist/XMLString.cpp')
-rw-r--r--Src/playlist/XMLString.cpp42
1 files changed, 42 insertions, 0 deletions
diff --git a/Src/playlist/XMLString.cpp b/Src/playlist/XMLString.cpp
new file mode 100644
index 00000000..ea4d0cbf
--- /dev/null
+++ b/Src/playlist/XMLString.cpp
@@ -0,0 +1,42 @@
+#include "main.h"
+#include "XMLString.h"
+#include "../nu/strsafe.h"
+
+XMLString::XMLString()
+{
+ data[ 0 ] = 0;
+}
+
+void XMLString::Reset()
+{
+ data[ 0 ] = 0;
+}
+
+const wchar_t *XMLString::GetString()
+{
+ return data;
+}
+
+void XMLString::StartTag( const wchar_t *xmlpath, const wchar_t *xmltag, ifc_xmlreaderparams *params )
+{
+ data[ 0 ] = 0;
+}
+
+
+void XMLString::TextHandler( const wchar_t *xmlpath, const wchar_t *xmltag, const wchar_t *str )
+{
+ StringCchCatW( data, 256, str );
+}
+
+
+void XMLString::ManualSet( const wchar_t *string )
+{
+ StringCchCatW( data, 256, string );
+}
+
+#define CBCLASS XMLString
+START_DISPATCH;
+VCB( ONSTARTELEMENT, StartTag )
+VCB( ONCHARDATA, TextHandler )
+END_DISPATCH;
+#undef CBCLASS \ No newline at end of file