blob: 90bd4975d19d0b3f5a297f4dccad75133e0f04ba (
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
|
#include "CEPE_Handler.h"
#include "Basic_Deployment_Data.hpp"
#include "dance/Deployment/Deployment_DataC.h"
#include "dance/Logger/Log_Macros.h"
namespace DAnCE
{
namespace Config_Handlers
{
void
CEPE_Handler::external_port_endpoints (
const PlanConnectionDescription &src,
::Deployment::ComponentExternalPortEndpoints &dest)
{
DANCE_TRACE("CEOE_Handler::external_port_endpoints");
PlanConnectionDescription::externalEndpoint_const_iterator eeci_e =
src.end_externalEndpoint ();
CORBA::ULong pos = 0;
dest.length (src.count_externalEndpoint ());
for (PlanConnectionDescription::externalEndpoint_const_iterator eeci_b =
src.begin_externalEndpoint ();
eeci_b != eeci_e;
++eeci_b)
{
CEPE_Handler::handle_external_port_endpoint (*(*eeci_b),
dest[pos++]);
}
}
void
CEPE_Handler::handle_external_port_endpoint (
const ComponentExternalPortEndpoint &src,
::Deployment::ComponentExternalPortEndpoint &dest)
{
DANCE_TRACE("CEOE_Handler::external_port_endpoint");
dest.portName = ACE_TEXT_ALWAYS_CHAR (src.portName ().c_str ());
}
ComponentExternalPortEndpoint
CEPE_Handler::external_port_endpoint (
const ::Deployment::ComponentExternalPortEndpoint &src)
{
DANCE_TRACE("CEOE_Handler::external_port_endpoint - reverse");
//MAJO Unfinished
XMLSchema::string< ACE_TCHAR > portname (ACE_TEXT_CHAR_TO_TCHAR (src.portName));
return ComponentExternalPortEndpoint (portname);
}
}
}
|