aboutsummaryrefslogtreecommitdiff
path: root/examples/cxx/hybrid/streaming/object-pimpl.hxx
blob: 1ff6389d9a83174f9ea3d28d760e51e0f68b10a7 (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-pimpl.hxx
// copyright : not copyrighted - public domain

#ifndef OBJECT_PIMPL_HXX
#define OBJECT_PIMPL_HXX

// Customized object parser implementation.
//
class object_pimpl: public object_pskel
{
public:
  virtual void
  pre ();

  virtual void
  id (unsigned int);

  virtual void
  position (const ::position&);

  virtual object*
  post_object ();

private:
  unsigned int id_;

  unsigned int count_;
  float avg_lat_;
  float avg_lon_;
};

#endif // OBJECT_PIMPL_HXX