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

📄 warobjectgroupref.h

📁 ftpserver very good sample
💻 H
字号:
/**  */#ifndef WAR_OBJECT_GROUP_REF_H#define WAR_OBJECT_GROUP_REF_H/* SYSTEM INCLUDES *//* PROJECT INCLUDES */#ifndef WAR_PTR_WRAPPER_H#   include "WarPtrWrapper.h"#endif#ifndef WAR_OBJECT_GROUP_H#   include "WarObjectGroup.h"#endif/* LOCAL INCLUDES *//* FORWARD REFERENCES */#ifdef __cplusplusextern "C" {#endif/****************** BEGIN OLD STYLE C spesific ********//****************** END OLD STYLE C spesific **********/#ifdef __cplusplus }#endif/****************** BEGIN C++ spesific ****************/#ifdef __cplusplusclass WarObjectGroupRef {public:    typedef WarPtrWrapper<WarObjectGroup> obj_wrap_t;        // LIFECYCLE        /**    * Default constructor.    */    WarObjectGroupRef(WarObjectGroup *pRef)        : mpRef(pRef)    {        if (pRef)        {#if WAR_CATCH_ALL            try#endif            {                pRef->AttachObject(this);            }#if WAR_CATCH_ALL                        catch(...)            {                ; // Nothing            }#endif        }        return;    }            /**    * Destructor.    */    ~WarObjectGroupRef(void)    {   #if WAR_CATCH_ALL        try#endif        {            if (mpRef)                mpRef->DetachObject(this);        }#if WAR_CATCH_ALL                catch(...)        {            ; // Nothing        }#endif    }        // OPERATORS    // OPERATIONS                           // ACCESS    // INQUIRY    protected:private:    WarObjectGroup *mpRef;};/* INLINE METHODS *//* EXTERNAL REFERENCES */#endif /* __cplusplus *//****************** END C++ spesific ******************/#endif  /* _WAR_OBJECT_GROUP_REF_H_ */

⌨️ 快捷键说明

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