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.
16 -- -------------------
19 --Version Date Purpose
20 -- 0.0 Nov 4 1997 Creation
22 class Transaction from DDF
23 inherits TShared from MMgt
25 ---Purpose: This class encapsulates TDF_Transaction.
35 DomainError, NullObject from Standard
40 returns Transaction from DDF;
41 ---Purpose: Creates an empty transaction context, unable to be
44 Create(aDF : Data from TDF)
45 returns Transaction from DDF;
46 ---Purpose: Creates a transaction context on <aDF>, ready to
50 returns Integer from Standard;
51 ---Purpose: If not yet done, opens a new transaction on
52 -- <myDF>. Returns the index of the just opened
55 -- It raises DomainError if the transaction is
56 -- already open, and NullObject if there is no
57 -- current Data framework.
60 withDelta : Boolean from Standard = Standard_False)
61 returns Delta from TDF;
62 ---Purpose: Commits the transactions until AND including the
63 -- current opened one.
66 ---Purpose: Aborts the transactions until AND including the
67 -- current opened one.
71 Data(me) returns Data from TDF;
72 ---Purpose: Returns the Data from TDF.
74 Transaction(me) returns Integer from Standard;
75 ---Purpose: Returns the number of the transaction opened by <me>.
78 returns Boolean from Standard;
79 ---Purpose: Returns true if the transaction is open.
84 myTransaction : Transaction from TDF;