[764] | 1 | // Classe d'initialisation du module Outils++
|
---|
[841] | 2 | #include "machdefs.h"
|
---|
| 3 | #include "skymapinit.h"
|
---|
| 4 |
|
---|
[764] | 5 | #include <unistd.h>
|
---|
| 6 | #include "spherethetaphi.h"
|
---|
[841] | 7 | #include "fiospherehealpix.h"
|
---|
| 8 | #include "fiospherethetaphi.h"
|
---|
| 9 | #include "fiolocalmap.h"
|
---|
[764] | 10 | #include "localmap.h"
|
---|
[841] | 11 |
|
---|
[1371] | 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 |
|
---|
[764] | 23 | int SkyMapInitiator::FgInit = 0;
|
---|
| 24 |
|
---|
| 25 | SkyMapInitiator::SkyMapInitiator()
|
---|
[841] | 26 | : SophyaInitiator()
|
---|
[764] | 27 | {
|
---|
[841] | 28 | FgInit++;
|
---|
| 29 | if (FgInit > 1) return;
|
---|
[764] | 30 |
|
---|
[841] | 31 | // Enregistrement des classes PPersist du module SkyMap
|
---|
[764] | 32 |
|
---|
[2082] | 33 | // ---------- Les SphereThetaPhi ---------
|
---|
| 34 |
|
---|
[764] | 35 | PPRegister(FIO_SphereCoordSys);
|
---|
[841] | 36 | DObjRegister(FIO_SphereCoordSys, SphereCoordSys);
|
---|
[764] | 37 |
|
---|
[2082] | 38 | PPRegister(FIO_SphereThetaPhi<int_4>);
|
---|
| 39 | DObjRegister(FIO_SphereThetaPhi<int_4>, SphereThetaPhi<int_4>);
|
---|
| 40 |
|
---|
[764] | 41 | PPRegister(FIO_SphereThetaPhi<r_4>);
|
---|
[841] | 42 | DObjRegister(FIO_SphereThetaPhi<r_4>, SphereThetaPhi<r_4>);
|
---|
| 43 |
|
---|
[764] | 44 | PPRegister(FIO_SphereThetaPhi<r_8>);
|
---|
[841] | 45 | DObjRegister(FIO_SphereThetaPhi<r_8>, SphereThetaPhi<r_8>);
|
---|
| 46 |
|
---|
[764] | 47 | PPRegister(FIO_SphereThetaPhi< complex<r_4> >);
|
---|
[841] | 48 | DObjRegister(FIO_SphereThetaPhi< complex<r_4> >, SphereThetaPhi< complex<r_4> >);
|
---|
| 49 |
|
---|
[764] | 50 | PPRegister(FIO_SphereThetaPhi< complex<r_8> >);
|
---|
[841] | 51 | DObjRegister(FIO_SphereThetaPhi< complex<r_8> >, SphereThetaPhi< complex<r_8> >);
|
---|
[764] | 52 |
|
---|
[2082] | 53 |
|
---|
| 54 | // ---------- Les SphereHEALPix ---------
|
---|
| 55 |
|
---|
| 56 | PPRegister(FIO_SphereHEALPix<int_4>);
|
---|
| 57 | DObjRegister(FIO_SphereHEALPix<int_4>, SphereHEALPix<int_4>);
|
---|
| 58 |
|
---|
[853] | 59 | PPRegister(FIO_SphereHEALPix<r_4>);
|
---|
| 60 | DObjRegister(FIO_SphereHEALPix<r_4>, SphereHEALPix<r_4>);
|
---|
[764] | 61 |
|
---|
[853] | 62 | PPRegister(FIO_SphereHEALPix<r_8>);
|
---|
| 63 | DObjRegister(FIO_SphereHEALPix<r_8>, SphereHEALPix<r_8>);
|
---|
[841] | 64 |
|
---|
[853] | 65 | PPRegister(FIO_SphereHEALPix< complex<r_4> >);
|
---|
| 66 | DObjRegister(FIO_SphereHEALPix< complex<r_4> >, SphereHEALPix< complex<r_4> >);
|
---|
[841] | 67 |
|
---|
[853] | 68 | PPRegister(FIO_SphereHEALPix< complex<r_8> >);
|
---|
| 69 | DObjRegister(FIO_SphereHEALPix< complex<r_8> >, SphereHEALPix< complex<r_8> >);
|
---|
[841] | 70 |
|
---|
[2082] | 71 | // ------------ Les LocalMap ---------
|
---|
| 72 | PPRegister(FIO_LocalMap<int_4>);
|
---|
| 73 | DObjRegister(FIO_LocalMap<int_4>, LocalMap<int_4>);
|
---|
| 74 |
|
---|
[764] | 75 | PPRegister(FIO_LocalMap<r_4>);
|
---|
[841] | 76 | DObjRegister(FIO_LocalMap<r_4>, LocalMap<r_4>);
|
---|
| 77 |
|
---|
[764] | 78 | PPRegister(FIO_LocalMap<r_8>);
|
---|
[841] | 79 | DObjRegister(FIO_LocalMap<r_8>, LocalMap<r_8>);
|
---|
| 80 |
|
---|
[764] | 81 | PPRegister(FIO_LocalMap< complex<r_4> >);
|
---|
[841] | 82 | DObjRegister(FIO_LocalMap< complex<r_4> >, LocalMap< complex<r_4> >);
|
---|
| 83 |
|
---|
[764] | 84 | PPRegister(FIO_LocalMap< complex<r_8> >);
|
---|
[841] | 85 | DObjRegister(FIO_LocalMap< complex<r_8> >, LocalMap< complex<r_8> >);
|
---|
[764] | 86 |
|
---|
| 87 |
|
---|
| 88 | }
|
---|
| 89 |
|
---|
| 90 | SkyMapInitiator::~SkyMapInitiator()
|
---|
| 91 | {
|
---|
[841] | 92 | FgInit--;
|
---|
[764] | 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 |
|
---|
[841] | 100 |
|
---|