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