1 // Created on: 2007-05-29
2 // Created by: Vlad Romashko
3 // Copyright (c) 2007-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.
17 #include <Standard_GUID.hxx>
18 #include <Standard_Type.hxx>
19 #include <TDataStd_Tick.hxx>
20 #include <TDF_Attribute.hxx>
21 #include <TDF_Label.hxx>
22 #include <TDF_RelocationTable.hxx>
24 IMPLEMENT_STANDARD_RTTIEXT(TDataStd_Tick,TDF_Attribute)
26 //=======================================================================
29 //=======================================================================
30 const Standard_GUID& TDataStd_Tick::GetID ()
32 static Standard_GUID TDataStd_TickID("40DC60CD-30B9-41be-B002-4169EFB34EA5");
33 return TDataStd_TickID;
36 //=======================================================================
39 //=======================================================================
40 Handle(TDataStd_Tick) TDataStd_Tick::Set (const TDF_Label& L)
42 Handle(TDataStd_Tick) A;
43 if (!L.FindAttribute(TDataStd_Tick::GetID (), A))
45 A = new TDataStd_Tick();
51 //=======================================================================
52 //function : TDataStd_Tick
54 //=======================================================================
55 TDataStd_Tick::TDataStd_Tick ()
59 //=======================================================================
62 //=======================================================================
63 const Standard_GUID& TDataStd_Tick::ID () const
68 //=======================================================================
71 //=======================================================================
72 Handle(TDF_Attribute) TDataStd_Tick::NewEmpty() const
74 return new TDataStd_Tick();
77 //=======================================================================
80 //=======================================================================
81 void TDataStd_Tick::Restore (const Handle(TDF_Attribute)& )
83 // There are no fields in this attribute.
86 //=======================================================================
89 //=======================================================================
90 void TDataStd_Tick::Paste(const Handle(TDF_Attribute)& ,
91 const Handle(TDF_RelocationTable)& ) const
93 // There are no fields in this attribute.
96 //=======================================================================
99 //=======================================================================
100 Standard_OStream& TDataStd_Tick::Dump (Standard_OStream& anOS) const