493a7df429a7f27d24f4d5f26cf1cdce7e60f533
[occt.git] / src / TDF / TDF_DeltaOnResume.cxx
1 // Created by: DAUTRY Philippe
2 // Copyright (c) 1998-1999 Matra Datavision
3 // Copyright (c) 1999-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
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.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 //              ---------------------
17 // Version:     0.0
18 //Version       Date            Purpose
19 //              0.0     Jul  6 1998     Creation
20
21 #include <TDF_DeltaOnResume.hxx>
22
23 #include <Standard_Dump.hxx>
24 #include <Standard_Type.hxx>
25 #include <TDF_Attribute.hxx>
26 #include <TDF_Label.hxx>
27
28 IMPLEMENT_STANDARD_RTTIEXT(TDF_DeltaOnResume,TDF_AttributeDelta)
29
30 //=======================================================================
31 //function : TDF_DeltaOnResume
32 //purpose  : 
33 //=======================================================================
34 TDF_DeltaOnResume::TDF_DeltaOnResume
35 (const Handle(TDF_Attribute)& anAtt)
36 : TDF_AttributeDelta(anAtt)
37 {}
38
39
40 //=======================================================================
41 //function : Apply
42 //purpose  : 
43 //=======================================================================
44
45 void TDF_DeltaOnResume::Apply() 
46 {
47   // Undo = Forget.
48   Label().ForgetAttribute (Attribute());
49 #ifdef OCCT_DEBUG
50   std::cout<<"Forget attribute"<<std::endl;
51 #endif
52 }
53
54 //=======================================================================
55 //function : DumpJson
56 //purpose  : 
57 //=======================================================================
58 void TDF_DeltaOnResume::DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth) const
59 {
60   OCCT_DUMP_TRANSIENT_CLASS_BEGIN (theOStream)
61
62   OCCT_DUMP_BASE_CLASS (theOStream, theDepth, TDF_AttributeDelta)
63 }