// File generated by CPPExt (Value)
//
//                     Copyright (C) 1991 - 2000 by  
//                      Matra Datavision SA.  All rights reserved.
//  
//                     Copyright (C) 2001 - 2004 by
//                     Open CASCADE SA.  All rights reserved.
// 
// This file is part of the Open CASCADE Technology software.
//
// This software may be distributed and/or modified under the terms and
// conditions of the Open CASCADE Public License as defined by Open CASCADE SA
// and appearing in the file LICENSE included in the packaging of this file.
//  
// This software is distributed on an "AS IS" basis, without warranty of any
// kind, and Open CASCADE SA hereby disclaims all such warranties,
// including without limitation, any warranties of merchantability, fitness
// for a particular purpose or non-infringement. Please see the License for
// the specific terms and conditions governing rights and limitations under the
// License.

#ifndef _MDF_HeaderFile
#define _MDF_HeaderFile

#ifndef _Handle_TDF_Data_HeaderFile
#include <Handle_TDF_Data.hxx>
#endif
#ifndef _Handle_PDF_Data_HeaderFile
#include <Handle_PDF_Data.hxx>
#endif
#ifndef _Handle_MDF_ASDriverTable_HeaderFile
#include <Handle_MDF_ASDriverTable.hxx>
#endif
#ifndef _Handle_MDF_SRelocationTable_HeaderFile
#include <Handle_MDF_SRelocationTable.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Handle_MDF_ARDriverTable_HeaderFile
#include <Handle_MDF_ARDriverTable.hxx>
#endif
#ifndef _Handle_MDF_RRelocationTable_HeaderFile
#include <Handle_MDF_RRelocationTable.hxx>
#endif
#ifndef _Handle_MDF_ASDriverHSequence_HeaderFile
#include <Handle_MDF_ASDriverHSequence.hxx>
#endif
#ifndef _Handle_CDM_MessageDriver_HeaderFile
#include <Handle_CDM_MessageDriver.hxx>
#endif
#ifndef _Handle_MDF_ARDriverHSequence_HeaderFile
#include <Handle_MDF_ARDriverHSequence.hxx>
#endif
class TDF_Data;
class PDF_Data;
class MDF_ASDriverTable;
class MDF_SRelocationTable;
class MDF_ARDriverTable;
class MDF_RRelocationTable;
class MDF_ASDriverHSequence;
class CDM_MessageDriver;
class MDF_ARDriverHSequence;
class MDF_ASDriver;
class MDF_ARDriver;
class MDF_RelocationTable;
class MDF_DriverTable;
class MDF_DriverList;
class MDF_TypeDriverListMap;
class MDF_Tool;
class MDF_TagSourceStorageDriver;
class MDF_TagSourceRetrievalDriver;
class MDF_ReferenceStorageDriver;
class MDF_ReferenceRetrievalDriver;
class MDF_ASDriverSequence;
class MDF_ASDriverHSequence;
class MDF_ARDriverSequence;
class MDF_ARDriverHSequence;
class MDF_SRelocationTable;
class MDF_RRelocationTable;
class MDF_TypeASDriverMap;
class MDF_TypeARDriverMap;
class MDF_ASDriverTable;
class MDF_ARDriverTable;
class MDF_SequenceNodeOfASDriverSequence;
class MDF_SequenceNodeOfARDriverSequence;
class MDF_DataMapNodeOfTypeASDriverMap;
class MDF_DataMapIteratorOfTypeASDriverMap;
class MDF_DataMapNodeOfTypeARDriverMap;
class MDF_DataMapIteratorOfTypeARDriverMap;
class MDF_ListNodeOfDriverListOfASDriverTable;
class MDF_ListIteratorOfDriverListOfASDriverTable;
class MDF_DriverListOfASDriverTable;
class MDF_DataMapNodeOfTypeDriverListMapOfASDriverTable;
class MDF_DataMapIteratorOfTypeDriverListMapOfASDriverTable;
class MDF_TypeDriverListMapOfASDriverTable;
class MDF_ListNodeOfDriverListOfARDriverTable;
class MDF_ListIteratorOfDriverListOfARDriverTable;
class MDF_DriverListOfARDriverTable;
class MDF_DataMapNodeOfTypeDriverListMapOfARDriverTable;
class MDF_DataMapIteratorOfTypeDriverListMapOfARDriverTable;
class MDF_TypeDriverListMapOfARDriverTable;


#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_Macro_HeaderFile
#include <Standard_Macro.hxx>
#endif

