]> SALOME platform Git repositories - modules/kernel.git/blob - src/SALOMEDS/SALOMEDS_PythonObjectAttribute.cdl
Salome HOME
Update version to 3.2.0a1
[modules/kernel.git] / src / SALOMEDS / SALOMEDS_PythonObjectAttribute.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/
19 //
20 --  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
21 --
22 --  Copyright (C) 2003  CEA/DEN, EDF R&D
23 --
24 --
25 --
26 --  File   : SALOMEDS_PythonObjectAttribute.cdl
27 --  Author : Michael Ponikarov
28 --  Module : SALOME
29
30 class PythonObjectAttribute from SALOMEDS inherits Attribute from TDF
31
32         ---Purpose: 
33
34
35 uses Attribute          from TDF,
36      Label              from TDF,
37      GUID               from Standard,
38      DataSet            from TDF,
39      RelocationTable    from TDF,
40      Data               from TDF,
41      HArray1OfCharacter from TColStd
42
43 is    
44
45
46     ---Purpose: class methods
47     --          =============
48
49     GetID (myclass)   
50     ---C++: return const &  
51     returns GUID from Standard;    
52
53     Set (myclass; label : Label from TDF)
54     returns PythonObjectAttribute from SALOMEDS;
55     
56     ---Purpose: Common methods
57     --          ============
58     
59     Create 
60     returns mutable PythonObjectAttribute from SALOMEDS;
61     
62     SetObject(me: mutable; theSequence : CString from Standard; theScript : Boolean from Standard);
63     
64     GetObject(me) returns CString from Standard;
65     
66     IsScript(me) returns Boolean from Standard;
67     
68     GetLength(me) returns Integer from Standard;
69
70     ID (me)
71         ---C++: return const & 
72     returns GUID from Standard;
73
74     Restore (me: mutable; with : Attribute from TDF);
75
76     NewEmpty (me)
77     returns mutable Attribute from TDF;
78
79     Paste (me; into : mutable Attribute from TDF;
80                RT   : mutable RelocationTable from TDF);
81
82 fields
83
84   mySequence : CString from Standard;
85   myIsScript : Boolean from Standard;
86
87 end PythonObjectAttribute;