| 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 2006: Ajout RenewObjId() pour SphereHealPix,ThetaPhi,ECP,LocalMap
|
|---|
| 28 | #define MOD_VERS 1.61
|
|---|
| 29 |
|
|---|
| 30 | SkyMapInitiator::SkyMapInitiator()
|
|---|
| 31 | : SophyaInitiator()
|
|---|
| 32 | {
|
|---|
| 33 | FgInit++;
|
|---|
| 34 | if (FgInit > 1) return;
|
|---|
| 35 |
|
|---|
| 36 | // Enregistrement des classes PPersist du module SkyMap
|
|---|
| 37 |
|
|---|
| 38 | // ---------- Les SphereThetaPhi ---------
|
|---|
| 39 |
|
|---|
| 40 | PPRegister(FIO_SphereCoordSys);
|
|---|
| 41 | DObjRegister(FIO_SphereCoordSys, SphereCoordSys);
|
|---|
| 42 |
|
|---|
| 43 | PPRegister(FIO_SphereThetaPhi<int_4>);
|
|---|
| 44 | DObjRegister(FIO_SphereThetaPhi<int_4>, SphereThetaPhi<int_4>);
|
|---|
| 45 |
|
|---|
| 46 | PPRegister(FIO_SphereThetaPhi<r_4>);
|
|---|
| 47 | DObjRegister(FIO_SphereThetaPhi<r_4>, SphereThetaPhi<r_4>);
|
|---|
| 48 |
|
|---|
| 49 | PPRegister(FIO_SphereThetaPhi<r_8>);
|
|---|
| 50 | DObjRegister(FIO_SphereThetaPhi<r_8>, SphereThetaPhi<r_8>);
|
|---|
| 51 |
|
|---|
| 52 | PPRegister(FIO_SphereThetaPhi< complex<r_4> >);
|
|---|
| 53 | DObjRegister(FIO_SphereThetaPhi< complex<r_4> >, SphereThetaPhi< complex<r_4> >);
|
|---|
| 54 |
|
|---|
| 55 | PPRegister(FIO_SphereThetaPhi< complex<r_8> >);
|
|---|
| 56 | DObjRegister(FIO_SphereThetaPhi< complex<r_8> >, SphereThetaPhi< complex<r_8> >);
|
|---|
| 57 |
|
|---|
| 58 |
|
|---|
| 59 | // ---------- Les SphereHEALPix ---------
|
|---|
| 60 |
|
|---|
| 61 | PPRegister(FIO_SphereHEALPix<uint_2>);
|
|---|
| 62 | DObjRegister(FIO_SphereHEALPix<uint_2>, SphereHEALPix<uint_2>);
|
|---|
| 63 |
|
|---|
| 64 | PPRegister(FIO_SphereHEALPix<int_4>);
|
|---|
| 65 | DObjRegister(FIO_SphereHEALPix<int_4>, SphereHEALPix<int_4>);
|
|---|
| 66 |
|
|---|
| 67 | PPRegister(FIO_SphereHEALPix<r_4>);
|
|---|
| 68 | DObjRegister(FIO_SphereHEALPix<r_4>, SphereHEALPix<r_4>);
|
|---|
| 69 |
|
|---|
| 70 | PPRegister(FIO_SphereHEALPix<r_8>);
|
|---|
| 71 | DObjRegister(FIO_SphereHEALPix<r_8>, SphereHEALPix<r_8>);
|
|---|
| 72 |
|
|---|
| 73 | PPRegister(FIO_SphereHEALPix< complex<r_4> >);
|
|---|
| 74 | DObjRegister(FIO_SphereHEALPix< complex<r_4> >, SphereHEALPix< complex<r_4> >);
|
|---|
| 75 |
|
|---|
| 76 | PPRegister(FIO_SphereHEALPix< complex<r_8> >);
|
|---|
| 77 | DObjRegister(FIO_SphereHEALPix< complex<r_8> >, SphereHEALPix< complex<r_8> >);
|
|---|
| 78 |
|
|---|
| 79 | // ------------ Les LocalMap ---------
|
|---|
| 80 | PPRegister(FIO_LocalMap<int_4>);
|
|---|
| 81 | DObjRegister(FIO_LocalMap<int_4>, LocalMap<int_4>);
|
|---|
| 82 |
|
|---|
| 83 | PPRegister(FIO_LocalMap<r_4>);
|
|---|
| 84 | DObjRegister(FIO_LocalMap<r_4>, LocalMap<r_4>);
|
|---|
| 85 |
|
|---|
| 86 | PPRegister(FIO_LocalMap<r_8>);
|
|---|
| 87 | DObjRegister(FIO_LocalMap<r_8>, LocalMap<r_8>);
|
|---|
| 88 |
|
|---|
| 89 | PPRegister(FIO_LocalMap< complex<r_4> >);
|
|---|
| 90 | DObjRegister(FIO_LocalMap< complex<r_4> >, LocalMap< complex<r_4> >);
|
|---|
| 91 |
|
|---|
| 92 | PPRegister(FIO_LocalMap< complex<r_8> >);
|
|---|
| 93 | DObjRegister(FIO_LocalMap< complex<r_8> >, LocalMap< complex<r_8> >);
|
|---|
| 94 |
|
|---|
| 95 | // ---------- Les SphereECP ---------
|
|---|
| 96 |
|
|---|
| 97 | PPRegister(FIO_SphereECP<int_4>);
|
|---|
| 98 | DObjRegister(FIO_SphereECP<int_4>, SphereECP<int_4>);
|
|---|
| 99 |
|
|---|
| 100 | PPRegister(FIO_SphereECP<r_4>);
|
|---|
| 101 | DObjRegister(FIO_SphereECP<r_4>, SphereECP<r_4>);
|
|---|
| 102 |
|
|---|
| 103 | PPRegister(FIO_SphereECP<r_8>);
|
|---|
| 104 | DObjRegister(FIO_SphereECP<r_8>, SphereECP<r_8>);
|
|---|
| 105 |
|
|---|
| 106 | PPRegister(FIO_SphereECP< complex<r_4> >);
|
|---|
| 107 | DObjRegister(FIO_SphereECP< complex<r_4> >, SphereECP< complex<r_4> >);
|
|---|
| 108 |
|
|---|
| 109 | PPRegister(FIO_SphereECP< complex<r_8> >);
|
|---|
| 110 | DObjRegister(FIO_SphereECP< complex<r_8> >, SphereECP< complex<r_8> >);
|
|---|
| 111 |
|
|---|
| 112 | SophyaInitiator::RegisterModule("SkyMap", MOD_VERS); // Module name and version number registration
|
|---|
| 113 | }
|
|---|
| 114 |
|
|---|
| 115 | SkyMapInitiator::~SkyMapInitiator()
|
|---|
| 116 | {
|
|---|
| 117 | FgInit--;
|
|---|
| 118 | }
|
|---|
| 119 |
|
|---|
| 120 |
|
|---|
| 121 | // On met un objet initiator en statique, pour les loaders qui savent
|
|---|
| 122 | // appeler le constructeur des objets statiques Reza 08/98
|
|---|
| 123 | static SkyMapInitiator s_sskymapinit_;
|
|---|
| 124 |
|
|---|
| 125 |
|
|---|