mirror of
https://github.com/Open-Cascade-SAS/OCCT.git
synced 2026-07-30 18:14:56 +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.
126 lines
4.1 KiB
Plaintext
126 lines
4.1 KiB
Plaintext
-- Created by: DAUTRY Philippe
|
|
-- Copyright (c) 1997-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.
|
|
|
|
-- -------
|
|
|
|
---Version: 0.0
|
|
--Version Date Purpose
|
|
-- 0.0 Feb 10 1997 Creation
|
|
|
|
|
|
|
|
package DDF
|
|
|
|
---Purpose: Provides facilities to manipulate data framework
|
|
-- in a Draw-Commands environment.
|
|
|
|
uses
|
|
|
|
Standard,
|
|
Draw,
|
|
TCollection,
|
|
TDF
|
|
|
|
is
|
|
|
|
-- ----------------------------------------------------------------------
|
|
-- Classes
|
|
-- ----------------------------------------------------------------------
|
|
|
|
class Data;
|
|
---Purpose : Encapsulates a data framework from TDF.
|
|
|
|
class Browser;
|
|
---Purpose : Browses a data framework from TDF.
|
|
|
|
class Transaction;
|
|
---Purpose: Encapsulates a Transaction from TDF.
|
|
|
|
class TransactionStack
|
|
instantiates Stack from TCollection (Transaction from DDF);
|
|
|
|
-- ----------------------------------------------------------------------
|
|
-- Package methods
|
|
-- ----------------------------------------------------------------------
|
|
|
|
|
|
GetDF (Name : in out CString from Standard;
|
|
DF : in out Data from TDF;
|
|
Complain : in Boolean from Standard = Standard_True)
|
|
returns Boolean;
|
|
---Purpose: Search in draw directory the framewok identified
|
|
-- by its name <Name>. returns True if found. In that
|
|
-- case <DF> is setted.
|
|
|
|
|
|
FindLabel (DF : in Data from TDF;
|
|
Entry : in CString from Standard;
|
|
Label : in out Label from TDF;
|
|
Complain : in Boolean from Standard = Standard_True)
|
|
returns Boolean;
|
|
---Purpose: Search in <DF> the label identified by its entry
|
|
-- <Entry>. returns <True> if found. In that case
|
|
-- <Label> is setted.
|
|
|
|
AddLabel (DF : in Data from TDF;
|
|
Entry : in CString from Standard;
|
|
Label : in out Label from TDF)
|
|
returns Boolean;
|
|
---Purpose : Search in <DF> the label identified by its entry
|
|
-- <Entry>. if label doesn't exist, create and add
|
|
-- the Label in <DF>. In that case return True.
|
|
|
|
|
|
Find (DF : in Data from TDF;
|
|
Entry : in CString from Standard;
|
|
ID : in GUID from Standard;
|
|
A : in out Attribute from TDF;
|
|
Complain : Boolean from Standard = Standard_True)
|
|
returns Boolean;
|
|
---Purpose: Search in <DF> the attribute identified by its
|
|
-- <ID> and its <entry>. returns <True> if found. In
|
|
-- that case A is setted.
|
|
|
|
|
|
ReturnLabel(theCommands : in out Interpretor from Draw; L : Label from TDF)
|
|
returns Interpretor from Draw;
|
|
---C++: return &
|
|
|
|
-- ----------------------------------------------------------------------
|
|
-- Commands
|
|
-- ----------------------------------------------------------------------
|
|
|
|
AllCommands (theCommands : in out Interpretor from Draw);
|
|
|
|
|
|
BasicCommands (theCommands : in out Interpretor from Draw);
|
|
---Purpose : Basic commands.
|
|
|
|
DataCommands (theCommands : in out Interpretor from Draw);
|
|
---Purpose : Data framework commands
|
|
-- create, clear & copy.
|
|
|
|
TransactionCommands (theCommands : in out Interpretor from Draw);
|
|
---Purpose : open commit abort a transaction
|
|
-- undo facilities.
|
|
|
|
BrowserCommands (theCommands : in out Interpretor from Draw);
|
|
---Purpose : Browser commands .
|
|
|
|
end DDF;
|
|
|
|
|
|
|