0025266: Debug statements in the source are getting flushed on to the console
[occt.git] / src / TDataStd / TDataStd_Tick.cxx
1 // Created on: 2007-05-29
2 // Created by: Vlad Romashko
3 // Copyright (c) 2007-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 #include <TDataStd_Tick.ixx>
17
18 //=======================================================================
19 //function : GetID
20 //purpose  : 
21 //=======================================================================
22 const Standard_GUID& TDataStd_Tick::GetID () 
23 {
24   static Standard_GUID TDataStd_TickID("40DC60CD-30B9-41be-B002-4169EFB34EA5");
25   return TDataStd_TickID; 
26 }
27
28 //=======================================================================
29 //function : Set
30 //purpose  : 
31 //=======================================================================
32 Handle(TDataStd_Tick) TDataStd_Tick::Set (const TDF_Label& L)
33 {
34   Handle(TDataStd_Tick) A;
35   if (!L.FindAttribute(TDataStd_Tick::GetID (), A)) 
36   {
37     A = new TDataStd_Tick();
38     L.AddAttribute(A);
39   }
40   return A;
41 }
42
43 //=======================================================================
44 //function : TDataStd_Tick
45 //purpose  : 
46 //=======================================================================
47 TDataStd_Tick::TDataStd_Tick () 
48 {
49 }
50
51 //=======================================================================
52 //function : ID
53 //purpose  : 
54 //=======================================================================
55 const Standard_GUID& TDataStd_Tick::ID () const 
56
57   return GetID(); 
58 }
59
60 //=======================================================================
61 //function : NewEmpty
62 //purpose  : 
63 //=======================================================================
64 Handle(TDF_Attribute) TDataStd_Tick::NewEmpty() const
65
66   return new TDataStd_Tick(); 
67 }
68
69 //=======================================================================
70 //function : Restore
71 //purpose  : 
72 //=======================================================================
73 void TDataStd_Tick::Restore (const Handle(TDF_Attribute)& ) 
74 {
75   // There are no fields in this attribute.
76 }
77
78 //=======================================================================
79 //function : Paste
80 //purpose  : 
81 //=======================================================================
82 void TDataStd_Tick::Paste(const Handle(TDF_Attribute)& ,
83                           const Handle(TDF_RelocationTable)& ) const
84 {
85   // There are no fields in this attribute.
86 }    
87
88 //=======================================================================
89 //function : Dump
90 //purpose  : 
91 //=======================================================================
92 Standard_OStream& TDataStd_Tick::Dump (Standard_OStream& anOS) const
93
94   anOS << "Tick";
95   return anOS;
96 }