OPALX (Object Oriented Parallel Accelerator Library for Exascal) master (dc2a29eed580)
OPALX
Loading...
Searching...
No Matches
Select.h
Go to the documentation of this file.
1//
2// Class Select
3// The class for OPAL SELECT 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_Select_HH
19#define OPAL_Select_HH 1
20
22
23class Beamline;
24
25class Select : public Action {
26public:
28 Select();
29
30 virtual ~Select();
31
33 virtual Select* clone(const std::string& name);
34
36 virtual void execute();
37
38private:
39 // Not implemented.
40 Select(const Select&);
41 void operator=(const Select&);
42
43 // Clone constructor.
44 Select(const std::string& name, Select* parent);
45
46 // Do the selection.
47 void select(const Beamline&);
48};
49
50#endif // OPAL_Select_H
The base class for all OPAL actions.
Definition Action.h:29
An abstract sequence of beam line components.
Definition Beamline.h:34
Select(const Select &)
virtual ~Select()
Definition Select.cpp:67
void operator=(const Select &)
virtual void execute()
Execute the command.
Definition Select.cpp:71
void select(const Beamline &)
Definition Select.cpp:90
virtual Select * clone(const std::string &name)
Make clone.
Definition Select.cpp:69
Select()
Exemplar constructor.
Definition Select.cpp:45