1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-09-08 14:17:06 +03:00

0024002: Overall code and build procedure refactoring -- automatic

Automatic upgrade of OCCT code by command "occt_upgrade . -nocdl":
- WOK-generated header files from inc and sources from drv are moved to src
- CDL files removed
- All packages are converted to nocdlpack
This commit is contained in:
abv
2015-07-12 07:42:38 +03:00
parent 543a996496
commit 42cf5bc1ca
15354 changed files with 623957 additions and 509844 deletions

4
src/XmlMDocStd/FILES Normal file
View File

@@ -0,0 +1,4 @@
XmlMDocStd.cxx
XmlMDocStd.hxx
XmlMDocStd_XLinkDriver.cxx
XmlMDocStd_XLinkDriver.hxx

View File

@@ -1,36 +0,0 @@
-- Created on: 2001-09-05
-- Created by: Julia DOROVSKIKH
-- Copyright (c) 2001-2014 OPEN CASCADE SAS
--
-- This file is part of Open CASCADE Technology software library.
--
-- This library is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License version 2.1 as published
-- by the Free Software Foundation, with special exception defined in the file
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-- distribution for complete text of the license and disclaimer of any warranty.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
package XmlMDocStd
---Purpose: Driver for TDocStd_XLink
uses
TDF,
CDM,
XmlMDF,
XmlObjMgt
is
---Category: Classes
-- =============================================================
class XLinkDriver;
AddDrivers (aDriverTable : ADriverTable from XmlMDF;
theMessageDriver: MessageDriver from CDM);
---Purpose: Adds the attribute drivers to <aDriverTable>.
end XmlMDocStd;

View File

@@ -13,8 +13,10 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <XmlMDocStd.ixx>
#include <CDM_MessageDriver.hxx>
#include <XmlMDF_ADriverTable.hxx>
#include <XmlMDocStd.hxx>
#include <XmlMDocStd_XLinkDriver.hxx>
//=======================================================================

View File

@@ -0,0 +1,63 @@
// Created on: 2001-09-05
// Created by: Julia DOROVSKIKH
// Copyright (c) 2001-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _XmlMDocStd_HeaderFile
#define _XmlMDocStd_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
class XmlMDF_ADriverTable;
class CDM_MessageDriver;
class XmlMDocStd_XLinkDriver;
//! Driver for TDocStd_XLink
class XmlMDocStd
{
public:
DEFINE_STANDARD_ALLOC
//! Adds the attribute drivers to <aDriverTable>.
Standard_EXPORT static void AddDrivers (const Handle(XmlMDF_ADriverTable)& aDriverTable, const Handle(CDM_MessageDriver)& theMessageDriver);
protected:
private:
friend class XmlMDocStd_XLinkDriver;
};
#endif // _XmlMDocStd_HeaderFile

View File

@@ -1,42 +0,0 @@
-- Created on: 2001-09-04
-- Created by: Julia DOROVSKIKH
-- Copyright (c) 2001-2014 OPEN CASCADE SAS
--
-- This file is part of Open CASCADE Technology software library.
--
-- This library is free software; you can redistribute it and/or modify it under
-- the terms of the GNU Lesser General Public License version 2.1 as published
-- by the Free Software Foundation, with special exception defined in the file
-- OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
-- distribution for complete text of the license and disclaimer of any warranty.
--
-- Alternatively, this file may be used under the terms of Open CASCADE
-- commercial license or contractual agreement.
class XLinkDriver from XmlMDocStd inherits ADriver from XmlMDF
---Purpose: Attribute Driver.
uses
SRelocationTable from XmlObjMgt,
RRelocationTable from XmlObjMgt,
Persistent from XmlObjMgt,
MessageDriver from CDM,
Attribute from TDF
is
Create (theMessageDriver:MessageDriver from CDM)
returns XLinkDriver from XmlMDocStd;
NewEmpty (me) returns Attribute from TDF;
Paste(me; Source : Persistent from XmlObjMgt;
Target : Attribute from TDF;
RelocTable : out RRelocationTable from XmlObjMgt)
returns Boolean from Standard;
Paste(me; Source : Attribute from TDF;
Target : in out Persistent from XmlObjMgt;
RelocTable : out SRelocationTable from XmlObjMgt);
end XLinkDriver;

View File

@@ -13,13 +13,16 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <XmlMDocStd_XLinkDriver.ixx>
#include <XmlObjMgt.hxx>
#include <TDocStd_XLink.hxx>
#include <TDF_Tool.hxx>
#include <CDM_MessageDriver.hxx>
#include <Standard_Type.hxx>
#include <TDF_Attribute.hxx>
#include <TDF_Label.hxx>
#include <TDF_Tool.hxx>
#include <TDocStd_XLink.hxx>
#include <XmlMDocStd_XLinkDriver.hxx>
#include <XmlObjMgt.hxx>
#include <XmlObjMgt_Persistent.hxx>
IMPLEMENT_DOMSTRING (DocEntryString, "documentEntry")

View File

@@ -0,0 +1,72 @@
// Created on: 2001-09-04
// Created by: Julia DOROVSKIKH
// Copyright (c) 2001-2014 OPEN CASCADE SAS
//
// This file is part of Open CASCADE Technology software library.
//
// This library is free software; you can redistribute it and/or modify it under
// the terms of the GNU Lesser General Public License version 2.1 as published
// by the Free Software Foundation, with special exception defined in the file
// OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
// distribution for complete text of the license and disclaimer of any warranty.
//
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#ifndef _XmlMDocStd_XLinkDriver_HeaderFile
#define _XmlMDocStd_XLinkDriver_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <XmlMDF_ADriver.hxx>
#include <Standard_Boolean.hxx>
#include <XmlObjMgt_RRelocationTable.hxx>
#include <XmlObjMgt_SRelocationTable.hxx>
class CDM_MessageDriver;
class TDF_Attribute;
class XmlObjMgt_Persistent;
class XmlMDocStd_XLinkDriver;
DEFINE_STANDARD_HANDLE(XmlMDocStd_XLinkDriver, XmlMDF_ADriver)
//! Attribute Driver.
class XmlMDocStd_XLinkDriver : public XmlMDF_ADriver
{
public:
Standard_EXPORT XmlMDocStd_XLinkDriver(const Handle(CDM_MessageDriver)& theMessageDriver);
Standard_EXPORT Handle(TDF_Attribute) NewEmpty() const;
Standard_EXPORT Standard_Boolean Paste (const XmlObjMgt_Persistent& Source, const Handle(TDF_Attribute)& Target, XmlObjMgt_RRelocationTable& RelocTable) const;
Standard_EXPORT void Paste (const Handle(TDF_Attribute)& Source, XmlObjMgt_Persistent& Target, XmlObjMgt_SRelocationTable& RelocTable) const;
DEFINE_STANDARD_RTTI(XmlMDocStd_XLinkDriver,XmlMDF_ADriver)
protected:
private:
};
#endif // _XmlMDocStd_XLinkDriver_HeaderFile