31 "The \"SHOW\" statement displays all object names matching a "
32 " regular expression.") {
34 (
"PATTERN",
"Regular expression for pattern match");
50 return new Show(name,
this);
virtual void parseShortcut(Statement &)
Parser for single-attribute commands.
The base class for all OPAL actions.
std::vector< Attribute > itsAttr
The object attributes (see Attribute.hh).
static OpalData * getInstance()
Show()
Exemplar constructor.
virtual Show * clone(const std::string &name)
Make clone.
Interface for statements.
void registerOwnership(const AttributeHandler::OwnerType &itsClass) const
virtual void printHelp(std::ostream &) const
Print help.
void printNames(std::ostream &stream, const std::string &pattern)
Print all objects.
virtual void execute()
Execute the command.
Attribute makeString(const std::string &name, const std::string &help)
Make string attribute.
virtual void parse(Statement &)
Parse command (special for one-attribute command).
std::string getString(const Attribute &attr)
Get string value.