1 /*
2     CmdInterface.h
3 
4     Copyright 2015-2019, Will Godfrey & others.
5 
6     This file is part of yoshimi, which is free software: you can
7     redistribute it and/or modify it under the terms of the GNU General
8     Public License as published by the Free Software Foundation, either
9     version 2 of the License, or (at your option) any later version.
10 
11     yoshimi is distributed in the hope that it will be useful,
12     but WITHOUT ANY WARRANTY; without even the implied warranty of
13     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14     GNU General Public License for more details.
15 
16     You should have received a copy of the GNU General Public License
17     along with yoshimi.  If not, see <http://www.gnu.org/licenses/>.
18 
19 */
20 
21 #ifndef CMDINTERFACE_H
22 #define CMDINTERFACE_H
23 
24 #include "CLI/CmdInterpreter.h"
25 
26 
27 
28 class CmdInterface
29 {
30     public:
31         CmdInterface();
32 
33         void cmdIfaceCommandLoop();
34 
35     private:
36         cli::CmdInterpreter interpreter;
37 
38         Config& getRuntime();
39         void Log(const string& , char tostderr = _SYS_::LogNormal);
40 };
41 
42 #endif
43