diff options
Diffstat (limited to 'TAO/CIAO/DAnCE/Config_Handlers/iad.cpp')
-rw-r--r-- | TAO/CIAO/DAnCE/Config_Handlers/iad.cpp | 951 |
1 files changed, 502 insertions, 449 deletions
diff --git a/TAO/CIAO/DAnCE/Config_Handlers/iad.cpp b/TAO/CIAO/DAnCE/Config_Handlers/iad.cpp index 1e4d3acfca7..bf382f1dc26 100644 --- a/TAO/CIAO/DAnCE/Config_Handlers/iad.cpp +++ b/TAO/CIAO/DAnCE/Config_Handlers/iad.cpp @@ -3,603 +3,655 @@ * * 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 "iad.hpp" namespace CIAO { namespace Config_Handlers { - // NamedImplementationArtifact - // + // NamedImplementationArtifact + // + + NamedImplementationArtifact:: + NamedImplementationArtifact (::XMLSchema::string< ACE_TCHAR > const& name__, + ::CIAO::Config_Handlers::ImplementationArtifactDescription const& referencedArtifact__) + : + name_ (new ::XMLSchema::string< ACE_TCHAR > (name__)), + referencedArtifact_ (new ::CIAO::Config_Handlers::ImplementationArtifactDescription (referencedArtifact__)), + regulator__ () + { + name_->container (this); + referencedArtifact_->container (this); + } - NamedImplementationArtifact:: - NamedImplementationArtifact (::XMLSchema::string< ACE_TCHAR > const& name__, - ::CIAO::Config_Handlers::ImplementationArtifactDescription const& referencedArtifact__) - : - name_ (new ::XMLSchema::string< ACE_TCHAR > (name__)), - referencedArtifact_ (new ::CIAO::Config_Handlers::ImplementationArtifactDescription (referencedArtifact__)), - regulator__ () - { - name_->container (this); - referencedArtifact_->container (this); - } + NamedImplementationArtifact:: + NamedImplementationArtifact (::CIAO::Config_Handlers::NamedImplementationArtifact const& s) + : + name_ (new ::XMLSchema::string< ACE_TCHAR > (*s.name_)), + referencedArtifact_ (new ::CIAO::Config_Handlers::ImplementationArtifactDescription (*s.referencedArtifact_)), + regulator__ () + { + name_->container (this); + referencedArtifact_->container (this); + } - NamedImplementationArtifact:: - NamedImplementationArtifact (::CIAO::Config_Handlers::NamedImplementationArtifact const& s) - : - ::XSCRT::Type (), - name_ (new ::XMLSchema::string< ACE_TCHAR > (*s.name_)), - referencedArtifact_ (new ::CIAO::Config_Handlers::ImplementationArtifactDescription (*s.referencedArtifact_)), - regulator__ () - { - name_->container (this); - referencedArtifact_->container (this); - } + ::CIAO::Config_Handlers::NamedImplementationArtifact& NamedImplementationArtifact:: + operator= (::CIAO::Config_Handlers::NamedImplementationArtifact const& s) + { + name (s.name ()); - ::CIAO::Config_Handlers::NamedImplementationArtifact& NamedImplementationArtifact:: - operator= (::CIAO::Config_Handlers::NamedImplementationArtifact const& s) - { - name (s.name ()); + referencedArtifact (s.referencedArtifact ()); - referencedArtifact (s.referencedArtifact ()); + return *this; + } - return *this; - } + // NamedImplementationArtifact + // + ::XMLSchema::string< ACE_TCHAR > const& NamedImplementationArtifact:: + name () const + { + return *name_; + } - // NamedImplementationArtifact - // - ::XMLSchema::string< ACE_TCHAR > const& NamedImplementationArtifact:: - name () const - { - return *name_; - } + ::XMLSchema::string< ACE_TCHAR >& NamedImplementationArtifact:: + name () + { + return *name_; + } - ::XMLSchema::string< ACE_TCHAR >& NamedImplementationArtifact:: - name () - { - return *name_; - } + void NamedImplementationArtifact:: + name (::XMLSchema::string< ACE_TCHAR > const& e) + { + *name_ = e; + } - void NamedImplementationArtifact:: - name (::XMLSchema::string< ACE_TCHAR > const& e) - { - *name_ = e; - } + // NamedImplementationArtifact + // + ::CIAO::Config_Handlers::ImplementationArtifactDescription const& NamedImplementationArtifact:: + referencedArtifact () const + { + return *referencedArtifact_; + } - // NamedImplementationArtifact - // - ::CIAO::Config_Handlers::ImplementationArtifactDescription const& NamedImplementationArtifact:: - referencedArtifact () const - { - return *referencedArtifact_; - } + ::CIAO::Config_Handlers::ImplementationArtifactDescription& NamedImplementationArtifact:: + referencedArtifact () + { + return *referencedArtifact_; + } - ::CIAO::Config_Handlers::ImplementationArtifactDescription& NamedImplementationArtifact:: - referencedArtifact () + void NamedImplementationArtifact:: + referencedArtifact (::CIAO::Config_Handlers::ImplementationArtifactDescription const& e) + { + *referencedArtifact_ = e; + } + + + // ImplementationArtifactDescription + // + + ImplementationArtifactDescription:: + ImplementationArtifactDescription () + : + regulator__ () + { + } + + ImplementationArtifactDescription:: + ImplementationArtifactDescription (::CIAO::Config_Handlers::ImplementationArtifactDescription const& s) + : + 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), + deployRequirement_ (s.deployRequirement_.get () ? new ::CIAO::Config_Handlers::Requirement (*s.deployRequirement_) : 0), + infoProperty_ (s.infoProperty_.get () ? new ::CIAO::Config_Handlers::Property (*s.infoProperty_) : 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); + location_.reserve (s.location_.size ()); { - return *referencedArtifact_; + for (location_const_iterator i (s.location_.begin ()); + i != s.location_.end (); + ++i) add_location (*i); } - void NamedImplementationArtifact:: - referencedArtifact (::CIAO::Config_Handlers::ImplementationArtifactDescription const& e) + if (execParameter_.get ()) execParameter_->container (this); + if (deployRequirement_.get ()) deployRequirement_->container (this); + dependsOn_.reserve (s.dependsOn_.size ()); { - *referencedArtifact_ = e; + for (dependsOn_const_iterator i (s.dependsOn_.begin ()); + i != s.dependsOn_.end (); + ++i) add_dependsOn (*i); } + if (infoProperty_.get ()) infoProperty_->container (this); + if (contentLocation_.get ()) contentLocation_->container (this); + if (href_.get ()) href_->container (this); + } + + ::CIAO::Config_Handlers::ImplementationArtifactDescription& ImplementationArtifactDescription:: + operator= (::CIAO::Config_Handlers::ImplementationArtifactDescription const& s) + { + if (s.label_.get ()) label (*(s.label_)); + else label_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (0); - // ImplementationArtifactDescription - // + if (s.UUID_.get ()) UUID (*(s.UUID_)); + else UUID_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (0); - ImplementationArtifactDescription:: - ImplementationArtifactDescription () - : - regulator__ () + location_.clear (); + location_.reserve (s.location_.size ()); { + for (location_const_iterator i (s.location_.begin ()); + i != s.location_.end (); + ++i) add_location (*i); } - ImplementationArtifactDescription:: - ImplementationArtifactDescription (::CIAO::Config_Handlers::ImplementationArtifactDescription 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), - execParameter_ (s.execParameter_.get () ? new ::CIAO::Config_Handlers::Property (*s.execParameter_) : 0), - deployRequirement_ (s.deployRequirement_.get () ? new ::CIAO::Config_Handlers::Requirement (*s.deployRequirement_) : 0), - infoProperty_ (s.infoProperty_.get () ? new ::CIAO::Config_Handlers::Property (*s.infoProperty_) : 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); - location_.reserve (s.location_.size ()); - { - for (location_const_iterator i (s.location_.begin ()); - i != s.location_.end (); - ++i) add_location (*i); - } + if (s.execParameter_.get ()) execParameter (*(s.execParameter_)); + else execParameter_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (0); - if (execParameter_.get ()) execParameter_->container (this); - if (deployRequirement_.get ()) deployRequirement_->container (this); - dependsOn_.reserve (s.dependsOn_.size ()); - { - for (dependsOn_const_iterator i (s.dependsOn_.begin ()); - i != s.dependsOn_.end (); - ++i) add_dependsOn (*i); - } - - if (infoProperty_.get ()) infoProperty_->container (this); - if (contentLocation_.get ()) contentLocation_->container (this); - } + if (s.deployRequirement_.get ()) deployRequirement (*(s.deployRequirement_)); + else deployRequirement_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > (0); - ::CIAO::Config_Handlers::ImplementationArtifactDescription& ImplementationArtifactDescription:: - operator= (::CIAO::Config_Handlers::ImplementationArtifactDescription const& s) + dependsOn_.clear (); + dependsOn_.reserve (s.dependsOn_.size ()); { - 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); + for (dependsOn_const_iterator i (s.dependsOn_.begin ()); + i != s.dependsOn_.end (); + ++i) add_dependsOn (*i); + } - location_.clear (); - location_.reserve (s.location_.size ()); - { - for (location_const_iterator i (s.location_.begin ()); - i != s.location_.end (); - ++i) add_location (*i); - } + if (s.infoProperty_.get ()) infoProperty (*(s.infoProperty_)); + else infoProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (0); - if (s.execParameter_.get ()) execParameter (*(s.execParameter_)); - else execParameter_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (0); + if (s.contentLocation_.get ()) contentLocation (*(s.contentLocation_)); + else contentLocation_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (0); - if (s.deployRequirement_.get ()) deployRequirement (*(s.deployRequirement_)); - else deployRequirement_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > (0); + if (s.href_.get ()) href (*(s.href_)); + else href_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (0); - dependsOn_.clear (); - dependsOn_.reserve (s.dependsOn_.size ()); - { - for (dependsOn_const_iterator i (s.dependsOn_.begin ()); - i != s.dependsOn_.end (); - ++i) add_dependsOn (*i); - } + return *this; + } - if (s.infoProperty_.get ()) infoProperty (*(s.infoProperty_)); - else infoProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (0); - if (s.contentLocation_.get ()) contentLocation (*(s.contentLocation_)); - else contentLocation_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (0); + // ImplementationArtifactDescription + // + bool ImplementationArtifactDescription:: + label_p () const + { + return label_.get () != 0; + } - return *this; - } + ::XMLSchema::string< ACE_TCHAR > const& ImplementationArtifactDescription:: + label () const + { + return *label_; + } + ::XMLSchema::string< ACE_TCHAR >& ImplementationArtifactDescription:: + label () + { + return *label_; + } - // ImplementationArtifactDescription - // - bool ImplementationArtifactDescription:: - label_p () const + void ImplementationArtifactDescription:: + label (::XMLSchema::string< ACE_TCHAR > const& e) + { + if (label_.get ()) { - return label_.get () != 0; + *label_ = e; } - ::XMLSchema::string< ACE_TCHAR > const& ImplementationArtifactDescription:: - label () const + else { - return *label_; + label_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); + label_->container (this); } + } - ::XMLSchema::string< ACE_TCHAR >& ImplementationArtifactDescription:: - label () - { - return *label_; - } + // ImplementationArtifactDescription + // + bool ImplementationArtifactDescription:: + UUID_p () const + { + return UUID_.get () != 0; + } - void ImplementationArtifactDescription:: - label (::XMLSchema::string< ACE_TCHAR > const& e) - { - if (label_.get ()) - { - *label_ = e; - } + ::XMLSchema::string< ACE_TCHAR > const& ImplementationArtifactDescription:: + UUID () const + { + return *UUID_; + } - else - { - label_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); - label_->container (this); - } - } + ::XMLSchema::string< ACE_TCHAR >& ImplementationArtifactDescription:: + UUID () + { + return *UUID_; + } - // ImplementationArtifactDescription - // - bool ImplementationArtifactDescription:: - UUID_p () const + void ImplementationArtifactDescription:: + UUID (::XMLSchema::string< ACE_TCHAR > const& e) + { + if (UUID_.get ()) { - return UUID_.get () != 0; + *UUID_ = e; } - ::XMLSchema::string< ACE_TCHAR > const& ImplementationArtifactDescription:: - UUID () const + else { - return *UUID_; + UUID_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); + UUID_->container (this); } + } - ::XMLSchema::string< ACE_TCHAR >& ImplementationArtifactDescription:: - UUID () - { - return *UUID_; - } + // ImplementationArtifactDescription + // + ImplementationArtifactDescription::location_iterator ImplementationArtifactDescription:: + begin_location () + { + return location_.begin (); + } + + ImplementationArtifactDescription::location_iterator ImplementationArtifactDescription:: + end_location () + { + return location_.end (); + } + + ImplementationArtifactDescription::location_const_iterator ImplementationArtifactDescription:: + begin_location () const + { + return location_.begin (); + } - void ImplementationArtifactDescription:: - UUID (::XMLSchema::string< ACE_TCHAR > const& e) + ImplementationArtifactDescription::location_const_iterator ImplementationArtifactDescription:: + end_location () const + { + return location_.end (); + } + + void ImplementationArtifactDescription:: + add_location (::XMLSchema::string< ACE_TCHAR > const& e) + { + if (location_.capacity () < location_.size () + 1) { - if (UUID_.get ()) - { - *UUID_ = e; - } + ::std::vector< ::XMLSchema::string< ACE_TCHAR > > v; + v.reserve (location_.size () + 1); - else + while (location_.size ()) { - UUID_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); - UUID_->container (this); + //@@ VC6 + ::XMLSchema::string< ACE_TCHAR >& t = location_.back (); + t.container (0); + v.push_back (t); + v.back ().container (this); + location_.pop_back (); } - } - // ImplementationArtifactDescription - // - ImplementationArtifactDescription::location_iterator ImplementationArtifactDescription:: - begin_location () - { - return location_.begin (); + location_.swap (v); } - ImplementationArtifactDescription::location_iterator ImplementationArtifactDescription:: - end_location () - { - return location_.end (); - } + location_.push_back (e); + location_.back ().container (this); + } - ImplementationArtifactDescription::location_const_iterator ImplementationArtifactDescription:: - begin_location () const + // ImplementationArtifactDescription + // + bool ImplementationArtifactDescription:: + execParameter_p () const + { + return execParameter_.get () != 0; + } + + ::CIAO::Config_Handlers::Property const& ImplementationArtifactDescription:: + execParameter () const + { + return *execParameter_; + } + + ::CIAO::Config_Handlers::Property& ImplementationArtifactDescription:: + execParameter () + { + return *execParameter_; + } + + void ImplementationArtifactDescription:: + execParameter (::CIAO::Config_Handlers::Property const& e) + { + if (execParameter_.get ()) { - return location_.begin (); + *execParameter_ = e; } - ImplementationArtifactDescription::location_const_iterator ImplementationArtifactDescription:: - end_location () const + else { - return location_.end (); + execParameter_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (new ::CIAO::Config_Handlers::Property (e)); + execParameter_->container (this); } + } - void ImplementationArtifactDescription:: - add_location (::XMLSchema::string< ACE_TCHAR > const& e) - { - if (location_.capacity () < location_.size () + 1) - { - ::std::vector< ::XMLSchema::string< ACE_TCHAR > > v; - v.reserve (location_.size () + 1); - - while (location_.size ()) - { - //@@ VC6 - ::XMLSchema::string< ACE_TCHAR >& t = location_.back (); - t.container (0); - v.push_back (t); - v.back ().container (this); - location_.pop_back (); - } - - location_.swap (v); - } + // ImplementationArtifactDescription + // + bool ImplementationArtifactDescription:: + deployRequirement_p () const + { + return deployRequirement_.get () != 0; + } - location_.push_back (e); - location_.back ().container (this); - } + ::CIAO::Config_Handlers::Requirement const& ImplementationArtifactDescription:: + deployRequirement () const + { + return *deployRequirement_; + } - // ImplementationArtifactDescription - // - bool ImplementationArtifactDescription:: - execParameter_p () const - { - return execParameter_.get () != 0; - } + ::CIAO::Config_Handlers::Requirement& ImplementationArtifactDescription:: + deployRequirement () + { + return *deployRequirement_; + } - ::CIAO::Config_Handlers::Property const& ImplementationArtifactDescription:: - execParameter () const + void ImplementationArtifactDescription:: + deployRequirement (::CIAO::Config_Handlers::Requirement const& e) + { + if (deployRequirement_.get ()) { - return *execParameter_; + *deployRequirement_ = e; } - ::CIAO::Config_Handlers::Property& ImplementationArtifactDescription:: - execParameter () + else { - return *execParameter_; + deployRequirement_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > (new ::CIAO::Config_Handlers::Requirement (e)); + deployRequirement_->container (this); } + } - void ImplementationArtifactDescription:: - execParameter (::CIAO::Config_Handlers::Property const& e) - { - if (execParameter_.get ()) - { - *execParameter_ = e; - } + // ImplementationArtifactDescription + // + ImplementationArtifactDescription::dependsOn_iterator ImplementationArtifactDescription:: + begin_dependsOn () + { + return dependsOn_.begin (); + } - else - { - execParameter_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (new ::CIAO::Config_Handlers::Property (e)); - execParameter_->container (this); - } - } + ImplementationArtifactDescription::dependsOn_iterator ImplementationArtifactDescription:: + end_dependsOn () + { + return dependsOn_.end (); + } - // ImplementationArtifactDescription - // - bool ImplementationArtifactDescription:: - deployRequirement_p () const - { - return deployRequirement_.get () != 0; - } + ImplementationArtifactDescription::dependsOn_const_iterator ImplementationArtifactDescription:: + begin_dependsOn () const + { + return dependsOn_.begin (); + } - ::CIAO::Config_Handlers::Requirement const& ImplementationArtifactDescription:: - deployRequirement () const - { - return *deployRequirement_; - } + ImplementationArtifactDescription::dependsOn_const_iterator ImplementationArtifactDescription:: + end_dependsOn () const + { + return dependsOn_.end (); + } - ::CIAO::Config_Handlers::Requirement& ImplementationArtifactDescription:: - deployRequirement () + void ImplementationArtifactDescription:: + add_dependsOn (::CIAO::Config_Handlers::NamedImplementationArtifact const& e) + { + if (dependsOn_.capacity () < dependsOn_.size () + 1) { - return *deployRequirement_; - } + ::std::vector< ::CIAO::Config_Handlers::NamedImplementationArtifact > v; + v.reserve (dependsOn_.size () + 1); - void ImplementationArtifactDescription:: - deployRequirement (::CIAO::Config_Handlers::Requirement const& e) - { - if (deployRequirement_.get ()) + while (dependsOn_.size ()) { - *deployRequirement_ = e; + //@@ VC6 + ::CIAO::Config_Handlers::NamedImplementationArtifact& t = dependsOn_.back (); + t.container (0); + v.push_back (t); + v.back ().container (this); + dependsOn_.pop_back (); } - else - { - deployRequirement_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Requirement > (new ::CIAO::Config_Handlers::Requirement (e)); - deployRequirement_->container (this); - } + dependsOn_.swap (v); } - // ImplementationArtifactDescription - // - ImplementationArtifactDescription::dependsOn_iterator ImplementationArtifactDescription:: - begin_dependsOn () + dependsOn_.push_back (e); + dependsOn_.back ().container (this); + } + + // ImplementationArtifactDescription + // + bool ImplementationArtifactDescription:: + infoProperty_p () const + { + return infoProperty_.get () != 0; + } + + ::CIAO::Config_Handlers::Property const& ImplementationArtifactDescription:: + infoProperty () const + { + return *infoProperty_; + } + + ::CIAO::Config_Handlers::Property& ImplementationArtifactDescription:: + infoProperty () + { + return *infoProperty_; + } + + void ImplementationArtifactDescription:: + infoProperty (::CIAO::Config_Handlers::Property const& e) + { + if (infoProperty_.get ()) { - return dependsOn_.begin (); + *infoProperty_ = e; } - ImplementationArtifactDescription::dependsOn_iterator ImplementationArtifactDescription:: - end_dependsOn () + else { - return dependsOn_.end (); + infoProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (new ::CIAO::Config_Handlers::Property (e)); + infoProperty_->container (this); } + } + + // ImplementationArtifactDescription + // + bool ImplementationArtifactDescription:: + contentLocation_p () const + { + return contentLocation_.get () != 0; + } - ImplementationArtifactDescription::dependsOn_const_iterator ImplementationArtifactDescription:: - begin_dependsOn () const + ::XMLSchema::string< ACE_TCHAR > const& ImplementationArtifactDescription:: + contentLocation () const + { + return *contentLocation_; + } + + ::XMLSchema::string< ACE_TCHAR >& ImplementationArtifactDescription:: + contentLocation () + { + return *contentLocation_; + } + + void ImplementationArtifactDescription:: + contentLocation (::XMLSchema::string< ACE_TCHAR > const& e) + { + if (contentLocation_.get ()) { - return dependsOn_.begin (); + *contentLocation_ = e; } - ImplementationArtifactDescription::dependsOn_const_iterator ImplementationArtifactDescription:: - end_dependsOn () const + else { - return dependsOn_.end (); + contentLocation_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); + contentLocation_->container (this); } + } - void ImplementationArtifactDescription:: - add_dependsOn (::CIAO::Config_Handlers::NamedImplementationArtifact const& e) - { - if (dependsOn_.capacity () < dependsOn_.size () + 1) - { - ::std::vector< ::CIAO::Config_Handlers::NamedImplementationArtifact > v; - v.reserve (dependsOn_.size () + 1); - - while (dependsOn_.size ()) - { - //@@ VC6 - ::CIAO::Config_Handlers::NamedImplementationArtifact& t = dependsOn_.back (); - t.container (0); - v.push_back (t); - v.back ().container (this); - dependsOn_.pop_back (); - } - - dependsOn_.swap (v); - } + // ImplementationArtifactDescription + // + bool ImplementationArtifactDescription:: + href_p () const + { + return href_.get () != 0; + } - dependsOn_.push_back (e); - dependsOn_.back ().container (this); - } + ::XMLSchema::string< ACE_TCHAR > const& ImplementationArtifactDescription:: + href () const + { + return *href_; + } - // ImplementationArtifactDescription - // - bool ImplementationArtifactDescription:: - infoProperty_p () const - { - return infoProperty_.get () != 0; - } + ::XMLSchema::string< ACE_TCHAR >& ImplementationArtifactDescription:: + href () + { + return *href_; + } - ::CIAO::Config_Handlers::Property const& ImplementationArtifactDescription:: - infoProperty () const + void ImplementationArtifactDescription:: + href (::XMLSchema::string< ACE_TCHAR > const& e) + { + if (href_.get ()) { - return *infoProperty_; + *href_ = e; } - ::CIAO::Config_Handlers::Property& ImplementationArtifactDescription:: - infoProperty () + else { - return *infoProperty_; + href_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); + href_->container (this); } + } +} +} + +namespace CIAO +{ + namespace Config_Handlers + { + // NamedImplementationArtifact + // + + NamedImplementationArtifact:: + NamedImplementationArtifact (::XSCRT::XML::Element< ACE_TCHAR > const& e) + :Base__ (e), regulator__ () + { - void ImplementationArtifactDescription:: - infoProperty (::CIAO::Config_Handlers::Property const& e) + ::XSCRT::Parser< ACE_TCHAR > p (e); + + while (p.more_elements ()) { - if (infoProperty_.get ()) + ::XSCRT::XML::Element< ACE_TCHAR > e (p.next_element ()); + ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (e.name ())); + + if (n == "name") + { + name_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); + name_->container (this); + } + + else if (n == "referencedArtifact") { - *infoProperty_ = e; + referencedArtifact_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ImplementationArtifactDescription > (new ::CIAO::Config_Handlers::ImplementationArtifactDescription (e)); + referencedArtifact_->container (this); } else { - infoProperty_ = ::std::auto_ptr< ::CIAO::Config_Handlers::Property > (new ::CIAO::Config_Handlers::Property (e)); - infoProperty_->container (this); } } + } - // ImplementationArtifactDescription - // - bool ImplementationArtifactDescription:: - contentLocation_p () const - { - return contentLocation_.get () != 0; - } + // ImplementationArtifactDescription + // - ::XMLSchema::string< ACE_TCHAR > const& ImplementationArtifactDescription:: - contentLocation () const - { - return *contentLocation_; - } + ImplementationArtifactDescription:: + ImplementationArtifactDescription (::XSCRT::XML::Element< ACE_TCHAR > const& e) + :Base__ (e), regulator__ () + { - ::XMLSchema::string< ACE_TCHAR >& ImplementationArtifactDescription:: - contentLocation () - { - return *contentLocation_; - } + ::XSCRT::Parser< ACE_TCHAR > p (e); - void ImplementationArtifactDescription:: - contentLocation (::XMLSchema::string< ACE_TCHAR > const& e) + while (p.more_elements ()) { - if (contentLocation_.get ()) + ::XSCRT::XML::Element< ACE_TCHAR > e (p.next_element ()); + ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (e.name ())); + + if (n == "label") { - *contentLocation_ = e; + ::XMLSchema::string< ACE_TCHAR > t (e); + label (t); } - else + else if (n == "UUID") { - contentLocation_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); - contentLocation_->container (this); + ::XMLSchema::string< ACE_TCHAR > t (e); + UUID (t); } - } - } -} -namespace CIAO -{ - namespace Config_Handlers - { - // NamedImplementationArtifact - // + else if (n == "location") + { + ::XMLSchema::string< ACE_TCHAR > t (e); + add_location (t); + } - NamedImplementationArtifact:: - NamedImplementationArtifact (::XSCRT::XML::Element< ACE_TCHAR > const& e) - :Base__ (e), regulator__ () - { + else if (n == "execParameter") + { + ::CIAO::Config_Handlers::Property t (e); + execParameter (t); + } - ::XSCRT::Parser< ACE_TCHAR > p (e); + else if (n == "deployRequirement") + { + ::CIAO::Config_Handlers::Requirement t (e); + deployRequirement (t); + } - while (p.more_elements ()) + else if (n == "dependsOn") { - ::XSCRT::XML::Element< ACE_TCHAR > e (p.next_element ()); - ::std::basic_string< ACE_TCHAR > n (::XSCRT::XML::uq_name (e.name ())); - - if (n == "name") - { - name_ = ::std::auto_ptr< ::XMLSchema::string< ACE_TCHAR > > (new ::XMLSchema::string< ACE_TCHAR > (e)); - name_->container (this); - } - - else if (n == "referencedArtifact") - { - referencedArtifact_ = ::std::auto_ptr< ::CIAO::Config_Handlers::ImplementationArtifactDescription > (new ::CIAO::Config_Handlers::ImplementationArtifactDescription (e)); - referencedArtifact_->container (this); - } - - else - { - } + ::CIAO::Config_Handlers::NamedImplementationArtifact t (e); + add_dependsOn (t); } - } - // ImplementationArtifactDescription - // + else if (n == "infoProperty") + { + ::CIAO::Config_Handlers::Property t (e); + infoProperty (t); + } - ImplementationArtifactDescription:: - ImplementationArtifactDescription (::XSCRT::XML::Element< ACE_TCHAR > const& e) - :Base__ (e), regulator__ () - { + else if (n == "contentLocation") + { + ::XMLSchema::string< ACE_TCHAR > t (e); + contentLocation (t); + } - ::XSCRT::Parser< ACE_TCHAR > p (e); + else + { + } + } - while (p.more_elements ()) + 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); + } + + else { - ::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 == "location") - { - ::XMLSchema::string< ACE_TCHAR > t (e); - add_location (t); - } - - else if (n == "execParameter") - { - ::CIAO::Config_Handlers::Property t (e); - execParameter (t); - } - - else if (n == "deployRequirement") - { - ::CIAO::Config_Handlers::Requirement t (e); - deployRequirement (t); - } - - else if (n == "dependsOn") - { - ::CIAO::Config_Handlers::NamedImplementationArtifact t (e); - add_dependsOn (t); - } - - else if (n == "infoProperty") - { - ::CIAO::Config_Handlers::Property t (e); - infoProperty (t); - } - - else if (n == "contentLocation") - { - ::XMLSchema::string< ACE_TCHAR > t (e); - contentLocation (t); - } - - else - { - } } } } } +} namespace CIAO { @@ -608,3 +660,4 @@ namespace CIAO } } + |