-- Created by: DAUTRY Philippe -- Copyright (c) 1997-1999 Matra Datavision -- Copyright (c) 1999-2014 OPEN CASCADE SAS -- -- This file is part of Open CASCADE Technology software library. -- -- This library is free software; you can redistribute it and/or modify it under -- the terms of the GNU Lesser General Public License version 2.1 as published -- by the Free Software Foundation, with special exception defined in the file -- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT -- distribution for complete text of the license and disclaimer of any warranty. -- -- Alternatively, this file may be used under the terms of Open CASCADE -- commercial license or contractual agreement. -- ----------------------- ---Version: 0.0 --Version Date Purpose -- 0.0 May 7 1997 Creation generic class RelocationTable from MDF (TheSourceType as any; TheTargetType as any; TheOtherSourceType as any; TheOtherTargetType as any; TheMapType as any) inherits TShared from MMgt ---Purpose: Storage Relocation Table -- (Transient->Persistent). It is a relocation -- dictionnary. uses Tool from MDF -- raises is Create(theSelfRelocation : Boolean from Standard = Standard_False) returns mutable RelocationTable from MDF; ---Purpose: Creates a relocation table. -- status says that the relocation table allows self relocation. SetSelfRelocation(me : mutable; theStatus : Boolean from Standard = Standard_True); ---Purpose: Sets self relocation status. IsSelfRelocation(me) ---Purpose: Returns true if the self relocation status is set. returns Boolean from Standard; -- Attribute relocation methods. -- --------- SetRelocation(me : mutable; aSourceAttribute : TheSourceType; aTargetAttribute : TheTargetType); ---Purpose: Sets the relocation value of to -- . HasRelocation(me : mutable; aSourceAttribute : TheSourceType; aTargetAttribute : in out mutable TheTargetType) returns Boolean from Standard; ---Purpose: Finds the relocation value of -- and returns it into . -- -- If a value is found, returns True; False otherwise. -- Transient other types object relocation methods. -- --------------------- SetOtherRelocation(me : mutable; aSource : TheOtherSourceType; aTarget : TheOtherTargetType); ---Purpose: Sets the relocation value of to -- . HasOtherRelocation(me : mutable; aSource : TheOtherSourceType; aTarget : in out mutable TheOtherTargetType) returns Boolean from Standard; ---Purpose: Finds the relocation value of -- and returns it into . -- -- If a value is found, returns True; False otherwise. -- Try not to use the following methods... AttributeTable(me : mutable) returns TheMapType; ---Purpose: Returns to be read or -- updated. Please, for a better security, avoid to -- use this method. -- ---C++: return & OtherTable(me : mutable) returns TheMapType; ---Purpose: Returns to be read or -- updated. Please, for a better security, avoid to -- use this method. -- ---C++: return & fields myAttributeTable : TheMapType; myOtherTable : TheMapType; mySelfRelocation : Boolean from Standard; end RelocationTable;