0031353: TDocStd_Application does not have api to set progress indicator
[occt.git] / src / PCDM / PCDM_ReadWriter_1.hxx
... / ...
CommitLineData
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;
31class Message_Messenger;
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.
47 Standard_EXPORT TCollection_AsciiString Version() const Standard_OVERRIDE;
48
49 Standard_EXPORT void WriteReferenceCounter (const Handle(Storage_Data)& aData, const Handle(CDM_Document)& aDocument) const Standard_OVERRIDE;
50
51 Standard_EXPORT void WriteReferences (const Handle(Storage_Data)& aData, const Handle(CDM_Document)& aDocument, const TCollection_ExtendedString& theReferencerFileName) const Standard_OVERRIDE;
52
53 Standard_EXPORT void WriteExtensions (const Handle(Storage_Data)& aData, const Handle(CDM_Document)& aDocument) const Standard_OVERRIDE;
54
55 Standard_EXPORT void WriteVersion (const Handle(Storage_Data)& aData, const Handle(CDM_Document)& aDocument) const Standard_OVERRIDE;
56
57 Standard_EXPORT Standard_Integer ReadReferenceCounter (const TCollection_ExtendedString& aFileName, const Handle(Message_Messenger)& theMsgDriver) const Standard_OVERRIDE;
58
59 Standard_EXPORT void ReadReferences (const TCollection_ExtendedString& aFileName, PCDM_SequenceOfReference& theReferences, const Handle(Message_Messenger)& theMsgDriver) const Standard_OVERRIDE;
60
61 Standard_EXPORT void ReadExtensions (const TCollection_ExtendedString& aFileName, TColStd_SequenceOfExtendedString& theExtensions, const Handle(Message_Messenger)& theMsgDriver) const Standard_OVERRIDE;
62
63 Standard_EXPORT Standard_Integer ReadDocumentVersion (const TCollection_ExtendedString& aFileName, const Handle(Message_Messenger)& theMsgDriver) const Standard_OVERRIDE;
64
65
66
67
68 DEFINE_STANDARD_RTTIEXT(PCDM_ReadWriter_1,PCDM_ReadWriter)
69
70protected:
71
72
73
74
75private:
76
77
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);
79
80
81
82};
83
84
85
86
87
88
89
90#endif // _PCDM_ReadWriter_1_HeaderFile