File indexing completed on 2026-09-15 09:16:48
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_Document.hxx>
0027 #include <NCollection_Sequence.hxx>
0028 class PCDM_Document;
0029 class CDM_Document;
0030
0031
0032
0033
0034
0035
0036
0037
0038
0039
0040
0041
0042
0043
0044
0045 class PCDM_StorageDriver : public PCDM_Writer
0046 {
0047
0048 public:
0049
0050 Standard_EXPORT virtual occ::handle<PCDM_Document> Make(
0051 const occ::handle<CDM_Document>& aDocument);
0052
0053
0054
0055 Standard_EXPORT virtual void Make(const occ::handle<CDM_Document>& aDocument,
0056 NCollection_Sequence<occ::handle<PCDM_Document>>& Documents);
0057
0058
0059
0060
0061
0062
0063
0064 Standard_EXPORT void Write(
0065 const occ::handle<CDM_Document>& aDocument,
0066 const TCollection_ExtendedString& aFileName,
0067 const Message_ProgressRange& theRange = Message_ProgressRange()) override;
0068
0069
0070 Standard_EXPORT void Write(
0071 const occ::handle<CDM_Document>& theDocument,
0072 Standard_OStream& theOStream,
0073 const Message_ProgressRange& theRange = Message_ProgressRange()) override;
0074
0075 Standard_EXPORT void SetFormat(const TCollection_ExtendedString& aformat);
0076
0077 Standard_EXPORT TCollection_ExtendedString GetFormat() const;
0078
0079 Standard_EXPORT bool IsError() const;
0080
0081 Standard_EXPORT void SetIsError(const bool theIsError);
0082
0083 Standard_EXPORT PCDM_StoreStatus GetStoreStatus() const;
0084
0085 Standard_EXPORT void SetStoreStatus(const PCDM_StoreStatus theStoreStatus);
0086
0087 DEFINE_STANDARD_RTTIEXT(PCDM_StorageDriver, PCDM_Writer)
0088
0089 private:
0090 TCollection_ExtendedString myFormat;
0091 bool myIsError;
0092 PCDM_StoreStatus myStoreStatus;
0093 };
0094
0095 #endif