30 "The \"WHAT\" statement displays the definition and attribute"
31 " values of an object.") {
33 (
"NAME",
"Name of object to be displayed");
49 return new What(name,
this);
60 std::cerr <<
'\n' << *
this <<
"\nUnknown object \"" << name <<
"\".\n"
virtual void parseShortcut(Statement &)
Parser for single-attribute commands.
The base class for all OPAL actions.
What()
Exemplar constructor.
std::vector< Attribute > itsAttr
The object attributes (see Attribute.hh).
static OpalData * getInstance()
virtual What * clone(const std::string &name)
Make clone.
Interface for statements.
void registerOwnership(const AttributeHandler::OwnerType &itsClass) const
virtual void execute()
Execute the command.
virtual void printHelp(std::ostream &) const
Print help.
const T * find(const T table[], const std::string &name)
Look up name.
The base class for all OPAL objects.
Attribute makeString(const std::string &name, const std::string &help)
Make string attribute.
Inform & endl(Inform &inf)
std::string getString(const Attribute &attr)
Get string value.
virtual void parse(Statement &)
Parse command (special for one-attribute command).