summaryrefslogtreecommitdiff
path: root/src/TDF/TDF_DefaultDeltaOnModification.cxx
blob: 4cad6205a48082a9583cfa1d9d6e75f6d5a43daf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// File:	TDF_DefaultDeltaOnModification.cxx
//      	----------------------------------
// Author:	DAUTRY Philippe
//		<fid@fox.paris1.matra-dtv.fr>
// Copyright:	Matra Datavision 1997

// Version:	0.0
// History:	Version	Date		Purpose
//		0.0	Oct 10 1997	Creation



#include <TDF_DefaultDeltaOnModification.ixx>

#include <TDF_Label.hxx>
#include <Standard_GUID.hxx>


//=======================================================================
//function : TDF_DefaultDeltaOnModification
//purpose  : 
//=======================================================================

TDF_DefaultDeltaOnModification::TDF_DefaultDeltaOnModification
(const Handle(TDF_Attribute)& anAttribute)
: TDF_DeltaOnModification(anAttribute)
{}


//=======================================================================
//function : Apply
//purpose  : 
//=======================================================================

void TDF_DefaultDeltaOnModification::Apply() 
{
  const Handle(TDF_Attribute)& savAtt = Attribute();
  Handle(TDF_Attribute) refAtt;
  if (Label().FindAttribute(savAtt->ID(),refAtt))
    refAtt->DeltaOnModification(this);
}