OpenASIP
2.2
Loading...
Searching...
No Matches
src
applibs
Simulator
SimulatorInterpreter.hh
Go to the documentation of this file.
1
/*
2
Copyright (c) 2002-2009 Tampere University.
3
4
This file is part of TTA-Based Codesign Environment (TCE).
5
6
Permission is hereby granted, free of charge, to any person obtaining a
7
copy of this software and associated documentation files (the "Software"),
8
to deal in the Software without restriction, including without limitation
9
the rights to use, copy, modify, merge, publish, distribute, sublicense,
10
and/or sell copies of the Software, and to permit persons to whom the
11
Software is furnished to do so, subject to the following conditions:
12
13
The above copyright notice and this permission notice shall be included in
14
all copies or substantial portions of the Software.
15
16
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
19
THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
22
DEALINGS IN THE SOFTWARE.
23
*/
24
/**
25
* @file SimulatorInterpreter.hh
26
*
27
* Declaration of SimulatorInterpreter class
28
*
29
* @author Pekka Jääskeläinen 2005 (pjaaskel-no.spam-cs.tut.fi)
30
* @note rating: red
31
*/
32
33
#ifndef TTA_SIMULATOR_INTERPRETER
34
#define TTA_SIMULATOR_INTERPRETER
35
36
#include <set>
37
38
#include "
TclInterpreter.hh
"
39
#include "
SimulatorInterpreterContext.hh
"
40
41
42
/**
43
* Implementation of the interpreter for the Simulator Control Language.
44
*
45
* Uses TCL as the base interpreter class and adds the custom commands of the
46
* Simulator Control Language to it.
47
*
48
*/
49
class
SimulatorInterpreter
:
public
TclInterpreter
{
50
public
:
51
SimulatorInterpreter
(
52
int
argc,
53
char
* argv[],
54
SimulatorInterpreterContext
&
context
,
55
LineReader
& reader);
56
virtual
~SimulatorInterpreter
();
57
58
bool
isQuitCommandGiven
()
const
;
59
void
setQuitCommandGiven
();
60
61
private
:
62
bool
quitted_
;
63
64
};
65
66
#endif
SimulatorInterpreterContext.hh
TclInterpreter.hh
LineReader
Definition
LineReader.hh:52
SimulatorInterpreterContext
Definition
SimulatorInterpreterContext.hh:45
SimulatorInterpreter
Definition
SimulatorInterpreter.hh:49
SimulatorInterpreter::quitted_
bool quitted_
Definition
SimulatorInterpreter.hh:62
SimulatorInterpreter::setQuitCommandGiven
void setQuitCommandGiven()
Definition
SimulatorInterpreter.cc:142
SimulatorInterpreter::isQuitCommandGiven
bool isQuitCommandGiven() const
Definition
SimulatorInterpreter.cc:134
SimulatorInterpreter::~SimulatorInterpreter
virtual ~SimulatorInterpreter()
Definition
SimulatorInterpreter.cc:123
TclInterpreter
Definition
TclInterpreter.hh:52
TclInterpreter::context
virtual InterpreterContext & context() const
Definition
TclInterpreter.cc:298
Generated by
1.9.8