clientcontext.h

来自「ace开发环境 用来开发网络程序 其运用了设计模式、多平台、C++等多种知识」· C头文件 代码 · 共 31 行

H
31
字号
/** * $Id: ClientContext.h 55034 2004-01-01 21:01:01Z shuston $ * * 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.h"typedef ACE_Hash_Map_Manager<const char *, void *, ACE_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_ */

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?