RepCommandInterpreter.hpp
Upload User: romrleung
Upload Date: 2022-05-23
Package Size: 18897k
Code Size: 1k
Category:

MySQL

Development Platform:

Visual C++

  1. /* Copyright (C) 2003 MySQL AB
  2.    This program is free software; you can redistribute it and/or modify
  3.    it under the terms of the GNU General Public License as published by
  4.    the Free Software Foundation; either version 2 of the License, or
  5.    (at your option) any later version.
  6.    This program is distributed in the hope that it will be useful,
  7.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  8.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  9.    GNU General Public License for more details.
  10.    You should have received a copy of the GNU General Public License
  11.    along with this program; if not, write to the Free Software
  12.    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA */
  13. #ifndef REP_COMMAND_INTERPRETER_HPP
  14. #define REP_COMMAND_INTERPRETER_HPP
  15. #include <editline/editline.h>
  16. #include <rep/RepComponents.hpp>
  17. #include <rep/state/RepState.hpp>
  18. /**
  19.  * @class RepCommandInterpreter
  20.  * @brief
  21.  */
  22. class RepCommandInterpreter {
  23. public:
  24.   RepCommandInterpreter(class RepComponents * comps); 
  25.   ~RepCommandInterpreter();
  26.   bool     readAndExecute();
  27. private:
  28.   char *  readline_gets() const; 
  29.   void    request(Uint32 request);
  30.   class RepComponents *  m_repComponents;
  31.   class RepState *       m_repState;
  32. };
  33. #endif