forked from University/epr24pr5-ojanssen2
26 lines
524 B
C++
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
|