Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/opencascade/StdLPersistent_Void.hxx was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // Copyright (c) 2015 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 _StdLPersistent_Void_HeaderFile
0015 #define _StdLPersistent_Void_HeaderFile
0016 
0017 #include <StdObjMgt_Attribute.hxx>
0018 
0019 #include <TDataStd_Directory.hxx>
0020 #include <TDataStd_Tick.hxx>
0021 #include <TDataStd_NoteBook.hxx>
0022 
0023 class StdLPersistent_Void
0024 {
0025 protected:
0026   template <class AttribClass>
0027   class instance : public StdObjMgt_Attribute<AttribClass>::Static
0028   {
0029   public:
0030     //! Read persistent data from a file.
0031     void Read(StdObjMgt_ReadData&) override {}
0032 
0033     //! Write persistent data to a file.
0034     void Write(StdObjMgt_WriteData&) const override {}
0035 
0036     //! Gets persistent child objects
0037     inline void PChildren(StdObjMgt_Persistent::SequenceOfPersistent&) const override {}
0038 
0039     //! Returns persistent type name
0040     const char* PName() const override;
0041 
0042     //! Import transient attribute from the persistent data
0043     void ImportAttribute() override {}
0044   };
0045 
0046 public:
0047   typedef instance<TDataStd_Directory> Directory;
0048   typedef instance<TDataStd_Tick>      Tick;
0049   typedef instance<TDataStd_NoteBook>  NoteBook;
0050 };
0051 
0052 template <>
0053 inline const char* StdLPersistent_Void::instance<TDataStd_Directory>::PName() const
0054 {
0055   return "PDataStd_Directory";
0056 }
0057 
0058 template <>
0059 inline const char* StdLPersistent_Void::instance<TDataStd_Tick>::PName() const
0060 {
0061   return "PDataStd_Tick";
0062 }
0063 
0064 template <>
0065 inline const char* StdLPersistent_Void::instance<TDataStd_NoteBook>::PName() const
0066 {
0067   return "PDataStd_Notebook";
0068 }
0069 
0070 #endif