Salome HOME
MPV:
[modules/yacs.git] / src / SALOMEDS / SALOMEDS_PythonObjectAttribute.cdl
1 --  SALOME SALOMEDS : data structure of SALOME and sources of Salome data server 
2 --
3 --  Copyright (C) 2003  CEA/DEN, EDF R&D
4 --
5 --
6 --
7 --  File   : SALOMEDS_PythonObjectAttribute.cdl
8 --  Author : Michael Ponikarov
9 --  Module : SALOME
10
11 class PythonObjectAttribute from SALOMEDS inherits Attribute from TDF
12
13         ---Purpose: 
14
15
16 uses Attribute          from TDF,
17      Label              from TDF,
18      GUID               from Standard,
19      DataSet            from TDF,
20      RelocationTable    from TDF,
21      Data               from TDF,
22      HArray1OfCharacter from TColStd
23
24 is    
25
26
27     ---Purpose: class methods
28     --          =============
29
30     GetID (myclass)   
31     ---C++: return const &  
32     returns GUID from Standard;    
33
34     Set (myclass; label : Label from TDF)
35     returns PythonObjectAttribute from SALOMEDS;
36     
37     ---Purpose: Common methods
38     --          ============
39     
40     Create 
41     returns mutable PythonObjectAttribute from SALOMEDS;
42     
43     SetObject(me: mutable; theSequence : CString from Standard; theScript : Boolean from Standard);
44     
45     GetObject(me) returns CString from Standard;
46     
47     IsScript(me) returns Boolean from Standard;
48     
49     GetLength(me) returns Integer from Standard;
50
51     ID (me)
52         ---C++: return const & 
53     returns GUID from Standard;
54
55     Restore (me: mutable; with : Attribute from TDF);
56
57     NewEmpty (me)
58     returns mutable Attribute from TDF;
59
60     Paste (me; into : mutable Attribute from TDF;
61                RT   : mutable RelocationTable from TDF);
62
63 fields
64
65   mySequence : CString from Standard;
66   myIsScript : Boolean from Standard;
67
68 end PythonObjectAttribute;