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