| Last change
 on this file since 575 was             518, checked in by ansari, 26 years ago | 
        
          | 
Introduction de SpherePosition and SphereCoordSys, and Initiator for module Samba - Reza+I. Grivell 26/10/99
 | 
        
          | File size:
            1.1 KB | 
      
      
| Line |  | 
|---|
| 1 | // Classe d'initialisation du module Outils++ | 
|---|
| 2 | #include <unistd.h> | 
|---|
| 3 |  | 
|---|
| 4 | #include "sambainit.h" | 
|---|
| 5 | #include "ppersist.h" | 
|---|
| 6 | #include "objfio.h" | 
|---|
| 7 | #include "spherethetaphi.h" | 
|---|
| 8 | #include "spheregorski.h" | 
|---|
| 9 | #include "spherepos.h" | 
|---|
| 10 |  | 
|---|
| 11 | int SambaInitiator::FgInit = 0; | 
|---|
| 12 |  | 
|---|
| 13 | SambaInitiator::SambaInitiator() | 
|---|
| 14 | : PeidaOutilsInitiator() | 
|---|
| 15 | { | 
|---|
| 16 | SambaInitiator::FgInit++; | 
|---|
| 17 | if (SambaInitiator::FgInit > 1)  return; | 
|---|
| 18 |  | 
|---|
| 19 | //   Enregistrement des classes PPersist du modules Outils++ | 
|---|
| 20 |  | 
|---|
| 21 | PPRegister(SphereCoordSys); | 
|---|
| 22 |  | 
|---|
| 23 | PPRegister(FIO_SphereThetaPhi<float>); | 
|---|
| 24 | PPRegister(FIO_SphereThetaPhi<double>); | 
|---|
| 25 | PPRegister(FIO_SphereThetaPhi< complex<float> >); | 
|---|
| 26 | PPRegister(FIO_SphereThetaPhi< complex<double> >); | 
|---|
| 27 |  | 
|---|
| 28 | PPRegister(FIO_SphereGorski<float>); | 
|---|
| 29 | PPRegister(FIO_SphereGorski<double>); | 
|---|
| 30 | PPRegister(FIO_SphereGorski< complex<float> >); | 
|---|
| 31 | PPRegister(FIO_SphereGorski< complex<double> >); | 
|---|
| 32 |  | 
|---|
| 33 |  | 
|---|
| 34 | } | 
|---|
| 35 |  | 
|---|
| 36 | SambaInitiator::~SambaInitiator() | 
|---|
| 37 | { | 
|---|
| 38 | SambaInitiator::FgInit--; | 
|---|
| 39 | } | 
|---|
| 40 |  | 
|---|
| 41 |  | 
|---|
| 42 | // On met un objet initiator en statique, pour les loaders qui savent | 
|---|
| 43 | // appeler le constructeur des objets statiques   Reza 08/98 | 
|---|
| 44 | static SambaInitiator s_sambainit_; | 
|---|
| 45 |  | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.