source: Sophya/trunk/Poubelle/DPC:FitsIOServer/NTools/outilsinit.cc@ 658

Last change on this file since 658 was 658, checked in by ansari, 26 years ago

no message

File size: 2.2 KB
Line 
1// Classe d'initialisation du module Outils++
2#include <unistd.h>
3
4#include "outilsinit.h"
5
6#include "matrix.h"
7#include "cvector.h"
8#include "poly.h"
9#include "dvlist.h"
10#include "histos.h"
11#include "histos2.h"
12#include "hisprof.h"
13#include "ntuple.h"
14#include "generaldata.h"
15#include "tmatrix.h"
16#include "tvector.h"
17
18#include "cimage.h"
19
20#include "tabmath.h"
21#include "dates.h"
22#include "datime.h"
23
24int PeidaOutilsInitiator::FgInit = 0;
25
26PeidaOutilsInitiator::PeidaOutilsInitiator()
27 : PeidaInitiator()
28{
29 FgInit++;
30 if (FgInit > 1) return;
31
32// Enregistrement des classes PPersist du modules Outils++
33
34 PPRegister(OMatrix);
35 PPRegister(OVector);
36 PPRegister(ObjFileIO<Poly>);
37 PPRegister(ObjFileIO<Poly2>);
38 PPRegister(ObjFileIO<DVList>);
39 PPRegister(ObjFileIO<Histo>);
40 PPRegister(ObjFileIO<Histo2D>);
41 PPRegister(ObjFileIO<HProf>);
42
43 PPRegister(ObjFileIO<NTuple>);
44 PPRegister(ObjFileIO<GeneralFitData>);
45
46 PPRegister(FIO_TMatrix<uint_1>);
47 PPRegister(FIO_TMatrix<uint_2>);
48 PPRegister(FIO_TMatrix<int_2>);
49 PPRegister(FIO_TMatrix<int_4>);
50 PPRegister(FIO_TMatrix<int_8>);
51 PPRegister(FIO_TMatrix<uint_8>);
52 PPRegister(FIO_TMatrix<r_4>);
53 PPRegister(FIO_TMatrix<r_8>);
54 PPRegister(FIO_TMatrix< complex<float> >);
55 PPRegister(FIO_TMatrix< complex<double> >);
56
57 PPRegister(FIO_TVector<uint_1>);
58 PPRegister(FIO_TVector<uint_2>);
59 PPRegister(FIO_TVector<int_2>);
60 PPRegister(FIO_TVector<int_4>);
61 PPRegister(FIO_TVector<int_8>);
62 PPRegister(FIO_TVector<uint_8>);
63 PPRegister(FIO_TVector<r_4>);
64 PPRegister(FIO_TVector<r_8>);
65 PPRegister(FIO_TVector< complex<float> >);
66 PPRegister(FIO_TVector< complex<double> >);
67
68
69 PPRegister(RzImage);
70 PPRegister(ImageU2);
71 PPRegister(ImageI2);
72 PPRegister(ImageI4);
73 PPRegister(ImageR4);
74
75 //PPersistMgr::RegisterClass(OMatrix::classId, OMatrix::Create);
76
77 int pnice;
78 char* snice = getenv("PEIDANICE");
79 if (!snice) pnice=8;
80 else pnice = atoi(snice);
81 nice(pnice);
82
83// TSidSetupLaSilla(); Old-Eros
84
85 gTimeZone = new TimeZone;
86
87 ptabFExp = new TabFExp;
88
89}
90
91PeidaOutilsInitiator::~PeidaOutilsInitiator()
92{
93 FgInit--;
94}
95
96
97// On met un objet initiator en statique, pour les loaders qui savent
98// appeler le constructeur des objets statiques Reza 08/98
99static PeidaOutilsInitiator poutilsinit;
100
Note: See TracBrowser for help on using the repository browser.