forked from University/epr24pr5-ojanssen2
fix: fixed compile
This commit is contained in:
parent
0305c5034d
commit
44495dd11e
2 changed files with 2 additions and 7 deletions
|
@ -2,7 +2,7 @@
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
namespace commands {
|
namespace commands {
|
||||||
SubCommand::SubCommand(const string& name, const bool show_result): name(name), show_result(show_result) {}
|
SubCommand::SubCommand(const string& indicator, const bool show_result): name(indicator), show_result(show_result) {}
|
||||||
|
|
||||||
void SubCommand::run(stringstream& args) {
|
void SubCommand::run(stringstream& args) {
|
||||||
cout << "Not impl!\n";
|
cout << "Not impl!\n";
|
||||||
|
@ -12,10 +12,6 @@ namespace commands {
|
||||||
return this->name;
|
return this->name;
|
||||||
}
|
}
|
||||||
|
|
||||||
int SubCommand::get_value() const {
|
|
||||||
return this->return_value;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool SubCommand::should_display_result() const
|
bool SubCommand::should_display_result() const
|
||||||
{
|
{
|
||||||
return this->show_result;
|
return this->show_result;
|
||||||
|
|
|
@ -12,9 +12,8 @@ namespace commands
|
||||||
bool show_result;
|
bool show_result;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SubCommand(const string& indicator, const bool show_result);
|
SubCommand(const string& indicator, bool show_result);
|
||||||
string get_name();
|
string get_name();
|
||||||
int get_value() const;
|
|
||||||
bool should_display_result() const;
|
bool should_display_result() const;
|
||||||
virtual void run(stringstream& args);
|
virtual void run(stringstream& args);
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue