summaryrefslogtreecommitdiff
path: root/inc/XmlLDrivers_DocumentStorageDriver.hxx
blob: 58e2b696ccbb3678d4d9d8caf592a81cdbcf2fe5 (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
106
// 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 _XmlLDrivers_DocumentStorageDriver_HeaderFile
#define _XmlLDrivers_DocumentStorageDriver_HeaderFile

#ifndef _Standard_HeaderFile
#include <Standard.hxx>
#endif
#ifndef _Standard_DefineHandle_HeaderFile
#include <Standard_DefineHandle.hxx>
#endif
#ifndef _Handle_XmlLDrivers_DocumentStorageDriver_HeaderFile
#include <Handle_XmlLDrivers_DocumentStorageDriver.hxx>
#endif

#ifndef _Handle_XmlMDF_ADriverTable_HeaderFile
#include <Handle_XmlMDF_ADriverTable.hxx>
#endif
#ifndef _XmlLDrivers_SequenceOfNamespaceDef_HeaderFile
#include <XmlLDrivers_SequenceOfNamespaceDef.hxx>
#endif
#ifndef _TCollection_ExtendedString_HeaderFile
#include <TCollection_ExtendedString.hxx>
#endif
#ifndef _XmlObjMgt_SRelocationTable_HeaderFile
#include <XmlObjMgt_SRelocationTable.hxx>
#endif
#ifndef _PCDM_StorageDriver_HeaderFile
#include <PCDM_StorageDriver.hxx>
#endif
#ifndef _Handle_CDM_Document_HeaderFile
#include <Handle_CDM_Document.hxx>
#endif
#ifndef _Standard_Boolean_HeaderFile
#include <Standard_Boolean.hxx>
#endif
#ifndef _XmlObjMgt_Element_HeaderFile
#include <XmlObjMgt_Element.hxx>
#endif
#ifndef _Standard_Integer_HeaderFile
#include <Standard_Integer.hxx>
#endif
#ifndef _Handle_CDM_MessageDriver_HeaderFile
#include <Handle_CDM_MessageDriver.hxx>
#endif
class XmlMDF_ADriverTable;
class TCollection_ExtendedString;
class CDM_Document;
class TCollection_AsciiString;
class CDM_MessageDriver;



class XmlLDrivers_DocumentStorageDriver : public PCDM_StorageDriver {

public:

  
  Standard_EXPORT   XmlLDrivers_DocumentStorageDriver(const TCollection_ExtendedString& theCopyright);
  
  Standard_EXPORT   virtual  TCollection_ExtendedString SchemaName() const;
  
  Standard_EXPORT   virtual  void Write(const Handle(CDM_Document)& theDocument,const TCollection_ExtendedString& theFileName) ;
  
  Standard_EXPORT   virtual  Handle_XmlMDF_ADriverTable AttributeDrivers(const Handle(CDM_MessageDriver)& theMsgDriver) ;




  DEFINE_STANDARD_RTTI(XmlLDrivers_DocumentStorageDriver)

protected:

  
  Standard_EXPORT   virtual  Standard_Boolean WriteToDomDocument(const Handle(CDM_Document)& theDocument,XmlObjMgt_Element& thePDoc,const TCollection_ExtendedString& theFileName) ;
  
  Standard_EXPORT   virtual  Standard_Integer MakeDocument(const Handle(CDM_Document)& theDocument,XmlObjMgt_Element& thePDoc) ;
  
  Standard_EXPORT     void AddNamespace(const TCollection_AsciiString& thePrefix,const TCollection_AsciiString& theURI) ;
  
  Standard_EXPORT   virtual  Standard_Boolean WriteShapeSection(XmlObjMgt_Element& thePDoc) ;

Handle_XmlMDF_ADriverTable myDrivers;
XmlObjMgt_SRelocationTable myRelocTable;


private: 


XmlLDrivers_SequenceOfNamespaceDef mySeqOfNS;
TCollection_ExtendedString myCopyright;


};





// other Inline functions and methods (like "C++: function call" methods)


#endif