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

12
src/HeaderSection/FILES Normal file
View File

@@ -0,0 +1,12 @@
HeaderSection.cxx
HeaderSection.hxx
HeaderSection_FileDescription.cxx
HeaderSection_FileDescription.hxx
HeaderSection_FileName.cxx
HeaderSection_FileName.hxx
HeaderSection_FileSchema.cxx
HeaderSection_FileSchema.hxx
HeaderSection_HeaderRecognizer.cxx
HeaderSection_HeaderRecognizer.hxx
HeaderSection_Protocol.cxx
HeaderSection_Protocol.hxx

View File

@@ -1,45 +0,0 @@
-- Created on: 1994-06-16
-- Created by: EXPRESS->CDL V0.2 Translator
-- 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 HeaderSection
uses
TCollection, TColStd, StepData, Interface, MMgt
is
class Protocol;
class FileName;
class FileDescription;
class FileSchema;
class HeaderRecognizer;
--class Array1OfHAsciiString instantiates Array1(HAsciiString);
--class HArray1OfHAsciiString instantiates HArray1(HAsciiString,Array1OfHAsciiString from HeaderSection);
-- already instantiated in package Interface
Protocol returns Protocol from HeaderSection;
---Purpose : creates a Protocol
end HeaderSection;

View File

@@ -11,10 +11,10 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <HeaderSection.ixx>
#include <Interface_Statics.hxx>
#include <HeaderSection.hxx>
#include <HeaderSection_Protocol.hxx>
#include <Interface_Statics.hxx>
StaticHandle(HeaderSection_Protocol, proto);

View File

@@ -0,0 +1,71 @@
// Created on: 1994-06-16
// Created by: EXPRESS->CDL V0.2 Translator
// 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.
#ifndef _HeaderSection_HeaderFile
#define _HeaderSection_HeaderFile
#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>
class HeaderSection_Protocol;
class HeaderSection_Protocol;
class HeaderSection_FileName;
class HeaderSection_FileDescription;
class HeaderSection_FileSchema;
class HeaderSection_HeaderRecognizer;
class HeaderSection
{
public:
DEFINE_STANDARD_ALLOC
//! creates a Protocol
Standard_EXPORT static Handle(HeaderSection_Protocol) Protocol();
protected:
private:
friend class HeaderSection_Protocol;
friend class HeaderSection_FileName;
friend class HeaderSection_FileDescription;
friend class HeaderSection_FileSchema;
friend class HeaderSection_HeaderRecognizer;
};
#endif // _HeaderSection_HeaderFile

View File

@@ -1,48 +0,0 @@
-- Created on: 1994-06-16
-- Created by: EXPRESS->CDL V0.2 Translator
-- 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.
class FileDescription from HeaderSection
inherits TShared from MMgt
uses
HArray1OfHAsciiString from Interface,
HAsciiString from TCollection
is
Create returns FileDescription;
---Purpose: Returns a FileDescription
Init (me : mutable;
aDescription : HArray1OfHAsciiString from Interface;
aImplementationLevel : HAsciiString from TCollection);
-- Specific Methods for Field Data Access --
SetDescription(me : mutable; aDescription : HArray1OfHAsciiString);
Description (me) returns HArray1OfHAsciiString;
DescriptionValue (me; num : Integer) returns HAsciiString;
NbDescription (me) returns Integer;
SetImplementationLevel(me : mutable; aImplementationLevel : HAsciiString);
ImplementationLevel (me) returns HAsciiString;
fields
description : HArray1OfHAsciiString from Interface;
implementationLevel : HAsciiString from TCollection;
end FileDescription;

View File

@@ -11,8 +11,10 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <HeaderSection_FileDescription.ixx>
#include <HeaderSection_FileDescription.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
HeaderSection_FileDescription::HeaderSection_FileDescription () {}

View File

@@ -0,0 +1,81 @@
// Created on: 1994-06-16
// Created by: EXPRESS->CDL V0.2 Translator
// 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.
#ifndef _HeaderSection_FileDescription_HeaderFile
#define _HeaderSection_FileDescription_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_Integer.hxx>
class TCollection_HAsciiString;
class HeaderSection_FileDescription;
DEFINE_STANDARD_HANDLE(HeaderSection_FileDescription, MMgt_TShared)
class HeaderSection_FileDescription : public MMgt_TShared
{
public:
//! Returns a FileDescription
Standard_EXPORT HeaderSection_FileDescription();
Standard_EXPORT void Init (const Handle(Interface_HArray1OfHAsciiString)& aDescription, const Handle(TCollection_HAsciiString)& aImplementationLevel);
Standard_EXPORT void SetDescription (const Handle(Interface_HArray1OfHAsciiString)& aDescription);
Standard_EXPORT Handle(Interface_HArray1OfHAsciiString) Description() const;
Standard_EXPORT Handle(TCollection_HAsciiString) DescriptionValue (const Standard_Integer num) const;
Standard_EXPORT Standard_Integer NbDescription() const;
Standard_EXPORT void SetImplementationLevel (const Handle(TCollection_HAsciiString)& aImplementationLevel);
Standard_EXPORT Handle(TCollection_HAsciiString) ImplementationLevel() const;
DEFINE_STANDARD_RTTI(HeaderSection_FileDescription,MMgt_TShared)
protected:
private:
Handle(Interface_HArray1OfHAsciiString) description;
Handle(TCollection_HAsciiString) implementationLevel;
};
#endif // _HeaderSection_FileDescription_HeaderFile

