blob: f013ffe963a529f5816f83a290f84df38be44f48 (
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
|
/**
* Sample code from The ACE Programmer's Guide,
* copyright 2003 Addison-Wesley. All Rights Reserved.
*/
#ifndef __CLIENTCONTEXT_H_
#define __CLIENTCONTEXT_H_
#include "ace/Hash_Map_Manager.h"
#include "ace/Synch_Traits.h"
typedef ACE_Hash_Map_Manager<const char *, void *, ACE_SYNCH_NULL_MUTEX>
Map;
// Listing 1 code/ch14
// Client-specific context information.
class ClientContext
{
public:
void *get_attribute (const char *name);
void set_attribute (const char *name, void *value);
private:
Map attributeMap_;
};
// Listing 1
#endif /* __CLIENTCONTEXT_H_ */
|