diff options
Diffstat (limited to 'libxsde/xsde/cxx/hybrid/any-type-sskel.hxx')
-rw-r--r-- | libxsde/xsde/cxx/hybrid/any-type-sskel.hxx | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/libxsde/xsde/cxx/hybrid/any-type-sskel.hxx b/libxsde/xsde/cxx/hybrid/any-type-sskel.hxx new file mode 100644 index 0000000..29663be --- /dev/null +++ b/libxsde/xsde/cxx/hybrid/any-type-sskel.hxx @@ -0,0 +1,66 @@ +// file : xsde/cxx/hybrid/any-type-sskel.hxx +// author : Boris Kolpackov <boris@codesynthesis.com> +// copyright : Copyright (c) 2005-2010 Code Synthesis Tools CC +// license : GNU GPL v2 + exceptions; see accompanying LICENSE file + +#ifndef XSDE_CXX_HYBRID_ANY_TYPE_SSKEL_HXX +#define XSDE_CXX_HYBRID_ANY_TYPE_SSKEL_HXX + +#include <xsde/cxx/config.hxx> + +#ifdef XSDE_SERIALIZER_VALIDATION +# include <xsde/cxx/serializer/validating/serializer.hxx> +#else +# include <xsde/cxx/serializer/non-validating/serializer.hxx> +#endif + +#include <xsde/cxx/hybrid/any-type.hxx> + +namespace xsde +{ + namespace cxx + { + namespace hybrid + { +#ifdef XSDE_SERIALIZER_VALIDATION + struct any_type_sskel: serializer::validating::complex_content +#else + struct any_type_sskel: serializer::non_validating::complex_content +#endif + { + virtual void + pre (const any_type&) = 0; + + // Override the following two functions to implement + // your logic. + // + + // virtual void + // _serialize_attributes (); + + // virtual void + // _serialize_content (); + +#ifdef XSDE_POLYMORPHIC + static const char* + _static_type (); + + virtual const char* + _dynamic_type () const; +#endif + +#ifdef XSDE_REUSE_STYLE_TIEIN + any_type_sskel (); + any_type_sskel (any_type_sskel* impl, void*); + + protected: + any_type_sskel* any_type_impl_; +#endif + }; + } + } +} + +#include <xsde/cxx/hybrid/any-type-sskel.ixx> + +#endif // XSDE_CXX_HYBRID_ANY_TYPE_SSKEL_HXX |