DiscussionsIssue archiveData Exchange and Application Framework

Archived discussion

Using a simple console based Progress Indicator on the method STEPCAFControl_Reader::Transfer

Data Exchange and Application FrameworkWed, 04/30/2025 - 16:481 reply

Browse this forum
QuestionAuthor

I am trying to leverage the argument of the method Standard_Boolean Transfer (const Handle(TDocStd_Document)& doc, const Message_ProgressRange& theProgress = Message_ProgressRange()); to show a simple console-based progress output. I am not able to get any understandable documentation of the correct usage.

Discussion

1 archived reply

Posts are displayed in their archived order.

01Commenter-1

The documentation of progress indication mechanism with some examples could be found within documentation of related classes like Message_ProgressScope.

In this small article you may an find another description of this mechanism and code sample implementing progress indicator printing progress into console.

And src/Draw/Draw_ProgressIndicator.cxx class is another reference implementing progress indicator in Draw Harness.