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

Last change on this file since 2808 was 2615, checked in by cmv, 21 years ago

using namespace sophya enleve de machdefs.h, nouveau sopnamsp.h cmv 10/09/2004

File size: 3.3 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<int_4>);
58 DObjRegister(FIO_SphereHEALPix<int_4>, SphereHEALPix<int_4>);
59
60 PPRegister(FIO_SphereHEALPix<r_4>);
61 DObjRegister(FIO_SphereHEALPix<r_4>, SphereHEALPix<r_4>);
62
63 PPRegister(FIO_SphereHEALPix<r_8>);
64 DObjRegister(FIO_SphereHEALPix<r_8>, SphereHEALPix<r_8>);
65
66 PPRegister(FIO_SphereHEALPix< complex<r_4> >);
67 DObjRegister(FIO_SphereHEALPix< complex<r_4> >, SphereHEALPix< complex<r_4> >);
68
69 PPRegister(FIO_SphereHEALPix< complex<r_8> >);
70 DObjRegister(FIO_SphereHEALPix< complex<r_8> >, SphereHEALPix< complex<r_8> >);
71
72 // ------------ Les LocalMap ---------
73 PPRegister(FIO_LocalMap<int_4>);
74 DObjRegister(FIO_LocalMap<int_4>, LocalMap<int_4>);
75
76 PPRegister(FIO_LocalMap<r_4>);
77 DObjRegister(FIO_LocalMap<r_4>, LocalMap<r_4>);
78
79 PPRegister(FIO_LocalMap<r_8>);
80 DObjRegister(FIO_LocalMap<r_8>, LocalMap<r_8>);
81
82 PPRegister(FIO_LocalMap< complex<r_4> >);
83 DObjRegister(FIO_LocalMap< complex<r_4> >, LocalMap< complex<r_4> >);
84
85 PPRegister(FIO_LocalMap< complex<r_8> >);
86 DObjRegister(FIO_LocalMap< complex<r_8> >, LocalMap< complex<r_8> >);
87
88 // ---------- Les SphereECP ---------
89
90 PPRegister(FIO_SphereECP<int_4>);
91 DObjRegister(FIO_SphereECP<int_4>, SphereECP<int_4>);
92
93 PPRegister(FIO_SphereECP<r_4>);
94 DObjRegister(FIO_SphereECP<r_4>, SphereECP<r_4>);
95
96 PPRegister(FIO_SphereECP<r_8>);
97 DObjRegister(FIO_SphereECP<r_8>, SphereECP<r_8>);
98
99 PPRegister(FIO_SphereECP< complex<r_4> >);
100 DObjRegister(FIO_SphereECP< complex<r_4> >, SphereECP< complex<r_4> >);
101
102 PPRegister(FIO_SphereECP< complex<r_8> >);
103 DObjRegister(FIO_SphereECP< complex<r_8> >, SphereECP< complex<r_8> >);
104
105
106
107}
108
109SkyMapInitiator::~SkyMapInitiator()
110{
111 FgInit--;
112}
113
114
115// On met un objet initiator en statique, pour les loaders qui savent
116// appeler le constructeur des objets statiques Reza 08/98
117static SkyMapInitiator s_sskymapinit_;
118
119
Note: See TracBrowser for help on using the repository browser.