23#include "Utility/IpplInfo.h"
29 "The \"HELP\" statement displays the purpose and attribute "
30 "types of an object.") {
47 object->printHelp(std::cerr);
49 *ippl::Error <<
"\n" << *
this <<
"Unknown object \"" << name <<
"\".\n" << endl;
The base class for all OPAL actions.
virtual Help * clone(const std::string &name)
Make clone.
virtual void execute()
Execute the command.
virtual void parse(Statement &)
Parse command (special for one-attribute command).
Help()
Exemplar constructor.
The base class for all OPAL objects.
virtual void parseShortcut(Statement &, bool eval=true)
Parser for single-attribute commands.
void registerOwnership(const AttributeHandler::OwnerType &itsClass) const
virtual void printHelp(std::ostream &) const
Print help.
std::vector< Attribute > itsAttr
The object attributes.
static OpalData * getInstance()
Interface for statements.
std::string getString(const Attribute &attr)
Get string value.
Attribute makeString(const std::string &name, const std::string &help)
Make string attribute.