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 | |
bc73b006 |
16 | #include <TDataStd_Tick.hxx> |
42cf5bc1 |
17 | |
42cf5bc1 |
18 | #include <TDF_Label.hxx> |
c99ad5d7 |
19 | #include <Standard_GUID.hxx> |
7fd59977 |
20 | |
c99ad5d7 |
21 | IMPLEMENT_DERIVED_ATTRIBUTE(TDataStd_Tick,TDataStd_GenericEmpty) |
92efcf78 |
22 | |
7fd59977 |
23 | //======================================================================= |
24 | //function : GetID |
25 | //purpose : |
26 | //======================================================================= |
27 | const Standard_GUID& TDataStd_Tick::GetID () |
28 | { |
29 | static Standard_GUID TDataStd_TickID("40DC60CD-30B9-41be-B002-4169EFB34EA5"); |
30 | return TDataStd_TickID; |
31 | } |
32 | |
33 | //======================================================================= |
34 | //function : Set |
35 | //purpose : |
36 | //======================================================================= |
37 | Handle(TDataStd_Tick) TDataStd_Tick::Set (const TDF_Label& L) |
38 | { |
39 | Handle(TDataStd_Tick) A; |
40 | if (!L.FindAttribute(TDataStd_Tick::GetID (), A)) |
41 | { |
42 | A = new TDataStd_Tick(); |
43 | L.AddAttribute(A); |
44 | } |
45 | return A; |
46 | } |
47 | |
48 | //======================================================================= |
49 | //function : TDataStd_Tick |
50 | //purpose : |
51 | //======================================================================= |
52 | TDataStd_Tick::TDataStd_Tick () |
53 | { |
54 | } |
55 | |
56 | //======================================================================= |
57 | //function : ID |
58 | //purpose : |
59 | //======================================================================= |
60 | const Standard_GUID& TDataStd_Tick::ID () const |
61 | { |
62 | return GetID(); |
63 | } |
64 | |
7fd59977 |
65 | //======================================================================= |
66 | //function : Dump |
67 | //purpose : |
68 | //======================================================================= |
69 | Standard_OStream& TDataStd_Tick::Dump (Standard_OStream& anOS) const |
70 | { |
71 | anOS << "Tick"; |
72 | return anOS; |
73 | } |