7fd59977 |
1 | // File: MXCAFDoc.cxx |
2 | // Created: Wed Aug 16 10:03:44 2000 |
3 | // Author: data exchange team |
4 | // <det@strelox.nnov.matra-dtv.fr> |
5 | |
6 | |
7 | #include <MXCAFDoc.ixx> |
8 | #include <MXCAFDoc_ColorToolRetrievalDriver.hxx> |
9 | #include <MXCAFDoc_ColorToolStorageDriver.hxx> |
10 | #include <MXCAFDoc_DocumentToolRetrievalDriver.hxx> |
11 | #include <MXCAFDoc_DocumentToolStorageDriver.hxx> |
12 | #include <MXCAFDoc_LocationRetrievalDriver.hxx> |
13 | #include <MXCAFDoc_LocationStorageDriver.hxx> |
14 | #include <MXCAFDoc_ColorRetrievalDriver.hxx> |
15 | #include <MXCAFDoc_ColorStorageDriver.hxx> |
16 | #include <MXCAFDoc_ShapeToolRetrievalDriver.hxx> |
17 | #include <MXCAFDoc_ShapeToolStorageDriver.hxx> |
18 | #include <MXCAFDoc_VolumeStorageDriver.hxx> |
19 | #include <MXCAFDoc_AreaStorageDriver.hxx> |
20 | #include <MXCAFDoc_CentroidStorageDriver.hxx> |
21 | #include <MXCAFDoc_VolumeRetrievalDriver.hxx> |
22 | #include <MXCAFDoc_AreaRetrievalDriver.hxx> |
23 | #include <MXCAFDoc_CentroidRetrievalDriver.hxx> |
24 | #include <MXCAFDoc_GraphNodeStorageDriver.hxx> |
25 | #include <MXCAFDoc_GraphNodeRetrievalDriver.hxx> |
26 | #include <MXCAFDoc_LayerToolRetrievalDriver.hxx> |
27 | #include <MXCAFDoc_LayerToolStorageDriver.hxx> |
28 | #include <MXCAFDoc_DatumRetrievalDriver.hxx> |
29 | #include <MXCAFDoc_DatumStorageDriver.hxx> |
30 | #include <MXCAFDoc_DimTolRetrievalDriver.hxx> |
31 | #include <MXCAFDoc_DimTolStorageDriver.hxx> |
32 | #include <MXCAFDoc_DimTolToolRetrievalDriver.hxx> |
33 | #include <MXCAFDoc_DimTolToolStorageDriver.hxx> |
34 | #include <MXCAFDoc_MaterialRetrievalDriver.hxx> |
35 | #include <MXCAFDoc_MaterialStorageDriver.hxx> |
36 | #include <MXCAFDoc_MaterialToolRetrievalDriver.hxx> |
37 | #include <MXCAFDoc_MaterialToolStorageDriver.hxx> |
38 | |
39 | |
40 | //======================================================================= |
41 | //function : AddStorageDriver |
42 | //purpose : |
43 | //======================================================================= |
44 | |
45 | void MXCAFDoc::AddStorageDrivers |
46 | (const Handle(MDF_ASDriverHSequence)& aDriverSeq, |
47 | const Handle(CDM_MessageDriver)& theMsgDriver) |
48 | { |
49 | aDriverSeq->Append(new MXCAFDoc_LocationStorageDriver (theMsgDriver)); |
50 | aDriverSeq->Append(new MXCAFDoc_ColorStorageDriver (theMsgDriver)); |
51 | aDriverSeq->Append(new MXCAFDoc_VolumeStorageDriver (theMsgDriver)); |
52 | aDriverSeq->Append(new MXCAFDoc_AreaStorageDriver (theMsgDriver)); |
53 | aDriverSeq->Append(new MXCAFDoc_CentroidStorageDriver (theMsgDriver)); |
54 | aDriverSeq->Append(new MXCAFDoc_ColorToolStorageDriver (theMsgDriver)); |
55 | aDriverSeq->Append(new MXCAFDoc_DocumentToolStorageDriver(theMsgDriver)); |
56 | aDriverSeq->Append(new MXCAFDoc_ShapeToolStorageDriver (theMsgDriver)); |
57 | |
58 | aDriverSeq->Append(new MXCAFDoc_LayerToolStorageDriver (theMsgDriver)); |
59 | aDriverSeq->Append(new MXCAFDoc_GraphNodeStorageDriver (theMsgDriver)); |
60 | aDriverSeq->Append(new MXCAFDoc_DatumStorageDriver (theMsgDriver)); |
61 | aDriverSeq->Append(new MXCAFDoc_DimTolStorageDriver (theMsgDriver)); |
62 | aDriverSeq->Append(new MXCAFDoc_DimTolToolStorageDriver (theMsgDriver)); |
63 | aDriverSeq->Append(new MXCAFDoc_MaterialStorageDriver (theMsgDriver)); |
64 | aDriverSeq->Append(new MXCAFDoc_MaterialToolStorageDriver(theMsgDriver)); |
65 | } |
66 | |
67 | //======================================================================= |
68 | //function : AddRetrievalDriver |
69 | //purpose : |
70 | //======================================================================= |
71 | |
72 | void MXCAFDoc::AddRetrievalDrivers |
73 | (const Handle(MDF_ARDriverHSequence)& aDriverSeq, |
74 | const Handle(CDM_MessageDriver)& theMsgDriver) |
75 | { |
76 | aDriverSeq->Append(new MXCAFDoc_LocationRetrievalDriver (theMsgDriver)); |
77 | aDriverSeq->Append(new MXCAFDoc_ColorRetrievalDriver (theMsgDriver)); |
78 | aDriverSeq->Append(new MXCAFDoc_VolumeRetrievalDriver (theMsgDriver)); |
79 | aDriverSeq->Append(new MXCAFDoc_AreaRetrievalDriver (theMsgDriver)); |
80 | aDriverSeq->Append(new MXCAFDoc_CentroidRetrievalDriver (theMsgDriver)); |
81 | aDriverSeq->Append(new MXCAFDoc_ColorToolRetrievalDriver (theMsgDriver)); |
82 | aDriverSeq->Append(new MXCAFDoc_DocumentToolRetrievalDriver(theMsgDriver)); |
83 | aDriverSeq->Append(new MXCAFDoc_ShapeToolRetrievalDriver (theMsgDriver)); |
84 | |
85 | aDriverSeq->Append(new MXCAFDoc_LayerToolRetrievalDriver (theMsgDriver)); |
86 | aDriverSeq->Append(new MXCAFDoc_GraphNodeRetrievalDriver (theMsgDriver)); |
87 | aDriverSeq->Append(new MXCAFDoc_DatumRetrievalDriver (theMsgDriver)); |
88 | aDriverSeq->Append(new MXCAFDoc_DimTolRetrievalDriver (theMsgDriver)); |
89 | aDriverSeq->Append(new MXCAFDoc_DimTolToolRetrievalDriver (theMsgDriver)); |
90 | aDriverSeq->Append(new MXCAFDoc_MaterialRetrievalDriver (theMsgDriver)); |
91 | aDriverSeq->Append(new MXCAFDoc_MaterialToolRetrievalDriver(theMsgDriver)); |
92 | } |