1 -- Created by: DAUTRY Philippe
2 -- Copyright (c) 1997-1999 Matra Datavision
3 -- Copyright (c) 1999-2014 OPEN CASCADE SAS
5 -- This file is part of Open CASCADE Technology software library.
7 -- This library is free software; you can redistribute it and/or modify it under
8 -- the terms of the GNU Lesser General Public License version 2.1 as published
9 -- by the Free Software Foundation, with special exception defined in the file
10 -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 -- distribution for complete text of the license and disclaimer of any warranty.
13 -- Alternatively, this file may be used under the terms of Open CASCADE
14 -- commercial license or contractual agreement.
19 --Version Date Purpose
20 -- 0.0 Feb 10 1997 Creation
26 ---Purpose: Provides facilities to manipulate data framework
27 -- in a Draw-Commands environment.
38 -- ----------------------------------------------------------------------
40 -- ----------------------------------------------------------------------
43 ---Purpose : Encapsulates a data framework from TDF.
46 ---Purpose : Browses a data framework from TDF.
49 ---Purpose: Encapsulates a Transaction from TDF.
51 class TransactionStack
52 instantiates List from TCollection (Transaction from DDF);
54 -- ----------------------------------------------------------------------
56 -- ----------------------------------------------------------------------
59 GetDF (Name : in out CString from Standard;
60 DF : in out Data from TDF;
61 Complain : in Boolean from Standard = Standard_True)
63 ---Purpose: Search in draw directory the framewok identified
64 -- by its name <Name>. returns True if found. In that
65 -- case <DF> is setted.
68 FindLabel (DF : in Data from TDF;
69 Entry : in CString from Standard;
70 Label : in out Label from TDF;
71 Complain : in Boolean from Standard = Standard_True)
73 ---Purpose: Search in <DF> the label identified by its entry
74 -- <Entry>. returns <True> if found. In that case
77 AddLabel (DF : in Data from TDF;
78 Entry : in CString from Standard;
79 Label : in out Label from TDF)
81 ---Purpose : Search in <DF> the label identified by its entry
82 -- <Entry>. if label doesn't exist, create and add
83 -- the Label in <DF>. In that case return True.
86 Find (DF : in Data from TDF;
87 Entry : in CString from Standard;
88 ID : in GUID from Standard;
89 A : in out Attribute from TDF;
90 Complain : Boolean from Standard = Standard_True)
92 ---Purpose: Search in <DF> the attribute identified by its
93 -- <ID> and its <entry>. returns <True> if found. In
94 -- that case A is setted.
97 ReturnLabel(theCommands : in out Interpretor from Draw; L : Label from TDF)
98 returns Interpretor from Draw;
101 -- ----------------------------------------------------------------------
103 -- ----------------------------------------------------------------------
105 AllCommands (theCommands : in out Interpretor from Draw);
108 BasicCommands (theCommands : in out Interpretor from Draw);
109 ---Purpose : Basic commands.
111 DataCommands (theCommands : in out Interpretor from Draw);
112 ---Purpose : Data framework commands
113 -- create, clear & copy.
115 TransactionCommands (theCommands : in out Interpretor from Draw);
116 ---Purpose : open commit abort a transaction
119 BrowserCommands (theCommands : in out Interpretor from Draw);
120 ---Purpose : Browser commands .