aboutsummaryrefslogtreecommitdiff
path: root/examples/cxx/hybrid/streaming/object-simpl.hxx
blob: 6b20399f8d986731ad8be7ee299ae2ebb742e1f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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