// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to 
// this header file considered to be the "object code" form of the original source.

#ifndef _BinMDF_ADriver_HeaderFile
#define _BinMDF_ADriver_HeaderFile

#include <Standard.hxx>
#include <Standard_DefineHandle.hxx>
#include <Handle_BinMDF_ADriver.hxx>

#include <Handle_CDM_MessageDriver.hxx>
#include <TCollection_AsciiString.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_CString.hxx>
#include <Handle_TDF_Attribute.hxx>
#include <Handle_Standard_Type.hxx>
#include <Standard_Boolean.hxx>
#include <BinObjMgt_RRelocationTable.hxx>
#include <BinObjMgt_SRelocationTable.hxx>
class CDM_MessageDriver;
class TDF_Attribute;
class Standard_Type;
class TCollection_AsciiString;
class BinObjMgt_Persistent;
class TCollection_ExtendedString;


//! Attribute Storage/Retrieval Driver.
class BinMDF_ADriver : public MMgt_TShared
{

public:

  
  //! Creates a new attribute from TDF.
  Standard_EXPORT virtual   Handle(TDF_Attribute) NewEmpty()  const = 0;
  
  //! Returns the type of source object,
  //! inheriting from Attribute from TDF.
     const  Handle(Standard_Type)& SourceType()  const;
  
  //! Returns the type name of the attribute object
     const  TCollection_AsciiString& TypeName()  const;
  
  //! Translate the contents of <aSource> and put it
  //! into <aTarget>, using the relocation table
  //! <aRelocTable> to keep the sharings.
  Standard_EXPORT virtual   Standard_Boolean Paste (const BinObjMgt_Persistent& aSource, const Handle(TDF_Attribute)& aTarget, BinObjMgt_RRelocationTable& aRelocTable)  const = 0;
  
  //! Translate the contents of <aSource> and put it
  //! into <aTarget>, using the relocation table
  //! <aRelocTable> to keep the sharings.
  Standard_EXPORT virtual   void Paste (const Handle(TDF_Attribute)& aSource, BinObjMgt_Persistent& aTarget, BinObjMgt_SRelocationTable& aRelocTable)  const = 0;
  
  //! Send message to Application (usually when error occurres)
  Standard_EXPORT   void WriteMessage (const TCollection_ExtendedString& theMessage)  const;




  DEFINE_STANDARD_RTTI(BinMDF_ADriver)

protected:

  
  Standard_EXPORT BinMDF_ADriver(const Handle(CDM_MessageDriver)& theMsgDriver, const Standard_CString theName = NULL);

  TCollection_AsciiString myTypeName;


private: 


  Handle(CDM_MessageDriver) myMessageDriver;


};


#include <BinMDF_ADriver.lxx>





#endif // _BinMDF_ADriver_HeaderFile
