b311480e |
1 | -- Created on: 1997-05-09 |
2 | -- Created by: Christian CAILLET |
3 | -- Copyright (c) 1997-1999 Matra Datavision |
4 | -- Copyright (c) 1999-2012 OPEN CASCADE SAS |
5 | -- |
6 | -- The content of this file is subject to the Open CASCADE Technology Public |
7 | -- License Version 6.5 (the "License"). You may not use the content of this file |
8 | -- except in compliance with the License. Please obtain a copy of the License |
9 | -- at http://www.opencascade.org and read it completely before using this file. |
10 | -- |
11 | -- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its |
12 | -- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France. |
13 | -- |
14 | -- The Original Code and all software distributed under the License is |
15 | -- distributed on an "AS IS" basis, without warranty of any kind, and the |
16 | -- Initial Developer hereby disclaims all such warranties, including without |
17 | -- limitation, any warranties of merchantability, fitness for a particular |
18 | -- purpose or non-infringement. Please see the License for the specific terms |
19 | -- and conditions governing the rights and limitations under the License. |
20 | |
7fd59977 |
21 | |
22 | |
23 | deferred class Described from StepData inherits TShared from MMgt |
24 | |
25 | ---Purpose : General frame to describe entities with Description (Simple or |
26 | -- Complex) |
27 | |
28 | uses CString, |
29 | Check from Interface, EntityIterator from Interface, |
30 | Field from StepData, EDescr from StepData, Simple from StepData |
31 | |
32 | raises InterfaceMismatch from Interface |
33 | |
34 | is |
35 | |
36 | Initialize (descr : EDescr); |
37 | ---Purpose : Initializes a Described Entity from a Description |
38 | -- (i.e. puts it in a field ...) |
39 | |
40 | Description (me) returns EDescr; |
41 | ---Purpose : Returns the Description used to define this entity |
42 | |
43 | IsComplex (me) returns Boolean is deferred; |
44 | ---Purpose : Tells if a described entity is complex |
45 | |
46 | Matches (me; steptype : CString) returns Boolean is deferred; |
47 | ---Purpose : Tells if a step type is matched by <me> |
48 | -- For a Simple Entity : own type or super type |
49 | -- For a Complex Entity : one of the members |
50 | |
51 | As (me; steptype : CString) returns mutable Simple is deferred; |
52 | ---Purpose : Returns a Simple Entity which matches with a Type in <me> : |
53 | -- For a Simple Entity : me if it matches, else a null handle |
54 | -- For a Complex Entity : the member which matches, else null |
55 | |
56 | HasField (me; name : CString) returns Boolean is deferred; |
57 | ---Purpose : Tells if a Field brings a given name |
58 | |
59 | Field (me; name : CString) returns Field |
60 | ---Purpose : Returns a Field from its name; read-only |
61 | raises InterfaceMismatch is deferred; |
62 | -- raises if no Field for <name> |
63 | ---C++ : return const & |
64 | |
65 | CField (me : mutable; name : CString) returns Field |
66 | ---Purpose : Returns a Field from its name; read or write |
67 | raises InterfaceMismatch is deferred; |
68 | -- raises if no Field for <name> |
69 | ---C++ : return & |
70 | |
71 | -- |
72 | |
73 | Check (me; ach : in out Check from Interface) is deferred; |
74 | ---Purpose : Fills a Check by using its Description |
75 | |
76 | Shared (me; list : in out EntityIterator from Interface) is deferred; |
77 | ---Purpose : Fills an EntityIterator with entities shared by <me> |
78 | |
79 | fields |
80 | |
81 | thedescr : EDescr; |
82 | |
83 | end Described; |