blob: 1e6914db7f3f064b8ceafdb2e98b5b29033eec98 (
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
|
/*=======================================================================
*
* @file DAM_Map.h
*
* $Id$
*
* @brief Map of DomainApplicationManager to UUID's
*
* @author Bala Natarajan <bala @ dre.vanderbilt.edu>
*
*======================================================================*/
#ifndef CIAO_DAM_MAP_H
#define CIAO_DAM_MAP_H
#include /**/ "ace/pre.h"
#include "ciao/DomainApplicationManagerC.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "ace/Null_Mutex.h"
#include "ace/Hash_Map_Manager.h"
#include "ace/SString.h"
namespace CIAO
{
namespace Execution_Manager
{
/**
* @class DAM_Map
*
* @brief Map of DomainApplicationManager to ACE_CStrings
*
*/
class DAM_Map
{
public:
DAM_Map (void);
bool is_plan_available (const ACE_CString &str);
::Deployment::DomainApplicationManager_ptr
fetch_dam_reference (const ACE_CString &str);
bool bind_dam_reference (
const ACE_CString &str,
::Deployment::DomainApplicationManager_ptr tmp);
Deployment::DomainApplicationManagers *
get_dams (ACE_ENV_SINGLE_ARG_DECL);
bool unbind_dam (const ACE_CString &str);
size_t size (void);
private:
typedef
ACE_Hash_Map_Manager_Ex < ACE_CString,
::Deployment::DomainApplicationManager_var,
ACE_Hash<ACE_CString>,
ACE_Equal_To<ACE_CString>,
ACE_Null_Mutex> MAP;
typedef MAP::iterator Iterator;
MAP map_;
};
}
}
#include /**/ "ace/post.h"
#endif /*CIAO_DAM_MAP_H*/
|