aboutsummaryrefslogtreecommitdiff
path: root/examples/cxx/hybrid/streaming/object-simpl.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cxx/hybrid/streaming/object-simpl.hxx')
-rw-r--r--examples/cxx/hybrid/streaming/object-simpl.hxx32
1 files changed, 32 insertions, 0 deletions
diff --git a/examples/cxx/hybrid/streaming/object-simpl.hxx b/examples/cxx/hybrid/streaming/object-simpl.hxx
new file mode 100644
index 0000000..6b20399
--- /dev/null
+++ b/examples/cxx/hybrid/streaming/object-simpl.hxx
@@ -0,0 +1,32 @@
+// file : examples/cxx/hybrid/streaming/object-simpl.hxx
+// author : Boris Kolpackov <boris@codesynthesis.com>
+// copyright : not copyrighted - public domain
+
+#ifndef OBJECT_SIMPL_HXX
+#define OBJECT_SIMPL_HXX
+
+// Customized object serializer implementation.
+//
+class object_simpl: public object_sskel
+{
+public:
+ virtual void
+ pre (const object&);
+
+ virtual unsigned int
+ id ();
+
+ virtual bool
+ position_next ();
+
+ virtual const ::position&
+ position ();
+
+private:
+ unsigned int id_;
+
+ unsigned int count_;
+ ::position cur_pos_;
+};
+
+#endif // OBJECT_SIMPL_HXX