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

📄 warsvrprotocolhttpreply.h

📁 ftpserver very good sample
💻 H
字号:
/** */#if WAR_RFC2068#ifndef WAR_SVR_PROTOCOL_HTTP_REPLY_H#define WAR_SVR_PROTOCOL_HTTP_REPLY_H/* SYSTEM INCLUDES *//* PROJECT INCLUDES */#ifndef WAR_SVR_PROTOCOL_HTTP_HEADER_H#   include "WarSvrProtocolHttpHeader.h"#endif#ifndef WAR_COLLECTOR_H#   include "WarCollector.h"#endif#ifndef WAR_SVR_PROTOCOL_HTTP_ENUMS_H#   include "WarSvrProtocolHttpEnums.h"#endif#ifndef WAR_SVR_PROTOCOL_HTTP_MSGS_H#   include "WarSvrProtocolHttpMsgs.h"#endif/* LOCAL INCLUDES *//* FORWARD REFERENCES */class WarSvrProtocolHttp;#ifdef __cplusplusextern "C" {#endif/****************** BEGIN OLD STYLE C spesific ********//****************** END OLD STYLE C spesific **********/#ifdef __cplusplus }#endif/****************** BEGIN C++ spesific ****************/#ifdef __cplusplusclass WarSvrProtocolHttpReply :public WarCollector<char>,public WarSvrProtocolHttpEnums{public:	typedef WarCollector<char> collector_type_t;    // LIFECYCLE        /**    * Default constructor.    */    WarSvrProtocolHttpReply();           /**    * Destructor.    */    ~WarSvrProtocolHttpReply();        // OPERATORS    // OPERATIONS    virtual WarCollector<type_t>& AddEnumValue1(int enumValue)        throw(WarException);    virtual WarCollector<type_t>& AddEnumValue2(int enumValue)        throw(WarException);    void Reset();    // CALLBACK    // ACCESS    inline WarSvrProtocolHttpHeader& GetHeader()    {        return mHeader;    }    inline WarSvrProtocolHttpMsgs& GetMessages()    {        return mMessages;    }    inline WarSvrProtocolHttp& GetServer()    {        return *mpProtocol;    }	    // INQUIRY		bool HaveReplied() const	{		return mHaveReplied;	}protected:    WarSvrProtocolHttpHeader mHeader;    WarSvrProtocolHttpMsgs mMessages;	bool mHaveReplied;    private:    friend class WarSvrProtocolHttp;    WarSvrProtocolHttp *mpProtocol;};/* INLINE METHODS */template <class charT>WarCollector<charT>& operator << (WarCollector<charT>& o,     const WarSvrProtocolHttpEnums::HttpReplyCodeE v){    return o.AddEnumValue1(v);}template <class charT>WarCollector<charT>& operator << (WarCollector<charT>& o,     const WarSvrProtocolHttpEnums::HttpSvrMsgsE v){    return o.AddEnumValue2(v);}/* EXTERNAL REFERENCES */#endif /* __cplusplus *//****************** END C++ spesific ******************/#endif  /* WAR_SVR_PROTOCOL_HTTP_REPLY_H_ */#endif // #if WAR_RFC2068

⌨️ 快捷键说明

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