| 1 | // Classe d'initialisation du module NTools
|
|---|
| 2 |
|
|---|
| 3 | #include "machdefs.h"
|
|---|
| 4 | #include "ntoolsinit.h"
|
|---|
| 5 |
|
|---|
| 6 | #include "poly.h"
|
|---|
| 7 | #include "generaldata.h"
|
|---|
| 8 | #include "cimage.h"
|
|---|
| 9 |
|
|---|
| 10 | #include "tabmath.h"
|
|---|
| 11 | #include "dates.h"
|
|---|
| 12 | #include "datime.h"
|
|---|
| 13 |
|
|---|
| 14 | /*!
|
|---|
| 15 | \defgroup NTools NTools module
|
|---|
| 16 | This module contains various tools for Sophya.
|
|---|
| 17 | */
|
|---|
| 18 |
|
|---|
| 19 | int NToolsInitiator::FgInit = 0;
|
|---|
| 20 |
|
|---|
| 21 | /*!
|
|---|
| 22 | \class SOPHYA::NToolsInitiator
|
|---|
| 23 | \ingroup NTools
|
|---|
| 24 | Tools initiator
|
|---|
| 25 | */
|
|---|
| 26 | NToolsInitiator::NToolsInitiator()
|
|---|
| 27 | : TArrayInitiator()
|
|---|
| 28 | {
|
|---|
| 29 | FgInit++;
|
|---|
| 30 | if (FgInit > 1) return;
|
|---|
| 31 |
|
|---|
| 32 | // Enregistrement des classes PPersist du modules NTools
|
|---|
| 33 |
|
|---|
| 34 | // Objets Poly et Poly2 (pas encore a la norme Sophya::PPersist)
|
|---|
| 35 | PPRegister(ObjFileIO<Poly>);
|
|---|
| 36 | PPRegister(ObjFileIO<Poly2>);
|
|---|
| 37 |
|
|---|
| 38 | // Classe GeneralFitData et son PPersist handler
|
|---|
| 39 | PPRegister(ObjFileIO<GeneralFitData>);
|
|---|
| 40 | DObjRegister(ObjFileIO<GeneralFitData>, GeneralFitData);
|
|---|
| 41 |
|
|---|
| 42 | // Classes Image<T> et leurs PPersist handler
|
|---|
| 43 | PPRegister(FIO_Image<uint_2>);
|
|---|
| 44 | DObjRegister(FIO_Image<uint_2>, Image<uint_2>);
|
|---|
| 45 | PPRegister(FIO_Image<int_4>);
|
|---|
| 46 | DObjRegister(FIO_Image<int_4>, Image<int_4>);
|
|---|
| 47 | PPRegister(FIO_Image<int_8>);
|
|---|
| 48 | DObjRegister(FIO_Image<int_8>, Image<int_8>);
|
|---|
| 49 | PPRegister(FIO_Image<r_4>);
|
|---|
| 50 | DObjRegister(FIO_Image<r_4>, Image<r_4>);
|
|---|
| 51 | PPRegister(FIO_Image<r_8>);
|
|---|
| 52 | DObjRegister(FIO_Image<r_8>, Image<r_8>);
|
|---|
| 53 |
|
|---|
| 54 |
|
|---|
| 55 | // TSidSetupLaSilla(); Old-Eros
|
|---|
| 56 |
|
|---|
| 57 | gTimeZone = new TimeZone;
|
|---|
| 58 |
|
|---|
| 59 | ptabFExp = new TabFExp;
|
|---|
| 60 |
|
|---|
| 61 | }
|
|---|
| 62 |
|
|---|
| 63 | NToolsInitiator::~NToolsInitiator()
|
|---|
| 64 | {
|
|---|
| 65 | FgInit--;
|
|---|
| 66 | }
|
|---|
| 67 |
|
|---|
| 68 |
|
|---|
| 69 | // On met un objet initiator en statique, pour les loaders qui savent
|
|---|
| 70 | // appeler le constructeur des objets statiques Reza 08/98
|
|---|
| 71 | #ifndef Darwin
|
|---|
| 72 | static NToolsInitiator ntoolsinit;
|
|---|
| 73 | #endif
|
|---|
| 74 |
|
|---|