Ignore:
Timestamp:
Feb 26, 2013, 2:38:17 PM (11 years ago)
Author:
touze
Message:

nvx element snapshot

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Interface_Web/trunk/pspaWT/sources/userInterface/include/GWt_abstractElementFactory.h

    r289 r343  
    1717#include "GWt_beam.h"
    1818#include "GWt_fit.h"
     19#include "GWt_snapshot.h"
    1920
    2021using namespace Wt;
    2122using namespace std;
    2223
     24class GWt_abstractElementFactory
     25{
    2326
    24 class GWt_abstractElementFactory {
    25     public :
    26     GWt_abstractElementFactory();
    27     ~GWt_abstractElementFactory();
    28    
    29     /* Enable the rfgun element creation
    30      */
    31     inline void setRFGunEnable(bool a) { isRFGunElementEnable = a;};
     27 public :
     28 
     29  GWt_abstractElementFactory();
     30  ~GWt_abstractElementFactory();
     31 
     32  /* Enable the rfgun element creation
     33   */
     34  inline void setRFGunEnable(bool a) { isRFGunElementEnable = a;};
     35 
     36  /* Enable the drift element creation
     37   */
     38  inline void setDriftEnable(bool a) { isDriftElementEnable = a;};
     39 
     40  /* Enable the cell element creation
     41   */
     42  inline void setCellEnable(bool a) { isCellElementEnable = a;};
     43 
     44  /* Enable the bend element creation
     45   */
     46  inline void setBendEnable(bool a) { isBendElementEnable = a;};
     47 
     48  /* Enable the soleno element creation
     49   */
     50  inline void setSolenoEnable(bool a) { isSolenoElementEnable = a;};
     51 
     52  /* Enable the beam element creation
     53   */
     54  inline void setBeamEnable(bool a) { isBeamElementEnable = a;};
     55 
     56  /* Enable the fit element creation
     57   */
     58  inline void setFitEnable(bool a) { isFitElementEnable = a;};
     59 
     60  /* Enable the snapshot element creation
     61   */
     62  inline void setSnapshotEnable(bool a) { isSnapshotElementEnable = a;};
     63 
     64  GWt_drift* createDriftElement();
     65  GWt_rfgun* createRFGunElement();
     66  GWt_cell* createCellElement();
     67  GWt_bend* createBendElement();
     68  GWt_soleno* createSolenoElement();
     69  GWt_beam* createBeamElement();
     70  GWt_fit* createFitElement();
     71  GWt_snapshot* createSnapshotElement();
     72  vector <GWt_abstractElement*> getAllElements();
     73 
     74 private :
    3275
    33     /* Enable the drift element creation
    34      */
    35     inline void setDriftEnable(bool a) { isDriftElementEnable = a;};
    36 
    37     /* Enable the cell element creation
    38      */
    39     inline void setCellEnable(bool a) { isCellElementEnable = a;};
    40 
    41     /* Enable the bend element creation
    42      */
    43     inline void setBendEnable(bool a) { isBendElementEnable = a;};
    44 
    45     /* Enable the soleno element creation
    46      */
    47     inline void setSolenoEnable(bool a) { isSolenoElementEnable = a;};
    48 
    49     /* Enable the beam element creation
    50      */
    51     inline void setBeamEnable(bool a) { isBeamElementEnable = a;};
    52 
    53     /* Enable the fit element creation
    54      */
    55     inline void setFitEnable(bool a) { isFitElementEnable = a;};
    56 
    57     GWt_drift* createDriftElement();
    58     GWt_rfgun* createRFGunElement();
    59     GWt_cell* createCellElement();
    60     GWt_bend* createBendElement();
    61     GWt_soleno* createSolenoElement();
    62     GWt_beam* createBeamElement();
    63     GWt_fit* createFitElement();
    64     vector <GWt_abstractElement*> getAllElements();
    65    
    66     private :
    67     bool isDriftElementEnable;
    68     bool isRFGunElementEnable;
    69     bool isCellElementEnable;
    70     bool isBendElementEnable;
    71     bool isSolenoElementEnable;
    72     bool isBeamElementEnable;
    73     bool isFitElementEnable;
     76  bool isDriftElementEnable;
     77  bool isRFGunElementEnable;
     78  bool isCellElementEnable;
     79  bool isBendElementEnable;
     80  bool isSolenoElementEnable;
     81  bool isBeamElementEnable;
     82  bool isFitElementEnable;
     83  bool isSnapshotElementEnable;
    7484};
    75 
    7685#endif
Note: See TracChangeset for help on using the changeset viewer.