warcgibase.h

来自「ftpserver very good sample」· C头文件 代码 · 共 111 行

H
111
字号
/** Base class for CGI-like processing in C++. The 	derived classes are linked in map where the	name is the document-part of the URL.*/#ifndef WAR_CGI_BASE_H#define WAR_CGI_BASE_H/* SYSTEM INCLUDES *//* PROJECT INCLUDES */#ifndef WAR_SMART_POINTER_H#	include "WarSmartPointer.h"#endif#ifndef WAR_PTR_WRAPPER_H#	include "WarPtrWrapper.h"#endif#ifndef WAR_SVR_PROTOCOL_HTTP_ENUMS_H#	include "WarSvrProtocolHttpEnums.h"#endif#ifndef WAR_LNG_TEXT_H#	include "WarLngText.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 WarCgiBase : public WarSvrProtocolHttpEnums{public:	typedef WarCollector<char> outbuf_t;    // LIFECYCLE        /**    * Default constructor.    */    WarCgiBase();        /**    * Destructor.    */    virtual ~WarCgiBase();        // OPERATORS     // OPERATIONS	// The function used to fetch the page	virtual void MakePage();	// Override to create the real content	virtual void MakeContent()  = 0;	// Override	virtual war_ccstr_t GetTitle() = 0;	virtual war_ccstr_t GetLanguage() const;	virtual war_ccstr_t GetContentType() const;	virtual war_ccstr_t GetCharset() const;	virtual void MakePageHeader();	virtual void MakePageFooter();    // CALLBACK    // ACCESS    // INQUIRY    protected:	war_lngtext_ptr_t mLngPtr;	outbuf_t mOutBuf;private:};/* INLINE METHODS *//* EXTERNAL REFERENCES */#endif /* __cplusplus *//****************** END C++ spesific ******************/#endif  /* WAR_CGI_BASE_H_ */

⌨️ 快捷键说明

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