OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
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 
21 #include "AbstractObjects/Action.h"
22 
23 class Beamline;
24 
25 
26 class Select: public Action {
27 
28 public:
29 
31  Select();
32 
33  virtual ~Select();
34 
36  virtual Select* clone(const std::string& name);
37 
39  virtual void execute();
40 
41 private:
42 
43  // Not implemented.
44  Select(const Select&);
45  void operator=(const Select&);
46 
47  // Clone constructor.
48  Select(const std::string& name, Select* parent);
49 
50  // Do the selection.
51  void select(const Beamline&);
52 };
53 
54 #endif // OPAL_Select_H
const std::string name
The base class for all OPAL actions.
Definition: Action.h:30
Definition: Select.h:26
Select(const Select &)
virtual ~Select()
Definition: Select.cpp:82
void operator=(const Select &)
virtual void execute()
Execute the command.
Definition: Select.cpp:91
void select(const Beamline &)
Definition: Select.cpp:112
virtual Select * clone(const std::string &name)
Make clone.
Definition: Select.cpp:86
Select()
Exemplar constructor.
Definition: Select.cpp:46
An abstract sequence of beam line components.
Definition: Beamline.h:34