OPAL (Object Oriented Parallel Accelerator Library)  2.2.0
OPAL
ParallelPlateRep.h
Go to the documentation of this file.
1 #ifndef CLASSIC_ParallelPlateRep_HH
2 #define CLASSIC_ParallelPlateRep_HH
3 
4 // ------------------------------------------------------------------------
5 // $RCSfile: ParallelPlateRep.h,v $
6 // ------------------------------------------------------------------------
7 // $Revision: 1.1.1.1 $
8 // ------------------------------------------------------------------------
9 // Copyright: see Copyright.readme
10 // ------------------------------------------------------------------------
11 //
12 // Class: ParallelPlateRep
13 //
14 // ------------------------------------------------------------------------
15 // Class category: BeamlineCore
16 // ------------------------------------------------------------------------
17 //
18 // $Date: 2000/03/27 09:32:34 $
19 // $Author: fci $
20 //
21 // ------------------------------------------------------------------------
22 
26 
27 
28 // Class ParallelPlateRep
29 // ------------------------------------------------------------------------
31 
33 
34 public:
35 
37  explicit ParallelPlateRep(const std::string &name);
38 
41  virtual ~ParallelPlateRep();
42 
44  // Return an identical deep copy of the element.
45  virtual ElementBase *clone() const;
46 
48  // This method constructs a Channel permitting read/write access to
49  // the attribute [b]aKey[/b] and returns it.
50  // If the attribute does not exist, it returns NULL.
51  virtual Channel *getChannel(const std::string &aKey, bool = false);
52 
54  // Version for non-constant object.
55  virtual AcceleratingField &getField();
56 
58  // Version for constant object.
59  virtual const AcceleratingField &getField() const;
60 
62  // Return the element geometry.
63  // Version for non-constant object.
64  virtual StraightGeometry &getGeometry();
65 
67  // Return the element geometry
68  // Version for constant object.
69  virtual const StraightGeometry &getGeometry() const;
70 
72  // Return the image of the element, containing the name and type string
73  // of the element, and a copy of the user-defined attributes.
74  virtual ElementImage *getImage() const;
75 
76 
77 
78 private:
79 
80  // Not implemented.
81  void operator=(const ParallelPlateRep &);
82 
85 
88 
89 
90 };
91 
92 #endif // CLASSIC_ParallelPlateRep_HH
StraightGeometry geometry
The cavity's geometry.
Interface for basic beam line object.
Definition: ElementBase.h:128
virtual ElementBase * clone() const
Return clone.
Interface for RF cavity.
Definition: ParallelPlate.h:36
virtual Channel * getChannel(const std::string &aKey, bool=false)
Construct a read/write channel.
An image of an element.
Definition: ElementImage.h:35
AcceleratingField field
The cavity's field.
virtual ElementImage * getImage() const
Construct an image.
A geometry representing a straight line.
Abstract interface for read/write access to variable.
Definition: Channel.h:32
const std::string name
Representation for a RF cavity.
virtual AcceleratingField & getField()
Get field.
void operator=(const ParallelPlateRep &)
virtual ~ParallelPlateRep()
virtual StraightGeometry & getGeometry()
Get geometry.