OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Option.h
Go to the documentation of this file.
1 #ifndef OPAL_Option_HH
2 #define OPAL_Option_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: Option.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: Option
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 Option
24 // ------------------------------------------------------------------------
26 // The user interface allowing setting of OPAL options.
27 // The actual option flags are contained in namespace Options.
28 
29 class Option: public Action {
30 
31 public:
32 
34  Option();
35 
36  virtual ~Option();
37 
39  virtual Option *clone(const std::string &name);
40 
42  virtual void execute();
43 
44 private:
45  void handlePsDumpFrame(const std::string &dumpFrame);
46 
47  // Not implemented.
48  Option(const Option &);
49  void operator=(const Option &);
50 
51  // Clone constructor.
52  Option(const std::string &name, Option *parent);
53 };
54 
55 #endif // OPAL_Option_HH
The OPTION command.
Definition: Option.h:29
The base class for all OPAL actions.
Definition: Action.h:30
virtual void execute()
Execute the command.
Definition: Option.cpp:339
virtual ~Option()
Definition: Option.cpp:330
virtual Option * clone(const std::string &name)
Make clone.
Definition: Option.cpp:334
void operator=(const Option &)
Option()
Exemplar constructor.
Definition: Option.cpp:99
const std::string name
void handlePsDumpFrame(const std::string &dumpFrame)
Definition: Option.cpp:496