C++ Utilities
4.10.0
Common C++ classes and routines used by my applications such as argument parser, IO and conversion utilities
|
#include "../global.h"
#include <functional>
#include <initializer_list>
#include <limits>
#include <vector>
Go to the source code of this file.
Classes | |
struct | ApplicationUtilities::ArgumentOccurrence |
The ArgumentOccurrence struct holds argument values for an occurrence of an argument. More... | |
class | ApplicationUtilities::Argument |
The Argument class is a wrapper for command line argument information. More... | |
class | ApplicationUtilities::ArgumentParser |
The ArgumentParser class provides a means for handling command line arguments. More... | |
class | ApplicationUtilities::HelpArgument |
The HelpArgument class prints help information for an argument parser when present (–help, -h). More... | |
class | ApplicationUtilities::OperationArgument |
The OperationArgument class is an Argument where denotesOperation() is true by default. More... | |
class | ApplicationUtilities::ConfigValueArgument |
The ConfigValueArgument class is an Argument where setCombinable() is true by default. More... | |
Namespaces | |
ApplicationUtilities | |
Contains currently only ArgumentParser and related classes. | |
Macros | |
#define | SET_DEPENDENCY_INFO ::ApplicationUtilities::dependencyVersions = DEPENCENCY_VERSIONS |
SET_DEPENDENCY_INFO More... | |
#define | SET_APPLICATION_INFO |
SET_APPLICATION_INFO More... | |
Typedefs | |
typedef std::initializer_list< Argument * > | ApplicationUtilities::ArgumentInitializerList |
typedef std::vector< Argument * > | ApplicationUtilities::ArgumentVector |
typedef std::function< bool(Argument *)> | ApplicationUtilities::ArgumentPredicate |
Functions | |
Argument CPP_UTILITIES_EXPORT * | ApplicationUtilities::firstPresentUncombinableArg (const ArgumentVector &args, const Argument *except) |
This function return the first present and uncombinable argument of the given list of arguments. More... | |
#define SET_APPLICATION_INFO |
SET_APPLICATION_INFO
Sets application meta data (including SET_DEPENDENCY_INFO) used by ArgumentParser::printHelp().
Definition at line 41 of file argumentparser.h.
#define SET_DEPENDENCY_INFO ::ApplicationUtilities::dependencyVersions = DEPENCENCY_VERSIONS |
SET_DEPENDENCY_INFO
Sets meta data about the dependencies the application was linked against which is used by ArgumentParser::printHelp().
Definition at line 31 of file argumentparser.h.