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,30 +0,0 @@
-- Created on: 1994-09-21
-- Created by: Christian CAILLET
-- Copyright (c) 1994-1999 Matra Datavision
-- Copyright (c) 1999-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 APIHeaderSection
---Purpose : This package gives the means to access to the Header of a
-- Step Model
uses Standard, TCollection, Interface, IFSelect, StepData, HeaderSection
is
class MakeHeader; -- which provide basic access services to Step Header
class EditHeader; -- to edit a Step Header
end APIHeaderSection;

View File

@@ -1,38 +0,0 @@
-- Created on: 1998-07-08
-- Created by: Christian CAILLET
-- Copyright (c) 1998-1999 Matra Datavision
-- Copyright (c) 1999-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 EditHeader from APIHeaderSection inherits Editor from IFSelect
uses Transient, AsciiString, HAsciiString, InterfaceModel, EditForm
is
Create returns EditHeader;
Label (me) returns AsciiString;
Recognize (me; form : EditForm) returns Boolean;
StringValue (me; form : EditForm; num : Integer)
returns HAsciiString from TCollection;
Apply (me; form : EditForm; ent : Transient; model : InterfaceModel)
returns Boolean;
Load (me; form : EditForm; ent : Transient; model : InterfaceModel)
returns Boolean;
end EditHeader;

View File

@@ -11,11 +11,17 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <APIHeaderSection_EditHeader.ixx>
#include <Interface_TypedValue.hxx>
#include <APIHeaderSection_EditHeader.hxx>
#include <APIHeaderSection_MakeHeader.hxx>
#include <IFSelect_EditForm.hxx>
#include <Interface_InterfaceModel.hxx>
#include <Interface_TypedValue.hxx>
#include <Standard_Transient.hxx>
#include <Standard_Type.hxx>
#include <StepData_StepModel.hxx>
#include <TCollection_AsciiString.hxx>
#include <TCollection_HAsciiString.hxx>
static Standard_Boolean IsTimeStamp
(const Handle(TCollection_HAsciiString)& val)

View File

