1 | // Classe d'initialisation du module TArray (template Arrays)
|
---|
2 | #include "sopnamsp.h"
|
---|
3 | #include "machdefs.h"
|
---|
4 | #include "tarrinit.h"
|
---|
5 |
|
---|
6 | #include "fioarr.h"
|
---|
7 |
|
---|
8 | /*!
|
---|
9 | \defgroup TArray TArray module
|
---|
10 | This module contains template arrays, matrices and vectors.
|
---|
11 | */
|
---|
12 |
|
---|
13 | /*!
|
---|
14 | \class SOPHYA::TArrayInitiator
|
---|
15 | \ingroup TArray
|
---|
16 | Array Matrices and Vector initiator
|
---|
17 | */
|
---|
18 |
|
---|
19 | int TArrayInitiator::FgInit = 0;
|
---|
20 |
|
---|
21 | // Module version number - 2.0 , Jul 2006
|
---|
22 | // V= 2.04 , Jan/Fev 2007: Ajout TArray::ZeroSize() , RenewObjId() et methodes de cast (arrctcast.h)
|
---|
23 | #define MOD_VERS 2.04
|
---|
24 |
|
---|
25 | TArrayInitiator::TArrayInitiator()
|
---|
26 | : SophyaInitiator()
|
---|
27 | {
|
---|
28 | FgInit++;
|
---|
29 | if (FgInit > 1) return;
|
---|
30 |
|
---|
31 | // Enregistrement des classes PPersist du modules TArray
|
---|
32 |
|
---|
33 |
|
---|
34 | // PPRegister(FIO_TArray<uint_1>);
|
---|
35 | // DObjRegister(FIO_TArray<uint_1>, TArray<uint_1>);
|
---|
36 | PPRegister(FIO_TArray<uint_2>);
|
---|
37 | DObjRegister(FIO_TArray<uint_2>, TArray<uint_2>);
|
---|
38 | DObjRegister(FIO_TArray<uint_2>, TMatrix<uint_2>);
|
---|
39 | DObjRegister(FIO_TArray<uint_2>, TVector<uint_2>);
|
---|
40 |
|
---|
41 | PPRegister(FIO_TArray<int_2>);
|
---|
42 | DObjRegister(FIO_TArray<int_2>, TArray<int_2>);
|
---|
43 | DObjRegister(FIO_TArray<int_2>, TMatrix<int_2>);
|
---|
44 | DObjRegister(FIO_TArray<int_2>, TVector<int_2>);
|
---|
45 |
|
---|
46 | PPRegister(FIO_TArray<int_4>);
|
---|
47 | DObjRegister(FIO_TArray<int_4>, TArray<int_4>);
|
---|
48 | DObjRegister(FIO_TArray<int_4>, TMatrix<int_4>);
|
---|
49 | DObjRegister(FIO_TArray<int_4>, TVector<int_4>);
|
---|
50 |
|
---|
51 | PPRegister(FIO_TArray<int_8>);
|
---|
52 | DObjRegister(FIO_TArray<int_8>, TArray<int_8>);
|
---|
53 | DObjRegister(FIO_TArray<int_8>, TMatrix<int_8>);
|
---|
54 | DObjRegister(FIO_TArray<int_8>, TVector<int_8>);
|
---|
55 |
|
---|
56 | PPRegister(FIO_TArray<uint_4>);
|
---|
57 | DObjRegister(FIO_TArray<uint_4>, TArray<uint_4>);
|
---|
58 | DObjRegister(FIO_TArray<uint_4>, TMatrix<uint_4>);
|
---|
59 | DObjRegister(FIO_TArray<uint_4>, TVector<uint_4>);
|
---|
60 |
|
---|
61 | PPRegister(FIO_TArray<uint_8>);
|
---|
62 | DObjRegister(FIO_TArray<uint_8>, TArray<uint_8>);
|
---|
63 | DObjRegister(FIO_TArray<uint_8>, TMatrix<uint_8>);
|
---|
64 | DObjRegister(FIO_TArray<uint_8>, TVector<uint_8>);
|
---|
65 |
|
---|
66 | PPRegister(FIO_TArray<r_4>);
|
---|
67 | DObjRegister(FIO_TArray<r_4>, TArray<r_4>);
|
---|
68 | DObjRegister(FIO_TArray<r_4>, TMatrix<r_4>);
|
---|
69 | DObjRegister(FIO_TArray<r_4>, TVector<r_4>);
|
---|
70 |
|
---|
71 | PPRegister(FIO_TArray<r_8>);
|
---|
72 | DObjRegister(FIO_TArray<r_8>, TArray<r_8>);
|
---|
73 | DObjRegister(FIO_TArray<r_8>, TMatrix<r_8>);
|
---|
74 | DObjRegister(FIO_TArray<r_8>, TVector<r_8>);
|
---|
75 |
|
---|
76 | PPRegister(FIO_TArray< complex<r_4> >);
|
---|
77 | DObjRegister(FIO_TArray< complex<r_4> >, TArray< complex<r_4> >);
|
---|
78 | DObjRegister(FIO_TArray< complex<r_4> >, TMatrix< complex<r_4> >);
|
---|
79 | DObjRegister(FIO_TArray< complex<r_4> >, TVector< complex<r_4> >);
|
---|
80 |
|
---|
81 | PPRegister(FIO_TArray< complex<r_8> >);
|
---|
82 | DObjRegister(FIO_TArray< complex<r_8> >, TArray< complex<r_8> >);
|
---|
83 | DObjRegister(FIO_TArray< complex<r_8> >, TMatrix< complex<r_8> >);
|
---|
84 | DObjRegister(FIO_TArray< complex<r_8> >, TVector< complex<r_8> >);
|
---|
85 |
|
---|
86 | SophyaInitiator::RegisterModule("TArray", MOD_VERS); // Module name and version number registration
|
---|
87 | }
|
---|
88 |
|
---|
89 | TArrayInitiator::~TArrayInitiator()
|
---|
90 | {
|
---|
91 | FgInit--;
|
---|
92 | }
|
---|
93 |
|
---|
94 |
|
---|
95 | // On met un objet initiator en statique, pour les loaders qui savent
|
---|
96 | // appeler le constructeur des objets statiques Reza 08/98
|
---|
97 | static TArrayInitiator tarrayinit;
|
---|
98 |
|
---|