View File

@@ -1,70 +0,0 @@
-- Created on: 1994-06-16
-- Created by: EXPRESS->CDL V0.2 Translator
-- 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.
class FileName from HeaderSection
inherits TShared from MMgt
uses
HAsciiString from TCollection,
HArray1OfHAsciiString from Interface
is
Create returns FileName;
---Purpose: Returns a FileName
Init (me : mutable;
aName : HAsciiString from TCollection;
aTimeStamp : HAsciiString from TCollection;
aAuthor : HArray1OfHAsciiString from Interface;
aOrganization : HArray1OfHAsciiString from Interface;
aPreprocessorVersion : HAsciiString from TCollection;
aOriginatingSystem : HAsciiString from TCollection;
aAuthorisation : HAsciiString from TCollection);
-- Specific Methods for Field Data Access --
SetName(me : mutable; aName : HAsciiString);
Name (me) returns HAsciiString;
SetTimeStamp(me : mutable; aTimeStamp : HAsciiString);
TimeStamp (me) returns HAsciiString;
SetAuthor(me : mutable; aAuthor : HArray1OfHAsciiString);
Author (me) returns HArray1OfHAsciiString;
AuthorValue (me; num : Integer) returns HAsciiString;
NbAuthor (me) returns Integer;
SetOrganization(me : mutable; aOrganization : HArray1OfHAsciiString);
Organization (me) returns HArray1OfHAsciiString;
OrganizationValue (me; num : Integer) returns HAsciiString;
NbOrganization (me) returns Integer;
SetPreprocessorVersion(me : mutable; aPreprocessorVersion : HAsciiString);
PreprocessorVersion (me) returns HAsciiString;
SetOriginatingSystem(me : mutable; aOriginatingSystem : HAsciiString);
OriginatingSystem (me) returns HAsciiString;
SetAuthorisation(me : mutable; aAuthorisation : HAsciiString);
Authorisation (me) returns HAsciiString;
fields
name : HAsciiString from TCollection;
timeStamp : HAsciiString from TCollection;
author : HArray1OfHAsciiString from Interface;
organization : HArray1OfHAsciiString from Interface;
preprocessorVersion : HAsciiString from TCollection;
originatingSystem : HAsciiString from TCollection;
authorisation : HAsciiString from TCollection;
end FileName;

View File

@@ -11,8 +11,10 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <HeaderSection_FileName.ixx>
#include <HeaderSection_FileName.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
HeaderSection_FileName::HeaderSection_FileName () {}

View File

