mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
Mostly duplicated comments were removed and missing ones were moved into dedicated class CDL files. Some more duplicated comments were removed from CDL files. Correction of merge
123 lines
3.9 KiB
Plaintext
123 lines
3.9 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;
|
|
|
|
class Browser;
|
|
|
|
class Transaction;
|
|
|
|
class TransactionStack
|
|
instantiates List 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;
|
|
|
|
|
|
|