diff options
author | bala <balanatarajan@users.noreply.github.com> | 2004-10-07 03:40:26 +0000 |
---|---|---|
committer | bala <balanatarajan@users.noreply.github.com> | 2004-10-07 03:40:26 +0000 |
commit | dd0fdd84813d6030e6b312813dcb2ae595912bb7 (patch) | |
tree | a0efbe1cdf46d8fd67a0ca80468407156dd51fc8 /TAO/CIAO/DAnCE/Config_Handlers/cdd.cpp | |
parent | c8bb5144f998ef2c2d2bbb7fc21bc458acc5a666 (diff) | |
download | ATCD-xsc_handler_0.tar.gz |
ChangeLogTag:Thu Oct 7 03:39:25 2004 Balachandran Natarajan <bala@dre.vanderbilt.edu>xsc_handler_0
Diffstat (limited to 'TAO/CIAO/DAnCE/Config_Handlers/cdd.cpp')
-rw-r--r-- | TAO/CIAO/DAnCE/Config_Handlers/cdd.cpp | 318 |
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 + { + } +} + |