[757] | 1 | // Classe d'initialisation du module NTools
|
---|
| 2 |
|
---|
[2615] | 3 | #include "sopnamsp.h"
|
---|
[757] | 4 | #include "machdefs.h"
|
---|
| 5 | #include "ntoolsinit.h"
|
---|
| 6 |
|
---|
| 7 | #include "poly.h"
|
---|
| 8 | #include "generaldata.h"
|
---|
| 9 | #include "cimage.h"
|
---|
| 10 |
|
---|
| 11 | #include "tabmath.h"
|
---|
| 12 | #include "dates.h"
|
---|
| 13 | #include "datime.h"
|
---|
| 14 |
|
---|
[926] | 15 | /*!
|
---|
| 16 | \defgroup NTools NTools module
|
---|
| 17 | */
|
---|
| 18 |
|
---|
[757] | 19 | int NToolsInitiator::FgInit = 0;
|
---|
| 20 |
|
---|
[926] | 21 | /*!
|
---|
| 22 | \class SOPHYA::NToolsInitiator
|
---|
| 23 | \ingroup NTools
|
---|
[2808] | 24 | \brief NTools module initializer.
|
---|
| 25 |
|
---|
| 26 | This module contains various tools for Sophya, in particular numerical algorithms
|
---|
| 27 | such as :
|
---|
| 28 | - Non linear fitting (parameter determination) : GeneralFit , MinZSimplex
|
---|
| 29 | - FFT (FFTServerInterface, FFTPackServer)
|
---|
| 30 | - Spline interpolation
|
---|
| 31 | - Numerical integration and differential equations
|
---|
| 32 | - Date/time manipulation and some usual astronomical quantities (datime.c .h)
|
---|
[926] | 33 | */
|
---|
[757] | 34 | NToolsInitiator::NToolsInitiator()
|
---|
| 35 | : TArrayInitiator()
|
---|
| 36 | {
|
---|
| 37 | FgInit++;
|
---|
| 38 | if (FgInit > 1) return;
|
---|
| 39 |
|
---|
[1159] | 40 | // Enregistrement des classes PPersist du modules NTools
|
---|
[757] | 41 |
|
---|
[1159] | 42 | // Objets Poly et Poly2 (pas encore a la norme Sophya::PPersist)
|
---|
[757] | 43 | PPRegister(ObjFileIO<Poly>);
|
---|
| 44 | PPRegister(ObjFileIO<Poly2>);
|
---|
| 45 |
|
---|
[1159] | 46 | // Classe GeneralFitData et son PPersist handler
|
---|
[757] | 47 | PPRegister(ObjFileIO<GeneralFitData>);
|
---|
[1069] | 48 | DObjRegister(ObjFileIO<GeneralFitData>, GeneralFitData);
|
---|
[757] | 49 |
|
---|
[1159] | 50 | // Classes Image<T> et leurs PPersist handler
|
---|
| 51 | PPRegister(FIO_Image<uint_2>);
|
---|
| 52 | DObjRegister(FIO_Image<uint_2>, Image<uint_2>);
|
---|
| 53 | PPRegister(FIO_Image<int_4>);
|
---|
| 54 | DObjRegister(FIO_Image<int_4>, Image<int_4>);
|
---|
| 55 | PPRegister(FIO_Image<int_8>);
|
---|
| 56 | DObjRegister(FIO_Image<int_8>, Image<int_8>);
|
---|
| 57 | PPRegister(FIO_Image<r_4>);
|
---|
| 58 | DObjRegister(FIO_Image<r_4>, Image<r_4>);
|
---|
| 59 | PPRegister(FIO_Image<r_8>);
|
---|
| 60 | DObjRegister(FIO_Image<r_8>, Image<r_8>);
|
---|
[757] | 61 |
|
---|
| 62 |
|
---|
| 63 | // TSidSetupLaSilla(); Old-Eros
|
---|
| 64 |
|
---|
| 65 | gTimeZone = new TimeZone;
|
---|
| 66 |
|
---|
| 67 | ptabFExp = new TabFExp;
|
---|
| 68 |
|
---|
| 69 | }
|
---|
| 70 |
|
---|
| 71 | NToolsInitiator::~NToolsInitiator()
|
---|
| 72 | {
|
---|
| 73 | FgInit--;
|
---|
| 74 | }
|
---|
| 75 |
|
---|
| 76 |
|
---|
| 77 | // On met un objet initiator en statique, pour les loaders qui savent
|
---|
| 78 | // appeler le constructeur des objets statiques Reza 08/98
|
---|
[1783] | 79 | #ifndef Darwin
|
---|
[757] | 80 | static NToolsInitiator ntoolsinit;
|
---|
[1783] | 81 | #endif
|
---|
[757] | 82 |
|
---|