OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
OpalSeparator.h
Go to the documentation of this file.
1 #ifndef OPAL_OpalSeparator_HH
2 #define OPAL_OpalSeparator_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: OpalSeparator.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: OpalSeparator
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 OpalSeparator
25 // ------------------------------------------------------------------------
27 
28 class OpalSeparator: public OpalElement {
29 
30 public:
31 
33  enum {
34  EX = COMMON, // The horizontal field.
35  EY, // The vertical field.
37  };
38 
40  OpalSeparator();
41 
42  virtual ~OpalSeparator();
43 
45  virtual OpalSeparator *clone(const std::string &name);
46 
48  virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag);
49 
51  virtual void update();
52 
53 private:
54 
55  // Not implemented.
57  void operator=(const OpalSeparator &);
58 
59  // Clone constructor.
60  OpalSeparator(const std::string &name, OpalSeparator *parent);
61 };
62 
63 #endif // OPAL_OpalSeparator_HH
void operator=(const OpalSeparator &)
Interface for basic beam line object.
Definition: ElementBase.h:128
ValueFlag
Switch for value desired on ATTLIST command.
Definition: OpalElement.h:71
OpalSeparator()
Exemplar constructor.
virtual void fillRegisteredAttributes(const ElementBase &, ValueFlag)
Fill in all registered attributes.
Base class for all beam line elements.
Definition: OpalElement.h:41
const std::string name
The ELSEPARATOR element.
Definition: OpalSeparator.h:28
virtual OpalSeparator * clone(const std::string &name)
Make clone.
virtual void update()
Update the embedded CLASSIC separator.
virtual ~OpalSeparator()