aboutsummaryrefslogtreecommitdiff
path: root/libstudxml/content.hxx
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-05-02 21:26:58 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-05-02 23:55:21 +0300
commit424e315dfa9a78aebf0653c95f83fe6ed452dd8e (patch)
tree59759d1d4eac4096df104d4dbab24a531ada3399 /libstudxml/content.hxx
parent3d2b5b2a7064abe35614ebb32db03bd2881adcf0 (diff)
Add hxx extension for headers and libstud prefix for library dir
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