// File generated by CPPExt (Transient)
//
//
//                     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 _PCDM_ReadWriter_1_HeaderFile
#define _PCDM_ReadWriter_1_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Handle_PCDM_ReadWriter_1_HeaderFile
#include <Handle_PCDM_ReadWriter_1.hxx>
#endif

#ifndef _PCDM_ReadWriter_HeaderFile
#include <PCDM_ReadWriter.hxx>
#endif
#ifndef _Handle_Storage_Data_HeaderFile
#include <Handle_Storage_Data.hxx>
#endif
#ifndef _Handle_CDM_Document_HeaderFile
#include <Handle_CDM_Document.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Handle_CDM_MessageDriver_HeaderFile
#include <Handle_CDM_MessageDriver.hxx>
#endif
class TCollection_AsciiString;
class Storage_Data;
class CDM_Document;
class TCollection_ExtendedString;
class CDM_MessageDriver;
class PCDM_SequenceOfReference;
class TColStd_SequenceOfExtendedString;



class PCDM_ReadWriter_1 : public PCDM_ReadWriter {

public:
 // Methods PUBLIC
 // 


Standard_EXPORT PCDM_ReadWriter_1();

//! returns PCDM_ReadWriter_1. <br>
Standard_EXPORT   TCollection_AsciiString Version() const;


Standard_EXPORT   void WriteReferenceCounter(const Handle(Storage_Data)& aData,const Handle(CDM_Document)& aDocument) const;


Standard_EXPORT   void WriteReferences(const Handle(Storage_Data)& aData,const Handle(CDM_Document)& aDocument,const TCollection_ExtendedString& theReferencerFileName) const;


Standard_EXPORT   void WriteExtensions(const Handle(Storage_Data)& aData,const Handle(CDM_Document)& aDocument) const;


Standard_EXPORT   void WriteVersion(const Handle(Storage_Data)& aData,const Handle(CDM_Document)& aDocument) const;


Standard_EXPORT   Standard_Integer ReadReferenceCounter(const TCollection_ExtendedString& aFileName,const Handle(CDM_MessageDriver)& theMsgDriver) const;


Standard_EXPORT   void ReadReferences(const TCollection_ExtendedString& aFileName,PCDM_SequenceOfReference& theReferences,const Handle(CDM_MessageDriver)& theMsgDriver) const;


Standard_EXPORT   void ReadExtensions(const TCollection_ExtendedString& aFileName,TColStd_SequenceOfExtendedString& theExtensions,const Handle(CDM_MessageDriver)& theMsgDriver) const;


Standard_EXPORT   Standard_Integer ReadDocumentVersion(const TCollection_ExtendedString& aFileName,const Handle(CDM_MessageDriver)& theMsgDriver) const;
//Standard_EXPORT ~PCDM_ReadWriter_1();




 // Type management
 //
 Standard_EXPORT const Handle(Standard_Type)& DynamicType() const;
 //Standard_EXPORT Standard_Boolean	       IsKind(const Handle(Standard_Type)&) const;

protected:

 // Methods PROTECTED
 // 


 // Fields PROTECTED
 //


private: 

 // Methods PRIVATE
 // 


Standard_EXPORT static  void ReadUserInfo(const TCollection_ExtendedString& aFileName,const TCollection_AsciiString& Start,const TCollection_AsciiString& End,TColStd_SequenceOfExtendedString& theUserInfo,const Handle(CDM_MessageDriver)& theMsgDriver) ;


 // Fields PRIVATE
 //


};





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


#endif
