Skip to content

Commit

Permalink
Coding - Disable exporting internal RWStep* includes #223
Browse files Browse the repository at this point in the history
Refactor header file extensions from .hxx to .pxx and update include statements.
Enable handling by IDE gxx and pxx extensions as a cpp header files.
Introduce Standard_HIDDEN to hide symbols
  • Loading branch information
dpasukhi committed Dec 29, 2024
1 parent abf2e1b commit 33c22d1
Show file tree
Hide file tree
Showing 2,099 changed files with 48,552 additions and 48,533 deletions.
6 changes: 4 additions & 2 deletions adm/cmake/occt_macros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -414,7 +414,7 @@ function (COLLECT_AND_INSTALL_OCCT_HEADER_FILES THE_ROOT_TARGET_OCCT_DIR THE_OCC
foreach(OCCT_PACKAGE ${USED_PACKAGES})
EXTRACT_PACKAGE_FILES (${THE_RELATIVE_PATH} ${OCCT_PACKAGE} ALL_FILES _)
set (HEADER_FILES_FILTERING ${ALL_FILES})
list (FILTER HEADER_FILES_FILTERING INCLUDE REGEX ".+[.](h|lxx)")
list (FILTER HEADER_FILES_FILTERING INCLUDE REGEX ".+[.](h|g|p|lxx)")
list (APPEND OCCT_HEADER_FILES_COMPLETE ${HEADER_FILES_FILTERING})
endforeach()
endforeach()
Expand Down Expand Up @@ -453,7 +453,9 @@ function (COLLECT_AND_INSTALL_OCCT_HEADER_FILES THE_ROOT_TARGET_OCCT_DIR THE_OCC
endif()
endforeach()

install (FILES ${OCCT_HEADER_FILES_COMPLETE} DESTINATION "${INSTALL_DIR}/${THE_OCCT_INSTALL_DIR_PREFIX}")
set (OCCT_HEADER_FILES_INSTALLATION ${OCCT_HEADER_FILES_COMPLETE})
list (FILTER OCCT_HEADER_FILES_INSTALLATION INCLUDE REGEX ".*[.](h|lxx)$")
install (FILES ${OCCT_HEADER_FILES_INSTALLATION} DESTINATION "${INSTALL_DIR}/${THE_OCCT_INSTALL_DIR_PREFIX}")
endfunction()

function(ADD_PRECOMPILED_HEADER INPUT_TARGET PRECOMPILED_HEADER THE_IS_PRIVATE)
Expand Down
2 changes: 1 addition & 1 deletion adm/cmake/occt_toolkit.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ foreach (OCCT_PACKAGE ${USED_PACKAGES})
set (HEADER_FILES_FILTERING ${ALL_FILES})
set (SOURCE_FILES_FILTERING ${ALL_FILES})

list (FILTER HEADER_FILES_FILTERING INCLUDE REGEX ".+[.](h|lxx)")
list (FILTER HEADER_FILES_FILTERING INCLUDE REGEX ".+[.](h|p|g|lxx)")

if(APPLE)
list (FILTER SOURCE_FILES_FILTERING INCLUDE REGEX ".+[.](c|mm)")
Expand Down
22 changes: 11 additions & 11 deletions src/RWStepAP203/FILES
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
RWStepAP203_RWCcDesignApproval.cxx
RWStepAP203_RWCcDesignApproval.hxx
RWStepAP203_RWCcDesignApproval.pxx
RWStepAP203_RWCcDesignCertification.cxx
RWStepAP203_RWCcDesignCertification.hxx
RWStepAP203_RWCcDesignCertification.pxx
RWStepAP203_RWCcDesignContract.cxx
RWStepAP203_RWCcDesignContract.hxx
RWStepAP203_RWCcDesignContract.pxx
RWStepAP203_RWCcDesignDateAndTimeAssignment.cxx
RWStepAP203_RWCcDesignDateAndTimeAssignment.hxx
RWStepAP203_RWCcDesignDateAndTimeAssignment.pxx
RWStepAP203_RWCcDesignPersonAndOrganizationAssignment.cxx
RWStepAP203_RWCcDesignPersonAndOrganizationAssignment.hxx
RWStepAP203_RWCcDesignPersonAndOrganizationAssignment.pxx
RWStepAP203_RWCcDesignSecurityClassification.cxx
RWStepAP203_RWCcDesignSecurityClassification.hxx
RWStepAP203_RWCcDesignSecurityClassification.pxx
RWStepAP203_RWCcDesignSpecificationReference.cxx
RWStepAP203_RWCcDesignSpecificationReference.hxx
RWStepAP203_RWCcDesignSpecificationReference.pxx
RWStepAP203_RWChange.cxx
RWStepAP203_RWChange.hxx
RWStepAP203_RWChange.pxx
RWStepAP203_RWChangeRequest.cxx
RWStepAP203_RWChangeRequest.hxx
RWStepAP203_RWChangeRequest.pxx
RWStepAP203_RWStartRequest.cxx
RWStepAP203_RWStartRequest.hxx
RWStepAP203_RWStartRequest.pxx
RWStepAP203_RWStartWork.cxx
RWStepAP203_RWStartWork.hxx
RWStepAP203_RWStartWork.pxx
2 changes: 1 addition & 1 deletion src/RWStepAP203/RWStepAP203_RWCcDesignApproval.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <Interface_Check.hxx>
#include <Interface_EntityIterator.hxx>
#include <RWStepAP203_RWCcDesignApproval.hxx>
#include "RWStepAP203_RWCcDesignApproval.pxx"
#include <StepAP203_CcDesignApproval.hxx>
#include <StepAP203_HArray1OfApprovedItem.hxx>
#include <StepBasic_Approval.hxx>
Expand Down
75 changes: 0 additions & 75 deletions src/RWStepAP203/RWStepAP203_RWCcDesignApproval.hxx

This file was deleted.

75 changes: 75 additions & 0 deletions src/RWStepAP203/RWStepAP203_RWCcDesignApproval.pxx
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
// Created on: 1999-11-26
// Created by: Andrey BETENEV
// Copyright (c) 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 _RWStepAP203_RWCcDesignApproval_HeaderFile
#define _RWStepAP203_RWCcDesignApproval_HeaderFile

#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>

#include <Standard_Integer.hxx>
class StepData_StepReaderData;
class Interface_Check;
class StepAP203_CcDesignApproval;
class StepData_StepWriter;
class Interface_EntityIterator;


//! Read & Write tool for CcDesignApproval
class RWStepAP203_RWCcDesignApproval
{
public:

DEFINE_STANDARD_ALLOC


//! Empty constructor
Standard_HIDDEN RWStepAP203_RWCcDesignApproval();

//! Reads CcDesignApproval
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP203_CcDesignApproval)& ent) const;

//! Writes CcDesignApproval
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP203_CcDesignApproval)& ent) const;

