// 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 _PCDM_HeaderFile
#define _PCDM_HeaderFile

#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Handle_CDM_Document_HeaderFile
#include <Handle_CDM_Document.hxx>
#endif
#ifndef _Handle_PCDM_StorageDriver_HeaderFile
#include <Handle_PCDM_StorageDriver.hxx>
#endif
#ifndef _Handle_Storage_Schema_HeaderFile
#include <Handle_Storage_Schema.hxx>
#endif
#ifndef _Handle_CDM_Application_HeaderFile
#include <Handle_CDM_Application.hxx>
#endif
#ifndef _PCDM_TypeOfFileDriver_HeaderFile
#include <PCDM_TypeOfFileDriver.hxx>
#endif
#ifndef _PCDM_BaseDriverPointer_HeaderFile
#include <PCDM_BaseDriverPointer.hxx>
#endif
class CDM_Document;
class PCDM_StorageDriver;
class Storage_Schema;
class TCollection_ExtendedString;
class CDM_Application;
class TCollection_AsciiString;
class PCDM_Document;
class PCDM_SequenceOfDocument;
class PCDM_Reader;
class PCDM_Writer;
class PCDM_RetrievalDriver;
class PCDM_StorageDriver;
class PCDM_ReferenceIterator;
class PCDM_Reference;
class PCDM_SequenceOfReference;
class PCDM_ReadWriter;
class PCDM_ReadWriter_1;
class PCDM_SequenceNodeOfSequenceOfDocument;
class PCDM_SequenceNodeOfSequenceOfReference;


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


class PCDM  {

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
 // 


Standard_EXPORT static  Standard_Boolean FindStorageDriver(const Handle(CDM_Document)& aDocument) ;

//!   gets   in the  EuclidDesktop   resource  the plugin <br>
//!          identifier of the driver plugs the driver. <br>
//! <br>
Standard_EXPORT static  Handle_PCDM_StorageDriver StorageDriver(const Handle(CDM_Document)& aDocument) ;


Standard_EXPORT static  Handle_Storage_Schema Schema(const TCollection_ExtendedString& aSchemaName,const Handle(CDM_Application)& anApplication) ;





protected:

 // Methods PROTECTED
 // 


 // Fields PROTECTED
 //


private: 

 // Methods PRIVATE
 // 


Standard_EXPORT static  PCDM_TypeOfFileDriver FileDriverType(const TCollection_AsciiString& aFileName,PCDM_BaseDriverPointer& aBaseDriver) ;


 // Fields PRIVATE
 //

friend class PCDM_Document;
friend class PCDM_SequenceOfDocument;
friend class PCDM_Reader;
friend class PCDM_Writer;
friend class PCDM_RetrievalDriver;
friend class PCDM_StorageDriver;
friend class PCDM_ReferenceIterator;
friend class PCDM_Reference;
friend class PCDM_SequenceOfReference;
friend class PCDM_ReadWriter;
friend class PCDM_ReadWriter_1;
friend class PCDM_SequenceNodeOfSequenceOfDocument;
friend class PCDM_SequenceNodeOfSequenceOfReference;

};





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


#endif
