📄 warcgibase.h
字号:
/** 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -