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