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

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

Ajout methodes RenewObjId() pour cartes spheriques et localmap - Reza 05/02/2007

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