OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
TrackEnd.cpp
Go to the documentation of this file.
1 // ------------------------------------------------------------------------
2 // $RCSfile: TrackEnd.cpp,v $
3 // ------------------------------------------------------------------------
4 // $Revision: 1.1.1.1 $
5 // ------------------------------------------------------------------------
6 // Copyright: see Copyright.readme
7 // ------------------------------------------------------------------------
8 //
9 // Class: TrackEnd
10 // The class for the OPAL ENDTRACK command.
11 //
12 // ------------------------------------------------------------------------
13 //
14 // $Date: 2000/03/27 09:33:46 $
15 // $Author: Andreas Adelmann $
16 //
17 // ------------------------------------------------------------------------
18 
19 #include "Track/TrackEnd.h"
20 #include "Track/Track.h"
21 #include "Track/TrackParser.h"
22 
23 
24 // Class TrackEnd
25 // ------------------------------------------------------------------------
26 
28  Action(0, "ENDTRACK",
29  "The \"ENDTRACK\" sub-command stops tracking.")
30 {}
31 
32 
33 TrackEnd::TrackEnd(const std::string &name, TrackEnd *parent):
34  Action(name, parent)
35 {}
36 
37 
39 {}
40 
41 
42 TrackEnd *TrackEnd::clone(const std::string &name) {
43  return new TrackEnd(name, this);
44 }
45 
46 
49 }
const std::string name
The base class for all OPAL actions.
Definition: Action.h:30
void stop() const
Set stop flag.
Definition: OpalParser.cpp:638
static Track * block
The block of track data.
Definition: Track.h:56
TrackParser parser
The parser used during tracking.
Definition: Track.h:53
The ENDTRACK command.
Definition: TrackEnd.h:30
TrackEnd()
Exemplar constructor.
Definition: TrackEnd.cpp:27
virtual ~TrackEnd()
Definition: TrackEnd.cpp:38
virtual void execute()
Execute the command.
Definition: TrackEnd.cpp:47
virtual TrackEnd * clone(const std::string &name)
Make clone.
Definition: TrackEnd.cpp:42