1 | // Classe d'initialisation du module Outils++
|
---|
2 | #include "machdefs.h"
|
---|
3 | #include "skymapinit.h"
|
---|
4 |
|
---|
5 | #include <unistd.h>
|
---|
6 | #include "spherethetaphi.h"
|
---|
7 | #include "fiospherehealpix.h"
|
---|
8 | #include "fiospherethetaphi.h"
|
---|
9 | #include "fiolocalmap.h"
|
---|
10 | #include "localmap.h"
|
---|
11 |
|
---|
12 | /*!
|
---|
13 | \defgroup SkyMap SkyMap module
|
---|
14 | This module contains classes for handling partial and full sky (spherical) maps
|
---|
15 | */
|
---|
16 |
|
---|
17 | /*!
|
---|
18 | \class SOPHYA::SkyMapInitiator
|
---|
19 | \ingroup SkyMap
|
---|
20 | Class handling initialization for module SkyMap
|
---|
21 | */
|
---|
22 |
|
---|
23 | int SkyMapInitiator::FgInit = 0;
|
---|
24 |
|
---|
25 | SkyMapInitiator::SkyMapInitiator()
|
---|
26 | : SophyaInitiator()
|
---|
27 | {
|
---|
28 | FgInit++;
|
---|
29 | if (FgInit > 1) return;
|
---|
30 |
|
---|
31 | // Enregistrement des classes PPersist du module SkyMap
|
---|
32 |
|
---|
33 | // ---------- Les SphereThetaPhi ---------
|
---|
34 |
|
---|
35 | PPRegister(FIO_SphereCoordSys);
|
---|
36 | DObjRegister(FIO_SphereCoordSys, SphereCoordSys);
|
---|
37 |
|
---|
38 | PPRegister(FIO_SphereThetaPhi<int_4>);
|
---|
39 | DObjRegister(FIO_SphereThetaPhi<int_4>, SphereThetaPhi<int_4>);
|
---|
40 |
|
---|
41 | PPRegister(FIO_SphereThetaPhi<r_4>);
|
---|
42 | DObjRegister(FIO_SphereThetaPhi<r_4>, SphereThetaPhi<r_4>);
|
---|
43 |
|
---|
44 | PPRegister(FIO_SphereThetaPhi<r_8>);
|
---|
45 | DObjRegister(FIO_SphereThetaPhi<r_8>, SphereThetaPhi<r_8>);
|
---|
46 |
|
---|
47 | PPRegister(FIO_SphereThetaPhi< complex<r_4> >);
|
---|
48 | DObjRegister(FIO_SphereThetaPhi< complex<r_4> >, SphereThetaPhi< complex<r_4> >);
|
---|
49 |
|
---|
50 | PPRegister(FIO_SphereThetaPhi< complex<r_8> >);
|
---|
51 | DObjRegister(FIO_SphereThetaPhi< complex<r_8> >, SphereThetaPhi< complex<r_8> >);
|
---|
52 |
|
---|
53 |
|
---|
54 | // ---------- Les SphereHEALPix ---------
|
---|
55 |
|
---|
56 | PPRegister(FIO_SphereHEALPix<int_4>);
|
---|
57 | DObjRegister(FIO_SphereHEALPix<int_4>, SphereHEALPix<int_4>);
|
---|
58 |
|
---|
59 | PPRegister(FIO_SphereHEALPix<r_4>);
|
---|
60 | DObjRegister(FIO_SphereHEALPix<r_4>, SphereHEALPix<r_4>);
|
---|
61 |
|
---|
62 | PPRegister(FIO_SphereHEALPix<r_8>);
|
---|
63 | DObjRegister(FIO_SphereHEALPix<r_8>, SphereHEALPix<r_8>);
|
---|
64 |
|
---|
65 | PPRegister(FIO_SphereHEALPix< complex<r_4> >);
|
---|
66 | DObjRegister(FIO_SphereHEALPix< complex<r_4> >, SphereHEALPix< complex<r_4> >);
|
---|
67 |
|
---|
68 | PPRegister(FIO_SphereHEALPix< complex<r_8> >);
|
---|
69 | DObjRegister(FIO_SphereHEALPix< complex<r_8> >, SphereHEALPix< complex<r_8> >);
|
---|
70 |
|
---|
71 | // ------------ Les LocalMap ---------
|
---|
72 | PPRegister(FIO_LocalMap<int_4>);
|
---|
73 | DObjRegister(FIO_LocalMap<int_4>, LocalMap<int_4>);
|
---|
74 |
|
---|
75 | PPRegister(FIO_LocalMap<r_4>);
|
---|
76 | DObjRegister(FIO_LocalMap<r_4>, LocalMap<r_4>);
|
---|
77 |
|
---|
78 | PPRegister(FIO_LocalMap<r_8>);
|
---|
79 | DObjRegister(FIO_LocalMap<r_8>, LocalMap<r_8>);
|
---|
80 |
|
---|
81 | PPRegister(FIO_LocalMap< complex<r_4> >);
|
---|
82 | DObjRegister(FIO_LocalMap< complex<r_4> >, LocalMap< complex<r_4> >);
|
---|
83 |
|
---|
84 | PPRegister(FIO_LocalMap< complex<r_8> >);
|
---|
85 | DObjRegister(FIO_LocalMap< complex<r_8> >, LocalMap< complex<r_8> >);
|
---|
86 |
|
---|
87 |
|
---|
88 | }
|
---|
89 |
|
---|
90 | SkyMapInitiator::~SkyMapInitiator()
|
---|
91 | {
|
---|
92 | FgInit--;
|
---|
93 | }
|
---|
94 |
|
---|
95 |
|
---|
96 | // On met un objet initiator en statique, pour les loaders qui savent
|
---|
97 | // appeler le constructeur des objets statiques Reza 08/98
|
---|
98 | static SkyMapInitiator s_sskymapinit_;
|
---|
99 |
|
---|
100 |
|
---|