34 "The \"CYCLE\" sub-command changes the starting point "
35 "by cyclic interchange.") {
37 (
"START",
"The new start position for the sequence");
62 std::cerr <<
"\nStart position changed to \"" <<
itsAttr[0] <<
"\".\n"
66 throw OpalException(
"EditCycle::execute()",
"Could not find place \"" +
67 itsAttr[0].getImage() +
"\" in top-level sequence.");
The base class for all OPAL exceptions.
std::vector< Attribute > itsAttr
The object attributes (see Attribute.hh).
The base class for all OPAL sequence editor commands.
PlaceRep getPlace(const Attribute &attr)
Get place value.
Representation of a place within a beam line or sequence.
void registerOwnership(const AttributeHandler::OwnerType &itsClass) const
static Edit * block
Pointer to the edit data.
EditCycle()
Exemplar constructor.
The sequence editor CYCLE command.
Attribute makePlace(const std::string &name, const std::string &help)
Create a place attribute.
virtual void execute()
Execute the command.
Inform & endl(Inform &inf)
virtual EditCycle * clone(const std::string &name)
Make clone.