0024057: Eliminate compiler warning C4100 in MSVC++ with warning level 4
[occt.git] / src / IGESDraw / IGESDraw_Protocol.cxx
CommitLineData
b311480e 1// Copyright (c) 1999-2012 OPEN CASCADE SAS
2//
3// The content of this file is subject to the Open CASCADE Technology Public
4// License Version 6.5 (the "License"). You may not use the content of this file
5// except in compliance with the License. Please obtain a copy of the License
6// at http://www.opencascade.org and read it completely before using this file.
7//
8// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
9// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
10//
11// The Original Code and all software distributed under the License is
12// distributed on an "AS IS" basis, without warranty of any kind, and the
13// Initial Developer hereby disclaims all such warranties, including without
14// limitation, any warranties of merchantability, fitness for a particular
15// purpose or non-infringement. Please see the License for the specific terms
16// and conditions governing the rights and limitations under the License.
17
7fd59977 18#include <IGESDraw_Protocol.ixx>
19
20#include <IGESDraw_CircArraySubfigure.hxx>
21#include <IGESDraw_ConnectPoint.hxx>
22#include <IGESDraw_Drawing.hxx>
23#include <IGESDraw_DrawingWithRotation.hxx>
24#include <IGESDraw_Protocol.hxx>
25#include <IGESDraw_LabelDisplay.hxx>
26#include <IGESDraw_NetworkSubfigure.hxx>
27#include <IGESDraw_NetworkSubfigureDef.hxx>
28#include <IGESDraw_PerspectiveView.hxx>
29#include <IGESDraw_Planar.hxx>
30#include <IGESDraw_RectArraySubfigure.hxx>
31#include <IGESDraw_SegmentedViewsVisible.hxx>
32#include <IGESDraw_View.hxx>
33#include <IGESDraw_ViewsVisible.hxx>
34#include <IGESDraw_ViewsVisibleWithAttr.hxx>
35
36#include <IGESDimen.hxx>
37#include <IGESDimen_Protocol.hxx>
38
39static int deja = 0;
40static Handle(Standard_Type) atype01,atype02,atype03,atype04,atype05,atype06,
41 atype07,atype08,atype09,atype10,atype11,atype12,atype13,atype14;
42
43 IGESDraw_Protocol::IGESDraw_Protocol ()
44{
45 if (deja) return; deja = 1;
46 atype01 = STANDARD_TYPE(IGESDraw_CircArraySubfigure);
47 atype02 = STANDARD_TYPE(IGESDraw_ConnectPoint);
48 atype03 = STANDARD_TYPE(IGESDraw_Drawing);
49 atype04 = STANDARD_TYPE(IGESDraw_DrawingWithRotation);
50 atype05 = STANDARD_TYPE(IGESDraw_LabelDisplay);
51 atype06 = STANDARD_TYPE(IGESDraw_NetworkSubfigure);
52 atype07 = STANDARD_TYPE(IGESDraw_NetworkSubfigureDef);
53 atype08 = STANDARD_TYPE(IGESDraw_PerspectiveView);
54 atype09 = STANDARD_TYPE(IGESDraw_Planar);
55 atype10 = STANDARD_TYPE(IGESDraw_RectArraySubfigure);
56 atype11 = STANDARD_TYPE(IGESDraw_SegmentedViewsVisible);
57 atype12 = STANDARD_TYPE(IGESDraw_View);
58 atype13 = STANDARD_TYPE(IGESDraw_ViewsVisible);
59 atype14 = STANDARD_TYPE(IGESDraw_ViewsVisibleWithAttr);
60}
61
62 Standard_Integer IGESDraw_Protocol::NbResources () const
63 { return 1; }
64
65 Handle(Interface_Protocol) IGESDraw_Protocol::Resource
35e08fe8 66 (const Standard_Integer /*num*/) const
7fd59977 67{
68 Handle(Interface_Protocol) res = IGESDimen::Protocol();;
69 return res;
70}
71
72 Standard_Integer IGESDraw_Protocol::TypeNumber
73 (const Handle(Standard_Type)& atype) const
74{
75 if (atype == atype01) return 1;
76 else if (atype == atype02) return 2;
77 else if (atype == atype03) return 3;
78 else if (atype == atype04) return 4;
79 else if (atype == atype05) return 5;
80 else if (atype == atype06) return 6;
81 else if (atype == atype07) return 7;
82 else if (atype == atype08) return 8;
83 else if (atype == atype09) return 9;
84 else if (atype == atype10) return 10;
85 else if (atype == atype11) return 11;
86 else if (atype == atype12) return 12;
87 else if (atype == atype13) return 13;
88 else if (atype == atype14) return 14;
89 return 0;
90}