forked from dbbs-lab/cereb-nest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cerebmodule.h
74 lines (64 loc) · 1.89 KB
/
cerebmodule.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*
* cerebmodule.h
*
* This file is part of NEST.
*
* Copyright (C) 2004 The NEST Initiative
*
* NEST is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
*
* NEST is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with NEST. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef CEREBMODULE_H
#define CEREBMODULE_H
// Includes from sli:
#include "slifunction.h"
#include "slimodule.h"
// Put your stuff into your own namespace.
namespace mynest
{
/**
* Class defining your model.
* @note For each model, you must define one such class, with a unique name.
*/
class CerebModule : public SLIModule
{
public:
// Interface functions ------------------------------------------
/**
* @note The constructor registers the module with the dynamic loader.
* Initialization proper is performed by the init() method.
*/
CerebModule();
/**
* @note The destructor does not do much in modules.
*/
~CerebModule();
/**
* Initialize module.
* @param SLIInterpreter* SLI interpreter
*/
void init( SLIInterpreter* );
/**
* Return the name of your model.
*/
const std::string name( void ) const;
/**
* Return the name of a sli file to execute when cerebmodule is loaded.
* This mechanism can be used to define SLI commands associated with your
* module, in particular, set up type tries for functions you have defined.
*/
const std::string commandstring( void ) const;
};
} // namespace mynest
#endif