c99ad5d7 |
1 | // Copyright (c) 2020 OPEN CASCADE SAS |
b311480e |
2 | // |
973c2be1 |
3 | // This file is part of Open CASCADE Technology software library. |
b311480e |
4 | // |
d5f74e42 |
5 | // This library is free software; you can redistribute it and/or modify it under |
6 | // the terms of the GNU Lesser General Public License version 2.1 as published |
973c2be1 |
7 | // by the Free Software Foundation, with special exception defined in the file |
8 | // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT |
9 | // distribution for complete text of the license and disclaimer of any warranty. |
b311480e |
10 | // |
973c2be1 |
11 | // Alternatively, this file may be used under the terms of Open CASCADE |
12 | // commercial license or contractual agreement. |
7fd59977 |
13 | |
42cf5bc1 |
14 | |
83ae3591 |
15 | #include <Message_Messenger.hxx> |
42cf5bc1 |
16 | #include <Standard_Type.hxx> |
c99ad5d7 |
17 | #include <TDataStd_GenericEmpty.hxx> |
42cf5bc1 |
18 | #include <TDF_Attribute.hxx> |
c99ad5d7 |
19 | #include <XmlMDataStd_GenericEmptyDriver.hxx> |
42cf5bc1 |
20 | #include <XmlObjMgt_Persistent.hxx> |
7fd59977 |
21 | |
c99ad5d7 |
22 | IMPLEMENT_STANDARD_RTTIEXT(XmlMDataStd_GenericEmptyDriver,XmlMDF_ADriver) |
92efcf78 |
23 | |
7fd59977 |
24 | //======================================================================= |
c99ad5d7 |
25 | //function : XmlMDataStd_GenericEmptyDriver |
7fd59977 |
26 | //purpose : Constructor |
27 | //======================================================================= |
c99ad5d7 |
28 | XmlMDataStd_GenericEmptyDriver::XmlMDataStd_GenericEmptyDriver(const Handle(Message_Messenger)& theMsgDriver) |
7fd59977 |
29 | : XmlMDF_ADriver (theMsgDriver, NULL) |
30 | { |
31 | |
32 | } |
33 | |
34 | //======================================================================= |
35 | //function : NewEmpty |
36 | //purpose : |
37 | //======================================================================= |
c99ad5d7 |
38 | Handle(TDF_Attribute) XmlMDataStd_GenericEmptyDriver::NewEmpty() const |
7fd59977 |
39 | { |
c99ad5d7 |
40 | return Handle(TDF_Attribute)(); // this attribute can not be created |
41 | } |
42 | |
43 | //======================================================================= |
44 | //function : SourceType |
45 | //purpose : |
46 | //======================================================================= |
47 | Handle(Standard_Type) XmlMDataStd_GenericEmptyDriver::SourceType() const |
48 | { |
49 | return Standard_Type::Instance<TDataStd_GenericEmpty>(); |
7fd59977 |
50 | } |
51 | |
52 | //======================================================================= |
53 | //function : Paste |
54 | //purpose : |
55 | //======================================================================= |
c99ad5d7 |
56 | Standard_Boolean XmlMDataStd_GenericEmptyDriver::Paste(const XmlObjMgt_Persistent&, |
7fd59977 |
57 | const Handle(TDF_Attribute)&, |
58 | XmlObjMgt_RRelocationTable& ) const |
59 | { |
60 | return Standard_True; |
61 | } |
62 | |
63 | //======================================================================= |
64 | //function : Paste |
65 | //purpose : |
66 | //======================================================================= |
c99ad5d7 |
67 | void XmlMDataStd_GenericEmptyDriver::Paste(const Handle(TDF_Attribute)&, |
7fd59977 |
68 | XmlObjMgt_Persistent&, |
69 | XmlObjMgt_SRelocationTable& ) const |
70 | { |
71 | |
72 | } |