diff options
Diffstat (limited to 'arg.h')
-rw-r--r-- | arg.h | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -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); |