0024830: Remove redundant keyword 'mutable' in CDL declarations
[occt.git] / src / IGESData / IGESData_UndefinedEntity.cdl
CommitLineData
b311480e 1-- Created on: 1992-04-07
2-- Created by: Christian CAILLET
3-- Copyright (c) 1992-1999 Matra Datavision
973c2be1 4-- Copyright (c) 1999-2014 OPEN CASCADE SAS
b311480e 5--
973c2be1 6-- This file is part of Open CASCADE Technology software library.
b311480e 7--
d5f74e42 8-- This library is free software; you can redistribute it and/or modify it under
9-- the terms of the GNU Lesser General Public License version 2.1 as published
973c2be1 10-- by the Free Software Foundation, with special exception defined in the file
11-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12-- distribution for complete text of the license and disclaimer of any warranty.
b311480e 13--
973c2be1 14-- Alternatively, this file may be used under the terms of Open CASCADE
15-- commercial license or contractual agreement.
7fd59977 16
17class UndefinedEntity from IGESData inherits IGESEntity
18
19 ---Purpose : undefined (unknown or error) entity specific of IGES
20 -- DirPart can be correct or not : if it is not, a flag indicates
21 -- it, and each corrupted field has an associated error flag
22
23uses OStream, Check, UndefinedContent, CopyTool,
24 DefType, DefList, IGESReaderData, DirPart, ParamReader, IGESWriter
25
26is
27
6e33d3ce 28 Create returns UndefinedEntity;
7fd59977 29 ---Purpose : creates an unknown entity
30
6e33d3ce 31 UndefinedContent (me) returns UndefinedContent;
7fd59977 32 ---Purpose : Returns own data as an UndefinedContent
33
6e33d3ce 34 ChangeableContent (me : mutable) returns UndefinedContent;
7fd59977 35 ---Purpose : Returns own data as an UndefinedContent, in order to touch it
36
6e33d3ce 37 SetNewContent (me : mutable; cont : UndefinedContent);
7fd59977 38 ---Purpose : Redefines a completely new UndefinedContent
39 -- Used by a Copy which begins by ShallowCopy, for instance
40
41 IsOKDirPart (me) returns Boolean;
42 ---Purpose : says if DirPart is OK or not (if not, it is erroneous)
43 -- Note that if it is not, Def* methods can return Error status
44
45 DirStatus (me) returns Integer;
46 ---Purpose : returns Directory Error Status (used for Copy)
47
48 SetOKDirPart (me : mutable);
49 ---Purpose : Erases the Directory Error Status
50 -- Warning : Be sure that data are consistent to call this method ...
51
52
53 DefLineFont (me) returns DefType is redefined;
54 ---Purpose : returns Error status if necessary, else calls original method
55
56 DefLevel (me) returns DefList is redefined;
57 ---Purpose : returns Error status if necessary, else calls original method
58
59 DefView (me) returns DefList is redefined;
60 ---Purpose : returns Error status if necessary, else calls original method
61
62 DefColor (me) returns DefType is redefined;
63 ---Purpose : returns Error status if necessary, else calls original method
64
65 HasSubScriptNumber (me) returns Boolean is redefined;
66 ---Purpose : returns Error status if necessary, else calls original method
67 -- (that is, if SubScript field is not blank or positive integer)
68
69
70 ReadDir (me : mutable; IR : IGESReaderData; DP : in out DirPart;
71 ach : in out Check)
72 returns Boolean is virtual;
73 ---Purpose : Computes the Directory Error Status, to be called before
74 -- standard ReadDir from IGESReaderTool
75 -- Returns True if OK (hence, Directory can be loaded),
76 -- Else returns False and the DirPart <DP> is modified
77 -- (hence, Directory Error Status is non null; and standard Read
78 -- will work with an acceptable DirectoryPart)
79
80 ReadOwnParams (me : mutable; IR : IGESReaderData; PR : in out ParamReader)
81 is virtual;
82 ---Purpose : reads own parameters from file; PR gives access to them, IR
83 -- detains parameter types and values
84 -- Here, reads all parameters, integers are considered as entity
85 -- reference unless they cannot be; no list interpretation
86 -- No property or associativity list is managed
87
88 WriteOwnParams (me; IW : in out IGESWriter) is virtual;
89 ---Purpose : writes parameters to IGESWriter, taken from UndefinedContent
90
91fields
92
93 thedstat : Integer; -- DirPart error bitwise flags (none set -> OK)
94 thecont : UndefinedContent;
95
96end UndefinedEntity;