first add files

This commit is contained in:
2019-11-29 11:58:31 +08:00
parent 9c86489a35
commit 15db8e01c7
16 changed files with 677 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
#ifndef HGL_COMMAND_LINE_PARSE_INCLUDE
#define HGL_COMMAND_LINE_PARSE_INCLUDE
#include<hgl/type/StringList.h>
namespace hgl
{
namespace util
{
/**
* 命令行参数解晰辅助类
*/
class CmdParse ///命令行参数解晰辅助类
{
OSStringList args;
public:
CmdParse(const OSStringList &);
virtual ~CmdParse();
int Find(const OSString &)const; ///<查找一个指定字串开头的参数是否存在
bool GetInteger(const OSString &,int *)const; ///<取得一个数值参数
bool GetString(const OSString &,OSString &)const; ///<取得一个字符串参数
};//class CmdParse
}//namespace util
}//namespace hgl
#endif//HGL_COMMAND_LINE_PARSE_INCLUDE