mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
Integration of OCCT 6.5.0 from SVN
This commit is contained in:
39
src/XmlMNaming/XmlMNaming.cxx
Executable file
39
src/XmlMNaming/XmlMNaming.cxx
Executable file
@@ -0,0 +1,39 @@
|
||||
// File: XmlMNaming.cxx
|
||||
// Created: 31.07.01 20:34:58
|
||||
// Author: Alexander GRIGORIEV
|
||||
// Copyright: Open Cascade 2001
|
||||
// History:
|
||||
|
||||
#include <XmlMNaming.ixx>
|
||||
|
||||
#include <XmlMNaming_NamedShapeDriver.hxx>
|
||||
#include <XmlMNaming_NamingDriver.hxx>
|
||||
|
||||
static Standard_Integer myDocumentVersion = -1;
|
||||
//=======================================================================
|
||||
//function : AddStorageDrivers
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
void XmlMNaming::AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable,
|
||||
const Handle(CDM_MessageDriver)& aMessageDriver)
|
||||
{
|
||||
aDriverTable->AddDriver (new XmlMNaming_NamedShapeDriver(aMessageDriver));
|
||||
aDriverTable->AddDriver (new XmlMNaming_NamingDriver(aMessageDriver));
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : SetDocumentVersion
|
||||
//purpose : Sets current document version
|
||||
//=======================================================================
|
||||
void XmlMNaming::SetDocumentVersion(const Standard_Integer theVersion)
|
||||
{
|
||||
myDocumentVersion = theVersion;
|
||||
}
|
||||
//=======================================================================
|
||||
//function : DocumentVersion
|
||||
//purpose : Retrieved document version
|
||||
//=======================================================================
|
||||
Standard_Integer XmlMNaming::DocumentVersion()
|
||||
{
|
||||
return myDocumentVersion;
|
||||
}
|
Reference in New Issue
Block a user