Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / examples / APG / ThreadSafety / ClientContext.h
blob168d4824bc2fa7c066afc3f7e43604578ced127e
1 /**
2 * Sample code from The ACE Programmer's Guide,
3 * copyright 2003 Addison-Wesley. All Rights Reserved.
4 */
6 #ifndef __CLIENTCONTEXT_H_
7 #define __CLIENTCONTEXT_H_
9 #include "ace/Hash_Map_Manager.h"
10 #include "ace/Synch.h"
12 typedef ACE_Hash_Map_Manager<const char *, void *, ACE_Null_Mutex>
13 Map;
15 // Listing 1 code/ch14
16 // Client-specific context information.
17 class ClientContext
19 public:
20 void *get_attribute (const char *name);
21 void set_attribute (const char *name, void *value);
23 private:
24 Map attributeMap_;
26 // Listing 1
28 #endif /* __CLIENTCONTEXT_H_ */