Salome HOME
Implemented method Modified() for SALOMEDS_Study that marks the Study as being modified.
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_SequenceOfIntegerAttribute.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 --
21 --  File   : SALOMEDS_SequenceOfIntegerAttribute.cdl
22 --  Author : Yves FRICAUD
23 --  Module : SALOME
24
25 class SequenceOfIntegerAttribute from SALOMEDS inherits Attribute from TDF
26
27         ---Purpose: 
28
29
30 uses Attribute         from TDF,
31      Label             from TDF,
32      GUID              from Standard,
33      HSequenceOfInteger from TColStd,
34      DataSet           from TDF,
35      RelocationTable   from TDF,
36      AttributeSequence from TDF,
37      Data              from TDF,
38      Comment           from TDataStd            
39
40
41 is    
42
43
44     ---Purpose: class methods
45     --          =============
46
47     GetID (myclass)   
48     ---C++: return const &  
49     returns GUID from Standard;    
50
51     Set (myclass; label : Label from TDF)
52     ---Purpose: Find, or create a Comment attribute and set the string.
53     --          the Comment attribute is returned.
54     returns SequenceOfIntegerAttribute from SALOMEDS;
55     
56     ---Purpose: Comment methods
57     --          ============
58     
59     Create 
60     returns mutable SequenceOfIntegerAttribute from SALOMEDS;
61     
62     ---Category: IntegerArray methods
63     --          ===============
64
65     Assign(me : mutable; other : HSequenceOfInteger from TColStd);
66     ---Purpose: Initialize the inner sequence by other one
67
68     ChangeValue (me : mutable; Index, Value : Integer from Standard);
69     ---Purpose: Sets  the   <Index>th  element  of   the  sequence to <Value>
70     
71     Add (me : mutable; value : Integer from Standard);
72     ---Purpose: Add  new value
73         
74     Value (me : mutable; Index : Integer from Standard) returns Integer;
75     ---Purpose: Value of index
76      
77     Remove (me : mutable; Index : Integer from Standard);
78     ---Purpose: Remove element on index <Index>
79  
80     Length (me : mutable) returns Integer;
81     ---Purpose: Returns length of sequence
82  
83     
84     
85     ID (me)
86         ---C++: return const & 
87     returns GUID from Standard;
88
89     Restore (me: mutable; with : Attribute from TDF);
90
91     NewEmpty (me)
92     returns mutable Attribute from TDF;
93
94     Paste (me; into : mutable Attribute from TDF;
95                RT   : mutable RelocationTable from TDF);    
96
97 fields
98
99     myValue : HSequenceOfInteger from TColStd;
100     
101 end SequenceOfIntegerAttribute;