diff options
Diffstat (limited to 'TAO/CIAO/DAnCE/Config_Handlers/cdd.cpp')
-rw-r--r-- | TAO/CIAO/DAnCE/Config_Handlers/cdd.cpp | 307 |
1 files changed, 0 insertions, 307 deletions
diff --git a/TAO/CIAO/DAnCE/Config_Handlers/cdd.cpp b/TAO/CIAO/DAnCE/Config_Handlers/cdd.cpp deleted file mode 100644 index 13335d4d873..00000000000 --- a/TAO/CIAO/DAnCE/Config_Handlers/cdd.cpp +++ /dev/null @@ -1,307 +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 "cdd.hpp" - -namespace CIAO -{ - namespace Config_Handlers - { - // Domain - // - - Domain:: - Domain (::XMLSchema::string< ACE_TCHAR > const& label__, - ::XMLSchema::string< ACE_TCHAR > const& UUID__) - : - label_ (new ::XMLSchema::string< ACE_TCHAR > (label__)), - UUID_ (new ::XMLSchema::string< ACE_TCHAR > (UUID__)), - regulator__ () - { - label_->container (this); - UUID_->container (this); - } - - Domain:: - Domain (::CIAO::Config_Handlers::Domain const& s) - : - ::XSCRT::Type (), - label_ (new ::XMLSchema::string< ACE_TCHAR > (*s.label_)), - UUID_ (new ::XMLSchema::string< ACE_TCHAR > (*s.UUID_)), - sharedResource_ (s.sharedResource_.get () ? new ::CIAO::Config_Handlers::SharedResource (*s.sharedResource_) : 0), - infoProperty_ (s.infoProperty_.get () ? new ::CIAO::Config_Handlers::Property (*s.infoProperty_) : 0), - regulator__ () - { - label_->container (this); - UUID_->container (this); - if (sharedResource_.get ()) sharedResource_->container (this); - node_.reserve (s.node_.size ()); - { - for (node_const_iterator i (s.node_.begin ()); - i != s.node_.end (); - ++i) add_node (*i); - } - - if (infoProperty_.get ()) infoProperty_->container (this); - } - - ::CIAO::Config_Handlers::Domain& Domain:: - operator= (::CIAO::Config_Handlers::Domain const& s) - { - label (s.label ()); - - UUID (s.UUID ()); - - if (s.sharedResource_.get ()) sharedResource (*(s.sharedResource_)); - else sharedResource_ = ::std::auto_ptr< ::CIAO::Config_Handlers::SharedResource > (0); - - node_.clear (); - node_.reserve (s.node_.size ()); - { - for (node_const_iterator i (s.node_.begin ()); - i != s.node_.end (); - ++i) add_node (*i); - } - - if (s.infoProperty_.get ()) infoProperty (*(s.infoProperty_)); - else infoProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (0); - - return *this; - } - - - // Domain - // - ::XMLSchema::string< ACE_TCHAR > const& Domain:: - label () const - { - return *label_; - } - - ::XMLSchema::string< ACE_TCHAR >& Domain:: - label () - { - return *label_; - } - - void Domain:: - label (::XMLSchema::string< ACE_TCHAR > const& e) - { - *label_ = e; - } - - // Domain - // - ::XMLSchema::string< ACE_TCHAR > const& Domain:: - UUID () const - { - return *UUID_; - } - - ::XMLSchema::string< ACE_TCHAR >& Domain:: - UUID () - { - return *UUID_; - } - - void Domain:: - UUID (::XMLSchema::string< ACE_TCHAR > const& e) - { - *UUID_ = e; - } - - // Domain - // - bool Domain:: - sharedResource_p () const - { - return sharedResource_.get () != 0; - } - - ::CIAO::Config_Handlers::SharedResource const& Domain:: - sharedResource () const - { - return *sharedResource_; - } - - ::CIAO::Config_Handlers::SharedResource& Domain:: - sharedResource () - { - return *sharedResource_; - } - - void Domain:: - sharedResource (::CIAO::Config_Handlers::SharedResource const& e) - { - if (sharedResource_.get ()) - { - *sharedResource_ = e; - } - - else - { - sharedResource_ = ::std::auto_ptr< ::CIAO::Config_Handlers::SharedResource > (new ::CIAO::Config_Handlers::SharedResource (e)); - sharedResource_->container (this); - } - } - - // Domain - // - Domain::node_iterator Domain:: - begin_node () - { - return node_.begin (); - } - - Domain::node_iterator Domain:: - end_node () - { - return node_.end (); - } - - Domain::node_const_iterator Domain:: - begin_node () const - { - return node_.begin (); - } - - Domain::node_const_iterator Domain:: - end_node () const - { - return node_.end (); - } - - void Domain:: - add_node (::CIAO::Config_Handlers::Node const& e) - { - if (node_.capacity () < node_.size () + 1) - { - ::std::vector< ::CIAO::Config_Handlers::Node > v; - v.reserve (node_.size () + 1); - - while (node_.size ()) - { - //@@ VC6 - ::CIAO::Config_Handlers::Node& t = node_.back (); - t.container (0); - v.push_back (t); - v.back ().container (this); - node_.pop_back (); - } - - node_.swap (v); - } - - node_.push_back (e); - node_.back ().container (this); - } - - // Domain - // - bool Domain:: - infoProperty_p () const - { - return infoProperty_.get () != 0; - } - - ::CIAO::Config_Handlers::Property const& Domain:: - infoProperty () const - { - return *infoProperty_; - } - - ::CIAO::Config_Handlers::Property& Domain:: - infoProperty () - { - return *infoProperty_; - } - - void Domain:: - infoProperty (::CIAO::Config_Handlers::Property const& e) - { - if (infoProperty_.get ()) - { - *infoProperty_ = e; - } - - else - { - infoProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (new ::CIAO::Config_Handlers::Property (e)); - infoProperty_->container (this); - } - } - } -} - -namespace CIAO -{ - namespace Config_Handlers - { - // Domain - // - - Domain:: - Domain (::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") - { - label_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); - label_->container (this); - } - - else if (n == "UUID") - { - UUID_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); - UUID_->container (this); - } - - else if (n == "sharedResource") - { - ::CIAO::Config_Handlers::SharedResource t (e); - sharedResource (t); - } - - else if (n == "node") - { - ::CIAO::Config_Handlers::Node t (e); - add_node (t); - } - - else if (n == "infoProperty") - { - ::CIAO::Config_Handlers::Property t (e); - infoProperty (t); - } - - else - { - } - } - } - } -} - -namespace CIAO -{ - namespace Config_Handlers - { - } -} - |