summaryrefslogtreecommitdiff
path: root/TAO/CIAO/DAnCE/Config_Handlers/cdd.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/CIAO/DAnCE/Config_Handlers/cdd.cpp')
-rw-r--r--TAO/CIAO/DAnCE/Config_Handlers/cdd.cpp318
1 files changed, 318 insertions, 0 deletions
diff --git a/TAO/CIAO/DAnCE/Config_Handlers/cdd.cpp b/TAO/CIAO/DAnCE/Config_Handlers/cdd.cpp
index 1bdab3f3935..eedb9f7724b 100644
--- a/TAO/CIAO/DAnCE/Config_Handlers/cdd.cpp
+++ b/TAO/CIAO/DAnCE/Config_Handlers/cdd.cpp
@@ -294,3 +294,321 @@ namespace CIAO
}
}
+#include <XSCRT/ExtendedTypeInfo.hpp>
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ namespace
+ {
+ ::XMLSchema::TypeInfoInitializer < char > XMLSchemaTypeInfoInitializer_ (::XSCRT::extended_type_info_map ());
+
+ struct DomainTypeInfoInitializer
+ {
+ DomainTypeInfoInitializer ()
+ {
+ ::XSCRT::TypeId id (typeid (Domain));
+ ::XSCRT::ExtendedTypeInfo nf (id);
+
+ nf.add_base (::XSCRT::ExtendedTypeInfo::Access::public_, false, typeid (::XSCRT::Type));
+ ::XSCRT::extended_type_info_map ().insert (::std::make_pair (id, nf));
+ }
+ };
+
+ DomainTypeInfoInitializer DomainTypeInfoInitializer_;
+ }
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ namespace Traversal
+ {
+ // Domain
+ //
+ //
+
+ void Domain::
+ traverse (Type& o)
+ {
+ pre (o);
+ label (o);
+ UUID (o);
+ if (o.sharedResource_p ()) sharedResource (o);
+ else sharedResource_none (o);
+ node (o);
+ if (o.infoProperty_p ()) infoProperty (o);
+ else infoProperty_none (o);
+ post (o);
+ }
+
+ void Domain::
+ traverse (Type const& o)
+ {
+ pre (o);
+ label (o);
+ UUID (o);
+ if (o.sharedResource_p ()) sharedResource (o);
+ else sharedResource_none (o);
+ node (o);
+ if (o.infoProperty_p ()) infoProperty (o);
+ else infoProperty_none (o);
+ post (o);
+ }
+
+ void Domain::
+ pre (Type&)
+ {
+ }
+
+ void Domain::
+ pre (Type const&)
+ {
+ }
+
+ void Domain::
+ label (Type& o)
+ {
+ dispatch (o.label ());
+ }
+
+ void Domain::
+ label (Type const& o)
+ {
+ dispatch (o.label ());
+ }
+
+ void Domain::
+ UUID (Type& o)
+ {
+ dispatch (o.UUID ());
+ }
+
+ void Domain::
+ UUID (Type const& o)
+ {
+ dispatch (o.UUID ());
+ }
+
+ void Domain::
+ sharedResource (Type& o)
+ {
+ dispatch (o.sharedResource ());
+ }
+
+ void Domain::
+ sharedResource (Type const& o)
+ {
+ dispatch (o.sharedResource ());
+ }
+
+ void Domain::
+ sharedResource_none (Type&)
+ {
+ }
+
+ void Domain::
+ sharedResource_none (Type const&)
+ {
+ }
+
+ void Domain::
+ node (Type& o)
+ {
+ // VC6 anathema strikes again
+ //
+ Domain::Type::node_iterator b (o.begin_node()), e (o.end_node());
+
+ if (b != e)
+ {
+ node_pre (o);
+ for (;
+ b != e;
+ )
+ {
+ dispatch (*b);
+ if (++b != e) node_next (o);
+ }
+
+ node_post (o);
+ }
+ }
+
+ void Domain::
+ node (Type const& o)
+ {
+ // VC6 anathema strikes again
+ //
+ Domain::Type::node_const_iterator b (o.begin_node()), e (o.end_node());
+
+ if (b != e)
+ {
+ node_pre (o);
+ for (;
+ b != e;
+ )
+ {
+ dispatch (*b);
+ if (++b != e) node_next (o);
+ }
+
+ node_post (o);
+ }
+ }
+
+ void Domain::
+ node_pre (Type&)
+ {
+ }
+
+ void Domain::
+ node_pre (Type const&)
+ {
+ }
+
+ void Domain::
+ node_next (Type&)
+ {
+ }
+
+ void Domain::
+ node_next (Type const&)
+ {
+ }
+
+ void Domain::
+ node_post (Type&)
+ {
+ }
+
+ void Domain::
+ node_post (Type const&)
+ {
+ }
+
+ void Domain::
+ infoProperty (Type& o)
+ {
+ dispatch (o.infoProperty ());
+ }
+
+ void Domain::
+ infoProperty (Type const& o)
+ {
+ dispatch (o.infoProperty ());
+ }
+
+ void Domain::
+ infoProperty_none (Type&)
+ {
+ }
+
+ void Domain::
+ infoProperty_none (Type const&)
+ {
+ }
+
+ void Domain::
+ post (Type&)
+ {
+ }
+
+ void Domain::
+ post (Type const&)
+ {
+ }
+ }
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ namespace Writer
+ {
+ // Domain
+ //
+ //
+
+ Domain::
+ Domain (::XSCRT::XML::Element< char >& e)
+ : ::XSCRT::Writer< char > (e)
+ {
+ }
+
+ Domain::
+ Domain ()
+ {
+ }
+
+ void Domain::
+ traverse (Type const& o)
+ {
+ Traversal::Domain::traverse (o);
+ }
+
+ void Domain::
+ label (Type const& o)
+ {
+ push_ (::XSCRT::XML::Element< char > ("label", top_ ()));
+ Traversal::Domain::label (o);
+ pop_ ();
+ }
+
+ void Domain::
+ UUID (Type const& o)
+ {
+ push_ (::XSCRT::XML::Element< char > ("UUID", top_ ()));
+ Traversal::Domain::UUID (o);
+ pop_ ();
+ }
+
+ void Domain::
+ sharedResource (Type const& o)
+ {
+ push_ (::XSCRT::XML::Element< char > ("sharedResource", top_ ()));
+ Traversal::Domain::sharedResource (o);
+ pop_ ();
+ }
+
+ void Domain::
+ node_pre (Type const&)
+ {
+ push_ (::XSCRT::XML::Element< char > ("node", top_ ()));
+ }
+
+ void Domain::
+ node_next (Type const& o)
+ {
+ node_post (o);
+ node_pre (o);
+ }
+
+ void Domain::
+ node_post (Type const&)
+ {
+ pop_ ();
+ }
+
+ void Domain::
+ infoProperty (Type const& o)
+ {
+ push_ (::XSCRT::XML::Element< char > ("infoProperty", top_ ()));
+ Traversal::Domain::infoProperty (o);
+ pop_ ();
+ }
+ }
+ }
+}
+
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+ }
+}
+