1 // Copyright (c) 2015 OPEN CASCADE SAS
3 // This file is part of Open CASCADE Technology software library.
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
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.
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
15 #ifndef _StdLPersistent_Value_HeaderFile
16 #define _StdLPersistent_Value_HeaderFile
18 #include <StdObjMgt_Attribute.hxx>
19 #include <StdLPersistent_HString.hxx>
21 #include <TDataStd_Integer.hxx>
22 #include <TDF_TagSource.hxx>
23 #include <TDF_Reference.hxx>
24 #include <TDataStd_UAttribute.hxx>
25 #include <TDataStd_Name.hxx>
26 #include <TDataStd_Comment.hxx>
27 #include <TDataStd_AsciiString.hxx>
30 class StdLPersistent_Value
32 template <class AttribClass>
33 class integer : public StdObjMgt_Attribute<AttribClass>::SingleInt
36 //! Import transient attribuite from the persistent data.
37 Standard_EXPORT virtual void ImportAttribute();
40 template <class AttribClass,
41 class HStringClass = StdLPersistent_HString::Extended>
42 class string : public StdObjMgt_Attribute<AttribClass>::SingleRef
45 //! Import transient attribuite from the persistent data.
46 Standard_EXPORT virtual void ImportAttribute();
51 typedef integer <TDF_TagSource> TagSource;
52 typedef string <TDF_Reference> Reference;
53 typedef string <TDataStd_Comment> Comment;
55 class UAttribute : public string <TDataStd_UAttribute>
58 //! Create an empty transient attribuite
59 Standard_EXPORT virtual Handle(TDF_Attribute) CreateAttribute();
62 class Integer : public integer <TDataStd_Integer>
65 //! Create an empty transient attribuite
66 Standard_EXPORT virtual Handle(TDF_Attribute) CreateAttribute();
69 class Name : public string <TDataStd_Name>
72 //! Create an empty transient attribuite
73 Standard_EXPORT virtual Handle(TDF_Attribute) CreateAttribute();
76 class AsciiString : public string <TDataStd_AsciiString, StdLPersistent_HString::Ascii>
79 //! Create an empty transient attribuite
80 Standard_EXPORT virtual Handle(TDF_Attribute) CreateAttribute();