Otawa
0.10
|
These objects represents the item of the configuration of a script. More...
#include <otawa/script/Script.h>
Inherited by otawa::script::BoolItem, otawa::script::EnumItem, and otawa::script::StringItem.
Public Types | |
enum | type_t { T_BOOL = 0, T_INT = 1, T_STRING = 2, T_RANGE = 3, T_ENUM = 4, T_MAX = 5 } |
Public Member Functions | |
virtual | ~ScriptItem (void) |
virtual string | makeParam (const string &value) |
Called to generate the string of parameter value before passing it to the XSLT processor. More... | |
Static Public Member Functions | |
static ScriptItem * | parse (xom::Element &elt) |
Parse an XML element to build the matching script item. More... | |
Public Attributes | |
string | name |
type_t | type |
string | deflt |
string | label |
string | help |
bool | multi |
Static Public Attributes | |
static cstring | type_labels [] |
Label matching the scripts (as passed in XML item elements). More... | |
Protected Member Functions | |
ScriptItem (type_t t, xom::Element &elt) | |
Protected constructor. More... | |
These objects represents the item of the configuration of a script.
|
virtual |
|
protected |
Protected constructor.
References deflt, elm::xom::Element::getAttributeValue(), elm::xom::Element::getFirstChildElement(), elm::xom::Element::getValue(), help, label, multi, and name.
Referenced by parse().
Called to generate the string of parameter value before passing it to the XSLT processor.
The result must be an XPath valid expression.
value | Value of the parameter. |
References elm::value().
|
static |
Parse an XML element to build the matching script item.
elt | Element to parse. |
ParseError | If there is an error. |
References _, elm::xom::Element::getAttributeValue(), ScriptItem(), T_MAX, and type_labels.
Referenced by otawa::script::Script::work().
string otawa::script::ScriptItem::deflt |
Referenced by ScriptItem().
string otawa::script::ScriptItem::help |
Referenced by ScriptItem().
string otawa::script::ScriptItem::label |
Referenced by ScriptItem().
bool otawa::script::ScriptItem::multi |
Referenced by ScriptItem().
string otawa::script::ScriptItem::name |
Referenced by ScriptItem(), and otawa::script::Script::work().
type_t otawa::script::ScriptItem::type |
|
static |
Label matching the scripts (as passed in XML item elements).
Referenced by parse().