diff options
author | lseibert <lseibert@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2005-08-10 14:45:20 +0000 |
---|---|---|
committer | lseibert <lseibert@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2005-08-10 14:45:20 +0000 |
commit | da3cfefb87a804afd5a184a81679a281f1db3918 (patch) | |
tree | 0e70470f178e82ec0d5c5660981976f950df963a /TAO/CIAO/DAnCE/Config_Handlers/MDD_Handler.cpp | |
parent | 8b90c54cc42b85e382e667ed0d4cd6ff2ffd5d1c (diff) | |
download | ATCD-da3cfefb87a804afd5a184a81679a281f1db3918.tar.gz |
*** empty log message ***xsc_reverse_handlers
Diffstat (limited to 'TAO/CIAO/DAnCE/Config_Handlers/MDD_Handler.cpp')
-rw-r--r-- | TAO/CIAO/DAnCE/Config_Handlers/MDD_Handler.cpp | 55 |
1 files changed, 52 insertions, 3 deletions
diff --git a/TAO/CIAO/DAnCE/Config_Handlers/MDD_Handler.cpp b/TAO/CIAO/DAnCE/Config_Handlers/MDD_Handler.cpp index 2728135b8b0..3972a1ba616 100644 --- a/TAO/CIAO/DAnCE/Config_Handlers/MDD_Handler.cpp +++ b/TAO/CIAO/DAnCE/Config_Handlers/MDD_Handler.cpp @@ -48,8 +48,8 @@ namespace CIAO } return true; - } - + } + bool MDD_Handler::mono_deployment_description ( const MonolithicDeploymentDescription& desc, @@ -152,8 +152,57 @@ namespace CIAO } return true; - } + } + + + MonolithicDeploymentDescription + MDD_Handler::mono_deployment_description( + const Deployment::MonolithicDeploymentDescription &src) + { + //Get the name and instantiate the mdd + XMLSchema::string < char > name ((src.name)); + MonolithicDeploymentDescription mdd (name); + + //Get the source(s) from the IDL and store them + size_t total = src.source.length(); + for(size_t i = 0; i < total; i++) + { + XMLSchema::string< char > curr ((src.source[i])); + mdd.add_source(curr); + } + + //Get the artifactRef(s) from the IDL and store them + total = src.artifactRef.length(); + for(size_t j = 0; j < total; j++) + { + ACE_CString tmp; + ADD_Handler::IDREF.find_ref(src.artifactRef[j], tmp); + XMLSchema::IDREF< ACE_TCHAR > curr(tmp.c_str()); + mdd.add_artifact (curr); + } + + //Get the execParameter(s) from the IDL and store them + total = src.execParameter.length(); + for(size_t k = 0; k < total; k++) + { + mdd.add_execParameter ( + Property_Handler::get_property ( + src.execParameter[k])); + } + + //Get the deployRequirement(s) from the IDL and store them + total = src.deployRequirement.length(); + for(size_t l = 0; l < total; l++) + { + mdd.add_deployRequirement( + Req_Handler::get_requirement ( + src.deployRequirement[l])); + } + + return mdd; + } } } + |