OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
Option.h
Go to the documentation of this file.
1 //
2 // Class Option
3 // The OPTION command.
4 // The user interface allowing setting of OPAL options.
5 // The actual option flags are contained in namespace Options.
6 //
7 // Copyright (c) 200x - 2020, Paul Scherrer Institut, Villigen PSI, Switzerland
8 // All rights reserved
9 //
10 // This file is part of OPAL.
11 //
12 // OPAL is free software: you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation, either version 3 of the License, or
15 // (at your option) any later version.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with OPAL. If not, see <https://www.gnu.org/licenses/>.
19 //
20 #ifndef OPAL_Option_HH
21 #define OPAL_Option_HH
22 
23 #include "AbstractObjects/Action.h"
24 
25 class Option: public Action {
26 
27 public:
28 
30  Option();
31 
32  virtual ~Option();
33 
35  virtual Option* clone(const std::string& name);
36 
38  virtual void execute();
39 
40 private:
41  void handlePsDumpFrame(const std::string& dumpFrame);
42  void update(const std::vector<Attribute>&);
43 
44  // Not implemented.
45  Option(const Option&);
46  void operator=(const Option&);
47 
48  // Clone constructor.
49  Option(const std::string& name, Option* parent);
50 };
51 
52 #endif // OPAL_Option_HH
const std::string name
The base class for all OPAL actions.
Definition: Action.h:30
virtual void update()
Update this object.
Definition: Object.cpp:234
Definition: Option.h:25
virtual ~Option()
Definition: Option.cpp:334
virtual void execute()
Execute the command.
Definition: Option.cpp:343
Option(const Option &)
void handlePsDumpFrame(const std::string &dumpFrame)
Definition: Option.cpp:501
virtual Option * clone(const std::string &name)
Make clone.
Definition: Option.cpp:338
Option()
Exemplar constructor.
Definition: Option.cpp:96
void operator=(const Option &)