Transfer_ProcessForTransient::Teansfer function implementation

Hi
I was exploring on how OCCT is creating the objects from the step data. I found Transfer_ProcessForTransient::Teansfer function but I did not get its code. Can anyone tell me where is the code for this function?
Also guide me if this is not the correct function to check for OCCT object creation from step data

Dmitrii Pasukhin's picture

Hello, this class is a legacy code. The source code created by macros. We will rework it in the future release.

The source code with macros:"Transfer_ProcessForTransient_0.cxx"

#include <Transfer_ProcessForTransient.hxx>

#include <Standard_Type.hxx>

#include <Message_Messenger.hxx>
#include <Standard_Transient.hxx>
#include <Transfer_Binder.hxx>
#include <Transfer_ActorOfProcessForTransient.hxx>
#include <Interface_InterfaceError.hxx>
#include <Transfer_TransferFailure.hxx>
#include <Transfer_TransferMapOfProcessForTransient.hxx>
#include <Transfer_IteratorOfProcessForTransient.hxx>
#include <Message_Msg.hxx>
#include <Interface_Check.hxx>
#include <Interface_CheckIterator.hxx>

#define TheStart Handle(Standard_Transient)
#define TheStart_hxx <Standard_Transient.hxx>
#define TheMapHasher TColStd_MapTransientHasher
#define TheMapHasher_hxx <TColStd_MapTransientHasher.hxx>
#define Handle_TheList Handle(TColStd_HSequenceOfTransient)
#define TheList TColStd_HSequenceOfTransient
#define TheList_hxx <TColStd_HSequenceOfTransient.hxx>
#define Transfer_TransferMap Transfer_TransferMapOfProcessForTransient
#define Transfer_TransferMap_hxx <Transfer_TransferMapOfProcessForTransient.hxx>
#define Transfer_Iterator Transfer_IteratorOfProcessForTransient
#define Transfer_Iterator_hxx <Transfer_IteratorOfProcessForTransient.hxx>
#define Transfer_Actor Transfer_ActorOfProcessForTransient
#define Transfer_Actor_hxx <Transfer_ActorOfProcessForTransient.hxx>
#define Handle_Transfer_Actor Handle(Transfer_ActorOfProcessForTransient)
#define Transfer_TransferProcess Transfer_ProcessForTransient
#define Transfer_TransferProcess_hxx <Transfer_ProcessForTransient.hxx>
#define Handle_Transfer_TransferProcess Handle(Transfer_ProcessForTransient)
#include <Transfer_TransferProcess.gxx>

Can you a give a little more describing about your goal. I don't understand a question.

Best regards, Dmitrii.

Vikas Beske's picture

Hi,
You can check this https://dev.opencascade.org/content/occt-object-creation-step-file-data
I am trying to get the correct model tree for step files generated from any application.
Right now I am getting different model w.r.t source app