blob: 273fe8c8e69a7d3c4b64ba590d328e7142de8296 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
//$Id$
#include "Property_Handler.h"
#include "Any_Handler.h"
#include "Basic_Deployment_Data.hpp"
#include "ciao/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::get_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;
}
}
}
|