diff options
Diffstat (limited to 'TAO/CIAO/tools/Config_Handlers/ccd.cpp')
-rw-r--r-- | TAO/CIAO/tools/Config_Handlers/ccd.cpp | 470 |
1 files changed, 235 insertions, 235 deletions
diff --git a/TAO/CIAO/tools/Config_Handlers/ccd.cpp b/TAO/CIAO/tools/Config_Handlers/ccd.cpp index 3c561e8f1af..66743f01e2e 100644 --- a/TAO/CIAO/tools/Config_Handlers/ccd.cpp +++ b/TAO/CIAO/tools/Config_Handlers/ccd.cpp @@ -3,12 +3,12 @@ * * Changes made to this code will most likely be overwritten * when the handlers are recompiled. - * + * * If you find errors or feel that there are bugfixes to be made, * please contact the current XSC maintainer: * Will Otte <wotte@dre.vanderbilt.edu> */ - + #include "ccd.hpp" namespace CIAO @@ -16,26 +16,26 @@ namespace CIAO namespace Config_Handlers { // ComponentInterfaceDescription - // + // ComponentInterfaceDescription:: ComponentInterfaceDescription () - : - ::XSCRT::Type (), - regulator__ () + : + ::XSCRT::Type (), + regulator__ () { } ComponentInterfaceDescription:: ComponentInterfaceDescription (::CIAO::Config_Handlers::ComponentInterfaceDescription const& s) - : - ::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), - specificType_ (s.specificType_.get () ? new ::XMLSchema::string< ACE_TCHAR > (*s.specificType_) : 0), - contentLocation_ (s.contentLocation_.get () ? new ::XMLSchema::string< ACE_TCHAR > (*s.contentLocation_) : 0), - href_ (s.href_.get () ? new ::XMLSchema::string< ACE_TCHAR > (*s.href_) : 0), - regulator__ () + : + ::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), + specificType_ (s.specificType_.get () ? new ::XMLSchema::string< ACE_TCHAR > (*s.specificType_) : 0), + contentLocation_ (s.contentLocation_.get () ? new ::XMLSchema::string< ACE_TCHAR > (*s.contentLocation_) : 0), + href_ (s.href_.get () ? new ::XMLSchema::string< ACE_TCHAR > (*s.href_) : 0), + regulator__ () { if (label_.get ()) label_->container (this); if (UUID_.get ()) UUID_->container (this); @@ -121,7 +121,7 @@ namespace CIAO // ComponentInterfaceDescription - // + // bool ComponentInterfaceDescription:: label_p () const { @@ -138,19 +138,19 @@ namespace CIAO label (::XMLSchema::string< ACE_TCHAR > const& e) { if (label_.get ()) - { - *label_ = e; - } + { + *label_ = e; + } else - { - label_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); - label_->container (this); - } + { + label_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); + label_->container (this); + } } // ComponentInterfaceDescription - // + // bool ComponentInterfaceDescription:: UUID_p () const { @@ -167,19 +167,19 @@ namespace CIAO UUID (::XMLSchema::string< ACE_TCHAR > const& e) { if (UUID_.get ()) - { - *UUID_ = e; - } + { + *UUID_ = e; + } else - { - UUID_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); - UUID_->container (this); - } + { + UUID_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); + UUID_->container (this); + } } // ComponentInterfaceDescription - // + // bool ComponentInterfaceDescription:: specificType_p () const { @@ -196,19 +196,19 @@ namespace CIAO specificType (::XMLSchema::string< ACE_TCHAR > const& e) { if (specificType_.get ()) - { - *specificType_ = e; - } + { + *specificType_ = e; + } else - { - specificType_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); - specificType_->container (this); - } + { + specificType_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); + specificType_->container (this); + } } // ComponentInterfaceDescription - // + // ComponentInterfaceDescription::supportedType_iterator ComponentInterfaceDescription:: begin_supportedType () { @@ -246,7 +246,7 @@ namespace CIAO } // ComponentInterfaceDescription - // + // ComponentInterfaceDescription::idlFile_iterator ComponentInterfaceDescription:: begin_idlFile () { @@ -284,7 +284,7 @@ namespace CIAO } // ComponentInterfaceDescription - // + // ComponentInterfaceDescription::configProperty_iterator ComponentInterfaceDescription:: begin_configProperty () { @@ -322,7 +322,7 @@ namespace CIAO } // ComponentInterfaceDescription - // + // ComponentInterfaceDescription::port_iterator ComponentInterfaceDescription:: begin_port () { @@ -360,7 +360,7 @@ namespace CIAO } // ComponentInterfaceDescription - // + // ComponentInterfaceDescription::property_iterator ComponentInterfaceDescription:: begin_property () { @@ -398,7 +398,7 @@ namespace CIAO } // ComponentInterfaceDescription - // + // ComponentInterfaceDescription::infoProperty_iterator ComponentInterfaceDescription:: begin_infoProperty () { @@ -436,7 +436,7 @@ namespace CIAO } // ComponentInterfaceDescription - // + // bool ComponentInterfaceDescription:: contentLocation_p () const { @@ -453,19 +453,19 @@ namespace CIAO contentLocation (::XMLSchema::string< ACE_TCHAR > const& e) { if (contentLocation_.get ()) - { - *contentLocation_ = e; - } + { + *contentLocation_ = e; + } else - { - contentLocation_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); - contentLocation_->container (this); - } + { + contentLocation_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); + contentLocation_->container (this); + } } // ComponentInterfaceDescription - // + // bool ComponentInterfaceDescription:: href_p () const { @@ -488,15 +488,15 @@ namespace CIAO href (::XMLSchema::string< ACE_TCHAR > const& e) { if (href_.get ()) - { - *href_ = e; - } + { + *href_ = e; + } else - { - href_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); - href_->container (this); - } + { + href_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); + href_->container (this); + } } } } @@ -510,95 +510,95 @@ namespace CIAO ComponentInterfaceDescription:: ComponentInterfaceDescription (::XSCRT::XML::Element< ACE_TCHAR > const& e) - :Base__ (e), regulator__ () + :Base__ (e), regulator__ () { ::XSCRT::Parser< ACE_TCHAR > p (e); while (p.more_elements ()) - { - ::XSCRT::XML::Element< ACE_TCHAR > e (p.next_element ()); - ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (e.name ())); - - if (n == "label") - { - ::XMLSchema::string< ACE_TCHAR > t (e); - label (t); - } - - else if (n == "UUID") - { - ::XMLSchema::string< ACE_TCHAR > t (e); - UUID (t); - } - - else if (n == "specificType") - { - ::XMLSchema::string< ACE_TCHAR > t (e); - specificType (t); - } - - else if (n == "supportedType") - { - ::XMLSchema::string< ACE_TCHAR > t (e); - add_supportedType (t); - } - - else if (n == "idlFile") - { - ::XMLSchema::string< ACE_TCHAR > t (e); - add_idlFile (t); - } - - else if (n == "configProperty") - { - ::CIAO::Config_Handlers::Property t (e); - add_configProperty (t); - } - - else if (n == "port") - { - ::CIAO::Config_Handlers::ComponentPortDescription t (e); - add_port (t); - } - - else if (n == "property") - { - ::CIAO::Config_Handlers::ComponentPropertyDescription t (e); - add_property (t); - } - - else if (n == "infoProperty") { - ::CIAO::Config_Handlers::Property t (e); - add_infoProperty (t); + ::XSCRT::XML::Element< ACE_TCHAR > e (p.next_element ()); + ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (e.name ())); + + if (n == "label") + { + ::XMLSchema::string< ACE_TCHAR > t (e); + label (t); + } + + else if (n == "UUID") + { + ::XMLSchema::string< ACE_TCHAR > t (e); + UUID (t); + } + + else if (n == "specificType") + { + ::XMLSchema::string< ACE_TCHAR > t (e); + specificType (t); + } + + else if (n == "supportedType") + { + ::XMLSchema::string< ACE_TCHAR > t (e); + add_supportedType (t); + } + + else if (n == "idlFile") + { + ::XMLSchema::string< ACE_TCHAR > t (e); + add_idlFile (t); + } + + else if (n == "configProperty") + { + ::CIAO::Config_Handlers::Property t (e); + add_configProperty (t); + } + + else if (n == "port") + { + ::CIAO::Config_Handlers::ComponentPortDescription t (e); + add_port (t); + } + + else if (n == "property") + { + ::CIAO::Config_Handlers::ComponentPropertyDescription t (e); + add_property (t); + } + + else if (n == "infoProperty") + { + ::CIAO::Config_Handlers::Property t (e); + add_infoProperty (t); + } + + else if (n == "contentLocation") + { + ::XMLSchema::string< ACE_TCHAR > t (e); + contentLocation (t); + } + + else + { + } } - else if (n == "contentLocation") - { - ::XMLSchema::string< ACE_TCHAR > t (e); - contentLocation (t); - } - - else - { - } - } - while (p.more_attributes ()) - { - ::XSCRT::XML::Attribute< ACE_TCHAR > a (p.next_attribute ()); - ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (a.name ())); - if (n == "href") { - ::XMLSchema::string< ACE_TCHAR > t (a); - href (t); + ::XSCRT::XML::Attribute< ACE_TCHAR > a (p.next_attribute ()); + ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (a.name ())); + if (n == "href") + { + ::XMLSchema::string< ACE_TCHAR > t (a); + href (t); + } + + else + { + } } - - else - { - } - } } } } @@ -777,17 +777,17 @@ namespace CIAO ComponentInterfaceDescription::Type::supportedType_iterator b (o.begin_supportedType()), e (o.end_supportedType()); if (b != e) - { - supportedType_pre (o); - for (; b != e;) { - dispatch (*b); - if (++b != e) supportedType_next (o); + supportedType_pre (o); + for (; b != e;) + { + dispatch (*b); + if (++b != e) supportedType_next (o); + } + + supportedType_post (o); } - supportedType_post (o); - } - else supportedType_none (o); } @@ -799,17 +799,17 @@ namespace CIAO ComponentInterfaceDescription::Type::supportedType_const_iterator b (o.begin_supportedType()), e (o.end_supportedType()); if (b != e) - { - supportedType_pre (o); - for (; b != e;) { - dispatch (*b); - if (++b != e) supportedType_next (o); + supportedType_pre (o); + for (; b != e;) + { + dispatch (*b); + if (++b != e) supportedType_next (o); + } + + supportedType_post (o); } - supportedType_post (o); - } - else supportedType_none (o); } @@ -861,17 +861,17 @@ namespace CIAO ComponentInterfaceDescription::Type::idlFile_iterator b (o.begin_idlFile()), e (o.end_idlFile()); if (b != e) - { - idlFile_pre (o); - for (; b != e;) { - dispatch (*b); - if (++b != e) idlFile_next (o); + idlFile_pre (o); + for (; b != e;) + { + dispatch (*b); + if (++b != e) idlFile_next (o); + } + + idlFile_post (o); } - idlFile_post (o); - } - else idlFile_none (o); } @@ -883,17 +883,17 @@ namespace CIAO ComponentInterfaceDescription::Type::idlFile_const_iterator b (o.begin_idlFile()), e (o.end_idlFile()); if (b != e) - { - idlFile_pre (o); - for (; b != e;) { - dispatch (*b); - if (++b != e) idlFile_next (o); + idlFile_pre (o); + for (; b != e;) + { + dispatch (*b); + if (++b != e) idlFile_next (o); + } + + idlFile_post (o); } - idlFile_post (o); - } - else idlFile_none (o); } @@ -945,17 +945,17 @@ namespace CIAO ComponentInterfaceDescription::Type::configProperty_iterator b (o.begin_configProperty()), e (o.end_configProperty()); if (b != e) - { - configProperty_pre (o); - for (; b != e;) { - dispatch (*b); - if (++b != e) configProperty_next (o); + configProperty_pre (o); + for (; b != e;) + { + dispatch (*b); + if (++b != e) configProperty_next (o); + } + + configProperty_post (o); } - configProperty_post (o); - } - else configProperty_none (o); } @@ -967,17 +967,17 @@ namespace CIAO ComponentInterfaceDescription::Type::configProperty_const_iterator b (o.begin_configProperty()), e (o.end_configProperty()); if (b != e) - { - configProperty_pre (o); - for (; b != e;) { - dispatch (*b); - if (++b != e) configProperty_next (o); + configProperty_pre (o); + for (; b != e;) + { + dispatch (*b); + if (++b != e) configProperty_next (o); + } + + configProperty_post (o); } - configProperty_post (o); - } - else configProperty_none (o); } @@ -1029,17 +1029,17 @@ namespace CIAO ComponentInterfaceDescription::Type::port_iterator b (o.begin_port()), e (o.end_port()); if (b != e) - { - port_pre (o); - for (; b != e;) { - dispatch (*b); - if (++b != e) port_next (o); + port_pre (o); + for (; b != e;) + { + dispatch (*b); + if (++b != e) port_next (o); + } + + port_post (o); } - port_post (o); - } - else port_none (o); } @@ -1051,17 +1051,17 @@ namespace CIAO ComponentInterfaceDescription::Type::port_const_iterator b (o.begin_port()), e (o.end_port()); if (b != e) - { - port_pre (o); - for (; b != e;) { - dispatch (*b); - if (++b != e) port_next (o); + port_pre (o); + for (; b != e;) + { + dispatch (*b); + if (++b != e) port_next (o); + } + + port_post (o); } - port_post (o); - } - else port_none (o); } @@ -1113,17 +1113,17 @@ namespace CIAO ComponentInterfaceDescription::Type::property_iterator b (o.begin_property()), e (o.end_property()); if (b != e) - { - property_pre (o); - for (; b != e;) { - dispatch (*b); - if (++b != e) property_next (o); + property_pre (o); + for (; b != e;) + { + dispatch (*b); + if (++b != e) property_next (o); + } + + property_post (o); } - property_post (o); - } - else property_none (o); } @@ -1135,17 +1135,17 @@ namespace CIAO ComponentInterfaceDescription::Type::property_const_iterator b (o.begin_property()), e (o.end_property()); if (b != e) - { - property_pre (o); - for (; b != e;) { - dispatch (*b); - if (++b != e) property_next (o); + property_pre (o); + for (; b != e;) + { + dispatch (*b); + if (++b != e) property_next (o); + } + + property_post (o); } - property_post (o); - } - else property_none (o); } @@ -1197,17 +1197,17 @@ namespace CIAO ComponentInterfaceDescription::Type::infoProperty_iterator b (o.begin_infoProperty()), e (o.end_infoProperty()); if (b != e) - { - infoProperty_pre (o); - for (; b != e;) { - dispatch (*b); - if (++b != e) infoProperty_next (o); + infoProperty_pre (o); + for (; b != e;) + { + dispatch (*b); + if (++b != e) infoProperty_next (o); + } + + infoProperty_post (o); } - infoProperty_post (o); - } - else infoProperty_none (o); } @@ -1219,17 +1219,17 @@ namespace CIAO ComponentInterfaceDescription::Type::infoProperty_const_iterator b (o.begin_infoProperty()), e (o.end_infoProperty()); if (b != e) - { - infoProperty_pre (o); - for (; b != e;) { - dispatch (*b); - if (++b != e) infoProperty_next (o); + infoProperty_pre (o); + for (; b != e;) + { + dispatch (*b); + if (++b != e) infoProperty_next (o); + } + + infoProperty_post (o); } - infoProperty_post (o); - } - else infoProperty_none (o); } @@ -1342,7 +1342,7 @@ namespace CIAO ComponentInterfaceDescription:: ComponentInterfaceDescription (::XSCRT::XML::Element< ACE_TCHAR >& e) - : ::XSCRT::Writer< ACE_TCHAR > (e) + : ::XSCRT::Writer< ACE_TCHAR > (e) { } |