/***************************************************************************
                          cparser.h  -  description
                             -------------------
    begin                : Mon May 12 2003
    copyright            : (C) 2003 by Daniel Muller
    email                : dan at verliba dot cz
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This program is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU General Public License as published by  *
 *   the Free Software Foundation; either version 2 of the License, or     *
 *   (at your option) any later version.                                   *
 *                                                                         *
 ***************************************************************************/

#ifndef CPARSER_H
#define CPARSER_H


#include <string>
#include <map>
#include "cprotocommand.h"

using namespace std;

/**a command parser
  *@author Daniel Muller
  */


class cParser
{
public:
	cParser();
	~cParser();
	/** find a command and return its pointer or NULL */
	cProtoCommand * Find(string key);
public: // Public attributes
	/** a hash of commands */
	map<string,cProtoCommand *> mCmds;
	map<string,cProtoCommand *> :: iterator miCmd;
};

#endif
