diff options
author | FreeArtMan <dos21h@gmail.com> | 2018-07-28 11:02:46 +0100 |
---|---|---|
committer | FreeArtMan <dos21h@gmail.com> | 2018-07-28 11:02:46 +0100 |
commit | 081b818ecc209944cfeae11e76d04323974b1d6b (patch) | |
tree | f1548e18be29ddd7af13751e775049c24837ffca | |
parent | bdf536e69839edd86fbd3a4be31a5f1c0debe82e (diff) | |
download | libarg++-081b818ecc209944cfeae11e76d04323974b1d6b.tar.gz libarg++-081b818ecc209944cfeae11e76d04323974b1d6b.zip |
Added new definitions of type
-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); |