25 lines
465 B
C++
25 lines
465 B
C++
#ifndef COMMANDS_H
|
|
#define COMMANDS_H
|
|
#include <string>
|
|
#include <vector>
|
|
#include <command.h>
|
|
#include "cmds.h"
|
|
using std::string;
|
|
using std::vector;
|
|
|
|
class Commands
|
|
{
|
|
vector<Command*> commands;
|
|
static bool created;
|
|
Commands(Commands&);
|
|
public:
|
|
Commands();
|
|
void add(Command*);
|
|
size_t howMany();
|
|
int launch(const vector<string>* args);
|
|
};
|
|
|
|
class CommandsAlreadyCreatedException{};
|
|
class CommandNotFoundException{};
|
|
|
|
#endif // COMMANDS_H
|