/**
* Matches user passed arguments with available parameter handlers.
*/
- void matchArguments(unsigned int argc, char *argv[]) {
+ void matchArguments(unsigned int , char **) {
// param->passUserValue();
}
* @param function Function used to handle current Option.
*/
Option(std::string name, std::string description, void (*function)(OptionType))
- : Parameter(description), Callable<OptionType>(function) {
+ : Parameter(description), Callable<OptionType>(function), name(name) {
}
virtual ~Option() { }
this->call(std::string("O"));
}
- virtual bool understand(std::string argVal) {
+ virtual bool understand(const std::string & argVal) {
if (argVal.find(name) != std::string::npos) {
return true;
}
* Method used for checking if the given user value understandable for
* parameter.
*/
- virtual bool understand(std::string argVal) = 0;
+ virtual bool understand(const std::string & ) = 0;
};
}
#include "argument.h"
#include "command.h"
-void some_function(std::string str) {
+void some_function(std::string) {
std::cout << "Some function" << std::endl;
}