1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-09 13:22:24 +03:00

Coding - Move StepData_ConfParameters to DESTEP package #261

Replace StepData_ConfParameters with DESTEP_Parameters across multiple files.
New location will help to keep any translate related stuff in one place for high level usage.
This commit is contained in:
dpasukhi
2025-01-16 23:09:25 +00:00
parent 1083052cc2
commit 6222d1b1f0
20 changed files with 373 additions and 331 deletions

View File

@@ -136,7 +136,7 @@ IFSelect_ReturnStatus STEPControl_Reader::ReadFile(const Standard_CString filena
//purpose :
//=======================================================================
IFSelect_ReturnStatus STEPControl_Reader::ReadFile(const Standard_CString filename,
const StepData_ConfParameters& theParams)
const DESTEP_Parameters& theParams)
{
Handle(IFSelect_WorkLibrary) aLibrary = WS()->WorkLibrary();
Handle(Interface_Protocol) aProtocol = WS()->Protocol();
@@ -208,7 +208,7 @@ IFSelect_ReturnStatus STEPControl_Reader::ReadStream(const Standard_CString theN
//purpose :
//=======================================================================
IFSelect_ReturnStatus STEPControl_Reader::ReadStream(const Standard_CString theName,
const StepData_ConfParameters& theParams,
const DESTEP_Parameters& theParams,
std::istream& theIStream)
{
Handle(IFSelect_WorkLibrary) aLibrary = WS()->WorkLibrary();
@@ -326,7 +326,7 @@ Standard_Integer STEPControl_Reader::NbRootsForTransfer()
}
// determinate roots used ProductDefinitionContext
if(IsRoot) {
StepData_ConfParameters::ReadMode_ProductContext aProdContMode = aStepModel->InternalParameters.ReadProductContext;
DESTEP_Parameters::ReadMode_ProductContext aProdContMode = aStepModel->InternalParameters.ReadProductContext;
TCollection_AsciiString str1 = aStepModel->InternalParameters.GetString(aProdContMode);
Standard_Integer ICS = aStepModel->InternalParameters.ReadProductContext;
if(ICS>1) {

View File

@@ -23,7 +23,7 @@
#include <XSControl_Reader.hxx>
#include <Standard_Integer.hxx>
#include <StepData_ConfParameters.hxx>
#include <DESTEP_Parameters.hxx>
#include <TColStd_SequenceOfAsciiString.hxx>
#include <TColStd_Array1OfAsciiString.hxx>
#include <TColStd_Array1OfReal.hxx>
@@ -96,11 +96,11 @@ public:
//! Loads a file and returns the read status
//! Zero for a Model which compies with the Controller
Standard_EXPORT IFSelect_ReturnStatus ReadFile(const Standard_CString filename,
const StepData_ConfParameters& theParams);
const DESTEP_Parameters& theParams);
//! Loads a file from stream and returns the read status
Standard_EXPORT IFSelect_ReturnStatus ReadStream(const Standard_CString theName,
const StepData_ConfParameters& theParams,
const DESTEP_Parameters& theParams,
std::istream& theIStream);
//! Transfers a root given its rank in the list of candidate roots

View File

@@ -17,7 +17,7 @@
#include <Interface_Macros.hxx>
#include <STEPControl_ActorWrite.hxx>
#include <STEPControl_Controller.hxx>
#include <StepData_ConfParameters.hxx>
#include <DESTEP_Parameters.hxx>
#include <StepData_StepModel.hxx>
#include <StepData_Protocol.hxx>
#include <StepData_StepWriter.hxx>
@@ -140,7 +140,7 @@ IFSelect_ReturnStatus STEPControl_Writer::Transfer
IFSelect_ReturnStatus STEPControl_Writer::Transfer
(const TopoDS_Shape& sh,
const STEPControl_StepModelType mode,
const StepData_ConfParameters& theParams,
const DESTEP_Parameters& theParams,
const Standard_Boolean compgraph,
const Message_ProgressRange& theProgress)
{

View File

@@ -23,7 +23,7 @@
#include <Standard_Real.hxx>
#include <IFSelect_ReturnStatus.hxx>
#include <StepData_ConfParameters.hxx>
#include <DESTEP_Parameters.hxx>
#include <STEPControl_StepModelType.hxx>
#include <Standard_Integer.hxx>
#include <Message_ProgressRange.hxx>
@@ -94,7 +94,7 @@ public:
Standard_EXPORT IFSelect_ReturnStatus Transfer
(const TopoDS_Shape& sh,
const STEPControl_StepModelType mode,
const StepData_ConfParameters& theParams,
const DESTEP_Parameters& theParams,
const Standard_Boolean compgraph = Standard_True,
const Message_ProgressRange& theProgress = Message_ProgressRange());