Salome HOME
Avoid linking to the native omniORB
[modules/geom.git] / src / GEOMAlgo / GEOMAlgo_PassKey.cdl
1 -- Copyright (C) 2005  OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
2 -- CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
3 -- 
4 -- This library is free software; you can redistribute it and/or
5 -- modify it under the terms of the GNU Lesser General Public
6 -- License as published by the Free Software Foundation; either 
7 -- version 2.1 of the License.
8 -- 
9 -- This library is distributed in the hope that it will be useful 
10 -- but WITHOUT ANY WARRANTY; without even the implied warranty of 
11 -- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
12 -- Lesser General Public License for more details.
13 --
14 -- You should have received a copy of the GNU Lesser General Public  
15 -- License along with this library; if not, write to the Free Software 
16 -- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
17 --
18 -- See http:--www.salome-platform.org/ or email : webmaster.salome@opencascade.com
19 -- 
20 -- File:        GEOMAlgo_PassKey.cdl
21 -- Created:     Mon Nov 20 12:16:13 2006
22 -- Author:      Peter KURNEV
23 --              <pkv@irinox>
24
25
26 class PassKey from GEOMAlgo 
27
28         ---Purpose: 
29
30 uses
31     Shape from TopoDS, 
32     IndexedMapOfInteger from TColStd, 
33     ListOfInteger from TColStd
34
35 --raises
36
37 is 
38     Create  
39         returns PassKey from GEOMAlgo; 
40     ---C++: alias "Standard_EXPORT virtual ~GEOMAlgo_PassKey();" 
41      
42     Create(Other:PassKey from GEOMAlgo) 
43         returns PassKey from GEOMAlgo;
44      
45     Assign(me:out;  
46             Other : PassKey from GEOMAlgo) 
47         returns PassKey from GEOMAlgo; 
48     ---C++: alias operator =
49     ---C++: return & 
50              
51     Clear(me:out);
52 --    
53     SetIds(me:out; 
54             aI1  :Integer from Standard); 
55              
56     SetIds(me:out; 
57             aI1 :Integer from Standard; 
58             aI2 :Integer from Standard);  
59              
60     SetIds(me:out; 
61             aI1 :Integer from Standard;    
62             aI2 :Integer from Standard;    
63             aI3 :Integer from Standard);  
64
65     SetIds(me:out; 
66             aI1 :Integer from Standard;    
67             aI2 :Integer from Standard;    
68             aI3 :Integer from Standard;    
69             aI4 :Integer from Standard); 
70      
71     SetIds(me:out;  
72             aLS  :ListOfInteger from TColStd);   
73
74     NbIds(me) 
75         returns Integer  from Standard; 
76      
77     IsEqual(me; 
78             aOther:PassKey from GEOMAlgo) 
79         returns Boolean from Standard;                       
80          
81     HashCode(me; 
82             Upper : Integer  from Standard)  
83         returns Integer from Standard;           
84      
85     Id(me; 
86             aIndex: Integer  from Standard)  
87         returns  Integer from Standard;
88         
89
90     Dump(me; 
91         aHex:Integer from Standard=0);  
92      
93         
94 fields 
95     myNbIds: Integer from Standard is protected;  
96     mySum  : Integer from Standard is protected;  
97     myMap  : IndexedMapOfInteger from TColStd is protected; 
98
99 end PassKey;