diff options
Diffstat (limited to 'TAO/CIAO/DAnCE/Config_Handlers/ccd.cpp')
-rw-r--r-- | TAO/CIAO/DAnCE/Config_Handlers/ccd.cpp | 694 |
1 files changed, 0 insertions, 694 deletions
diff --git a/TAO/CIAO/DAnCE/Config_Handlers/ccd.cpp b/TAO/CIAO/DAnCE/Config_Handlers/ccd.cpp deleted file mode 100644 index 959265ebbf2..00000000000 --- a/TAO/CIAO/DAnCE/Config_Handlers/ccd.cpp +++ /dev/null @@ -1,694 +0,0 @@ -/* $Id$ - * This code was generated by the XML Schema Compiler. - * - * 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 -{ - namespace Config_Handlers - { - // ComponentInterfaceDescription - // - - ComponentInterfaceDescription:: - ComponentInterfaceDescription () - : - 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), - regulator__ () - { - if (label_.get ()) label_->container (this); - if (UUID_.get ()) UUID_->container (this); - if (specificType_.get ()) specificType_->container (this); - supportedType_.reserve (s.supportedType_.size ()); - { - for (supportedType_const_iterator i (s.supportedType_.begin ()); - i != s.supportedType_.end (); - ++i) add_supportedType (*i); - } - - idlFile_.reserve (s.idlFile_.size ()); - { - for (idlFile_const_iterator i (s.idlFile_.begin ()); - i != s.idlFile_.end (); - ++i) add_idlFile (*i); - } - - configProperty_.reserve (s.configProperty_.size ()); - { - for (configProperty_const_iterator i (s.configProperty_.begin ()); - i != s.configProperty_.end (); - ++i) add_configProperty (*i); - } - - port_.reserve (s.port_.size ()); - { - for (port_const_iterator i (s.port_.begin ()); - i != s.port_.end (); - ++i) add_port (*i); - } - - property_.reserve (s.property_.size ()); - { - for (property_const_iterator i (s.property_.begin ()); - i != s.property_.end (); - ++i) add_property (*i); - } - - infoProperty_.reserve (s.infoProperty_.size ()); - { - for (infoProperty_const_iterator i (s.infoProperty_.begin ()); - i != s.infoProperty_.end (); - ++i) add_infoProperty (*i); - } - - if (contentLocation_.get ()) contentLocation_->container (this); - } - - ::CIAO::Config_Handlers::ComponentInterfaceDescription& ComponentInterfaceDescription:: - operator= (::CIAO::Config_Handlers::ComponentInterfaceDescription const& s) - { - if (s.label_.get ()) label (*(s.label_)); - else label_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (0); - - if (s.UUID_.get ()) UUID (*(s.UUID_)); - else UUID_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (0); - - if (s.specificType_.get ()) specificType (*(s.specificType_)); - else specificType_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (0); - - supportedType_.clear (); - supportedType_.reserve (s.supportedType_.size ()); - { - for (supportedType_const_iterator i (s.supportedType_.begin ()); - i != s.supportedType_.end (); - ++i) add_supportedType (*i); - } - - idlFile_.clear (); - idlFile_.reserve (s.idlFile_.size ()); - { - for (idlFile_const_iterator i (s.idlFile_.begin ()); - i != s.idlFile_.end (); - ++i) add_idlFile (*i); - } - - configProperty_.clear (); - configProperty_.reserve (s.configProperty_.size ()); - { - for (configProperty_const_iterator i (s.configProperty_.begin ()); - i != s.configProperty_.end (); - ++i) add_configProperty (*i); - } - - port_.clear (); - port_.reserve (s.port_.size ()); - { - for (port_const_iterator i (s.port_.begin ()); - i != s.port_.end (); - ++i) add_port (*i); - } - - property_.clear (); - property_.reserve (s.property_.size ()); - { - for (property_const_iterator i (s.property_.begin ()); - i != s.property_.end (); - ++i) add_property (*i); - } - - infoProperty_.clear (); - infoProperty_.reserve (s.infoProperty_.size ()); - { - for (infoProperty_const_iterator i (s.infoProperty_.begin ()); - i != s.infoProperty_.end (); - ++i) add_infoProperty (*i); - } - - if (s.contentLocation_.get ()) contentLocation (*(s.contentLocation_)); - else contentLocation_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (0); - - return *this; - } - - - // ComponentInterfaceDescription - // - bool ComponentInterfaceDescription:: - label_p () const - { - return label_.get () != 0; - } - - ::XMLSchema::string< ACE_TCHAR > const& ComponentInterfaceDescription:: - label () const - { - return *label_; - } - - ::XMLSchema::string< ACE_TCHAR >& ComponentInterfaceDescription:: - label () - { - return *label_; - } - - void ComponentInterfaceDescription:: - label (::XMLSchema::string< ACE_TCHAR > const& e) - { - if (label_.get ()) - { - *label_ = e; - } - - else - { - label_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); - label_->container (this); - } - } - - // ComponentInterfaceDescription - // - bool ComponentInterfaceDescription:: - UUID_p () const - { - return UUID_.get () != 0; - } - - ::XMLSchema::string< ACE_TCHAR > const& ComponentInterfaceDescription:: - UUID () const - { - return *UUID_; - } - - ::XMLSchema::string< ACE_TCHAR >& ComponentInterfaceDescription:: - UUID () - { - return *UUID_; - } - - void ComponentInterfaceDescription:: - UUID (::XMLSchema::string< ACE_TCHAR > const& e) - { - if (UUID_.get ()) - { - *UUID_ = e; - } - - else - { - UUID_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); - UUID_->container (this); - } - } - - // ComponentInterfaceDescription - // - bool ComponentInterfaceDescription:: - specificType_p () const - { - return specificType_.get () != 0; - } - - ::XMLSchema::string< ACE_TCHAR > const& ComponentInterfaceDescription:: - specificType () const - { - return *specificType_; - } - - ::XMLSchema::string< ACE_TCHAR >& ComponentInterfaceDescription:: - specificType () - { - return *specificType_; - } - - void ComponentInterfaceDescription:: - specificType (::XMLSchema::string< ACE_TCHAR > const& e) - { - if (specificType_.get ()) - { - *specificType_ = e; - } - - else - { - specificType_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); - specificType_->container (this); - } - } - - // ComponentInterfaceDescription - // - ComponentInterfaceDescription::supportedType_iterator ComponentInterfaceDescription:: - begin_supportedType () - { - return supportedType_.begin (); - } - - ComponentInterfaceDescription::supportedType_iterator ComponentInterfaceDescription:: - end_supportedType () - { - return supportedType_.end (); - } - - ComponentInterfaceDescription::supportedType_const_iterator ComponentInterfaceDescription:: - begin_supportedType () const - { - return supportedType_.begin (); - } - - ComponentInterfaceDescription::supportedType_const_iterator ComponentInterfaceDescription:: - end_supportedType () const - { - return supportedType_.end (); - } - - void ComponentInterfaceDescription:: - add_supportedType (::XMLSchema::string< ACE_TCHAR > const& e) - { - if (supportedType_.capacity () < supportedType_.size () + 1) - { - ::std::vector< ::XMLSchema::string< ACE_TCHAR > > v; - v.reserve (supportedType_.size () + 1); - - while (supportedType_.size ()) - { - //@@ VC6 - ::XMLSchema::string< ACE_TCHAR >& t = supportedType_.back (); - t.container (0); - v.push_back (t); - v.back ().container (this); - supportedType_.pop_back (); - } - - supportedType_.swap (v); - } - - supportedType_.push_back (e); - supportedType_.back ().container (this); - } - - // ComponentInterfaceDescription - // - ComponentInterfaceDescription::idlFile_iterator ComponentInterfaceDescription:: - begin_idlFile () - { - return idlFile_.begin (); - } - - ComponentInterfaceDescription::idlFile_iterator ComponentInterfaceDescription:: - end_idlFile () - { - return idlFile_.end (); - } - - ComponentInterfaceDescription::idlFile_const_iterator ComponentInterfaceDescription:: - begin_idlFile () const - { - return idlFile_.begin (); - } - - ComponentInterfaceDescription::idlFile_const_iterator ComponentInterfaceDescription:: - end_idlFile () const - { - return idlFile_.end (); - } - - void ComponentInterfaceDescription:: - add_idlFile (::XMLSchema::string< ACE_TCHAR > const& e) - { - if (idlFile_.capacity () < idlFile_.size () + 1) - { - ::std::vector< ::XMLSchema::string< ACE_TCHAR > > v; - v.reserve (idlFile_.size () + 1); - - while (idlFile_.size ()) - { - //@@ VC6 - ::XMLSchema::string< ACE_TCHAR >& t = idlFile_.back (); - t.container (0); - v.push_back (t); - v.back ().container (this); - idlFile_.pop_back (); - } - - idlFile_.swap (v); - } - - idlFile_.push_back (e); - idlFile_.back ().container (this); - } - - // ComponentInterfaceDescription - // - ComponentInterfaceDescription::configProperty_iterator ComponentInterfaceDescription:: - begin_configProperty () - { - return configProperty_.begin (); - } - - ComponentInterfaceDescription::configProperty_iterator ComponentInterfaceDescription:: - end_configProperty () - { - return configProperty_.end (); - } - - ComponentInterfaceDescription::configProperty_const_iterator ComponentInterfaceDescription:: - begin_configProperty () const - { - return configProperty_.begin (); - } - - ComponentInterfaceDescription::configProperty_const_iterator ComponentInterfaceDescription:: - end_configProperty () const - { - return configProperty_.end (); - } - - void ComponentInterfaceDescription:: - add_configProperty (::CIAO::Config_Handlers::Property const& e) - { - if (configProperty_.capacity () < configProperty_.size () + 1) - { - ::std::vector< ::CIAO::Config_Handlers::Property > v; - v.reserve (configProperty_.size () + 1); - - while (configProperty_.size ()) - { - //@@ VC6 - ::CIAO::Config_Handlers::Property& t = configProperty_.back (); - t.container (0); - v.push_back (t); - v.back ().container (this); - configProperty_.pop_back (); - } - - configProperty_.swap (v); - } - - configProperty_.push_back (e); - configProperty_.back ().container (this); - } - - // ComponentInterfaceDescription - // - ComponentInterfaceDescription::port_iterator ComponentInterfaceDescription:: - begin_port () - { - return port_.begin (); - } - - ComponentInterfaceDescription::port_iterator ComponentInterfaceDescription:: - end_port () - { - return port_.end (); - } - - ComponentInterfaceDescription::port_const_iterator ComponentInterfaceDescription:: - begin_port () const - { - return port_.begin (); - } - - ComponentInterfaceDescription::port_const_iterator ComponentInterfaceDescription:: - end_port () const - { - return port_.end (); - } - - void ComponentInterfaceDescription:: - add_port (::CIAO::Config_Handlers::ComponentPortDescription const& e) - { - if (port_.capacity () < port_.size () + 1) - { - ::std::vector< ::CIAO::Config_Handlers::ComponentPortDescription > v; - v.reserve (port_.size () + 1); - - while (port_.size ()) - { - //@@ VC6 - ::CIAO::Config_Handlers::ComponentPortDescription& t = port_.back (); - t.container (0); - v.push_back (t); - v.back ().container (this); - port_.pop_back (); - } - - port_.swap (v); - } - - port_.push_back (e); - port_.back ().container (this); - } - - // ComponentInterfaceDescription - // - ComponentInterfaceDescription::property_iterator ComponentInterfaceDescription:: - begin_property () - { - return property_.begin (); - } - - ComponentInterfaceDescription::property_iterator ComponentInterfaceDescription:: - end_property () - { - return property_.end (); - } - - ComponentInterfaceDescription::property_const_iterator ComponentInterfaceDescription:: - begin_property () const - { - return property_.begin (); - } - - ComponentInterfaceDescription::property_const_iterator ComponentInterfaceDescription:: - end_property () const - { - return property_.end (); - } - - void ComponentInterfaceDescription:: - add_property (::CIAO::Config_Handlers::ComponentPropertyDescription const& e) - { - if (property_.capacity () < property_.size () + 1) - { - ::std::vector< ::CIAO::Config_Handlers::ComponentPropertyDescription > v; - v.reserve (property_.size () + 1); - - while (property_.size ()) - { - //@@ VC6 - ::CIAO::Config_Handlers::ComponentPropertyDescription& t = property_.back (); - t.container (0); - v.push_back (t); - v.back ().container (this); - property_.pop_back (); - } - - property_.swap (v); - } - - property_.push_back (e); - property_.back ().container (this); - } - - // ComponentInterfaceDescription - // - ComponentInterfaceDescription::infoProperty_iterator ComponentInterfaceDescription:: - begin_infoProperty () - { - return infoProperty_.begin (); - } - - ComponentInterfaceDescription::infoProperty_iterator ComponentInterfaceDescription:: - end_infoProperty () - { - return infoProperty_.end (); - } - - ComponentInterfaceDescription::infoProperty_const_iterator ComponentInterfaceDescription:: - begin_infoProperty () const - { - return infoProperty_.begin (); - } - - ComponentInterfaceDescription::infoProperty_const_iterator ComponentInterfaceDescription:: - end_infoProperty () const - { - return infoProperty_.end (); - } - - void ComponentInterfaceDescription:: - add_infoProperty (::CIAO::Config_Handlers::Property const& e) - { - if (infoProperty_.capacity () < infoProperty_.size () + 1) - { - ::std::vector< ::CIAO::Config_Handlers::Property > v; - v.reserve (infoProperty_.size () + 1); - - while (infoProperty_.size ()) - { - //@@ VC6 - ::CIAO::Config_Handlers::Property& t = infoProperty_.back (); - t.container (0); - v.push_back (t); - v.back ().container (this); - infoProperty_.pop_back (); - } - - infoProperty_.swap (v); - } - - infoProperty_.push_back (e); - infoProperty_.back ().container (this); - } - - // ComponentInterfaceDescription - // - bool ComponentInterfaceDescription:: - contentLocation_p () const - { - return contentLocation_.get () != 0; - } - - ::XMLSchema::string< ACE_TCHAR > const& ComponentInterfaceDescription:: - contentLocation () const - { - return *contentLocation_; - } - - ::XMLSchema::string< ACE_TCHAR >& ComponentInterfaceDescription:: - contentLocation () - { - return *contentLocation_; - } - - void ComponentInterfaceDescription:: - contentLocation (::XMLSchema::string< ACE_TCHAR > const& e) - { - if (contentLocation_.get ()) - { - *contentLocation_ = e; - } - - else - { - contentLocation_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); - contentLocation_->container (this); - } - } - } -} - -namespace CIAO -{ - namespace Config_Handlers - { - // ComponentInterfaceDescription - // - - ComponentInterfaceDescription:: - ComponentInterfaceDescription (::XSCRT::XML::Element< ACE_TCHAR > const& e) - :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); - } - - else if (n == "contentLocation") - { - ::XMLSchema::string< ACE_TCHAR > t (e); - contentLocation (t); - } - - else - { - } - } - } - } -} - -namespace CIAO -{ - namespace Config_Handlers - { - } -} - |