msh-console/commands.h

26 lines
465 B
C
Raw Normal View History

#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