OPAL (Object Oriented Parallel Accelerator Library)  2024.1
OPAL
OpalScalingFFAMagnet.h
Go to the documentation of this file.
1 //
2 // Class OpalScalingFFAMagnet
3 // The class provides the user interface for the SCALINGFFAMAGNET object.
4 //
5 // Copyright (c) 2017 - 2023, Chris Rogers, STFC Rutherford Appleton Laboratory, Didcot, UK
6 // All rights reserved
7 //
8 // This file is part of OPAL.
9 //
10 // OPAL is free software: you can redistribute it and/or modify
11 // it under the terms of the GNU General Public License as published by
12 // the Free Software Foundation, either version 3 of the License, or
13 // (at your option) any later version.
14 //
15 // You should have received a copy of the GNU General Public License
16 // along with OPAL. If not, see <https://www.gnu.org/licenses/>.
17 //
18 #ifndef OPAL_OPALSCALINGFFAMAGNET_H
19 #define OPAL_OPALSCALINGFFAMAGNET_H
20 
21 #include "Elements/OpalBend.h"
22 
28 
29 public:
31  enum {
33  R0,
46  SIZE // size of the enum
47  };
48 
51 
53  virtual ~OpalScalingFFAMagnet();
54 
56  virtual OpalScalingFFAMagnet* clone(const std::string& name);
57 
59  virtual void update();
60 
61 private:
62  // Not implemented.
64  void operator=(const OpalScalingFFAMagnet& );
65 
66  // Clone constructor.
67  OpalScalingFFAMagnet(const std::string& name, OpalScalingFFAMagnet* parent);
68 
69  void setupNamedEndField();
70  void setupDefaultEndField();
71 };
72 
73 #endif // OPAL_OPALSCALINGFFAMAGNET_H
74 
virtual OpalScalingFFAMagnet * clone(const std::string &name)
const std::string name
void operator=(const OpalScalingFFAMagnet &)