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

📄 wargetopt.h

📁 ftpserver very good sample
💻 H
字号:
/*     WarGetopt implements a tread-safe getopt_long()    function, using the same source as the generic     C port of the function.     The class implementation is designed for C++ classes    that parses command-line options.*/#ifndef WAR_GETOPT_H#define WAR_GETOPT_H#include "jgaa/getopt.h"#define WAR_GETOPT_CLASSclass WarGetopt{public:        WarGetopt()        : optarg(NULL),         optind(0),        opterr(1),        optopt(0),        opt_idx(0)    {}    int GetoptErr(int ch, int arg, const char *parg);    int GetoptLong(int argc,                char * const argv[],                const char *optstring,                const struct option *longopts,                int *longindex);    const char *optarg;    int optind, opterr, optopt;private:    int opt_idx;};#endif // WAR_GETOPT_H

⌨️ 快捷键说明

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