Salome HOME
d40ff4de0f71ee8e98e35160578f548d67d71042
[modules/smesh.git] / src / SMESHDS / SMESHDS_Document.cdl
1 -- File      : SMESHDS_Document.cdl
2 -- Created   : 
3 -- Author    : Yves FRICAUD, OCC
4 -- Project   : SALOME
5 -- Copyright : OCC
6
7 class Document from SMESHDS inherits TShared from MMgt
8
9 uses 
10         Integer                                        from Standard,
11         Mesh                                           from SMESHDS,    
12         PtrHypothesis                                  from SMESHDS,    
13         DataMapOfIntegerMesh                           from SMESHDS,
14         DataMapOfIntegerPtrHypothesis                  from SMESHDS,
15         DataMapIteratorOfDataMapOfIntegerMesh          from SMESHDS,
16         DataMapIteratorOfDataMapOfIntegerPtrHypothesis from SMESHDS
17 is
18
19         Create (UserID : Integer from Standard) returns mutable Document;
20
21         NewMesh (me : mutable) returns Integer from Standard;
22
23         RemoveMesh (me : mutable; MeshID : Integer from Standard);
24
25         GetMesh (me : mutable; MeshID : Integer from Standard) returns Mesh from SMESHDS; 
26
27
28         AddHypothesis (me : mutable; H : PtrHypothesis from SMESHDS);
29
30         RemoveHypothesis (me : mutable; HypID : Integer from Standard);
31
32         GetHypothesis (me : mutable; HypID : Integer from Standard) returns PtrHypothesis from SMESHDS;
33
34         NbMeshes     (me : mutable) returns Integer from Standard;
35
36         NbHypothesis (me : mutable) returns Integer from Standard;
37
38         -- Iterator on Meshes
39         InitMeshesIterator(me : mutable);
40         
41         NextMesh (me : mutable);
42                 
43         MoreMesh (me : mutable) returns Boolean from Standard;
44         
45         CurrentMesh (me : mutable ) returns Mesh from SMESHDS; 
46
47         
48         --Iterator on Hypothesis
49         InitHypothesisIterator (me : mutable );
50
51         NextHypothesis (me : mutable );
52
53         MoreHypothesis (me : mutable ) returns Boolean from Standard;
54
55         CurrentHypothesis (me : mutable) returns PtrHypothesis from SMESHDS;    
56
57 fields
58         myUserID     : Integer                       from Standard;     
59         myMeshes     : DataMapOfIntegerMesh          from SMESHDS;
60         myHypothesis : DataMapOfIntegerPtrHypothesis from SMESHDS;
61
62         myMeshesIt     : DataMapIteratorOfDataMapOfIntegerMesh            from SMESHDS;
63         myHypothesisIt : DataMapIteratorOfDataMapOfIntegerPtrHypothesis from SMESHDS;
64
65 end Document;
66