@@ -0,0 +1,78 @@
// Created on: 1998-07-08
// Created by: Christian CAILLET
// Copyright (c) 1998-1999 Matra Datavision
// Copyright (c) 1999-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 _APIHeaderSection_EditHeader_HeaderFile
#define _APIHeaderSection_EditHeader_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <IFSelect_Editor.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
class TCollection_AsciiString;
class IFSelect_EditForm;
class TCollection_HAsciiString;
class Standard_Transient;
class Interface_InterfaceModel;
class APIHeaderSection_EditHeader;
DEFINE_STANDARD_HANDLE(APIHeaderSection_EditHeader, IFSelect_Editor)
class APIHeaderSection_EditHeader : public IFSelect_Editor
{
public:
Standard_EXPORT APIHeaderSection_EditHeader();
Standard_EXPORT TCollection_AsciiString Label() const;
Standard_EXPORT Standard_Boolean Recognize (const Handle(IFSelect_EditForm)& form) const;
Standard_EXPORT Handle(TCollection_HAsciiString) StringValue (const Handle(IFSelect_EditForm)& form, const Standard_Integer num) const;
Standard_EXPORT Standard_Boolean Apply (const Handle(IFSelect_EditForm)& form, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const;
Standard_EXPORT Standard_Boolean Load (const Handle(IFSelect_EditForm)& form, const Handle(Standard_Transient)& ent, const Handle(Interface_InterfaceModel)& model) const;
DEFINE_STANDARD_RTTI(APIHeaderSection_EditHeader,IFSelect_Editor)
protected:
private:
};
#endif // _APIHeaderSection_EditHeader_HeaderFile

View File

@@ -1,168 +0,0 @@
-- Created on: 1993-08-12
-- Created by: Frederic MAUPAS
-- Copyright (c) 1993-1999 Matra Datavision
-- Copyright (c) 1999-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 MakeHeader from APIHeaderSection
---Purpose : This class allows to consult and prepare/edit data stored in
-- a Step Model Header
uses
StepModel from StepData,
Protocol from Interface,
FileName from HeaderSection,
FileSchema from HeaderSection,
FileDescription from HeaderSection,
Integer from Standard,
Boolean from Standard,
HAsciiString from TCollection,
HArray1OfHAsciiString from Interface
-- raises NotDone from StdFail
is
Create(shapetype : Integer = 0) returns MakeHeader;
---Purpose : Prepares a new MakeHeader from scratch
Create(model : StepModel) returns MakeHeader;
---Purpose : Prepares a MakeHeader from the content of a StepModel
-- See IsDone to know if the Header is well defined
Init (me : in out; nameval : CString);
---Purpose : Cancels the former definition and gives a FileName
-- To be used when a Model has no well defined Header
IsDone(me) returns Boolean;
---Purpose : Returns True if all data have been defined (see also
-- HasFn, HasFs, HasFd)
Apply (me; model : StepModel);
---Purpose : Creates an empty header for a new
-- STEP model and allows the header fields to be completed.
NewModel (me; protocol : Protocol from Interface) returns StepModel;
---Purpose : Builds a Header, creates a new StepModel, then applies the
-- Header to the StepModel
-- The Schema Name is taken from the Protocol (if it inherits
-- from StepData, else it is left in blanks)
--- Specific Methods for FileName Entity
HasFn (me) returns Boolean;
---Purpose: Checks whether there is a
-- file_name entity. Returns True if there is one.
FnValue (me) returns FileName from HeaderSection;
---Purpose: Returns the file_name entity.
-- Returns an empty entity if the file_name entity is not initialized.
SetName(me : in out; aName : HAsciiString);
Name (me) returns HAsciiString;
---Purpose: Returns the name attribute for the file_name entity.
SetTimeStamp(me : in out; aTimeStamp : HAsciiString);
TimeStamp (me) returns HAsciiString;
--- Purpose: Returns the value of the time_stamp attribute for the file_name entity.
SetAuthor(me : in out; aAuthor : HArray1OfHAsciiString);
SetAuthorValue(me : in out; num : Integer; aAuthor : HAsciiString);
Author (me) returns HArray1OfHAsciiString;
AuthorValue (me; num : Integer) returns HAsciiString;
---Purpose: Returns the value of the name attribute for the file_name entity.
NbAuthor (me) returns Integer;
---Purpose: Returns the number of values for the author attribute in the file_name entity.
SetOrganization(me : in out;
aOrganization : HArray1OfHAsciiString);
SetOrganizationValue(me : in out; num : Integer;
aOrganization : HAsciiString);
Organization (me) returns HArray1OfHAsciiString;
OrganizationValue (me; num : Integer) returns HAsciiString;
--- Purpose: Returns the value of attribute
-- organization for the file_name entity.
NbOrganization (me) returns Integer;
--- Purpose: Returns the number of values for
-- the organization attribute in the file_name entity.
SetPreprocessorVersion(me : in out;
aPreprocessorVersion : HAsciiString);
PreprocessorVersion (me) returns HAsciiString;
---Purpose: Returns the name of the preprocessor_version for the file_name entity.
SetOriginatingSystem(me : in out; aOriginatingSystem : HAsciiString);
OriginatingSystem (me) returns HAsciiString;
SetAuthorisation(me : in out; aAuthorisation : HAsciiString);
Authorisation (me) returns HAsciiString;
---Purpose: Returns the value of the authorization attribute for the file_name entity.
HasFs (me) returns Boolean;
---Purpose: Checks whether there is a file_schema entity. Returns True if there is one.
FsValue (me) returns FileSchema from HeaderSection;
---Purpose: Returns the file_schema entity. Returns an empty entity if the file_schema entity is not initialized.
SetSchemaIdentifiers(me : in out; aSchemaIdentifiers : HArray1OfHAsciiString);
SetSchemaIdentifiersValue(me : in out; num : Integer;
aSchemaIdentifier : HAsciiString);
SchemaIdentifiers (me) returns HArray1OfHAsciiString;
SchemaIdentifiersValue (me; num : Integer) returns HAsciiString;
--- Purpose: Returns the value of the schema_identifier attribute for the file_schema entity.
NbSchemaIdentifiers (me) returns Integer;
---Purpose: Returns the number of values for the schema_identifier attribute in the file_schema entity.
AddSchemaIdentifier (me: in out; aSchemaIdentifier : HAsciiString);
---Purpose: Add a subname of schema (if not yet in the list)
--- Specific Methods for FileDescription Entity
HasFd (me) returns Boolean;
--- Purpose: Checks whether there is a file_description entity. Returns True if there is one.
FdValue (me) returns FileDescription from HeaderSection;
---Purpose: Returns the file_description
-- entity. Returns an empty entity if the file_description entity is not initialized.
SetDescription(me : in out;
aDescription : HArray1OfHAsciiString);
SetDescriptionValue(me : in out; num : Integer;
aDescription : HAsciiString);
Description (me) returns HArray1OfHAsciiString;
DescriptionValue (me; num : Integer) returns HAsciiString;
--- Purpose: Returns the value of the
-- description attribute for the file_description entity.
NbDescription (me) returns Integer;
--- Purpose: Returns the number of values for
-- the file_description entity in the STEP file header.
SetImplementationLevel(me : in out;
aImplementationLevel : HAsciiString);
ImplementationLevel (me) returns HAsciiString;
---Purpose: Returns the value of the
-- implementation_level attribute for the file_description entity.
fields
done : Boolean;
fn : FileName;
fs : FileSchema;
fd : FileDescription;
end MakeHeader;

View File

@@ -17,26 +17,22 @@
//#58 rln 28.12.98 STEP header fields (NOTE: more parameterization is necessary)
//pdn 11.01.99 including <stdio.h> for compilation on NT
#include <stdio.h>
#include <APIHeaderSection_MakeHeader.ixx>
#include <TCollection_HAsciiString.hxx>
#include <Interface_EntityIterator.hxx>
#include <HeaderSection_FileSchema.hxx>
#include <HeaderSection_FileName.hxx>
#include <APIHeaderSection_MakeHeader.hxx>
#include <HeaderSection_FileDescription.hxx>
#include <StepData_Protocol.hxx>
#include <HeaderSection_FileName.hxx>
#include <HeaderSection_FileSchema.hxx>
#include <Interface_EntityIterator.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <Interface_MSG.hxx>
#include <Interface_Version.hxx>
#include <Interface_Macros.hxx>
#include <Interface_MSG.hxx>
#include <Interface_Protocol.hxx>
#include <Interface_Version.hxx>
#include <StepData_Protocol.hxx>
#include <StepData_StepModel.hxx>
#include <TCollection_HAsciiString.hxx>
#include <stdio.h>
// This is a generic header for any STEP sheme
static Handle(TCollection_HAsciiString) nulstr;
static Handle(Interface_HArray1OfHAsciiString) nularr;

View File

@@ -0,0 +1,203 @@
// Created on: 1993-08-12
// Created by: Frederic MAUPAS
// Copyright (c) 1993-1999 Matra Datavision
// Copyright (c) 1999-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 _APIHeaderSection_MakeHeader_HeaderFile
#define _APIHeaderSection_MakeHeader_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
#include <Standard_Boolean.hxx>
#include <Standard_Integer.hxx>
#include <Standard_CString.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
class HeaderSection_FileName;
class HeaderSection_FileSchema;
class HeaderSection_FileDescription;
class StepData_StepModel;
class Interface_Protocol;
class TCollection_HAsciiString;
//! This class allows to consult and prepare/edit data stored in
//! a Step Model Header
class APIHeaderSection_MakeHeader
{
public:
DEFINE_STANDARD_ALLOC
//! Prepares a new MakeHeader from scratch
Standard_EXPORT APIHeaderSection_MakeHeader(const Standard_Integer shapetype = 0);
//! Prepares a MakeHeader from the content of a StepModel
//! See IsDone to know if the Header is well defined
Standard_EXPORT APIHeaderSection_MakeHeader(const Handle(StepData_StepModel)& model);
//! Cancels the former definition and gives a FileName
//! To be used when a Model has no well defined Header
Standard_EXPORT void Init (const Standard_CString nameval);
//! Returns True if all data have been defined (see also
//! HasFn, HasFs, HasFd)
Standard_EXPORT Standard_Boolean IsDone() const;
//! Creates an empty header for a new
//! STEP model and allows the header fields to be completed.
Standard_EXPORT void Apply (const Handle(StepData_StepModel)& model) const;
//! Builds a Header, creates a new StepModel, then applies the
//! Header to the StepModel
//! The Schema Name is taken from the Protocol (if it inherits
//! from StepData, else it is left in blanks)
Standard_EXPORT Handle(StepData_StepModel) NewModel (const Handle(Interface_Protocol)& protocol) const;
//! Checks whether there is a
//! file_name entity. Returns True if there is one.
Standard_EXPORT Standard_Boolean HasFn() const;
//! Returns the file_name entity.
//! Returns an empty entity if the file_name entity is not initialized.
Standard_EXPORT Handle(HeaderSection_FileName) FnValue() const;
Standard_EXPORT void SetName (const Handle(TCollection_HAsciiString)& aName);
//! Returns the name attribute for the file_name entity.
Standard_EXPORT Handle(TCollection_HAsciiString) Name() const;
Standard_EXPORT void SetTimeStamp (const Handle(TCollection_HAsciiString)& aTimeStamp);
//! Returns the value of the time_stamp attribute for the file_name entity.
Standard_EXPORT Handle(TCollection_HAsciiString) TimeStamp() const;
Standard_EXPORT void SetAuthor (const Handle(Interface_HArray1OfHAsciiString)& aAuthor);
Standard_EXPORT void SetAuthorValue (const Standard_Integer num, const Handle(TCollection_HAsciiString)& aAuthor);
Standard_EXPORT Handle(Interface_HArray1OfHAsciiString) Author() const;
//! Returns the value of the name attribute for the file_name entity.
Standard_EXPORT Handle(TCollection_HAsciiString) AuthorValue (const Standard_Integer num) const;
//! Returns the number of values for the author attribute in the file_name entity.
Standard_EXPORT Standard_Integer NbAuthor() const;
Standard_EXPORT void SetOrganization (const Handle(Interface_HArray1OfHAsciiString)& aOrganization);
Standard_EXPORT void SetOrganizationValue (const Standard_Integer num, const Handle(TCollection_HAsciiString)& aOrganization);
Standard_EXPORT Handle(Interface_HArray1OfHAsciiString) Organization() const;
//! Returns the value of attribute
//! organization for the file_name entity.
Standard_EXPORT Handle(TCollection_HAsciiString) OrganizationValue (const Standard_Integer num) const;
//! Returns the number of values for
//! the organization attribute in the file_name entity.
Standard_EXPORT Standard_Integer NbOrganization() const;
Standard_EXPORT void SetPreprocessorVersion (const Handle(TCollection_HAsciiString)& aPreprocessorVersion);
//! Returns the name of the preprocessor_version for the file_name entity.
Standard_EXPORT Handle(TCollection_HAsciiString) PreprocessorVersion() const;
Standard_EXPORT void SetOriginatingSystem (const Handle(TCollection_HAsciiString)& aOriginatingSystem);
Standard_EXPORT Handle(TCollection_HAsciiString) OriginatingSystem() const;
Standard_EXPORT void SetAuthorisation (const Handle(TCollection_HAsciiString)& aAuthorisation);
//! Returns the value of the authorization attribute for the file_name entity.
Standard_EXPORT Handle(TCollection_HAsciiString) Authorisation() const;
//! Checks whether there is a file_schema entity. Returns True if there is one.
Standard_EXPORT Standard_Boolean HasFs() const;
//! Returns the file_schema entity. Returns an empty entity if the file_schema entity is not initialized.
Standard_EXPORT Handle(HeaderSection_FileSchema) FsValue() const;
Standard_EXPORT void SetSchemaIdentifiers (const Handle(Interface_HArray1OfHAsciiString)& aSchemaIdentifiers);
Standard_EXPORT void SetSchemaIdentifiersValue (const Standard_Integer num, const Handle(TCollection_HAsciiString)& aSchemaIdentifier);
Standard_EXPORT Handle(Interface_HArray1OfHAsciiString) SchemaIdentifiers() const;
//! Returns the value of the schema_identifier attribute for the file_schema entity.
Standard_EXPORT Handle(TCollection_HAsciiString) SchemaIdentifiersValue (const Standard_Integer num) const;
//! Returns the number of values for the schema_identifier attribute in the file_schema entity.
Standard_EXPORT Standard_Integer NbSchemaIdentifiers() const;
//! Add a subname of schema (if not yet in the list)
Standard_EXPORT void AddSchemaIdentifier (const Handle(TCollection_HAsciiString)& aSchemaIdentifier);
//! Checks whether there is a file_description entity. Returns True if there is one.
Standard_EXPORT Standard_Boolean HasFd() const;
//! Returns the file_description
//! entity. Returns an empty entity if the file_description entity is not initialized.
Standard_EXPORT Handle(HeaderSection_FileDescription) FdValue() const;
Standard_EXPORT void SetDescription (const Handle(Interface_HArray1OfHAsciiString)& aDescription);
Standard_EXPORT void SetDescriptionValue (const Standard_Integer num, const Handle(TCollection_HAsciiString)& aDescription);
Standard_EXPORT Handle(Interface_HArray1OfHAsciiString) Description() const;
//! Returns the value of the
//! description attribute for the file_description entity.
Standard_EXPORT Handle(TCollection_HAsciiString) DescriptionValue (const Standard_Integer num) const;
//! Returns the number of values for
//! the file_description entity in the STEP file header.
Standard_EXPORT Standard_Integer NbDescription() const;
Standard_EXPORT void SetImplementationLevel (const Handle(TCollection_HAsciiString)& aImplementationLevel);
//! Returns the value of the
//! implementation_level attribute for the file_description entity.
Standard_EXPORT Handle(TCollection_HAsciiString) ImplementationLevel() const;
protected:
private:
Standard_Boolean done;
Handle(HeaderSection_FileName) fn;
Handle(HeaderSection_FileSchema) fs;
Handle(HeaderSection_FileDescription) fd;
};
#endif // _APIHeaderSection_MakeHeader_HeaderFile

View File

@@ -0,0 +1,4 @@
APIHeaderSection_EditHeader.cxx
APIHeaderSection_EditHeader.hxx
APIHeaderSection_MakeHeader.cxx
APIHeaderSection_MakeHeader.hxx