OpenASIP
2.0
src
applibs
Interpreter
TclConditionScript.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 TclConditionScript.hh
26
*
27
* Declaration of TclConditionScript class.
28
*
29
* @author Pekka Jääskeläinen 2005 (pjaaskel-no.spam-cs.tut.fi)
30
*/
31
32
#ifndef TTA_TCL_CONDITION_SCRIPT_HH
33
#define TTA_TCL_CONDITION_SCRIPT_HH
34
35
#include <string>
36
#include <vector>
37
38
#include "
Exception.hh
"
39
#include "
ConditionScript.hh
"
40
41
class
TclInterpreter
;
42
43
/**
44
* Class that contains a script that defines a condition for some action.
45
*
46
* A version tweaked to work with Tcl. Tcl does not allow condition to be
47
* an expression with a value, so I had to wrap the condition in a
48
* an if ... else .. expression to make it work.
49
*/
50
class
TclConditionScript
:
public
ConditionScript
{
51
public
:
52
TclConditionScript
(
53
TclInterpreter
* interpreter, std::string scriptLine);
54
virtual
~TclConditionScript
();
55
56
virtual
std::vector<std::string>
script
()
const
;
57
58
virtual
ConditionScript
*
copy
()
const
;
59
private
:
60
std::string
displayedCondition_
;
61
};
62
63
#endif
Exception.hh
TclInterpreter
Definition:
TclInterpreter.hh:52
TclConditionScript::TclConditionScript
TclConditionScript(TclInterpreter *interpreter, std::string scriptLine)
Definition:
TclConditionScript.cc:49
TclConditionScript::~TclConditionScript
virtual ~TclConditionScript()
Definition:
TclConditionScript.cc:61
TclConditionScript::displayedCondition_
std::string displayedCondition_
Definition:
TclConditionScript.hh:60
TclConditionScript
Definition:
TclConditionScript.hh:50
ConditionScript.hh
ConditionScript
Definition:
ConditionScript.hh:45
TclConditionScript::copy
virtual ConditionScript * copy() const
Definition:
TclConditionScript.cc:84
TclConditionScript::script
virtual std::vector< std::string > script() const
Definition:
TclConditionScript.cc:70
Generated by
1.8.17