blob: 8776a0bc2fe74aa8de06f6f2372d435438f00685 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
/**
*
* @file Containers_Info_Map.h
* @author Gan Deng <dengg@dre.vanderbilt.edu>
*
* Map of ContainerImplementationInfo sequences.
*
* $Id$
*/
#ifndef CIAO_CONTAINERS_INFO_MAP_H
#define CIAO_CONTAINERS_INFO_MAP_H
#include /**/ "ace/pre.h"
#include "ace/Null_Mutex.h"
#include "ace/Hash_Map_Manager.h"
#include "ciao/DeploymentC.h"
#include "ace/SString.h"
#include "CIAO_NAM_Export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
namespace CIAO
{
/**
* @class Container_Infos_Map
* @brief Implementation of a map of ContainerImplementationInfo sequences.
*
* This is a helper class to populate the NodeImplementationInfo struct from
* a deployment plan..
*/
class CIAO_NAM_Export Containers_Info_Map
{
public:
Containers_Info_Map (const Deployment::DeploymentPlan & plan);
Deployment::ContainerImplementationInfos *
containers_info (void);
private:
typedef
ACE_Hash_Map_Manager_Ex <ACE_CString,
Deployment::ContainerImplementationInfo *,
ACE_Hash<ACE_CString>,
ACE_Equal_To<ACE_CString>,
ACE_Null_Mutex> MAP;
typedef MAP::iterator Iterator;
MAP map_;
const Deployment::DeploymentPlan & plan_;
//Deployment::ContainerImplementationInfos_var containers_info_;
private:
void initialize_map (void);
bool build_map (void);
bool insert_instance_into_map (
const Deployment::InstanceDeploymentDescription & instance);
bool insert_instance_into_container (
const Deployment::InstanceDeploymentDescription & instance,
Deployment::ComponentImplementationInfos & impl_infos);
};
}
#include /**/ "ace/post.h"
#endif /*CIAO_CONTAINERS_INFO_MAP_H*/
|