blob: 48f95b99dbef48dd79824f787570ab888ffc350d (
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
|
// $Id$
#include "STD_IAD_Handler.h"
#include "Basic_Deployment_Data.hpp"
#include "ciao/Packaging_DataC.h"
#include "Property_Handler.h"
#include "iad.hpp"
namespace CIAO
{
namespace Config_Handlers
{
bool
STD_IAD_Handler::impl_artifact_descr (
const ImplementationArtifactDescription &desc,
::Deployment::ImplementationArtifactDescription &toconfig)
{
toconfig.label =
desc.label ().c_str ();
toconfig.UUID =
desc.UUID ().c_str ();
for (ImplementationArtifactDescription::location_const_iterator iter =
desc.begin_location ();
iter != desc.end_location ();
iter++)
{
CORBA::ULong len =
toconfig.location.length ();
toconfig.location.length (len + 1);
toconfig.location [len] = (*iter).c_str ();
}
if (desc.execParameter_p ())
{
Property p = desc.execParameter ();
Deployment::Property idl_p;
Property_Handler::get_property (p, idl_p);
toconfig.execParameter.length (1);
toconfig.execParameter [0] = idl_p;
}
return true;
}
}
}
|