OPAL (Object Oriented Parallel Accelerator Library) 2022.1
OPAL
YCorrectorRep.h
Go to the documentation of this file.
1//
2// Class YCorrectorRep
3// Representation for an orbit corrector.
4// Acts on the vertical 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_YCorrectorRep_HH
20#define CLASSIC_YCorrectorRep_HH
21
23
24
26
27public:
28
30 explicit YCorrectorRep(const std::string &name);
31
34 virtual ~YCorrectorRep();
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 nullptr.
44 virtual Channel *getChannel(const std::string &aKey, bool = false);
45
47 // Return the y-plane for this class.
48 virtual Plane getPlane() const;
49
51 // Return the vertical field component (always zero).
52 virtual double getBy() const;
53
55 // Ignore the vertical field component.
56 virtual void setBy(double);
57
58private:
59
60 // Not implemented.
61 void operator=(const YCorrectorRep &);
62};
63
64#endif // CLASSIC_YCorrectorRep_HH
const std::string name
Plane
Plane selection.
Definition: Corrector.h:40
virtual Channel * getChannel(const std::string &aKey, bool=false)
Construct a read/write channel.
virtual ElementBase * clone() const
Return clone.
virtual double getBy() const
Get field.
virtual void setBy(double)
Set field.
void operator=(const YCorrectorRep &)
virtual ~YCorrectorRep()
virtual Plane getPlane() const
Get plane.
Abstract interface for read/write access to variable.
Definition: Channel.h:32