summaryrefslogtreecommitdiff
path: root/CIAO/tools/Config_Handlers/Property_Handler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'CIAO/tools/Config_Handlers/Property_Handler.cpp')
-rw-r--r--CIAO/tools/Config_Handlers/Property_Handler.cpp51
1 files changed, 51 insertions, 0 deletions
diff --git a/CIAO/tools/Config_Handlers/Property_Handler.cpp b/CIAO/tools/Config_Handlers/Property_Handler.cpp
new file mode 100644
index 00000000000..ef077426a16
--- /dev/null
+++ b/CIAO/tools/Config_Handlers/Property_Handler.cpp
@@ -0,0 +1,51 @@
+//$Id$
+
+#include "Property_Handler.h"
+#include "Any_Handler.h"
+#include "Basic_Deployment_Data.hpp"
+#include "DAnCE/Deployment/Deployment_DataC.h"
+#include "ciao/CIAO_common.h"
+namespace CIAO
+{
+ namespace Config_Handlers
+ {
+
+ Property_Handler::Property_Handler (void)
+ {
+ }
+
+ Property_Handler::~Property_Handler (void)
+ {
+ }
+
+ void
+ Property_Handler::handle_property (
+ const Property& desc,
+ Deployment::Property& toconfig)
+ {
+ CIAO_TRACE("Property_Handler::get_property");
+
+ toconfig.name =
+ CORBA::string_dup (desc.name ().c_str ());
+
+ Any_Handler::extract_into_any (desc.value (),
+ toconfig.value);
+
+ }
+
+ Property
+ Property_Handler::get_property (
+ const Deployment::Property& src)
+ {
+ CIAO_TRACE("Property_Handler::get_property - reverse");
+
+ ::XMLSchema::string< char > name ((src.name));
+ Any value (Any_Handler::get_any (src.value));
+
+ Property prop (name,value);
+
+ return prop;
+ }
+
+ }
+}