0031353: TDocStd_Application does not have api to set progress indicator
[occt.git] / src / PCDM / PCDM_ReadWriter_1.hxx
CommitLineData
42cf5bc1 1// Created on: 1997-12-09
2// Created by: Jean-Louis Frenkel
3// Copyright (c) 1997-1999 Matra Datavision
4// Copyright (c) 1999-2014 OPEN CASCADE SAS
5//
6// This file is part of Open CASCADE Technology software library.
7//
8// This library is free software; you can redistribute it and/or modify it under
9// the terms of the GNU Lesser General Public License version 2.1 as published
10// by the Free Software Foundation, with special exception defined in the file
11// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12// distribution for complete text of the license and disclaimer of any warranty.
13//
14// Alternatively, this file may be used under the terms of Open CASCADE
15// commercial license or contractual agreement.
16
17#ifndef _PCDM_ReadWriter_1_HeaderFile
18#define _PCDM_ReadWriter_1_HeaderFile
19
20#include <Standard.hxx>
21#include <Standard_Type.hxx>
22
23#include <PCDM_ReadWriter.hxx>
24#include <Standard_Integer.hxx>
25#include <PCDM_SequenceOfReference.hxx>
26#include <TColStd_SequenceOfExtendedString.hxx>
27class TCollection_AsciiString;
28class Storage_Data;
29class CDM_Document;
30class TCollection_ExtendedString;
83ae3591 31class Message_Messenger;
42cf5bc1 32
33
34class PCDM_ReadWriter_1;
35DEFINE_STANDARD_HANDLE(PCDM_ReadWriter_1, PCDM_ReadWriter)
36
37
38class PCDM_ReadWriter_1 : public PCDM_ReadWriter
39{
40
41public:
42
43
44 Standard_EXPORT PCDM_ReadWriter_1();
45
46 //! returns PCDM_ReadWriter_1.
79104795 47 Standard_EXPORT TCollection_AsciiString Version() const Standard_OVERRIDE;
42cf5bc1 48
79104795 49 Standard_EXPORT void WriteReferenceCounter (const Handle(Storage_Data)& aData, const Handle(CDM_Document)& aDocument) const Standard_OVERRIDE;
42cf5bc1 50
79104795 51 Standard_EXPORT void WriteReferences (const Handle(Storage_Data)& aData, const Handle(CDM_Document)& aDocument, const TCollection_ExtendedString& theReferencerFileName) const Standard_OVERRIDE;
42cf5bc1 52
79104795 53 Standard_EXPORT void WriteExtensions (const Handle(Storage_Data)& aData, const Handle(CDM_Document)& aDocument) const Standard_OVERRIDE;
42cf5bc1 54
79104795 55 Standard_EXPORT void WriteVersion (const Handle(Storage_Data)& aData, const Handle(CDM_Document)& aDocument) const Standard_OVERRIDE;
42cf5bc1 56
83ae3591 57 Standard_EXPORT Standard_Integer ReadReferenceCounter (const TCollection_ExtendedString& aFileName, const Handle(Message_Messenger)& theMsgDriver) const Standard_OVERRIDE;
42cf5bc1 58
83ae3591 59 Standard_EXPORT void ReadReferences (const TCollection_ExtendedString& aFileName, PCDM_SequenceOfReference& theReferences, const Handle(Message_Messenger)& theMsgDriver) const Standard_OVERRIDE;
42cf5bc1 60
83ae3591 61 Standard_EXPORT void ReadExtensions (const TCollection_ExtendedString& aFileName, TColStd_SequenceOfExtendedString& theExtensions, const Handle(Message_Messenger)& theMsgDriver) const Standard_OVERRIDE;
42cf5bc1 62
83ae3591 63 Standard_EXPORT Standard_Integer ReadDocumentVersion (const TCollection_ExtendedString& aFileName, const Handle(Message_Messenger)& theMsgDriver) const Standard_OVERRIDE;
42cf5bc1 64
65
66
67
92efcf78 68 DEFINE_STANDARD_RTTIEXT(PCDM_ReadWriter_1,PCDM_ReadWriter)
42cf5bc1 69
70protected:
71
72
73
74
75private:
76
77
83ae3591 78 Standard_EXPORT static void ReadUserInfo (const TCollection_ExtendedString& aFileName, const TCollection_AsciiString& Start, const TCollection_AsciiString& End, TColStd_SequenceOfExtendedString& theUserInfo, const Handle(Message_Messenger)& theMsgDriver);
42cf5bc1 79
80
81
82};
83
84
85
86
87
88
89
90#endif // _PCDM_ReadWriter_1_HeaderFile