OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
Envelope.h
Go to the documentation of this file.
1 #ifndef OPAL_Envelope_HH
2 #define OPAL_Envelope_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: Envelope.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: Envelope
13 //
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:33:45 $
17 // $Author: Andreas Adelmann $
18 //
19 // ------------------------------------------------------------------------
20 
21 #include "AbstractObjects/Action.h"
23 #include <iosfwd>
24 
25 class Twiss;
26 
27 
28 // Class Envelope
29 // ------------------------------------------------------------------------
31 
32 class Envelope: public Action {
33 
34 public:
35 
37  Envelope();
38 
39  virtual ~Envelope();
40 
42  virtual Envelope *clone(const std::string &name);
43 
45  virtual void execute();
46 
47 private:
48 
49  // Not implemented.
50  Envelope(const Envelope &);
51  void operator=(const Envelope &);
52 
53  // Clone constructor.
54  Envelope(const std::string &name, Envelope *parent);
55 
56  // Do the listing.
57  void format(std::ostream &, const Twiss *);
58 
60  void formatPrint(std::ostream &, const Twiss *) const;
61 
62 };
63 
64 #endif // OPAL_Envelope_HH
void operator=(const Envelope &)
virtual void execute()
Execute the command.
Definition: Envelope.cpp:71
The base class for all OPAL actions.
Definition: Action.h:30
The ENVELOPE command.
Definition: Envelope.h:32
void format(std::ostream &, const Twiss *)
Definition: Envelope.cpp:97
void formatPrint(std::ostream &, const Twiss *) const
Print Twiss table in envelope representation.
Definition: Envelope.cpp:102
virtual ~Envelope()
Definition: Envelope.cpp:62
Class Twiss.
Definition: Twiss.h:41
const std::string name
Envelope()
Exemplar constructor.
Definition: Envelope.cpp:44
virtual Envelope * clone(const std::string &name)
Make clone.
Definition: Envelope.cpp:66