File indexing completed on 2026-05-18 08:30:20
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 class PCDM_StorageDriver;
0031 DEFINE_STANDARD_HANDLE(PCDM_StorageDriver, PCDM_Writer)
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045
0046
0047 class PCDM_StorageDriver : public PCDM_Writer
0048 {
0049
0050 public:
0051
0052 Standard_EXPORT virtual Handle(PCDM_Document) Make(const Handle(CDM_Document)& aDocument);
0053
0054
0055
0056 Standard_EXPORT virtual void Make(const Handle(CDM_Document)& aDocument,
0057 PCDM_SequenceOfDocument& Documents);
0058
0059
0060
0061
0062
0063
0064
0065 Standard_EXPORT virtual void Write(
0066 const Handle(CDM_Document)& aDocument,
0067 const TCollection_ExtendedString& aFileName,
0068 const Message_ProgressRange& theRange = Message_ProgressRange()) Standard_OVERRIDE;
0069
0070
0071 Standard_EXPORT virtual void Write(
0072 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 DEFINE_STANDARD_RTTIEXT(PCDM_StorageDriver, PCDM_Writer)
0089
0090 protected:
0091 private:
0092 TCollection_ExtendedString myFormat;
0093 Standard_Boolean myIsError;
0094 PCDM_StoreStatus myStoreStatus;
0095 };
0096
0097 #endif