| [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 |  | 
|---|
|  | 57 | PPRegister(FIO_SphereHEALPix<int_4>); | 
|---|
|  | 58 | DObjRegister(FIO_SphereHEALPix<int_4>, SphereHEALPix<int_4>); | 
|---|
|  | 59 |  | 
|---|
| [853] | 60 | PPRegister(FIO_SphereHEALPix<r_4>); | 
|---|
|  | 61 | DObjRegister(FIO_SphereHEALPix<r_4>, SphereHEALPix<r_4>); | 
|---|
| [764] | 62 |  | 
|---|
| [853] | 63 | PPRegister(FIO_SphereHEALPix<r_8>); | 
|---|
|  | 64 | DObjRegister(FIO_SphereHEALPix<r_8>, SphereHEALPix<r_8>); | 
|---|
| [841] | 65 |  | 
|---|
| [853] | 66 | PPRegister(FIO_SphereHEALPix< complex<r_4> >); | 
|---|
|  | 67 | DObjRegister(FIO_SphereHEALPix< complex<r_4> >, SphereHEALPix< complex<r_4> >); | 
|---|
| [841] | 68 |  | 
|---|
| [853] | 69 | PPRegister(FIO_SphereHEALPix< complex<r_8> >); | 
|---|
|  | 70 | DObjRegister(FIO_SphereHEALPix< complex<r_8> >, SphereHEALPix< complex<r_8> >); | 
|---|
| [841] | 71 |  | 
|---|
| [2082] | 72 | // ------------ Les LocalMap --------- | 
|---|
|  | 73 | PPRegister(FIO_LocalMap<int_4>); | 
|---|
|  | 74 | DObjRegister(FIO_LocalMap<int_4>, LocalMap<int_4>); | 
|---|
|  | 75 |  | 
|---|
| [764] | 76 | PPRegister(FIO_LocalMap<r_4>); | 
|---|
| [841] | 77 | DObjRegister(FIO_LocalMap<r_4>, LocalMap<r_4>); | 
|---|
|  | 78 |  | 
|---|
| [764] | 79 | PPRegister(FIO_LocalMap<r_8>); | 
|---|
| [841] | 80 | DObjRegister(FIO_LocalMap<r_8>, LocalMap<r_8>); | 
|---|
|  | 81 |  | 
|---|
| [764] | 82 | PPRegister(FIO_LocalMap< complex<r_4> >); | 
|---|
| [841] | 83 | DObjRegister(FIO_LocalMap< complex<r_4> >, LocalMap< complex<r_4> >); | 
|---|
|  | 84 |  | 
|---|
| [764] | 85 | PPRegister(FIO_LocalMap< complex<r_8> >); | 
|---|
| [841] | 86 | DObjRegister(FIO_LocalMap< complex<r_8> >, LocalMap< complex<r_8> >); | 
|---|
| [764] | 87 |  | 
|---|
| [2610] | 88 | // ---------- Les SphereECP --------- | 
|---|
| [764] | 89 |  | 
|---|
| [2610] | 90 | PPRegister(FIO_SphereECP<int_4>); | 
|---|
|  | 91 | DObjRegister(FIO_SphereECP<int_4>, SphereECP<int_4>); | 
|---|
|  | 92 |  | 
|---|
|  | 93 | PPRegister(FIO_SphereECP<r_4>); | 
|---|
|  | 94 | DObjRegister(FIO_SphereECP<r_4>, SphereECP<r_4>); | 
|---|
|  | 95 |  | 
|---|
|  | 96 | PPRegister(FIO_SphereECP<r_8>); | 
|---|
|  | 97 | DObjRegister(FIO_SphereECP<r_8>, SphereECP<r_8>); | 
|---|
|  | 98 |  | 
|---|
|  | 99 | PPRegister(FIO_SphereECP< complex<r_4> >); | 
|---|
|  | 100 | DObjRegister(FIO_SphereECP< complex<r_4> >, SphereECP< complex<r_4> >); | 
|---|
|  | 101 |  | 
|---|
|  | 102 | PPRegister(FIO_SphereECP< complex<r_8> >); | 
|---|
|  | 103 | DObjRegister(FIO_SphereECP< complex<r_8> >, SphereECP< complex<r_8> >); | 
|---|
|  | 104 |  | 
|---|
|  | 105 |  | 
|---|
|  | 106 |  | 
|---|
| [764] | 107 | } | 
|---|
|  | 108 |  | 
|---|
|  | 109 | SkyMapInitiator::~SkyMapInitiator() | 
|---|
|  | 110 | { | 
|---|
| [841] | 111 | FgInit--; | 
|---|
| [764] | 112 | } | 
|---|
|  | 113 |  | 
|---|
|  | 114 |  | 
|---|
|  | 115 | // On met un objet initiator en statique, pour les loaders qui savent | 
|---|
|  | 116 | // appeler le constructeur des objets statiques   Reza 08/98 | 
|---|
|  | 117 | static SkyMapInitiator s_sskymapinit_; | 
|---|
|  | 118 |  | 
|---|
| [841] | 119 |  | 
|---|