blob: 469a3341045949979147605178d0725f173b3668 (
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
|
/**
* @file NAM_Map.h
* @author Will Otte <wotte@dre.vanderbilt.edu>
*
* Map of NodeApplicationManagers, inspired by the DAM_Map
* class.
*
* $Id$
*/
#ifndef CIAO_NAM_MAP_H
#define CIAO_NAM_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 "tao/PortableServer/PortableServer.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
namespace CIAO
{
/**
* @class NAM_Map
* @brief Implementation of a map of NodeApplicationManagers.
*
* This table is used by the NodeManager to keep track of
* NAMs started for multiple assemblies.
*/
class NAM_Map
{
public:
/// Constructor
NAM_Map (void);
/// Determine if there is a NAM associated with a UUID
bool is_available (const ACE_CString &str);
/// Insert a NAM OID into the collection
bool insert_nam (const ACE_CString &str,
const PortableServer::ObjectId &oid);
/// Get a specified NAM.
::PortableServer::ObjectId
get_nam (const ACE_CString &str);
/// Remove a nam from the map, given its oid.
bool remove_nam (const PortableServer::ObjectId &oid);
private:
typedef
ACE_Hash_Map_Manager_Ex <ACE_CString,
::PortableServer::ObjectId_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_NAM_MAP_H*/
|