1 | // $Id: AtmosphereFactory.hh 2676 2006-04-28 15:22:49Z moreggia $ |
---|
2 | // Sylvain Moreggia created Dec, 1 2003 |
---|
3 | |
---|
4 | #ifndef __ATMOSPHEREFACTORY_HH_ |
---|
5 | #define __ATMOSPHEREFACTORY_HH_ |
---|
6 | |
---|
7 | /***************************************************************************** |
---|
8 | * ESAF: Euso Simulation and Analysis Framework * |
---|
9 | * * |
---|
10 | * Id: AtmosphereFactory * |
---|
11 | * Package: atmosphere * |
---|
12 | * Coordinator: S. Moreggia * |
---|
13 | * * |
---|
14 | *****************************************************************************/ |
---|
15 | |
---|
16 | /////////////////////////////////////////////////////////////////////////////////// |
---|
17 | // AtmosphereFactory // |
---|
18 | // // |
---|
19 | // Builds atmosphere related objects according to config files // |
---|
20 | // Does not build Atmosphere object itself, even if it appears in config files // |
---|
21 | // // |
---|
22 | /////////////////////////////////////////////////////////////////////////////////// |
---|
23 | |
---|
24 | #include "euso.hh" |
---|
25 | #include "EsafConfigurable.hh" |
---|
26 | #include "Atmosphere.hh" |
---|
27 | #include "EsafMsgSource.hh" |
---|
28 | |
---|
29 | |
---|
30 | class Clouds; |
---|
31 | class Aerosol; |
---|
32 | |
---|
33 | class AtmosphereFactory : public EsafConfigurable, public EsafMsgSource { |
---|
34 | public: |
---|
35 | |
---|
36 | // dtor |
---|
37 | virtual ~AtmosphereFactory(); |
---|
38 | |
---|
39 | // instance |
---|
40 | static AtmosphereFactory *Get(); |
---|
41 | |
---|
42 | // Build clouds object |
---|
43 | Clouds* GetClouds(); |
---|
44 | |
---|
45 | // Build aerosol object |
---|
46 | Aerosol* GetAerosol(); |
---|
47 | |
---|
48 | EsafConfigClass(Atmosphere,AtmosphereFactory) |
---|
49 | |
---|
50 | private: |
---|
51 | // ctor |
---|
52 | AtmosphereFactory(); |
---|
53 | |
---|
54 | // unique instance of AtmosphereFactory |
---|
55 | static AtmosphereFactory *fMe; |
---|
56 | |
---|
57 | |
---|
58 | ClassDef(AtmosphereFactory,0) |
---|
59 | }; |
---|
60 | |
---|
61 | #endif /* __ATMOSPHEREFACTORY_HH_ */ |
---|
62 | |
---|