Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:19

0001 // Copyright (c) 2020 OPEN CASCADE SAS
0002 //
0003 // This file is part of Open CASCADE Technology software library.
0004 //
0005 // This library is free software; you can redistribute it and/or modify it under
0006 // the terms of the GNU Lesser General Public License version 2.1 as published
0007 // by the Free Software Foundation, with special exception defined in the file
0008 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0009 // distribution for complete text of the license and disclaimer of any warranty.
0010 //
0011 // Alternatively, this file may be used under the terms of Open CASCADE
0012 // commercial license or contractual agreement.
0013 
0014 #ifndef _TDataStd_GenericEmpty_HeaderFile
0015 #define _TDataStd_GenericEmpty_HeaderFile
0016 
0017 #include <Standard.hxx>
0018 #include <Standard_Type.hxx>
0019 
0020 #include <TDF_DerivedAttribute.hxx>
0021 
0022 class TDF_RelocationTable;
0023 
0024 class TDataStd_GenericEmpty;
0025 DEFINE_STANDARD_HANDLE(TDataStd_GenericEmpty, TDF_Attribute)
0026 
0027 //! An ancestor attribute for all attributes which have no fields.
0028 //! If an attribute inherits this one it should not have drivers for persistence.
0029 class TDataStd_GenericEmpty : public TDF_Attribute
0030 {
0031 
0032 public:
0033 
0034   Standard_EXPORT void Restore (const Handle(TDF_Attribute)&) Standard_OVERRIDE {};
0035 
0036   Standard_EXPORT void Paste (const Handle(TDF_Attribute)&, const Handle(TDF_RelocationTable)&) const Standard_OVERRIDE {}
0037   
0038   //! Dumps the content of me into the stream
0039   Standard_EXPORT virtual void DumpJson (Standard_OStream& theOStream, Standard_Integer theDepth = -1) const Standard_OVERRIDE;
0040 
0041 
0042   DEFINE_STANDARD_RTTIEXT(TDataStd_GenericEmpty,TDF_Attribute)
0043 
0044 };
0045 
0046 #endif // _TDataStd_GenericEmpty_HeaderFile