1 -- Created on: 2002-10-29
2 -- Created by: Michael SAZONOV
3 -- Copyright (c) 2002-2014 OPEN CASCADE SAS
5 -- This file is part of Open CASCADE Technology software library.
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
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.
13 -- Alternatively, this file may be used under the terms of Open CASCADE
14 -- commercial license or contractual agreement.
16 deferred class ADriver from BinMDF inherits TShared from MMgt
18 ---Purpose: Attribute Storage/Retrieval Driver.
21 ExtendedString from TCollection,
22 MessageDriver from CDM,
23 AsciiString from TCollection,
25 RRelocationTable from BinObjMgt,
26 SRelocationTable from BinObjMgt,
27 Persistent from BinObjMgt
30 Initialize (theMsgDriver: MessageDriver from CDM;
31 theName : CString from Standard = NULL);
34 returns Attribute from TDF
36 ---Purpose: Creates a new attribute from TDF.
38 SourceType (me) returns Type from Standard;
39 ---C++: return const &
41 ---Purpose: Returns the type of source object,
42 -- inheriting from Attribute from TDF.
45 returns AsciiString from TCollection
47 ---C++: return const &
49 ---Purpose: Returns the type name of the attribute object
51 Paste (me; aSource : Persistent from BinObjMgt;
52 aTarget : Attribute from TDF;
53 aRelocTable : out RRelocationTable from BinObjMgt)
54 returns Boolean from Standard is deferred;
55 ---Purpose: Translate the contents of <aSource> and put it
56 -- into <aTarget>, using the relocation table
57 -- <aRelocTable> to keep the sharings.
59 Paste (me; aSource : Attribute from TDF;
60 aTarget : in out Persistent from BinObjMgt;
61 aRelocTable : out SRelocationTable from BinObjMgt)
63 ---Purpose: Translate the contents of <aSource> and put it
64 -- into <aTarget>, using the relocation table
65 -- <aRelocTable> to keep the sharings.
67 WriteMessage (me; theMessage : ExtendedString from TCollection);
68 ---Purpose: Send message to Application (usually when error occurres)
72 myMessageDriver : MessageDriver from CDM;
73 myTypeName : AsciiString from TCollection is protected;