epr24pr5-ojanssen2/SubCommand.h
moonleay 9749953ed7
feat: finished implementing stubs in Manager
fix: fixed initial problems with impl
2025-02-09 21:14:26 +01:00

26 lines
524 B
C++

#pragma once
#include "std_lib_inc.h"
#ifndef SUBCOMMAND_H
#define SUBCOMMAND_H
namespace commands
{
class SubCommand
{
private:
string name;
bool show_result;
protected:
int return_value;
public:
SubCommand(const string& indicator, const int& value, const bool show_result);
string get_name();
int get_value() const;
bool should_display_result() const;
virtual void run(stringstream& args);
};
} // commands
#endif // SUBCOMMAND_H