-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsli_module.h
61 lines (54 loc) · 1.27 KB
/
sli_module.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
/*
* slimodule.h
*
* This file is part of NEST
*
* Copyright (C) 2004 by
* The NEST Initiative
*
* See the file AUTHORS for details.
*
* Permission is granted to compile and modify
* this file for non-commercial use.
* See the file LICENSE for details.
*
*/
#ifndef SLI_MODULE_H
#define SLI_MODULE_H
#include <iostream>
#include <string>
namespace sli3
{
class SLIInterpreter;
class Dictionary;
/**
* Base class for all SLI Interpreter modules.
*/
class SLIModule
{
public:
virtual ~SLIModule(){}
/**
* Initialise the module.
* When this function is called, most of the
* interpreter's fascilities are up and running.
* However, depending on where in the interpreter's
* bootstrap sequence the module is initialised, not
* all services may be available.
*/
virtual void init(SLIInterpreter *) =0;
/**
* Return name of the module.
*/
virtual const std::string name(void) const=0;
/**
* Return sli command sequence to be executed for initialisation.
*/
virtual const std::string commandstring(void) const;
/**
* Print installation message via interpreter message command.
*/
void install(std::ostream &, SLIInterpreter *);
};
}
#endif