[764] | 1 | // Classe d'initialisation du module Outils++
|
---|
[841] | 2 | #include "machdefs.h"
|
---|
| 3 | #include "skymapinit.h"
|
---|
| 4 |
|
---|
[764] | 5 | #include <unistd.h>
|
---|
| 6 | #include "spherethetaphi.h"
|
---|
[841] | 7 | #include "fiospherehealpix.h"
|
---|
| 8 | #include "fiospherethetaphi.h"
|
---|
| 9 | #include "fiolocalmap.h"
|
---|
[764] | 10 | #include "localmap.h"
|
---|
[841] | 11 |
|
---|
[764] | 12 | int SkyMapInitiator::FgInit = 0;
|
---|
| 13 |
|
---|
| 14 | SkyMapInitiator::SkyMapInitiator()
|
---|
[841] | 15 | : SophyaInitiator()
|
---|
[764] | 16 | {
|
---|
[841] | 17 | FgInit++;
|
---|
| 18 | if (FgInit > 1) return;
|
---|
[764] | 19 |
|
---|
[841] | 20 | // Enregistrement des classes PPersist du module SkyMap
|
---|
[764] | 21 |
|
---|
| 22 | PPRegister(FIO_SphereCoordSys);
|
---|
[841] | 23 | DObjRegister(FIO_SphereCoordSys, SphereCoordSys);
|
---|
[764] | 24 |
|
---|
| 25 | PPRegister(FIO_SphereThetaPhi<r_4>);
|
---|
[841] | 26 | DObjRegister(FIO_SphereThetaPhi<r_4>, SphereThetaPhi<r_4>);
|
---|
| 27 |
|
---|
[764] | 28 | PPRegister(FIO_SphereThetaPhi<r_8>);
|
---|
[841] | 29 | DObjRegister(FIO_SphereThetaPhi<r_8>, SphereThetaPhi<r_8>);
|
---|
| 30 |
|
---|
[764] | 31 | PPRegister(FIO_SphereThetaPhi< complex<r_4> >);
|
---|
[841] | 32 | DObjRegister(FIO_SphereThetaPhi< complex<r_4> >, SphereThetaPhi< complex<r_4> >);
|
---|
| 33 |
|
---|
[764] | 34 | PPRegister(FIO_SphereThetaPhi< complex<r_8> >);
|
---|
[841] | 35 | DObjRegister(FIO_SphereThetaPhi< complex<r_8> >, SphereThetaPhi< complex<r_8> >);
|
---|
[764] | 36 |
|
---|
[841] | 37 | PPRegister(FIO_SphereHealpix<r_4>);
|
---|
| 38 | DObjRegister(FIO_SphereHealpix<r_4>, SphereHealpix<r_4>);
|
---|
[764] | 39 |
|
---|
[841] | 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 |
|
---|
[764] | 49 | PPRegister(FIO_LocalMap<r_4>);
|
---|
[841] | 50 | DObjRegister(FIO_LocalMap<r_4>, LocalMap<r_4>);
|
---|
| 51 |
|
---|
[764] | 52 | PPRegister(FIO_LocalMap<r_8>);
|
---|
[841] | 53 | DObjRegister(FIO_LocalMap<r_8>, LocalMap<r_8>);
|
---|
| 54 |
|
---|
[764] | 55 | PPRegister(FIO_LocalMap< complex<r_4> >);
|
---|
[841] | 56 | DObjRegister(FIO_LocalMap< complex<r_4> >, LocalMap< complex<r_4> >);
|
---|
| 57 |
|
---|
[764] | 58 | PPRegister(FIO_LocalMap< complex<r_8> >);
|
---|
[841] | 59 | DObjRegister(FIO_LocalMap< complex<r_8> >, LocalMap< complex<r_8> >);
|
---|
[764] | 60 |
|
---|
| 61 |
|
---|
| 62 | }
|
---|
| 63 |
|
---|
| 64 | SkyMapInitiator::~SkyMapInitiator()
|
---|
| 65 | {
|
---|
[841] | 66 | FgInit--;
|
---|
[764] | 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 |
|
---|
[841] | 74 |
|
---|