1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-29 14:00:49 +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

View File

@@ -1,2 +1,8 @@
FILES
GUID.txt
XmlXCAFDrivers.cxx
XmlXCAFDrivers.hxx
XmlXCAFDrivers_DocumentRetrievalDriver.cxx
XmlXCAFDrivers_DocumentRetrievalDriver.hxx
XmlXCAFDrivers_DocumentStorageDriver.cxx
XmlXCAFDrivers_DocumentStorageDriver.hxx

View File

@@ -1,52 +0,0 @@
-- Created on: 2001-09-11
-- 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 XmlXCAFDrivers
---Purpose:
uses
TCollection,
CDM,
XmlDrivers,
XmlMDF
is
class DocumentRetrievalDriver;
class DocumentStorageDriver;
---Category: Factory methods
-- ==============================================================
Factory (aGUID: GUID from Standard)
returns Transient from Standard;
---C++: return const &
---Purpose: Depending from the ID, returns a list of storage
-- or retrieval attribute drivers. Used for plugin.
--
-- Standard data model drivers
-- ===========================
-- 47b0b826-d931-11d1-b5da-00a0c9064368 Transient-Persistent
-- 47b0b827-d931-11d1-b5da-00a0c9064368 Persistent-Transient
--
-- XCAF data model drivers
-- =================================
-- ed8793f8-3142-11d4-b9b5-0060b0ee281b Transient-Persistent
-- ed8793f9-3142-11d4-b9b5-0060b0ee281b Persistent-Transient
-- ed8793fa-3142-11d4-b9b5-0060b0ee281b XCAFSchema
end XmlXCAFDrivers;

View File

@@ -13,14 +13,15 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <XmlXCAFDrivers.ixx>
#include <XmlXCAFDrivers_DocumentStorageDriver.hxx>
#include <XmlXCAFDrivers_DocumentRetrievalDriver.hxx>
#include <Plugin_Macro.hxx>
#include <Standard_Failure.hxx>
#include <Standard_GUID.hxx>
#include <Standard_Transient.hxx>
#include <XmlDrivers.hxx>
#include <Plugin_Macro.hxx>
#include <XmlXCAFDrivers.hxx>
#include <XmlXCAFDrivers_DocumentRetrievalDriver.hxx>
#include <XmlXCAFDrivers_DocumentStorageDriver.hxx>
static Standard_GUID XSStorageDriver ("f78ff496-a779-11d5-aab4-0050044b1af1");
static Standard_GUID XSRetrievalDriver("f78ff497-a779-11d5-aab4-0050044b1af1");

View File

@@ -0,0 +1,77 @@
// Created on: 2001-09-11
// 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 _XmlXCAFDrivers_HeaderFile
#define _XmlXCAFDrivers_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
class Standard_Transient;
class Standard_GUID;
class XmlXCAFDrivers_DocumentRetrievalDriver;
class XmlXCAFDrivers_DocumentStorageDriver;
class XmlXCAFDrivers
{
public:
DEFINE_STANDARD_ALLOC
//! Depending from the ID, returns a list of storage
//! or retrieval attribute drivers. Used for plugin.
//!
//! Standard data model drivers
//! ===========================
//! 47b0b826-d931-11d1-b5da-00a0c9064368 Transient-Persistent
//! 47b0b827-d931-11d1-b5da-00a0c9064368 Persistent-Transient
//!
//! XCAF data model drivers
//! =================================
//! ed8793f8-3142-11d4-b9b5-0060b0ee281b Transient-Persistent
//! ed8793f9-3142-11d4-b9b5-0060b0ee281b Persistent-Transient
//! ed8793fa-3142-11d4-b9b5-0060b0ee281b XCAFSchema
Standard_EXPORT static const Handle(Standard_Transient)& Factory (const Standard_GUID& aGUID);
protected:
private:
friend class XmlXCAFDrivers_DocumentRetrievalDriver;
friend class XmlXCAFDrivers_DocumentStorageDriver;
};
#endif // _XmlXCAFDrivers_HeaderFile

View File

@@ -1,31 +0,0 @@
-- Created on: 2001-09-11
-- 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 DocumentRetrievalDriver from XmlXCAFDrivers
inherits DocumentRetrievalDriver from XmlDrivers
---Purpose: retrieval driver of a XS document
uses
ADriverTable from XmlMDF,
MessageDriver from CDM
is
Create returns DocumentRetrievalDriver from XmlXCAFDrivers;
AttributeDrivers(me : mutable; theMsgDriver: MessageDriver from CDM)
returns ADriverTable from XmlMDF is redefined;
end DocumentRetrievalDriver;

