source: PSPA/Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_abstractElementFactory.h @ 431

Last change on this file since 431 was 431, checked in by touze, 11 years ago

systeme periodique (mailles) + multipoles + madx

File size: 2.2 KB
Line 
1//
2//  GWt_abstractElementFactory.h
3//  PSPA
4//
5//  Created by Garnier Laurent on 28/01/13.
6//  Copyright (c) 2013 Garnier Laurent. All rights reserved.
7//
8
9#ifndef PSPA_GWt_abstractElementFactory_h
10#define PSPA_GWt_abstractElementFactory_h
11
12#include "GWt_rfgun.h"
13#include "GWt_drift.h"
14#include "GWt_cell.h"
15#include "GWt_bend.h"
16#include "GWt_soleno.h"
17#include "GWt_beam.h"
18#include "GWt_fit.h"
19#include "GWt_snapshot.h"
20#include "GWt_mpole.h"
21
22using namespace Wt;
23using namespace std;
24
25class GWt_abstractElementFactory
26{
27
28 public :
29 
30  GWt_abstractElementFactory();
31  ~GWt_abstractElementFactory();
32 
33  /* Enable the rfgun element creation
34   */
35  inline void setRFGunEnable(bool a) { isRFGunElementEnable = a;};
36 
37  /* Enable the drift element creation
38   */
39  inline void setDriftEnable(bool a) { isDriftElementEnable = a;};
40 
41  /* Enable the cell element creation
42   */
43  inline void setCellEnable(bool a) { isCellElementEnable = a;};
44 
45  /* Enable the bend element creation
46   */
47  inline void setBendEnable(bool a) { isBendElementEnable = a;};
48 
49  /* Enable the soleno element creation
50   */
51  inline void setSolenoEnable(bool a) { isSolenoElementEnable = a;};
52 
53  /* Enable the beam element creation
54   */
55  inline void setBeamEnable(bool a) { isBeamElementEnable = a;};
56 
57  /* Enable the fit element creation
58   */
59  inline void setFitEnable(bool a) { isFitElementEnable = a;};
60 
61  /* Enable the snapshot element creation
62   */
63  inline void setSnapshotEnable(bool a) { isSnapshotElementEnable = a;};
64 
65  /* Enable the mpole element creation
66   */
67  inline void setMPoleEnable(bool a) { isMPoleElementEnable = a;};
68 
69  GWt_drift* createDriftElement();
70  GWt_rfgun* createRFGunElement();
71  GWt_cell* createCellElement();
72  GWt_bend* createBendElement();
73  GWt_soleno* createSolenoElement();
74  GWt_beam* createBeamElement();
75  GWt_fit* createFitElement();
76  GWt_snapshot* createSnapshotElement();
77  GWt_mpole* createMPoleElement();
78  vector <GWt_abstractElement*> getAllElements();
79 
80 private :
81
82  bool isDriftElementEnable;
83  bool isRFGunElementEnable;
84  bool isCellElementEnable;
85  bool isBendElementEnable;
86  bool isSolenoElementEnable;
87  bool isBeamElementEnable;
88  bool isFitElementEnable;
89  bool isSnapshotElementEnable;
90  bool isMPoleElementEnable;
91};
92#endif
Note: See TracBrowser for help on using the repository browser.