epr24pr5-ojanssen2/SubCommand.h

23 lines
427 B
C
Raw Permalink Normal View History

#pragma once
#include "std_lib_inc.h"
#ifndef SUBCOMMAND_H
#define SUBCOMMAND_H
namespace commands
{
class SubCommand
{
private:
string name;
bool show_result;
public:
2025-02-09 22:32:19 +01:00
SubCommand(const string& indicator, bool show_result);
string get_name();
bool should_display_result() const;
virtual void run(stringstream& args);
};
} // commands
#endif // SUBCOMMAND_H