diff options
Diffstat (limited to 'CIAO/tools/Config_Handlers/STD_CPD_Handler.cpp')
-rw-r--r-- | CIAO/tools/Config_Handlers/STD_CPD_Handler.cpp | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/CIAO/tools/Config_Handlers/STD_CPD_Handler.cpp b/CIAO/tools/Config_Handlers/STD_CPD_Handler.cpp deleted file mode 100644 index d79a4ea5d39..00000000000 --- a/CIAO/tools/Config_Handlers/STD_CPD_Handler.cpp +++ /dev/null @@ -1,57 +0,0 @@ -// $Id$ -#include "STD_CPD_Handler.h" -#include "STD_CID_Handler.h" -#include "Basic_Deployment_Data.hpp" -#include "ciao/Deployment_DataC.h" -#include "Deployment.hpp" - -namespace CIAO -{ - namespace Config_Handlers - { - bool - STD_CPD_Handler::component_package_descr ( - const ComponentPackageDescription &desc, - ::Deployment::ComponentPackageDescription &toconfig) - { - toconfig.label = - desc.label ().c_str (); - - toconfig.UUID = - desc.UUID ().c_str (); - - PackagedComponentImplementation pci = desc.implementation (); - Deployment::PackagedComponentImplementation idl_pci; - idl_pci.name = - pci.name ().c_str (); - - if (!this->xml_helper_->is_initialized ()) - return false; - - // parse the .cid (ComponentImplementationDescription) file - // that <referencedImplementation> links to - xercesc::DOMDocument* dom = - this->xml_helper_->create_dom ((pci.referencedImplementation ()).href ().c_str ()); // here location indicates .pcd file - - if (!dom) - return false; - - ComponentImplementationDescription cid = - componentImplementationDescription (dom); - - Deployment::ComponentImplementationDescription idl_cid; - - STD_CID_Handler cid_handler (this->xml_helper_); - - cid_handler.component_impl_descr (cid, - idl_cid); - - idl_pci.referencedImplementation = idl_cid; - - toconfig.implementation.length (1); - toconfig.implementation [0] = idl_pci; - - return true; - } - } -} |