| 1 | // Classe d'initialisation du module Outils++
|
|---|
| 2 | #include "machdefs.h"
|
|---|
| 3 | #include "skymapinit.h"
|
|---|
| 4 |
|
|---|
| 5 | #include <unistd.h>
|
|---|
| 6 | #include "spherethetaphi.h"
|
|---|
| 7 | #include "fiospherehealpix.h"
|
|---|
| 8 | #include "fiospherethetaphi.h"
|
|---|
| 9 | #include "fiolocalmap.h"
|
|---|
| 10 | #include "localmap.h"
|
|---|
| 11 |
|
|---|
| 12 | int SkyMapInitiator::FgInit = 0;
|
|---|
| 13 |
|
|---|
| 14 | SkyMapInitiator::SkyMapInitiator()
|
|---|
| 15 | : SophyaInitiator()
|
|---|
| 16 | {
|
|---|
| 17 | FgInit++;
|
|---|
| 18 | if (FgInit > 1) return;
|
|---|
| 19 |
|
|---|
| 20 | // Enregistrement des classes PPersist du module SkyMap
|
|---|
| 21 |
|
|---|
| 22 | PPRegister(FIO_SphereCoordSys);
|
|---|
| 23 | DObjRegister(FIO_SphereCoordSys, SphereCoordSys);
|
|---|
| 24 |
|
|---|
| 25 | PPRegister(FIO_SphereThetaPhi<r_4>);
|
|---|
| 26 | DObjRegister(FIO_SphereThetaPhi<r_4>, SphereThetaPhi<r_4>);
|
|---|
| 27 |
|
|---|
| 28 | PPRegister(FIO_SphereThetaPhi<r_8>);
|
|---|
| 29 | DObjRegister(FIO_SphereThetaPhi<r_8>, SphereThetaPhi<r_8>);
|
|---|
| 30 |
|
|---|
| 31 | PPRegister(FIO_SphereThetaPhi< complex<r_4> >);
|
|---|
| 32 | DObjRegister(FIO_SphereThetaPhi< complex<r_4> >, SphereThetaPhi< complex<r_4> >);
|
|---|
| 33 |
|
|---|
| 34 | PPRegister(FIO_SphereThetaPhi< complex<r_8> >);
|
|---|
| 35 | DObjRegister(FIO_SphereThetaPhi< complex<r_8> >, SphereThetaPhi< complex<r_8> >);
|
|---|
| 36 |
|
|---|
| 37 | PPRegister(FIO_SphereHEALPix<r_4>);
|
|---|
| 38 | DObjRegister(FIO_SphereHEALPix<r_4>, SphereHEALPix<r_4>);
|
|---|
| 39 |
|
|---|
| 40 | PPRegister(FIO_SphereHEALPix<r_8>);
|
|---|
| 41 | DObjRegister(FIO_SphereHEALPix<r_8>, SphereHEALPix<r_8>);
|
|---|
| 42 |
|
|---|
| 43 | PPRegister(FIO_SphereHEALPix< complex<r_4> >);
|
|---|
| 44 | DObjRegister(FIO_SphereHEALPix< complex<r_4> >, SphereHEALPix< complex<r_4> >);
|
|---|
| 45 |
|
|---|
| 46 | PPRegister(FIO_SphereHEALPix< complex<r_8> >);
|
|---|
| 47 | DObjRegister(FIO_SphereHEALPix< complex<r_8> >, SphereHEALPix< complex<r_8> >);
|
|---|
| 48 |
|
|---|
| 49 | PPRegister(FIO_LocalMap<r_4>);
|
|---|
| 50 | DObjRegister(FIO_LocalMap<r_4>, LocalMap<r_4>);
|
|---|
| 51 |
|
|---|
| 52 | PPRegister(FIO_LocalMap<r_8>);
|
|---|
| 53 | DObjRegister(FIO_LocalMap<r_8>, LocalMap<r_8>);
|
|---|
| 54 |
|
|---|
| 55 | PPRegister(FIO_LocalMap< complex<r_4> >);
|
|---|
| 56 | DObjRegister(FIO_LocalMap< complex<r_4> >, LocalMap< complex<r_4> >);
|
|---|
| 57 |
|
|---|
| 58 | PPRegister(FIO_LocalMap< complex<r_8> >);
|
|---|
| 59 | DObjRegister(FIO_LocalMap< complex<r_8> >, LocalMap< complex<r_8> >);
|
|---|
| 60 |
|
|---|
| 61 |
|
|---|
| 62 | }
|
|---|
| 63 |
|
|---|
| 64 | SkyMapInitiator::~SkyMapInitiator()
|
|---|
| 65 | {
|
|---|
| 66 | FgInit--;
|
|---|
| 67 | }
|
|---|
| 68 |
|
|---|
| 69 |
|
|---|
| 70 | // On met un objet initiator en statique, pour les loaders qui savent
|
|---|
| 71 | // appeler le constructeur des objets statiques Reza 08/98
|
|---|
| 72 | static SkyMapInitiator s_sskymapinit_;
|
|---|
| 73 |
|
|---|
| 74 |
|
|---|