epr24pr5-ojanssen2/SubCommand.cpp

21 lines
455 B
C++
Raw Normal View History

#include "SubCommand.h"
#include <sstream>
namespace commands {
2025-02-09 22:32:19 +01:00
SubCommand::SubCommand(const string& indicator, const bool show_result): name(indicator), show_result(show_result) {}
void SubCommand::run(stringstream& args) {
cout << "Not impl!\n";
}
string SubCommand::get_name() {
return this->name;
}
bool SubCommand::should_display_result() const
{
return this->show_result;
}
} // commands