blob: 664dadde5f96cdc010b20fb791abcf61ead0097f (
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
|
#ifndef STARTER_H
#define STARTER_H
#include "SynchC.h"
#include "orbsvcs/Naming/Naming_Client.h"
#include "orbsvcs/Naming/Naming_Server.h"
#include "ace/SString.h"
#include "ace/Hash_Map_Manager.h"
class Starter
{
public:
Starter (CORBA::ORB_ptr orb);
void init ();
void fire ();
typedef ACE_Hash_Map_Manager <ACE_CString,
Synch_var,
ACE_Null_Mutex> Synchs;
private:
void resolve_synch_objs ();
void add_to_synchs (CosNaming::BindingList &binding_list);
/// A naming context.
CosNaming::NamingContext_var synch_context_;
TAO_Naming_Client naming_client_;
Synchs synchs_;
};
#endif /*STARTER_H*/
|