OPAL (Object Oriented Parallel Accelerator Library)
2022.1
OPAL
src
src
BasicActions
Stop.cpp
Go to the documentation of this file.
1
//
2
// Class Stop
3
// The class for OPAL STOP command.
4
//
5
// Copyright (c) 2000 - 2021, Paul Scherrer Institut, Villigen PSI, Switzerland
6
// All rights reserved
7
//
8
// This file is part of OPAL.
9
//
10
// OPAL is free software: you can redistribute it and/or modify
11
// it under the terms of the GNU General Public License as published by
12
// the Free Software Foundation, either version 3 of the License, or
13
// (at your option) any later version.
14
//
15
// You should have received a copy of the GNU General Public License
16
// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
17
//
18
#include "
BasicActions/Stop.h
"
19
20
21
Stop::Stop
():
Action
(0,
"STOP"
,
22
"The \"STOP\" statement terminates program execution "
23
"or reading of a called file."
)
24
{}
25
26
27
Stop::Stop
(
const
std::string&
name
,
Stop
* parent):
28
Action
(
name
, parent)
29
{}
30
31
32
Stop::~Stop
()
33
{}
34
35
36
Stop
*
Stop::clone
(
const
std::string&
name
) {
37
return
new
Stop
(
name
,
this
);
38
}
39
40
41
void
Stop::execute
()
42
{}
Stop.h
name
const std::string name
Definition:
MaxNormRadialPeak.cpp:32
Action
The base class for all OPAL actions.
Definition:
Action.h:30
Stop
Definition:
Stop.h:24
Stop::~Stop
virtual ~Stop()
Definition:
Stop.cpp:32
Stop::execute
virtual void execute()
Execute the command.
Definition:
Stop.cpp:41
Stop::clone
virtual Stop * clone(const std::string &name)
Make clone.
Definition:
Stop.cpp:36
Stop::Stop
Stop()
Exemplar constructor.
Definition:
Stop.cpp:21
Generated on Thu Oct 20 2022 17:40:09 for OPAL (Object Oriented Parallel Accelerator Library) by
1.9.3