OPAL (Object Oriented Parallel Accelerator Library)  2021.1.99
OPAL
XCorrectorRep.h
Go to the documentation of this file.
1 //
2 // Class XCorrectorRep
3 // Representation for an orbit corrector.
4 // This derived class acts on the horizontal plane.
5 //
6 // Copyright (c) 200x - 2020, Paul Scherrer Institut, Villigen PSI, Switzerland
7 // All rights reserved
8 //
9 // This file is part of OPAL.
10 //
11 // OPAL is free software: you can redistribute it and/or modify
12 // it under the terms of the GNU General Public License as published by
13 // the Free Software Foundation, either version 3 of the License, or
14 // (at your option) any later version.
15 //
16 // You should have received a copy of the GNU General Public License
17 // along with OPAL. If not, see <https://www.gnu.org/licenses/>.
18 //
19 #ifndef CLASSIC_XCorrectorRep_HH
20 #define CLASSIC_XCorrectorRep_HH
21 
23 
24 
25 class XCorrectorRep: public CorrectorRep {
26 
27 public:
28 
30  explicit XCorrectorRep(const std::string &name);
31 
32  XCorrectorRep();
34  virtual ~XCorrectorRep();
35 
37  // Return an identical deep copy of the element.
38  virtual ElementBase *clone() const;
39 
41  // This method constructs a Channel permitting read/write access to
42  // the attribute [b]aKey[/b] and returns it.
43  // If the attribute does not exist, it returns NULL.
44  virtual Channel *getChannel(const std::string &aKey, bool = false);
45 
47  // Return the x-plane for this class.
48  virtual Plane getPlane() const;
49 
51  // Return horizontal component (always zero).
52  virtual double getBx() const;
53 
55  // Ignore the horizontal field value.
56  virtual void setBx(double);
57 
58 private:
59 
60  // Not implemented.
61  void operator=(const XCorrectorRep &);
62 };
63 
64 #endif // CLASSIC_XCorrectorRep_HH
const std::string name
Plane
Plane selection.
Definition: Corrector.h:40
virtual void setBx(double)
Set field.
void operator=(const XCorrectorRep &)
virtual Channel * getChannel(const std::string &aKey, bool=false)
Construct a read/write channel.
virtual Plane getPlane() const
Get plane of action.
virtual double getBx() const
Get field.
virtual ElementBase * clone() const
Return clone.
virtual ~XCorrectorRep()
Abstract interface for read/write access to variable.
Definition: Channel.h:32