File indexing completed on 2025-01-18 10:04:37
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _PCDM_StorageDriver_HeaderFile
0018 #define _PCDM_StorageDriver_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022
0023 #include <TCollection_ExtendedString.hxx>
0024 #include <PCDM_StoreStatus.hxx>
0025 #include <PCDM_Writer.hxx>
0026 #include <PCDM_SequenceOfDocument.hxx>
0027 class PCDM_Document;
0028 class CDM_Document;
0029
0030
0031 class PCDM_StorageDriver;
0032 DEFINE_STANDARD_HANDLE(PCDM_StorageDriver, PCDM_Writer)
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047
0048 class PCDM_StorageDriver : public PCDM_Writer
0049 {
0050
0051 public:
0052
0053
0054
0055 Standard_EXPORT virtual Handle(PCDM_Document) Make (const Handle(CDM_Document)& aDocument);
0056
0057
0058
0059 Standard_EXPORT virtual void Make (const Handle(CDM_Document)& aDocument, PCDM_SequenceOfDocument& Documents);
0060
0061
0062
0063
0064
0065
0066
0067 Standard_EXPORT virtual void Write (const Handle(CDM_Document)& aDocument,
0068 const TCollection_ExtendedString& aFileName,
0069 const Message_ProgressRange& theRange = Message_ProgressRange()) Standard_OVERRIDE;
0070
0071
0072 Standard_EXPORT virtual void Write (const Handle(CDM_Document)& theDocument,
0073 Standard_OStream& theOStream,
0074 const Message_ProgressRange& theRange = Message_ProgressRange()) Standard_OVERRIDE;
0075
0076 Standard_EXPORT void SetFormat (const TCollection_ExtendedString& aformat);
0077
0078 Standard_EXPORT TCollection_ExtendedString GetFormat() const;
0079
0080 Standard_EXPORT Standard_Boolean IsError() const;
0081
0082 Standard_EXPORT void SetIsError (const Standard_Boolean theIsError);
0083
0084 Standard_EXPORT PCDM_StoreStatus GetStoreStatus() const;
0085
0086 Standard_EXPORT void SetStoreStatus (const PCDM_StoreStatus theStoreStatus);
0087
0088
0089
0090
0091 DEFINE_STANDARD_RTTIEXT(PCDM_StorageDriver,PCDM_Writer)
0092
0093 protected:
0094
0095
0096
0097
0098 private:
0099
0100
0101 TCollection_ExtendedString myFormat;
0102 Standard_Boolean myIsError;
0103 PCDM_StoreStatus myStoreStatus;
0104
0105
0106 };
0107
0108
0109
0110
0111
0112
0113
0114 #endif