diff options
Diffstat (limited to 'TAO/CIAO/DAnCE/Config_Handlers/iad.cpp')
-rw-r--r-- | TAO/CIAO/DAnCE/Config_Handlers/iad.cpp | 654 |
1 files changed, 652 insertions, 2 deletions
diff --git a/TAO/CIAO/DAnCE/Config_Handlers/iad.cpp b/TAO/CIAO/DAnCE/Config_Handlers/iad.cpp index 1e4d3acfca7..15e4afe42a8 100644 --- a/TAO/CIAO/DAnCE/Config_Handlers/iad.cpp +++ b/TAO/CIAO/DAnCE/Config_Handlers/iad.cpp @@ -33,7 +33,7 @@ namespace CIAO NamedImplementationArtifact:: NamedImplementationArtifact (::CIAO::Config_Handlers::NamedImplementationArtifact const& s) : - ::XSCRT::Type (), + XSCRT::Type (), name_ (new ::XMLSchema::string< ACE_TCHAR > (*s.name_)), referencedArtifact_ (new ::CIAO::Config_Handlers::ImplementationArtifactDescription (*s.referencedArtifact_)), regulator__ () @@ -107,7 +107,7 @@ namespace CIAO ImplementationArtifactDescription:: ImplementationArtifactDescription (::CIAO::Config_Handlers::ImplementationArtifactDescription const& s) : - ::XSCRT::Type (), + XSCRT::Type (), label_ (s.label_.get () ? new ::XMLSchema::string< ACE_TCHAR > (*s.label_) : 0), UUID_ (s.UUID_.get () ? new ::XMLSchema::string< ACE_TCHAR > (*s.UUID_) : 0), execParameter_ (s.execParameter_.get () ? new ::CIAO::Config_Handlers::Property (*s.execParameter_) : 0), @@ -608,3 +608,653 @@ namespace CIAO } } +#include <XMLSchema/TypeInfo.hpp> + +namespace CIAO +{ + namespace Config_Handlers + { + namespace + { + ::XMLSchema::TypeInfoInitializer < ACE_TCHAR > XMLSchemaTypeInfoInitializer_ (::XSCRT::extended_type_info_map ()); + + struct NamedImplementationArtifactTypeInfoInitializer + { + NamedImplementationArtifactTypeInfoInitializer () + { + ::XSCRT::TypeId id (typeid (NamedImplementationArtifact)); + ::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)); + } + }; + + NamedImplementationArtifactTypeInfoInitializer NamedImplementationArtifactTypeInfoInitializer_; + + struct ImplementationArtifactDescriptionTypeInfoInitializer + { + ImplementationArtifactDescriptionTypeInfoInitializer () + { + ::XSCRT::TypeId id (typeid (ImplementationArtifactDescription)); + ::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)); + } + }; + + ImplementationArtifactDescriptionTypeInfoInitializer ImplementationArtifactDescriptionTypeInfoInitializer_; + } + } +} + +namespace CIAO +{ + namespace Config_Handlers + { + namespace Traversal + { + // NamedImplementationArtifact + // + // + + void NamedImplementationArtifact:: + traverse (Type& o) + { + pre (o); + name (o); + referencedArtifact (o); + post (o); + } + + void NamedImplementationArtifact:: + traverse (Type const& o) + { + pre (o); + name (o); + referencedArtifact (o); + post (o); + } + + void NamedImplementationArtifact:: + pre (Type&) + { + } + + void NamedImplementationArtifact:: + pre (Type const&) + { + } + + void NamedImplementationArtifact:: + name (Type& o) + { + dispatch (o.name ()); + } + + void NamedImplementationArtifact:: + name (Type const& o) + { + dispatch (o.name ()); + } + + void NamedImplementationArtifact:: + referencedArtifact (Type& o) + { + dispatch (o.referencedArtifact ()); + } + + void NamedImplementationArtifact:: + referencedArtifact (Type const& o) + { + dispatch (o.referencedArtifact ()); + } + + void NamedImplementationArtifact:: + post (Type&) + { + } + + void NamedImplementationArtifact:: + post (Type const&) + { + } + + // ImplementationArtifactDescription + // + // + + void ImplementationArtifactDescription:: + traverse (Type& o) + { + pre (o); + if (o.label_p ()) label (o); + else label_none (o); + if (o.UUID_p ()) UUID (o); + else UUID_none (o); + location (o); + if (o.execParameter_p ()) execParameter (o); + else execParameter_none (o); + if (o.deployRequirement_p ()) deployRequirement (o); + else deployRequirement_none (o); + dependsOn (o); + if (o.infoProperty_p ()) infoProperty (o); + else infoProperty_none (o); + if (o.contentLocation_p ()) contentLocation (o); + else contentLocation_none (o); + post (o); + } + + void ImplementationArtifactDescription:: + traverse (Type const& o) + { + pre (o); + if (o.label_p ()) label (o); + else label_none (o); + if (o.UUID_p ()) UUID (o); + else UUID_none (o); + location (o); + if (o.execParameter_p ()) execParameter (o); + else execParameter_none (o); + if (o.deployRequirement_p ()) deployRequirement (o); + else deployRequirement_none (o); + dependsOn (o); + if (o.infoProperty_p ()) infoProperty (o); + else infoProperty_none (o); + if (o.contentLocation_p ()) contentLocation (o); + else contentLocation_none (o); + post (o); + } + + void ImplementationArtifactDescription:: + pre (Type&) + { + } + + void ImplementationArtifactDescription:: + pre (Type const&) + { + } + + void ImplementationArtifactDescription:: + label (Type& o) + { + dispatch (o.label ()); + } + + void ImplementationArtifactDescription:: + label (Type const& o) + { + dispatch (o.label ()); + } + + void ImplementationArtifactDescription:: + label_none (Type&) + { + } + + void ImplementationArtifactDescription:: + label_none (Type const&) + { + } + + void ImplementationArtifactDescription:: + UUID (Type& o) + { + dispatch (o.UUID ()); + } + + void ImplementationArtifactDescription:: + UUID (Type const& o) + { + dispatch (o.UUID ()); + } + + void ImplementationArtifactDescription:: + UUID_none (Type&) + { + } + + void ImplementationArtifactDescription:: + UUID_none (Type const&) + { + } + + void ImplementationArtifactDescription:: + location (Type& o) + { + // VC6 anathema strikes again + // + ImplementationArtifactDescription::Type::location_iterator b (o.begin_location()), e (o.end_location()); + + if (b != e) + { + location_pre (o); + for (; + b != e; + ) + { + dispatch (*b); + if (++b != e) location_next (o); + } + + location_post (o); + } + + else location_none (o); + } + + void ImplementationArtifactDescription:: + location (Type const& o) + { + // VC6 anathema strikes again + // + ImplementationArtifactDescription::Type::location_const_iterator b (o.begin_location()), e (o.end_location()); + + if (b != e) + { + location_pre (o); + for (; + b != e; + ) + { + dispatch (*b); + if (++b != e) location_next (o); + } + + location_post (o); + } + + else location_none (o); + } + + void ImplementationArtifactDescription:: + location_pre (Type&) + { + } + + void ImplementationArtifactDescription:: + location_pre (Type const&) + { + } + + void ImplementationArtifactDescription:: + location_next (Type&) + { + } + + void ImplementationArtifactDescription:: + location_next (Type const&) + { + } + + void ImplementationArtifactDescription:: + location_post (Type&) + { + } + + void ImplementationArtifactDescription:: + location_post (Type const&) + { + } + + void ImplementationArtifactDescription:: + location_none (Type&) + { + } + + void ImplementationArtifactDescription:: + location_none (Type const&) + { + } + + void ImplementationArtifactDescription:: + execParameter (Type& o) + { + dispatch (o.execParameter ()); + } + + void ImplementationArtifactDescription:: + execParameter (Type const& o) + { + dispatch (o.execParameter ()); + } + + void ImplementationArtifactDescription:: + execParameter_none (Type&) + { + } + + void ImplementationArtifactDescription:: + execParameter_none (Type const&) + { + } + + void ImplementationArtifactDescription:: + deployRequirement (Type& o) + { + dispatch (o.deployRequirement ()); + } + + void ImplementationArtifactDescription:: + deployRequirement (Type const& o) + { + dispatch (o.deployRequirement ()); + } + + void ImplementationArtifactDescription:: + deployRequirement_none (Type&) + { + } + + void ImplementationArtifactDescription:: + deployRequirement_none (Type const&) + { + } + + void ImplementationArtifactDescription:: + dependsOn (Type& o) + { + // VC6 anathema strikes again + // + ImplementationArtifactDescription::Type::dependsOn_iterator b (o.begin_dependsOn()), e (o.end_dependsOn()); + + if (b != e) + { + dependsOn_pre (o); + for (; + b != e; + ) + { + dispatch (*b); + if (++b != e) dependsOn_next (o); + } + + dependsOn_post (o); + } + + else dependsOn_none (o); + } + + void ImplementationArtifactDescription:: + dependsOn (Type const& o) + { + // VC6 anathema strikes again + // + ImplementationArtifactDescription::Type::dependsOn_const_iterator b (o.begin_dependsOn()), e (o.end_dependsOn()); + + if (b != e) + { + dependsOn_pre (o); + for (; + b != e; + ) + { + dispatch (*b); + if (++b != e) dependsOn_next (o); + } + + dependsOn_post (o); + } + + else dependsOn_none (o); + } + + void ImplementationArtifactDescription:: + dependsOn_pre (Type&) + { + } + + void ImplementationArtifactDescription:: + dependsOn_pre (Type const&) + { + } + + void ImplementationArtifactDescription:: + dependsOn_next (Type&) + { + } + + void ImplementationArtifactDescription:: + dependsOn_next (Type const&) + { + } + + void ImplementationArtifactDescription:: + dependsOn_post (Type&) + { + } + + void ImplementationArtifactDescription:: + dependsOn_post (Type const&) + { + } + + void ImplementationArtifactDescription:: + dependsOn_none (Type&) + { + } + + void ImplementationArtifactDescription:: + dependsOn_none (Type const&) + { + } + + void ImplementationArtifactDescription:: + infoProperty (Type& o) + { + dispatch (o.infoProperty ()); + } + + void ImplementationArtifactDescription:: + infoProperty (Type const& o) + { + dispatch (o.infoProperty ()); + } + + void ImplementationArtifactDescription:: + infoProperty_none (Type&) + { + } + + void ImplementationArtifactDescription:: + infoProperty_none (Type const&) + { + } + + void ImplementationArtifactDescription:: + contentLocation (Type& o) + { + dispatch (o.contentLocation ()); + } + + void ImplementationArtifactDescription:: + contentLocation (Type const& o) + { + dispatch (o.contentLocation ()); + } + + void ImplementationArtifactDescription:: + contentLocation_none (Type&) + { + } + + void ImplementationArtifactDescription:: + contentLocation_none (Type const&) + { + } + + void ImplementationArtifactDescription:: + post (Type&) + { + } + + void ImplementationArtifactDescription:: + post (Type const&) + { + } + } + } +} + +namespace CIAO +{ + namespace Config_Handlers + { + namespace Writer + { + // NamedImplementationArtifact + // + // + + NamedImplementationArtifact:: + NamedImplementationArtifact (::XSCRT::XML::Element< ACE_TCHAR >& e) + : ::XSCRT::Writer< ACE_TCHAR > (e) + { + } + + NamedImplementationArtifact:: + NamedImplementationArtifact () + { + } + + void NamedImplementationArtifact:: + traverse (Type const& o) + { + Traversal::NamedImplementationArtifact::traverse (o); + } + + void NamedImplementationArtifact:: + name (Type const& o) + { + push_ (::XSCRT::XML::Element< ACE_TCHAR > ("name", top_ ())); + Traversal::NamedImplementationArtifact::name (o); + pop_ (); + } + + void NamedImplementationArtifact:: + referencedArtifact (Type const& o) + { + push_ (::XSCRT::XML::Element< ACE_TCHAR > ("referencedArtifact", top_ ())); + Traversal::NamedImplementationArtifact::referencedArtifact (o); + pop_ (); + } + + // ImplementationArtifactDescription + // + // + + ImplementationArtifactDescription:: + ImplementationArtifactDescription (::XSCRT::XML::Element< ACE_TCHAR >& e) + : ::XSCRT::Writer< ACE_TCHAR > (e) + { + } + + ImplementationArtifactDescription:: + ImplementationArtifactDescription () + { + } + + void ImplementationArtifactDescription:: + traverse (Type const& o) + { + Traversal::ImplementationArtifactDescription::traverse (o); + } + + void ImplementationArtifactDescription:: + label (Type const& o) + { + push_ (::XSCRT::XML::Element< ACE_TCHAR > ("label", top_ ())); + Traversal::ImplementationArtifactDescription::label (o); + pop_ (); + } + + void ImplementationArtifactDescription:: + UUID (Type const& o) + { + push_ (::XSCRT::XML::Element< ACE_TCHAR > ("UUID", top_ ())); + Traversal::ImplementationArtifactDescription::UUID (o); + pop_ (); + } + + void ImplementationArtifactDescription:: + location_pre (Type const&) + { + push_ (::XSCRT::XML::Element< ACE_TCHAR > ("location", top_ ())); + } + + void ImplementationArtifactDescription:: + location_next (Type const& o) + { + location_post (o); + location_pre (o); + } + + void ImplementationArtifactDescription:: + location_post (Type const&) + { + pop_ (); + } + + void ImplementationArtifactDescription:: + execParameter (Type const& o) + { + push_ (::XSCRT::XML::Element< ACE_TCHAR > ("execParameter", top_ ())); + Traversal::ImplementationArtifactDescription::execParameter (o); + pop_ (); + } + + void ImplementationArtifactDescription:: + deployRequirement (Type const& o) + { + push_ (::XSCRT::XML::Element< ACE_TCHAR > ("deployRequirement", top_ ())); + Traversal::ImplementationArtifactDescription::deployRequirement (o); + pop_ (); + } + + void ImplementationArtifactDescription:: + dependsOn_pre (Type const&) + { + push_ (::XSCRT::XML::Element< ACE_TCHAR > ("dependsOn", top_ ())); + } + + void ImplementationArtifactDescription:: + dependsOn_next (Type const& o) + { + dependsOn_post (o); + dependsOn_pre (o); + } + + void ImplementationArtifactDescription:: + dependsOn_post (Type const&) + { + pop_ (); + } + + void ImplementationArtifactDescription:: + infoProperty (Type const& o) + { + push_ (::XSCRT::XML::Element< ACE_TCHAR > ("infoProperty", top_ ())); + Traversal::ImplementationArtifactDescription::infoProperty (o); + pop_ (); + } + + void ImplementationArtifactDescription:: + contentLocation (Type const& o) + { + push_ (::XSCRT::XML::Element< ACE_TCHAR > ("contentLocation", top_ ())); + Traversal::ImplementationArtifactDescription::contentLocation (o); + pop_ (); + } + } + } +} + +namespace CIAO +{ + namespace Config_Handlers + { + } +} + |