aboutsummaryrefslogtreecommitdiff
path: root/libxsde/xsde/cxx/hybrid/any-type-pskel.hxx
blob: 4cb32d9036e88fad3007c6321cf1532e93d79cd9 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// file      : xsde/cxx/hybrid/any-type-pskel.hxx
// copyright : Copyright (c) 2005-2011 Code Synthesis Tools CC
// license   : GNU GPL v2 + exceptions; see accompanying LICENSE file

#ifndef XSDE_CXX_HYBRID_ANY_TYPE_PSKEL_HXX
#define XSDE_CXX_HYBRID_ANY_TYPE_PSKEL_HXX

#include <xsde/cxx/config.hxx>

#ifdef XSDE_PARSER_VALIDATION
#  include <xsde/cxx/parser/validating/parser.hxx>
#else
#  include <xsde/cxx/parser/non-validating/parser.hxx>
#endif

#include <xsde/cxx/hybrid/any-type.hxx>

namespace xsde
{
  namespace cxx
  {
    namespace hybrid
    {
#ifdef XSDE_PARSER_VALIDATION
      struct any_type_pskel: parser::validating::complex_content
#else
      struct any_type_pskel: parser::non_validating::complex_content
#endif
      {
#ifdef XSDE_POLYMORPHIC
        virtual bool
        _start_element_impl (const ro_string&,
                             const ro_string&,
                             const char*);
#else
        virtual bool
        _start_element_impl (const ro_string&, const ro_string&);
#endif

        virtual bool
        _end_element_impl (const ro_string&, const ro_string&);

#ifdef XSDE_PARSER_VALIDATION
        virtual bool
        _attribute_impl_phase_two (const ro_string&,
                                   const ro_string&,
                                   const ro_string&);
#else
        virtual bool
        _attribute_impl (const ro_string&,
                         const ro_string&,
                         const ro_string&);
#endif

        virtual bool
        _characters_impl (const ro_string&);

        virtual any_type*
        post_any_type () = 0;

#ifdef XSDE_POLYMORPHIC
        static const char*
        _static_type ();

        virtual const char*
        _dynamic_type () const;
#endif

#ifdef XSDE_REUSE_STYLE_TIEIN
        any_type_pskel ();
        any_type_pskel (any_type_pskel* impl, void*);

      protected:
        any_type_pskel* any_type_impl_;
#endif
      };
    }
  }
}

#include <xsde/cxx/hybrid/any-type-pskel.ixx>

#endif  // XSDE_CXX_HYBRID_ANY_TYPE_PSKEL_HXX