22 #ifndef OTAWA_SCRIPT_SCRIPT_H_
23 #define OTAWA_SCRIPT_SCRIPT_H_
25 #include <elm/system/Path.h>
27 #include <elm/util/ErrorHandler.h>
29 namespace elm {
namespace xom {
35 namespace otawa {
namespace script {
54 virtual string makeParam(
const string& value);
static cstring type_labels[]
Label matching the scripts (as passed in XML item elements).
Definition: Script.h:49
virtual string makeParam(const string &value)
Called to generate the string of parameter value before passing it to the XSLT processor.
Definition: script_Script.cpp:141
genstruct::Vector< ScriptItem * > items
Definition: Script.h:95
Identifier< xom::Element * > SCRIPT
Put by the Script intrepreter in the configuration properties launching the processor.
string name
Definition: Script.h:56
Definition: Registration.h:138
void declareGlobals(xom::XSLTransform &trans)
Declare global variables on the given transformation.
Definition: script_Script.cpp:670
ScriptItem(type_t t, xom::Element &elt)
Protected constructor.
Definition: script_Script.cpp:149
string help
Definition: Script.h:60
A script processor allows to interpret a file that performs a WCET computation.
Definition: Script.h:69
void makeConfig(xom::Element *elem, PropList &props)
Scan the configuration properties in the given element and fill the given property list...
Definition: script_Script.cpp:611
WorkSpace * ws
Definition: Processor.h:185
PropList props
Definition: Script.h:94
Identifier< bool > ONLY_CONFIG
This property informs the script to stop its work just after parsing the configuration items...
ItemIter(Script &script)
Definition: Script.h:80
void work(WorkSpace *ws)
Do the real work.
Definition: script_Script.cpp:353
Identifier< xom::Element * > PLATFORM
Put by the Script intrepreter in the configuration properties launching the processor.
Identifier< Pair< string, string > > PARAM
This identifier configures the Script to use the argument (identifier, value) as a parameter...
The processor class is implemented by all code processor.
Definition: Processor.h:49
string deflt
Definition: Script.h:58
virtual void onError(error_level_t level, const string &message)
Definition: script_Script.cpp:661
A workspace represents a program, its run-time and all information about WCET computation or any othe...
Definition: WorkSpace.h:67
elm::system::Path path
Definition: Script.h:93
virtual void processWorkSpace(WorkSpace *fw)
Process the given framework.
Definition: script_Script.cpp:333
bool timed
Definition: Script.h:96
Identifier< elm::system::Path > PATH
This identifier configures the Script to use the given path.
virtual ~ScriptItem(void)
Definition: script_Script.cpp:172
type_t type
Definition: Script.h:57
static Registration< Script > reg
Definition: Script.h:74
virtual void configure(const PropList &props)
This method may be called for configuring a processor thanks to information passed in the property li...
Definition: script_Script.cpp:322
These objects represents the item of the configuration of a script.
Definition: Script.h:38
This class represents identifier with a typed associated value.
Definition: Identifier.h:51
Identifier< bool > TIME_STAT
This property asks the script to time the performed steps.
Script(void)
Definition: script_Script.cpp:316
bool multi
Definition: Script.h:61
bool only_config
Definition: Script.h:96
This a list of properties.
Definition: PropList.h:63
string label
Definition: Script.h:59
static ScriptItem * parse(xom::Element &elt)
Parse an XML element to build the matching script item.
Definition: script_Script.cpp:253
Iterator(const Vector &vec)
void onWarning(xom::Node *node, const string &msg)
Handle an error.
Definition: script_Script.cpp:600
type_t
Definition: Script.h:40