aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2014-05-09 15:13:33 -0700
committerBoris Kolpackov <boris@codesynthesis.com>2014-05-09 15:13:33 -0700
commit5aaab6ebbfbe97135550b5820ad6e78d13cdb811 (patch)
treee4c87d658981e422a9eecfed8977ff159946955e
parent19fbbfa8ffa594690d55dce80963d2016b4ec781 (diff)
Add forward declaration file
-rw-r--r--xml/forward.hxx19
-rw-r--r--xml/parser.hxx1
-rw-r--r--xml/qname.hxx2
-rw-r--r--xml/serializer.hxx1
-rw-r--r--xml/value-traits.hxx6
5 files changed, 25 insertions, 4 deletions
diff --git a/xml/forward.hxx b/xml/forward.hxx
new file mode 100644
index 0000000..bacd5f5
--- /dev/null
+++ b/xml/forward.hxx
@@ -0,0 +1,19 @@
+// file : xml/forward.hxx
+// copyright : Copyright (c) 2013-2014 Code Synthesis Tools CC
+// license : MIT; see accompanying LICENSE file
+
+#ifndef XML_FORWARD_HXX
+#define XML_FORWARD_HXX
+
+#include <xml/details/pre.hxx>
+
+namespace xml
+{
+ class qname;
+ class parser;
+ class serializer;
+}
+
+#include <xml/details/post.hxx>
+
+#endif // XML_FORWARD_HXX
diff --git a/xml/parser.hxx b/xml/parser.hxx
index 97a6291..cd33588 100644
--- a/xml/parser.hxx
+++ b/xml/parser.hxx
@@ -27,6 +27,7 @@
# error UTF-16 expat (XML_UNICODE defined) is not supported
#endif
+#include <xml/forward.hxx>
#include <xml/qname.hxx>
#include <xml/exception.hxx>
diff --git a/xml/qname.hxx b/xml/qname.hxx
index dcb5c82..7ffd215 100644
--- a/xml/qname.hxx
+++ b/xml/qname.hxx
@@ -10,6 +10,8 @@
#include <string>
#include <iosfwd>
+#include <xml/forward.hxx>
+
#include <xml/details/export.hxx>
namespace xml
diff --git a/xml/serializer.hxx b/xml/serializer.hxx
index d07221d..25f1672 100644
--- a/xml/serializer.hxx
+++ b/xml/serializer.hxx
@@ -13,6 +13,7 @@
#include <xml/details/genx/genx.h>
+#include <xml/forward.hxx>
#include <xml/qname.hxx>
#include <xml/exception.hxx>
diff --git a/xml/value-traits.hxx b/xml/value-traits.hxx
index c61380a..ca86382 100644
--- a/xml/value-traits.hxx
+++ b/xml/value-traits.hxx
@@ -10,14 +10,12 @@
#include <string>
#include <cstddef> // std::size_t
+#include <xml/forward.hxx>
+
#include <xml/details/export.hxx>
namespace xml
{
- //@@ forward
- class parser;
- class serializer;
-
template <typename T>
struct default_value_traits
{