- 浏览: 355453 次
- 性别:
- 来自: 苏州
文章分类
- 全部博客 (335)
- C++ (190)
- 设计模式 (43)
- 数据库技术 (5)
- 网络编程 (11)
- 自动化测试 (6)
- Linux (13)
- OpenSSL (10)
- MS Crypt API (5)
- SCM (2)
- English (4)
- Android (10)
- EMV规范 (1)
- Saturn Platform (0)
- C (10)
- SQL (2)
- ASP.NET (3)
- 英语口语学习 (3)
- 调试工具 (21)
- 编译技术 (5)
- UML (1)
- 项目管理 (5)
- 敏捷开发 (2)
- Http Server (6)
- 代码审查、代码分析 (5)
- 面试基础 (10)
- 重点知识 (16)
- STL (6)
- Efficient C++资料 (8)
- 数据结构和算法 (7)
- 读书笔记 (0)
- 开源项目 (4)
- 多线程 (2)
- Console App (6)
- 个人开源项目 (4)
- IBM DevelopWorks (4)
- Java (16)
- 内存泄漏相关调试和检测 (13)
- 软件测试相关技术 (2)
- C# (11)
- Apple Related (1)
- 软件测试和管理 (2)
- EMV (1)
- Python (1)
- Node.js (6)
- JavaScript (5)
- VUE (1)
- Frontend (1)
- Backend (4)
- RESTful API (3)
- Firebase (3)
最新评论
-
u013189503:
来个密码吧
[C++][Logging] 项目中写日志模块的实现 -
wyf_vc:
来个密码啊!!
[C++][Logging] 项目中写日志模块的实现
class Command : public eastl::intrusive_list_node { NON_COPYABLE(Command) public: Command(const Message* message); virtual ~Command(); BlazeRpcError run(); virtual ComponentId getComponentId() const { return mFrame.componentId; } virtual uint16_t getCommandId() const { return mFrame.commandId; } void setFiberContextName(const char *context) { mFiberContextName = context; } uint32_t getMsgNum() const { return mFrame.msgNum; } BlazeRpcError getError() const { return mError; } virtual Tdf *getResponse() { return NULL; } virtual Tdf *getErrorResponse() { return NULL; } SessionId getSessionId() const { return mSessionId; } UserSessionId getUserSessionId() const { return mUserSessionId; } InboundRpcConnection *getConnection() const { return mConnection; } uint32_t getConnectionUserIndex() const { return mConnectionUserIndex; } bool isDestroyPending() const { return mDestroyPending; } bool isRegistered() const { return mpNext != NULL && mpPrev != NULL; } bool isOnCurrentFiber() const { return mFiber == gCurrentFiber; } void setMetrics(CommandMetrics* metrics) { mMetrics = metrics; } void updateMetrics(); void sendRpcResponse(); void deregisterCommand(); void cancel(BlazeRpcError reason); const Fiber* getFiber() {return mFiber;} protected: void registerCommand(UserSession& userSession); bool isRpcCall() const { return mIsRpc; } uint32_t getContext() const { return mFrame.context; } virtual Fiber* createFiber() const; virtual void destroy(); BlazeRpcError mError; private: virtual void executeWrapper() = 0; void exceptionHandler(Fiber&); TimeValue mStartTime; CommandMetrics* mMetrics; Fiber *mFiber; const char *mFiberContextName; SessionId mSessionId; SessionId mUserSessionId; InboundRpcConnection *mConnection; uint32_t mConnectionUserIndex; RpcProtocol::Frame mFrame; bool mIsRpc; bool mDestroyPending; bool mIsCanceled; };
发表评论
-
FreeRTOS
2022-03-05 16:31 212Ref https://blog.csdn.net/weix ... -
串口通讯相关
2018-11-02 13:44 367https://bbs.csdn.net/wap/topics ... -
[转]C++验证IP是否可以PING通
2018-10-30 17:54 1240https://www.cnblogs.com/guoyz13 ... -
C++/MFC 換皮膚
2018-10-20 11:05 429https://blog.csdn.net/u01123991 ... -
WinCE 截屏 - C++ 代碼
2018-08-31 09:45 529// this function create a bmp ... -
Android NDK搭建環境
2017-11-27 13:25 533https://www.cnblogs.com/ut2016- ... -
8583协议相关
2017-10-17 13:38 5218583相关资料,整理中... -
Java高级应用之JNI
2017-06-19 09:00 553参考link http://www.cnblogs.com/l ... -
C++实现ping功能
2017-04-18 11:21 2043基础知识 ping的过程是向目的IP发送一个type=8的I ... -
OpenSSL 编译环境搭建
2017-03-27 15:01 8621 安裝VS2008到 c:\Program Files (x ... -
最优非对称加密填充(OAEP)
2017-03-25 14:53 1521OpenSSL命令---rsautl http://blog. ... -
[Platform Builder] 设置SVM OS build Env
2016-11-10 11:39 01 copy one OSDesign Project to ... -
[Windows] System Error Codes(GetLastError )0-----5999
2016-10-26 13:28 1837ERROR_SUCCESS 0 (0x0) T ... -
开源Windows驱动程序框架
2016-09-17 21:35 819转自 http://code.csdn.net/news/28 ... -
c/c++代码中执行cmd命令
2016-09-14 14:50 1819转自 http://blog.csdn.net/slixinx ... -
C#使用C++标准DLL实例(包含callback)
2016-09-11 19:44 1007C++编写标准Win32DLL如下 头文件 /***** ... -
C#调用C++的DLL搜集整理的所有数据类型转换方式
2016-09-09 16:07 931转自 http://www.cnblogs.com/zeroo ... -
WinCE CPU使用率计算 测试工具
2016-09-08 16:14 939转自 http://blog.csdn.net/jan ... -
switch在C++与C#中的一些差异
2016-09-08 15:19 762参考链接 http://blog.csdn.net/weiwe ... -
C++ 鼠标模拟程序
2016-09-04 12:09 1537转自 http://blog.csdn.net/weixinh ...
相关推荐
设计模式C++学习之命令模式(Command)
Head First 设计模式 (六) 命令模式(Command pattern) C++实现
C++设计模式代码资源23_Command_命令模式.zip
自己写个command模式的测试代码,很清楚,一看就会。呵呵,混点资源分。
C++设计模式课件23_Command_命令模式.pdf
命令模式(Command) 解释器模式(Interpreter) 迭代器模式(Iterator) 中介者模式(Mediator) 备忘录模式(Memento) 观察者模式(Observer) 状态模式(State) 策略模式(Strategy) 模板方法模式(Template Method) 访问者模式...
命令模式,将一个请求封装为一个对象,从而使你可用不同的请求对客户进行参数化;对请求排队或记录请求日志,以及支持可撤消的操作。
命令模式 Command 设计模式 若理解有问题,还请大S指教。
1.1 什么是设计模式 2 1.2 Smalltalk MVC 中的设计模式 3 1.3 描述设计模式 4 1.4 设计模式的编目 5 1.5 组织编目 7 1.6 设计模式怎样解决设计问题 8 1.6.1 寻找合适的对象 8 1.6.2 决定对象的粒度 9 1.6.3 指定对象...
主要介绍了详解设计模式中的Command命令模式及相关C++实现,命令模式强调调用操作的对象和操作的具体实现者之间的解耦,需要的朋友可以参考下
c++设计模式-行为型模式-命令模式;qt工程 ;c++简单源码; 命令(Command)模式的定义如下:将一个请求封装为一个对象,使发出请求的责任和执行请求的责任分割开。这样两者之间通过命令对象进行沟通,这样方便将...
1 创建型模式 1.1 Factory 模式 1.2 AbstactFactory 模式 1.3 Singleton 模式 ...3.7 Command 模式 3.8 Visitor 模式 3.9 Chain of Responsibility 模式 3.10 Iterator 模式 3.11 Interpreter 模式
0.1设计模式解析(总序).....................................................................................................2 0.2设计模式解析后记..........................................................
C++设计模式代码: (VC工程) Creational Patterns Abstract Factory Creates an instance of several families of classes Builder Separates object construction from its representation Factory Method ...
1.1 什么是设计模式 2 1.2 Smalltalk MVC中的设计模式 3 1.3 描述设计模式 4 1.4 设计模式的编目 5 1.5 组织编目 7 1.6 设计模式怎样解决设计问题 8 1.6.1 寻找合适的对象 8 1.6.2 决定对象的粒度 9 1.6.3 ...
设计模式精解-GoF 23种设计模式解析附C++实现源码 目 录 0 引言.........................................................................................................................................
设计模式迷你手册.chm,大小仅 188 KB,图文并茂,介绍性强,每个设计模式附有 C++、C# 示例源码示例。 目录: 创建型 Factory Method Abstract Factory Builder Prototype Singleton 结构型 Adapter Bridge ...
设计模式精解-GoF 23 种设计模式解析附C++实现源码 设计模式精解-GoF 23 种设计模式解析附 C++实现源码 目 录 0 引言....................................................................................
Bridge,Builder,Command,Composite,FactoryMethod,IStrategy,MultipleDocument,Proxy,SingleDocument,Singleton,TemplateMethod