warargs.h

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

H
87
字号
/** */#ifndef WAR_ARGS_H#define WAR_ARGS_H/* SYSTEM INCLUDES *//* PROJECT INCLUDES *//* 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 __cplusplustemplate <class charT>class WarArgs {public:    typedef std::vector<charT *> args_t;    // LIFECYCLE        /**    * Default constructor.    */    WarArgs(void);        /**    * Destructor.    */    ~WarArgs(void);        // OPERATORS    // OPERATIONS                           void Add(const charT *arg);    // ACCESS    int GetArgc() const;    charT **GetArgv();    // INQUIRY    bool mArgMode; // Only split at whitespace _if_ the token looks like a command-line argumentprotected:private:    args_t mArgs;};/* INLINE METHODS */template <class charT>WarArgs<charT>& operator << (WarArgs<charT>& to, const charT *from);/* EXTERNAL REFERENCES */#endif /* __cplusplus *//****************** END C++ spesific ******************/#endif  /* WAR_ARGS_H_ */

⌨️ 快捷键说明

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