9#if __cplusplus >= 201103L
34 Argx(
const std::string &
id,
int argc,
char *argv[]);
58 std::string
createDocs(
ARGXStyle style,
const std::string &title,
const std::string &mainInfo);
110 std::string
getID()
const;
115# error "Must compile with C++11 support or newer"
116# pragma message("Current standard is " ARGX_TOSTRING(__cplusplus))
Argx(const std::string &id, int argc, char *argv[])
Create Argx with the specific id, argc and argv
ARGXParam getParam(const std::string &id)
Get the param from id
static unsigned int mainArgc
std::vector< ARGXOptions > getOptions() const
Get main set options as ARGXOptions.
static std::vector< std::string > * mainArgs
std::vector< std::string > getMainArgs() const
Get main arguments from main() function argv
std::string getID() const
Get Argx ID.
int getArgc() const
Get the main options from the main() function as argc.
bool paramExists(const std::string &id)
Get if param exists in the param options.
int findParam(const std::string &id)
Find parameter index.
std::string createDocs(ARGXStyle style, const std::string &title, const std::string &mainInfo)
Create documentation for the parameters with the specific style, title and main information.
void add(ARGXOptions option) const
Add param options.
static std::vector< ARGXOptions > options
bool compareArgs(std::vector< ARGXOptions > options, std::vector< std::string > argv)
Compare if options contains the required id, if the ID does not exist, return false.
bool getSubParam(const argx::ARGXParam ¶m, const std::string &id)
Get the sub-param from id