summaryrefslogtreecommitdiff
path: root/src/XmlMDataXtd/XmlMDataXtd.cxx
blob: e96a9005a9bf82cde1da1cbb23116f507e605a7c (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
// File:        XmlMDataXtd.cxx
// Created:     Mon Aug 27 17:33:16 2001
// Author:      Alexander GRIGORIEV
// Copyright:   Open Cascade 2001
// History:
// modified     20.04.2009 Sergey Zaritchny

#include <XmlMDataXtd.ixx>

#include <XmlMDataXtd_ShapeDriver.hxx>
#include <XmlMDataXtd_PointDriver.hxx>
#include <XmlMDataXtd_AxisDriver.hxx>
#include <XmlMDataXtd_PlaneDriver.hxx>
#include <XmlMDataXtd_GeometryDriver.hxx>
#include <XmlMDataXtd_ConstraintDriver.hxx>
#include <XmlMDataXtd_PlacementDriver.hxx>
#include <XmlMDataXtd_PatternStdDriver.hxx>

static Standard_Integer myDocumentVersion = -1;
//=======================================================================
//function : AddDrivers
//purpose  : 
//=======================================================================
void XmlMDataXtd::AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable,
                              const Handle(CDM_MessageDriver)&   anMsgDrv)
{
  aDriverTable-> AddDriver (new XmlMDataXtd_ShapeDriver         (anMsgDrv));
  aDriverTable-> AddDriver (new XmlMDataXtd_PointDriver         (anMsgDrv));
  aDriverTable-> AddDriver (new XmlMDataXtd_AxisDriver          (anMsgDrv));
  aDriverTable-> AddDriver (new XmlMDataXtd_PlaneDriver         (anMsgDrv));
  aDriverTable-> AddDriver (new XmlMDataXtd_GeometryDriver      (anMsgDrv));
  aDriverTable-> AddDriver (new XmlMDataXtd_ConstraintDriver    (anMsgDrv));
  aDriverTable-> AddDriver (new XmlMDataXtd_PlacementDriver     (anMsgDrv));
  aDriverTable-> AddDriver (new XmlMDataXtd_PatternStdDriver    (anMsgDrv));
}

//=======================================================================
//function : SetDocumentVersion
//purpose  : Sets current document version
//=======================================================================
void XmlMDataXtd::SetDocumentVersion(const Standard_Integer theVersion)
{
  myDocumentVersion = theVersion;
}
//=======================================================================
//function : DocumentVersion
//purpose  : Retrieved document version
//=======================================================================
Standard_Integer XmlMDataXtd::DocumentVersion()
{
  return myDocumentVersion;
}