blob: e14838e9a9ae78b1e1b3ad3caf92d9a9a4662356 (
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 /**/ "ace/pre.h"
#include "Any_Handler.h"
#include "DataType_Handler.h"
#include "Basic_Deployment_Data.hpp"
#include "tao/AnyTypeCode/Any.h"
#include "DynAny_Handler/DynAny_Handler.h"
namespace CIAO
{
namespace Config_Handlers
{
Any_Handler::Any_Handler (void)
{
}
Any_Handler::~Any_Handler (void)
{
}
void
Any_Handler::extract_into_any (const Any& desc,
CORBA::Any& toconfig)
{
DynamicAny::DynAny_var dyn = DYNANY_HANDLER->extract_into_dynany (desc.type (),
desc.value ());
toconfig = *dyn->to_any ();
dyn->destroy ();
}
Any Any_Handler::get_any (const ::CORBA::Any& src)
{
//MAJO
//@Bala ... still haven't figured this one out yet
//I was saving it for last...going from corba::any
//to xsc DataValue
DataType type = DataType_Handler::data_type (src.type ());
DataValue value;
Any any (type,value);
return any;
}
}
}
#include /**/ "ace/post.h"
|