blob: 204403071683370908d675a7a0e4a8c96c39daf9 (
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
|
// $Id$
#include "CID_Handler.h"
CIAO::Config_Handlers::CID_Handler::CID_Handler()
{}
CIAO::Config_Handlers::CID_Handler::~CID_Handler()
{}
Deployment::ComponentInterfaceDescription&
CIAO::Config_Handlers::CID_Handler::get_ComponentInterfaceDescription
(Deployment::ComponentInterfaceDescription& toconfig,
ComponentInterfaceDescription& desc)
{
toconfig.UUID =
CORBA::string_dup (desc.UUID().c_str());
toconfig.label =
CORBA::string_dup (desc.label().c_str());
toconfig.specificType =
CORBA::string_dup (desc.specificType().c_str());
//Copy the values of the sequence types idlFile and
//supporteType to the
//<Deployment::ComponentInterfaceDescription>.
if(!desc.supportedType().empty())
{
toconfig.supportedType.length(1);
toconfig.supportedType[0] =
CORBA::string_dup(desc.supportedType().c_str());
}
if(!desc.idlFile().empty())
{
toconfig.idlFile.length(1);
toconfig.idlFile[0] =
CORBA::string_dup(desc.idlFile().c_str());
}
//Create the handler for the
//<ComponentPortDescriptions>.
//CPDHandler cpd_handler();
return toconfig;
}
|