| 1 | // Classe d'initialisation du module Outils++ | 
|---|
| 2 | #include "sopnamsp.h" | 
|---|
| 3 | #include "machdefs.h" | 
|---|
| 4 | #include "skymapinit.h" | 
|---|
| 5 |  | 
|---|
| 6 | #include <unistd.h> | 
|---|
| 7 | #include "spherethetaphi.h" | 
|---|
| 8 | #include "fiospherehealpix.h" | 
|---|
| 9 | #include "fiospherethetaphi.h" | 
|---|
| 10 | #include "fiolocalmap.h" | 
|---|
| 11 | #include "fiosphereecp.h" | 
|---|
| 12 |  | 
|---|
| 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 |  | 
|---|
| 24 | int SkyMapInitiator::FgInit = 0; | 
|---|
| 25 |  | 
|---|
| 26 | // Module version number - 1.6, Jul 06 | 
|---|
| 27 | //   V=1.61 , Fev 2007: Ajout RenewObjId() pour SphereHealPix,ThetaPhi,ECP,LocalMap | 
|---|
| 28 | //   V=1.62 , Aou 2007: Correction ds LocalMap::PixToSphereC() | 
|---|
| 29 | #define MOD_VERS   1.62 | 
|---|
| 30 |  | 
|---|
| 31 | SkyMapInitiator::SkyMapInitiator() | 
|---|
| 32 | : SophyaInitiator() | 
|---|
| 33 | { | 
|---|
| 34 | FgInit++; | 
|---|
| 35 | if (FgInit > 1)  return; | 
|---|
| 36 |  | 
|---|
| 37 | //   Enregistrement des classes PPersist du module SkyMap | 
|---|
| 38 |  | 
|---|
| 39 | // ---------- Les SphereThetaPhi --------- | 
|---|
| 40 |  | 
|---|
| 41 | PPRegister(FIO_SphereCoordSys); | 
|---|
| 42 | DObjRegister(FIO_SphereCoordSys, SphereCoordSys); | 
|---|
| 43 |  | 
|---|
| 44 | PPRegister(FIO_SphereThetaPhi<int_4>); | 
|---|
| 45 | DObjRegister(FIO_SphereThetaPhi<int_4>, SphereThetaPhi<int_4>); | 
|---|
| 46 |  | 
|---|
| 47 | PPRegister(FIO_SphereThetaPhi<r_4>); | 
|---|
| 48 | DObjRegister(FIO_SphereThetaPhi<r_4>, SphereThetaPhi<r_4>); | 
|---|
| 49 |  | 
|---|
| 50 | PPRegister(FIO_SphereThetaPhi<r_8>); | 
|---|
| 51 | DObjRegister(FIO_SphereThetaPhi<r_8>, SphereThetaPhi<r_8>); | 
|---|
| 52 |  | 
|---|
| 53 | PPRegister(FIO_SphereThetaPhi< complex<r_4> >); | 
|---|
| 54 | DObjRegister(FIO_SphereThetaPhi< complex<r_4> >, SphereThetaPhi< complex<r_4> >); | 
|---|
| 55 |  | 
|---|
| 56 | PPRegister(FIO_SphereThetaPhi< complex<r_8> >); | 
|---|
| 57 | DObjRegister(FIO_SphereThetaPhi< complex<r_8> >, SphereThetaPhi< complex<r_8> >); | 
|---|
| 58 |  | 
|---|
| 59 |  | 
|---|
| 60 | // ---------- Les SphereHEALPix --------- | 
|---|
| 61 |  | 
|---|
| 62 | PPRegister(FIO_SphereHEALPix<uint_2>); | 
|---|
| 63 | DObjRegister(FIO_SphereHEALPix<uint_2>, SphereHEALPix<uint_2>); | 
|---|
| 64 |  | 
|---|
| 65 | PPRegister(FIO_SphereHEALPix<int_4>); | 
|---|
| 66 | DObjRegister(FIO_SphereHEALPix<int_4>, SphereHEALPix<int_4>); | 
|---|
| 67 |  | 
|---|
| 68 | PPRegister(FIO_SphereHEALPix<r_4>); | 
|---|
| 69 | DObjRegister(FIO_SphereHEALPix<r_4>, SphereHEALPix<r_4>); | 
|---|
| 70 |  | 
|---|
| 71 | PPRegister(FIO_SphereHEALPix<r_8>); | 
|---|
| 72 | DObjRegister(FIO_SphereHEALPix<r_8>, SphereHEALPix<r_8>); | 
|---|
| 73 |  | 
|---|
| 74 | PPRegister(FIO_SphereHEALPix< complex<r_4> >); | 
|---|
| 75 | DObjRegister(FIO_SphereHEALPix< complex<r_4> >, SphereHEALPix< complex<r_4> >); | 
|---|
| 76 |  | 
|---|
| 77 | PPRegister(FIO_SphereHEALPix< complex<r_8> >); | 
|---|
| 78 | DObjRegister(FIO_SphereHEALPix< complex<r_8> >, SphereHEALPix< complex<r_8> >); | 
|---|
| 79 |  | 
|---|
| 80 | // ------------ Les LocalMap --------- | 
|---|
| 81 | PPRegister(FIO_LocalMap<int_4>); | 
|---|
| 82 | DObjRegister(FIO_LocalMap<int_4>, LocalMap<int_4>); | 
|---|
| 83 |  | 
|---|
| 84 | PPRegister(FIO_LocalMap<r_4>); | 
|---|
| 85 | DObjRegister(FIO_LocalMap<r_4>, LocalMap<r_4>); | 
|---|
| 86 |  | 
|---|
| 87 | PPRegister(FIO_LocalMap<r_8>); | 
|---|
| 88 | DObjRegister(FIO_LocalMap<r_8>, LocalMap<r_8>); | 
|---|
| 89 |  | 
|---|
| 90 | PPRegister(FIO_LocalMap< complex<r_4> >); | 
|---|
| 91 | DObjRegister(FIO_LocalMap< complex<r_4> >, LocalMap< complex<r_4> >); | 
|---|
| 92 |  | 
|---|
| 93 | PPRegister(FIO_LocalMap< complex<r_8> >); | 
|---|
| 94 | DObjRegister(FIO_LocalMap< complex<r_8> >, LocalMap< complex<r_8> >); | 
|---|
| 95 |  | 
|---|
| 96 | // ---------- Les SphereECP --------- | 
|---|
| 97 |  | 
|---|
| 98 | PPRegister(FIO_SphereECP<int_4>); | 
|---|
| 99 | DObjRegister(FIO_SphereECP<int_4>, SphereECP<int_4>); | 
|---|
| 100 |  | 
|---|
| 101 | PPRegister(FIO_SphereECP<r_4>); | 
|---|
| 102 | DObjRegister(FIO_SphereECP<r_4>, SphereECP<r_4>); | 
|---|
| 103 |  | 
|---|
| 104 | PPRegister(FIO_SphereECP<r_8>); | 
|---|
| 105 | DObjRegister(FIO_SphereECP<r_8>, SphereECP<r_8>); | 
|---|
| 106 |  | 
|---|
| 107 | PPRegister(FIO_SphereECP< complex<r_4> >); | 
|---|
| 108 | DObjRegister(FIO_SphereECP< complex<r_4> >, SphereECP< complex<r_4> >); | 
|---|
| 109 |  | 
|---|
| 110 | PPRegister(FIO_SphereECP< complex<r_8> >); | 
|---|
| 111 | DObjRegister(FIO_SphereECP< complex<r_8> >, SphereECP< complex<r_8> >); | 
|---|
| 112 |  | 
|---|
| 113 | SophyaInitiator::RegisterModule("SkyMap", MOD_VERS);  // Module name and version number registration | 
|---|
| 114 | } | 
|---|
| 115 |  | 
|---|
| 116 | SkyMapInitiator::~SkyMapInitiator() | 
|---|
| 117 | { | 
|---|
| 118 | FgInit--; | 
|---|
| 119 | } | 
|---|
| 120 |  | 
|---|
| 121 |  | 
|---|
| 122 | // On met un objet initiator en statique, pour les loaders qui savent | 
|---|
| 123 | // appeler le constructeur des objets statiques   Reza 08/98 | 
|---|
| 124 | static SkyMapInitiator s_sskymapinit_; | 
|---|
| 125 |  | 
|---|
| 126 |  | 
|---|