epr24pr5-ojanssen2/SubCommand.h

26 lines
534 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(int argc, stringstream& args);
};
} // commands
#endif // SUBCOMMAND_H