blob: 86c8a2f8d4a237fdf4fbee7d52460f769e2163e4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
// This file is generated by WOK (CPPExt).
// Please do not edit this file; modify original file instead.
// The copyright and license terms as defined for the original file apply to
// this header file considered to be the "object code" form of the original source.
#ifndef _CDM_Application_HeaderFile
#define _CDM_Application_HeaderFile
#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_CDM_Application_HeaderFile
#include <Handle_CDM_Application.hxx>
#endif
#ifndef _Standard_Transient_HeaderFile
#include <Standard_Transient.hxx>
#endif
#ifndef _Handle_CDM_Document_HeaderFile
#include <Handle_CDM_Document.hxx>
#endif
#ifndef _Handle_CDM_MetaData_HeaderFile
#include <Handle_CDM_MetaData.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Handle_Resource_Manager_HeaderFile
#include <Handle_Resource_Manager.hxx>
#endif
#ifndef _Handle_CDM_MessageDriver_HeaderFile
#include <Handle_CDM_MessageDriver.hxx>
#endif
#ifndef _Standard_ExtString_HeaderFile
#include <Standard_ExtString.hxx>
#endif
class CDM_Reference;
class CDM_MetaData;
class CDM_Document;
class Resource_Manager;
class CDM_MessageDriver;
class TCollection_ExtendedString;
class CDM_Application : public Standard_Transient {
public:
//! the manager returned by this virtual method will be <br>
//! used to search for Format`.Retrieval resource items. <br>
//! <br>
Standard_EXPORT virtual Handle_Resource_Manager Resources() = 0;
//! By default returns a NullMessageDriver; <br>
Standard_EXPORT virtual Handle_CDM_MessageDriver MessageDriver() ;
//! this method is called before the update of a document. <br>
//! By default, writes in MessageDriver(). <br>
Standard_EXPORT virtual void BeginOfUpdate(const Handle(CDM_Document)& aDocument) ;
//! this method is called affter the update of a document. <br>
//! By default, writes in MessageDriver(). <br>
Standard_EXPORT virtual void EndOfUpdate(const Handle(CDM_Document)& aDocument,const Standard_Boolean Status,const TCollection_ExtendedString& ErrorString) ;
//! writes the string in the application MessagerDriver. <br>
Standard_EXPORT void Write(const Standard_ExtString aString) ;
friend class CDM_Reference;
friend class CDM_MetaData;
DEFINE_STANDARD_RTTI(CDM_Application)
protected:
Standard_EXPORT void SetDocumentVersion(const Handle(CDM_Document)& aDocument,const Handle(CDM_MetaData)& aMetaData) const;
Standard_EXPORT void SetReferenceCounter(const Handle(CDM_Document)& aDocument,const Standard_Integer aReferenceCounter) ;
private:
Standard_EXPORT virtual Handle_CDM_Document Retrieve(const Handle(CDM_MetaData)& aMetaData,const Standard_Boolean UseStorageConfiguration) = 0;
//! returns -1 if the metadata has no modification counter. <br>
Standard_EXPORT virtual Standard_Integer DocumentVersion(const Handle(CDM_MetaData)& aMetaData) = 0;
};
// other Inline functions and methods (like "C++: function call" methods)
#endif
|