2024-10-27 15:51:46 +08:00
|
|
|
#ifndef CMD_PARSE_HEADER
|
|
|
|
#define CMD_PARSE_HEADER
|
|
|
|
|
|
|
|
#include "public.hpp"
|
2024-10-29 12:42:11 +08:00
|
|
|
#include <boost/program_options.hpp>
|
2024-10-27 15:51:46 +08:00
|
|
|
|
2024-10-29 12:42:11 +08:00
|
|
|
namespace cmd = boost::program_options;
|
2024-10-27 15:51:46 +08:00
|
|
|
|
2024-10-29 12:42:11 +08:00
|
|
|
class CCmdParse
|
2024-10-27 15:51:46 +08:00
|
|
|
{
|
2024-10-29 12:42:11 +08:00
|
|
|
public:
|
|
|
|
CCmdParse();
|
|
|
|
public:
|
|
|
|
bool cmdParse(int argc, char* argv[]);
|
2024-10-29 20:38:54 +08:00
|
|
|
bool Run();
|
2024-10-27 15:51:46 +08:00
|
|
|
private:
|
|
|
|
CmdResult result_;
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|