NEST  2.6.0,not_revisioned_source_dir@0
gnureadline.h
Go to the documentation of this file.
1 /*
2  * gnureadline.h
3  *
4  * This file is part of NEST.
5  *
6  * Copyright (C) 2004 The NEST Initiative
7  *
8  * NEST is free software: you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 2 of the License, or
11  * (at your option) any later version.
12  *
13  * NEST is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with NEST. If not, see <http://www.gnu.org/licenses/>.
20  *
21  */
22 
23 #ifndef GNUREADLINE_H
24 #define GNUREADLINE_H
25 
26 #include "config.h"
27 #ifdef HAVE_READLINE
28 
29 #include "slitype.h"
30 #include "slimodule.h"
31 
32 class GNUReadline: public SLIModule
33 {
34  public:
35 
37  ~GNUReadline();
38 
39  const std::string name(void) const
40  {
41  return "GNUReadline";
42  }
43 
44  void init(SLIInterpreter *);
45 
47  {
48  public:
49  void execute(SLIInterpreter *) const;
50  };
51 
53  {
54  public:
55  void execute(SLIInterpreter *) const;
56  };
57 
60 };
61 
62 #endif //HAVE_READLINE
63 
64 #endif
Definition: slifunction.h:35
GNUReadline()
Definition: gnureadline.h:36
GNUAddhistoryFunction gnuaddhistoryfunction
Definition: gnureadline.h:59
const std::string name(void) const
Return name of the module.
Definition: gnureadline.h:39
Definition: gnureadline.h:32
void execute(SLIInterpreter *) const
Definition: gnureadline.cc:49
Definition: interpret.h:69
Definition: gnureadline.h:46
~GNUReadline()
Definition: gnureadline.cc:106
void init(SLIInterpreter *)
Initialise the module.
Definition: gnureadline.cc:111
Base class for all SLI Interpreter modules.
Definition: slimodule.h:34
GNUReadlineFunction gnureadlinefunction
Definition: gnureadline.h:58
void execute(SLIInterpreter *) const
Definition: gnureadline.cc:89
Definition: gnureadline.h:52