//! This package provides classes and methods to <br>
//!          translate a transient DF into a persistent one and <br>
//!          vice versa. <br>
//! <br>
//!          Driver <br>
//! <br>
//!          A driver is a tool used to translate a transient <br>
//!          attribute into a persistent one and vice versa. <br>
//! <br>
//!          Relocation Table <br>
//! <br>
//!          A relocation table is a tool who provides services <br>
//!          to relocate transient objects into persistent ones <br>
//!          (or vice versa). It uses a map system to keep the <br>
//!          sharing. This service is used by the drivers. <br>
//! <br>
//!          Driver Table <br>
//! <br>
//!          A driver table is an object building links between <br>
//!          object types and object drivers. In the <br>
//!          translation process, a driver table is asked to <br>
//!          give a translation driver for each current object <br>
//!          to be translated. <br>
class MDF  {

public:

    void* operator new(size_t,void* anAddress) 
      {
        return anAddress;
      }
    void* operator new(size_t size) 
      { 
        return Standard::Allocate(size); 
      }
    void  operator delete(void *anAddress) 
      { 
        if (anAddress) Standard::Free((Standard_Address&)anAddress); 
      }
 // Methods PUBLIC
 // 

//! Translates a transient <aSource> into a persistent <br>
//!          <aTarget>. <br>
Standard_EXPORT static  void FromTo(const Handle(TDF_Data)& aSource,Handle(PDF_Data)& aTarget,const Handle(MDF_ASDriverTable)& aDriverTable,const Handle(MDF_SRelocationTable)& aReloc,const Standard_Integer aVersion = 0) ;

//! Translates a persistent <aSource> into a transient <br>
//!          <aTarget>. <br>
Standard_EXPORT static  void FromTo(const Handle(PDF_Data)& aSource,Handle(TDF_Data)& aTarget,const Handle(MDF_ARDriverTable)& aDriverTable,const Handle(MDF_RRelocationTable)& aReloc) ;

//! Adds the attribute storage drivers to <aDriverSeq>. <br>
Standard_EXPORT static  void AddStorageDrivers(const Handle(MDF_ASDriverHSequence)& aDriverSeq,const Handle(CDM_MessageDriver)& theMessageDriver) ;

//! Adds the attribute retrieval drivers to <aDriverSeq>. <br>
Standard_EXPORT static  void AddRetrievalDrivers(const Handle(MDF_ARDriverHSequence)& aDriverSeq,const Handle(CDM_MessageDriver)& theMessageDriver) ;





protected:

 // Methods PROTECTED
 // 


 // Fields PROTECTED
 //


private: 

 // Methods PRIVATE
 // 


 // Fields PRIVATE
 //

friend class MDF_ASDriver;
friend class MDF_ARDriver;
friend class MDF_RelocationTable;
friend class MDF_DriverTable;
friend class MDF_DriverList;
friend class MDF_TypeDriverListMap;
friend class MDF_Tool;
friend class MDF_TagSourceStorageDriver;
friend class MDF_TagSourceRetrievalDriver;
friend class MDF_ReferenceStorageDriver;
friend class MDF_ReferenceRetrievalDriver;
friend class MDF_ASDriverSequence;
friend class MDF_ASDriverHSequence;
friend class MDF_ARDriverSequence;
friend class MDF_ARDriverHSequence;
friend class MDF_SRelocationTable;
friend class MDF_RRelocationTable;
friend class MDF_TypeASDriverMap;
friend class MDF_TypeARDriverMap;
friend class MDF_ASDriverTable;
friend class MDF_ARDriverTable;
friend class MDF_SequenceNodeOfASDriverSequence;
friend class MDF_SequenceNodeOfARDriverSequence;
friend class MDF_DataMapNodeOfTypeASDriverMap;
friend class MDF_DataMapIteratorOfTypeASDriverMap;
friend class MDF_DataMapNodeOfTypeARDriverMap;
friend class MDF_DataMapIteratorOfTypeARDriverMap;
friend class MDF_ListNodeOfDriverListOfASDriverTable;
friend class MDF_ListIteratorOfDriverListOfASDriverTable;
friend class MDF_DriverListOfASDriverTable;
friend class MDF_DataMapNodeOfTypeDriverListMapOfASDriverTable;
friend class MDF_DataMapIteratorOfTypeDriverListMapOfASDriverTable;
friend class MDF_TypeDriverListMapOfASDriverTable;
friend class MDF_ListNodeOfDriverListOfARDriverTable;
friend class MDF_ListIteratorOfDriverListOfARDriverTable;
friend class MDF_DriverListOfARDriverTable;
friend class MDF_DataMapNodeOfTypeDriverListMapOfARDriverTable;
friend class MDF_DataMapIteratorOfTypeDriverListMapOfARDriverTable;
friend class MDF_TypeDriverListMapOfARDriverTable;

};





// other Inline functions and methods (like "C++: function call" methods)
//


#endif
