0023024: Update headers of OCCT files
[occt.git] / src / RWHeaderSection / RWHeaderSection_ReadWriteModule.cdl
CommitLineData
b311480e 1-- Created on: 1994-06-16
2-- Created by: EXPRESS->CDL V0.2 Translator
3-- Copyright (c) 1994-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
24
25class ReadWriteModule from RWHeaderSection inherits ReadWriteModule from StepData
26
27 ---Purpose : General module to read and write HeaderSection entities
28
29uses Transient,
30 SequenceOfAsciiString from TColStd,
31 AsciiString from TCollection,
32 Check from Interface,
33 StepReaderData from StepData,
34 StepWriter from StepData
35
36is
37
38 Create returns mutable ReadWriteModule from RWHeaderSection;
39
40 CaseStep (me; atype : AsciiString from TCollection) returns Integer;
41 ---Purpose : associates a positive Case Number to each type of HeaderSection entity,
42 -- given as a String defined in the EXPRESS form
43
44 CaseStep(me; types : SequenceOfAsciiString from TColStd) returns Integer is redefined;
45 ---Purpose : associates a positive Case Number to each type of HeaderSection Complex entity,
46 -- given as a String defined in the EXPRESS form
47
48 IsComplex (me; CN : Integer) returns Boolean is redefined;
49 ---Purpose : returns True if the Case Number corresponds to a Complex Type
50
51 StepType (me; CN : Integer) returns AsciiString from TCollection;
52 ---Purpose : returns a StepType (defined in EXPRESS form which belongs to a
53 -- Type of Entity, identified by its CaseNumber determined by Protocol
54 ---C++ : return const &
55
56 ReadStep (me; CN : Integer; data : StepReaderData; num : Integer;
57 ach : in out Check; ent : mutable Transient);
58
59 WriteStep (me; CN : Integer; SW : in out StepWriter; ent : Transient);
60
61end ReadWriteModule;