OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
OpalYRot.h
Go to the documentation of this file.
1 #ifndef OPAL_OpalYRot_HH
2 #define OPAL_OpalYRot_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: OpalYRot.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // CopSRight: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: OpalYRot
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 OpalYRot
25 // ------------------------------------------------------------------------
27 
28 class OpalYRot: public OpalElement {
29 
30 public:
31 
33  enum {
34  ANGLE = COMMON, // The rotation angle.
35  SIZE // Total number of attributes.
36  };
37 
39  OpalYRot();
40 
41  virtual ~OpalYRot();
42 
44  virtual OpalYRot *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  OpalYRot(const OpalYRot &);
56  void operator=(const OpalYRot &);
57 
58  // Clone constructor.
59  OpalYRot(const std::string &name, OpalYRot *parent);
60 };
61 
62 #endif // OPAL_OpalYRot_HH
virtual ~OpalYRot()
Definition: OpalYRot.cpp:48
Interface for basic beam line object.
Definition: ElementBase.h:128
ValueFlag
Switch for value desired on ATTLIST command.
Definition: OpalElement.h:71
OpalYRot()
Exemplar constructor.
Definition: OpalYRot.cpp:27
The YROT element.
Definition: OpalYRot.h:28
virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag)
Fill in all registered attributes.
Definition: OpalYRot.cpp:58
Base class for all beam line elements.
Definition: OpalElement.h:41
virtual void update()
Update the embedded CLASSIC patch.
Definition: OpalYRot.cpp:65
const std::string name
virtual OpalYRot * clone(const std::string &name)
Make clone.
Definition: OpalYRot.cpp:52
void operator=(const OpalYRot &)