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

Last change on this file since 4056 was 3865, checked in by ansari, 15 years ago

correction faute de frappe ds skymapinit.cc, Reza 12/08/2010

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