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

Last change on this file since 2985 was 2978, checked in by ansari, 19 years ago

1/ Mise en place de la prise en charge du schema de pixelisation NESTED dans
SphereHEALPix<T>
2/ petites corrections sur PixelMap<T> et cartes speheriques

Reza 21/06/2006

File size: 3.4 KB
Line 
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
24int SkyMapInitiator::FgInit = 0;
25
26SkyMapInitiator::SkyMapInitiator()
27 : SophyaInitiator()
28{
29 FgInit++;
30 if (FgInit > 1) return;
31
32// Enregistrement des classes PPersist du module SkyMap
33
34 // ---------- Les SphereThetaPhi ---------
35
36 PPRegister(FIO_SphereCoordSys);
37 DObjRegister(FIO_SphereCoordSys, SphereCoordSys);
38
39 PPRegister(FIO_SphereThetaPhi<int_4>);
40 DObjRegister(FIO_SphereThetaPhi<int_4>, SphereThetaPhi<int_4>);
41
42 PPRegister(FIO_SphereThetaPhi<r_4>);
43 DObjRegister(FIO_SphereThetaPhi<r_4>, SphereThetaPhi<r_4>);
44
45 PPRegister(FIO_SphereThetaPhi<r_8>);
46 DObjRegister(FIO_SphereThetaPhi<r_8>, SphereThetaPhi<r_8>);
47
48 PPRegister(FIO_SphereThetaPhi< complex<r_4> >);
49 DObjRegister(FIO_SphereThetaPhi< complex<r_4> >, SphereThetaPhi< complex<r_4> >);
50
51 PPRegister(FIO_SphereThetaPhi< complex<r_8> >);
52 DObjRegister(FIO_SphereThetaPhi< complex<r_8> >, SphereThetaPhi< complex<r_8> >);
53
54
55 // ---------- Les SphereHEALPix ---------
56
57 PPRegister(FIO_SphereHEALPix<uint_2>);
58 DObjRegister(FIO_SphereHEALPix<uint_2>, SphereHEALPix<uint_2>);
59
60 PPRegister(FIO_SphereHEALPix<int_4>);
61 DObjRegister(FIO_SphereHEALPix<int_4>, SphereHEALPix<int_4>);
62
63 PPRegister(FIO_SphereHEALPix<r_4>);
64 DObjRegister(FIO_SphereHEALPix<r_4>, SphereHEALPix<r_4>);
65
66 PPRegister(FIO_SphereHEALPix<r_8>);
67 DObjRegister(FIO_SphereHEALPix<r_8>, SphereHEALPix<r_8>);
68
69 PPRegister(FIO_SphereHEALPix< complex<r_4> >);
70 DObjRegister(FIO_SphereHEALPix< complex<r_4> >, SphereHEALPix< complex<r_4> >);
71
72 PPRegister(FIO_SphereHEALPix< complex<r_8> >);
73 DObjRegister(FIO_SphereHEALPix< complex<r_8> >, SphereHEALPix< complex<r_8> >);
74
75 // ------------ Les LocalMap ---------
76 PPRegister(FIO_LocalMap<int_4>);
77 DObjRegister(FIO_LocalMap<int_4>, LocalMap<int_4>);
78
79 PPRegister(FIO_LocalMap<r_4>);
80 DObjRegister(FIO_LocalMap<r_4>, LocalMap<r_4>);
81
82 PPRegister(FIO_LocalMap<r_8>);
83 DObjRegister(FIO_LocalMap<r_8>, LocalMap<r_8>);
84
85 PPRegister(FIO_LocalMap< complex<r_4> >);
86 DObjRegister(FIO_LocalMap< complex<r_4> >, LocalMap< complex<r_4> >);
87
88 PPRegister(FIO_LocalMap< complex<r_8> >);
89 DObjRegister(FIO_LocalMap< complex<r_8> >, LocalMap< complex<r_8> >);
90
91 // ---------- Les SphereECP ---------
92
93 PPRegister(FIO_SphereECP<int_4>);
94 DObjRegister(FIO_SphereECP<int_4>, SphereECP<int_4>);
95
96 PPRegister(FIO_SphereECP<r_4>);
97 DObjRegister(FIO_SphereECP<r_4>, SphereECP<r_4>);
98
99 PPRegister(FIO_SphereECP<r_8>);
100 DObjRegister(FIO_SphereECP<r_8>, SphereECP<r_8>);
101
102 PPRegister(FIO_SphereECP< complex<r_4> >);
103 DObjRegister(FIO_SphereECP< complex<r_4> >, SphereECP< complex<r_4> >);
104
105 PPRegister(FIO_SphereECP< complex<r_8> >);
106 DObjRegister(FIO_SphereECP< complex<r_8> >, SphereECP< complex<r_8> >);
107
108
109
110}
111
112SkyMapInitiator::~SkyMapInitiator()
113{
114 FgInit--;
115}
116
117
118// On met un objet initiator en statique, pour les loaders qui savent
119// appeler le constructeur des objets statiques Reza 08/98
120static SkyMapInitiator s_sskymapinit_;
121
122
Note: See TracBrowser for help on using the repository browser.