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

Last change on this file since 1594 was 1371, checked in by ansari, 25 years ago

MAJ documentation, Makefile, ... - Reza 5/1/2001

File size: 2.3 KB
RevLine 
[764]1// Classe d'initialisation du module Outils++
[841]2#include "machdefs.h"
3#include "skymapinit.h"
4
[764]5#include <unistd.h>
6#include "spherethetaphi.h"
[841]7#include "fiospherehealpix.h"
8#include "fiospherethetaphi.h"
9#include "fiolocalmap.h"
[764]10#include "localmap.h"
[841]11
[1371]12/*!
13 \defgroup SkyMap SkyMap module
14 This module contains classes for handling partial and full sky (spherical) maps
15*/
16
17/*!
18 \class SOPHYA::SkyMapInitiator
19 \ingroup SkyMap
20 Class handling initialization for module SkyMap
21*/
22
[764]23int SkyMapInitiator::FgInit = 0;
24
25SkyMapInitiator::SkyMapInitiator()
[841]26 : SophyaInitiator()
[764]27{
[841]28 FgInit++;
29 if (FgInit > 1) return;
[764]30
[841]31// Enregistrement des classes PPersist du module SkyMap
[764]32
33 PPRegister(FIO_SphereCoordSys);
[841]34 DObjRegister(FIO_SphereCoordSys, SphereCoordSys);
[764]35
36 PPRegister(FIO_SphereThetaPhi<r_4>);
[841]37 DObjRegister(FIO_SphereThetaPhi<r_4>, SphereThetaPhi<r_4>);
38
[764]39 PPRegister(FIO_SphereThetaPhi<r_8>);
[841]40 DObjRegister(FIO_SphereThetaPhi<r_8>, SphereThetaPhi<r_8>);
41
[764]42 PPRegister(FIO_SphereThetaPhi< complex<r_4> >);
[841]43 DObjRegister(FIO_SphereThetaPhi< complex<r_4> >, SphereThetaPhi< complex<r_4> >);
44
[764]45 PPRegister(FIO_SphereThetaPhi< complex<r_8> >);
[841]46 DObjRegister(FIO_SphereThetaPhi< complex<r_8> >, SphereThetaPhi< complex<r_8> >);
[764]47
[853]48 PPRegister(FIO_SphereHEALPix<r_4>);
49 DObjRegister(FIO_SphereHEALPix<r_4>, SphereHEALPix<r_4>);
[764]50
[853]51 PPRegister(FIO_SphereHEALPix<r_8>);
52 DObjRegister(FIO_SphereHEALPix<r_8>, SphereHEALPix<r_8>);
[841]53
[853]54 PPRegister(FIO_SphereHEALPix< complex<r_4> >);
55 DObjRegister(FIO_SphereHEALPix< complex<r_4> >, SphereHEALPix< complex<r_4> >);
[841]56
[853]57 PPRegister(FIO_SphereHEALPix< complex<r_8> >);
58 DObjRegister(FIO_SphereHEALPix< complex<r_8> >, SphereHEALPix< complex<r_8> >);
[841]59
[764]60 PPRegister(FIO_LocalMap<r_4>);
[841]61 DObjRegister(FIO_LocalMap<r_4>, LocalMap<r_4>);
62
[764]63 PPRegister(FIO_LocalMap<r_8>);
[841]64 DObjRegister(FIO_LocalMap<r_8>, LocalMap<r_8>);
65
[764]66 PPRegister(FIO_LocalMap< complex<r_4> >);
[841]67 DObjRegister(FIO_LocalMap< complex<r_4> >, LocalMap< complex<r_4> >);
68
[764]69 PPRegister(FIO_LocalMap< complex<r_8> >);
[841]70 DObjRegister(FIO_LocalMap< complex<r_8> >, LocalMap< complex<r_8> >);
[764]71
72
73}
74
75SkyMapInitiator::~SkyMapInitiator()
76{
[841]77 FgInit--;
[764]78}
79
80
81// On met un objet initiator en statique, pour les loaders qui savent
82// appeler le constructeur des objets statiques Reza 08/98
83static SkyMapInitiator s_sskymapinit_;
84
[841]85
Note: See TracBrowser for help on using the repository browser.