27 "The \"SYSTEM\" statement sends a command string to the "
28 "operating system.") {
30 (
"CMD",
"A system command to be executed");
54 int res = system(command.c_str());
Inform & endl(Inform &inf)
std::string getString(const Attribute &attr)
Get string value.
Attribute makeString(const std::string &name, const std::string &help)
Make string attribute.
The base class for all OPAL actions.
virtual void parseShortcut(Statement &, bool eval=true)
Parser for single-attribute commands.
void registerOwnership(const AttributeHandler::OwnerType &itsClass) const
std::vector< Attribute > itsAttr
The object attributes.
virtual System * clone(const std::string &name)
Make clone.
virtual void execute()
Execute the command.
virtual void parse(Statement &)
Parse command (special for one-attribute command).
System()
Exemplar constructor.
Interface for statements.