-- Created on: 1994-12-22 -- Created by: Christian CAILLET -- Copyright (c) 1994-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 StepType from StepSelect inherits Signature from IFSelect ---Purpose : StepType is a Signature specific to Step definitions : it -- considers the type as defined in STEP Schemas, the same which -- is used in files. -- For a Complex Type, if its definition is known, StepType -- produces the list of basic types, separated by commas, the -- whole between brackets : "(TYPE1,TYPE2..)". -- If its precise definition is not known (simply it is known as -- Complex, it can be recognised, but the list is produced at -- Write time only), StepType produces : "(..COMPLEX TYPE..)" uses CString, Transient, AsciiString from TCollection, Protocol from Interface, InterfaceModel, Protocol from StepData, WriterLib from StepData raises InterfaceError is Create returns StepType; ---Purpose : Creates a Signature for Step Type. Protocol is undefined here, -- hence no Signature may yet be produced. The StepType signature -- requires a Protocol before working SetProtocol (me : mutable; proto : Protocol from Interface) ---Purpose : Sets the StepType signature to work with a Protocol : this -- initialises the library raises InterfaceError; -- Error if the Protocol is not from StepData Value (me; ent : any Transient; model : InterfaceModel) returns CString; ---Purpose : Returns the Step Type defined from the Protocol (see above). -- If is not recognised, produces "..NOT FROM SCHEMA .." fields theproto : Protocol from StepData; thelib : WriterLib from StepData is protected; end StepType;