9#if __cplusplus >= 201402L || defined(ARGX_AS_PYTHON_PACKAGE)
29#if defined(ARGX_AS_PYTHON_PACKAGE)
35 Argx(
const std::string &
id,
const std::vector<std::string> &args);
48 Argx(
const std::string &
id,
int argc,
char *argv[]);
92 std::string
createDocs(
ARGXStyle style,
const std::string &title,
const std::string &mainInfo);
99 std::string
paramToID(
const std::string ¶m);
141 bool hasTag(
const std::string &
id,
const std::string &tag);
178 std::vector<std::string>
getSubValue(
const std::string &
id);
196 std::string
getID()
const;
201# error "Must compile with C++14 support or newer"
202# pragma message("Current standard is " ARGX_TOSTRING(__cplusplus))
std::string paramToID(const std::string ¶m)
Normal parameter or sub-paramter to its corresponding ID.
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
std::vector< std::string > getSubValue(const std::string &id)
Get sub-parameter values, starting from the first value found until the first found value that corres...
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 getArgPos(const std::string &arg)
Get argument position with specified arg
int getArgIDPos(const std::string &arg)
Get argument using 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.
bool hasTag(const std::string &id, const std::string &tag)
Check if the tag exists in option with ID of id
int findParam(const std::string &id)
Find parameter and sub-parameter index.
~Argx()
Deconstruct allocated objects.
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.
bool subParamExists(const std::string &id)
Get if sub-param exists in the param options.
void add(ARGXOptions option) const
Add param options.
static std::vector< ARGXOptions > options
int getWrongArgs(const std::vector< std::string > &argv)
Get the incorrect arguments and sub-arguments that were not registered.
static int formatWrongArgs(const int &_int)
Format to a positive number if number is negative for a correct execution of code.
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
ARGXOptions getOption(const std::string &id)
Get Options from specified ID.