mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-05-11 18:21:38 +08:00
License statement text corrected; compiler warnings caused by Bison 2.41 disabled for MSVC; a few other compiler warnings on 54-bit Windows eliminated by appropriate type cast Wrong license statements corrected in several files. Copyright and license statements added in XSD and GLSL files. Copyright year updated in some files. Obsolete documentation files removed from DrawResources.
170 lines
7.4 KiB
Plaintext
170 lines
7.4 KiB
Plaintext
-- Created on: 1993-08-12
|
|
-- Created by: Frederic MAUPAS
|
|
-- Copyright (c) 1993-1999 Matra Datavision
|
|
-- Copyright (c) 1999-2014 OPEN CASCADE SAS
|
|
--
|
|
-- This file is part of Open CASCADE Technology software library.
|
|
--
|
|
-- This library is free software; you can redistribute it and/or modify it under
|
|
-- the terms of the GNU Lesser General Public License version 2.1 as published
|
|
-- by the Free Software Foundation, with special exception defined in the file
|
|
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
|
|
-- distribution for complete text of the license and disclaimer of any warranty.
|
|
--
|
|
-- Alternatively, this file may be used under the terms of Open CASCADE
|
|
-- commercial license or contractual agreement.
|
|
|
|
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;
|