//! Fills data for graph (shared items)
Standard_HIDDEN void Share (const Handle(StepAP203_CcDesignApproval)& ent, Interface_EntityIterator& iter) const;




protected:





private:





};







#endif // _RWStepAP203_RWCcDesignApproval_HeaderFile
2 changes: 1 addition & 1 deletion src/RWStepAP203/RWStepAP203_RWCcDesignCertification.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <Interface_Check.hxx>
#include <Interface_EntityIterator.hxx>
#include <RWStepAP203_RWCcDesignCertification.hxx>
#include "RWStepAP203_RWCcDesignCertification.pxx"
#include <StepAP203_CcDesignCertification.hxx>
#include <StepAP203_CertifiedItem.hxx>
#include <StepAP203_HArray1OfCertifiedItem.hxx>
Expand Down
75 changes: 0 additions & 75 deletions src/RWStepAP203/RWStepAP203_RWCcDesignCertification.hxx

This file was deleted.

75 changes: 75 additions & 0 deletions src/RWStepAP203/RWStepAP203_RWCcDesignCertification.pxx
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
// Created on: 1999-11-26
// Created by: Andrey BETENEV
// Copyright (c) 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 _RWStepAP203_RWCcDesignCertification_HeaderFile
#define _RWStepAP203_RWCcDesignCertification_HeaderFile

#include <Standard.hxx>
#include <Standard_DefineAlloc.hxx>
#include <Standard_Handle.hxx>

#include <Standard_Integer.hxx>
class StepData_StepReaderData;
class Interface_Check;
class StepAP203_CcDesignCertification;
class StepData_StepWriter;
class Interface_EntityIterator;


//! Read & Write tool for CcDesignCertification
class RWStepAP203_RWCcDesignCertification
{
public:

DEFINE_STANDARD_ALLOC


//! Empty constructor
Standard_HIDDEN RWStepAP203_RWCcDesignCertification();

//! Reads CcDesignCertification
Standard_HIDDEN void ReadStep (const Handle(StepData_StepReaderData)& data, const Standard_Integer num, Handle(Interface_Check)& ach, const Handle(StepAP203_CcDesignCertification)& ent) const;

//! Writes CcDesignCertification
Standard_HIDDEN void WriteStep (StepData_StepWriter& SW, const Handle(StepAP203_CcDesignCertification)& ent) const;

//! Fills data for graph (shared items)
Standard_HIDDEN void Share (const Handle(StepAP203_CcDesignCertification)& ent, Interface_EntityIterator& iter) const;




protected:





private:





};







#endif // _RWStepAP203_RWCcDesignCertification_HeaderFile
2 changes: 1 addition & 1 deletion src/RWStepAP203/RWStepAP203_RWCcDesignContract.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

#include <Interface_Check.hxx>
#include <Interface_EntityIterator.hxx>
#include <RWStepAP203_RWCcDesignContract.hxx>
#include "RWStepAP203_RWCcDesignContract.pxx"
#include <StepAP203_CcDesignContract.hxx>
#include <StepAP203_ContractedItem.hxx>
#include <StepAP203_HArray1OfContractedItem.hxx>
Expand Down
Loading

0 comments on commit 33c22d1

Please sign in to comment.