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