43 "The \"REMOVE\" sub-command removes element(s) from the sequence "
46 (
"SELECTED",
"If true, all selected elements are removed");
48 (
"CLASS",
"Name of element class to be removed");
78 "\"class=selected\" or \"class=<name>\" "
79 "is required for \"REMOVE\".");
84 std::cerr <<
"\nNo elements";
85 }
else if(count == 1) {
86 std::cerr <<
"\n1 element";
88 std::cerr <<
'\n' << count <<
" elements";
The base class for all OPAL exceptions.
virtual void execute()
Execute the command.
The sequence editor REMOVE command.
std::vector< Attribute > itsAttr
The object attributes (see Attribute.hh).
The base class for all OPAL sequence editor commands.
bool getBool(const Attribute &attr)
Return logical value.
PlaceRep getPlace(const Attribute &attr)
Get place value.
Representation of a place within a beam line or sequence.
EditRemove()
Exemplar constructor.
virtual EditRemove * clone(const std::string &name)
Make clone.
void registerOwnership(const AttributeHandler::OwnerType &itsClass) const
static Edit * block
Pointer to the edit data.
Attribute makePlace(const std::string &name, const std::string &help)
Create a place attribute.
Attribute makeBool(const std::string &name, const std::string &help)
Make logical attribute.
int removeSingle(const PlaceRep &)
Remove single element.
int removeMultiple()
Remove multiple elements.
Inform & endl(Inform &inf)