OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Stop.cpp
Go to the documentation of this file.
1 // ------------------------------------------------------------------------
2 // $RCSfile: Stop.cpp,v $
3 // ------------------------------------------------------------------------
4 // $Revision: 1.1.1.1 $
5 // ------------------------------------------------------------------------
6 // Copyright: see Copyright.readme
7 // ------------------------------------------------------------------------
8 //
9 // Class: Stop
10 // The class for the OPAL STOP command.
11 //
12 // ------------------------------------------------------------------------
13 //
14 // $Date: 2000/03/27 09:33:37 $
15 // $Author: Andreas Adelmann $
16 //
17 // ------------------------------------------------------------------------
18 
19 #include "BasicActions/Stop.h"
20 
21 
22 // Class Stop
23 // ------------------------------------------------------------------------
24 
25 Stop::Stop(): Action(0, "STOP",
26  "The \"STOP\" statement terminates program execution "
27  "or reading of a called file.")
28 {}
29 
30 
31 Stop::Stop(const std::string &name, Stop *parent):
32  Action(name, parent)
33 {}
34 
35 
37 {}
38 
39 
40 Stop *Stop::clone(const std::string &name) {
41  return new Stop(name, this);
42 }
43 
44 
46 {}
The STOP command.
Definition: Stop.h:28
The base class for all OPAL actions.
Definition: Action.h:30
Stop()
Exemplar constructor.
Definition: Stop.cpp:25
virtual Stop * clone(const std::string &name)
Make clone.
Definition: Stop.cpp:40
const std::string name
virtual ~Stop()
Definition: Stop.cpp:36
virtual void execute()
Execute the command.
Definition: Stop.cpp:45