OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Select.h
Go to the documentation of this file.
1 #ifndef OPAL_Select_HH
2 #define OPAL_Select_HH 1
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: Select.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: Select
13 //
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:33:37 $
17 // $Author: Andreas Adelmann $
18 //
19 // ------------------------------------------------------------------------
20 
21 #include "AbstractObjects/Action.h"
22 
23 class Beamline;
24 
25 
26 // Class Select
27 // ------------------------------------------------------------------------
29 
30 class Select: public Action {
31 
32 public:
33 
35  Select();
36 
37  virtual ~Select();
38 
40  virtual Select *clone(const std::string &name);
41 
43  virtual void execute();
44 
45 private:
46 
47  // Not implemented.
48  Select(const Select &);
49  void operator=(const Select &);
50 
51  // Clone constructor.
52  Select(const std::string &name, Select *parent);
53 
54  // Do the selection.
55  void select(const Beamline &);
56 };
57 
58 #endif // OPAL_Select_H
Select()
Exemplar constructor.
Definition: Select.cpp:51
The base class for all OPAL actions.
Definition: Action.h:30
virtual void execute()
Execute the command.
Definition: Select.cpp:96
virtual ~Select()
Definition: Select.cpp:87
void select(const Beamline &)
Definition: Select.cpp:117
virtual Select * clone(const std::string &name)
Make clone.
Definition: Select.cpp:91
An abstract sequence of beam line components.
Definition: Beamline.h:37
The SELECT command.
Definition: Select.h:30
const std::string name
void operator=(const Select &)