0031668: Visualization - WebGL sample doesn't work on Emscripten 1.39
[occt.git] / src / BinMDataStd / BinMDataStd.cxx
1 // Created on: 2002-10-30
2 // Created by: Michael SAZONOV
3 // Copyright (c) 2002-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16
17 #include <BinMDataStd.hxx>
18 #include <BinMDataStd_AsciiStringDriver.hxx>
19 #include <BinMDataStd_BooleanArrayDriver.hxx>
20 #include <BinMDataStd_BooleanListDriver.hxx>
21 #include <BinMDataStd_ByteArrayDriver.hxx>
22 #include <BinMDataStd_CommentDriver.hxx>
23 #include <BinMDataStd_DirectoryDriver.hxx>
24 #include <BinMDataStd_ExpressionDriver.hxx>
25 #include <BinMDataStd_ExtStringArrayDriver.hxx>
26 #include <BinMDataStd_ExtStringListDriver.hxx>
27 #include <BinMDataStd_IntegerArrayDriver.hxx>
28 #include <BinMDataStd_IntegerDriver.hxx>
29 #include <BinMDataStd_IntegerListDriver.hxx>
30 #include <BinMDataStd_IntPackedMapDriver.hxx>
31 #include <BinMDataStd_NamedDataDriver.hxx>
32 #include <BinMDataStd_NameDriver.hxx>
33 #include <BinMDataStd_NoteBookDriver.hxx>
34 #include <BinMDataStd_RealArrayDriver.hxx>
35 #include <BinMDataStd_RealDriver.hxx>
36 #include <BinMDataStd_RealListDriver.hxx>
37 #include <BinMDataStd_ReferenceArrayDriver.hxx>
38 #include <BinMDataStd_ReferenceListDriver.hxx>
39 #include <BinMDataStd_RelationDriver.hxx>
40 #include <BinMDataStd_TickDriver.hxx>
41 #include <BinMDataStd_TreeNodeDriver.hxx>
42 #include <BinMDataStd_UAttributeDriver.hxx>
43 #include <BinMDataStd_VariableDriver.hxx>
44 #include <BinMDF_ADriverTable.hxx>
45 #include <Message_Messenger.hxx>
46
47 //=======================================================================
48 //function : AddDrivers
49 //purpose  : 
50 //=======================================================================
51
52 void BinMDataStd::AddDrivers (const Handle(BinMDF_ADriverTable)& theDriverTable,
53                               const Handle(Message_Messenger)&   theMsgDriver)
54 {
55   theDriverTable->AddDriver (new BinMDataStd_CommentDriver     (theMsgDriver) );
56   theDriverTable->AddDriver (new BinMDataStd_ExpressionDriver  (theMsgDriver) );
57   theDriverTable->AddDriver (new BinMDataStd_IntegerArrayDriver(theMsgDriver) );
58   theDriverTable->AddDriver (new BinMDataStd_IntegerDriver     (theMsgDriver) );
59   theDriverTable->AddDriver (new BinMDataStd_NameDriver        (theMsgDriver) );
60   theDriverTable->AddDriver (new BinMDataStd_RealArrayDriver   (theMsgDriver) );
61   theDriverTable->AddDriver (new BinMDataStd_RealDriver        (theMsgDriver) );
62   theDriverTable->AddDriver (new BinMDataStd_RelationDriver    (theMsgDriver) );
63   theDriverTable->AddDriver (new BinMDataStd_TreeNodeDriver    (theMsgDriver) );
64   theDriverTable->AddDriver (new BinMDataStd_UAttributeDriver  (theMsgDriver) );
65   theDriverTable->AddDriver (new BinMDataStd_VariableDriver    (theMsgDriver) );
66   theDriverTable->AddDriver (new BinMDataStd_DirectoryDriver   (theMsgDriver) );
67   theDriverTable->AddDriver (new BinMDataStd_NoteBookDriver    (theMsgDriver) );
68   theDriverTable->AddDriver (new BinMDataStd_ExtStringArrayDriver(theMsgDriver) );
69
70   theDriverTable->AddDriver (new BinMDataStd_TickDriver          (theMsgDriver) );
71   theDriverTable->AddDriver (new BinMDataStd_IntegerListDriver   (theMsgDriver) );
72   theDriverTable->AddDriver (new BinMDataStd_RealListDriver      (theMsgDriver) );
73   theDriverTable->AddDriver (new BinMDataStd_ExtStringListDriver (theMsgDriver) );
74   theDriverTable->AddDriver (new BinMDataStd_BooleanListDriver   (theMsgDriver) );
75   theDriverTable->AddDriver (new BinMDataStd_ReferenceListDriver (theMsgDriver) );
76   theDriverTable->AddDriver (new BinMDataStd_BooleanArrayDriver  (theMsgDriver) );
77   theDriverTable->AddDriver (new BinMDataStd_ReferenceArrayDriver(theMsgDriver) );
78   theDriverTable->AddDriver (new BinMDataStd_ByteArrayDriver     (theMsgDriver) );
79   theDriverTable->AddDriver (new BinMDataStd_NamedDataDriver     (theMsgDriver) );
80   theDriverTable->AddDriver (new BinMDataStd_AsciiStringDriver   (theMsgDriver) );
81   theDriverTable->AddDriver (new BinMDataStd_IntPackedMapDriver  (theMsgDriver) );
82 }