View File

@@ -13,10 +13,13 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <XmlXCAFDrivers_DocumentRetrievalDriver.ixx>
#include <CDM_MessageDriver.hxx>
#include <Standard_Type.hxx>
#include <XmlDrivers.hxx>
#include <XmlMDF_ADriverTable.hxx>
#include <XmlMXCAFDoc.hxx>
#include <XmlXCAFDrivers_DocumentRetrievalDriver.hxx>
//=======================================================================
//function : XmlXCAFDrivers_DocumentRetrievalDriver

View File

@@ -0,0 +1,64 @@
// Created on: 2001-09-11
// 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 _XmlXCAFDrivers_DocumentRetrievalDriver_HeaderFile
#define _XmlXCAFDrivers_DocumentRetrievalDriver_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <XmlDrivers_DocumentRetrievalDriver.hxx>
class XmlMDF_ADriverTable;
class CDM_MessageDriver;
class XmlXCAFDrivers_DocumentRetrievalDriver;
DEFINE_STANDARD_HANDLE(XmlXCAFDrivers_DocumentRetrievalDriver, XmlDrivers_DocumentRetrievalDriver)
//! retrieval driver of a XS document
class XmlXCAFDrivers_DocumentRetrievalDriver : public XmlDrivers_DocumentRetrievalDriver
{
public:
Standard_EXPORT XmlXCAFDrivers_DocumentRetrievalDriver();
Standard_EXPORT virtual Handle(XmlMDF_ADriverTable) AttributeDrivers (const Handle(CDM_MessageDriver)& theMsgDriver) Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(XmlXCAFDrivers_DocumentRetrievalDriver,XmlDrivers_DocumentRetrievalDriver)
protected:
private:
};
#endif // _XmlXCAFDrivers_DocumentRetrievalDriver_HeaderFile

View File

@@ -1,33 +0,0 @@
-- Created on: 2001-09-11
-- 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 DocumentStorageDriver from XmlXCAFDrivers
inherits DocumentStorageDriver from XmlDrivers
---Purpose: storage driver of a XS document
uses
ExtendedString from TCollection,
ADriverTable from XmlMDF,
MessageDriver from CDM
is
Create (theCopyright: ExtendedString from TCollection)
returns DocumentStorageDriver from XmlXCAFDrivers;
AttributeDrivers(me : mutable; theMsgDriver: MessageDriver from CDM)
returns ADriverTable from XmlMDF is redefined;
end DocumentStorageDriver;

View File

@@ -13,10 +13,14 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <XmlXCAFDrivers_DocumentStorageDriver.ixx>
#include <CDM_MessageDriver.hxx>
#include <Standard_Type.hxx>
#include <TCollection_ExtendedString.hxx>
#include <XmlDrivers.hxx>
#include <XmlMDF_ADriverTable.hxx>
#include <XmlMXCAFDoc.hxx>
#include <XmlXCAFDrivers_DocumentStorageDriver.hxx>
//=======================================================================
//function : XmlXCAFDrivers_DocumentStorageDriver

View File

@@ -0,0 +1,65 @@
// Created on: 2001-09-11
// 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 _XmlXCAFDrivers_DocumentStorageDriver_HeaderFile
#define _XmlXCAFDrivers_DocumentStorageDriver_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <XmlDrivers_DocumentStorageDriver.hxx>
class TCollection_ExtendedString;
class XmlMDF_ADriverTable;
class CDM_MessageDriver;
class XmlXCAFDrivers_DocumentStorageDriver;
DEFINE_STANDARD_HANDLE(XmlXCAFDrivers_DocumentStorageDriver, XmlDrivers_DocumentStorageDriver)
//! storage driver of a XS document
class XmlXCAFDrivers_DocumentStorageDriver : public XmlDrivers_DocumentStorageDriver
{
public:
Standard_EXPORT XmlXCAFDrivers_DocumentStorageDriver(const TCollection_ExtendedString& theCopyright);
Standard_EXPORT virtual Handle(XmlMDF_ADriverTable) AttributeDrivers (const Handle(CDM_MessageDriver)& theMsgDriver) Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(XmlXCAFDrivers_DocumentStorageDriver,XmlDrivers_DocumentStorageDriver)
protected:
private:
};
#endif // _XmlXCAFDrivers_DocumentStorageDriver_HeaderFile