| 20 | }; |
| 21 | |
| 22 | class CommandLineException : std::exception |
| 23 | { |
| 24 | public: |
| 25 | /** |
| 26 | * \param msg 异常消息 |
| 27 | * \remark vs和gcc仅有该共有的参数类型 |
| 28 | */ |
| 29 | CommandLineException(const char* msg) |
| 30 | : std::exception(msg) |
| 31 | { |
| 32 | } |
| 33 | }; |
| 34 | |
| 35 | /** |
| 36 | * \brief 特定语法结构的命令行解析工具 |