7fd59977 |
1 | #include <IGESAppli_Protocol.ixx> |
2 | |
3 | #include <IGESAppli_Node.hxx> |
4 | #include <IGESAppli_FiniteElement.hxx> |
5 | #include <IGESAppli_NodalDisplAndRot.hxx> |
6 | #include <IGESAppli_NodalResults.hxx> |
7 | #include <IGESAppli_ElementResults.hxx> |
8 | #include <IGESAppli_Flow.hxx> |
9 | #include <IGESAppli_PipingFlow.hxx> |
10 | #include <IGESAppli_RegionRestriction.hxx> |
11 | #include <IGESAppli_LevelFunction.hxx> |
12 | #include <IGESAppli_LineWidening.hxx> |
13 | #include <IGESAppli_DrilledHole.hxx> |
14 | #include <IGESAppli_ReferenceDesignator.hxx> |
15 | #include <IGESAppli_PinNumber.hxx> |
16 | #include <IGESAppli_PartNumber.hxx> |
17 | #include <IGESAppli_FlowLineSpec.hxx> |
18 | #include <IGESAppli_LevelToPWBLayerMap.hxx> |
19 | #include <IGESAppli_PWBArtworkStackup.hxx> |
20 | #include <IGESAppli_PWBDrilledHole.hxx> |
21 | #include <IGESAppli_NodalConstraint.hxx> |
22 | |
23 | #include <IGESDefs.hxx> |
24 | #include <IGESDraw.hxx> |
25 | #include <IGESDefs_Protocol.hxx> |
26 | #include <IGESDraw_Protocol.hxx> |
27 | |
28 | |
29 | static int deja = 0; |
30 | static Handle(Standard_Type) atype01,atype02,atype03,atype04,atype05,atype06, |
31 | atype07,atype08,atype09,atype10,atype11,atype12,atype13,atype14,atype15, |
32 | atype16,atype17,atype18,atype19; |
33 | |
34 | IGESAppli_Protocol::IGESAppli_Protocol () |
35 | { |
36 | if (deja) return; deja = 1; |
37 | atype01 = STANDARD_TYPE(IGESAppli_DrilledHole); |
38 | atype02 = STANDARD_TYPE(IGESAppli_ElementResults); |
39 | atype03 = STANDARD_TYPE(IGESAppli_FiniteElement); |
40 | atype04 = STANDARD_TYPE(IGESAppli_Flow); |
41 | atype05 = STANDARD_TYPE(IGESAppli_FlowLineSpec); |
42 | atype06 = STANDARD_TYPE(IGESAppli_LevelFunction); |
43 | atype07 = STANDARD_TYPE(IGESAppli_LevelToPWBLayerMap); |
44 | atype08 = STANDARD_TYPE(IGESAppli_LineWidening); |
45 | atype09 = STANDARD_TYPE(IGESAppli_NodalConstraint); |
46 | atype10 = STANDARD_TYPE(IGESAppli_NodalDisplAndRot); |
47 | atype11 = STANDARD_TYPE(IGESAppli_NodalResults); |
48 | atype12 = STANDARD_TYPE(IGESAppli_Node); |
49 | atype13 = STANDARD_TYPE(IGESAppli_PWBArtworkStackup); |
50 | atype14 = STANDARD_TYPE(IGESAppli_PWBDrilledHole); |
51 | atype15 = STANDARD_TYPE(IGESAppli_PartNumber); |
52 | atype16 = STANDARD_TYPE(IGESAppli_PinNumber); |
53 | atype17 = STANDARD_TYPE(IGESAppli_PipingFlow); |
54 | atype18 = STANDARD_TYPE(IGESAppli_ReferenceDesignator); |
55 | atype19 = STANDARD_TYPE(IGESAppli_RegionRestriction); |
56 | } |
57 | |
58 | Standard_Integer IGESAppli_Protocol::NbResources () const |
59 | { return 2; } |
60 | |
61 | Handle(Interface_Protocol) IGESAppli_Protocol::Resource |
62 | (const Standard_Integer num) const |
63 | { |
64 | Handle(Interface_Protocol) res; |
65 | if (num == 1) res = IGESDefs::Protocol(); |
66 | if (num == 2) res = IGESDraw::Protocol(); |
67 | return res; |
68 | } |
69 | |
70 | Standard_Integer IGESAppli_Protocol::TypeNumber |
71 | (const Handle(Standard_Type)& atype) const |
72 | { |
73 | if (atype == atype01) return 1; |
74 | else if (atype == atype02) return 2; |
75 | else if (atype == atype03) return 3; |
76 | else if (atype == atype04) return 4; |
77 | else if (atype == atype05) return 5; |
78 | else if (atype == atype06) return 6; |
79 | else if (atype == atype07) return 7; |
80 | else if (atype == atype08) return 8; |
81 | else if (atype == atype09) return 9; |
82 | else if (atype == atype10) return 10; |
83 | else if (atype == atype11) return 11; |
84 | else if (atype == atype12) return 12; |
85 | else if (atype == atype13) return 13; |
86 | else if (atype == atype14) return 14; |
87 | else if (atype == atype15) return 15; |
88 | else if (atype == atype16) return 16; |
89 | else if (atype == atype17) return 17; |
90 | else if (atype == atype18) return 18; |
91 | else if (atype == atype19) return 19; |
92 | return 0; |
93 | } |