Warnings on vc14 were eliminated
[occt.git] / src / IGESDefs / IGESDefs_SpecificModule.cxx
CommitLineData
973c2be1 1// Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 2//
973c2be1 3// This file is part of Open CASCADE Technology software library.
b311480e 4//
d5f74e42 5// This library is free software; you can redistribute it and/or modify it under
6// the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 7// by the Free Software Foundation, with special exception defined in the file
8// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9// distribution for complete text of the license and disclaimer of any warranty.
b311480e 10//
973c2be1 11// Alternatively, this file may be used under the terms of Open CASCADE
12// commercial license or contractual agreement.
b311480e 13
7fd59977 14
42cf5bc1 15#include <IGESData_IGESDumper.hxx>
16#include <IGESData_IGESEntity.hxx>
7fd59977 17#include <IGESDefs_AssociativityDef.hxx>
18#include <IGESDefs_AttributeDef.hxx>
19#include <IGESDefs_AttributeTable.hxx>
20#include <IGESDefs_GenericData.hxx>
21#include <IGESDefs_MacroDef.hxx>
42cf5bc1 22#include <IGESDefs_SpecificModule.hxx>
7fd59977 23#include <IGESDefs_TabularData.hxx>
7fd59977 24#include <IGESDefs_ToolAssociativityDef.hxx>
25#include <IGESDefs_ToolAttributeDef.hxx>
26#include <IGESDefs_ToolAttributeTable.hxx>
27#include <IGESDefs_ToolGenericData.hxx>
28#include <IGESDefs_ToolMacroDef.hxx>
29#include <IGESDefs_ToolTabularData.hxx>
30#include <IGESDefs_ToolUnitsData.hxx>
42cf5bc1 31#include <IGESDefs_UnitsData.hxx>
32#include <Interface_Macros.hxx>
33#include <Message_Messenger.hxx>
34#include <Standard_Type.hxx>
7fd59977 35
92efcf78 36IMPLEMENT_STANDARD_RTTIEXT(IGESDefs_SpecificModule,IGESData_SpecificModule)
37
7fd59977 38// Each Module is attached to a Protocol : it must interprete Case Numbers
39// (arguments <CN> of various methods) in accordance to values returned by
40// the method TypeNumber from this Protocol
b311480e 41IGESDefs_SpecificModule::IGESDefs_SpecificModule() { }
7fd59977 42
43
44 void IGESDefs_SpecificModule::OwnDump
45 (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
46 const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S,
47 const Standard_Integer own) const
48{
49 switch (CN) {
50 case 1 : {
51 DeclareAndCast(IGESDefs_AssociativityDef,anent,ent);
52 if (anent.IsNull()) return;
53 IGESDefs_ToolAssociativityDef tool;
54 tool.OwnDump(anent,dumper,S,own);
55 }
56 break;
57 case 2 : {
58 DeclareAndCast(IGESDefs_AttributeDef,anent,ent);
59 if (anent.IsNull()) return;
60 IGESDefs_ToolAttributeDef tool;
61 tool.OwnDump(anent,dumper,S,own);
62 }
63 break;
64 case 3 : {
65 DeclareAndCast(IGESDefs_AttributeTable,anent,ent);
66 if (anent.IsNull()) return;
67 IGESDefs_ToolAttributeTable tool;
68 tool.OwnDump(anent,dumper,S,own);
69 }
70 break;
71 case 4 : {
72 DeclareAndCast(IGESDefs_GenericData,anent,ent);
73 if (anent.IsNull()) return;
74 IGESDefs_ToolGenericData tool;
75 tool.OwnDump(anent,dumper,S,own);
76 }
77 break;
78 case 5 : {
79 DeclareAndCast(IGESDefs_MacroDef,anent,ent);
80 if (anent.IsNull()) return;
81 IGESDefs_ToolMacroDef tool;
82 tool.OwnDump(anent,dumper,S,own);
83 }
84 break;
85 case 6 : {
86 DeclareAndCast(IGESDefs_TabularData,anent,ent);
87 if (anent.IsNull()) return;
88 IGESDefs_ToolTabularData tool;
89 tool.OwnDump(anent,dumper,S,own);
90 }
91 break;
92 case 7 : {
93 DeclareAndCast(IGESDefs_UnitsData,anent,ent);
94 if (anent.IsNull()) return;
95 IGESDefs_ToolUnitsData tool;
96 tool.OwnDump(anent,dumper,S,own);
97 }
98 break;
99 default : break;
100 }
101}