From 081b818ecc209944cfeae11e76d04323974b1d6b Mon Sep 17 00:00:00 2001 From: FreeArtMan Date: Sat, 28 Jul 2018 11:02:46 +0100 Subject: Added new definitions of type --- arg.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/arg.h b/arg.h index b926b51..edc428a 100644 --- a/arg.h +++ b/arg.h @@ -313,6 +313,13 @@ typedef struct s_arg_val class CmdArgVal { int used; char *ptr; +public: + CmdArgVal(); + int isUsed(); + //char* get(); //do not free + void setUsed(); + void setFlag(); + char *getValue(); }; class CmdArgValConf { @@ -321,6 +328,11 @@ class CmdArgValConf { char *ptr; char *default_ptr; CmdArgVal *result; +public: + CmdArgValConf(); + int isUsed(); + void setUsed(); + void link(CmdArgVal *valArg); }; /* @@ -391,6 +403,8 @@ public: //CmdArgDefault(char *param, uint32_t type, void *def, char *help, void *result); CmdArgDefault(char *param, CmdArgFlagConf *def, char *help, CmdArgFlag *result); //CmdArgDefault(char *param, CmdArgFlagConf *def, char *help, CmdArgFlag *result); + CmdArgDefault(char *param, CmdArgValConf *def, char *help, CmdArgVal *result); + void setParam(char *param); char *getParam(); void setType(uint32_t type); -- cgit v1.2.3