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