⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stafhandleservice.h

📁 Software Testing Automation Framework (STAF)的开发代码
💻 H
字号:
/*****************************************************************************//* Software Testing Automation Framework (STAF)                              *//* (C) Copyright IBM Corp. 2001                                              *//*                                                                           *//* This software is licensed under the Common Public License (CPL) V1.0.     *//*****************************************************************************/#ifndef STAF_HandleService#define STAF_HandleService#include "STAFService.h"#include "STAFCommandParser.h"static int debug = 0; // XXX// STAFHandleService - Handles requests about process handlesclass STAFHandleService : public STAFService{public:    STAFHandleService();    virtual STAFServiceResult acceptRequest(                              const STAFServiceRequest &requestInfo);    virtual STAFString info(unsigned int raw = 0) const;    virtual ~STAFHandleService();        static STAFHandleService *getInstance()      {         return sHandleService;     }        virtual void handleRemoved(STAFHandle_t handle);private:    // Don't allow copy construction or assignment    STAFHandleService(const STAFHandleService &);    STAFHandleService &operator=(const STAFHandleService &);        static STAFHandleService *sHandleService;    STAFServiceResult handleCreate(const STAFServiceRequest &requestInfo);    STAFServiceResult handleDelete(const STAFServiceRequest &requestInfo);    STAFServiceResult handleQuery(const STAFServiceRequest &requestInfo);    STAFServiceResult handleAuthenticate(const STAFServiceRequest &requestInfo);    STAFServiceResult handleUnAuthenticate(const STAFServiceRequest &requestInfo);    STAFServiceResult handleSet(const STAFServiceRequest &requestInfo);    STAFServiceResult handleList(const STAFServiceRequest &requestInfo);    STAFServiceResult handleNotify(const STAFServiceRequest &requestInfo);    STAFServiceResult handleUnregister(const STAFServiceRequest &requestInfo);    STAFServiceResult handleHelp(const STAFServiceRequest &requestInfo);    STAFCommandParser fCreateParser;    STAFCommandParser fDeleteParser;    STAFCommandParser fNotifyParser;    STAFCommandParser fQueryParser;    STAFCommandParser fAuthParser;    STAFCommandParser fUnAuthParser;    STAFCommandParser fSetParser;    STAFCommandParser fListParser;    STAFCommandParser fUnregisterParser;    STAFMapClassDefinitionPtr fQueryHandleClass;    STAFMapClassDefinitionPtr fHandleInfoClass;    STAFMapClassDefinitionPtr fHandleInfoLongClass;    STAFMapClassDefinitionPtr fNotificationClass;};#endif

⌨️ 快捷键说明

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