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