diff options
Diffstat (limited to 'TAO/CIAO/tools/Config_Handlers/STD_PC_Intf.cpp')
-rw-r--r-- | TAO/CIAO/tools/Config_Handlers/STD_PC_Intf.cpp | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/TAO/CIAO/tools/Config_Handlers/STD_PC_Intf.cpp b/TAO/CIAO/tools/Config_Handlers/STD_PC_Intf.cpp deleted file mode 100644 index 6d4095a810b..00000000000 --- a/TAO/CIAO/tools/Config_Handlers/STD_PC_Intf.cpp +++ /dev/null @@ -1,81 +0,0 @@ -// $Id$ - -#if defined (_MSC_VER) && (_MSC_VER < 1300) -#pragma warning (disable: 4018) -#pragma warning (disable: 4284) -#pragma warning (disable: 4146) -#endif - -#include "STD_PC_Intf.h" -#include "Utils/XML_Helper.h" -#include "Deployment.hpp" -#include "STD_PCD_Handler.h" -#include "ciao/Packaging_DataC.h" -#include "ciao/CIAO_common.h" - -namespace CIAO -{ - namespace Config_Handlers - { - STD_PC_Intf::STD_PC_Intf (const char *file) - { - if (!this->prepare_PC (file)) - throw; - } - - bool - STD_PC_Intf::prepare_PC (const char *file) - { - CIAO_TRACE("STD_PC_Intf::prepare_PC"); - - ACE_Auto_Ptr<XML_Helper> helper (new XML_Helper); - - if (!helper->is_initialized ()) - return false; - - // parse the .pcd (PackageConfigurationDescription) file - xercesc::DOMDocument *dom = - helper->create_dom (file); - - if (!dom) - return false; - - - PackageConfiguration pc = - packageConfiguration (dom); - - - Deployment::PackageConfiguration idl_pc; - - - STD_PCD_Handler pcd_handler (helper.get ()); - - pcd_handler.package_config (pc, - idl_pc); - - - Deployment::PackageConfiguration *p_idl_pc = - new Deployment::PackageConfiguration (idl_pc); - - // let ACE_Auto_Ptr take over - this->idl_pc_.reset (p_idl_pc); - - if (this->idl_pc_.get ()) - return true; - - return false; - } - - ::Deployment::PackageConfiguration const * - STD_PC_Intf::get_PC (void) const - { - return this->idl_pc_.get (); - } - - ::Deployment::PackageConfiguration * - STD_PC_Intf::get_PC (void) - { - return this->idl_pc_.release (); - } - } -} |