1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
|
-- File: APIHeaderSection_MakeHeader.cdl
-- Created: Thu Aug 12 10:43:48 1993
-- Author: Frederic MAUPAS
-- <fma@sdsun2>
---Copyright: Matra Datavision 1993
class MakeHeader from APIHeaderSection
---Purpose : This class allows to consult and prepare/edit data stored in
-- a Step Model Header
uses
StepModel from StepData,
Protocol from Interface,
FileName from HeaderSection,
FileSchema from HeaderSection,
FileDescription from HeaderSection,
Integer from Standard,
Boolean from Standard,
HAsciiString from TCollection,
HArray1OfHAsciiString from Interface
-- raises NotDone from StdFail
is
Create(shapetype : Integer = 0) returns MakeHeader;
---Purpose : Prepares a new MakeHeader from scratch
Create(model : StepModel) returns MakeHeader;
---Purpose : Prepares a MakeHeader from the content of a StepModel
-- See IsDone to know if the Header is well defined
Init (me : in out; nameval : CString);
---Purpose : Cancels the former definition and gives a FileName
-- To be used when a Model has no well defined Header
IsDone(me) returns Boolean;
---Purpose : Returns True if all data have been defined (see also
-- HasFn, HasFs, HasFd)
Apply (me; model : mutable StepModel);
---Purpose : Creates an empty header for a new
-- STEP model and allows the header fields to be completed.
NewModel (me; protocol : Protocol from Interface) returns StepModel;
---Purpose : Builds a Header, creates a new StepModel, then applies the
-- Header to the StepModel
-- The Schema Name is taken from the Protocol (if it inherits
-- from StepData, else it is left in blanks)
--- Specific Methods for FileName Entity
HasFn (me) returns Boolean;
---Purpose: Checks whether there is a
-- file_name entity. Returns True if there is one.
FnValue (me) returns FileName from HeaderSection;
---Purpose: Returns the file_name entity.
-- Returns an empty entity if the file_name entity is not initialized.
SetName(me : in out; aName : HAsciiString);
Name (me) returns HAsciiString;
---Purpose: Returns the name attribute for the file_name entity.
SetTimeStamp(me : in out; aTimeStamp : HAsciiString);
TimeStamp (me) returns HAsciiString;
--- Purpose: Returns the value of the time_stamp attribute for the file_name entity.
SetAuthor(me : in out; aAuthor : HArray1OfHAsciiString);
SetAuthorValue(me : in out; num : Integer; aAuthor : HAsciiString);
Author (me) returns HArray1OfHAsciiString;
AuthorValue (me; num : Integer) returns HAsciiString;
---Purpose: Returns the value of the name attribute for the file_name entity.
NbAuthor (me) returns Integer;
---Purpose: Returns the number of values for the author attribute in the file_name entity.
SetOrganization(me : in out;
aOrganization : HArray1OfHAsciiString);
SetOrganizationValue(me : in out; num : Integer;
aOrganization : HAsciiString);
Organization (me) returns HArray1OfHAsciiString;
OrganizationValue (me; num : Integer) returns HAsciiString;
--- Purpose: Returns the value of attribute
-- organization for the file_name entity.
NbOrganization (me) returns Integer;
--- Purpose: Returns the number of values for
-- the organization attribute in the file_name entity.
SetPreprocessorVersion(me : in out;
aPreprocessorVersion : HAsciiString);
PreprocessorVersion (me) returns HAsciiString;
---Purpose: Returns the name of the preprocessor_version for the file_name entity.
SetOriginatingSystem(me : in out; aOriginatingSystem : HAsciiString);
OriginatingSystem (me) returns HAsciiString;
SetAuthorisation(me : in out; aAuthorisation : HAsciiString);
Authorisation (me) returns HAsciiString;
---Purpose: Returns the value of the authorization attribute for the file_name entity.
HasFs (me) returns Boolean;
---Purpose: Checks whether there is a file_schema entity. Returns True if there is one.
FsValue (me) returns FileSchema from HeaderSection;
---Purpose: Returns the file_schema entity. Returns an empty entity if the file_schema entity is not initialized.
SetSchemaIdentifiers(me : in out; aSchemaIdentifiers :
mutable HArray1OfHAsciiString);
SetSchemaIdentifiersValue(me : in out; num : Integer;
aSchemaIdentifier : HAsciiString);
SchemaIdentifiers (me) returns HArray1OfHAsciiString;
SchemaIdentifiersValue (me; num : Integer) returns HAsciiString;
--- Purpose: Returns the value of the schema_identifier attribute for the file_schema entity.
NbSchemaIdentifiers (me) returns Integer;
---Purpose: Returns the number of values for the schema_identifier attribute in the file_schema entity.
AddSchemaIdentifier (me: in out; aSchemaIdentifier : HAsciiString);
---Purpose: Add a subname of schema (if not yet in the list)
--- Specific Methods for FileDescription Entity
HasFd (me) returns Boolean;
--- Purpose: Checks whether there is a file_description entity. Returns True if there is one.
FdValue (me) returns FileDescription from HeaderSection;
---Purpose: Returns the file_description
-- entity. Returns an empty entity if the file_description entity is not initialized.
SetDescription(me : in out;
aDescription : HArray1OfHAsciiString);
SetDescriptionValue(me : in out; num : Integer;
aDescription : HAsciiString);
Description (me) returns HArray1OfHAsciiString;
DescriptionValue (me; num : Integer) returns HAsciiString;
--- Purpose: Returns the value of the
-- description attribute for the file_description entity.
NbDescription (me) returns Integer;
--- Purpose: Returns the number of values for
-- the file_description entity in the STEP file header.
SetImplementationLevel(me : in out;
aImplementationLevel : HAsciiString);
ImplementationLevel (me) returns HAsciiString;
---Purpose: Returns the value of the
-- implementation_level attribute for the file_description entity.
fields
done : Boolean;
fn : FileName;
fs : FileSchema;
fd : FileDescription;
end MakeHeader;
|