diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-12-02 12:26:05 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-12-02 12:26:05 +0200 |
commit | ee4eb695119bce96515b330f9fc83ddd67da5c62 (patch) | |
tree | 817bf37d4b0f0fb89e785004c41b4c6928228f79 /libxsd/xsd/cxx/tree/type-serializer-map.hxx | |
parent | c155e6925211747af9a13a5994c2f768c5048971 (diff) |
Implement de-registering polymorphic type information
This is required for DLL/shared library unloading.
Diffstat (limited to 'libxsd/xsd/cxx/tree/type-serializer-map.hxx')
-rw-r--r-- | libxsd/xsd/cxx/tree/type-serializer-map.hxx | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/libxsd/xsd/cxx/tree/type-serializer-map.hxx b/libxsd/xsd/cxx/tree/type-serializer-map.hxx index b1ca479..8c7bfca 100644 --- a/libxsd/xsd/cxx/tree/type-serializer-map.hxx +++ b/libxsd/xsd/cxx/tree/type-serializer-map.hxx @@ -38,11 +38,17 @@ namespace xsd bool override = true); void + unregister_type (const type_id&); + + void register_element (const qualified_name& root, const qualified_name& subst, const type_id&, serializer); + void + unregister_element (const qualified_name& root, const type_id&); + public: void serialize (const C* name, // element name @@ -196,17 +202,29 @@ namespace xsd serializer_impl (xercesc::DOMElement&, const type&); + // + // template<unsigned long id, typename C, typename T> struct type_serializer_initializer { - // Register type. - // type_serializer_initializer (const C* name, const C* ns); + ~type_serializer_initializer (); + }; - // Register element. - // - type_serializer_initializer (const C* root_name, const C* root_ns, - const C* subst_name, const C* subst_ns); + + // + // + template<unsigned long id, typename C, typename T> + struct element_serializer_initializer + { + element_serializer_initializer (const C* root_name, const C* root_ns, + const C* subst_name, const C* subst_ns); + + ~element_serializer_initializer (); + + private: + const C* root_name_; + const C* root_ns_; }; } } |