diff options
Diffstat (limited to 'TAO/CIAO/DAnCE/Config_Handlers/ERE_Handler.cpp')
-rw-r--r-- | TAO/CIAO/DAnCE/Config_Handlers/ERE_Handler.cpp | 41 |
1 files changed, 27 insertions, 14 deletions
diff --git a/TAO/CIAO/DAnCE/Config_Handlers/ERE_Handler.cpp b/TAO/CIAO/DAnCE/Config_Handlers/ERE_Handler.cpp index 682af106120..50593fb37b9 100644 --- a/TAO/CIAO/DAnCE/Config_Handlers/ERE_Handler.cpp +++ b/TAO/CIAO/DAnCE/Config_Handlers/ERE_Handler.cpp @@ -8,24 +8,37 @@ namespace CIAO { namespace Config_Handlers { - - ERE_Handler::ERE_Handler (void) + bool + ERE_Handler::external_ref_endpoints ( + const PlanConnectionDescription &src, + Deployment::ExternalReferenceEndpoints &dest) { - } + PlanConnectionDescription::externalReference_const_iterator erep_e = + src.end_externalReference (); - ERE_Handler::~ERE_Handler (void) - { + for (PlanConnectionDescription::externalReference_const_iterator erep_b = + src.begin_externalReference (); + erep_b != erep_e; + ++erep_b) + { + CORBA::ULong len = + dest.length (); + dest.length (len + 1); + + ERE_Handler::external_ref_endpoint ((*erep_b), + dest[0]); + } + + return true; } - - ///This method takes a <Deployment::ExternalReferenceEndpoint> - ///and maps the values from the passed in XSC - ///ExternalReferenceEndpoint to its members. - void ERE_Handler::get_ExternalReferenceEndpoint ( - Deployment::ExternalReferenceEndpoint& toconfig, - ExternalReferenceEndpoint& desc) + + void + ERE_Handler::external_ref_endpoint ( + const ExternalReferenceEndpoint &src, + Deployment::ExternalReferenceEndpoint &dest) { - toconfig.location = CORBA::string_dup (desc.location ().c_str ()); + dest.location = + src.location ().c_str (); } - } } |