aboutsummaryrefslogtreecommitdiff
path: root/examples/cxx/hybrid/evolution/passthrough/unknown-type-simpl.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cxx/hybrid/evolution/passthrough/unknown-type-simpl.hxx')
-rw-r--r--examples/cxx/hybrid/evolution/passthrough/unknown-type-simpl.hxx34
1 files changed, 34 insertions, 0 deletions
diff --git a/examples/cxx/hybrid/evolution/passthrough/unknown-type-simpl.hxx b/examples/cxx/hybrid/evolution/passthrough/unknown-type-simpl.hxx
new file mode 100644
index 0000000..c2cabf7
--- /dev/null
+++ b/examples/cxx/hybrid/evolution/passthrough/unknown-type-simpl.hxx
@@ -0,0 +1,34 @@
+// file : examples/cxx/hybrid/evolution/passthrough/unknown-type-simpl.hxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : not copyrighted - public domain
+
+#ifndef UNKNOWN_TYPE_SIMPL_HXX
+#define UNKNOWN_TYPE_SIMPL_HXX
+
+namespace transform
+{
+ // Customized unknown_type serializer implementation.
+ //
+ class unknown_type_simpl: public unknown_type_base_simpl
+ {
+ public:
+ // Low-level raw XML serialization callbacks.
+ //
+ virtual void
+ _serialize_attributes ();
+
+ virtual void
+ _serialize_content ();
+
+ // Helper functions.
+ //
+ private:
+ void
+ serialize (const xml::attributes&);
+
+ void
+ serialize (const xml::elements&);
+ };
+}
+
+#endif // UNKNOWN_TYPE_SIMPL_HXX