NEST  2.6.0,not_revisioned_source_dir@0
slimodule.h
Go to the documentation of this file.
1 /*
2  * slimodule.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 SLIMODULE_H
24 #define SLIMODULE_H
25 #include <iostream>
26 #include <string>
27 
28 class SLIInterpreter;
29 class Dictionary;
30 
34 class SLIModule
35 {
36  public:
37  virtual ~SLIModule(){};
38 
47  virtual void init(SLIInterpreter *) =0;
48 
52  virtual const std::string name(void) const=0;
53 
57  virtual const std::string commandstring(void) const;
58 
62  void install(std::ostream &, SLIInterpreter *);
63 };
64 #endif
virtual const std::string name(void) const =0
Return name of the module.
A class that associates names and tokens.
Definition: dict.h:45
void install(std::ostream &, SLIInterpreter *)
Print installation message via interpreter message command.
Definition: slimodule.cc:26
virtual ~SLIModule()
Definition: slimodule.h:37
Definition: interpret.h:69
virtual void init(SLIInterpreter *)=0
Initialise the module.
Base class for all SLI Interpreter modules.
Definition: slimodule.h:34
virtual const std::string commandstring(void) const
Return sli command sequence to be executed for initialisation.
Definition: slimodule.cc:34