@@ -0,0 +1,110 @@
// Created on: 1994-06-16
// Created by: EXPRESS->CDL V0.2 Translator
// 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.
#ifndef _HeaderSection_FileName_HeaderFile
#define _HeaderSection_FileName_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_Integer.hxx>
class TCollection_HAsciiString;
class HeaderSection_FileName;
DEFINE_STANDARD_HANDLE(HeaderSection_FileName, MMgt_TShared)
class HeaderSection_FileName : public MMgt_TShared
{
public:
//! Returns a FileName
Standard_EXPORT HeaderSection_FileName();
Standard_EXPORT void Init (const Handle(TCollection_HAsciiString)& aName, const Handle(TCollection_HAsciiString)& aTimeStamp, const Handle(Interface_HArray1OfHAsciiString)& aAuthor, const Handle(Interface_HArray1OfHAsciiString)& aOrganization, const Handle(TCollection_HAsciiString)& aPreprocessorVersion, const Handle(TCollection_HAsciiString)& aOriginatingSystem, const Handle(TCollection_HAsciiString)& aAuthorisation);
Standard_EXPORT void SetName (const Handle(TCollection_HAsciiString)& aName);
Standard_EXPORT Handle(TCollection_HAsciiString) Name() const;
Standard_EXPORT void SetTimeStamp (const Handle(TCollection_HAsciiString)& aTimeStamp);
Standard_EXPORT Handle(TCollection_HAsciiString) TimeStamp() const;
Standard_EXPORT void SetAuthor (const Handle(Interface_HArray1OfHAsciiString)& aAuthor);
Standard_EXPORT Handle(Interface_HArray1OfHAsciiString) Author() const;
Standard_EXPORT Handle(TCollection_HAsciiString) AuthorValue (const Standard_Integer num) const;
Standard_EXPORT Standard_Integer NbAuthor() const;
Standard_EXPORT void SetOrganization (const Handle(Interface_HArray1OfHAsciiString)& aOrganization);
Standard_EXPORT Handle(Interface_HArray1OfHAsciiString) Organization() const;
Standard_EXPORT Handle(TCollection_HAsciiString) OrganizationValue (const Standard_Integer num) const;
Standard_EXPORT Standard_Integer NbOrganization() const;
Standard_EXPORT void SetPreprocessorVersion (const Handle(TCollection_HAsciiString)& aPreprocessorVersion);
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);
Standard_EXPORT Handle(TCollection_HAsciiString) Authorisation() const;
DEFINE_STANDARD_RTTI(HeaderSection_FileName,MMgt_TShared)
protected:
private:
Handle(TCollection_HAsciiString) name;
Handle(TCollection_HAsciiString) timeStamp;
Handle(Interface_HArray1OfHAsciiString) author;
Handle(Interface_HArray1OfHAsciiString) organization;
Handle(TCollection_HAsciiString) preprocessorVersion;
Handle(TCollection_HAsciiString) originatingSystem;
Handle(TCollection_HAsciiString) authorisation;
};
#endif // _HeaderSection_FileName_HeaderFile

View File

@@ -1,44 +0,0 @@
-- Created on: 1994-06-16
-- Created by: EXPRESS->CDL V0.2 Translator
-- 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.
class FileSchema from HeaderSection
inherits TShared from MMgt
uses
HArray1OfHAsciiString from Interface,
HAsciiString from TCollection
is
Create returns FileSchema;
---Purpose: Returns a FileSchema
Init (me : mutable;
aSchemaIdentifiers : HArray1OfHAsciiString from Interface);
-- Specific Methods for Field Data Access --
SetSchemaIdentifiers(me : mutable; aSchemaIdentifiers : HArray1OfHAsciiString);
SchemaIdentifiers (me) returns HArray1OfHAsciiString;
SchemaIdentifiersValue (me; num : Integer) returns HAsciiString;
NbSchemaIdentifiers (me) returns Integer;
fields
schemaIdentifiers : HArray1OfHAsciiString from Interface;
end FileSchema;

View File

@@ -11,8 +11,10 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <HeaderSection_FileSchema.ixx>
#include <HeaderSection_FileSchema.hxx>
#include <Standard_Type.hxx>
#include <TCollection_HAsciiString.hxx>
HeaderSection_FileSchema::HeaderSection_FileSchema () {}

View File

@@ -0,0 +1,76 @@
// Created on: 1994-06-16
// Created by: EXPRESS->CDL V0.2 Translator
// 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.
#ifndef _HeaderSection_FileSchema_HeaderFile
#define _HeaderSection_FileSchema_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <Interface_HArray1OfHAsciiString.hxx>
#include <MMgt_TShared.hxx>
#include <Standard_Integer.hxx>
class TCollection_HAsciiString;
class HeaderSection_FileSchema;
DEFINE_STANDARD_HANDLE(HeaderSection_FileSchema, MMgt_TShared)
class HeaderSection_FileSchema : public MMgt_TShared
{
public:
//! Returns a FileSchema
Standard_EXPORT HeaderSection_FileSchema();
Standard_EXPORT void Init (const Handle(Interface_HArray1OfHAsciiString)& aSchemaIdentifiers);
Standard_EXPORT void SetSchemaIdentifiers (const Handle(Interface_HArray1OfHAsciiString)& aSchemaIdentifiers);
Standard_EXPORT Handle(Interface_HArray1OfHAsciiString) SchemaIdentifiers() const;
Standard_EXPORT Handle(TCollection_HAsciiString) SchemaIdentifiersValue (const Standard_Integer num) const;
Standard_EXPORT Standard_Integer NbSchemaIdentifiers() const;
DEFINE_STANDARD_RTTI(HeaderSection_FileSchema,MMgt_TShared)
protected:
private:
Handle(Interface_HArray1OfHAsciiString) schemaIdentifiers;
};
#endif // _HeaderSection_FileSchema_HeaderFile

View File

