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