Warnings on vc14 were eliminated
[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
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>
23
24 IMPLEMENT_STANDARD_RTTIEXT(TDataStd_Tick,TDF_Attribute)
25
26 //=======================================================================
27 //function : GetID
28 //purpose  : 
29 //=======================================================================
30 const Standard_GUID& TDataStd_Tick::GetID () 
31 {
32   static Standard_GUID TDataStd_TickID("40DC60CD-30B9-41be-B002-4169EFB34EA5");
33   return TDataStd_TickID; 
34 }
35
36 //=======================================================================
37 //function : Set
38 //purpose  : 
39 //=======================================================================
40 Handle(TDataStd_Tick) TDataStd_Tick::Set (const TDF_Label& L)
41 {
42   Handle(TDataStd_Tick) A;
43   if (!L.FindAttribute(TDataStd_Tick::GetID (), A)) 
44   {
45     A = new TDataStd_Tick();
46     L.AddAttribute(A);
47   }
48   return A;
49 }
50
51 //=======================================================================
52 //function : TDataStd_Tick
53 //purpose  : 
54 //=======================================================================
55 TDataStd_Tick::TDataStd_Tick () 
56 {
57 }
58
59 //=======================================================================
60 //function : ID
61 //purpose  : 
62 //=======================================================================
63 const Standard_GUID& TDataStd_Tick::ID () const 
64
65   return GetID(); 
66 }
67
68 //=======================================================================
69 //function : NewEmpty
70 //purpose  : 
71 //=======================================================================
72 Handle(TDF_Attribute) TDataStd_Tick::NewEmpty() const
73
74   return new TDataStd_Tick(); 
75 }
76
77 //=======================================================================
78 //function : Restore
79 //purpose  : 
80 //=======================================================================
81 void TDataStd_Tick::Restore (const Handle(TDF_Attribute)& ) 
82 {
83   // There are no fields in this attribute.
84 }
85
86 //=======================================================================
87 //function : Paste
88 //purpose  : 
89 //=======================================================================
90 void TDataStd_Tick::Paste(const Handle(TDF_Attribute)& ,
91                           const Handle(TDF_RelocationTable)& ) const
92 {
93   // There are no fields in this attribute.
94 }    
95
96 //=======================================================================
97 //function : Dump
98 //purpose  : 
99 //=======================================================================
100 Standard_OStream& TDataStd_Tick::Dump (Standard_OStream& anOS) const
101
102   anOS << "Tick";
103   return anOS;
104 }