msh-console/commands.h

25 lines
462 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*);
int howMany();
int launch(const vector<string>* args);
};
class CommandsAlreadyCreatedException{};
class CommandNotFoundException{};
#endif // COMMANDS_H