OPAL (Object Oriented Parallel Accelerator Library)
2022.1
OPAL
src
src
Track
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
27
TrackEnd::TrackEnd
():
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
38
TrackEnd::~TrackEnd
()
39
{}
40
41
42
TrackEnd
*
TrackEnd::clone
(
const
std::string &
name
) {
43
return
new
TrackEnd
(
name
,
this
);
44
}
45
46
47
void
TrackEnd::execute
() {
48
Track::block
->
parser
.
stop
();
49
}
TrackEnd.h
TrackParser.h
Track.h
name
const std::string name
Definition:
MaxNormRadialPeak.cpp:32
Action
The base class for all OPAL actions.
Definition:
Action.h:30
OpalParser::stop
void stop() const
Set stop flag.
Definition:
OpalParser.cpp:638
Track::block
static Track * block
The block of track data.
Definition:
Track.h:59
Track::parser
TrackParser parser
The parser used during tracking.
Definition:
Track.h:56
TrackEnd
The ENDTRACK command.
Definition:
TrackEnd.h:30
TrackEnd::TrackEnd
TrackEnd()
Exemplar constructor.
Definition:
TrackEnd.cpp:27
TrackEnd::~TrackEnd
virtual ~TrackEnd()
Definition:
TrackEnd.cpp:38
TrackEnd::execute
virtual void execute()
Execute the command.
Definition:
TrackEnd.cpp:47
TrackEnd::clone
virtual TrackEnd * clone(const std::string &name)
Make clone.
Definition:
TrackEnd.cpp:42
Generated on Thu Oct 20 2022 17:40:12 for OPAL (Object Oriented Parallel Accelerator Library) by
1.9.3