b311480e |
1 | // Created on: 2007-05-29 |
2 | // Created by: Vlad Romashko |
973c2be1 |
3 | // Copyright (c) 2007-2014 OPEN CASCADE SAS |
b311480e |
4 | // |
973c2be1 |
5 | // This file is part of Open CASCADE Technology software library. |
b311480e |
6 | // |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
12 | // |
973c2be1 |
13 | // Alternatively, this file may be used under the terms of Open CASCADE |
14 | // commercial license or contractual agreement. |
7fd59977 |
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 | //======================================================================= |
35e08fe8 |
73 | void TDataStd_Tick::Restore (const Handle(TDF_Attribute)& ) |
7fd59977 |
74 | { |
75 | // There are no fields in this attribute. |
76 | } |
77 | |
78 | //======================================================================= |
79 | //function : Paste |
80 | //purpose : |
81 | //======================================================================= |
35e08fe8 |
82 | void TDataStd_Tick::Paste(const Handle(TDF_Attribute)& , |
83 | const Handle(TDF_RelocationTable)& ) const |
7fd59977 |
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 | } |