@@ -1,32 +0,0 @@
-- Created on: 1994-06-27
-- Created by: Frederic MAUPAS
-- 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.
class HeaderRecognizer from HeaderSection
inherits FileRecognizer from StepData
---Purpose : Recognizes STEP Standard Header Entities
-- (FileName, FileDescription, FileSchema)
uses AsciiString from TCollection
is
Create returns HeaderRecognizer ;
Eval (me : mutable ; key : AsciiString from TCollection) is protected;
---Purpose: Recognizes data types of Header STEP Standard
end HeaderRecognizer;

View File

@@ -14,13 +14,13 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <HeaderSection_HeaderRecognizer.ixx>
#include <HeaderSection_FileDescription.hxx>
#include <HeaderSection_FileName.hxx>
#include <HeaderSection_FileSchema.hxx>
#include <HeaderSection_FileDescription.hxx>
#include <HeaderSection_HeaderRecognizer.hxx>
#include <Standard_Type.hxx>
#include <TCollection_AsciiString.hxx>
static TCollection_AsciiString reco_FileName ("FILE_NAME");
static TCollection_AsciiString reco_FileSchema ("FILE_SCHEMA");

View File

@@ -0,0 +1,66 @@
// Created on: 1994-06-27
// Created by: Frederic MAUPAS
// 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.
#ifndef _HeaderSection_HeaderRecognizer_HeaderFile
#define _HeaderSection_HeaderRecognizer_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <StepData_FileRecognizer.hxx>
class TCollection_AsciiString;
class HeaderSection_HeaderRecognizer;
DEFINE_STANDARD_HANDLE(HeaderSection_HeaderRecognizer, StepData_FileRecognizer)
//! Recognizes STEP Standard Header Entities
//! (FileName, FileDescription, FileSchema)
class HeaderSection_HeaderRecognizer : public StepData_FileRecognizer
{
public:
Standard_EXPORT HeaderSection_HeaderRecognizer();
DEFINE_STANDARD_RTTI(HeaderSection_HeaderRecognizer,StepData_FileRecognizer)
protected:
//! Recognizes data types of Header STEP Standard
Standard_EXPORT void Eval (const TCollection_AsciiString& key);
private:
};
#endif // _HeaderSection_HeaderRecognizer_HeaderFile

View File

@@ -1,31 +0,0 @@
-- Created on: 1994-06-16
-- Created by: EXPRESS->CDL V0.2 Translator
-- 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.
class Protocol from HeaderSection inherits Protocol from StepData
---Purpose : Protocol for HeaderSection Entities
-- It requires HeaderSection as a Resource
uses Protocol from Interface,
CString from Standard
is
Create returns Protocol from HeaderSection;
TypeNumber (me; atype : any Type) returns Integer is redefined;
---Purpose :Returns a Case Number for each of the HeaderSection Entities
SchemaName(me) returns CString from Standard is redefined;
-- was C++ : return const
end Protocol;

View File

@@ -11,12 +11,12 @@
// Alternatively, this file may be used under the terms of Open CASCADE
// commercial license or contractual agreement.
#include <HeaderSection_Protocol.ixx>
#include <HeaderSection_FileName.hxx>
#include <HeaderSection_FileDescription.hxx>
#include <HeaderSection_FileName.hxx>
#include <HeaderSection_FileSchema.hxx>
#include <HeaderSection_Protocol.hxx>
#include <Standard_Type.hxx>
#include <StepData_UndefinedEntity.hxx>
static Standard_CString schemaName = "header_section";

View File

@@ -0,0 +1,70 @@
// Created on: 1994-06-16
// Created by: EXPRESS->CDL V0.2 Translator
// 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.
#ifndef _HeaderSection_Protocol_HeaderFile
#define _HeaderSection_Protocol_HeaderFile
#include <Standard.hxx>
#include <Standard_Type.hxx>
#include <StepData_Protocol.hxx>
#include <Standard_Integer.hxx>
#include <Standard_Type.hxx>
#include <Standard_CString.hxx>
class HeaderSection_Protocol;
DEFINE_STANDARD_HANDLE(HeaderSection_Protocol, StepData_Protocol)
//! Protocol for HeaderSection Entities
//! It requires HeaderSection as a Resource
class HeaderSection_Protocol : public StepData_Protocol
{
public:
Standard_EXPORT HeaderSection_Protocol();
//! Returns a Case Number for each of the HeaderSection Entities
Standard_EXPORT virtual Standard_Integer TypeNumber (const Handle(Standard_Type)& atype) const Standard_OVERRIDE;
Standard_EXPORT virtual Standard_CString SchemaName() const Standard_OVERRIDE;
DEFINE_STANDARD_RTTI(HeaderSection_Protocol,StepData_Protocol)
protected:
private:
};
#endif // _HeaderSection_Protocol_HeaderFile