aboutsummaryrefslogtreecommitdiff
path: root/libstudxml/content.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'libstudxml/content.hxx')
-rw-r--r--libstudxml/content.hxx35
1 files changed, 35 insertions, 0 deletions
diff --git a/libstudxml/content.hxx b/libstudxml/content.hxx
new file mode 100644
index 0000000..b267128
--- /dev/null
+++ b/libstudxml/content.hxx
@@ -0,0 +1,35 @@
+// file : libstudxml/content.hxx -*- C++ -*-
+// copyright : Copyright (c) 2013-2017 Code Synthesis Tools CC
+// license : MIT; see accompanying LICENSE file
+
+#ifndef LIBSTUDXML_CONTENT_HXX
+#define LIBSTUDXML_CONTENT_HXX
+
+#include <libstudxml/details/pre.hxx>
+
+namespace xml
+{
+ // XML content model. C++11 enum class emulated for C++98.
+ //
+ struct content
+ {
+ enum value
+ {
+ // element characters whitespaces notes
+ empty, // no no ignored
+ simple, // no yes preserved content accumulated
+ complex, // yes no ignored
+ mixed // yes yes preserved
+ };
+
+ content (value v): v_ (v) {};
+ operator value () const {return v_;}
+
+ private:
+ value v_;
+ };
+}
+
+#include <libstudxml/details/post.hxx>
+
+#endif // LIBSTUDXML_CONTENT_HXX