source: Sophya/trunk/SophyaLib/SkyMap/skymapinit.cc@ 3300

Last change on this file since 3300 was 3300, checked in by ansari, 18 years ago

Correction ds LocalMap::PixToSphereC() suite message S.Plascczynski du 12/07/07 - Reza 17/08/2007

File size: 3.7 KB
RevLine 
[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]24int SkyMapInitiator::FgInit = 0;
25
[3020]26// Module version number - 1.6, Jul 06
[3300]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
[3020]30
[764]31SkyMapInitiator::SkyMapInitiator()
[841]32 : SophyaInitiator()
[764]33{
[841]34 FgInit++;
35 if (FgInit > 1) return;
[764]36
[841]37// Enregistrement des classes PPersist du module SkyMap
[764]38
[2082]39 // ---------- Les SphereThetaPhi ---------
40
[764]41 PPRegister(FIO_SphereCoordSys);
[841]42 DObjRegister(FIO_SphereCoordSys, SphereCoordSys);
[764]43
[2082]44 PPRegister(FIO_SphereThetaPhi<int_4>);
45 DObjRegister(FIO_SphereThetaPhi<int_4>, SphereThetaPhi<int_4>);
46
[764]47 PPRegister(FIO_SphereThetaPhi<r_4>);
[841]48 DObjRegister(FIO_SphereThetaPhi<r_4>, SphereThetaPhi<r_4>);
49
[764]50 PPRegister(FIO_SphereThetaPhi<r_8>);
[841]51 DObjRegister(FIO_SphereThetaPhi<r_8>, SphereThetaPhi<r_8>);
52
[764]53 PPRegister(FIO_SphereThetaPhi< complex<r_4> >);
[841]54 DObjRegister(FIO_SphereThetaPhi< complex<r_4> >, SphereThetaPhi< complex<r_4> >);
55
[764]56 PPRegister(FIO_SphereThetaPhi< complex<r_8> >);
[841]57 DObjRegister(FIO_SphereThetaPhi< complex<r_8> >, SphereThetaPhi< complex<r_8> >);
[764]58
[2082]59
60 // ---------- Les SphereHEALPix ---------
61
[2978]62 PPRegister(FIO_SphereHEALPix<uint_2>);
63 DObjRegister(FIO_SphereHEALPix<uint_2>, SphereHEALPix<uint_2>);
64
[2082]65 PPRegister(FIO_SphereHEALPix<int_4>);
66 DObjRegister(FIO_SphereHEALPix<int_4>, SphereHEALPix<int_4>);
67
[853]68 PPRegister(FIO_SphereHEALPix<r_4>);
69 DObjRegister(FIO_SphereHEALPix<r_4>, SphereHEALPix<r_4>);
[764]70
[853]71 PPRegister(FIO_SphereHEALPix<r_8>);
72 DObjRegister(FIO_SphereHEALPix<r_8>, SphereHEALPix<r_8>);
[841]73
[853]74 PPRegister(FIO_SphereHEALPix< complex<r_4> >);
75 DObjRegister(FIO_SphereHEALPix< complex<r_4> >, SphereHEALPix< complex<r_4> >);
[841]76
[853]77 PPRegister(FIO_SphereHEALPix< complex<r_8> >);
78 DObjRegister(FIO_SphereHEALPix< complex<r_8> >, SphereHEALPix< complex<r_8> >);
[841]79
[2082]80 // ------------ Les LocalMap ---------
81 PPRegister(FIO_LocalMap<int_4>);
82 DObjRegister(FIO_LocalMap<int_4>, LocalMap<int_4>);
83
[764]84 PPRegister(FIO_LocalMap<r_4>);
[841]85 DObjRegister(FIO_LocalMap<r_4>, LocalMap<r_4>);
86
[764]87 PPRegister(FIO_LocalMap<r_8>);
[841]88 DObjRegister(FIO_LocalMap<r_8>, LocalMap<r_8>);
89
[764]90 PPRegister(FIO_LocalMap< complex<r_4> >);
[841]91 DObjRegister(FIO_LocalMap< complex<r_4> >, LocalMap< complex<r_4> >);
92
[764]93 PPRegister(FIO_LocalMap< complex<r_8> >);
[841]94 DObjRegister(FIO_LocalMap< complex<r_8> >, LocalMap< complex<r_8> >);
[764]95
[2610]96 // ---------- Les SphereECP ---------
[764]97
[2610]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
[3020]113 SophyaInitiator::RegisterModule("SkyMap", MOD_VERS); // Module name and version number registration
[764]114}
115
116SkyMapInitiator::~SkyMapInitiator()
117{
[841]118 FgInit--;
[764]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
124static SkyMapInitiator s_sskymapinit_;
125
[841]126
Note: See TracBrowser for help on using the repository browser.