📄 warsvrprotocolftpmacros.h
字号:
/** Implementation file for macros for the FTP server.*/#ifndef WAR_SVR_PROTOCOL_FTP_MACROS_H#define WAR_SVR_PROTOCOL_FTP_MACROS_H/* SYSTEM INCLUDES *//* PROJECT INCLUDES */#ifndef WAR_SVR_PROTOCOL_FTP_H# include "WarSvrProtocolFtp.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 ****************/#if 0 // Code template for macrosclass macro : public WarTextMacro{public: macro() : WarTextMacro("", "") {} std::string Expand(war_ccstr_t argument = NULL) throw(WarException) { }};#endif // 0class MacroProgramname : public WarTextMacro{public: MacroProgramname(); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);};class MacroProgramversion : public WarTextMacro{public: MacroProgramversion(); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);};class MacroPrgcopyright : public WarTextMacro{public: MacroPrgcopyright(); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);};class MacroOrigin : public WarTextMacro{public: MacroOrigin(const WarNetAddress& address); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarNetAddress& mrAddress;};class MacroOsname : public WarTextMacro{public: MacroOsname(); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);};class MacroPwd : public WarTextMacro{public: MacroPwd(const WarSvrProtocol& rsvrProtocol); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocol& mrSvrProtocol;};class MacroCurrentfilename : public WarTextMacro{public: MacroCurrentfilename(const WarSvrPath& nameBuf); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrPath & mrPath;};class MacroCurrentpath : public WarTextMacro{public: MacroCurrentpath(const WarSvrPath& nameBuf); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrPath & mrPath;};class MacroRest : public WarTextMacro{public: MacroRest(const WarSvrProtocolFtpMode& ftpMode); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocolFtpMode& mrMode;};class MacroHelpcmds : public WarTextMacro{public: MacroHelpcmds(const WarSvrProtocolFtpCommands& rCmds); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocolFtpCommands& mrCmds;};class MacroCurrenttype : public WarTextMacro{public: MacroCurrenttype(const WarSvrProtocolFtpMode& ftpMode); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocolFtpMode& mrMode;};class MacroCurrentform : public WarTextMacro{public: MacroCurrentform(const WarSvrProtocolFtpMode& ftpMode); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocolFtpMode& mrMode;};class MacroCurrentstructure : public WarTextMacro{public: MacroCurrentstructure(const WarSvrProtocolFtpMode& ftpMode); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocolFtpMode& mrMode;};class MacroCurrentmode : public WarTextMacro{public: MacroCurrentmode(const WarSvrProtocolFtpMode& ftpMode); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocolFtpMode& mrMode;};class MacroHostdomainname : public WarTextMacro{public: MacroHostdomainname(const WarNetAddress& rNet); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarNetAddress& mrNet;};class MacroRemotedomainname : public WarTextMacro{public: MacroRemotedomainname(const WarNetAddress& rNet); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarNetAddress& mrNet;};class MacroHostaddress : public WarTextMacro{public: MacroHostaddress(const WarNetAddress& rNet); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarNetAddress& mrNet;};class MacroRemoteaddress : public WarTextMacro{public: MacroRemoteaddress(const WarNetAddress& rNet); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarNetAddress& mrNet;};class MacroUser : public WarTextMacro{public: MacroUser(const WarSvrProtocol& rSvr); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocol& mrSvr;};class MacroDataconn : public WarTextMacro{public: MacroDataconn(const WarSvrProtocolFtp& rSvr); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocolFtp& mrSvr;};class MacroRcvbytes : public WarTextMacro{public: MacroRcvbytes(const WarSvrProtocolFtpStat& rStat); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocolFtpStat& mrStat;};class MacroSndbytes : public WarTextMacro{public: MacroSndbytes(const WarSvrProtocolFtpStat& rStat); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocolFtpStat& mrStat;};class MacroRcvfiles : public WarTextMacro{public: MacroRcvfiles(const WarSvrProtocolFtpStat& rStat); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocolFtpStat& mrStat;};class MacroSndfiles : public WarTextMacro{public: MacroSndfiles(const WarSvrProtocolFtpStat& rStat); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocolFtpStat& mrStat;};class MacroNumbytes : public WarTextMacro{public: MacroNumbytes(const WarSvrProtocolFtpStat& rStat); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocolFtpStat& mrStat;};class MacroNumfiles : public WarTextMacro{public: MacroNumfiles(const WarSvrProtocolFtpStat& rStat); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocolFtpStat& mrStat;};class MacroTrafficinbytes : public WarTextMacro{public: MacroTrafficinbytes(const WarSvrProtocolFtpStat& rStat); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocolFtpStat& mrStat;};class MacroTrafficoutbytes : public WarTextMacro{public: MacroTrafficoutbytes(const WarSvrProtocolFtpStat& rStat); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocolFtpStat& mrStat;};class MacroTrafficnumbytes : public WarTextMacro{public: MacroTrafficnumbytes(const WarSvrProtocolFtpStat& rStat); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocolFtpStat& mrStat;};class MacroRcvtransfers : public WarTextMacro{public: MacroRcvtransfers(const WarSvrProtocolFtpStat& rStat); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocolFtpStat& mrStat;};class MacroSndtransfers : public WarTextMacro{public: MacroSndtransfers(const WarSvrProtocolFtpStat& rStat); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocolFtpStat& mrStat;};class MacroNumtransfers : public WarTextMacro{public: MacroNumtransfers(const WarSvrProtocolFtpStat& rStat); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocolFtpStat& mrStat;};#if WAR_RFC2389class MacroFeatures : public WarTextMacro{public: MacroFeatures(const WarSvrProtocolFtp& rSvr); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocolFtp& mrSvr;};#endif // WAR_RFC2389class MacroLocaltime : public WarTextMacro{public: MacroLocaltime(); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);};class MacroGmttime : public WarTextMacro{public: MacroGmttime(); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);};class MacroCurrentcmd : public WarTextMacro{public: MacroCurrentcmd(const WarSvrProtocolFtpCommands& cmdRef); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocolFtpCommands& mrCmdRef;};class MacroCurrentfilelen : public WarTextMacro{public: MacroCurrentfilelen(const war_flen_t& fileLen); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const war_flen_t& mrLength;};class MacroCurrenttransbytes : public WarTextMacro{public: MacroCurrenttransbytes(const war_flen_t& fileLen); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const war_flen_t& mrLength;};class MacroCurrenttransrate : public WarTextMacro{public: MacroCurrenttransrate(const war_int64_t& fileCps); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const war_int64_t& mrCps;};class MacroCurrenttranstime : public WarTextMacro{public: MacroCurrenttranstime(const WarTime& transTime); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarTime& mrTime;};class MacroDirmsg : public WarTextMacro{public: MacroDirmsg(const WarSvrProtocol& rsvrProtocol); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocol& mrSvrProtocol;};class MacroEmail : public WarTextMacro{public: MacroEmail(const WarSvrProtocol& rsvrProtocol); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocol& mrSvrProtocol;};class MacroExplainerr : public WarTextMacro{public: MacroExplainerr(const WarError& lastError); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarError& mrLastError;};class MacroGreeting : public WarTextMacro{public: MacroGreeting(const WarSvrProtocol& rsvrProtocol); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocol& mrSvrProtocol;};class MacroDiskfree : public WarTextMacro{public: MacroDiskfree(const WarSvrProtocol& rsvrProtocol); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocol& mrSvrProtocol;};class MacroIdletimelm : public WarTextMacro{public: MacroIdletimelm(const int& idleLimit); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const int& mrIdleLimit; // in seconds};class MacroSystemname : public WarTextMacro{public: MacroSystemname(const std::string& siteName); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const std::string mSiteName;};// Assigned Numbers (RFC 1700), Operating System Nameclass MacroRfc1700OsName : public WarTextMacro{public: MacroRfc1700OsName(const WarSvrProtocol& rsvrProtocol); std::string Expand(war_ccstr_t argument = NULL) throw(WarException);private: const WarSvrProtocol& mrSvrProtocol;};#ifdef __cplusplus/* INLINE METHODS *//* EXTERNAL REFERENCES */#endif /* __cplusplus *//****************** END C++ spesific ******************/#endif /* WAR_SVR_PROTOCOL_FTP_MACROS_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -