aboutsummaryrefslogtreecommitdiff
path: root/examples/cxx/hybrid/evolution/passthrough/unknown-type-simpl.hxx
blob: c2cabf74310096829ed8797d64d554298ea439eb (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
33
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