NEST  2.6.0,not_revisioned_source_dir@0
slifunction.h
Go to the documentation of this file.
1 /*
2  * slifunction.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 SLIFUNCTION_H
24 #define SLIFUNCTION_H
25 /*
26  Base class for all SLI functions.
27 */
28 
29 class SLIInterpreter;
30 
31 /*
32  class SLICommand replaces the old class Function from SYNOD 1.x.
33  */
34 
36 {
37 public:
39  virtual void execute(SLIInterpreter *) const = 0;
40  virtual ~SLIFunction(){}
41 
52  virtual void backtrace(SLIInterpreter *, int) const
53  {}
54 };
55 
56 #endif
57 
Definition: slifunction.h:35
Definition: interpret.h:69
virtual ~SLIFunction()
Definition: slifunction.h:40
virtual void backtrace(SLIInterpreter *, int) const
Show stack backtrace information on error.
Definition: slifunction.h:52
SLIFunction()
Definition: slifunction.h:38
virtual void execute(SLIInterpreter *) const =0