OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
OpalSRot.h
Go to the documentation of this file.
1 #ifndef OPAL_OpalSRot_HH
2 #define OPAL_OpalSRot_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: OpalSRot.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // CopSRight: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: OpalSRot
13 //
14 // ------------------------------------------------------------------------
15 //
16 // $Date: 2000/03/27 09:33:40 $
17 // $Author: Andreas Adelmann $
18 //
19 // ------------------------------------------------------------------------
20 
21 #include "Elements/OpalElement.h"
22 
23 
24 // Class OpalSRot
25 // ------------------------------------------------------------------------
27 
28 class OpalSRot: public OpalElement {
29 
30 public:
31 
33  enum {
34  ANGLE = COMMON, // The rotation angle.
35  SIZE // Total number of attributes.
36  };
37 
39  OpalSRot();
40 
41  virtual ~OpalSRot();
42 
44  virtual OpalSRot *clone(const std::string &name);
45 
47  virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag);
48 
50  virtual void update();
51 
52 private:
53 
54  // Not implemented.
55  OpalSRot(const OpalSRot &);
56  void operator=(const OpalSRot &);
57 
58  // Clone constructor.
59  OpalSRot(const std::string &name, OpalSRot *parent);
60 };
61 
62 #endif // OPAL_OpalSRot_HH
Interface for basic beam line object.
Definition: ElementBase.h:128
ValueFlag
Switch for value desired on ATTLIST command.
Definition: OpalElement.h:71
virtual OpalSRot * clone(const std::string &name)
Make clone.
Definition: OpalSRot.cpp:52
virtual void update()
Update the embedded CLASSIC patch.
Definition: OpalSRot.cpp:66
Base class for all beam line elements.
Definition: OpalElement.h:41
const std::string name
OpalSRot()
Exemplar constructor.
Definition: OpalSRot.cpp:27
virtual ~OpalSRot()
Definition: OpalSRot.cpp:48
void operator=(const OpalSRot &)
virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag)
Fill in all registered attributes.
Definition: OpalSRot.cpp:58
The SROT element.
Definition: OpalSRot.h:28