OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
Stop.h
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#ifndef OPAL_Stop_HH
19#define OPAL_Stop_HH
20
22
23
24class Stop: public Action {
25
26public:
27
29 Stop();
30
31 virtual ~Stop();
32
34 virtual Stop* clone(const std::string& name);
35
37 virtual void execute();
38
39private:
40
41 // Not implemented.
42 Stop(const Stop&);
43 void operator=(const Stop&);
44
45 // Clone constructor.
46 Stop(const std::string& name, Stop* parent);
47};
48
49#endif // OPAL_Stop_HH
const std::string name
The base class for all OPAL actions.
Definition: Action.h:30
Definition: Stop.h:24
virtual ~Stop()
Definition: Stop.cpp:32
virtual void execute()
Execute the command.
Definition: Stop.cpp:41
Stop(const Stop &)
void operator=(const Stop &)
virtual Stop * clone(const std::string &name)
Make clone.
Definition: Stop.cpp:36
Stop()
Exemplar constructor.
Definition: Stop.cpp:21