]> OCCT Git - occt-copy.git/commitdiff
0031501: Foundation Classes, Message_Printer - remove theToPutEndl argument -- prepar...
authorabv <abv@opencascade.com>
Thu, 30 Apr 2020 12:45:31 +0000 (15:45 +0300)
committerbugmaster <bugmaster@opencascade.com>
Sat, 9 May 2020 14:22:13 +0000 (17:22 +0300)
Operators << for Handle(Message_Messenger) are removed; their use is replaced by use of Message_Messenger::StreamBuffer
Message_Messenger has been replaced by Standard_OStream within Interface_InterfaceModel,IFSelect,IGES,STEP dump interfaces.

382 files changed:
src/IFSelect/IFSelect_ContextModif.cxx
src/IFSelect/IFSelect_EditForm.cxx
src/IFSelect/IFSelect_EditForm.hxx
src/IFSelect/IFSelect_Editor.cxx
src/IFSelect/IFSelect_Editor.hxx
src/IFSelect/IFSelect_Functions.cxx
src/IFSelect/IFSelect_ModelCopier.cxx
src/IFSelect/IFSelect_SessionFile.cxx
src/IFSelect/IFSelect_SessionPilot.cxx
src/IFSelect/IFSelect_SignatureList.cxx
src/IFSelect/IFSelect_SignatureList.hxx
src/IFSelect/IFSelect_TransformStandard.cxx
src/IFSelect/IFSelect_WorkLibrary.cxx
src/IFSelect/IFSelect_WorkLibrary.hxx
src/IFSelect/IFSelect_WorkSession.cxx
src/IFSelect/IFSelect_WorkSession.hxx
src/IGESAppli/IGESAppli_SpecificModule.cxx
src/IGESAppli/IGESAppli_SpecificModule.hxx
src/IGESAppli/IGESAppli_ToolDrilledHole.cxx
src/IGESAppli/IGESAppli_ToolDrilledHole.hxx
src/IGESAppli/IGESAppli_ToolElementResults.cxx
src/IGESAppli/IGESAppli_ToolElementResults.hxx
src/IGESAppli/IGESAppli_ToolFiniteElement.cxx
src/IGESAppli/IGESAppli_ToolFiniteElement.hxx
src/IGESAppli/IGESAppli_ToolFlow.cxx
src/IGESAppli/IGESAppli_ToolFlow.hxx
src/IGESAppli/IGESAppli_ToolFlowLineSpec.cxx
src/IGESAppli/IGESAppli_ToolFlowLineSpec.hxx
src/IGESAppli/IGESAppli_ToolLevelFunction.cxx
src/IGESAppli/IGESAppli_ToolLevelFunction.hxx
src/IGESAppli/IGESAppli_ToolLevelToPWBLayerMap.cxx
src/IGESAppli/IGESAppli_ToolLevelToPWBLayerMap.hxx
src/IGESAppli/IGESAppli_ToolLineWidening.cxx
src/IGESAppli/IGESAppli_ToolLineWidening.hxx
src/IGESAppli/IGESAppli_ToolNodalConstraint.cxx
src/IGESAppli/IGESAppli_ToolNodalConstraint.hxx
src/IGESAppli/IGESAppli_ToolNodalDisplAndRot.cxx
src/IGESAppli/IGESAppli_ToolNodalDisplAndRot.hxx
src/IGESAppli/IGESAppli_ToolNodalResults.cxx
src/IGESAppli/IGESAppli_ToolNodalResults.hxx
src/IGESAppli/IGESAppli_ToolNode.cxx
src/IGESAppli/IGESAppli_ToolNode.hxx
src/IGESAppli/IGESAppli_ToolPWBArtworkStackup.cxx
src/IGESAppli/IGESAppli_ToolPWBArtworkStackup.hxx
src/IGESAppli/IGESAppli_ToolPWBDrilledHole.cxx
src/IGESAppli/IGESAppli_ToolPWBDrilledHole.hxx
src/IGESAppli/IGESAppli_ToolPartNumber.cxx
src/IGESAppli/IGESAppli_ToolPartNumber.hxx
src/IGESAppli/IGESAppli_ToolPinNumber.cxx
src/IGESAppli/IGESAppli_ToolPinNumber.hxx
src/IGESAppli/IGESAppli_ToolPipingFlow.cxx
src/IGESAppli/IGESAppli_ToolPipingFlow.hxx
src/IGESAppli/IGESAppli_ToolReferenceDesignator.cxx
src/IGESAppli/IGESAppli_ToolReferenceDesignator.hxx
src/IGESAppli/IGESAppli_ToolRegionRestriction.cxx
src/IGESAppli/IGESAppli_ToolRegionRestriction.hxx
src/IGESBasic/IGESBasic_SpecificModule.cxx
src/IGESBasic/IGESBasic_SpecificModule.hxx
src/IGESBasic/IGESBasic_ToolAssocGroupType.cxx
src/IGESBasic/IGESBasic_ToolAssocGroupType.hxx
src/IGESBasic/IGESBasic_ToolExternalRefFile.cxx
src/IGESBasic/IGESBasic_ToolExternalRefFile.hxx
src/IGESBasic/IGESBasic_ToolExternalRefFileIndex.cxx
src/IGESBasic/IGESBasic_ToolExternalRefFileIndex.hxx
src/IGESBasic/IGESBasic_ToolExternalRefFileName.cxx
src/IGESBasic/IGESBasic_ToolExternalRefFileName.hxx
src/IGESBasic/IGESBasic_ToolExternalRefLibName.cxx
src/IGESBasic/IGESBasic_ToolExternalRefLibName.hxx
src/IGESBasic/IGESBasic_ToolExternalRefName.cxx
src/IGESBasic/IGESBasic_ToolExternalRefName.hxx
src/IGESBasic/IGESBasic_ToolExternalReferenceFile.cxx
src/IGESBasic/IGESBasic_ToolExternalReferenceFile.hxx
src/IGESBasic/IGESBasic_ToolGroup.cxx
src/IGESBasic/IGESBasic_ToolGroup.hxx
src/IGESBasic/IGESBasic_ToolGroupWithoutBackP.cxx
src/IGESBasic/IGESBasic_ToolGroupWithoutBackP.hxx
src/IGESBasic/IGESBasic_ToolHierarchy.cxx
src/IGESBasic/IGESBasic_ToolHierarchy.hxx
src/IGESBasic/IGESBasic_ToolName.cxx
src/IGESBasic/IGESBasic_ToolName.hxx
src/IGESBasic/IGESBasic_ToolOrderedGroup.cxx
src/IGESBasic/IGESBasic_ToolOrderedGroup.hxx
src/IGESBasic/IGESBasic_ToolOrderedGroupWithoutBackP.cxx
src/IGESBasic/IGESBasic_ToolOrderedGroupWithoutBackP.hxx
src/IGESBasic/IGESBasic_ToolSingleParent.cxx
src/IGESBasic/IGESBasic_ToolSingleParent.hxx
src/IGESBasic/IGESBasic_ToolSingularSubfigure.cxx
src/IGESBasic/IGESBasic_ToolSingularSubfigure.hxx
src/IGESBasic/IGESBasic_ToolSubfigureDef.cxx
src/IGESBasic/IGESBasic_ToolSubfigureDef.hxx
src/IGESControl/IGESControl_Reader.cxx
src/IGESData/IGESData_DefaultSpecific.cxx
src/IGESData/IGESData_DefaultSpecific.hxx
src/IGESData/IGESData_Dump.hxx
src/IGESData/IGESData_IGESDumper.cxx
src/IGESData/IGESData_IGESDumper.hxx
src/IGESData/IGESData_IGESModel.cxx
src/IGESData/IGESData_IGESModel.hxx
src/IGESData/IGESData_IGESWriter.cxx
src/IGESData/IGESData_SpecificModule.cxx
src/IGESData/IGESData_SpecificModule.hxx
src/IGESDefs/IGESDefs_SpecificModule.cxx
src/IGESDefs/IGESDefs_SpecificModule.hxx
src/IGESDefs/IGESDefs_ToolAssociativityDef.cxx
src/IGESDefs/IGESDefs_ToolAssociativityDef.hxx
src/IGESDefs/IGESDefs_ToolAttributeDef.cxx
src/IGESDefs/IGESDefs_ToolAttributeDef.hxx
src/IGESDefs/IGESDefs_ToolAttributeTable.cxx
src/IGESDefs/IGESDefs_ToolAttributeTable.hxx
src/IGESDefs/IGESDefs_ToolGenericData.cxx
src/IGESDefs/IGESDefs_ToolGenericData.hxx
src/IGESDefs/IGESDefs_ToolMacroDef.cxx
src/IGESDefs/IGESDefs_ToolMacroDef.hxx
src/IGESDefs/IGESDefs_ToolTabularData.cxx
src/IGESDefs/IGESDefs_ToolTabularData.hxx
src/IGESDefs/IGESDefs_ToolUnitsData.cxx
src/IGESDefs/IGESDefs_ToolUnitsData.hxx
src/IGESDimen/IGESDimen_SpecificModule.cxx
src/IGESDimen/IGESDimen_SpecificModule.hxx
src/IGESDimen/IGESDimen_ToolAngularDimension.cxx
src/IGESDimen/IGESDimen_ToolAngularDimension.hxx
src/IGESDimen/IGESDimen_ToolBasicDimension.cxx
src/IGESDimen/IGESDimen_ToolBasicDimension.hxx
src/IGESDimen/IGESDimen_ToolCenterLine.cxx
src/IGESDimen/IGESDimen_ToolCenterLine.hxx
src/IGESDimen/IGESDimen_ToolCurveDimension.cxx
src/IGESDimen/IGESDimen_ToolCurveDimension.hxx
src/IGESDimen/IGESDimen_ToolDiameterDimension.cxx
src/IGESDimen/IGESDimen_ToolDiameterDimension.hxx
src/IGESDimen/IGESDimen_ToolDimensionDisplayData.cxx
src/IGESDimen/IGESDimen_ToolDimensionDisplayData.hxx
src/IGESDimen/IGESDimen_ToolDimensionTolerance.cxx
src/IGESDimen/IGESDimen_ToolDimensionTolerance.hxx
src/IGESDimen/IGESDimen_ToolDimensionUnits.cxx
src/IGESDimen/IGESDimen_ToolDimensionUnits.hxx
src/IGESDimen/IGESDimen_ToolDimensionedGeometry.cxx
src/IGESDimen/IGESDimen_ToolDimensionedGeometry.hxx
src/IGESDimen/IGESDimen_ToolFlagNote.cxx
src/IGESDimen/IGESDimen_ToolFlagNote.hxx
src/IGESDimen/IGESDimen_ToolGeneralLabel.cxx
src/IGESDimen/IGESDimen_ToolGeneralLabel.hxx
src/IGESDimen/IGESDimen_ToolGeneralNote.cxx
src/IGESDimen/IGESDimen_ToolGeneralNote.hxx
src/IGESDimen/IGESDimen_ToolGeneralSymbol.cxx
src/IGESDimen/IGESDimen_ToolGeneralSymbol.hxx
src/IGESDimen/IGESDimen_ToolLeaderArrow.cxx
src/IGESDimen/IGESDimen_ToolLeaderArrow.hxx
src/IGESDimen/IGESDimen_ToolLinearDimension.cxx
src/IGESDimen/IGESDimen_ToolLinearDimension.hxx
src/IGESDimen/IGESDimen_ToolNewDimensionedGeometry.cxx
src/IGESDimen/IGESDimen_ToolNewDimensionedGeometry.hxx
src/IGESDimen/IGESDimen_ToolNewGeneralNote.cxx
src/IGESDimen/IGESDimen_ToolNewGeneralNote.hxx
src/IGESDimen/IGESDimen_ToolOrdinateDimension.cxx
src/IGESDimen/IGESDimen_ToolOrdinateDimension.hxx
src/IGESDimen/IGESDimen_ToolPointDimension.cxx
src/IGESDimen/IGESDimen_ToolPointDimension.hxx
src/IGESDimen/IGESDimen_ToolRadiusDimension.cxx
src/IGESDimen/IGESDimen_ToolRadiusDimension.hxx
src/IGESDimen/IGESDimen_ToolSection.cxx
src/IGESDimen/IGESDimen_ToolSection.hxx
src/IGESDimen/IGESDimen_ToolSectionedArea.cxx
src/IGESDimen/IGESDimen_ToolSectionedArea.hxx
src/IGESDimen/IGESDimen_ToolWitnessLine.cxx
src/IGESDimen/IGESDimen_ToolWitnessLine.hxx
src/IGESDraw/IGESDraw_SpecificModule.cxx
src/IGESDraw/IGESDraw_SpecificModule.hxx
src/IGESDraw/IGESDraw_ToolCircArraySubfigure.cxx
src/IGESDraw/IGESDraw_ToolCircArraySubfigure.hxx
src/IGESDraw/IGESDraw_ToolConnectPoint.cxx
src/IGESDraw/IGESDraw_ToolConnectPoint.hxx
src/IGESDraw/IGESDraw_ToolDrawing.cxx
src/IGESDraw/IGESDraw_ToolDrawing.hxx
src/IGESDraw/IGESDraw_ToolDrawingWithRotation.cxx
src/IGESDraw/IGESDraw_ToolDrawingWithRotation.hxx
src/IGESDraw/IGESDraw_ToolLabelDisplay.cxx
src/IGESDraw/IGESDraw_ToolLabelDisplay.hxx
src/IGESDraw/IGESDraw_ToolNetworkSubfigure.cxx
src/IGESDraw/IGESDraw_ToolNetworkSubfigure.hxx
src/IGESDraw/IGESDraw_ToolNetworkSubfigureDef.cxx
src/IGESDraw/IGESDraw_ToolNetworkSubfigureDef.hxx
src/IGESDraw/IGESDraw_ToolPerspectiveView.cxx
src/IGESDraw/IGESDraw_ToolPerspectiveView.hxx
src/IGESDraw/IGESDraw_ToolPlanar.cxx
src/IGESDraw/IGESDraw_ToolPlanar.hxx
src/IGESDraw/IGESDraw_ToolRectArraySubfigure.cxx
src/IGESDraw/IGESDraw_ToolRectArraySubfigure.hxx
src/IGESDraw/IGESDraw_ToolSegmentedViewsVisible.cxx
src/IGESDraw/IGESDraw_ToolSegmentedViewsVisible.hxx
src/IGESDraw/IGESDraw_ToolView.cxx
src/IGESDraw/IGESDraw_ToolView.hxx
src/IGESDraw/IGESDraw_ToolViewsVisible.cxx
src/IGESDraw/IGESDraw_ToolViewsVisible.hxx
src/IGESDraw/IGESDraw_ToolViewsVisibleWithAttr.cxx
src/IGESDraw/IGESDraw_ToolViewsVisibleWithAttr.hxx
src/IGESGeom/IGESGeom_SpecificModule.cxx
src/IGESGeom/IGESGeom_SpecificModule.hxx
src/IGESGeom/IGESGeom_ToolBSplineCurve.cxx
src/IGESGeom/IGESGeom_ToolBSplineCurve.hxx
src/IGESGeom/IGESGeom_ToolBSplineSurface.cxx
src/IGESGeom/IGESGeom_ToolBSplineSurface.hxx
src/IGESGeom/IGESGeom_ToolBoundary.cxx
src/IGESGeom/IGESGeom_ToolBoundary.hxx
src/IGESGeom/IGESGeom_ToolBoundedSurface.cxx
src/IGESGeom/IGESGeom_ToolBoundedSurface.hxx
src/IGESGeom/IGESGeom_ToolCircularArc.cxx
src/IGESGeom/IGESGeom_ToolCircularArc.hxx
src/IGESGeom/IGESGeom_ToolCompositeCurve.cxx
src/IGESGeom/IGESGeom_ToolCompositeCurve.hxx
src/IGESGeom/IGESGeom_ToolConicArc.cxx
src/IGESGeom/IGESGeom_ToolConicArc.hxx
src/IGESGeom/IGESGeom_ToolCopiousData.cxx
src/IGESGeom/IGESGeom_ToolCopiousData.hxx
src/IGESGeom/IGESGeom_ToolCurveOnSurface.cxx
src/IGESGeom/IGESGeom_ToolCurveOnSurface.hxx
src/IGESGeom/IGESGeom_ToolDirection.cxx
src/IGESGeom/IGESGeom_ToolDirection.hxx
src/IGESGeom/IGESGeom_ToolFlash.cxx
src/IGESGeom/IGESGeom_ToolFlash.hxx
src/IGESGeom/IGESGeom_ToolLine.cxx
src/IGESGeom/IGESGeom_ToolLine.hxx
src/IGESGeom/IGESGeom_ToolOffsetCurve.cxx
src/IGESGeom/IGESGeom_ToolOffsetCurve.hxx
src/IGESGeom/IGESGeom_ToolOffsetSurface.cxx
src/IGESGeom/IGESGeom_ToolOffsetSurface.hxx
src/IGESGeom/IGESGeom_ToolPlane.cxx
src/IGESGeom/IGESGeom_ToolPlane.hxx
src/IGESGeom/IGESGeom_ToolPoint.cxx
src/IGESGeom/IGESGeom_ToolPoint.hxx
src/IGESGeom/IGESGeom_ToolRuledSurface.cxx
src/IGESGeom/IGESGeom_ToolRuledSurface.hxx
src/IGESGeom/IGESGeom_ToolSplineCurve.cxx
src/IGESGeom/IGESGeom_ToolSplineCurve.hxx
src/IGESGeom/IGESGeom_ToolSplineSurface.cxx
src/IGESGeom/IGESGeom_ToolSplineSurface.hxx
src/IGESGeom/IGESGeom_ToolSurfaceOfRevolution.cxx
src/IGESGeom/IGESGeom_ToolSurfaceOfRevolution.hxx
src/IGESGeom/IGESGeom_ToolTabulatedCylinder.cxx
src/IGESGeom/IGESGeom_ToolTabulatedCylinder.hxx
src/IGESGeom/IGESGeom_ToolTransformationMatrix.cxx
src/IGESGeom/IGESGeom_ToolTransformationMatrix.hxx
src/IGESGeom/IGESGeom_ToolTrimmedSurface.cxx
src/IGESGeom/IGESGeom_ToolTrimmedSurface.hxx
src/IGESGraph/IGESGraph_SpecificModule.cxx
src/IGESGraph/IGESGraph_SpecificModule.hxx
src/IGESGraph/IGESGraph_ToolColor.cxx
src/IGESGraph/IGESGraph_ToolColor.hxx
src/IGESGraph/IGESGraph_ToolDefinitionLevel.cxx
src/IGESGraph/IGESGraph_ToolDefinitionLevel.hxx
src/IGESGraph/IGESGraph_ToolDrawingSize.cxx
src/IGESGraph/IGESGraph_ToolDrawingSize.hxx
src/IGESGraph/IGESGraph_ToolDrawingUnits.cxx
src/IGESGraph/IGESGraph_ToolDrawingUnits.hxx
src/IGESGraph/IGESGraph_ToolHighLight.cxx
src/IGESGraph/IGESGraph_ToolHighLight.hxx
src/IGESGraph/IGESGraph_ToolIntercharacterSpacing.cxx
src/IGESGraph/IGESGraph_ToolIntercharacterSpacing.hxx
src/IGESGraph/IGESGraph_ToolLineFontDefPattern.cxx
src/IGESGraph/IGESGraph_ToolLineFontDefPattern.hxx
src/IGESGraph/IGESGraph_ToolLineFontDefTemplate.cxx
src/IGESGraph/IGESGraph_ToolLineFontDefTemplate.hxx
src/IGESGraph/IGESGraph_ToolLineFontPredefined.cxx
src/IGESGraph/IGESGraph_ToolLineFontPredefined.hxx
src/IGESGraph/IGESGraph_ToolNominalSize.cxx
src/IGESGraph/IGESGraph_ToolNominalSize.hxx
src/IGESGraph/IGESGraph_ToolPick.cxx
src/IGESGraph/IGESGraph_ToolPick.hxx
src/IGESGraph/IGESGraph_ToolTextDisplayTemplate.cxx
src/IGESGraph/IGESGraph_ToolTextDisplayTemplate.hxx
src/IGESGraph/IGESGraph_ToolTextFontDef.cxx
src/IGESGraph/IGESGraph_ToolTextFontDef.hxx
src/IGESGraph/IGESGraph_ToolUniformRectGrid.cxx
src/IGESGraph/IGESGraph_ToolUniformRectGrid.hxx
src/IGESSelect/IGESSelect_Activator.cxx
src/IGESSelect/IGESSelect_CounterOfLevelNumber.cxx
src/IGESSelect/IGESSelect_CounterOfLevelNumber.hxx
src/IGESSelect/IGESSelect_WorkLibrary.cxx
src/IGESSelect/IGESSelect_WorkLibrary.hxx
src/IGESSolid/IGESSolid_SpecificModule.cxx
src/IGESSolid/IGESSolid_SpecificModule.hxx
src/IGESSolid/IGESSolid_ToolBlock.cxx
src/IGESSolid/IGESSolid_ToolBlock.hxx
src/IGESSolid/IGESSolid_ToolBooleanTree.cxx
src/IGESSolid/IGESSolid_ToolBooleanTree.hxx
src/IGESSolid/IGESSolid_ToolConeFrustum.cxx
src/IGESSolid/IGESSolid_ToolConeFrustum.hxx
src/IGESSolid/IGESSolid_ToolConicalSurface.cxx
src/IGESSolid/IGESSolid_ToolConicalSurface.hxx
src/IGESSolid/IGESSolid_ToolCylinder.cxx
src/IGESSolid/IGESSolid_ToolCylinder.hxx
src/IGESSolid/IGESSolid_ToolCylindricalSurface.cxx
src/IGESSolid/IGESSolid_ToolCylindricalSurface.hxx
src/IGESSolid/IGESSolid_ToolEdgeList.cxx
src/IGESSolid/IGESSolid_ToolEdgeList.hxx
src/IGESSolid/IGESSolid_ToolEllipsoid.cxx
src/IGESSolid/IGESSolid_ToolEllipsoid.hxx
src/IGESSolid/IGESSolid_ToolFace.cxx
src/IGESSolid/IGESSolid_ToolFace.hxx
src/IGESSolid/IGESSolid_ToolLoop.cxx
src/IGESSolid/IGESSolid_ToolLoop.hxx
src/IGESSolid/IGESSolid_ToolManifoldSolid.cxx
src/IGESSolid/IGESSolid_ToolManifoldSolid.hxx
src/IGESSolid/IGESSolid_ToolPlaneSurface.cxx
src/IGESSolid/IGESSolid_ToolPlaneSurface.hxx
src/IGESSolid/IGESSolid_ToolRightAngularWedge.cxx
src/IGESSolid/IGESSolid_ToolRightAngularWedge.hxx
src/IGESSolid/IGESSolid_ToolSelectedComponent.cxx
src/IGESSolid/IGESSolid_ToolSelectedComponent.hxx
src/IGESSolid/IGESSolid_ToolShell.cxx
src/IGESSolid/IGESSolid_ToolShell.hxx
src/IGESSolid/IGESSolid_ToolSolidAssembly.cxx
src/IGESSolid/IGESSolid_ToolSolidAssembly.hxx
src/IGESSolid/IGESSolid_ToolSolidInstance.cxx
src/IGESSolid/IGESSolid_ToolSolidInstance.hxx
src/IGESSolid/IGESSolid_ToolSolidOfLinearExtrusion.cxx
src/IGESSolid/IGESSolid_ToolSolidOfLinearExtrusion.hxx
src/IGESSolid/IGESSolid_ToolSolidOfRevolution.cxx
src/IGESSolid/IGESSolid_ToolSolidOfRevolution.hxx
src/IGESSolid/IGESSolid_ToolSphere.cxx
src/IGESSolid/IGESSolid_ToolSphere.hxx
src/IGESSolid/IGESSolid_ToolSphericalSurface.cxx
src/IGESSolid/IGESSolid_ToolSphericalSurface.hxx
src/IGESSolid/IGESSolid_ToolToroidalSurface.cxx
src/IGESSolid/IGESSolid_ToolToroidalSurface.hxx
src/IGESSolid/IGESSolid_ToolTorus.cxx
src/IGESSolid/IGESSolid_ToolTorus.hxx
src/IGESSolid/IGESSolid_ToolVertexList.cxx
src/IGESSolid/IGESSolid_ToolVertexList.hxx
src/IGESToBRep/IGESToBRep_CurveAndSurface.cxx
src/IGESToBRep/IGESToBRep_Reader.cxx
src/IVtkDraw/IVtkDraw_Interactor.cxx
src/IVtkOCC/IVtkOCC_ShapePickerAlgo.cxx
src/Interface/Interface_Check.cxx
src/Interface/Interface_Check.hxx
src/Interface/Interface_CheckIterator.cxx
src/Interface/Interface_CheckIterator.hxx
src/Interface/Interface_CheckTool.cxx
src/Interface/Interface_CheckTool.hxx
src/Interface/Interface_FileReaderTool.cxx
src/Interface/Interface_InterfaceModel.cxx
src/Interface/Interface_InterfaceModel.hxx
src/Interface/Interface_ShareTool.cxx
src/Interface/Interface_ShareTool.hxx
src/Interface/Interface_Static.cxx
src/Interface/Interface_Static.hxx
src/Message/Message_Messenger.hxx
src/MoniTool/MoniTool_TypedValue.cxx
src/MoniTool/MoniTool_TypedValue.hxx
src/STEPCAFControl/STEPCAFControl_Writer.cxx
src/STEPConstruct/STEPConstruct_ValidationProps.cxx
src/STEPControl/STEPControl_ActorRead.cxx
src/StepData/StepData_StepDumper.cxx
src/StepData/StepData_StepDumper.hxx
src/StepData/StepData_StepModel.cxx
src/StepData/StepData_StepModel.hxx
src/StepData/StepData_StepReaderData.cxx
src/StepData/StepData_StepReaderTool.cxx
src/StepFile/StepFile_Read.cxx
src/StepSelect/StepSelect_WorkLibrary.cxx
src/StepSelect/StepSelect_WorkLibrary.hxx
src/StepToTopoDS/StepToTopoDS_Builder.cxx
src/Transfer/Transfer_FinderProcess.cxx
src/Transfer/Transfer_FinderProcess.hxx
src/Transfer/Transfer_ProcessForFinder.hxx
src/Transfer/Transfer_ProcessForTransient.hxx
src/Transfer/Transfer_TransferProcess.gxx
src/Transfer/Transfer_TransientProcess.cxx
src/Transfer/Transfer_TransientProcess.hxx
src/TransferBRep/TransferBRep_Reader.cxx
src/XSControl/XSControl_FuncShape.cxx
src/XSControl/XSControl_Functions.cxx
src/XSControl/XSControl_Reader.cxx
src/XSControl/XSControl_Reader.hxx
src/XSControl/XSControl_TransferReader.cxx
src/XSControl/XSControl_TransferReader.hxx
src/XSControl/XSControl_TransferWriter.cxx
src/XSControl/XSControl_Utils.cxx
src/XSControl/XSControl_WorkSession.cxx
src/XSControl/XSControl_WorkSession.hxx
src/XSDRAW/XSDRAW.cxx
src/XSDRAWIGES/XSDRAWIGES.cxx
src/XSDRAWSTEP/XSDRAWSTEP.cxx

index 86d80f21060de6e7387952380e395e82190d5bb1..c69ad559be5e6de5ed353e355949522b6b53af7b 100644 (file)
@@ -348,8 +348,8 @@ void IFSelect_ContextModif::TraceModifier
 {
   if (modif.IsNull()) return;
 
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  sout << "---   Run Modifier:" << Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  sout << "---   Run Modifier:" << std::endl;
   Handle(IFSelect_Selection) sel = modif->Selection();
   if (!sel.IsNull()) sout<<"      Selection:"<<sel->Label();
   else               sout<<"  (no Selection)";
@@ -359,8 +359,8 @@ void IFSelect_ContextModif::TraceModifier
   for (Standard_Integer i = 1; i <= nb; i ++) {
     if (thelist.Value(i) != ' ') ne ++;
   }
-  if (nb == ne) sout<<"  All Model ("<<nb<<" Entities)"<<Message_EndLine;
-  else          sout<<"  Entities,Total:"<<nb<<" Concerned:"<<ne<<Message_EndLine;
+  if (nb == ne) sout<<"  All Model ("<<nb<<" Entities)"<<std::endl;
+  else          sout<<"  Entities,Total:"<<nb<<" Concerned:"<<ne<<std::endl;
 }
 
 
@@ -373,13 +373,13 @@ void IFSelect_ContextModif::Trace (const Standard_CString mess)
 {
 //  Trace courante
   if (thecurr <= 0) return;
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (ValueOriginal() == ValueResult())
-    sout<<"--  ContextModif. Entity  n0 "<<thecurr<<Message_EndLine;
+    sout<<"--  ContextModif. Entity  n0 "<<thecurr<<std::endl;
   else
     sout<<"--  ContextModif. Entity in Original, n0 "<<thecurr<<" in Result, n0 "
-      <<thecurt<<Message_EndLine;
-  if (mess[0] != '\0') sout<<"--  Message:"<<mess<<Message_EndLine;
+      <<thecurt<<std::endl;
+  if (mess[0] != '\0') sout<<"--  Message:"<<mess<<std::endl;
 }
 
 
index cf6f58524797d12bad7f645e0c0326ea18a87612..2177a56c21a63e0a96a925bfd8a325be39f8530b 100644 (file)
@@ -405,46 +405,46 @@ IFSelect_EditForm::IFSelect_EditForm
 }
 
 
-    void  IFSelect_EditForm::PrintDefs (const Handle(Message_Messenger)& S) const
+    void  IFSelect_EditForm::PrintDefs (Standard_OStream& S) const
 {
   Standard_Integer iv, nbv = NbValues(Standard_True);
-  S<<"***** EditForm,  Label : "<<Label()<<Message_EndLine;
-  if (IsComplete()) S<<"Complete, "<<nbv<<" Values"<<Message_EndLine;
+  S<<"***** EditForm,  Label : "<<Label()<<std::endl;
+  if (IsComplete()) S<<"Complete, "<<nbv<<" Values"<<std::endl;
   else {
-    S<<"Extraction on "<<nbv<<" Values : (extracted<-editor)"<<Message_EndLine;
+    S<<"Extraction on "<<nbv<<" Values : (extracted<-editor)"<<std::endl;
     for (iv = 1; iv <= nbv; iv ++) S<<"  "<<iv<<"<-"<<NumberFromRank(iv);
-    S<<Message_EndLine;
+    S<<std::endl;
   }
-  S<<"*****"<<Message_EndLine;
+  S<<"*****"<<std::endl;
 }
 
 
 static void PrintList
   (const Handle(TColStd_HSequenceOfHAsciiString)& list,
-   const Handle(Message_Messenger)& S, const Standard_Boolean alsolist)
+   Standard_OStream& S, const Standard_Boolean alsolist)
 {
-  if (list.IsNull())  {  S<<"(NULL LIST)"<<Message_EndLine;  return;  }
+  if (list.IsNull())  {  S<<"(NULL LIST)"<<std::endl;  return;  }
 
   Standard_Integer i,nb = list->Length();
-  S<<"(List : "<<nb<<" Items)"<<Message_EndLine;
+  S<<"(List : "<<nb<<" Items)"<<std::endl;
   if (!alsolist) return;
 
   for (i = 1; i <= nb; i ++) {
     Handle(TCollection_HAsciiString) str = list->Value(i);
-    S<<"  ["<<i<<"]    "<< (str.IsNull() ? "(NULL)" : str->ToCString())<<Message_EndLine;
+    S<<"  ["<<i<<"]    "<< (str.IsNull() ? "(NULL)" : str->ToCString())<<std::endl;
   }
 }
 
     void  IFSelect_EditForm::PrintValues
-  (const Handle(Message_Messenger)& S, const Standard_Integer what,
+  (Standard_OStream& S, const Standard_Integer what,
    const Standard_Boolean names, const Standard_Boolean alsolist) const
 {
   Standard_Integer iv, nbv = NbValues(Standard_True);
-  S<<  "****************************************************"<<Message_EndLine;
-  S<<"*****  "<<Label()<<Interface_MSG::Blanks(Label(),40)<<"*****"<<Message_EndLine;
-  S<<"*****                                          *****"<<Message_EndLine;
+  S<<  "****************************************************"<<std::endl;
+  S<<"*****  "<<Label()<<Interface_MSG::Blanks(Label(),40)<<"*****"<<std::endl;
+  S<<"*****                                          *****"<<std::endl;
   if (!theloaded)
-    S<<"*****         Values are NOT loaded            *****"<<Message_EndLine;
+    S<<"*****         Values are NOT loaded            *****"<<std::endl;
 
   else {
 //  Donnees sur lesquelles on a travaille
@@ -453,18 +453,18 @@ static void PrintList
       else S<<"*****  No loaded Model. Loaded object : type "<<theent->DynamicType()->Name();
     } else {
       if (theent.IsNull()) S<<"*****  No loaded entity";
-      else { S<<"*****  Loaded entity : "; themodel->PrintLabel (theent,S); }
+      else { S<<"*****  Loaded entity : "; themodel->PrintLabel (theent, S); }
     }
   }
-  S<<Message_EndLine<<"****************************************************"<<Message_EndLine<<Message_EndLine;
+  S<<std::endl<<"****************************************************"<<std::endl<<std::endl;
 
 //  Affichage des valeurs
   Standard_Boolean nams = names;
   Standard_Integer maxnam = theeditor->MaxNameLength (names ? 0 : -1);
   if (maxnam == 0) { maxnam = theeditor->MaxNameLength (0); nams = Standard_True; }
   Standard_Integer nbmod = 0;
-  if (what != 0) S<<"Mod N0 Name               Value"<<Message_EndLine;
-  else S<<" N0 Name               Value"<<Message_EndLine;
+  if (what != 0) S<<"Mod N0 Name               Value"<<std::endl;
+  else S<<" N0 Name               Value"<<std::endl;
 
   for (iv = 1; iv <= nbv; iv ++) {
     Standard_Integer jv = NumberFromRank(iv);
@@ -475,7 +475,7 @@ static void PrintList
       Handle(TCollection_HAsciiString) str;
       if (IsModified(jv)) S<<"* ";
       else S<<"  ";
-      S <<Interface_MSG::Blanks(iv,3)<<iv<<" "
+      S<<Interface_MSG::Blanks(iv,3)<<iv<<" "
        <<name<<Interface_MSG::Blanks(name,maxnam)<<"  ";
 
       if (theeditor->IsList(jv)) {
@@ -489,7 +489,7 @@ static void PrintList
       if (what < 0) str = OriginalValue (jv);
       if (what > 0) str = EditedValue (jv);
 
-      S << (str.IsNull() ? "(NULL)" : str->ToCString()) <<Message_EndLine;
+      S<< (str.IsNull() ? "(NULL)" : str->ToCString()) <<std::endl;
 
 //    Modified only
     } else {
@@ -497,7 +497,7 @@ static void PrintList
       nbmod ++;
       if (theeditor->IsList(jv)) {
        Handle(TColStd_HSequenceOfHAsciiString) list= OriginalList (jv);
-       S <<Interface_MSG::Blanks(iv,3)<<iv<<" "
+       S<<Interface_MSG::Blanks(iv,3)<<iv<<" "
          <<name<<Interface_MSG::Blanks(name,maxnam)<<" ORIG:";
        PrintList (list,S,alsolist);
 
@@ -509,14 +509,14 @@ static void PrintList
       }
 
       Handle(TCollection_HAsciiString) str = OriginalValue (jv);
-      S <<Interface_MSG::Blanks(iv,3)<<iv<<" "
+      S<<Interface_MSG::Blanks(iv,3)<<iv<<" "
        <<name<<Interface_MSG::Blanks(name,maxnam)<<" ORIG:"
-       << (str.IsNull() ? "(NULL)" : str->ToCString()) <<Message_EndLine;
+       << (str.IsNull() ? "(NULL)" : str->ToCString()) <<std::endl;
       str = EditedValue (jv);
-      S<<Interface_MSG::Blanks("",maxnam+4)<<" MOD :"<< (str.IsNull() ? "(NULL)" : str->ToCString()) <<Message_EndLine;
+      S<<Interface_MSG::Blanks("",maxnam+4)<<" MOD :"<< (str.IsNull() ? "(NULL)" : str->ToCString()) <<std::endl;
     }
   }
-  if (what == 0) S<<"On "<<nbv<<" Values, "<<nbmod<<" Modified"<<Message_EndLine;
+  if (what == 0) S<<"On "<<nbv<<" Values, "<<nbmod<<" Modified"<<std::endl;
 }
 
 
index fcbf789fc1545f2a8ca0f331fa5e73db0a107ed7..aeddf372097b0888fe28a60322cae475bd625814 100644 (file)
@@ -34,8 +34,6 @@ class Standard_Transient;
 class Interface_InterfaceModel;
 class IFSelect_ListEditor;
 class TCollection_HAsciiString;
-class Message_Messenger;
-
 
 class IFSelect_EditForm;
 DEFINE_STANDARD_HANDLE(IFSelect_EditForm, Standard_Transient)
@@ -252,7 +250,7 @@ public:
   Standard_EXPORT void ClearEdit (const Standard_Integer num = 0);
   
   //! Prints Definitions, relative to the Editor
-  Standard_EXPORT void PrintDefs (const Handle(Message_Messenger)& S) const;
+  Standard_EXPORT void PrintDefs (Standard_OStream& S) const;
   
   //! Prints Values, according to what and alsolist
   //! <names> True : prints Long Names; False : prints Short Names
@@ -261,7 +259,7 @@ public:
   //! <what> = 0 : prints Modified Values (Original + Edited)
   //! <alsolist> False (D) : lists are printed only as their count
   //! <alsolist> True : lists are printed for all their items
-  Standard_EXPORT void PrintValues (const Handle(Message_Messenger)& S, const Standard_Integer what, const Standard_Boolean names, const Standard_Boolean alsolist = Standard_False) const;
+  Standard_EXPORT void PrintValues (Standard_OStream& S, const Standard_Integer what, const Standard_Boolean names, const Standard_Boolean alsolist = Standard_False) const;
   
   //! Applies modifications to own data
   //! Calls ApplyData then Clears Status according EditKeepStatus
index 2ad5da422ef3de3af173731249525d02f9581617..6c224be4a3bc2554e96e05f30c43f9410fdb0605 100644 (file)
@@ -103,14 +103,14 @@ Standard_Integer  IFSelect_Editor::MaxList (const Standard_Integer num) const
   return (IFSelect_EditValue) edm;
 }
 
-    void  IFSelect_Editor::PrintNames (const Handle(Message_Messenger)& S) const
+    void  IFSelect_Editor::PrintNames (Standard_OStream& S) const
 {
   Standard_Integer i, nb = NbValues();
-  S<<"****    Editor : "<<Label()<<Message_EndLine;
-  S<<"****    Nb Values = "<<nb<<"    ****    Names / Labels"<<Message_EndLine;
+  S<<"****    Editor : "<<Label()<<std::endl;
+  S<<"****    Nb Values = "<<nb<<"    ****    Names / Labels"<<std::endl;
   S<<" Num ";
   if (themaxsh > 0) S<<"Short"<<Interface_MSG::Blanks("Short",themaxsh)<<" ";
-  S<<"Complete"<<Interface_MSG::Blanks("Complete",themaxco)<<"  Label"<<Message_EndLine;
+  S<<"Complete"<<Interface_MSG::Blanks("Complete",themaxco)<<"  Label"<<std::endl;
 
   for (i = 1; i <= nb; i ++) {
     Handle(Interface_TypedValue) tv = TypedValue(i);
@@ -120,23 +120,23 @@ Standard_Integer  IFSelect_Editor::MaxList (const Standard_Integer num) const
       const TCollection_AsciiString& sho = theshorts(i);
       S<<sho<<Interface_MSG::Blanks(sho.ToCString(),themaxsh)<<" ";
     }
-    S<<tv->Name()<<Interface_MSG::Blanks(tv->Name(),themaxco)<<"  "<<tv->Label()<<Message_EndLine;
+    S<<tv->Name()<<Interface_MSG::Blanks(tv->Name(),themaxco)<<"  "<<tv->Label()<<std::endl;
   }
 }
 
     void  IFSelect_Editor::PrintDefs
-  (const Handle(Message_Messenger)& S, const Standard_Boolean labels) const
+  (Standard_OStream& S, const Standard_Boolean labels) const
 {
   Standard_Integer i, nb = NbValues();
-  S<<"****    Editor : "<<Label()<<Message_EndLine;
-  S<<"****    Nb Values = "<<nb<<"    ****    "<<(labels ? "Labels" : "Names")<<"  /  Definitions"<<Message_EndLine;
+  S<<"****    Editor : "<<Label()<<std::endl;
+  S<<"****    Nb Values = "<<nb<<"    ****    "<<(labels ? "Labels" : "Names")<<"  /  Definitions"<<std::endl;
   S<<" Num ";
   if (labels) S<<"Label"<<Interface_MSG::Blanks("Label",themaxla);
   else {
     if (themaxsh > 0) S<<"Short"<<Interface_MSG::Blanks("Short",themaxsh+1);
     S<<"Complete"<<Interface_MSG::Blanks("Complete",themaxco);
   }
-  S<<"  Edit Mode  &  Definition"<<Message_EndLine;
+  S<<"  Edit Mode  &  Definition"<<std::endl;
 
   for (i = 1; i <= nb; i ++) {
     Handle(Interface_TypedValue) tv = TypedValue(i);
@@ -167,7 +167,7 @@ Standard_Integer  IFSelect_Editor::MaxList (const Standard_Integer num) const
       default :                     S<<"?????????";  break;
     }
 
-    S<<" "<<tv->Definition()<<Message_EndLine;
+    S<<" "<<tv->Definition()<<std::endl;
   }
 }
 
index 766a75ae5b33b748403bf84955bba48fe3677b74..8258741ec6e30b19bc428ee2ede593c4b26ce03d 100644 (file)
@@ -33,7 +33,6 @@
 #include <NCollection_DataMap.hxx>
 class Standard_OutOfRange;
 class Interface_TypedValue;
-class Message_Messenger;
 class IFSelect_EditForm;
 class TCollection_HAsciiString;
 class IFSelect_ListEditor;
@@ -91,9 +90,9 @@ public:
   //! complete. If not found, returns 0
   Standard_EXPORT Standard_Integer NameNumber (const Standard_CString name) const;
   
-  Standard_EXPORT void PrintNames (const Handle(Message_Messenger)& S) const;
+  Standard_EXPORT void PrintNames (Standard_OStream& S) const;
   
-  Standard_EXPORT void PrintDefs (const Handle(Message_Messenger)& S, const Standard_Boolean labels = Standard_False) const;
+  Standard_EXPORT void PrintDefs (Standard_OStream& S, const Standard_Boolean labels = Standard_False) const;
   
   //! Returns the MaxLength of, according to what :
   //! <what> = -1 : length of short names
index 183b634cd687b2f252f9e78922b4639a677759d1..7066c807f306a15106b70aa96d1670bc46f1eaf2 100644 (file)
@@ -111,11 +111,11 @@ static IFSelect_ReturnStatus funstatus
 {
 //        ****    Version & cie     ****
   //#58 rln
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  sout<<"Processor Version : "<<XSTEP_PROCESSOR_VERSION<<Message_EndLine;
-  sout<<"OL Version        : "<<XSTEP_SYSTEM_VERSION<<Message_EndLine;
-  sout<<"Configuration     : "<<XSTEP_Config<<Message_EndLine;
-  sout<<"UL Names          : "<<XSTEP_ULNames<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  sout<<"Processor Version : "<<XSTEP_PROCESSOR_VERSION<<std::endl;
+  sout<<"OL Version        : "<<XSTEP_SYSTEM_VERSION<<std::endl;
+  sout<<"Configuration     : "<<XSTEP_Config<<std::endl;
+  sout<<"UL Names          : "<<XSTEP_ULNames<<std::endl;
   return IFSelect_RetVoid;
 }
 
@@ -125,9 +125,9 @@ static IFSelect_ReturnStatus fun1
   Handle(IFSelect_WorkSession) WS = pilot->Session();
 //        ****    ToggleHandler     ****
   Standard_Boolean hand = !WS->ErrorHandle();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (hand) sout << " --  Mode Catch Error now Active"   <<Message_EndLine;
-  else      sout << " --  Mode Catch Error now Inactive" <<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (hand) sout << " --  Mode Catch Error now Active"   <<std::endl;
+  else      sout << " --  Mode Catch Error now Inactive" <<std::endl;
   WS->SetErrorHandle(hand);
   return IFSelect_RetDone;
 }
@@ -139,21 +139,21 @@ static IFSelect_ReturnStatus fun3
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    XRead / Load         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Read/Load : give file name !"<<Message_EndLine; return IFSelect_RetError; }
-  if (WS->Protocol().IsNull()) { sout<<"Protocol not defined"<<Message_EndLine; return IFSelect_RetError; }
-  if (WS->WorkLibrary().IsNull()) { sout<<"WorkLibrary not defined"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Read/Load : give file name !"<<std::endl; return IFSelect_RetError; }
+  if (WS->Protocol().IsNull()) { sout<<"Protocol not defined"<<std::endl; return IFSelect_RetError; }
+  if (WS->WorkLibrary().IsNull()) { sout<<"WorkLibrary not defined"<<std::endl; return IFSelect_RetError; }
 
   IFSelect_ReturnStatus status = WS->ReadFile (arg1);
 // status : 0 OK, 1 erreur lecture, 2 Fail(try/catch),
 //          -1 fichier non trouve, -2 lecture faite mais resultat vide
   switch (status) {
-    case IFSelect_RetVoid  : sout<<"file:"<<arg1<<" gives empty result"<<Message_EndLine; break;
-    case IFSelect_RetError : sout<<"file:"<<arg1<<" could not be opened"<<Message_EndLine; break;
-    case IFSelect_RetDone  : sout<<"file:"<<arg1<<" read"<<Message_EndLine; break;
-    case IFSelect_RetFail  : sout<<"file:"<<arg1<<" : error while reading"<<Message_EndLine; break;
-    case IFSelect_RetStop  : sout<<"file:"<<arg1<<" : EXCEPTION while reading"<<Message_EndLine; break;
-    default : sout<<"file:"<<arg1<<" could not be read"<<Message_EndLine; break;
+    case IFSelect_RetVoid  : sout<<"file:"<<arg1<<" gives empty result"<<std::endl; break;
+    case IFSelect_RetError : sout<<"file:"<<arg1<<" could not be opened"<<std::endl; break;
+    case IFSelect_RetDone  : sout<<"file:"<<arg1<<" read"<<std::endl; break;
+    case IFSelect_RetFail  : sout<<"file:"<<arg1<<" : error while reading"<<std::endl; break;
+    case IFSelect_RetStop  : sout<<"file:"<<arg1<<" : EXCEPTION while reading"<<std::endl; break;
+    default : sout<<"file:"<<arg1<<" could not be read"<<std::endl; break;
   }
   if (status != IFSelect_RetDone) return status;
 //      sout<<" - clearing list of already written files"<<std::endl;
@@ -168,8 +168,8 @@ static IFSelect_ReturnStatus fun4
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Write All         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Write All : give file name !"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Write All : give file name !"<<std::endl; return IFSelect_RetError; }
   return WS->SendAll (arg1);
 }
 
@@ -181,12 +181,12 @@ static IFSelect_ReturnStatus fun5
   const Standard_CString arg1 = pilot->Arg(1);
 //  const Standard_CString arg2 = pilot->Arg(2);
 //        ****    Write Selected         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Write Selected : give file name + givelist !"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<"Write Selected : give file name + givelist !"<<std::endl; return IFSelect_RetError; }
   Handle(TColStd_HSequenceOfTransient) result =
     IFSelect_Functions::GiveList (WS,pilot->CommandPart( 2));
-  if (result.IsNull()) { sout<<"No entity selected"<<Message_EndLine; return IFSelect_RetError; }
-  else sout<<"Nb Entities selected : "<<result->Length()<<Message_EndLine;
+  if (result.IsNull()) { sout<<"No entity selected"<<std::endl; return IFSelect_RetError; }
+  else sout<<"Nb Entities selected : "<<result->Length()<<std::endl;
   Handle(IFSelect_SelectPointed) sp = new IFSelect_SelectPointed;
   sp->SetList (result);
   return WS->SendSelected (arg1,sp);
@@ -199,20 +199,20 @@ static IFSelect_ReturnStatus fun6
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Write Entite(s)         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Write Entitie(s) : give file name + n0s entitie(s)!"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<"Write Entitie(s) : give file name + n0s entitie(s)!"<<std::endl; return IFSelect_RetError; }
   int ko = 0;
   Handle(IFSelect_SelectPointed) sp = new IFSelect_SelectPointed;
   for (Standard_Integer ia = 2; ia < argc ; ia ++) {
     Standard_Integer id = pilot->Number(pilot->Arg(ia));
     if (id > 0) {
       Handle(Standard_Transient) item = WS->StartingEntity(id);
-      if (sp->Add(item)) sout<<"Added:no."<<id<<Message_EndLine;
-      else { sout<<" Fail Add n0."<<id<<Message_EndLine; ko ++; }
+      if (sp->Add(item)) sout<<"Added:no."<<id<<std::endl;
+      else { sout<<" Fail Add n0."<<id<<std::endl; ko ++; }
     }
-    else { sout<<"Not an entity number:"<<pilot->Arg(ia)<<Message_EndLine; ko ++; }
+    else { sout<<"Not an entity number:"<<pilot->Arg(ia)<<std::endl; ko ++; }
   }
-  if (ko > 0) { sout<<ko<<" bad arguments, abandon"<<Message_EndLine; return IFSelect_RetError; }
+  if (ko > 0) { sout<<ko<<" bad arguments, abandon"<<std::endl; return IFSelect_RetError; }
   return WS->SendSelected (arg1,sp);
 }
 
@@ -223,15 +223,15 @@ static IFSelect_ReturnStatus fun7
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Entity Label       ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give entity number"<<Message_EndLine; return IFSelect_RetError; }
-  if (!WS->HasModel()) { sout<<"No loaded model, abandon"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give entity number"<<std::endl; return IFSelect_RetError; }
+  if (!WS->HasModel()) { sout<<"No loaded model, abandon"<<std::endl; return IFSelect_RetError; }
   Standard_Integer nument = WS->NumberFromLabel (arg1);
   if (nument <= 0 || nument > WS->NbStartingEntities())
-    { sout<<"Not a suitable number: "<<arg1<<Message_EndLine;  return IFSelect_RetError; }
+    { sout<<"Not a suitable number: "<<arg1<<std::endl;  return IFSelect_RetError; }
   sout<<"N0."<<nument<<" ->Label in Model : ";
-  WS->Model()->PrintLabel(WS->StartingEntity(nument),sout);  
-  sout<<Message_EndLine;
+  WS->Model()->PrintLabel(WS->StartingEntity(nument), sout);
+  sout<<std::endl;
   return IFSelect_RetVoid;
 }
 
@@ -242,22 +242,24 @@ static IFSelect_ReturnStatus fun8
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Entity Number      ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give label to search"<<Message_EndLine; return IFSelect_RetError; }
-  if (!WS->HasModel()) { sout<<"No loaded model, abandon"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give label to search"<<std::endl; return IFSelect_RetError; }
+  if (!WS->HasModel()) { sout<<"No loaded model, abandon"<<std::endl; return IFSelect_RetError; }
   const Handle(Interface_InterfaceModel) &model = WS->Model();
   Standard_Integer i, cnt = 0;
   Standard_Boolean exact = Standard_False;
-  sout<<" **  Search Entity Number for Label : "<<arg1<<Message_EndLine;
+  sout<<" **  Search Entity Number for Label : "<<arg1<<std::endl;
   for (i = model->NextNumberForLabel (arg1, 0, exact)  ; i != 0;
        i = model->NextNumberForLabel (arg1, i, exact)) {
     cnt ++;
-    sout<<" **  Found n0/id:"; model->Print (model->Value(i),sout); sout<<Message_EndLine;
+    sout<<" **  Found n0/id:"; 
+    model->Print (model->Value(i), sout);
+    sout<<std::endl;
   }
   
-  if (cnt == 0) sout<<" **  No Match"<<Message_EndLine;
-  else if (cnt == 1) sout<<" **  1 Match"<<Message_EndLine;
-  else sout<<cnt<<" Matches"<<Message_EndLine;
+  if (cnt == 0) sout<<" **  No Match"<<std::endl;
+  else if (cnt == 1) sout<<" **  1 Match"<<std::endl;
+  else sout<<cnt<<" Matches"<<std::endl;
   return IFSelect_RetVoid;
 }
 
@@ -283,12 +285,12 @@ static IFSelect_ReturnStatus funcount
   Standard_Boolean listmode = (arg0[0] == 'l');
 //        ****    List Counter         ****
 
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) {
-    sout<<"Designer signature ou compteur, + facultatif selection + facultatif entite"<<Message_EndLine;
-    sout<<" signature/compteur seul -> tout le modele"<<Message_EndLine
-      <<  " sign/compteur + selection -> cette selection, evaluation normale"<<Message_EndLine
-       <<" sign/compteur + sel + num -> cette selection evaluee sur entite n0 num"<<Message_EndLine;
+    sout<<"Designer signature ou compteur, + facultatif selection + facultatif entite"<<std::endl;
+    sout<<" signature/compteur seul -> tout le modele"<<std::endl
+      <<  " sign/compteur + selection -> cette selection, evaluation normale"<<std::endl
+       <<" sign/compteur + sel + num -> cette selection evaluee sur entite n0 num"<<std::endl;
     return IFSelect_RetError;
   }
   DeclareAndCast(IFSelect_SignCounter,counter,WS->NamedItem(arg1));
@@ -322,7 +324,7 @@ static IFSelect_ReturnStatus funcount
       for (i = 1; i < onflag; i ++) {
        sel = WS->GiveSelection(pilot->Arg(i));
        if (!suite->AddInput(sel)) {
-         sout<<"Incorrect definition for applied selection"<<Message_EndLine;
+         sout<<"Incorrect definition for applied selection"<<std::endl;
          return IFSelect_RetError;
        }
       }
@@ -335,7 +337,7 @@ static IFSelect_ReturnStatus funcount
   }
 
   if (counter.IsNull()) {
-    sout<<"Neither Counter nor Signature : "<<arg1<<Message_EndLine;
+    sout<<"Neither Counter nor Signature : "<<arg1<<std::endl;
     return IFSelect_RetError;
   }
 
@@ -354,27 +356,27 @@ static IFSelect_ReturnStatus funsigntype
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Sign Type              ****
   Handle(IFSelect_Signature) signtype = WS->SignType();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (signtype.IsNull()) sout<<"signtype actually undefined"<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (signtype.IsNull()) sout<<"signtype actually undefined"<<std::endl;
   else {
     Handle(TCollection_HAsciiString) str = WS->Name (signtype);
     Standard_Integer id = WS->ItemIdent (signtype);
-    sout<<signtype->Label()<<Message_EndLine;
+    sout<<signtype->Label()<<std::endl;
     if (str.IsNull()) {
-      if (id > 0) sout<<"signtype : item n0 "<<id<<Message_EndLine;
+      if (id > 0) sout<<"signtype : item n0 "<<id<<std::endl;
     } else {
-      sout<<"signtype : also named as "<<str->ToCString()<<Message_EndLine;
+      sout<<"signtype : also named as "<<str->ToCString()<<std::endl;
     }
   }
-  if (argc < 2) sout<<"signtype newitem  to change, signtype . to clear"<<Message_EndLine;
+  if (argc < 2) sout<<"signtype newitem  to change, signtype . to clear"<<std::endl;
   else {
     if (arg1[0] == '.' && arg1[1] == '\0') {
       signtype.Nullify();
-      sout<<"signtype now cleared"<<Message_EndLine;
+      sout<<"signtype now cleared"<<std::endl;
     } else {
       signtype = GetCasted(IFSelect_Signature,WS->NamedItem(arg1));
-      if (signtype.IsNull()) { sout<<"Not a Signature : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
-      else sout<<"signtype now set to "<<arg1<<Message_EndLine;
+      if (signtype.IsNull()) { sout<<"Not a Signature : "<<arg1<<std::endl; return IFSelect_RetError; }
+      else sout<<"signtype now set to "<<arg1<<std::endl;
     }
     WS->SetSignType(signtype);
     return IFSelect_RetDone;
@@ -389,23 +391,23 @@ static IFSelect_ReturnStatus funsigncase
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Sign Case              ****
   Handle(IFSelect_Signature) signcase = GetCasted(IFSelect_Signature,WS->NamedItem(arg1));
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (signcase.IsNull()) sout<<"Not a Signature : "<<arg1<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (signcase.IsNull()) sout<<"Not a Signature : "<<arg1<<std::endl;
   else {
     Standard_Boolean hasmin,hasmax;  Standard_Integer valmin,valmax;
     if (signcase->IsIntCase(hasmin,valmin,hasmax,valmax)) {
       sout<<"Signature "<<arg1<<" : Integer Case";
       if (hasmin) sout<<" - Mini:"<<valmin;
       if (hasmax) sout<<" - Maxi:"<<valmax;
-      sout<<Message_EndLine;
+      sout<<std::endl;
     }
     Handle(TColStd_HSequenceOfAsciiString) caselist = signcase->CaseList();
-    if (caselist.IsNull()) sout<<"Signature "<<arg1<<" : no predefined case, see command  count "<<arg1<<Message_EndLine;
+    if (caselist.IsNull()) sout<<"Signature "<<arg1<<" : no predefined case, see command  count "<<arg1<<std::endl;
     else {
       Standard_Integer i, nb = caselist->Length();
-      sout<<"Signature "<<arg1<<" : "<<nb<<" basic cases :"<<Message_EndLine;
+      sout<<"Signature "<<arg1<<" : "<<nb<<" basic cases :"<<std::endl;
       for (i = 1; i <= nb; i ++) sout<<"  "<<caselist->Value(i);
-      sout<<Message_EndLine;
+      sout<<std::endl;
     }
   }
   return IFSelect_RetVoid;
@@ -420,20 +422,20 @@ static IFSelect_ReturnStatus fun10
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Entity Status          ****
   Standard_Integer i,nb;
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) {
     nb = Interface_Category::NbCategories();
     sout<<" Categories defined :"<<nb<<" i.e. :\n";
     for (i = 0; i <= nb; i ++)
       sout<<"Cat."<<i<<"  : "<<Interface_Category::Name(i)<<"\n";
-    sout<<" On a given entity : give its number"<<Message_EndLine;
+    sout<<" On a given entity : give its number"<<std::endl;
     return IFSelect_RetVoid;
   }
   Standard_Integer num = pilot->Number(arg1);
   if (num <= 0 || num > WS->NbStartingEntities())
-    { sout<<"Not a suitable entity number : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
+    { sout<<"Not a suitable entity number : "<<arg1<<std::endl; return IFSelect_RetError; }
   Handle(Standard_Transient) ent = WS->StartingEntity(num);
-  WS->PrintEntityStatus(ent,sout);
+  WS->PrintEntityStatus (ent, sout);
   return IFSelect_RetVoid;
 }
 
@@ -447,7 +449,7 @@ static IFSelect_ReturnStatus fun11
   Standard_Integer niv = 0;
 //  char arg10 = arg1[0];
 //  if (argc < 2) arg10 = '?';
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   switch (arg1[0]) {
     case '?' :
      sout<<"? for this help, else give a listing mode (first letter suffices) :\n"
@@ -459,7 +461,7 @@ static IFSelect_ReturnStatus fun11
        <<" check      CheckList (complete) per message (counting)\n"
        <<" totalcheck CheckList (complete) per message (listing n0 ents)\n"
        <<" FAILS      CheckList (fails)    per message (listing complete)\n"
-       <<" TOTALCHECK CheckList (complete) per message (listing complete)"<<Message_EndLine;
+       <<" TOTALCHECK CheckList (complete) per message (listing complete)"<<std::endl;
      return IFSelect_RetVoid;
     case 'g' : niv = 0; break;
     case 'r' : niv = 1; break;
@@ -471,7 +473,7 @@ static IFSelect_ReturnStatus fun11
     case 'T' : niv = 7; break;
     case 'f' : niv = 8; break;
     case 'F' : niv =10; break;
-    default  : sout<<"Unknown Mode .  data tout court pour help"<<Message_EndLine; return IFSelect_RetError;
+    default  : sout<<"Unknown Mode .  data tout court pour help"<<std::endl; return IFSelect_RetError;
   }
   WS->TraceDumpModel(niv);
   return IFSelect_RetVoid;
@@ -485,14 +487,14 @@ static IFSelect_ReturnStatus fundumpent
   Handle(IFSelect_WorkLibrary) WL = WS->WorkLibrary();
   Standard_Integer levdef=0,levmax=10,level;
   WL->DumpLevels (levdef,levmax);
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2 || (argc == 2 && levmax < 0)) {
     sout<<"Give n0 or id of entity";
-    if (levmax < 0) sout<<"  and dump level"<<Message_EndLine;
-    else sout<<"  + optinal, dump level in [0 - "<<levmax<<"] , default = "<<levdef<<Message_EndLine;
+    if (levmax < 0) sout<<"  and dump level"<<std::endl;
+    else sout<<"  + optinal, dump level in [0 - "<<levmax<<"] , default = "<<levdef<<std::endl;
     for (level = 0; level <= levmax; level ++) {
       Standard_CString help = WL->DumpHelp (level);
-      if (help[0] != '\0') sout<<level<<" : "<<help<<Message_EndLine;
+      if (help[0] != '\0') sout<<level<<" : "<<help<<std::endl;
     }
     return IFSelect_RetError;
   }
@@ -505,10 +507,10 @@ static IFSelect_ReturnStatus fundumpent
   if (argc > 2) level = atoi(arg2);
   Handle(Standard_Transient) ent = WS->StartingEntity(num);
   if ( ent.IsNull() ) {
-    sout << "No entity with given id " << arg1 << " (" << num << ") is found in the current model" << Message_EndLine;
+    sout << "No entity with given id " << arg1 << " (" << num << ") is found in the current model" << std::endl;
   }
   else {
-    sout << "  --   DUMP  Entity n0 " << num << "  level " << level << Message_EndLine;
+    sout << "  --   DUMP  Entity n0 " << num << "  level " << level << std::endl;
     WL->DumpEntity (WS->Model(),WS->Protocol(),ent,sout,level);
 
     Interface_CheckIterator chl = WS->CheckOne (ent);
@@ -526,14 +528,14 @@ static IFSelect_ReturnStatus funsign
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<" Give signature name + n0 or id of entity"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<" Give signature name + n0 or id of entity"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Signature,sign,WS->NamedItem(arg1));
-  if (sign.IsNull()) { sout<<"Not a signature : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
+  if (sign.IsNull()) { sout<<"Not a signature : "<<arg1<<std::endl; return IFSelect_RetError; }
   Standard_Integer num = pilot->Number(arg2);
   Handle(Standard_Transient) ent = WS->StartingEntity (num);
   if (num == 0) return IFSelect_RetError;
-  sout<<"Entity n0 "<<num<<" : "<<WS->SignValue(sign,ent)<<Message_EndLine;
+  sout<<"Entity n0 "<<num<<" : "<<WS->SignValue(sign,ent)<<std::endl;
   return IFSelect_RetVoid;
 }
 
@@ -544,15 +546,15 @@ static IFSelect_ReturnStatus funqp
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<" Give 2 numeros or labels : dad son"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<" Give 2 numeros or labels : dad son"<<std::endl; return IFSelect_RetError; }
   Standard_Integer n1 = WS->NumberFromLabel(arg1);
   Standard_Integer n2 = WS->NumberFromLabel(arg2);
-  sout<<"QueryParent for dad:"<<arg1<<":"<<n1<<" and son:"<<arg2<<":"<<n2<<Message_EndLine;
+  sout<<"QueryParent for dad:"<<arg1<<":"<<n1<<" and son:"<<arg2<<":"<<n2<<std::endl;
   Standard_Integer qp = WS->QueryParent(WS->StartingEntity(n1),WS->StartingEntity(n2));
-  if (qp < 0) sout<<arg1<<" is not super-entity of "<<arg2<<Message_EndLine;
-  else if (qp == 0) sout<<arg1<<" is same as "<<arg2<<Message_EndLine;
-  else sout<<arg1<<" is super-entity of "<<arg2<<" , max level found="<<qp<<Message_EndLine;
+  if (qp < 0) sout<<arg1<<" is not super-entity of "<<arg2<<std::endl;
+  else if (qp == 0) sout<<arg1<<" is same as "<<arg2<<std::endl;
+  else sout<<arg1<<" is super-entity of "<<arg2<<" , max level found="<<qp<<std::endl;
 //  sout<<" Trouve "<<qp<<std::endl;
   return IFSelect_RetVoid;
 }
@@ -581,8 +583,8 @@ static IFSelect_ReturnStatus fun14
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    NewInt            ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 1) { sout<<"Donner la valeur entiere pour IntParam"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 1) { sout<<"Donner la valeur entiere pour IntParam"<<std::endl; return IFSelect_RetError; }
   Handle(IFSelect_IntParam) intpar = new IFSelect_IntParam;
   if (argc >= 1)       intpar->SetValue(atoi(arg1));
   return pilot->RecordItem (intpar);
@@ -596,9 +598,9 @@ static IFSelect_ReturnStatus fun15
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SetInt            ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 3)
-    { sout<<"Donner 2 arguments : nom Parametre et Valeur"<<Message_EndLine; return IFSelect_RetError; }
+    { sout<<"Donner 2 arguments : nom Parametre et Valeur"<<std::endl; return IFSelect_RetError; }
   Standard_Integer val = atoi(arg2);
   DeclareAndCast(IFSelect_IntParam,par,WS->NamedItem(arg1));
   if (!WS->SetIntValue(par,val)) return IFSelect_RetFail;
@@ -612,8 +614,8 @@ static IFSelect_ReturnStatus fun16
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    NewText           ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 1) { sout<<"Donner la valeur texte pour TextParam"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 1) { sout<<"Donner la valeur texte pour TextParam"<<std::endl; return IFSelect_RetError; }
   Handle(TCollection_HAsciiString) textpar = new TCollection_HAsciiString();
   if (argc >= 1) textpar->AssignCat(arg1);
   return pilot->RecordItem (textpar);
@@ -627,9 +629,9 @@ static IFSelect_ReturnStatus fun17
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SetText           ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 3)
-    { sout<<"Donner 2 arguments : nom Parametre et Valeur"<<Message_EndLine; return IFSelect_RetError; }
+    { sout<<"Donner 2 arguments : nom Parametre et Valeur"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(TCollection_HAsciiString,par,WS->NamedItem(arg1));
   if (!WS->SetTextValue(par,arg2)) return IFSelect_RetFail;
   return IFSelect_RetDone;
@@ -642,8 +644,8 @@ static IFSelect_ReturnStatus fun19
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    DumpSel           ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give 1 argument : Selection Name"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give 1 argument : Selection Name"<<std::endl; return IFSelect_RetError; }
   WS->DumpSelection (GetCasted(IFSelect_Selection,WS->NamedItem(arg1)));
   return IFSelect_RetVoid;
 }
@@ -659,8 +661,8 @@ static IFSelect_ReturnStatus fun20
 //        ****    MakeList          ****
   char mode = pilot->Arg(0)[0];  // givelist/makelist
   if (mode == 'g') mode = pilot->Arg(0)[4];  // l list  s short  p pointed
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<std::endl; return IFSelect_RetError; }
 
 //    MakeList : sur Pointed existante ou a creer
   Handle(IFSelect_SelectPointed) pnt;
@@ -669,10 +671,10 @@ static IFSelect_ReturnStatus fun20
     Handle(Standard_Transient) item = WS->NamedItem (arg1);
     pnt = GetCasted(IFSelect_SelectPointed,item);
     if (!pnt.IsNull()) {
-      sout<<arg1<<":Already existing Selection for List, cleared then filled"<<Message_EndLine;
+      sout<<arg1<<":Already existing Selection for List, cleared then filled"<<std::endl;
       pnt->Clear();
     } else if (!item.IsNull()) {
-      sout<<arg1<<":Already existing Item not for a List, command ignored"<<Message_EndLine;
+      sout<<arg1<<":Already existing Item not for a List, command ignored"<<std::endl;
       return IFSelect_RetFail;
     } else {
       pnt = new IFSelect_SelectPointed;
@@ -685,19 +687,19 @@ static IFSelect_ReturnStatus fun20
   if (result.IsNull()) return IFSelect_RetError;
   Interface_EntityIterator iter (result);
   sout<<pilot->CommandPart( (mode == 'm' ? 2 : 1) )<<" : ";
-  if      (mode == 'l')   WS->ListEntities (iter,0);
-  else if (mode == 's' || mode == 'm') WS->ListEntities (iter,2);
+  if      (mode == 'l')   WS->ListEntities (iter, 0, sout);
+  else if (mode == 's' || mode == 'm') WS->ListEntities (iter, 2, sout);
   else if (mode == 'p') {
     sout<<iter.NbEntities()<<" Entities : ";
     for (iter.Start(); iter.More(); iter.Next())
       sout<<" +"<<WS->StartingNumber (iter.Value());
-    sout<<Message_EndLine;
+    sout<<std::endl;
   }
 
   if (!pnt.IsNull()) {
     pnt->SetList (result);
-    sout<<"List set to a SelectPointed : "<<pilot->Arg(1)<<Message_EndLine;
-    sout<<"Later editable by command setlist"<<Message_EndLine;
+    sout<<"List set to a SelectPointed : "<<pilot->Arg(1)<<std::endl;
+    sout<<"Later editable by command setlist"<<std::endl;
   }
 
   return IFSelect_RetVoid;
@@ -709,13 +711,13 @@ static IFSelect_ReturnStatus fun20c
   Handle(IFSelect_WorkSession) WS = pilot->Session();
   Standard_Integer argc = pilot->NbWords();
 //        ****    GiveCount         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<std::endl; return IFSelect_RetError; }
 //  WS->EvaluateSelection(GetCasted(IFSelect_Selection,WS->NamedItem(arg1)));
   Handle(TColStd_HSequenceOfTransient) result =
     IFSelect_Functions::GiveList (WS,pilot->CommandPart(1));
   if (result.IsNull()) return IFSelect_RetError;
-  sout<<pilot->CommandPart(1)<<" : List of "<<result->Length()<<" Entities"<<Message_EndLine;
+  sout<<pilot->CommandPart(1)<<" : List of "<<result->Length()<<" Entities"<<std::endl;
   return IFSelect_RetVoid;
 }
 
@@ -725,15 +727,15 @@ static IFSelect_ReturnStatus funselsuite
   Handle(IFSelect_WorkSession) WS = pilot->Session();
   Standard_Integer argc = pilot->NbWords();
 //        ****    SelSuite         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<std::endl; return IFSelect_RetError; }
 //  WS->EvaluateSelection(GetCasted(IFSelect_Selection,WS->NamedItem(arg1)));
   Handle(IFSelect_SelectSuite) selsuite = new IFSelect_SelectSuite;
 
   for (Standard_Integer i = 1; i < argc; i ++) {
     Handle(IFSelect_Selection) sel = WS->GiveSelection(pilot->Arg(i));
     if (!selsuite->AddInput(sel)) {
-      sout<<pilot->Arg(i-1)<<" : not a SelectDeduct, no more can be added. Abandon"<<Message_EndLine;
+      sout<<pilot->Arg(i-1)<<" : not a SelectDeduct, no more can be added. Abandon"<<std::endl;
       return IFSelect_RetError;
     }
   }
@@ -767,11 +769,11 @@ static IFSelect_ReturnStatus fun22
     if (arg1[0] == '?') mode = -1;
   }
   else mode = 0;
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (mode <= 0) {
     if (mode < 0) sout<<"Give a suitable mode";
     sout<<"  Available Modes :\n"
-      <<" a : all data    g : graph+check  c : check  p : selectpointed"<<Message_EndLine;
+      <<" a : all data    g : graph+check  c : check  p : selectpointed"<<std::endl;
     return (mode < 0 ? IFSelect_RetError : IFSelect_RetVoid);
   }
   WS->ClearData (mode);
@@ -784,9 +786,9 @@ static IFSelect_ReturnStatus fun24
   Handle(IFSelect_WorkSession) WS = pilot->Session();
   Standard_Integer argc = pilot->NbWords();
 //        ****    Item Label         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   TCollection_AsciiString label;
-  if (argc < 2) { sout<<" Give  label to search"<<Message_EndLine;  return IFSelect_RetError;  }
+  if (argc < 2) { sout<<" Give  label to search"<<std::endl;  return IFSelect_RetError;  }
   for (int i = 1; i < argc; i ++) {
     label.AssignCat(pilot->Arg(i));
     if (i < argc-1) label.AssignCat(" ");
@@ -794,14 +796,14 @@ static IFSelect_ReturnStatus fun24
   for (int mode = 0; mode <= 2; mode ++) {
     int nbitems = 0;  int id;
     sout<<"Searching label : "<<label<<". in mode ";
-    if (mode == 0) sout <<" exact" << Message_EndLine;
-    if (mode == 1) sout <<" same head" << Message_EndLine;
-    if (mode == 2) sout <<" search if present" << Message_EndLine;
+    if (mode == 0) sout <<" exact" << std::endl;
+    if (mode == 1) sout <<" same head" << std::endl;
+    if (mode == 2) sout <<" search if present" << std::endl;
     for (id = WS->NextIdentForLabel(label.ToCString(), 0,mode)  ; id != 0;
         id = WS->NextIdentForLabel(label.ToCString(),id,mode)) {
       sout<<" "<<id;  nbitems ++;
     }
-    sout<<" -- giving " << nbitems << " found" << Message_EndLine;
+    sout<<" -- giving " << nbitems << " found" << std::endl;
   }
   return IFSelect_RetVoid;
 }
@@ -813,8 +815,8 @@ static IFSelect_ReturnStatus fun25
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Save (Dump)       ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner nom du Fichier"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner nom du Fichier"<<std::endl; return IFSelect_RetError; }
   IFSelect_SessionFile dumper(WS,arg1);
   if (!dumper.IsDone()) return IFSelect_RetFail;
   return IFSelect_RetDone;
@@ -827,13 +829,13 @@ static IFSelect_ReturnStatus fun26
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Restore (Dump)    ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner nom du Fichier"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner nom du Fichier"<<std::endl; return IFSelect_RetError; }
   IFSelect_SessionFile dumper(WS);
   Standard_Integer readstat = dumper.Read(arg1);
   if      (readstat == 0) return IFSelect_RetDone;
-  else if (readstat >  0) sout << "-- Erreur Lecture Fichier "<<arg1<<Message_EndLine;
-  else                    sout << "-- Pas pu ouvrir Fichier "<<arg1<<Message_EndLine;
+  else if (readstat >  0) sout << "-- Erreur Lecture Fichier "<<arg1<<std::endl;
+  else                    sout << "-- Pas pu ouvrir Fichier "<<arg1<<std::endl;
   return IFSelect_RetDone;
 }
 
@@ -845,33 +847,33 @@ static IFSelect_ReturnStatus fun27
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    Param(Value)         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) {
     Handle(TColStd_HSequenceOfHAsciiString) li = Interface_Static::Items();
     Standard_Integer i,nb = li->Length();
-    sout<<" List of parameters : "<<nb<<" items : "<<Message_EndLine;
+    sout<<" List of parameters : "<<nb<<" items : "<<std::endl;
     for (i = 1; i <= nb; i ++) {
-      sout<<li->Value(i);
-      sout<<" : "<<Interface_Static::CVal(li->Value(i)->ToCString())<<Message_EndLine;
+      sout<<li->Value(i)->String();
+      sout<<" : "<<Interface_Static::CVal(li->Value(i)->ToCString())<<std::endl;
     }
     return IFSelect_RetVoid;
   } else if (atoi(arg1) > 0) {
     Standard_Integer use = atoi (arg1);
     WS->TraceStatics (use);
   } else {
-    if (argc > 2) sout<<"     FORMER STATUS of Static Parameter "<<arg1<<Message_EndLine;
-    else          sout<<"     ACTUAL STATUS of Static Parameter "<<arg1<<Message_EndLine;
-    if (!Interface_Static::IsPresent(arg1)) { sout<<" Parameter "<<arg1<<" undefined"<<Message_EndLine; return IFSelect_RetError; }
-    if (!Interface_Static::IsSet(arg1)) sout<<" Parameter "<<arg1<<" not valued"<<Message_EndLine;
-    else if (argc == 2) Interface_Static::Static (arg1) -> Print(sout);
-    else sout<<" Value : "<<Interface_Static::CVal(arg1)<<Message_EndLine;
-
-    if (argc == 2) sout<<"To modify, param name_param new_val"<<Message_EndLine;
+    if (argc > 2) sout<<"     FORMER STATUS of Static Parameter "<<arg1<<std::endl;
+    else          sout<<"     ACTUAL STATUS of Static Parameter "<<arg1<<std::endl;
+    if (!Interface_Static::IsPresent(arg1)) { sout<<" Parameter "<<arg1<<" undefined"<<std::endl; return IFSelect_RetError; }
+    if (!Interface_Static::IsSet(arg1)) sout<<" Parameter "<<arg1<<" not valued"<<std::endl;
+    else if (argc == 2) Interface_Static::Static (arg1) -> Print (sout);
+    else sout<<" Value : "<<Interface_Static::CVal(arg1)<<std::endl;
+
+    if (argc == 2) sout<<"To modify, param name_param new_val"<<std::endl;
     else {
       sout<<" New demanded value : "<<arg2;
       if (Interface_Static::SetCVal (arg1,arg2))
-       {  sout<<"   OK"<<Message_EndLine;  return IFSelect_RetDone;  }
-      else  {  sout <<" , refused"<<Message_EndLine;  return IFSelect_RetError;  }
+       {  sout<<"   OK"<<std::endl;  return IFSelect_RetDone;  }
+      else  {  sout <<" , refused"<<std::endl;  return IFSelect_RetError;  }
     }
   }
   return IFSelect_RetVoid;
@@ -883,13 +885,13 @@ static IFSelect_ReturnStatus fun29
   Handle(IFSelect_WorkSession) WS = pilot->Session();
 //        ****    SentFiles         ****
   Handle(TColStd_HSequenceOfHAsciiString) list = WS->SentFiles();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (list.IsNull())
-    { sout<<"List of Sent Files not enabled"<<Message_EndLine; return IFSelect_RetVoid; }
+    { sout<<"List of Sent Files not enabled"<<std::endl; return IFSelect_RetVoid; }
   Standard_Integer i, nb = list->Length();
-  sout<<"  Sent Files : "<<nb<<" : "<<Message_EndLine;
+  sout<<"  Sent Files : "<<nb<<" : "<<std::endl;
   for (i = 1; i <= nb; i ++)
-    sout<<list->Value(i)->ToCString()<<Message_EndLine
+    sout<<list->Value(i)->ToCString()<<std::endl
   return IFSelect_RetVoid;
 }
 
@@ -900,11 +902,11 @@ static IFSelect_ReturnStatus fun30
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    FilePrefix        ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) {
-    if (WS->FilePrefix().IsNull()) sout<<"Pas de prefixe defini"<<Message_EndLine;
-    else sout<<"Prefixe : "<<WS->FilePrefix()->ToCString()<<Message_EndLine;
-    sout<<"Pour changer :  filepref newprefix"<<Message_EndLine;
+    if (WS->FilePrefix().IsNull()) sout<<"Pas de prefixe defini"<<std::endl;
+    else sout<<"Prefixe : "<<WS->FilePrefix()->ToCString()<<std::endl;
+    sout<<"Pour changer :  filepref newprefix"<<std::endl;
     return IFSelect_RetVoid;
   }
   WS->SetFilePrefix(arg1);
@@ -918,11 +920,11 @@ static IFSelect_ReturnStatus fun31
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    FileExtension     ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) {
-    if (WS->FileExtension().IsNull()) sout<<"Pas d extension definie"<<Message_EndLine;
-    else sout<<"Extension : "<<WS->FileExtension()->ToCString()<<Message_EndLine;
-    sout<<"Pour changer :  fileext newext"<<Message_EndLine;
+    if (WS->FileExtension().IsNull()) sout<<"Pas d extension definie"<<std::endl;
+    else sout<<"Extension : "<<WS->FileExtension()->ToCString()<<std::endl;
+    sout<<"Pour changer :  fileext newext"<<std::endl;
     return IFSelect_RetVoid;
   }
   WS->SetFileExtension(arg1);
@@ -937,13 +939,13 @@ static IFSelect_ReturnStatus fun32
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    FileRoot          ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Dispatch et nom de Root"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner Dispatch et nom de Root"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(arg1));
   if (argc < 3) {
-    if (WS->FileRoot(disp).IsNull()) sout<<"Pas de racine definie pour "<<arg1<<Message_EndLine;
-    else sout<<"Racine pour "<<arg1<<" : "<<WS->FileRoot(disp)->ToCString()<<Message_EndLine;
-    sout<<"Pour changer :  fileroot nomdisp newroot"<<Message_EndLine;
+    if (WS->FileRoot(disp).IsNull()) sout<<"Pas de racine definie pour "<<arg1<<std::endl;
+    else sout<<"Racine pour "<<arg1<<" : "<<WS->FileRoot(disp)->ToCString()<<std::endl;
+    sout<<"Pour changer :  fileroot nomdisp newroot"<<std::endl;
     return IFSelect_RetVoid;
   }
   if (!WS->SetFileRoot(disp,arg2)) return IFSelect_RetFail;
@@ -957,11 +959,11 @@ static IFSelect_ReturnStatus fun33
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Default File Root     ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) {
-    if (WS->DefaultFileRoot().IsNull()) sout<<"Pas de racine par defaut definie"<<Message_EndLine;
-    else sout<<"Racine par defaut : "<<WS->DefaultFileRoot()->ToCString()<<Message_EndLine;
-    sout<<"Pour changer :  filedef newdef"<<Message_EndLine;
+    if (WS->DefaultFileRoot().IsNull()) sout<<"Pas de racine par defaut definie"<<std::endl;
+    else sout<<"Racine par defaut : "<<WS->DefaultFileRoot()->ToCString()<<std::endl;
+    sout<<"Pour changer :  filedef newdef"<<std::endl;
     return IFSelect_RetVoid;
   }
   WS->SetDefaultFileRoot(arg1);
@@ -973,20 +975,20 @@ static IFSelect_ReturnStatus fun34
 {
   Handle(IFSelect_WorkSession) WS = pilot->Session();
 //        ****    EvalFile          ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (!WS->HasModel()) 
-    {  sout<<"Pas de Modele charge, abandon"<<Message_EndLine;  return IFSelect_RetFail; }
+    {  sout<<"Pas de Modele charge, abandon"<<std::endl;  return IFSelect_RetFail; }
 
-  sout<<"Evaluation avec Memorisation des resultats"<<Message_EndLine;
+  sout<<"Evaluation avec Memorisation des resultats"<<std::endl;
   WS->EvaluateFile();
   Standard_Integer nbf = WS->NbFiles();
   for (Standard_Integer i = 1; i <= nbf; i ++) {
     Handle(Interface_InterfaceModel) mod = WS->FileModel(i);
     if (mod.IsNull())
-      {  sout<<"Modele "<<i<<" Model non genere ..."<<Message_EndLine; continue;  }
+      {  sout<<"Modele "<<i<<" Model non genere ..."<<std::endl; continue;  }
     TCollection_AsciiString name = WS->FileName(i);
     sout<<"Fichier n0 "<<i<<" Nb Entites : "<<mod->NbEntities()<<"  Nom: ";
-    sout<<name<<Message_EndLine;
+    sout<<name<<std::endl;
   }
   return IFSelect_RetDone;
 }
@@ -1005,15 +1007,15 @@ static IFSelect_ReturnStatus fun36
   Handle(IFSelect_WorkSession) WS = pilot->Session();
   Standard_Integer argc = pilot->NbWords();
 //        ****    Split              ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   IFSelect_ReturnStatus stat = IFSelect_RetVoid;
-  if (argc < 2) sout<<"Split : derniere liste de dispatches definie"<<Message_EndLine;
+  if (argc < 2) sout<<"Split : derniere liste de dispatches definie"<<std::endl;
   else {
     WS->ClearShareOut(Standard_True);
     for (Standard_Integer i = 1; i < argc; i ++) {
       DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(pilot->Arg(i)));
       if (disp.IsNull()) {
-       sout<<"Pas un dispatch:"<<pilot->Arg(i)<<", Splitt abandonne"<<Message_EndLine;
+       sout<<"Pas un dispatch:"<<pilot->Arg(i)<<", Splitt abandonne"<<std::endl;
        stat = IFSelect_RetError;
       }
       else WS->SetActive(disp,Standard_True);
@@ -1039,9 +1041,9 @@ static IFSelect_ReturnStatus fun37
   else if (mode == 'c') numod = IFSelect_RemainCompute;
   else if (mode == 'f') numod = IFSelect_RemainForget;
   else {
-    Handle(Message_Messenger) sout = Message::DefaultMessenger();
+    Message_Messenger::StreamBuffer sout = Message::SendInfo();
     if (argc<2) sout<<"Donner un Mode - ";
-    sout<<"Modes possibles : l  list, c compute, u undo, f forget"<<Message_EndLine;
+    sout<<"Modes possibles : l  list, c compute, u undo, f forget"<<std::endl;
     if (mode == '?') return IFSelect_RetDone;   else return IFSelect_RetError;
   }
   if (!WS->SetRemaining(numod)) return IFSelect_RetVoid;
@@ -1056,18 +1058,18 @@ static IFSelect_ReturnStatus fun38
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SetModelContent    ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Donner nom selection et mode (k=keep,r=remove)"<<Message_EndLine;  return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<"Donner nom selection et mode (k=keep,r=remove)"<<std::endl;  return IFSelect_RetError; }
   Standard_Boolean keepmode;
   DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
   if (sel.IsNull())
-    { sout<<"Pas de Selection de Nom : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
+    { sout<<"Pas de Selection de Nom : "<<arg1<<std::endl; return IFSelect_RetError; }
   if      (arg2[0] == 'k') {  sout<<" -- SetContent keep ..."; keepmode = Standard_True; }
   else if (arg2[0] == 'r') {  sout<<" -- SetContent remove ..."; keepmode = Standard_False; }
-  else { sout<<"Donner nom selection et mode (k=keep,r=remove)"<<Message_EndLine;  return IFSelect_RetError; }
+  else { sout<<"Donner nom selection et mode (k=keep,r=remove)"<<std::endl;  return IFSelect_RetError; }
   
-  if (WS->SetModelContent(sel,keepmode)) sout<<" Done"<<Message_EndLine;
-  else sout<<" Result empty, ignored"<<Message_EndLine;
+  if (WS->SetModelContent(sel,keepmode)) sout<<" Done"<<std::endl;
+  else sout<<" Result empty, ignored"<<std::endl;
   return IFSelect_RetDone;
 }
 
@@ -1087,30 +1089,30 @@ static IFSelect_ReturnStatus fun41
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Modifier           ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom du Modifier"<<Message_EndLine;  return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner Nom du Modifier"<<std::endl;  return IFSelect_RetError; }
   DeclareAndCast(IFSelect_GeneralModifier,modif,WS->NamedItem(arg1));
   if (modif.IsNull())
-    { sout<<"Pas de Modifier de Nom : "<<arg1<<Message_EndLine; return IFSelect_RetVoid; }
+    { sout<<"Pas de Modifier de Nom : "<<arg1<<std::endl; return IFSelect_RetVoid; }
   Handle(IFSelect_IntParam) low,up;
 
   Handle(IFSelect_Dispatch) disp = modif->Dispatch();
-  sout<<"Modifier : "<<arg1<<" Label : "<<modif->Label()<<Message_EndLine;
+  sout<<"Modifier : "<<arg1<<" Label : "<<modif->Label()<<std::endl;
   Standard_Integer rank = WS->ModifierRank(modif);
   if (modif->IsKind(STANDARD_TYPE(IFSelect_Modifier)))
     sout<< "Model Modifier n0." << rank;
   else sout<< "File Modifier n0." << rank;
-  if (disp.IsNull()) sout<<"  Applique a tous les Dispatchs" << Message_EndLine;
+  if (disp.IsNull()) sout<<"  Applique a tous les Dispatchs" << std::endl;
   else {
     sout << "  Dispatch : "<<disp->Label();
     if (WS->HasName(disp)) sout << " - Nom:"<<WS->Name(disp)->ToCString();
-    sout<<Message_EndLine;
+    sout<<std::endl;
   }
 
   Handle(IFSelect_Selection) sel = modif->Selection();
   if (!sel.IsNull()) sout<<"  Selection : "<< sel->Label();
   if (WS->HasName(sel)) sout<<" - Nom:"<< WS->Name(sel)->ToCString();
-  sout<<Message_EndLine;
+  sout<<std::endl;
   return IFSelect_RetVoid;
 }
 
@@ -1122,17 +1124,17 @@ static IFSelect_ReturnStatus fun42
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    ModifSel           ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) { sout<<"Donner Nom Modifier; + Nom Selection optionnel\n"
-                     <<"Selection pour Mettre une Selection, sinon Annule"<<Message_EndLine; return IFSelect_RetError; }
+                     <<"Selection pour Mettre une Selection, sinon Annule"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_GeneralModifier,modif,WS->NamedItem(arg1));
   if (modif.IsNull())
-    { sout<<"Pas un nom de Modifier : "<<arg1<<Message_EndLine; return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Modifier : "<<arg1<<std::endl; return IFSelect_RetError;  }
   Handle(IFSelect_Selection) sel;
   if (arg2[0] != '\0') {
     sel = GetCasted(IFSelect_Selection,WS->NamedItem(arg2));
     if (sel.IsNull())
-      { sout<<"Pas un nom de Selection : "<<arg2<<Message_EndLine;  return IFSelect_RetError;  }
+      { sout<<"Pas un nom de Selection : "<<arg2<<std::endl;  return IFSelect_RetError;  }
   }
   if (!WS->SetItemSelection(modif,sel)) return IFSelect_RetFail;
   return IFSelect_RetDone;
@@ -1146,19 +1148,19 @@ static IFSelect_ReturnStatus fun43
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SetAppliedModifier           ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) { sout<<"Donner Nom Modifier; + Nom Dispatch ou Transformer optionnel :\n"
                      <<" - rien : tous Dispatches\n - Dispatch : ce Dispatch seul\n"
-                     <<" - Transformer : pas un Dispatch mais un Transformer"<<Message_EndLine;
+                     <<" - Transformer : pas un Dispatch mais un Transformer"<<std::endl;
                  return IFSelect_RetError;  }
   DeclareAndCast(IFSelect_GeneralModifier,modif,WS->NamedItem(arg1));
   if (modif.IsNull())
-    { sout<<"Pas un nom de Modifier : "<<arg1<<Message_EndLine;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Modifier : "<<arg1<<std::endl;  return IFSelect_RetError;  }
   Handle(Standard_Transient) item;
   if (arg2[0] != '\0') {
     item = WS->NamedItem(arg2);
     if (item.IsNull())
-      { sout<<"Pas un nom connu : "<<arg2<<Message_EndLine;  return IFSelect_RetError;  }
+      { sout<<"Pas un nom connu : "<<arg2<<std::endl;  return IFSelect_RetError;  }
   }
   else item = WS->ShareOut();
   if (!WS->SetAppliedModifier(modif,item)) return IFSelect_RetFail;
@@ -1172,11 +1174,11 @@ static IFSelect_ReturnStatus fun44
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    ResetApplied (modifier)    ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Designer un modifier"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Designer un modifier"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_GeneralModifier,modif,WS->NamedItem(arg1));
   if (modif.IsNull())
-    { sout<<"Pas un nom de Modifier : "<<arg1<<Message_EndLine;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Modifier : "<<arg1<<std::endl;  return IFSelect_RetError;  }
   if (!WS->ResetAppliedModifier(modif)) return IFSelect_RetFail;
   return IFSelect_RetDone;
 }
@@ -1190,15 +1192,15 @@ static IFSelect_ReturnStatus fun45
   const Standard_CString arg2 = pilot->Arg(2);
   const Standard_CString arg3 = pilot->Arg(3);
 //        ****    ModifMove         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 4) { sout<<"modifmove MF rang1 rang2, M pour Model F pour File"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 4) { sout<<"modifmove MF rang1 rang2, M pour Model F pour File"<<std::endl; return IFSelect_RetError; }
   Standard_Boolean formodel;
   if      (arg1[0] == 'm' || arg1[0] == 'M') formodel = Standard_True;
   else if (arg1[0] == 'f' || arg1[0] == 'F') formodel = Standard_False;
-  else { sout<<"preciser M pour Model, F pour File"<<Message_EndLine; return IFSelect_RetError; }
+  else { sout<<"preciser M pour Model, F pour File"<<std::endl; return IFSelect_RetError; }
   Standard_Integer before = atoi(arg2);
   Standard_Integer after  = atoi(arg3);
-  if (before == 0 || after == 0) { sout<<"Donner 2 Entiers Positifs"<<Message_EndLine; return IFSelect_RetError; }
+  if (before == 0 || after == 0) { sout<<"Donner 2 Entiers Positifs"<<std::endl; return IFSelect_RetError; }
   if (!WS->ChangeModifierRank(formodel,before,after)) return IFSelect_RetFail;
   return IFSelect_RetDone;
 }
@@ -1211,14 +1213,14 @@ static IFSelect_ReturnStatus fun51
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    DispSel           ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Donner Noms Dispatch et Selection Finale"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<"Donner Noms Dispatch et Selection Finale"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(arg1));
   if (disp.IsNull())
-    { sout<<"Pas un nom de Dispatch : "<<arg1<<Message_EndLine;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Dispatch : "<<arg1<<std::endl;  return IFSelect_RetError;  }
   DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg2));
   if (sel.IsNull())
-    { sout<<"Pas un nom de Selection : "<<arg2<<Message_EndLine;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Selection : "<<arg2<<std::endl;  return IFSelect_RetError;  }
   if (!WS->SetItemSelection(disp,sel)) return IFSelect_RetFail;
   return IFSelect_RetDone;
 }
@@ -1248,11 +1250,11 @@ static IFSelect_ReturnStatus fun_dispcount
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    DispCount         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom IntParam pour Count"<<Message_EndLine;  return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner Nom IntParam pour Count"<<std::endl;  return IFSelect_RetError; }
   DeclareAndCast(IFSelect_IntParam,par,WS->NamedItem(arg1));
   if (par.IsNull())
-    { sout<<"Pas un nom de IntParam : "<<arg1<<Message_EndLine;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de IntParam : "<<arg1<<std::endl;  return IFSelect_RetError;  }
   Handle(IFSelect_DispPerCount) disp = new IFSelect_DispPerCount;
   disp->SetCount (par);
   return pilot->RecordItem(disp);
@@ -1265,11 +1267,11 @@ static IFSelect_ReturnStatus fun_dispfiles
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    DispFiles         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom IntParam pour NbFiles"<<Message_EndLine;  return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner Nom IntParam pour NbFiles"<<std::endl;  return IFSelect_RetError; }
   DeclareAndCast(IFSelect_IntParam,par,WS->NamedItem(arg1));
   if (par.IsNull())
-    { sout<<"Pas un nom de IntParam : "<<arg1<<Message_EndLine;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de IntParam : "<<arg1<<std::endl;  return IFSelect_RetError;  }
   Handle(IFSelect_DispPerFiles) disp = new IFSelect_DispPerFiles;
   disp->SetCount (par);
   return pilot->RecordItem(disp);
@@ -1283,11 +1285,11 @@ static IFSelect_ReturnStatus fun_dispsign
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    DispFiles         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom Signature"<<Message_EndLine;  return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner Nom Signature"<<std::endl;  return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Signature,sig,WS->NamedItem(arg1));
   if (sig.IsNull())
-    { sout<<"Pas un nom de Signature : "<<arg1<<Message_EndLine;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Signature : "<<arg1<<std::endl;  return IFSelect_RetError;  }
   Handle(IFSelect_DispPerSignature) disp = new IFSelect_DispPerSignature;
   disp->SetSignCounter (new IFSelect_SignCounter(sig));
   return pilot->RecordItem(disp);
@@ -1301,19 +1303,19 @@ static IFSelect_ReturnStatus fun56
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Dispatch           ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom du Dispatch"<<Message_EndLine;  return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner Nom du Dispatch"<<std::endl;  return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(arg1));
-  if (disp.IsNull()) { sout<<"Pas un dispatch : "<<arg1<<Message_EndLine; return IFSelect_RetError;  }
+  if (disp.IsNull()) { sout<<"Pas un dispatch : "<<arg1<<std::endl; return IFSelect_RetError;  }
   Standard_Integer num = WS->DispatchRank(disp);
   sout<<"Dispatch de Nom : "<<arg1<<" , en ShareOut, Numero "<<num<<" : ";
   Handle(IFSelect_Selection) sel = WS->ItemSelection(disp);
   Handle(TCollection_HAsciiString) selname = WS->Name(sel);
-  if (sel.IsNull())  sout<<"Pas de Selection Finale"<<Message_EndLine;
-  else if (selname.IsNull()) sout<<"Selection Finale : #"<<WS->ItemIdent(sel)<<Message_EndLine;
-  else sout<<"Selection Finale : "<<selname->ToCString()<<Message_EndLine;
+  if (sel.IsNull())  sout<<"Pas de Selection Finale"<<std::endl;
+  else if (selname.IsNull()) sout<<"Selection Finale : #"<<WS->ItemIdent(sel)<<std::endl;
+  else sout<<"Selection Finale : "<<selname->ToCString()<<std::endl;
   if (disp->HasRootName()) sout<<"-- Racine nom de fichier : "
-    <<disp->RootName()->ToCString()<<Message_EndLine;
+    <<disp->RootName()->ToCString()<<std::endl;
   return IFSelect_RetVoid;
 }
 
@@ -1324,8 +1326,8 @@ static IFSelect_ReturnStatus fun57
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Remove           ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give Name to Remove !"<<Message_EndLine;  return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give Name to Remove !"<<std::endl;  return IFSelect_RetError; }
   if (!WS->RemoveNamedItem(arg1)) return IFSelect_RetFail;
   return IFSelect_RetDone;
 }
@@ -1337,20 +1339,20 @@ static IFSelect_ReturnStatus fun58
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    EvalDisp          ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 3) { sout<<"evaldisp mode disp [disp ...] :  Mode + Name(s) of Dispatch(es). Mode:\n"
-                   <<"  0 brief  1 +forgotten ents  2 +duplicata  3 1+2"<<Message_EndLine
-                   <<"See also : evaladisp  writedisp  xsplit"<<Message_EndLine;
+                   <<"  0 brief  1 +forgotten ents  2 +duplicata  3 1+2"<<std::endl
+                   <<"See also : evaladisp  writedisp  xsplit"<<std::endl;
                  return IFSelect_RetVoid;  }
   Standard_Boolean OK = Standard_True;
   Standard_Integer i , mode = atoi(arg1);  sout<<" Mode "<<mode<<"\n";
   for (i = 2; i < argc; i ++) {
     DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(pilot->Arg(i)));
     if (disp.IsNull())
-      { sout<<"Not a dispatch:"<<pilot->Arg(i)<<Message_EndLine; OK = Standard_False; }
+      { sout<<"Not a dispatch:"<<pilot->Arg(i)<<std::endl; OK = Standard_False; }
   }
   if (!OK) {
-    sout<<"Some of the parameters are not correct"<<Message_EndLine;
+    sout<<"Some of the parameters are not correct"<<std::endl;
     return IFSelect_RetError;
   }
 
@@ -1372,17 +1374,17 @@ static IFSelect_ReturnStatus fun_evaladisp
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    EvalADisp [GiveList]         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 3) { sout<<"evaladisp mode(=0-1-2-3) disp [givelist] :  Mode + Dispatch [+ GiveList]\n  If GiveList not given, computed from Selection of the Dispatch. Mode:\n"
-                   <<"  0 brief  1 +forgotten ents  2 +duplicata  3 1+2"<<Message_EndLine
-                   <<"See also : writedisp"<<Message_EndLine;
+                   <<"  0 brief  1 +forgotten ents  2 +duplicata  3 1+2"<<std::endl
+                   <<"See also : writedisp"<<std::endl;
                  return IFSelect_RetVoid;  }
-  if (arg1[1] != '\0') { sout<<"first parameter : mode, must be a number between 0 and 3"<<Message_EndLine; return IFSelect_RetError; }
+  if (arg1[1] != '\0') { sout<<"first parameter : mode, must be a number between 0 and 3"<<std::endl; return IFSelect_RetError; }
   Standard_Integer mode = atoi(arg1);  sout<<" Mode "<<mode<<"\n";
 //  DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(pilot->Arg(2)));
   Handle(IFSelect_Dispatch) disp = IFSelect_Functions::GiveDispatch (WS,pilot->Arg(2),Standard_True);
   if (disp.IsNull())
-    { sout<<"Not a dispatch:"<<pilot->Arg(2)<<Message_EndLine; return IFSelect_RetError; }
+    { sout<<"Not a dispatch:"<<pilot->Arg(2)<<std::endl; return IFSelect_RetError; }
   Handle(IFSelect_Selection) selsav = disp->FinalSelection();
   Handle(IFSelect_Selection) sel;
   if (argc > 3) {
@@ -1394,9 +1396,9 @@ static IFSelect_ReturnStatus fun_evaladisp
   }
 
   if (sel.IsNull() && selsav.IsNull())
-    { sout<<"No Selection nor GiveList defined"<<Message_EndLine; return IFSelect_RetError; }
+    { sout<<"No Selection nor GiveList defined"<<std::endl; return IFSelect_RetError; }
   if (sel.IsNull() && !selsav.IsNull()) {
-    if (argc > 3) sout<<"GiveList is empty, hence computed from the Selection of the Dispatch"<<Message_EndLine;
+    if (argc > 3) sout<<"GiveList is empty, hence computed from the Selection of the Dispatch"<<std::endl;
     sel = selsav;
   }
   disp->SetFinalSelection(sel);
@@ -1415,23 +1417,23 @@ static IFSelect_ReturnStatus fun_writedisp
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    EvalADisp [GiveList]         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 3) { sout<<"writedisp filename disp [givelist] :  FileName + Dispatch [+ GiveList]\n  If GiveList not given, computed from Selection of the Dispatch.\n"
                    <<"FileName : rootname.ext will gives rootname_1.ext etc...\n"
                    <<"  path/rootname.ext gives  path/rootname_1.ext etc...\n"
-                   <<"See also : evaladisp"<<Message_EndLine;
+                   <<"See also : evaladisp"<<std::endl;
                  return IFSelect_RetVoid;  }
   TCollection_AsciiString prefix,rootname,suffix;
   SplitFileName (arg1,prefix,rootname,suffix);
   if (rootname.Length() == 0 || suffix.Length() == 0) {
-    sout<<"Empty Root Name or Extension"<<Message_EndLine;
+    sout<<"Empty Root Name or Extension"<<std::endl;
     return IFSelect_RetError;
   }
 
 //  DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(pilot->Arg(2)));
   Handle(IFSelect_Dispatch) disp = IFSelect_Functions::GiveDispatch (WS,pilot->Arg(2),Standard_True);
   if (disp.IsNull())
-    { sout<<"Not a dispatch:"<<pilot->Arg(2)<<Message_EndLine; return IFSelect_RetError; }
+    { sout<<"Not a dispatch:"<<pilot->Arg(2)<<std::endl; return IFSelect_RetError; }
   Handle(IFSelect_Selection) selsav = disp->FinalSelection();
   Handle(IFSelect_Selection) sel;
   if (argc > 3) {
@@ -1443,9 +1445,9 @@ static IFSelect_ReturnStatus fun_writedisp
   }
 
   if (sel.IsNull() && selsav.IsNull())
-    { sout<<"No Selection nor GiveList defined"<<Message_EndLine; return IFSelect_RetError; }
+    { sout<<"No Selection nor GiveList defined"<<std::endl; return IFSelect_RetError; }
   if (sel.IsNull() && !selsav.IsNull()) {
-    if (argc > 3) sout<<"GiveList is empty, hence computed from the Selection of the Dispatch"<<Message_EndLine;
+    if (argc > 3) sout<<"GiveList is empty, hence computed from the Selection of the Dispatch"<<std::endl;
     sel = selsav;
   }
 
@@ -1472,9 +1474,9 @@ static IFSelect_ReturnStatus fun59
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    EvalComplete      ****
   Standard_Integer mode = 0;
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) sout << " -- mode par defaut 0\n";
-  else { mode = atoi(arg1); sout << " -- mode : " << mode << Message_EndLine;  }
+  else { mode = atoi(arg1); sout << " -- mode : " << mode << std::endl;  }
   WS->EvaluateComplete(mode);  return IFSelect_RetVoid;
 }
 
@@ -1486,7 +1488,8 @@ static IFSelect_ReturnStatus fun60
   Interface_CheckIterator chlist = WS->LastRunCheckList();
   Handle(IFSelect_CheckCounter) counter = new IFSelect_CheckCounter(0);
   counter->Analyse(chlist,WS->Model(),Standard_False);
-  counter->PrintCount (Message::DefaultMessenger());
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  counter->PrintCount (sout);
   return IFSelect_RetVoid;
 }
 
@@ -1497,24 +1500,24 @@ static IFSelect_ReturnStatus fun61
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    RunTransformer    ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom de Transformer"<<Message_EndLine; return IFSelect_RetError;  }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner Nom de Transformer"<<std::endl; return IFSelect_RetError;  }
   DeclareAndCast(IFSelect_Transformer,tsf,WS->NamedItem(arg1));
   Standard_Integer effect = WS->RunTransformer(tsf);
   switch (effect) {
-    case -4 : sout<<"Edition sur place, nouveau Protocole, erreur recalcul graphe"<<Message_EndLine; break;
-    case -3 : sout<<"Erreur, Transformation ignoree"<<Message_EndLine; break;
-    case -2 : sout<<"Erreur sur edition sur place, risque de corruption (verifier)"<<Message_EndLine; break;
-    case -1 : sout<<"Erreur sur edition locale, risque de corruption (verifier)"<<Message_EndLine; break;
+    case -4 : sout<<"Edition sur place, nouveau Protocole, erreur recalcul graphe"<<std::endl; break;
+    case -3 : sout<<"Erreur, Transformation ignoree"<<std::endl; break;
+    case -2 : sout<<"Erreur sur edition sur place, risque de corruption (verifier)"<<std::endl; break;
+    case -1 : sout<<"Erreur sur edition locale, risque de corruption (verifier)"<<std::endl; break;
     case  0 :
-      if   (tsf.IsNull()) sout<<"Erreur, pas un Transformer: "<<arg1<<Message_EndLine;
-      else sout<<"Execution non faite"<<Message_EndLine;
+      if   (tsf.IsNull()) sout<<"Erreur, pas un Transformer: "<<arg1<<std::endl;
+      else sout<<"Execution non faite"<<std::endl;
              break;
-    case  1 : sout<<"Transformation locale (graphe non touche)"<<Message_EndLine; break;
-    case  2 : sout<<"Edition sur place (graphe recalcule)"<<Message_EndLine;  break;
-    case  3 : sout<<"Modele reconstruit"<<Message_EndLine; break;
-    case  4 : sout<<"Edition sur place, nouveau Protocole"<<Message_EndLine;  break;
-    case  5 : sout<<"Nouveau Modele avec nouveau Protocole"<<Message_EndLine; break;
+    case  1 : sout<<"Transformation locale (graphe non touche)"<<std::endl; break;
+    case  2 : sout<<"Edition sur place (graphe recalcule)"<<std::endl;  break;
+    case  3 : sout<<"Modele reconstruit"<<std::endl; break;
+    case  4 : sout<<"Edition sur place, nouveau Protocole"<<std::endl;  break;
+    case  5 : sout<<"Nouveau Modele avec nouveau Protocole"<<std::endl; break;
     default : break;
   }
   return ((effect > 0) ? IFSelect_RetDone : IFSelect_RetFail);
@@ -1554,9 +1557,9 @@ static IFSelect_ReturnStatus fun6465
     pilot->Perform();
     modif = GetCasted(IFSelect_Modifier,pilot->RecordedItem());
   }
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (modif.IsNull())
-    { sout<<"Pas un nom de Modifier : "<<arg1<<Message_EndLine;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Modifier : "<<arg1<<std::endl;  return IFSelect_RetError;  }
 
   Handle(TColStd_HSequenceOfTransient) list;
   Handle(IFSelect_SelectPointed) sp;
@@ -1570,19 +1573,19 @@ static IFSelect_ReturnStatus fun6465
   effect = WS->RunModifierSelected (modif,sp,runcopy);
 //      sout<<"Modifier applique sur TransformStandard #"<<WS->ItemIdent(tsf)<<std::endl;
   switch (effect) {
-    case -4 : sout<<"Edition sur place, nouveau Protocole, erreur recalcul graphe"<<Message_EndLine; break;
-    case -3 : sout<<"Erreur, Transformation ignoree"<<Message_EndLine; break;
-    case -2 : sout<<"Erreur sur edition sur place, risque de corruption (verifier)"<<Message_EndLine; break;
-    case -1 : sout<<"Erreur sur edition locale, risque de corruption (verifier)"<<Message_EndLine; break;
+    case -4 : sout<<"Edition sur place, nouveau Protocole, erreur recalcul graphe"<<std::endl; break;
+    case -3 : sout<<"Erreur, Transformation ignoree"<<std::endl; break;
+    case -2 : sout<<"Erreur sur edition sur place, risque de corruption (verifier)"<<std::endl; break;
+    case -1 : sout<<"Erreur sur edition locale, risque de corruption (verifier)"<<std::endl; break;
     case  0 :
-      if   (modif.IsNull()) sout<<"Erreur, pas un Modifier: "<<arg1<<Message_EndLine;
-      else sout<<"Execution non faite"<<Message_EndLine;
+      if   (modif.IsNull()) sout<<"Erreur, pas un Modifier: "<<arg1<<std::endl;
+      else sout<<"Execution non faite"<<std::endl;
              break;
-    case  1 : sout<<"Transformation locale (graphe non touche)"<<Message_EndLine; break;
-    case  2 : sout<<"Edition sur place (graphe recalcule)"<<Message_EndLine;  break;
-    case  3 : sout<<"Modele reconstruit"<<Message_EndLine; break;
-    case  4 : sout<<"Edition sur place, nouveau Protocole"<<Message_EndLine;  break;
-    case  5 : sout<<"Nouveau Modele avec nouveau Protocole"<<Message_EndLine; break;
+    case  1 : sout<<"Transformation locale (graphe non touche)"<<std::endl; break;
+    case  2 : sout<<"Edition sur place (graphe recalcule)"<<std::endl;  break;
+    case  3 : sout<<"Modele reconstruit"<<std::endl; break;
+    case  4 : sout<<"Edition sur place, nouveau Protocole"<<std::endl;  break;
+    case  5 : sout<<"Nouveau Modele avec nouveau Protocole"<<std::endl; break;
     default : break;
   }
   return ((effect > 0) ? IFSelect_RetDone : IFSelect_RetFail);
@@ -1595,9 +1598,9 @@ static IFSelect_ReturnStatus fun66
   char opt = ' ';
   Standard_Integer argc = pilot->NbWords();
   if (argc >= 2) opt = pilot->Word(1).Value(1);
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (opt != 'f' && opt != 'l')
-    { sout<<"Donner option : f -> root-first  l -> root-last"<<Message_EndLine; return IFSelect_RetError; }
+    { sout<<"Donner option : f -> root-first  l -> root-last"<<std::endl; return IFSelect_RetError; }
   return pilot->RecordItem(new IFSelect_ModifReorder(opt == 'l'));
 }
 
@@ -1608,13 +1611,13 @@ static IFSelect_ReturnStatus fun70
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    SelToggle         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom de Selection"<<Message_EndLine; return IFSelect_RetError;  }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner Nom de Selection"<<std::endl; return IFSelect_RetError;  }
   DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
   if (!WS->ToggleSelectExtract(sel))
-    { sout<<"Pas une SelectExtract : "<<arg1<<Message_EndLine; return IFSelect_RetFail;  }
-  if (WS->IsReversedSelectExtract(sel)) sout<<arg1<<" a present Reversed"<<Message_EndLine;
-  else sout<<arg1<<" a present Directe"<<Message_EndLine;
+    { sout<<"Pas une SelectExtract : "<<arg1<<std::endl; return IFSelect_RetFail;  }
+  if (WS->IsReversedSelectExtract(sel)) sout<<arg1<<" a present Reversed"<<std::endl;
+  else sout<<arg1<<" a present Directe"<<std::endl;
   return IFSelect_RetDone;
 }
 
@@ -1626,14 +1629,14 @@ static IFSelect_ReturnStatus fun71
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SelInput          ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Donner Noms Selections cible et input"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<"Donner Noms Selections cible et input"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
   DeclareAndCast(IFSelect_Selection,sou,WS->NamedItem(arg2));
   if (sel.IsNull() || sou.IsNull())
-    {  sout<<"Incorrect : "<<arg1<<","<<arg2<<Message_EndLine;  return IFSelect_RetError;  }
+    {  sout<<"Incorrect : "<<arg1<<","<<arg2<<std::endl;  return IFSelect_RetError;  }
   if (!WS->SetInputSelection(sel,sou)) { 
-    sout<<"Nom incorrect ou Selection "<<arg1<<" ni Extract ni Deduct"<<Message_EndLine;
+    sout<<"Nom incorrect ou Selection "<<arg1<<" ni Extract ni Deduct"<<std::endl;
     return IFSelect_RetFail;
   }
   return IFSelect_RetDone;
@@ -1655,13 +1658,13 @@ static IFSelect_ReturnStatus fun73
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SelRange          ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc >= 2 && arg1[0] == '?') argc = 1;
   if (argc < 2) {
     sout<<"Donner la description du SelectRange"
       <<"    Formes admises :\n <n1> <n2>  : Range de <n1> a <n2>\n"
       <<" <n1> tout seul : Range n0 <n1>\n  from <n1>  : Range From <n1>\n"
-      <<"  until <n2> : Range Until <n2>"<<Message_EndLine;
+      <<"  until <n2> : Range Until <n2>"<<std::endl;
     return IFSelect_RetVoid;
   }
 
@@ -1669,13 +1672,13 @@ static IFSelect_ReturnStatus fun73
   Handle(IFSelect_SelectRange) sel;
 //                                         Range From
   if (pilot->Word(1).IsEqual("from")) {
-    if (argc < 3) { sout<<"Forme admise : from <i>"<<Message_EndLine; return IFSelect_RetError; }
+    if (argc < 3) { sout<<"Forme admise : from <i>"<<std::endl; return IFSelect_RetError; }
     low = GetCasted(IFSelect_IntParam,WS->NamedItem(arg2));
     sel = new IFSelect_SelectRange;
     sel->SetFrom (low);
 //                                         Range Until
   } else if (pilot->Word(1).IsEqual("until")) {
-    if (argc < 3) { sout<<"Forme admise : until <i>"<<Message_EndLine; return IFSelect_RetError; }
+    if (argc < 3) { sout<<"Forme admise : until <i>"<<std::endl; return IFSelect_RetError; }
     up  = GetCasted(IFSelect_IntParam,WS->NamedItem(arg2));
     sel = new IFSelect_SelectRange;
     sel->SetUntil (up);
@@ -1720,16 +1723,16 @@ static IFSelect_ReturnStatus fun76
 //        ****    SelDiff           ****
   Handle(IFSelect_Selection) sel = new IFSelect_SelectDiff;
   if (sel.IsNull()) return IFSelect_RetFail;
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) sout<<"Diff sans input : ne pas oublier de les definir (ctlmain, ctlsec)!"<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) sout<<"Diff sans input : ne pas oublier de les definir (ctlmain, ctlsec)!"<<std::endl;
   DeclareAndCast(IFSelect_Selection,selmain,WS->NamedItem(arg1));
   DeclareAndCast(IFSelect_Selection,selsec ,WS->NamedItem(arg2));
   if (argc >= 2)
     if (!WS->SetControl(sel,selmain,Standard_True))
-      sout<<"Echec ControlMain:"<<arg1<<" , a refaire (ctlmain)"<<Message_EndLine;
+      sout<<"Echec ControlMain:"<<arg1<<" , a refaire (ctlmain)"<<std::endl;
   if (argc >= 3)
     if (!WS->SetControl(sel,selsec,Standard_False))
-      sout<<"Echec ControlSecond:"<<arg2<<" , a refaire (ctlsec)"<<Message_EndLine;
+      sout<<"Echec ControlSecond:"<<arg2<<" , a refaire (ctlsec)"<<std::endl;
   return pilot->RecordItem (sel);
 }
 
@@ -1741,12 +1744,12 @@ static IFSelect_ReturnStatus fun77
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SelControlMain       ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Donner Noms de Control et MainInput"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<"Donner Noms de Control et MainInput"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
   DeclareAndCast(IFSelect_Selection,selmain,WS->NamedItem(arg2));
   if (WS->SetControl(sel,selmain,Standard_True)) return IFSelect_RetDone;
-  sout<<"Nom incorrect ou Selection "<<arg1<<" pas de type Control"<<Message_EndLine;
+  sout<<"Nom incorrect ou Selection "<<arg1<<" pas de type Control"<<std::endl;
   return IFSelect_RetFail;
 }
 
@@ -1758,12 +1761,12 @@ static IFSelect_ReturnStatus fun78
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SelControlSecond       ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Donner Noms de Control et SecondInput"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<"Donner Noms de Control et SecondInput"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
   DeclareAndCast(IFSelect_Selection,seldif,WS->NamedItem(arg2));
   if (WS->SetControl(sel,seldif,Standard_False))  return IFSelect_RetDone;
-  sout<<"Nom incorrect ou Selection "<<arg1<<" pas de type Control"<<Message_EndLine;
+  sout<<"Nom incorrect ou Selection "<<arg1<<" pas de type Control"<<std::endl;
   return IFSelect_RetFail;
 }
 
@@ -1783,12 +1786,12 @@ static IFSelect_ReturnStatus fun80
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SelCombAdd        ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Donner n0 Combine et une Input"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<"Donner n0 Combine et une Input"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
   DeclareAndCast(IFSelect_Selection,seladd,WS->NamedItem(arg2));
   if (WS->CombineAdd(sel,seladd)) return IFSelect_RetDone;
-  sout<<"Nom incorrect ou Selection "<<arg1<<" pas Combine"<<Message_EndLine;
+  sout<<"Nom incorrect ou Selection "<<arg1<<" pas Combine"<<std::endl;
   return IFSelect_RetFail;
 }
 
@@ -1800,12 +1803,12 @@ static IFSelect_ReturnStatus fun81
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SelCombRem        ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Donner n0 Combine et RANG a supprimer"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<"Donner n0 Combine et RANG a supprimer"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
   DeclareAndCast(IFSelect_Selection,inp,WS->NamedItem(arg2));
   if (WS->CombineRemove(sel,inp)) return IFSelect_RetDone;
-  sout<<"Nom incorrect ou Selection "<<arg1<<" ni Union ni Intersection"<<Message_EndLine;
+  sout<<"Nom incorrect ou Selection "<<arg1<<" ni Union ni Intersection"<<std::endl;
   return IFSelect_RetFail;
 }
 
@@ -1816,8 +1819,8 @@ static IFSelect_ReturnStatus fun82
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    SelEntNumber      ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom IntParam pour n0 Entite"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner Nom IntParam pour n0 Entite"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_IntParam,par,WS->NamedItem(arg1));
   Handle(IFSelect_SelectEntityNumber) sel = new IFSelect_SelectEntityNumber;
   sel->SetNumber(par);
@@ -1846,8 +1849,8 @@ static IFSelect_ReturnStatus fun85
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    SelTextType Exact ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner le TYPE a selectionner"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner le TYPE a selectionner"<<std::endl; return IFSelect_RetError; }
   return pilot->RecordItem (new IFSelect_SelectSignature
                            (new IFSelect_SignType,arg1,Standard_True));
 }
@@ -1879,8 +1882,8 @@ static IFSelect_ReturnStatus fun89
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    SelTextType Contain **
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner le TYPE a selectionner"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner le TYPE a selectionner"<<std::endl; return IFSelect_RetError; }
   return pilot->RecordItem (new IFSelect_SelectSignature
                            (new IFSelect_SignType,arg1,Standard_False));
 }
@@ -1894,8 +1897,8 @@ static IFSelect_ReturnStatus fun90
     Handle(TColStd_HSequenceOfTransient) list = IFSelect_Functions::GiveList
     (pilot->Session(),pilot->CommandPart(1));
     if (list.IsNull()) return IFSelect_RetFail;
-    Handle(Message_Messenger) sout = Message::DefaultMessenger();
-    sout<<"SelectPointed : "<<list->Length()<<" entities"<<Message_EndLine;
+    Message_Messenger::StreamBuffer sout = Message::SendInfo();
+    sout<<"SelectPointed : "<<list->Length()<<" entities"<<std::endl;
     sp->AddList (list);
   }
   return pilot->RecordItem (sp);
@@ -1908,26 +1911,26 @@ static IFSelect_ReturnStatus fun91
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    SetPointed (edit) / SetList (edit)    ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) {
     sout<<"Donner NOM SelectPointed + Option(s) :\n"
         <<" aucune : liste des entites pointees\n"
-       <<" 0: Clear  +nn ajout entite nn  -nn enleve nn  /nn toggle nn"<<Message_EndLine;
+       <<" 0: Clear  +nn ajout entite nn  -nn enleve nn  /nn toggle nn"<<std::endl;
        return IFSelect_RetError;
   }
   DeclareAndCast(IFSelect_SelectPointed,sp,WS->NamedItem(arg1));
-  if (sp.IsNull()) { sout<<"Pas une SelectPointed:"<<arg1<<Message_EndLine; return IFSelect_RetError; }
+  if (sp.IsNull()) { sout<<"Pas une SelectPointed:"<<arg1<<std::endl; return IFSelect_RetError; }
   const Handle(Interface_InterfaceModel) &model = WS->Model();  // pour Print
   if (argc == 2) {    // listage simple
     Standard_Integer nb = sp->NbItems();
-    sout<<" SelectPointed : "<<arg1<<" : "<<nb<<" Items :"<<Message_EndLine;
+    sout<<" SelectPointed : "<<arg1<<" : "<<nb<<" Items :"<<std::endl;
     for (Standard_Integer i = 1; i <= nb; i ++) {
       Handle(Standard_Transient) pointed = sp->Item(i);
       Standard_Integer id = WS->StartingNumber(pointed);
       if (id == 0) sout <<" (inconnu)";
-      else  {  sout<<"  "; model->Print(pointed,sout);  }
+      else  {  sout <<"  "; model->Print (pointed, sout);  }
     }
-    if (nb > 0) sout<<Message_EndLine;
+    if (nb > 0) sout<<std::endl;
     return IFSelect_RetDone;
   }
 
@@ -1935,25 +1938,28 @@ static IFSelect_ReturnStatus fun91
     const TCollection_AsciiString argi = pilot->Word(ia);
     Standard_Integer id = pilot->Number(&(argi.ToCString())[1]);
     if (id == 0) {
-      if (!argi.IsEqual("0")) sout<<"Incorrect,ignore:"<<argi<<Message_EndLine;
-      else {  sout<<"Clear SelectPointed"<<Message_EndLine; sp->Clear(); }
+      if (!argi.IsEqual("0")) sout<<"Incorrect,ignore:"<<argi<<std::endl;
+      else {  sout<<"Clear SelectPointed"<<std::endl; sp->Clear(); }
     } else if (argi.Value(1) == '-') {
       Handle(Standard_Transient) item = WS->StartingEntity(id);
       if (sp->Remove(item)) sout<<"Removed:no."<<id;
       else sout<<" Echec Remove "<<id;
-      sout<<": "; model->Print(item,sout);  sout<<Message_EndLine;
+      sout<<": " << std::endl; 
+      model->Print (item, sout);
     } else if (argi.Value(1) == '/') {
       Handle(Standard_Transient) item = WS->StartingEntity(id);
       if (sp->Remove(item)) sout<<"Toggled:n0."<<id;
       else sout<<" Echec Toggle "<<id;
-      sout<<": "; model->Print(item,sout);  sout<<Message_EndLine;
+      sout<<": " << std::endl; 
+      model->Print (item, sout);
     } else if (argi.Value(1) == '+') {
       Handle(Standard_Transient) item = WS->StartingEntity(id);
       if (sp->Add(item)) sout<<"Added:no."<<id;
       else sout<<" Echec Add "<<id;
-      sout<<": "; model->Print(item,sout);  sout<<Message_EndLine;
+      sout<<": " << std::endl; 
+      model->Print (item, sout);
     } else {
-      sout<<"Ignore:"<<argi<<" , donner n0 PRECEDE de + ou - ou /"<<Message_EndLine;
+      sout<<"Ignore:"<<argi<<" , donner n0 PRECEDE de + ou - ou /"<<std::endl;
     }
   }
   return IFSelect_RetDone;
@@ -1976,8 +1982,8 @@ static IFSelect_ReturnStatus fun93
   const Standard_CString arg2 = pilot->Arg(2);
   Handle(IFSelect_WorkSession) WS = pilot->Session();
 //        ****    SelSignature        ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Give name of Signature or Counter, text + option exact(D) else contains"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<"Give name of Signature or Counter, text + option exact(D) else contains"<<std::endl; return IFSelect_RetError; }
   Standard_Boolean exact = Standard_True;
   if (argc > 3) { if (pilot->Arg(3)[0] == 'c') exact = Standard_False; }
 
@@ -1987,7 +1993,7 @@ static IFSelect_ReturnStatus fun93
 
   if (!sign.IsNull())     sel = new IFSelect_SelectSignature (sign,arg2,exact);
   else if (!cnt.IsNull()) sel = new IFSelect_SelectSignature (cnt,arg2,exact);
-  else { sout<<arg1<<":neither Signature nor Counter"<<Message_EndLine; return IFSelect_RetError; }
+  else { sout<<arg1<<":neither Signature nor Counter"<<std::endl; return IFSelect_RetError; }
 
   return pilot->RecordItem(sel);
 }
@@ -1999,10 +2005,10 @@ static IFSelect_ReturnStatus fun94
   const Standard_CString arg1 = pilot->Arg(1);
   Handle(IFSelect_WorkSession) WS = pilot->Session();
 //        ****    SignCounter        ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner nom signature"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner nom signature"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Signature,sign,WS->NamedItem(arg1));
-  if (sign.IsNull()) { sout<<arg1<<":pas une signature"<<Message_EndLine; return IFSelect_RetError; }
+  if (sign.IsNull()) { sout<<arg1<<":pas une signature"<<std::endl; return IFSelect_RetError; }
   Handle(IFSelect_SignCounter) cnt = new IFSelect_SignCounter (sign,Standard_True,Standard_True);
   return pilot->RecordItem(cnt);
 }
@@ -2014,10 +2020,10 @@ static IFSelect_ReturnStatus funbselected
   const Standard_CString arg1 = pilot->Arg(1);
   Handle(IFSelect_WorkSession) WS = pilot->Session();
 //        ****    NbSelected = GraphCounter        ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner nom selection (deduction) a appliquer"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Donner nom selection (deduction) a appliquer"<<std::endl; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_SelectDeduct,applied,WS->GiveSelection(arg1));
-  if (applied.IsNull()) { sout<<arg1<<":pas une SelectDeduct"<<Message_EndLine; return IFSelect_RetError; }
+  if (applied.IsNull()) { sout<<arg1<<":pas une SelectDeduct"<<std::endl; return IFSelect_RetError; }
   Handle(IFSelect_GraphCounter) cnt = new IFSelect_GraphCounter (Standard_True,Standard_True);
   cnt->SetApplied (applied);
   return pilot->RecordItem(cnt);
@@ -2031,8 +2037,8 @@ static IFSelect_ReturnStatus fun_editlist
   (const Handle(IFSelect_SessionPilot)& pilot)
 {
   Standard_Integer argc = pilot->NbWords();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give the name of an EditForm or an Editor"<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give the name of an EditForm or an Editor"<<std::endl;
                  return IFSelect_RetError;  }
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
@@ -2043,7 +2049,7 @@ static IFSelect_ReturnStatus fun_editlist
   DeclareAndCast(IFSelect_EditForm,edf,WS->NamedItem(arg1));
   Handle(IFSelect_Editor) edt;
   if (!edf.IsNull()) {
-    sout<<"Print EditForm "<<arg1<<Message_EndLine;
+    sout<<"Print EditForm "<<arg1<<std::endl;
     edt = edf->Editor();
     if (argc < 3) {
 
@@ -2052,14 +2058,14 @@ static IFSelect_ReturnStatus fun_editlist
       if (edt.IsNull()) edt = GetCasted(IFSelect_Editor,WS->NamedItem(arg1));
       if (edt.IsNull()) return IFSelect_RetVoid;
 
-      sout<<"Editor, Label : "<<edt->Label()<<Message_EndLine;
-      sout<<Message_EndLine<<" --  Names (short - complete) + Labels of Values"<<Message_EndLine;
+      sout<<"Editor, Label : "<<edt->Label()<<std::endl;
+      sout<<std::endl<<" --  Names (short - complete) + Labels of Values"<<std::endl;
       edt->PrintNames(sout);
-      sout<<Message_EndLine<<" --  Definitions  --"<<Message_EndLine;
+      sout<<std::endl<<" --  Definitions  --"<<std::endl;
       edt->PrintDefs (sout);
       if (!edf.IsNull()) {
        edf->PrintDefs(sout);
-       sout<<Message_EndLine<<"To display values, add an option : o original  f final  m modified"<<Message_EndLine;
+       sout<<std::endl<<"To display values, add an option : o original  f final  m modified"<<std::endl;
       }
 
       return IFSelect_RetVoid;
@@ -2081,18 +2087,18 @@ static IFSelect_ReturnStatus fun_editvalue
   (const Handle(IFSelect_SessionPilot)& pilot)
 {
   Standard_Integer argc = pilot->NbWords();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Give the name of an EditForm + name of Value [+ newvalue or . to nullify]"<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 3) { sout<<"Give the name of an EditForm + name of Value [+ newvalue or . to nullify]"<<std::endl;
                  return IFSelect_RetError;  }
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
   Handle(IFSelect_WorkSession) WS = pilot->Session();
   DeclareAndCast(IFSelect_EditForm,edf,WS->NamedItem(arg1));
   if (edf.IsNull())
-    {  sout<<"Not an EditForm : "<<arg1<<Message_EndLine; return IFSelect_RetError;  }
+    {  sout<<"Not an EditForm : "<<arg1<<std::endl; return IFSelect_RetError;  }
   Standard_Integer num = edf->NameNumber (arg2);
-  if (num == 0) sout<<"Unknown Value Name : "<<arg2<<Message_EndLine;
-  if (num <  0) sout<<"Not Extracted Value Name : "<<arg2<<Message_EndLine;
+  if (num == 0) sout<<"Unknown Value Name : "<<arg2<<std::endl;
+  if (num <  0) sout<<"Not Extracted Value Name : "<<arg2<<std::endl;
   if (num <= 0) return IFSelect_RetError;
 
   Standard_Boolean islist = edf->Editor()->IsList(num);
@@ -2103,19 +2109,19 @@ static IFSelect_ReturnStatus fun_editvalue
 
   if (islist) {
     listr = edf->EditedList(num);
-    if (listr.IsNull()) sout<<"(NULL LIST)"<<Message_EndLine;
+    if (listr.IsNull()) sout<<"(NULL LIST)"<<std::endl;
     else {
       Standard_Integer ilist,nblist = listr->Length();
-      sout<<"(List : "<<nblist<<" Items)"<<Message_EndLine;
+      sout<<"(List : "<<nblist<<" Items)"<<std::endl;
       for (ilist = 1; ilist <= nblist; ilist ++) {
        str = listr->Value(ilist);
-       sout<<"  ["<<ilist<<"]  "<< (str.IsNull() ? "(NULL)" : str->ToCString())<<Message_EndLine;
+       sout<<"  ["<<ilist<<"]  "<< (str.IsNull() ? "(NULL)" : str->ToCString())<<std::endl;
       }
     }
-    if (argc < 4) sout<<"To Edit, options by editval edit-form value-name ?"<<Message_EndLine;
+    if (argc < 4) sout<<"To Edit, options by editval edit-form value-name ?"<<std::endl;
   } else {
     str = edf->EditedValue (num);
-    sout<<(str.IsNull() ? "(NULL)" : str->ToCString())<<Message_EndLine;
+    sout<<(str.IsNull() ? "(NULL)" : str->ToCString())<<std::endl;
   }
   if (argc < 4) return IFSelect_RetVoid;
 
@@ -2126,10 +2132,10 @@ static IFSelect_ReturnStatus fun_editvalue
   const Standard_CString argval = pilot->Arg(numarg);
   if (islist) {
     if (argval[0] == '?') {
-      sout<<"To Edit, options"<<Message_EndLine<<" + val : add value at end (blanks allowed)"
-       <<Message_EndLine<<" +nn text : insert val before item nn"<<Message_EndLine
-       <<" nn text : replace item nn with a new value"<<Message_EndLine
-       <<" -nn : remove item nn"<<Message_EndLine<<" . : clear the list"<<Message_EndLine;
+      sout<<"To Edit, options"<<std::endl<<" + val : add value at end (blanks allowed)"
+       <<std::endl<<" +nn text : insert val before item nn"<<std::endl
+       <<" nn text : replace item nn with a new value"<<std::endl
+       <<" -nn : remove item nn"<<std::endl<<" . : clear the list"<<std::endl;
       return IFSelect_RetVoid;
     }
     Standard_Boolean stated = Standard_False;
@@ -2151,15 +2157,15 @@ static IFSelect_ReturnStatus fun_editvalue
        (new TCollection_HAsciiString(pilot->CommandPart(numarg+1)),numset);
     }
     if (stated) stated = edf->ModifyList (num,listed,Standard_True);
-    if (stated) sout<<"List Edition done"<<Message_EndLine;
-    else sout<<"List Edition not done, option"<<argval<<Message_EndLine;
+    if (stated) sout<<"List Edition done"<<std::endl;
+    else sout<<"List Edition not done, option"<<argval<<std::endl;
   } else {
     if (argval[0] == '.' && argval[1] == '\0') str.Nullify();
     else str = new TCollection_HAsciiString (pilot->CommandPart(numarg));
     if (edf->Modify (num,str,Standard_True)) {
-      sout<<"Now set to "<<(str.IsNull() ? "(NULL)" : str->ToCString())<<Message_EndLine;
+      sout<<"Now set to "<<(str.IsNull() ? "(NULL)" : str->ToCString())<<std::endl;
     } else {
-      sout<<"Modify not done"<<Message_EndLine;  return IFSelect_RetFail;
+      sout<<"Modify not done"<<std::endl;  return IFSelect_RetFail;
     }
   }
   return IFSelect_RetDone;
@@ -2169,25 +2175,25 @@ static IFSelect_ReturnStatus fun_editclear
   (const Handle(IFSelect_SessionPilot)& pilot)
 {
   Standard_Integer argc = pilot->NbWords();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give the name of an EditForm [+ name of Value  else all]"<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give the name of an EditForm [+ name of Value  else all]"<<std::endl;
                  return IFSelect_RetError;  }
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
   Handle(IFSelect_WorkSession) WS = pilot->Session();
   DeclareAndCast(IFSelect_EditForm,edf,WS->NamedItem(arg1));
   if (edf.IsNull())
-    {  sout<<"Not an EditForm : "<<arg1<<Message_EndLine; return IFSelect_RetError;  }
-  if (argc < 3) { edf->ClearEdit(); sout<<"All Modifications Cleared"<<Message_EndLine; }
+    {  sout<<"Not an EditForm : "<<arg1<<std::endl; return IFSelect_RetError;  }
+  if (argc < 3) { edf->ClearEdit(); sout<<"All Modifications Cleared"<<std::endl; }
   else {
     Standard_Integer num = edf->NameNumber (arg2);
-    if (num == 0) sout<<"Unknown Value Name : "<<arg2<<Message_EndLine;
-    if (num <  0) sout<<"Not Extracted Value Name : "<<arg2<<Message_EndLine;
+    if (num == 0) sout<<"Unknown Value Name : "<<arg2<<std::endl;
+    if (num <  0) sout<<"Not Extracted Value Name : "<<arg2<<std::endl;
     if (num <= 0) return IFSelect_RetError;
     if (!edf->IsModified(num))
-      { sout<<"Value "<<arg2<<" was not modified"<<Message_EndLine; return IFSelect_RetVoid; }
+      { sout<<"Value "<<arg2<<" was not modified"<<std::endl; return IFSelect_RetVoid; }
     edf->ClearEdit (num);
-    sout<<"Modification on Value "<<arg2<<" Cleared"<<Message_EndLine;
+    sout<<"Modification on Value "<<arg2<<" Cleared"<<std::endl;
   }
   return IFSelect_RetDone;
 }
@@ -2196,40 +2202,40 @@ static IFSelect_ReturnStatus fun_editapply
   (const Handle(IFSelect_SessionPilot)& pilot)
 {
   Standard_Integer argc = pilot->NbWords();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give the name of an EditForm [+ option keep to re-apply edited values]"<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give the name of an EditForm [+ option keep to re-apply edited values]"<<std::endl;
                  return IFSelect_RetError;  }
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
   Handle(IFSelect_WorkSession) WS = pilot->Session();
   DeclareAndCast(IFSelect_EditForm,edf,WS->NamedItem(arg1));
   if (edf.IsNull())
-    {  sout<<"Not an EditForm : "<<arg1<<Message_EndLine; return IFSelect_RetError;  }
+    {  sout<<"Not an EditForm : "<<arg1<<std::endl; return IFSelect_RetError;  }
 
   Handle(Standard_Transient) ent = edf->Entity();
   Handle(Interface_InterfaceModel) model = edf->Model();
   if (!model.IsNull()) {
-    if (ent.IsNull()) sout<<"Applying modifications on loaded model"<<Message_EndLine;
+    if (ent.IsNull()) sout<<"Applying modifications on loaded model"<<std::endl;
     else {
       sout<<"Applying modifications on loaded entity : ";
-      model->PrintLabel (ent,sout);
+      model->PrintLabel (ent, sout);
     }
   }
-  else sout<<"Applying modifications"<<Message_EndLine;
+  else sout<<"Applying modifications"<<std::endl;
 
   if (!edf->ApplyData (edf->Entity(),edf->Model())) {
-    sout<<"Modifications could not be applied"<<Message_EndLine;
+    sout<<"Modifications could not be applied"<<std::endl;
     return IFSelect_RetFail;
   }
-  sout<<"Modifications have been applied"<<Message_EndLine;
+  sout<<"Modifications have been applied"<<std::endl;
 
   Standard_Boolean stat = Standard_True;
   if (argc > 2 && arg2[0] == 'k') stat = Standard_False;
   if (stat) {
     edf->ClearEdit();
-    sout<<"Edited values are cleared"<<Message_EndLine;
+    sout<<"Edited values are cleared"<<std::endl;
   }
-  else sout<<"Edited values are kept for another loading/applying"<<Message_EndLine;
+  else sout<<"Edited values are kept for another loading/applying"<<std::endl;
 
   return IFSelect_RetDone;
 }
@@ -2238,34 +2244,34 @@ static IFSelect_ReturnStatus fun_editload
   (const Handle(IFSelect_SessionPilot)& pilot)
 {
   Standard_Integer argc = pilot->NbWords();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give the name of an EditForm [+ Entity-Ident]"<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give the name of an EditForm [+ Entity-Ident]"<<std::endl;
                  return IFSelect_RetError;  }
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
   Handle(IFSelect_WorkSession) WS = pilot->Session();
   DeclareAndCast(IFSelect_EditForm,edf,WS->NamedItem(arg1));
   if (edf.IsNull())
-    {  sout<<"Not an EditForm : "<<arg1<<Message_EndLine; return IFSelect_RetError;  }
+    {  sout<<"Not an EditForm : "<<arg1<<std::endl; return IFSelect_RetError;  }
 
   Standard_Integer num = (argc < 3 ? 0 : pilot->Number (arg2));
   Standard_Boolean stat = Standard_False;
   if (argc < 3) {
-    sout<<"EditForm "<<arg1<<" : Loading Model"<<Message_EndLine;
+    sout<<"EditForm "<<arg1<<" : Loading Model"<<std::endl;
     stat = edf->LoadModel(WS->Model());
   } else if (num <= 0) {
-    sout<<"Not an entity ident : "<<arg2<<Message_EndLine;
+    sout<<"Not an entity ident : "<<arg2<<std::endl;
     return IFSelect_RetError;
   } else {
-    sout<<"EditForm "<<arg1<<" : Loading Entity "<<arg2<<Message_EndLine;
+    sout<<"EditForm "<<arg1<<" : Loading Entity "<<arg2<<std::endl;
     stat = edf->LoadData (WS->StartingEntity(num),WS->Model());
   }
 
   if (!stat) {
-    sout<<"Loading not done"<<Message_EndLine;
+    sout<<"Loading not done"<<std::endl;
     return IFSelect_RetFail;
   }
-  sout<<"Loading done"<<Message_EndLine;
+  sout<<"Loading done"<<std::endl;
   return IFSelect_RetDone;
 }
 
@@ -2331,12 +2337,12 @@ Handle(IFSelect_Dispatch)  IFSelect_Functions::GiveDispatch
   if (disp.IsNull()) return disp;     // KO anyway
 
 //  According to the type of dispatch :
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   DeclareAndCast(IFSelect_DispPerCount,dc,disp);
   if (!dc.IsNull()) {
     Standard_Integer nb = atoi( &(nam.ToCString())[paro]);
     if (nb <= 0) {
-      sout<<" DispPerCount, count is not positive"<<Message_EndLine;
+      sout<<" DispPerCount, count is not positive"<<std::endl;
       disp.Nullify();
       return disp;
     }
@@ -2351,7 +2357,7 @@ Handle(IFSelect_Dispatch)  IFSelect_Functions::GiveDispatch
   if (!dp.IsNull()) {
     Standard_Integer nb = atoi( &(nam.ToCString())[paro]);
     if (nb <= 0) {
-      sout<<" DispPerFiles, count is not positive"<<Message_EndLine;
+      sout<<" DispPerFiles, count is not positive"<<std::endl;
       disp.Nullify();
       return disp;
     }
@@ -2366,14 +2372,14 @@ Handle(IFSelect_Dispatch)  IFSelect_Functions::GiveDispatch
   if (!ds.IsNull()) {
     DeclareAndCast(IFSelect_Signature,sg,WS->NamedItem( &(nam.ToCString())[paro]));
     if (sg.IsNull()) {
-      sout<<"DispPerSignature "<<nam<<" , Signature not valid : "<<&(nam.ToCString())[paro]<<Message_EndLine;
+      sout<<"DispPerSignature "<<nam<<" , Signature not valid : "<<&(nam.ToCString())[paro]<<std::endl;
       disp.Nullify();
       return disp;
     }
     if (mode) ds->SetSignCounter (new IFSelect_SignCounter(sg));
     return ds;
   }
-  sout<<"Dispatch : "<<name<<" , Parameter : "<<&(nam.ToCString())[paro]<<Message_EndLine;
+  sout<<"Dispatch : "<<name<<" , Parameter : "<<&(nam.ToCString())[paro]<<std::endl;
   return disp;
 }
 
index 9293082671042d478c9d169687cda1fce426051c..7b9ce4922f57e6f37dabe97e398499740cfe2e59 100644 (file)
@@ -133,8 +133,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
    const Handle(Interface_Protocol)& protocol,
    Interface_CopyTool& TC)
 {
-  Message::DefaultMessenger() <<
-    "** WorkSession : Copying split data before sending"<<Message_EndLine;
+  Message::SendInfo() << "** WorkSession : Copying split data before sending"<<std::endl;
   const Interface_Graph& G = eval.Graph();
   Interface_CheckIterator checks;
   theshareout = eval.ShareOut();
@@ -163,8 +162,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
   (const Handle(IFSelect_WorkLibrary)& WL,
    const Handle(Interface_Protocol)& protocol)
 {
-  Message::DefaultMessenger() <<
-    "** WorkSession : Sending split data already copied"<<Message_EndLine;
+  Message::SendInfo() << "** WorkSession : Sending split data already copied"<<std::endl;
   Standard_Integer nb = NbFiles();
   Interface_CheckIterator checks;
   if (nb > 0) {
@@ -183,8 +181,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
       if (!res) {
        char mess[100];  sprintf(mess,"Split Send (WriteFile) abandon on file n0.%d",i);
        checks.CCheck(0)->AddFail (mess);
-       Message::DefaultMessenger() << 
-         "  **  Sending File n0."<<i<<" has failed, abandon  **"<<Message_EndLine;
+       Message::SendInfo() << "  **  Sending File n0."<<i<<" has failed, abandon  **"<<std::endl;
        return checks;
       }
       AddSentFile (FileName(i).ToCString());
@@ -216,8 +213,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
   const Interface_Graph& G = eval.Graph();
   Interface_CheckIterator checks;
   Standard_Integer i = 0;
-  Message::DefaultMessenger() <<
-    "** WorkSession : Copying then sending split data"<<Message_EndLine;
+  Message::SendInfo() << "** WorkSession : Copying then sending split data"<<std::endl;
   theshareout = eval.ShareOut();
   theremain = new TColStd_HArray1OfInteger(0,G.Size()); theremain->Init(0);
   for (eval.Evaluate(); eval.More(); eval.Next()) {
@@ -242,8 +238,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
     if (!res) {
       char mess[100];  sprintf(mess,"Split Send (WriteFile) abandon on file n0.%d",i);
       checks.CCheck(0)->AddFail (mess);
-      Message::DefaultMessenger() <<
-       "  **  Sending File "<<filename<<" has failed, abandon  **"<<Message_EndLine;
+      Message::SendInfo() << "  **  Sending File "<<filename<<" has failed, abandon  **"<<std::endl;
       checks.SetName ("X-STEP WorkSession : Split Send (only Write)");
       return checks;
     }
@@ -264,8 +259,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
 {
   Interface_CheckIterator checks;
   checks.SetName ("X-STEP WorkSession : Send All");
-  Message::DefaultMessenger() <<
-    "** WorkSession : Sending all data"<<Message_EndLine;
+  Message::SendInfo() << "** WorkSession : Sending all data"<<std::endl;
   Handle(Interface_InterfaceModel)  model = G.Model();
   if (model.IsNull() || protocol.IsNull() || WL.IsNull()) return checks;
 
@@ -285,7 +279,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
   checks.Merge(checklst);
   if (!res) checks.CCheck(0)->AddFail ("SendAll (WriteFile) has failed");
 //  if (!checks.IsEmpty(Standard_False)) {
-//    Message::DefaultMessenger() <<
+//    Message::SendWarning() <<
 //      "  **    SendAll has produced Check Messages :    **"<<std::endl;
 //    checks.Print (sout,model,Standard_False);
 //  }
@@ -304,8 +298,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
 {
   Interface_CheckIterator checks;
   checks.SetName ("X-STEP WorkSession : Send Selected");
-  Message::DefaultMessenger() <<
-    "** WorkSession : Sending selected data"<<Message_EndLine;
+  Message::SendInfo() << "** WorkSession : Sending selected data"<<std::endl;
   Handle(Interface_InterfaceModel)  original = G.Model();
   if (original.IsNull() || protocol.IsNull() || WL.IsNull()) return checks;
   Handle(Interface_InterfaceModel) newmod  = original->NewEmptyModel();
@@ -339,7 +332,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
   checks.Merge(checklst);
   if (!res) checks.CCheck(0)->AddFail ("SendSelected (WriteFile) has failed");
 //  if (!checks.IsEmpty(Standard_False)) {
-//    Message::DefaultMessenger() <<
+//    Message::SendWarning() <<
 //      "  **    SendSelected has produced Check Messages :    **"<<std::endl;
 //    checks.Print (sout,original,Standard_False);
 //  }
@@ -409,7 +402,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
 
 //    Faut-il enregistrer les erreurs dans newmod ? bonne question
 //    if (!checks.IsEmpty(Standard_False)) {
-//      Message::DefaultMessenger() <<
+//      Message::SendWarning() <<
 //        " Messages on Copied Model n0 "<<numod<<", Dispatch Rank "<<dispnum<<std::endl;
 //      checks.Print(sout,newmod,Standard_False);
 //    }
index 6b8e8226293dd921fd38c003fe19a33d7c300e6f..cbbdfb02bc5b01fe1d2c259cbf747f9558f91d67 100644 (file)
@@ -137,15 +137,15 @@ static int deja = 0;
     Standard_Boolean  IFSelect_SessionFile::RecognizeFile
   (const Standard_CString headerline)
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
 
   SplitLine (headerline);
-  if (theline.Length() != 4) { sout<<"File Form Incorrect"<<Message_EndLine; return Standard_False; }
+  if (theline.Length() != 4) { sout<<"File Form Incorrect"<<std::endl; return Standard_False; }
   Handle(Standard_Type) sesstype = thesess->DynamicType();
   if (!theline.Value(1).IsEqual("!XSTEP")  ||
       !theline.Value(2).IsEqual("SESSION") ||
       !theline.Value(4).IsEqual(sesstype->Name()) )
-    { sout<<"Lineno."<<thenl<<" : File Header Description Incorrect"<<Message_EndLine; return Standard_False; }
+    { sout<<"Lineno."<<thenl<<" : File Header Description Incorrect"<<std::endl; return Standard_False; }
 //   Value(3) definit la VERSION du format de fichier
   return Standard_True;
 }
@@ -417,7 +417,7 @@ static int deja = 0;
 
     Standard_Integer  IFSelect_SessionFile::ReadSession ()
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
 
   thedone = Standard_True;
 //  ...  Preparation Specifique
@@ -425,12 +425,12 @@ static int deja = 0;
   thenames.Clear();
 //  ..  Donnees generales, controle
   if (!ReadLine()) return 1;
-  if (theline.Length() != 4) { sout<<"File Form Incorrect"<<Message_EndLine; return 1; }
+  if (theline.Length() != 4) { sout<<"File Form Incorrect"<<std::endl; return 1; }
   Handle(Standard_Type) sesstype = thesess->DynamicType();
   if (!theline.Value(1).IsEqual("!XSTEP")  ||
       !theline.Value(2).IsEqual("SESSION") ||
       !theline.Value(4).IsEqual(sesstype->Name()) )
-    { sout<<"Lineno."<<thenl<<" : File Header Description Incorrect"<<Message_EndLine; return 1; }
+    { sout<<"Lineno."<<thenl<<" : File Header Description Incorrect"<<std::endl; return 1; }
 //   Value(3) definit la VERSION du format de fichier
   if (!ReadLine()) return 1;
 
@@ -444,15 +444,15 @@ static int deja = 0;
     if (ungen.Value(1) == '!') break;  // fin des generaux
     if (ungen.IsEqual("ErrorHandle")) {
       if (theline.Length() != 2)
-       { sout<<"Lineno."<<thenl<<" : ErrorHandle Description Incorrect"<<Message_EndLine; continue; }
+       { sout<<"Lineno."<<thenl<<" : ErrorHandle Description Incorrect"<<std::endl; continue; }
       if      (theline.Value(2).IsEqual("0"))
        thesess->SetErrorHandle(Standard_False);
       else if (theline.Value(2).IsEqual("1"))
        thesess->SetErrorHandle(Standard_True);
-      else { sout<<"Lineno."<<thenl<<" : ErrorHandle Incorrect : "<<theline.Value(2)<<Message_EndLine; continue; }
+      else { sout<<"Lineno."<<thenl<<" : ErrorHandle Incorrect : "<<theline.Value(2)<<std::endl; continue; }
       continue;
     }
-    else sout<<"Lineno."<<thenl<<" : Unknown General Parameter : "<<ungen<<" , ignored"<<Message_EndLine;
+    else sout<<"Lineno."<<thenl<<" : Unknown General Parameter : "<<ungen<<" , ignored"<<std::endl;
   }
 
 //  ..  IntParams
@@ -462,7 +462,7 @@ static int deja = 0;
     if (!ReadLine()) return 1;
     if (theline.Value(1).Value(1) == '!') break;    // liste suivante
     if (theline.Length() != 2)
-      { sout<<"Lineno."<<thenl<<" : An Integer Parameter is badly defined"<<Message_EndLine; continue; }
+      { sout<<"Lineno."<<thenl<<" : An Integer Parameter is badly defined"<<std::endl; continue; }
     Handle(IFSelect_IntParam) par = new IFSelect_IntParam;
     par->SetValue ( atoi(theline.Value(2).ToCString()) );
     AddItem (par);
@@ -474,7 +474,7 @@ static int deja = 0;
     if (!ReadLine()) return 1;
     if (theline.Value(1).Value(1) == '!') break;    // liste suivante
     if (theline.Length() != 2)
-      { sout<<"Lineno."<<thenl<<" : A Text Parameter is badly defined"<<Message_EndLine; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Text Parameter is badly defined"<<std::endl; continue; }
 //    Attention, un texte peut contenir des blancs ...  repartir de line(thenl)
     TCollection_AsciiString oneline = thelist.Value(thenl);
     Standard_Integer iw = 0, inc = 0;
@@ -494,7 +494,7 @@ static int deja = 0;
     if (!ReadLine()) return 1;
     if (theline.Value(1).Value(1) == '!') break;    // liste suivante
     if (theline.Length() < 2)
-      { sout<<"Lineno."<<thenl<<" : A Selection is badly defined"<<Message_EndLine; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Selection is badly defined"<<std::endl; continue; }
 //  ..  Analyse de certains cas generaux
     Handle(IFSelect_IntParam) low,up;
     Standard_Integer firstown = 3;
@@ -518,12 +518,12 @@ static int deja = 0;
     if (item.IsNull()) continue;
     DeclareAndCast(IFSelect_SelectExtract,sxt,item);
     if (!sxt.IsNull()) {
-      if (direct == 0) sout<<"Lineno."<<thenl<<" : A SelectExtract is badly defined"<<Message_EndLine;
+      if (direct == 0) sout<<"Lineno."<<thenl<<" : A SelectExtract is badly defined"<<std::endl;
       else  sxt->SetDirect( (direct > 0) );
     }
     DeclareAndCast(IFSelect_SelectAnyList,sli,item);
     if (!sli.IsNull()) {
-      if (numlist == 0) sout<<"Lineno."<<thenl<<" : A SelectAnyList is badly defined"<<Message_EndLine;
+      if (numlist == 0) sout<<"Lineno."<<thenl<<" : A SelectAnyList is badly defined"<<std::endl;
       else sli->SetRange(low,up);
     }
     AddItem(item);
@@ -535,29 +535,29 @@ static int deja = 0;
     if (!ReadLine()) return 1;
     if (theline.Value(1).Value(1) == '!') break;    // liste suivante
     if (theline.Length() < 3)
-      { sout<<"Lineno."<<thenl<<" : A Selection Source List is badly defined"<<Message_EndLine; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Selection Source List is badly defined"<<std::endl; continue; }
     DeclareAndCast(IFSelect_Selection,sel,ItemValue(1));
     if (sel.IsNull())
-      { sout<<"Lineno."<<thenl<<" : A Source List is not for a Selection"<<Message_EndLine; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Source List is not for a Selection"<<std::endl; continue; }
     Standard_Integer nbs = atoi(theline.Value(2).ToCString());
 //  .. Differents cas reconnus
     DeclareAndCast(IFSelect_SelectExtract,sxt,sel);
     if (!sxt.IsNull()) {
       if (nbs > 1)
-       sout<<"Lineno."<<thenl<<" : SelectExtract, more than one source, followings ignored"<<Message_EndLine;
+       sout<<"Lineno."<<thenl<<" : SelectExtract, more than one source, followings ignored"<<std::endl;
       DeclareAndCast(IFSelect_Selection,source,ItemValue(3));
       sxt->SetInput(source);
     }
     DeclareAndCast(IFSelect_SelectDeduct,sdt,sel);
     if (!sdt.IsNull()) {
       if (nbs > 1)
-       sout<<"Lineno."<<thenl<<" : SelectDeduct, more than one source, followings ignored"<<Message_EndLine;
+       sout<<"Lineno."<<thenl<<" : SelectDeduct, more than one source, followings ignored"<<std::endl;
       sdt->SetInput(GetCasted(IFSelect_Selection,ItemValue(3)));
     }
     DeclareAndCast(IFSelect_SelectControl,sct,sel);
     if (!sct.IsNull()) {
       if (nbs != 2)
-       sout<<"Lineno."<<thenl<<" : SelectControl, not two sources, followings ignored"<<Message_EndLine;
+       sout<<"Lineno."<<thenl<<" : SelectControl, not two sources, followings ignored"<<std::endl;
       sct->SetMainInput   (GetCasted(IFSelect_Selection,ItemValue(3)));
       sct->SetSecondInput (GetCasted(IFSelect_Selection,ItemValue(4)));
     }
@@ -574,13 +574,13 @@ static int deja = 0;
     if (!ReadLine()) return 1;
     if (theline.Value(1).Value(1) == '!') break;    // liste suivante
     if (theline.Length() < 2)
-      { sout<<"Lineno."<<thenl<<" : A Modifier is badly defined"<<Message_EndLine; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Modifier is badly defined"<<std::endl; continue; }
     Handle(Standard_Transient) item;   // a fournir ...
     ReadOwn(item);
     if (item.IsNull()) continue;
     DeclareAndCast(IFSelect_GeneralModifier,modif,item);
     if (modif.IsNull())
-      { sout<<"Lineno."<<thenl<<" : A Modifier has not been Recognized"<<Message_EndLine; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Modifier has not been Recognized"<<std::endl; continue; }
     AddItem(modif,Standard_False);  // active plus tard
   }
 
@@ -590,13 +590,13 @@ static int deja = 0;
     if (!ReadLine()) return 1;
     if (theline.Value(1).Value(1) == '!') break;    // liste suivante
     if (theline.Length() < 2)
-      { sout<<"Lineno."<<thenl<<" : A Transformer is badly defined"<<Message_EndLine; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Transformer is badly defined"<<std::endl; continue; }
     Handle(Standard_Transient) item;   // a fournir ...
     ReadOwn(item);
     if (item.IsNull()) continue;
     DeclareAndCast(IFSelect_Transformer,trf,item);
     if (trf.IsNull())
-      { sout<<"Lineno."<<thenl<<" : A Transformer has not been Recognized"<<Message_EndLine; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Transformer has not been Recognized"<<std::endl; continue; }
     AddItem(trf,Standard_False);  // active plus tard
   }
 
@@ -606,7 +606,7 @@ static int deja = 0;
     if (!ReadLine()) return 1;
     if (theline.Value(1).Value(1) == '!') break;    // liste suivante
     if (theline.Length() < 3)
-      { sout<<"Lineno."<<thenl<<" : A Dispatch is badly defined"<<Message_EndLine; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Dispatch is badly defined"<<std::endl; continue; }
     DeclareAndCast(IFSelect_Selection,input,ItemValue(3));
     SetLastGeneral(3);
     Handle(Standard_Transient) item;   // a fournir ...
@@ -614,7 +614,7 @@ static int deja = 0;
     if (item.IsNull()) continue;
     DeclareAndCast(IFSelect_Dispatch,disp,item);
     if (disp.IsNull())
-      { sout<<"Lineno."<<thenl<<" : A Dispatch has not been Recognized"<<Message_EndLine; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Dispatch has not been Recognized"<<std::endl; continue; }
     AddItem(disp);
     thesess->SetItemSelection(disp,input);
   }
@@ -631,7 +631,7 @@ static int deja = 0;
     if (!ReadLine()) return 1;
     if (theline.Value(1).Value(1) == '!') break;    // liste suivante
     if (theline.Length() != 2)
-      { sout<<"Lineno."<<thenl<<" : A File Root is badly defined"<<Message_EndLine; continue; }
+      { sout<<"Lineno."<<thenl<<" : A File Root is badly defined"<<std::endl; continue; }
     DeclareAndCast(IFSelect_Dispatch,disp,ItemValue(1));
     thesess->SetFileRoot (disp,theline.Value(2).ToCString());
   }
@@ -652,12 +652,12 @@ static int deja = 0;
       if (!ReadLine()) return 1;
       if (theline.Value(1).Value(1) == '!') break;    // liste suivante
       if (theline.Length() < 3)
-       { sout<<"Lineno."<<thenl<<" : A General Modifier is badly defined"<<Message_EndLine; continue; }
+       { sout<<"Lineno."<<thenl<<" : A General Modifier is badly defined"<<std::endl; continue; }
       DeclareAndCast(IFSelect_GeneralModifier,modif,ItemValue(1));
       DeclareAndCast(IFSelect_Selection,input,ItemValue(2));
       DeclareAndCast(IFSelect_Dispatch,disp,ItemValue(3));
       if (modif.IsNull())
-       { sout<<"Lineno."<<thenl<<" : A General Modifier has not been Recognized"<<Message_EndLine; continue; }
+       { sout<<"Lineno."<<thenl<<" : A General Modifier has not been Recognized"<<std::endl; continue; }
       thesess->SetItemSelection   (modif,input);
       if (!disp.IsNull()) thesess->SetAppliedModifier (modif,disp);
       else                thesess->SetAppliedModifier (modif,thesess->ShareOut());
@@ -670,11 +670,11 @@ static int deja = 0;
 
     Standard_Integer  IFSelect_SessionFile::ReadEnd ()
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if ( theline.Length() != 2 ||
       !theline.Value(1).IsEqual("!XSTEP") ||
       !theline.Value(2).IsEqual("END"))
-    { sout<<"End of File Incorrect, lineno"<<thenl<<Message_EndLine;  return 1; }
+    { sout<<"End of File Incorrect, lineno"<<thenl<<std::endl;  return 1; }
   return 0;
 }
 
@@ -716,7 +716,7 @@ static int deja = 0;
     Standard_Boolean  IFSelect_SessionFile::ReadOwn
   (Handle(Standard_Transient)& item)
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
 
   if (theline.Length() < 2) return Standard_False;
   const TCollection_AsciiString& type = theline.Value(2);
@@ -730,7 +730,7 @@ static int deja = 0;
     if (dumper->ReadOwn(*this,type,item)) break;
     dumper = dumper->Next();
   }
-  if (dumper.IsNull()) sout<<" -- Lineno."<<thenl<<" : an Item could not be read"<<Message_EndLine;
+  if (dumper.IsNull()) sout<<" -- Lineno."<<thenl<<" : an Item could not be read"<<std::endl;
   return (!dumper.IsNull());    // IsNull -> echec
 }
 
@@ -738,7 +738,7 @@ static int deja = 0;
     void  IFSelect_SessionFile::AddItem
   (const Handle(Standard_Transient)& item, const Standard_Boolean active)
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
 
   const TCollection_AsciiString& name = theline.Value(1);
   Standard_Integer id = 0;
@@ -749,7 +749,7 @@ static int deja = 0;
     else id = thesess->AddNamedItem(name.ToCString(),item,active);
   }
   else sout<<"Lineno."<<thenl<<" -- Name : "<<name
-    <<" : Item could not be defined" << Message_EndLine;
+    <<" : Item could not be defined" << std::endl;
   thenames.Bind(name,id);
 }
 
@@ -785,7 +785,7 @@ static int deja = 0;
 
     void  IFSelect_SessionFile::SendItem (const Handle(Standard_Transient)& par)
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
 
   char laligne[100];
   Standard_Integer filenum = 0;
@@ -793,7 +793,7 @@ static int deja = 0;
   if (id != 0) filenum = thenums->Value(id);
   if (filenum == 0) {
     if (!par.IsNull()) sout << "Lineno " << thenl << " --  Unknown Item : "
-       << " Type:" << par->DynamicType()->Name() << Message_EndLine;  //sout<<Handle par
+       << " Type:" << par->DynamicType()->Name() << std::endl;  //sout<<Handle par
     SendVoid();
     thedone = Standard_False;
     return;
@@ -865,7 +865,7 @@ static int deja = 0;
     Handle(Standard_Transient)  IFSelect_SessionFile::ItemValue
   (const Standard_Integer num) const
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
 
   Handle(Standard_Transient) res;
   Standard_Integer nm = num + thelastgen;
@@ -876,7 +876,7 @@ static int deja = 0;
   if (name.IsEqual("$")) return res;    // item non-defini justement
   if (!thenames.Find(name, id)) {
     sout << " -- Item Unknown in File : " << name
-      << " lineno " << thenl << " param." << nm << Message_EndLine;
+      << " lineno " << thenl << " param." << nm << std::endl;
     id = 0;
   }
   return thesess->Item(id);
index 963d15736ed7af3cc8e7471fc778dc992db1ad1c..407f2743348696065fcfabf3f342177b2363405c 100644 (file)
@@ -344,7 +344,8 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
     }
     counter->AddWithGraph (list,thesession->Graph());
   }
-  counter->PrintList(Message::DefaultMessenger(),thesession->Model(),mode);
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  counter->PrintList (sout, thesession->Model(), mode);
   return IFSelect_RetVoid;
 }
 
index 7407ab40bb5d86736a4ac38a65f4b37dc8219538..a56ab4a48f6d74898051a5b78b3bc9879dbfaf62 100644 (file)
@@ -16,8 +16,6 @@
 #include <Interface_InterfaceModel.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_MSG.hxx>
-#include <Message.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_Transient.hxx>
 #include <Standard_Type.hxx>
 #include <TCollection_HAsciiString.hxx>
@@ -147,30 +145,30 @@ IFSelect_SignatureList::IFSelect_SignatureList
       {  return thename->ToCString();  }
 
 
-    void  IFSelect_SignatureList::PrintCount (const Handle(Message_Messenger)& S) const
+    void  IFSelect_SignatureList::PrintCount (Standard_OStream& S) const
 {
   Standard_Integer nbtot = 0, nbsign = 0;
   NCollection_IndexedDataMap<TCollection_AsciiString, Standard_Integer>::Iterator iter(thedicount);
-  S << " Count "<<thename->ToCString()<<"\n -----      -----------"<<Message_EndLine;
+  S << " Count "<<thename->ToCString()<<"\n -----      -----------"<<std::endl;
   for (; iter.More(); iter.Next()) {
     Standard_Integer val = iter.Value();
-    S << Interface_MSG::Blanks(val,6) << val <<"       "<<iter.Key()<<Message_EndLine;
+    S << Interface_MSG::Blanks(val,6) << val <<"       "<<iter.Key()<<std::endl;
     nbtot += val;
     nbsign ++;
   }
-  if (thenbnuls > 0) S << thename->ToCString()<< " Nul : " << thenbnuls<<Message_EndLine;
-  S<<"    Nb Total:"<<nbtot<<"  for "<<nbsign<<" items"<<Message_EndLine;
+  if (thenbnuls > 0) S << thename->ToCString()<< " Nul : " << thenbnuls <<std::endl;
+  S << "    Nb Total:"<<nbtot<<"  for "<<nbsign<<" items"<<std::endl;
 }
 
     void  IFSelect_SignatureList::PrintList
-  (const Handle(Message_Messenger)& S, const Handle(Interface_InterfaceModel)& model,
+  (Standard_OStream& S, const Handle(Interface_InterfaceModel)& model,
    const IFSelect_PrintCount mod) const
 {
   if (mod == IFSelect_ItemsByEntity) return;
   if (mod == IFSelect_CountByItem)   {  PrintCount (S);  return;  }
   if (mod == IFSelect_CountSummary)  {  PrintSum   (S);  return;  }
   if (!HasEntities()) {
-    S <<" SignatureList "<<Name()<<" : PrintList, list not available"<<Message_EndLine;
+    S <<" SignatureList "<<Name()<<" : PrintList, list not available"<<std::endl;
     PrintCount(S);
     return;
   }
@@ -178,35 +176,36 @@ IFSelect_SignatureList::IFSelect_SignatureList
   NCollection_IndexedDataMap<TCollection_AsciiString, Handle(Standard_Transient)>::Iterator iter(thediclist);
   for (; iter.More(); iter.Next()) {
     DeclareAndCast(TColStd_HSequenceOfTransient,list,iter.Value());
-    S<<Name()<<" : "<<iter.Key()<<Message_EndLine;
-    if (list.IsNull())  {  S<<"  - (empty list)"<<Message_EndLine; continue;  }
+    S<<Name()<<" : "<<iter.Key()<<std::endl;
+    if (list.IsNull())  {  S<<"  - (empty list)"<<std::endl; continue;  }
     Standard_Integer nb = list->Length();
     S<<"  - Nb: "<<nb<<" : ";
     Standard_Integer nc = nb;  if (nb > 5 && mod == IFSelect_ShortByItem) nc = 5;
     for (Standard_Integer i = 1; i <= nc; i ++) {
       if (list->Value(i).IsNull()) {
-       S<<"  0";  if (mod == IFSelect_EntitiesByItem) S<<":(Global)";
+       S << "  0";  
+        if (mod == IFSelect_EntitiesByItem) S<<":(Global)";
        continue;
       }
       Standard_Integer num = model->Number(list->Value(i));
       if (num == IFSelect_ShortByItem)  {  S<<"  ??";  continue;  }
       S<<"  "<<num;
       if (mod == IFSelect_EntitiesByItem)
-       {  S<<":";  model->PrintLabel(list->Value(i),S);  }
+       {  S<<":";  model->PrintLabel(list->Value(i), S);  }
     }
     if (nc < nb) S<<"  .. etc";
-    S<<Message_EndLine;
+    S<<std::endl;
     nbtot += nb;
     nbsign ++;
   }
-  S<<" Nb Total:"<<nbtot<<"  for "<<nbsign<<" items"<<Message_EndLine;
+  S <<" Nb Total:"<<nbtot<<"  for "<<nbsign<<" items"<<std::endl;
 }
 
 
-    void  IFSelect_SignatureList::PrintSum (const Handle(Message_Messenger)& S) const
+    void  IFSelect_SignatureList::PrintSum (Standard_OStream& S) const
 {
   NCollection_IndexedDataMap<TCollection_AsciiString, Standard_Integer>::Iterator iter(thedicount);
-  S << " Summary "<<thename->ToCString()<<"\n -----    -----------"<<Message_EndLine;
+  S << " Summary "<<thename->ToCString()<<"\n -----    -----------"<<std::endl;
   Standard_Integer nbtot = 0, nbsign = 0, maxent = 0, nbval = 0, nbve = 0, minval = 0, maxval = 0, totval = 0;
   for (; iter.More(); iter.Next()) {
     Standard_Integer nbent = iter.Value();
@@ -232,18 +231,18 @@ IFSelect_SignatureList::IFSelect_SignatureList
     nbve += nbent;
     totval += (val*nbent);
   }
-  S << "    Nb Total:"<<nbtot<<"  for "<<nbsign<<" items"<<Message_EndLine;
-  S << "    Highest count of entities : "<<maxent<<" on one item"<<Message_EndLine;
+  S << "    Nb Total:"<<nbtot<<"  for "<<nbsign<<" items"<<std::endl;
+  S << "    Highest count of entities : "<<maxent<<" on one item"<<std::endl;
   if (nbval > 0) {
-    S<<"    Summary on Integer Values"<<Message_EndLine;
-    S<<"    Nb Integer Items : "<<nbval<<Message_EndLine;
-    S<<"    For Nb Entities  : "<<nbve<<Message_EndLine;
-    S<<"    Cumulated Values : "<<totval<<Message_EndLine;
-    S<<"    Maximum Value    : "<<maxval<<Message_EndLine;
+    S<<"    Summary on Integer Values"<<std::endl;
+    S<<"    Nb Integer Items : "<<nbval<<std::endl;
+    S<<"    For Nb Entities  : "<<nbve<<std::endl;
+    S<<"    Cumulated Values : "<<totval<<std::endl;
+    S <<"    Maximum Value    : "<<maxval<<std::endl;
     Standard_Integer avg1, avg2;
     avg1 = totval/nbve;
     avg2 = ((totval - (avg1*nbve)) * 10) / nbve;
-    S<<"    Average Value    : "<<avg1<<" "<<avg2<<"/10"<<Message_EndLine;
-    S<<"    Minimum Value    : "<<minval<<Message_EndLine;
+    S <<"    Average Value    : "<<avg1<<" "<<avg2<<"/10"<<std::endl;
+    S <<"    Minimum Value    : "<<minval<<std::endl;
   }
 }
index 8cfdd2791eee1df072fe29b72b7a877f36b310d1..4ff8d4986d6bd64806589a1179bf7850e5b6904b 100644 (file)
@@ -31,7 +31,6 @@
 #include <Standard_Transient.hxx>
 #include <NCollection_IndexedDataMap.hxx>
 class TCollection_HAsciiString;
-class Message_Messenger;
 class Interface_InterfaceModel;
 
 
@@ -117,7 +116,7 @@ public:
   Standard_EXPORT virtual Standard_CString Name() const;
   
   //! Prints the counts of items (not the list)
-  Standard_EXPORT virtual void PrintCount (const Handle(Message_Messenger)& S) const;
+  Standard_EXPORT virtual void PrintCount (Standard_OStream& S) const;
   
   //! Prints the lists of items, if they are present (else, prints
   //! a message "no list available")
@@ -129,13 +128,13 @@ public:
   //! - ShortByItem(D) complete list of entity numbers (0: "Global")
   //! - EntitiesByItem : list of (entity number/PrintLabel from the model)
   //! other modes are ignored
-  Standard_EXPORT virtual void PrintList (const Handle(Message_Messenger)& S, const Handle(Interface_InterfaceModel)& model, const IFSelect_PrintCount mod = IFSelect_ListByItem) const;
+  Standard_EXPORT virtual void PrintList (Standard_OStream& S, const Handle(Interface_InterfaceModel)& model, const IFSelect_PrintCount mod = IFSelect_ListByItem) const;
   
   //! Prints a summary
   //! Item which has the greatest count of entities
   //! For items which are numeric values : their count, maximum,
   //! minimum values, cumul, average
-  Standard_EXPORT virtual void PrintSum (const Handle(Message_Messenger)& S) const;
+  Standard_EXPORT virtual void PrintSum (Standard_OStream& S) const;
 
 
 
index a447f2447aaaccfcd41801f875349a04b1f5b54e..ab4572d3294b1ec75e8e08354bff484312080f44 100644 (file)
@@ -146,7 +146,7 @@ IFSelect_TransformStandard::IFSelect_TransformStandard ()
    Interface_CopyTool& TC,    Interface_CheckIterator& checks,
    Handle(Interface_InterfaceModel)& newmod) const
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   Standard_Boolean res = Standard_True;
   Standard_Boolean chg = Standard_False;
   Standard_Integer nb = NbModifiers();
@@ -176,11 +176,11 @@ IFSelect_TransformStandard::IFSelect_TransformStandard ()
     Interface_CheckIterator checklist = ctx.CheckList();
     if (!checklist.IsEmpty(Standard_False)) {
       checks.Merge(checklist);
-      sout<<"IFSelect_TransformStandard :  Messages from Modifier n0 "<<i<<" of "<<nb<<Message_EndLine;
+      sout<<"IFSelect_TransformStandard :  Messages from Modifier n0 "<<i<<" of "<<nb<<std::endl;
       checklist.Print(sout,newmod,Standard_False);
     }
     if (!checklist.IsEmpty(Standard_True)) {
-      sout<<" --  Abandon TransformStandard  --"<<Message_EndLine;
+      sout<<" --  Abandon TransformStandard  --"<<std::endl;
       res = Standard_False;  break;
     }
   }
index 49ed080769a299c58a408aff537cdf28be34f0b0..51e1f0be2859123343e64c098eb0b46394dd5eb3 100644 (file)
@@ -18,8 +18,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_InterfaceModel.hxx>
 #include <Interface_Protocol.hxx>
-#include <Message.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_Transient.hxx>
 #include <Standard_Type.hxx>
 #include <TCollection_HAsciiString.hxx>
@@ -48,7 +46,7 @@ IFSelect_WorkLibrary::IFSelect_WorkLibrary ()  {  thelevdef = 0;  }
   (const Handle(Interface_InterfaceModel)& model,
    const Handle(Interface_Protocol)& protocol,
    const Handle(Standard_Transient)& entity,
-   const Handle(Message_Messenger)& S) const
+   Standard_OStream& S) const
 {
   if (thelevhlp.IsNull()) DumpEntity (model,protocol,entity,S,0);
   else                    DumpEntity (model,protocol,entity,S,thelevdef);
index fa19ba190c82fb389b080df1cf875c88db797483..ab3bc80689ba0ae5ff8f225b7ba86084114b052d 100644 (file)
@@ -31,8 +31,6 @@ class IFSelect_ContextWrite;
 class Interface_EntityIterator;
 class Interface_CopyTool;
 class Standard_Transient;
-class Message_Messenger;
-
 
 class IFSelect_WorkLibrary;
 DEFINE_STANDARD_HANDLE(IFSelect_WorkLibrary, Standard_Transient)
@@ -98,10 +96,10 @@ public:
   //! for each norm. <model> helps to identify, number ... entities.
   //! <level> is to be interpreted for each norm (because of the
   //! formats which can be very different)
-  Standard_EXPORT virtual void DumpEntity (const Handle(Interface_InterfaceModel)& model, const Handle(Interface_Protocol)& protocol, const Handle(Standard_Transient)& entity, const Handle(Message_Messenger)& S, const Standard_Integer level) const = 0;
+  Standard_EXPORT virtual void DumpEntity (const Handle(Interface_InterfaceModel)& model, const Handle(Interface_Protocol)& protocol, const Handle(Standard_Transient)& entity, Standard_OStream& S, const Standard_Integer level) const = 0;
   
   //! Calls deferred DumpEntity with the recorded default level
-  Standard_EXPORT void DumpEntity (const Handle(Interface_InterfaceModel)& model, const Handle(Interface_Protocol)& protocol, const Handle(Standard_Transient)& entity, const Handle(Message_Messenger)& S) const;
+  Standard_EXPORT void DumpEntity (const Handle(Interface_InterfaceModel)& model, const Handle(Interface_Protocol)& protocol, const Handle(Standard_Transient)& entity, Standard_OStream& S) const;
   
   //! Records a default level and a maximum value for level
   //! level for DumpEntity can go between 0 and <max>
index e7992db1ba837229ce037218d61b894303764bc1..fd314e57a485be3dae71f36176170671e23ef782 100644 (file)
@@ -222,10 +222,10 @@ IFSelect_ReturnStatus  IFSelect_WorkSession::ReadFile
     else status = IFSelect_RetFail;
   }
   catch(Standard_Failure const& anException) {
-    Handle(Message_Messenger) sout = Message::DefaultMessenger();
+    Message_Messenger::StreamBuffer sout = Message::SendInfo();
     sout<<"    ****    Interruption ReadFile par Exception :   ****\n";
     sout << anException.GetMessageString();
-    sout<<"\n    Abandon"<<Message_EndLine;
+    sout<<"\n    Abandon"<<std::endl;
     status = IFSelect_RetFail;
   }
   if (status != IFSelect_RetDone) return status;
@@ -1245,10 +1245,10 @@ Interface_EntityIterator IFSelect_WorkSession::EvalSelection
       iter = EvalSelection(sel);    // appel normal (donc, code pas duplique)
     }
     catch (Standard_Failure const& anException) {
-      Handle(Message_Messenger) sout = Message::DefaultMessenger();
+      Message_Messenger::StreamBuffer sout = Message::SendInfo();
       sout<<"    ****    Interruption EvalSelection par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<Message_EndLine;
+      sout<<"\n    Abandon"<<std::endl;
     }
     errhand = theerrhand;
     return iter;
@@ -1288,10 +1288,10 @@ Handle(TColStd_HSequenceOfTransient) IFSelect_WorkSession::SelectionResult
       res = SelectionResult(sel);    // appel normal (->code unique)
     }
     catch (Standard_Failure const& anException) {
-      Handle(Message_Messenger) sout = Message::DefaultMessenger();
+      Message_Messenger::StreamBuffer sout = Message::SendInfo();
       sout<<"    ****    Interruption SelectionResult par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<Message_EndLine;
+      sout<<"\n    Abandon"<<std::endl;
     }
     errhand = theerrhand;
     return res;
@@ -1708,8 +1708,8 @@ Standard_Integer IFSelect_WorkSession::RunTransformer
     (thegraph->Graph(),theprotocol,checks,newmod);
 
   if (!checks.IsEmpty(Standard_False)) {
-    Handle(Message_Messenger) sout = Message::DefaultMessenger();
-    sout<<"  **    RunTransformer has produced Check Messages :    **"<<Message_EndLine;
+    Message_Messenger::StreamBuffer sout = Message::SendInfo();
+    sout<<"  **    RunTransformer has produced Check Messages :    **"<<std::endl;
     checks.Print (sout,myModel,Standard_False);
   }
   thecheckdone = Standard_False;
@@ -2021,10 +2021,10 @@ void IFSelect_WorkSession::EvaluateFile ()
       EvaluateFile();    // appel normal (donc, code pas duplique)
     }
     catch (Standard_Failure const& anException) {
-      Handle(Message_Messenger) sout = Message::DefaultMessenger();
+      Message_Messenger::StreamBuffer sout = Message::SendInfo();
       sout<<"    ****    Interruption EvaluateFile par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<Message_EndLine;
+      sout<<"\n    Abandon"<<std::endl;
       checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
     }
     errhand = theerrhand;
@@ -2035,8 +2035,8 @@ void IFSelect_WorkSession::EvaluateFile ()
   IFSelect_ShareOutResult R(theshareout,thegraph->Graph());
   checks = thecopier->Copy (R,thelibrary,theprotocol);
   if (!checks.IsEmpty(Standard_False)) {
-    Handle(Message_Messenger) sout = Message::DefaultMessenger();
-    sout<<"  **    EvaluateFile has produced Check Messages :    **"<<Message_EndLine;
+    Message_Messenger::StreamBuffer sout = Message::SendInfo();
+    sout<<"  **    EvaluateFile has produced Check Messages :    **"<<std::endl;
     checks.Print (sout,myModel,Standard_False);
   } 
   thecopier->SetRemaining (thegraph->CGraph());
@@ -2125,10 +2125,10 @@ Standard_Boolean IFSelect_WorkSession::SendSplit ()
       return SendSplit();   // appel normal (donc, code pas duplique)
     }
     catch (Standard_Failure const& anException) {
-      Handle(Message_Messenger) sout = Message::DefaultMessenger();
+      Message_Messenger::StreamBuffer sout = Message::SendInfo();
       sout<<"    ****    Interruption SendSplit par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<Message_EndLine;
+      sout<<"\n    Abandon"<<std::endl;
       checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
     }
     errhand = theerrhand;
@@ -2142,8 +2142,8 @@ Standard_Boolean IFSelect_WorkSession::SendSplit ()
     return Standard_False;
   }
   if (!IsLoaded()) {
-    Handle(Message_Messenger) sout = Message::DefaultMessenger();
-    sout<< " ***  Data for SendSplit not available  ***"<<Message_EndLine;
+    Message_Messenger::StreamBuffer sout = Message::SendInfo();
+    sout<< " ***  Data for SendSplit not available  ***"<<std::endl;
     checks.CCheck(0)->AddFail("Data not available");
     thecheckrun = checks;
     return Standard_False;
@@ -2160,7 +2160,7 @@ Standard_Boolean IFSelect_WorkSession::SendSplit ()
     if (theshareout.IsNull()) return Standard_False;
     Standard_Integer i, nbd = theshareout->NbDispatches();
     Standard_Integer nf = 0;
-    Handle(Message_Messenger) sout = Message::DefaultMessenger();
+    Message_Messenger::StreamBuffer sout = Message::SendInfo();
     sout<<" SendSplit .. ";
     for (i = 1; i <= nbd; i ++) {
       Handle(IFSelect_Dispatch) disp = theshareout->Dispatch(i);
@@ -2187,7 +2187,7 @@ Standard_Boolean IFSelect_WorkSession::SendSplit ()
        if (stat != IFSelect_RetDone) std::cout<<"File "<<filnam<<" failed"<<std::endl;
       }
     }
-    sout<<" .. Files Written : "<<nf<<Message_EndLine;
+    sout<<" .. Files Written : "<<nf<<std::endl;
   }
   thecheckrun = checks;
   return Standard_True;
@@ -2258,7 +2258,7 @@ Standard_Integer IFSelect_WorkSession::MaxSendingCount () const
 Standard_Boolean IFSelect_WorkSession::SetRemaining
   (const IFSelect_RemainMode mode)
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (!IsLoaded()) return Standard_False;
   if (mode == IFSelect_RemainForget) {
     Standard_Integer nb = thegraph->Graph().Size();
@@ -2271,9 +2271,9 @@ Standard_Boolean IFSelect_WorkSession::SetRemaining
     Interface_CopyTool TC(myModel,theprotocol);
     thecopier->CopiedRemaining (thegraph->Graph(),thelibrary,TC,newmod);
     if (newmod.IsNull()) {
-      sout<<" No Remaining Data recorded"<<Message_EndLine;  return Standard_False;
+      sout<<" No Remaining Data recorded"<<std::endl;  return Standard_False;
     } else if (newmod == myModel) {
-      sout<<" Remaining causes all original data to be kept"<<Message_EndLine;
+      sout<<" Remaining causes all original data to be kept"<<std::endl;
       thecopier->SetRemaining (thegraph->CGraph());
       return Standard_False;
     } else {
@@ -2295,17 +2295,17 @@ Standard_Boolean IFSelect_WorkSession::SetRemaining
     for (Standard_Integer i = 1; i <= nb; i ++)
       {  if (thegraph->Graph().Status(i) >= 0) ne ++;  }
     if (ne == 0) {
-      sout<<" - All entities are remaining, none yet sent"<<Message_EndLine;  return Standard_True;
+      sout<<" - All entities are remaining, none yet sent"<<std::endl;  return Standard_True;
     }
     Interface_EntityIterator iter = SentList(0);
     nb = iter.NbEntities();
     if (nb == 0) {
-      sout<<" - No recorded remaining entities"<<Message_EndLine;  return Standard_True;
+      sout<<" - No recorded remaining entities"<<std::endl;  return Standard_True;
     }
-    sout <<" --  Recorded Remaining (not yet sent) Entities  --"<<Message_EndLine;
-    ListEntities(iter,2);
+    sout <<" --  Recorded Remaining (not yet sent) Entities  --"<<std::endl;
+    ListEntities (iter, 2, sout);
     sout << " -- Maximum Sending Count (i.e. duplication in files) "<<
-      MaxSendingCount() << Message_EndLine;
+      MaxSendingCount() << std::endl;
 
 /*
     sout<< " - Now, dispatches are deactivated"<<std::endl;
@@ -2348,10 +2348,10 @@ IFSelect_ReturnStatus IFSelect_WorkSession::SendAll
       checks = thecopier->SendAll(filename,thegraph->Graph(),thelibrary,theprotocol);
     }
     catch (Standard_Failure const& anException) {
-      Handle(Message_Messenger) sout = Message::DefaultMessenger();
+      Message_Messenger::StreamBuffer sout = Message::SendInfo();
       sout<<"    ****    Interruption SendAll par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<Message_EndLine;
+      sout<<"\n    Abandon"<<std::endl;
       errhand = theerrhand;
       checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
       thecheckrun = checks;
@@ -2398,10 +2398,10 @@ IFSelect_ReturnStatus IFSelect_WorkSession::SendSelected
       return SendSelected (filename,sel);    // appel normal
     }
     catch (Standard_Failure const& anException) {
-      Handle(Message_Messenger) sout = Message::DefaultMessenger();
+      Message_Messenger::StreamBuffer sout = Message::SendInfo();
       sout<<"    ****    Interruption SendSelected par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<Message_EndLine;
+      sout<<"\n    Abandon"<<std::endl;
       checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
       errhand = theerrhand;
       thecheckrun = checks;
@@ -2844,32 +2844,32 @@ void IFSelect_WorkSession::SetParams
 void IFSelect_WorkSession::TraceStatics
   (const Standard_Integer use, const Standard_Integer mode) const
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (use > 0) {
-    if (mode == 0)   sout<<"******************************************"<<Message_EndLine;
+    if (mode == 0)   sout<<"******************************************"<<std::endl;
     if        (use == 1) {
-      if (mode == 0) sout<<"*****      General  Parameters       *****"<<Message_EndLine;
+      if (mode == 0) sout<<"*****      General  Parameters       *****"<<std::endl;
     } else if (use == 2) {
-      if (mode == 0) sout<<"*****            Load  File          *****"<<Message_EndLine;
+      if (mode == 0) sout<<"*****            Load  File          *****"<<std::endl;
     } else if (use == 3) {
-      if (mode == 0) sout<<"*****            Write File          *****"<<Message_EndLine;
+      if (mode == 0) sout<<"*****            Write File          *****"<<std::endl;
     } else if (use == 4) {
-      if (mode == 0) sout<<"*****            Split File          *****"<<Message_EndLine;
+      if (mode == 0) sout<<"*****            Split File          *****"<<std::endl;
     } else if (use == 5) {
-      if (mode == 0) sout<<"*****        Transfer (Read)         *****"<<Message_EndLine;
+      if (mode == 0) sout<<"*****        Transfer (Read)         *****"<<std::endl;
     } else if (use == 6) {
-      if (mode == 0) sout<<"*****        Transfer (Write)        *****"<<Message_EndLine;
+      if (mode == 0) sout<<"*****        Transfer (Write)        *****"<<std::endl;
     }
-    if (mode == 0)   sout<<"******************************************"<<Message_EndLine<<Message_EndLine;
+    if (mode == 0)   sout<<"******************************************"<<std::endl<<std::endl;
   }
 
 //    Echainements particuliers (use > 0)
   if (use == 5) {
     TraceStatics (-2,mode);
-    if (mode == 0) sout<<Message_EndLine;
+    if (mode == 0) sout<<std::endl;
   } else if (use == 4 || use == 6) {
     TraceStatics (-3,mode);
-    if (mode == 0) sout<<Message_EndLine;
+    if (mode == 0) sout<<std::endl;
   }
 
 //    Valeurs particulieres
@@ -2880,14 +2880,14 @@ void IFSelect_WorkSession::TraceStatics
   } else if (use == 4 || use == -4) {  // Split : Prefix & cie
     if (mode == 0) {
       Handle(TCollection_HAsciiString) str = theshareout->Prefix();
-      if (!str.IsNull()) sout << "Prefix        : "<<str->ToCString()<<Message_EndLine;
-      else sout << "Prefix       not Defined" << Message_EndLine;
+      if (!str.IsNull()) sout << "Prefix        : "<<str->ToCString()<<std::endl;
+      else sout << "Prefix       not Defined" << std::endl;
       str = theshareout->DefaultRootName();
-      if (!str.IsNull()) sout << "Default Root  : "<<str->ToCString()<<Message_EndLine;
-      else sout << "Default Root not Defined" << Message_EndLine;
+      if (!str.IsNull()) sout << "Default Root  : "<<str->ToCString()<<std::endl;
+      else sout << "Default Root not Defined" << std::endl;
       str = theshareout->Extension();
-      if (!str.IsNull()) sout << "Extension     : "<<str->ToCString()<<Message_EndLine;
-      else sout << "Extension    not defined" << Message_EndLine;
+      if (!str.IsNull()) sout << "Extension     : "<<str->ToCString()<<std::endl;
+      else sout << "Extension    not defined" << std::endl;
     }
   }
 
@@ -2896,7 +2896,7 @@ void IFSelect_WorkSession::TraceStatics
 
 //    Fin
   if (use > 0) {
-    if (mode == 0)   sout<<"******************************************"<<Message_EndLine<<Message_EndLine;
+    if (mode == 0)   sout<<"******************************************"<<std::endl<<std::endl;
   }
 }
 
@@ -2908,43 +2908,43 @@ void IFSelect_WorkSession::TraceStatics
 
 void IFSelect_WorkSession::DumpShare () const 
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  sout<<"        **********  Definition ShareOut (Complete)  **********"<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  sout<<"        **********  Definition ShareOut (Complete)  **********"<<std::endl;
 
   Handle(TCollection_HAsciiString) str = theshareout->Prefix();
-  if (!str.IsNull()) sout << "Prefix       : " << str->ToCString() << Message_EndLine;
-  else sout << "Prefix       not Defined" << Message_EndLine;
+  if (!str.IsNull()) sout << "Prefix       : " << str->ToCString() << std::endl;
+  else sout << "Prefix       not Defined" << std::endl;
   str = theshareout->DefaultRootName();
-  if (!str.IsNull()) sout << "Default Root : " << str->ToCString() << Message_EndLine;
-  else sout << "Default Root not Defined" << Message_EndLine;
+  if (!str.IsNull()) sout << "Default Root : " << str->ToCString() << std::endl;
+  else sout << "Default Root not Defined" << std::endl;
   str = theshareout->Extension();
-  if (!str.IsNull()) sout << "Extension    : " << str->ToCString() << Message_EndLine;
-  else sout << "Extension    not defined" << Message_EndLine;
+  if (!str.IsNull()) sout << "Extension    : " << str->ToCString() << std::endl;
+  else sout << "Extension    not defined" << std::endl;
 
   Standard_Integer lr = theshareout->LastRun();
   Standard_Integer nb = theshareout->NbDispatches();
-  sout << "Nb Dispatches : " << nb <<" (Last Run : " << lr << ") : "<<Message_EndLine;
+  sout << "Nb Dispatches : " << nb <<" (Last Run : " << lr << ") : "<<std::endl;
   for (Standard_Integer i = 1; i <= nb; i ++) {
     Handle(IFSelect_Dispatch) disp = theshareout->Dispatch(i);
     sout << "Dispatch n0 " << i;
     if (HasName(disp)) sout << "   Name:"<< Name(disp)->ToCString();
-    sout << "   Label:" << disp->Label() << Message_EndLine;
+    sout << "   Label:" << disp->Label() << std::endl;
     Handle(IFSelect_Selection) sel = disp->FinalSelection();
-    if (sel.IsNull()) sout << "   No Final Selection Defined" << Message_EndLine;
+    if (sel.IsNull()) sout << "   No Final Selection Defined" << std::endl;
     else if (HasName(sel)) sout << "   Final Selection : Name:"
-      << Name(sel)->ToCString() << "  Label:" << sel->Label() << Message_EndLine;
-    else sout << "   Final Selection : " << sel->Label() << Message_EndLine;
+      << Name(sel)->ToCString() << "  Label:" << sel->Label() << std::endl;
+    else sout << "   Final Selection : " << sel->Label() << std::endl;
     if (disp->HasRootName())
-      sout<<"   File Root Name : "<<disp->RootName()->ToCString()<<Message_EndLine;
-    else sout<<"   No specific file root name (see Default Root)"<<Message_EndLine;
+      sout<<"   File Root Name : "<<disp->RootName()->ToCString()<<std::endl;
+    else sout<<"   No specific file root name (see Default Root)"<<std::endl;
   }
   Standard_Integer nbm = theshareout->NbModifiers(Standard_True);
   if (nbm > 0) sout<<
-    "  ***   "<<nbm<<" active Model Modifiers : see ListModifiers   ***"<<Message_EndLine;
+    "  ***   "<<nbm<<" active Model Modifiers : see ListModifiers   ***"<<std::endl;
   Standard_Integer nbf = theshareout->NbModifiers(Standard_False);
   if (nbf > 0) sout<<
-    "  ***   "<<nbf<<" active File  Modifiers : see ListModifiers   ***"<<Message_EndLine;
-  if (nbm+nbf == 0) sout<<"  ***   No active Modifiers   ***"<<Message_EndLine;
+    "  ***   "<<nbf<<" active File  Modifiers : see ListModifiers   ***"<<std::endl;
+  if (nbm+nbf == 0) sout<<"  ***   No active Modifiers   ***"<<std::endl;
 }
 
 //  ####    ####    ####    ####    ####    ####    ####    ####    ####
@@ -2957,8 +2957,8 @@ void IFSelect_WorkSession::DumpShare () const
 
 void IFSelect_WorkSession::ListItems (const Standard_CString lab) const 
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  sout<< "        **********  Items in Session  **********"<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  sout<< "        **********  Items in Session  **********"<<std::endl;
   Standard_Integer nb = MaxIdent();
   Handle(TCollection_HAsciiString) str;
   if (lab[0] != '\0') str = new TCollection_HAsciiString (lab);
@@ -2970,7 +2970,7 @@ void IFSelect_WorkSession::ListItems (const Standard_CString lab) const
     sout<<"#"<<i;
     if (HasName(var)) sout<<"  - Named : "<<Name(var)->ToCString()<<"  - ";
     else sout<<" - (no name) - ";
-    sout<<var->DynamicType()->Name()<<Message_EndLine<<"    "<<label->ToCString()<<Message_EndLine;
+    sout<<var->DynamicType()->Name()<<std::endl<<"    "<<label->ToCString()<<std::endl;
   }
 }
 
@@ -2985,17 +2985,17 @@ void IFSelect_WorkSession::ListItems (const Standard_CString lab) const
 void IFSelect_WorkSession::ListFinalModifiers
   (const Standard_Boolean formodel) const 
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   Standard_Integer nb = theshareout->NbModifiers(formodel);
   sout<< "        **********  Modifiers in Session ";
   sout<<(formodel ? "(For Model)" : "(For File)");
-  sout<<": "<<nb<<"  **********"<<Message_EndLine;
+  sout<<": "<<nb<<"  **********"<<std::endl;
   for (Standard_Integer i = 1; i <= nb; i ++) {
     Handle(IFSelect_GeneralModifier) modif =
       theshareout->GeneralModifier(formodel,i);
     if (!modif.IsNull()) sout<<"Modifier n0."<<i<<"    : "<<modif->Label();
     if (HasName(modif)) sout << "       Named as : " << Name(modif)->ToCString();
-    sout<<Message_EndLine;
+    sout<<std::endl;
   }
 }
 
@@ -3010,23 +3010,23 @@ void IFSelect_WorkSession::ListFinalModifiers
 void IFSelect_WorkSession::DumpSelection
   (const Handle(IFSelect_Selection)& sel) const 
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (ItemIdent(sel) == 0) {
-    sout << "Selection :  Unknown"<<Message_EndLine;  //sout<<Handle
+    sout << "Selection :  Unknown"<<std::endl;  //sout<<Handle
     return;
   }
   sout << "        **********  Selection";
   if (HasName(sel)) sout << " , Name : " << Name(sel)->ToCString();
-  sout <<"  **********"<<Message_EndLine;
-  sout<< "Label : " << sel->Label() << " . Input(s) : "<< Message_EndLine;
+  sout <<"  **********"<<std::endl;
+  sout<< "Label : " << sel->Label() << " . Input(s) : "<< std::endl;
   Standard_Integer nb = 0;
   IFSelect_SelectionIterator iter; sel->FillIterator(iter);
   for (; iter.More(); iter.Next()) {
     nb ++; 
     Handle(IFSelect_Selection) newsel = iter.Value();
-    sout<<" -- "<<newsel->Label()<<Message_EndLine;
+    sout<<" -- "<<newsel->Label()<<std::endl;
   }
-  sout << " Nb Inputs:"<<nb<<Message_EndLine;
+  sout << " Nb Inputs:"<<nb<<std::endl;
 }
 
 
@@ -3276,18 +3276,18 @@ Handle(TColStd_HSequenceOfTransient) IFSelect_WorkSession::GiveListCombined
 //=======================================================================
 
 void IFSelect_WorkSession::DumpModel
-  (const Standard_Integer level, const Handle(Message_Messenger)& S)
+  (const Standard_Integer level, Standard_OStream& S)
 {
   if (!IsLoaded())
-    {  S<< " ***  Data for List not available  ***"<<Message_EndLine;  return;  }
+    {  S << " ***  Data for List not available  ***"<<std::endl;  return;  }
   S << "\n        *****************************************************************\n";
   if (theloaded.Length() > 0)
-    S << "        ********  Loaded File : "<<theloaded.ToCString()<<Interface_MSG::Blanks(32-theloaded.Length())<<" ********"<<Message_EndLine;
-  else S << "        ********  No name for Loaded File"<<Message_EndLine;
+    S << "        ********  Loaded File : "<<theloaded.ToCString()<<Interface_MSG::Blanks(32-theloaded.Length())<<" ********"<<std::endl;
+  else S << "        ********  No name for Loaded File"<<std::endl;
   if (level == 0) {
-    S<<"        ********  Short Dump of Header                           ********\n";
+    S <<"        ********  Short Dump of Header                           ********\n";
   S << "        *****************************************************************\n\n";
-    myModel->DumpHeader(S);  S<<Message_EndLine;
+    myModel->DumpHeader (S); S <<std::endl;
   }
 
   Standard_Integer nbent = myModel->NbEntities();
@@ -3297,26 +3297,26 @@ void IFSelect_WorkSession::DumpModel
   for (Standard_Integer i = 1; i <= nbent; i ++) {
     if (!shar.IsShared(myModel->Value(i))) nbr ++;
   }
-  S << "        *****************************************************************\n";
-  S << "        ********  Model : "<<nbent<<" Entities, of which "<<nbr<<" Root(s)\n";
-  S << "        *****************************************************************\n"<<Message_EndLine;
+  S << "        *****************************************************************\n"
+    << "        ********  Model : "<<nbent<<" Entities, of which "<<nbr<<" Root(s)\n"
+    << "        *****************************************************************\n"<<std::endl;
 
   if (level <= 0) return;
   else if (level == 1) {
-    S<<"        ********  Root Entities  ********      ";
-    ListEntities (shar.RootEntities(),1);
+    S <<"        ********  Root Entities  ********      ";
+    ListEntities (shar.RootEntities(), 1, S);
   } else if (level == 2) {
-    S<<"        ********  Complete List  ********      ";
-    ListEntities (myModel->Entities(),1);
+    S <<"        ********  Complete List  ********      ";
+    ListEntities (myModel->Entities(), 1, S);
   } else if (level > 2) {
     IFSelect_PrintCount mode = IFSelect_ItemsByEntity;
     if (level == 5 || level ==  8) mode = IFSelect_CountByItem;
     if (level == 6 || level ==  9) mode = IFSelect_ListByItem;
     if (level == 7 || level == 10) mode = IFSelect_EntitiesByItem;
-    PrintCheckList (ModelCheckList(),Standard_False, mode);
+    PrintCheckList (S, ModelCheckList(),Standard_False, mode);
   } else {
-    if (level == 3) S << "        ********  Check Model (Fails)  ********"<<Message_EndLine;
-    else            S << "        ********  Check Model (Complete)  ********"<<Message_EndLine;
+    if (level == 3) S << "        ********  Check Model (Fails)  ********"<<std::endl;
+    else            S << "        ********  Check Model (Complete)  ********"<<std::endl;
     Interface_CheckTool CT (Graph());
     Interface_CheckIterator C;
     if (theerrhand) {
@@ -3326,10 +3326,10 @@ void IFSelect_WorkSession::DumpModel
        else    C = CT.CompleteCheckList();
       }
       catch (Standard_Failure const&) {
-       Handle(Message_Messenger) sout = Message::DefaultMessenger();
+       Message_Messenger::StreamBuffer sout = Message::SendInfo();
        sout<<"    ****    Interruption DumpModel (Check) par Exception    ****\n";
-       S<<"  ** **  Exception Raised during Check !  ** **\n";
-       S<<"  -->  what could be determined is listed"<<Message_EndLine;
+       S <<"  ** **  Exception Raised during Check !  ** **\n";
+       S <<"  -->  what could be determined is listed"<<std::endl;
       }
     }
     else if (level == 3) C = CT.CheckList();
@@ -3341,14 +3341,14 @@ void IFSelect_WorkSession::DumpModel
       C.Print(S,myModel, (level == 3));
     }
     catch (Standard_Failure const& anException) {
-      Handle(Message_Messenger) sout = Message::DefaultMessenger();
+      Message_Messenger::StreamBuffer sout = Message::SendInfo();
       sout<<"    ****    Interruption DumpModel par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<Message_EndLine;
+      sout<<"\n    Abandon"<<std::endl;
     }
 
   }
-  S<<Message_EndLine<<"There are "<<nbent<<" Entities, of which "<<nbr<<" Root(s)"<<Message_EndLine;
+  S <<std::endl<<"There are "<<nbent<<" Entities, of which "<<nbr<<" Root(s)"<<std::endl;
 }
 
 //  ....        TraceDumpModel        ....  (Model + CheckList)
@@ -3361,8 +3361,8 @@ void IFSelect_WorkSession::DumpModel
 void IFSelect_WorkSession::TraceDumpModel
   (const Standard_Integer mode)
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  DumpModel (mode,sout);
+  Message_Messenger::StreamBuffer sout = Message::SendInfo(); // should it be changed to SendTrace()?
+  DumpModel (mode, sout);
 //  if      (mode <= 4)  {  DumpModel (mode,sout);  return;  }
 
 //  else if (mode <= 7) PrintCheckList (ModelCheckList(),Standard_False, mode-5);
@@ -3378,15 +3378,15 @@ void IFSelect_WorkSession::TraceDumpModel
 
 void IFSelect_WorkSession::DumpEntity
   (const Handle(Standard_Transient)& ent, const Standard_Integer level,
-   const Handle(Message_Messenger)& S) const
+   Standard_OStream& S) const
 {
   if (!IsLoaded())
-    {  S<< " ***  Data for List not available  ***"<<Message_EndLine;  return;  }
+    {  S << " ***  Data for List not available  ***"<<std::endl;  return;  }
   Standard_Integer num = myModel->Number(ent);
-  if (num == 0) { S<<" ***  Entity to Dump not in the Model  ***"<<Message_EndLine; return; }
-  if (thelibrary.IsNull()) { S<<" ***  WorkLibrary not defined  ***"<<Message_EndLine; return; }
+  if (num == 0) { S <<" ***  Entity to Dump not in the Model  ***"<<std::endl; return; }
+  if (thelibrary.IsNull()) { S <<" ***  WorkLibrary not defined  ***"<<std::endl; return; }
   S << "        ********  Dumping Entity n0 "<<num
-    <<" level:"<<level<<"  ********"<<Message_EndLine;
+    <<" level:"<<level<<"  ********"<<std::endl;
   thelibrary->DumpEntity (myModel,theprotocol,ent,S,level);
 }
 
@@ -3400,8 +3400,8 @@ void IFSelect_WorkSession::DumpEntity
 void IFSelect_WorkSession::TraceDumpEntity
   (const Handle(Standard_Transient)& ent, const Standard_Integer level) const
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  DumpEntity (ent,level,sout);
+  Message_Messenger::StreamBuffer sout = Message::SendInfo(); // should it be changed to SendTrace()?
+  DumpEntity (ent, level, sout);
 }
 
 //  ....        PrintEntityStatus        ....
@@ -3412,42 +3412,42 @@ void IFSelect_WorkSession::TraceDumpEntity
 //=======================================================================
 
 void IFSelect_WorkSession::PrintEntityStatus
-  (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S)
+  (const Handle(Standard_Transient)& ent, Standard_OStream& S)
 {
   Standard_Integer i,nb;
   Standard_Integer num = StartingNumber(ent);
   if (num == 0)  {  std::cout<<" --  PrintEntityStatus : unknown"<<std::endl;  return;  }
 
   S <<"  Ent. n0/id:   ";
-  myModel->Print(ent,S);
+  myModel->Print (ent, S);
   Handle(TCollection_HAsciiString) hname = EntityName(ent);
-  if (!hname.IsNull() && hname->Length() > 0) S<<"     Name:"<<hname->ToCString();
-  S<<Message_EndLine;
+  if (!hname.IsNull() && hname->Length() > 0) S <<"    Name:"<<hname->ToCString();
+  S <<std::endl;
   Handle(IFSelect_Signature) signtype = SignType();
-  if (signtype.IsNull()) S<<"  Type(CDL):"<<ent->DynamicType()->Name()<<Message_EndLine;
-  else S <<"  Type:"<<signtype->Value (ent,myModel)<<Message_EndLine;
+  if (signtype.IsNull()) S <<"  Type(CDL):"<<ent->DynamicType()->Name()<<std::endl;
+  else S <<"  Type:"<<signtype->Value (ent,myModel)<<std::endl;
   S <<"    Category : " <<CategoryName (ent)
-    <<"    Validity : " <<ValidityName (ent) << Message_EndLine;
+    <<"    Validity : " <<ValidityName (ent) << std::endl;
   Interface_CheckIterator chl = CheckOne (ent);
   chl.Print (S,myModel,Standard_False,Standard_False);
 
   Handle(TColStd_HSequenceOfTransient) list = Sharings(ent);
-  if (list.IsNull()) S<<"  Root"<<Message_EndLine;
+  if (list.IsNull()) S <<"  Root"<<std::endl;
   else {
     nb = list->Length();
-    if (nb == 0) S<<"  Root";
-    else S<<"  Super-entities:"<<nb<<" : (n0/id):";
-    for (i = 1; i <= nb; i ++)  {  S<<" "; myModel->Print(list->Value(i),S);  }
-    S<<Message_EndLine;
+    if (nb == 0) S <<"  Root";
+    else S <<"  Super-entities:"<<nb<<" : (n0/id):";
+    for (i = 1; i <= nb; i ++)  {  S <<" "; myModel->Print(list->Value(i), S);  }
+    S <<std::endl;
   }
   list = Shareds (ent);
-  if (list.IsNull()) S<<"  No sub-entity"<<Message_EndLine;
+  if (list.IsNull()) S <<"  No sub-entity"<<std::endl;
   else {
     nb = list->Length();
-    if (nb == 0) S<<"  No sub-entity";
-    else S<<"  Sub-entities:"<<nb<<" , i.e. (n0/id):";
-    for (i = 1; i <= nb; i ++)  {  S<<" "; myModel->Print(list->Value(i),S);  }
-    S<<Message_EndLine;
+    if (nb == 0) S <<"  No sub-entity";
+    else S <<"  Sub-entities:"<<nb<<" , i.e. (n0/id):";
+    for (i = 1; i <= nb; i ++)  {  S <<" "; myModel->Print(list->Value(i), S);  }
+    S <<std::endl;
   }
 }
 
@@ -3458,19 +3458,19 @@ void IFSelect_WorkSession::PrintEntityStatus
 //purpose  : 
 //=======================================================================
 
-void IFSelect_WorkSession::PrintCheckList
-  (const Interface_CheckIterator& checklist,
-   const Standard_Boolean failsonly, const IFSelect_PrintCount mode) const
+void IFSelect_WorkSession::PrintCheckList (Standard_OStream& S,
+                                           const Interface_CheckIterator& checklist,
+                                           const Standard_Boolean failsonly,
+                                           const IFSelect_PrintCount mode) const
 {
 //  mode : 0  comptage   1 n0s entites   2 n0s+id ents
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (mode == IFSelect_ItemsByEntity) checklist.Print (sout,myModel,failsonly);
+  if (mode == IFSelect_ItemsByEntity) checklist.Print (S,myModel,failsonly);
   else {
     Interface_CheckIterator chks = checklist;
     Handle(IFSelect_CheckCounter) counter =
       new IFSelect_CheckCounter (mode>1 && mode != IFSelect_CountSummary);
     counter->Analyse (chks,myModel,Standard_True,failsonly);
-    counter->PrintList  (sout,myModel,mode);
+    counter->PrintList  (S, myModel, mode);
   }
 }
 
@@ -3481,13 +3481,12 @@ void IFSelect_WorkSession::PrintCheckList
 //purpose  : 
 //=======================================================================
 
-void IFSelect_WorkSession::PrintSignatureList
-  (const Handle(IFSelect_SignatureList)& signlist,
-   const IFSelect_PrintCount mode) const
+void IFSelect_WorkSession::PrintSignatureList (Standard_OStream& S,
+                                               const Handle(IFSelect_SignatureList)& signlist,
+                                               const IFSelect_PrintCount mode) const
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (signlist.IsNull()) return;
-  signlist->PrintList (sout,myModel,mode);
+  signlist->PrintList (S, myModel, mode);
 }
 
 //  ####    ####    ####    ####    ####    ####    ####    ####    ####
@@ -3501,7 +3500,7 @@ void IFSelect_WorkSession::PrintSignatureList
 void IFSelect_WorkSession::EvaluateSelection
   (const Handle(IFSelect_Selection)& sel) const 
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (errhand) {
     errhand = Standard_False;
     try {
@@ -3511,20 +3510,20 @@ void IFSelect_WorkSession::EvaluateSelection
     catch (Standard_Failure const& anException) {
       sout<<"    ****    Interruption EvaluateSelection par Exception    ****  Intitule\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<Message_EndLine;
+      sout<<"\n    Abandon"<<std::endl;
     }
     errhand = theerrhand;
     return;
   }
 
   if (!IsLoaded())
-    {  sout<< " ***  Data for Evaluation not available  ***"<<Message_EndLine;  return;  }
+    {  sout<< " ***  Data for Evaluation not available  ***"<<std::endl;  return;  }
   if (ItemIdent(sel) == 0)
-    {  sout << " Selection :  Unknown"<<Message_EndLine;  return;  }  //sout<<Handle
+    {  sout << " Selection :  Unknown"<<std::endl;  return;  }  //sout<<Handle
   Interface_EntityIterator iter = EvalSelection (sel);
-  ListEntities (iter,1);
+  ListEntities (iter, 1, sout);
   sout << "****  (Unique) RootResult, Selection        : "
-    <<sel->Label()<<Message_EndLine;
+    <<sel->Label()<<std::endl;
 }
 
 
@@ -3539,7 +3538,7 @@ void IFSelect_WorkSession::EvaluateSelection
 void IFSelect_WorkSession::EvaluateDispatch
   (const Handle(IFSelect_Dispatch)& disp, const Standard_Integer mode) const 
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (errhand) {
     errhand = Standard_False;
     try {
@@ -3549,7 +3548,7 @@ void IFSelect_WorkSession::EvaluateDispatch
     catch (Standard_Failure const& anException) {
       sout<<"    ****    Interruption EvaluateDispatch par Exception    ****  Intitule\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<Message_EndLine;
+      sout<<"\n    Abandon"<<std::endl;
     }
     errhand = theerrhand;
     return;
@@ -3557,12 +3556,12 @@ void IFSelect_WorkSession::EvaluateDispatch
 
   Standard_Integer numdisp = DispatchRank(disp);
   if (!IsLoaded())
-    {  sout<< " ***  Data for List not available  ***"<<Message_EndLine;  return;  }
+    {  sout<< " ***  Data for List not available  ***"<<std::endl;  return;  }
   if (theshareout->NbDispatches() < numdisp || numdisp <= 0)
-    { sout<<"Dispatch :  Unknown"<<Message_EndLine; return; } //sout<<Handle
+    { sout<<"Dispatch :  Unknown"<<std::endl; return; } //sout<<Handle
   if (disp->FinalSelection().IsNull())
-    { sout<<"Dispatch  : No Final Selection"<<Message_EndLine; return; }//sout<<Handle
-  sout<<" --- Dispatch Label : "<<disp->Label()<<Message_EndLine
+    { sout<<"Dispatch  : No Final Selection"<<std::endl; return; }//sout<<Handle
+  sout<<" --- Dispatch Label : "<<disp->Label()<<std::endl
 
   IFSelect_ShareOutResult eval(disp,thegraph->Graph());
   eval.Evaluate();
@@ -3571,35 +3570,35 @@ void IFSelect_WorkSession::EvaluateDispatch
     eval.Packets (mode ? Standard_True : Standard_False);
   Standard_Integer nbpack = evres->NbPackets();
 
-  sout<<"Nb Packets produced : "<<nbpack<<" :"<<Message_EndLine;
+  sout<<"Nb Packets produced : "<<nbpack<<" :"<<std::endl;
   for (numpack = 1; numpack <= nbpack; numpack ++) {
-    sout<<"\n    ****    Packet n0 : "<<numpack<<" ****"<<Message_EndLine;
+    sout<<"\n    ****    Packet n0 : "<<numpack<<" ****"<<std::endl;
     if (!mode) std::cout<<"Root Entities :"<<std::endl;
-    ListEntities (evres->Entities(numpack), (mode ? 2 : -1));
+    ListEntities (evres->Entities(numpack), (mode ? 2 : -1), sout);
   }
 
 ////  Interface_EntityIterator iterem = disp->Remainder(thegraph->Graph());
   if (mode == 0) return;
   if (mode == 1 || mode == 3) {
-    sout<<Message_EndLine;
+    sout<<std::endl;
     if (evres->NbDuplicated(0,Standard_False) == 0)
-      sout<<"    ****    All the Model is taken into account    ****"<<Message_EndLine;
+      sout<<"    ****    All the Model is taken into account    ****"<<std::endl;
     else {
-      sout<<"    ****    Starting Entities not taken by this Dispatch    ****"<<Message_EndLine;
-      ListEntities (evres->Duplicated(0,Standard_False),2);
+      sout<<"    ****    Starting Entities not taken by this Dispatch    ****"<<std::endl;
+      ListEntities (evres->Duplicated(0,Standard_False), 2, sout);
     }
   }
   if (mode >= 2) {
     sout<<"    ****    Entites in more than one packet    ****";
     Standard_Integer max = evres->HighestDuplicationCount();
-    if (max < 2) sout<<" :   There are none"<<Message_EndLine;
+    if (max < 2) sout<<" :   There are none"<<std::endl;
     else {
       Standard_Integer newcount;
-      sout<<Message_EndLine;
+      sout<<std::endl;
       for (newcount = 2; newcount <= max; newcount ++) {
        if (evres->NbDuplicated(newcount,Standard_False) == 0) continue;
-       sout<<"    ****   Entities put in "<<newcount<<" packets    ****"<<Message_EndLine;
-       ListEntities (evres->Duplicated(newcount,Standard_False),2);
+       sout<<"    ****   Entities put in "<<newcount<<" packets    ****"<<std::endl;
+       ListEntities (evres->Duplicated(newcount,Standard_False), 2, sout);
       }
     }
   }
@@ -3617,7 +3616,7 @@ void IFSelect_WorkSession::EvaluateDispatch
 void IFSelect_WorkSession::EvaluateComplete
   (const Standard_Integer mode) const 
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (errhand) {
     errhand = Standard_False;
     try {
@@ -3627,53 +3626,53 @@ void IFSelect_WorkSession::EvaluateComplete
     catch (Standard_Failure const& anException) {
       sout<<"    ****    Interruption EvaluateComplete par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<Message_EndLine;
+      sout<<"\n    Abandon"<<std::endl;
     }
     errhand = theerrhand;
     return;
   }
 
   if (!IsLoaded())
-    {  sout<< " ***  Data for List not available  ***"<<Message_EndLine;  return;  }
+    {  sout<< " ***  Data for List not available  ***"<<std::endl;  return;  }
   IFSelect_ShareOutResult eval(theshareout,thegraph->Graph());
   eval.Evaluate();
   sout<<"\n********    Evaluation ShareOutResult (Complete)    ********\n";
-  sout<<"    ****    List of Packets    ****  Count : "<<eval.NbPackets()<<Message_EndLine;
-  if (mode == 0) sout << " ** (for each one : Root Entities)  **"<<Message_EndLine;
-  else sout << " ** (for each one : Evaluated Content)  **"<<Message_EndLine;
+  sout<<"    ****    List of Packets    ****  Count : "<<eval.NbPackets()<<std::endl;
+  if (mode == 0) sout << " ** (for each one : Root Entities)  **"<<std::endl;
+  else sout << " ** (for each one : Evaluated Content)  **"<<std::endl;
 
   Standard_Integer numpack = 0;
   Handle(IFSelect_PacketList) evres =
     eval.Packets (mode ? Standard_True : Standard_False);
   Standard_Integer nbpack = evres->NbPackets();
 
-  sout<<"Nb Packets produced : "<<nbpack<<" :"<<Message_EndLine;
+  sout<<"Nb Packets produced : "<<nbpack<<" :"<<std::endl;
   for (numpack = 1; numpack <= nbpack; numpack ++) {
-    sout<<"\n    ****    Packet n0 : "<<numpack<<" ****"<<Message_EndLine;
+    sout<<"\n    ****    Packet n0 : "<<numpack<<" ****"<<std::endl;
     if (!mode) std::cout<<"Root Entities :"<<std::endl;
-    ListEntities (evres->Entities(numpack), (mode ? 2: -1));
+    ListEntities (evres->Entities(numpack), (mode ? 2: -1), sout);
   }
   if (mode == 0) return;
   if (mode == 1 || mode == 3) {
-    sout<<Message_EndLine;
+    sout<<std::endl;
     if (evres->NbDuplicated(0,Standard_False) == 0)
-      sout<<"    ****    All the Model is taken into account    ****"<<Message_EndLine;
+      sout<<"    ****    All the Model is taken into account    ****"<<std::endl;
     else {
-      sout<<"    ****    Starting Entities Forgotten    ****"<<Message_EndLine;
-      ListEntities (evres->Duplicated(0,Standard_False),2);
+      sout<<"    ****    Starting Entities Forgotten    ****"<<std::endl;
+      ListEntities (evres->Duplicated(0,Standard_False), 2, sout);
     }
   }
   if (mode >= 2) {
-    sout<<"    ****    Entites in more than one packet    ****"<<Message_EndLine;
+    sout<<"    ****    Entites in more than one packet    ****"<<std::endl;
     Standard_Integer max = evres->HighestDuplicationCount();
-    if (max < 2) sout<<" :   There are none"<<Message_EndLine;
+    if (max < 2) sout<<" :   There are none"<<std::endl;
     else {
       Standard_Integer newcount;
-      sout<<Message_EndLine;
+      sout<<std::endl;
       for (newcount = 2; newcount <= max; newcount ++) {
        if (evres->NbDuplicated(newcount,Standard_False) == 0) continue;
-       sout<<"    ****   Entities put in "<<newcount<<" packets    ****"<<Message_EndLine;
-       ListEntities (evres->Duplicated(newcount,Standard_False),2);
+       sout<<"    ****   Entities put in "<<newcount<<" packets    ****"<<std::endl;
+       ListEntities (evres->Duplicated(newcount,Standard_False), 2, sout);
       }
     }
   }
@@ -3689,14 +3688,13 @@ void IFSelect_WorkSession::EvaluateComplete
 //=======================================================================
 
 void IFSelect_WorkSession::ListEntities
-  (const Interface_EntityIterator& iter, const Standard_Integer mmode) const 
+  (const Interface_EntityIterator& iter, const Standard_Integer mmode, Standard_OStream& sout) const 
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
   int titre = 0;
   Standard_Integer mode = (mmode < 0 ? -mmode : mmode);
-  if (mmode >= 0) sout << " List of " << iter.NbEntities() << " Entities :"<<Message_EndLine;
+  if (mmode >= 0) sout << " List of " << iter.NbEntities() << " Entities :"<<std::endl;
   if (!IsLoaded())
-    {  sout<< " ***  Data for List not available  ***"<<Message_EndLine;  return;  }
+    {  sout<< " ***  Data for List not available  ***"<<std::endl;  return;  }
   Interface_ShareFlags tool(thegraph->Graph());
 
   try {
@@ -3704,9 +3702,9 @@ void IFSelect_WorkSession::ListEntities
     int newcount = -1; int mods = 0; int cnt = 0;
     for (iter.Start(); iter.More(); iter.Next()) {
       if (!titre && mode == 1) sout
-       << "Number/Id.           Category Validity    Type\n-----------          ----...."<<Message_EndLine;
+       << "Number/Id.           Category Validity    Type\n-----------          ----...."<<std::endl;
 //          123456789 123456789 123456  123456789 123456789 123456
-      if (!titre && mode == 0) sout<<"  Keys : R Root   ? Unknown   * Unloaded"<<Message_EndLine;
+      if (!titre && mode == 0) sout<<"  Keys : R Root   ? Unknown   * Unloaded"<<std::endl;
       if (!titre && mode == 2) sout<<"(";
       titre = 1;
       Handle(Standard_Transient) ent = iter.Value();
@@ -3714,35 +3712,35 @@ void IFSelect_WorkSession::ListEntities
       if (mode == 1) {
     // n0 id (root?) category validity tracetype
        sout<<Interface_MSG::Blanks (num,6);
-       myModel->Print(ent,sout,0);
+       myModel->Print (ent, sout, 0);
        if (!tool.IsShared(ent)) sout << " #ROOT#";
        else                     sout << "       ";
        Standard_Integer catnum = myModel->CategoryNumber(num);
        if (catnum > 0) sout<<"  "<<Interface_Category::Name (catnum);
        sout << "  (" << ValidityName (ent) << ")  ";
 
-       sout<<" Type:"<<myModel->TypeName (ent, Standard_False)<<Message_EndLine;
+       sout<<" Type:"<<myModel->TypeName (ent, Standard_False)<<std::endl;
       } else if (mode == 2) {
        newcount ++;
        if (newcount > 0) sout<<",";
        sout<<num;
       } else {
        newcount ++;  mods = 0; cnt ++;
-       if      (newcount >= 10) { sout << Message_EndLine<<"["<<cnt<<"]:"; newcount = 1; }
+       if      (newcount >= 10) { sout << std::endl<<"["<<cnt<<"]:"; newcount = 1; }
        if (newcount > 0)  sout << "    ";
-       myModel->Print(ent,sout,0);
+       myModel->Print (ent, sout, 0);
        if (!tool.IsShared(ent)) { if(mods == 0) sout<<"("; sout<<"R"; mods++; }
        if (myModel->IsUnknownEntity(num)) { sout<<(mods==0 ? '(' : ' ')<<"?"; mods ++; }
        if (myModel->IsRedefinedContent(num)) { sout<<(mods==0 ? '(' : ' ')<<"*"; mods ++; }
        if (mods) { sout<<")"; newcount ++; }
       }
     }
-    if (mode == 0) sout<<Message_EndLine;
-    if (mode == 2) sout<<")"<<Message_EndLine;
+    if (mode == 0) sout<<std::endl;
+    if (mode == 2) sout<<")"<<std::endl;
   }
   catch (Standard_Failure const& anException) {
     sout<<"    ****    Interruption ListEntities par Exception :   ****\n";
     sout<<anException.GetMessageString();
-    sout<<"\n    Abandon"<<Message_EndLine;
+    sout<<"\n    Abandon"<<std::endl;
   }
 }
index bd9748939d52064d01e89c2e7ee3215c23f14b4a..bb4fa74502608bf96b8dc0e21babc5a795515dd0 100644 (file)
@@ -63,7 +63,6 @@ class IFSelect_GeneralModifier;
 class IFSelect_Modifier;
 class IFSelect_Transformer;
 class IFSelect_PacketList;
-class Message_Messenger;
 class IFSelect_SignatureList;
 
 
@@ -1018,7 +1017,7 @@ public:
   //! 4 -> as 3 but all CheckList (Fails + Warnings)
   //! 5,6,7  : as 3 but resp. Count,List,Labels by Fail
   //! 8,9,10 : as 4 but resp. Count,List,Labels by message
-  Standard_EXPORT void DumpModel (const Standard_Integer level, const Handle(Message_Messenger)& S);
+  Standard_EXPORT void DumpModel (const Standard_Integer level, Standard_OStream& S);
   
   //! Dumps the current Model (as inherited DumpModel), on currently
   //! defined Default Trace File (default is standard output)
@@ -1029,12 +1028,12 @@ public:
   //! <level> is to be interpreted for each norm : see specific
   //! classes of WorkLibrary for it. Generally, 0 if for very basic
   //! (only type ...), greater values give more and more details.
-  Standard_EXPORT void DumpEntity (const Handle(Standard_Transient)& ent, const Standard_Integer level, const Handle(Message_Messenger)& S) const;
+  Standard_EXPORT void DumpEntity (const Handle(Standard_Transient)& ent, const Standard_Integer level, Standard_OStream& S) const;
   
   //! Prints main informations about an entity : its number, type,
   //! validity (and checks if any), category, shareds and sharings..
   //! mutable because it can recompute checks as necessary
-  Standard_EXPORT void PrintEntityStatus (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S);
+  Standard_EXPORT void PrintEntityStatus (const Handle(Standard_Transient)& ent, Standard_OStream& S);
   
   //! Dumps an entity from the current Model as inherited DumpEntity
   //! on currently defined Default Trace File
@@ -1049,12 +1048,17 @@ public:
   //! 1 : according messages, count of entities
   //! 2 : id but with list of entities, designated by their numbers
   //! 3 : as 2 but with labels of entities
-  Standard_EXPORT void PrintCheckList (const Interface_CheckIterator& checklist, const Standard_Boolean failsonly, const IFSelect_PrintCount mode) const;
+  Standard_EXPORT void PrintCheckList (Standard_OStream& S,
+                                       const Interface_CheckIterator& checklist,
+                                       const Standard_Boolean failsonly,
+                                       const IFSelect_PrintCount mode) const;
   
   //! Prints a SignatureList to the current Trace File, controlled
   //! with the current Model
   //! <mode> defines the mode of printing (see SignatureList)
-  Standard_EXPORT void PrintSignatureList (const Handle(IFSelect_SignatureList)& signlist, const IFSelect_PrintCount mode) const;
+  Standard_EXPORT void PrintSignatureList (Standard_OStream& S,
+                                           const Handle(IFSelect_SignatureList)& signlist,
+                                           const IFSelect_PrintCount mode) const;
   
   //! Displays the list of Entities selected by a Selection (i.e.
   //! the result of EvalSelection).
@@ -1086,7 +1090,7 @@ public:
   //! 1 gives a more complete trace (1 line per Entity)
   //! (can be used each time a trace has to be output from a list)
   //! 2 gives a form suitable for givelist : (n1,n2,n3...)
-  Standard_EXPORT void ListEntities (const Interface_EntityIterator& iter, const Standard_Integer mode) const;
+  Standard_EXPORT void ListEntities (const Interface_EntityIterator& iter, const Standard_Integer mode, Standard_OStream& S) const;
 
   DEFINE_STANDARD_RTTIEXT(IFSelect_WorkSession,Standard_Transient)
 
index 57583f81d5c2e36a33d50f1a61e88b06c03cbef6..3c82890a675b986f53c305ae9a31603a8c810ac6 100644 (file)
@@ -67,7 +67,7 @@ IGESAppli_SpecificModule::IGESAppli_SpecificModule()    {  }
 
     void  IGESAppli_SpecificModule::OwnDump
   (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
-   const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S,
+   const IGESData_IGESDumper& dumper, Standard_OStream& S,
    const Standard_Integer own) const 
 {
   switch (CN) {
index 2e723c6f5f964f7a1f6a60cfb20e169d325e1a67..0577a9b78babf003ca45b487e81f28676ea81db7 100644 (file)
@@ -25,8 +25,6 @@
 #include <Standard_Boolean.hxx>
 class IGESData_IGESEntity;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 class IGESAppli_SpecificModule;
 DEFINE_STANDARD_HANDLE(IGESAppli_SpecificModule, IGESData_SpecificModule)
@@ -43,7 +41,7 @@ public:
   Standard_EXPORT IGESAppli_SpecificModule();
   
   //! Specific Dump (own parameters) for IGESAppli
-  Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const Standard_OVERRIDE;
+  Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const Standard_OVERRIDE;
   
   //! ---Purpose
   Standard_EXPORT virtual Standard_Boolean OwnCorrect (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent) const Standard_OVERRIDE;
index 2ac14dd80060c8220601d8a46c80948403d46309..8c2d0dd440cc75675c131ecdbe7bef3dd1f8e1da 100644 (file)
@@ -128,16 +128,16 @@ void  IGESAppli_ToolDrilledHole::OwnCheck
 
 void  IGESAppli_ToolDrilledHole::OwnDump
   (const Handle(IGESAppli_DrilledHole)& ent, const IGESData_IGESDumper& /*dumper*/,
-   const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+   Standard_OStream& S, const Standard_Integer /*level*/) const
 {
-  S << "IGESAppli_DrilledHole" << Message_EndLine;
+  S << "IGESAppli_DrilledHole" << std::endl;
 
-  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
+  S << "Number of property values : " << ent->NbPropertyValues() << std::endl;
   S << "Drill  diameter size :" << ent->DrillDiaSize() << "  ";
-  S << "Finish diameter size : "  << ent->FinishDiaSize() << Message_EndLine;
+  S << "Finish diameter size : "  << ent->FinishDiaSize() << std::endl;
   S << "Plating indication flag : ";
   if (!ent->IsPlating())   S << "NO"  << "  -  ";
   else                     S << "YES  -  ";
   S << "Lower Numbered Layer  : " << ent->NbLowerLayer() << "  ";
-  S << "Higher Numbered Layer : " << ent->NbHigherLayer() << Message_EndLine;
+  S << "Higher Numbered Layer : " << ent->NbHigherLayer() << std::endl;
 }
index 3b46f8f90a019dadf4cb6506610a31e8e0030423..473dfd3056808d32f0c43d96f98500e879c18fc7 100644 (file)
@@ -34,7 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
 
 
 //! Tool to work on a DrilledHole. Called by various Modules
@@ -74,7 +73,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESAppli_DrilledHole)& entfrom, const Handle(IGESAppli_DrilledHole)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESAppli_DrilledHole)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESAppli_DrilledHole)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index b7d27415d1119e5a5b26689df44234717bd12072..346bed01c3d494374e8a531dd1995e46c38b9c97 100644 (file)
@@ -303,34 +303,34 @@ void  IGESAppli_ToolElementResults::OwnCheck
 
 void  IGESAppli_ToolElementResults::OwnDump
   (const Handle(IGESAppli_ElementResults)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const // UNFINISHED
+   Standard_OStream& S, const Standard_Integer level) const // UNFINISHED
 {
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
-  S << "IGESAppli_ElementResults" << Message_EndLine;
+  S << "IGESAppli_ElementResults\n";
   S << "General Note   : ";
   dumper.Dump(ent->Note(),S, sublevel);
-  S << Message_EndLine;
-  S << "Subcase Number : " << ent->SubCaseNumber() << Message_EndLine;
-  S << "Time           : " << ent->Time() << Message_EndLine;
-  S << "Number of Result Values : " << ent->NbResultValues() << Message_EndLine;
-  S << "Result Report Flag  : " << ent->ResultReportFlag() << Message_EndLine;
+  S << "\n";
+  S << "Subcase Number : " << ent->SubCaseNumber() << "\n";
+  S << "Time           : " << ent->Time() << "\n";
+  S << "Number of Result Values : " << ent->NbResultValues() << "\n";
+  S << "Result Report Flag  : " << ent->ResultReportFlag() << "\n";
   S << "Element Identifiers : ";
-  IGESData_DumpVals(S ,level,1, ent->NbElements(),ent->ElementIdentifier);
-  S << Message_EndLine << "Elements : ";
+  IGESData_DumpVals(S,level,1, ent->NbElements(),ent->ElementIdentifier);
+  S << "\nElements : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbElements(),ent->Element);
-  S << Message_EndLine << "Element Topology Types : ";
-  IGESData_DumpVals(S ,level,1, ent->NbElements(),ent->ElementTopologyType);
-  S << Message_EndLine << "Numbers of Layers      : ";
-  IGESData_DumpVals(S ,level,1, ent->NbElements(),ent->NbLayers);
-  S << Message_EndLine << "Data Layer Flags       : ";
-  IGESData_DumpVals(S ,level,1, ent->NbElements(),ent->DataLayerFlag);
-  S << Message_EndLine << "Numbers of Result Data Locations : ";
-  IGESData_DumpVals(S ,level,1, ent->NbElements(),ent->NbResultDataLocs);
-  S << Message_EndLine << "Result Data Locations : ";  S << " TO BE DONE  ";
+  S << "\nElement Topology Types : ";
+  IGESData_DumpVals(S,level,1, ent->NbElements(),ent->ElementTopologyType);
+  S << "\nNumbers of Layers      : ";
+  IGESData_DumpVals(S,level,1, ent->NbElements(),ent->NbLayers);
+  S << "\nData Layer Flags       : ";
+  IGESData_DumpVals(S,level,1, ent->NbElements(),ent->DataLayerFlag);
+  S << "\nNumbers of Result Data Locations : ";
+  IGESData_DumpVals(S,level,1, ent->NbElements(),ent->NbResultDataLocs);
+  S << "\nResult Data Locations : ";  S << " TO BE DONE  ";
 
 //  ??  A VERIFIER DE PRES, pas du tout sur que ce soit bon
 //      cf aussi Write et Copy
-  if (level <= 4) S << " [ ask level > 4 for more, > 5 for complete ]" << Message_EndLine;
+  if (level <= 4) S << " [ ask level > 4 for more, > 5 for complete ]\n";
   else {
     Standard_Integer i;// svv Jan 10 2000 : porting on DEC 
     for (i = 1; i <= ent->NbElements(); i ++) {
@@ -338,14 +338,14 @@ void  IGESAppli_ToolElementResults::OwnDump
       S << " ["<<i<<":NbLoc="<<nloc<<"]:";
       for (Standard_Integer j = 1; j <= nloc; j ++)
        S << " " << ent->ResultDataLoc (i,j);
-      S << Message_EndLine;
+      S << "\n";
     }
     S << "Result Data : ";
 
     for (i = 1; i <= ent->NbElements(); i ++) {
       Standard_Integer nres = ent->NbResults(i);
       S << " ["<<i<<":NbRes="<<nres<<"]:";
-      if (level <= 5) S << " [ ask level > 5 for complete Data ]" << Message_EndLine;
+      if (level <= 5) S << " [ ask level > 5 for complete Data ]\n";
       else {
        for (Standard_Integer j = 1; j <= nres; j ++)
          S << " " << ent->ResultData(i,j);    // ?? is it all ?? UNFINISHED
index 02e7dad33ec787c8579f97bc8320d70489650d17..e996ebbed96d9be63efae55e14d286eb7f646571 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a ElementResults. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESAppli_ElementResults)& entfrom, const Handle(IGESAppli_ElementResults)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESAppli_ElementResults)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESAppli_ElementResults)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index fe88aeeb13c8893386d1bc550b1677f2a06ff99b..022942667dbe7de6e78b064b0bf29cc53fb8f812 100644 (file)
@@ -32,7 +32,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
@@ -126,13 +125,13 @@ void  IGESAppli_ToolFiniteElement::OwnCheck
 
 void  IGESAppli_ToolFiniteElement::OwnDump
   (const Handle(IGESAppli_FiniteElement)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESAppli_FiniteElement" << Message_EndLine;
+  S << "IGESAppli_FiniteElement\n";
 
-  S << "Topology type : " << ent->Topology() << Message_EndLine;
+  S << "Topology type : " << ent->Topology() << "\n";
   S << "Nodes : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbNodes(),ent->Node);
-  S << Message_EndLine << "Element Name : " << ent->Name();
-  S << Message_EndLine;
+  S << "\nElement Name : " << ent->Name()->String();
+  S << std::endl;
 }
index ac0848b82e6aaeef5e9e5d8e6b7a5a2831cee92c..978ac7ca35ee0da1dbe2555ef930fbc83a6fda6a 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a FiniteElement. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESAppli_FiniteElement)& entfrom, const Handle(IGESAppli_FiniteElement)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESAppli_FiniteElement)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESAppli_FiniteElement)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 3ed920c2f1ee2456d7c568eadd085dae361a8117..114047bc4192c1b3649afbe5d67ee9af2739a542 100644 (file)
@@ -295,36 +295,36 @@ void  IGESAppli_ToolFlow::OwnCheck
 
 void  IGESAppli_ToolFlow::OwnDump
   (const Handle(IGESAppli_Flow)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESAppli_Flow" << Message_EndLine;
-  S << "Number of Context Flags : " << ent->NbContextFlags() << Message_EndLine;
+  S << "IGESAppli_Flow\n";
+  S << "Number of Context Flags : " << ent->NbContextFlags() << "\n";
   Standard_Integer tf = ent->TypeOfFlow();
   S << "Type of Flow : " << tf;
-  if      (tf == 1) S << " (logical)" << Message_EndLine;
-  else if (tf == 2) S << " (physical)" << Message_EndLine;
-  else              S << " (not specified)" << Message_EndLine;
+  if      (tf == 1) S << " (logical)\n";
+  else if (tf == 2) S << " (physical)\n";
+  else              S << " (not specified)\n";
   tf = ent->FunctionFlag();
   S << "Function Flag : " << tf;
-  if      (tf == 1) S << " (electrical signal)" << Message_EndLine;
-  else if (tf == 2) S << " (fluid flow path)" << Message_EndLine;
-  else              S << " (not specified)" << Message_EndLine;
+  if      (tf == 1) S << " (electrical signal)\n";
+  else if (tf == 2) S << " (fluid flow path)\n";
+  else              S << " (not specified)\n";
   S << "Flow Associativities : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbFlowAssociativities(),
                        ent->FlowAssociativity);
-  S << Message_EndLine << "Connect Points : ";
+  S << "\nConnect Points : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbConnectPoints(),
                        ent->ConnectPoint);
-  S << Message_EndLine << "Joins : ";
+  S << "\nJoins : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbJoins(),ent->Join);
-  S << Message_EndLine << "Flow Names : ";
+  S << "\nFlow Names : ";
   IGESData_DumpStrings(S ,level,1, ent->NbFlowNames(),ent->FlowName);
-  S << Message_EndLine << "Text Display Templates : ";
+  S << "\nText Display Templates : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbTextDisplayTemplates(),
                        ent->TextDisplayTemplate);
-  S << Message_EndLine << "Continuation Flow Associativities : ";
+  S << "\nContinuation Flow Associativities : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbContFlowAssociativities(),
                        ent->ContFlowAssociativity);
-  S << Message_EndLine;
+  S << std::endl;
 }
 
index 0bc31f50157005aab07ff3450a53c67e5985b2fd..fc35b3984e8b280248ea51389fedbef6aedd5e37 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Flow. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESAppli_Flow)& entfrom, const Handle(IGESAppli_Flow)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESAppli_Flow)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESAppli_Flow)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 4d6ff578ee4ba2f03dd48c10b8b1673bdbd50ae2..4252be197de6a34ba1e4bafde8ff51614971bf94 100644 (file)
@@ -106,11 +106,11 @@ void  IGESAppli_ToolFlowLineSpec::OwnCheck
 
 void  IGESAppli_ToolFlowLineSpec::OwnDump
   (const Handle(IGESAppli_FlowLineSpec)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESAppli_FlowLineSpec" << Message_EndLine;
+  S << "IGESAppli_FlowLineSpec\n";
   S << "Name and Modifiers : ";
   IGESData_DumpStrings(S ,level,1, ent->NbPropertyValues(),ent->Modifier);
-  S << Message_EndLine;
+  S << "\n";
 }
 
index c9b101fa37d11db6dc8a88ff95e401446a7db83b..c28a1031d7d9e9c19291fe28f4aa05cafa9d348c 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a FlowLineSpec. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESAppli_FlowLineSpec)& entfrom, const Handle(IGESAppli_FlowLineSpec)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESAppli_FlowLineSpec)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESAppli_FlowLineSpec)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 49d806ed0e2897e5ddaa6c5c5f72a1c3712e2baa..e83878ad0e7f59d92301a02b432b7a1128af1103 100644 (file)
@@ -120,13 +120,13 @@ void  IGESAppli_ToolLevelFunction::OwnCheck
 
 void  IGESAppli_ToolLevelFunction::OwnDump
   (const Handle(IGESAppli_LevelFunction)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
+   Standard_OStream& S, const Standard_Integer /* level */) const
 {
-  S << "IGESAppli_LevelFunction" << Message_EndLine;
+  S << "IGESAppli_LevelFunction\n";
 
-  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
-  S << "Function Description code : " << ent->FuncDescriptionCode() << Message_EndLine;
+  S << "Number of property values : " << ent->NbPropertyValues() << "\n";
+  S << "Function Description code : " << ent->FuncDescriptionCode() << "\n";
   S << "Function Description : ";
   IGESData_DumpString(S,ent->FuncDescription());
-  S << Message_EndLine;
+  S << "\n";
 }
index ec6c801a4c94012195eda5e62bcf831d7c7689ff..7dae8c96085805a82575b7528ddb4ecc578be4eb 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a LevelFunction. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESAppli_LevelFunction)& entfrom, const Handle(IGESAppli_LevelFunction)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESAppli_LevelFunction)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESAppli_LevelFunction)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 3371c90b8afeeb4a57045d627b8432f01dbc711e..6d8593341ac3a5176af6e249ee650b3a382b2a37 100644 (file)
@@ -158,30 +158,30 @@ void  IGESAppli_ToolLevelToPWBLayerMap::OwnCheck
 
 void  IGESAppli_ToolLevelToPWBLayerMap::OwnDump
   (const Handle(IGESAppli_LevelToPWBLayerMap)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
   Standard_Integer i, num;
-  S << "IGESAppli_LevelToPWBLayerMap" << Message_EndLine;
-  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
-  S << "Exchange File Level Number : " << Message_EndLine;
-  S << "Native Level Identification : " << Message_EndLine;
-  S << "Physical Layer Number : " << Message_EndLine;
+  S << "IGESAppli_LevelToPWBLayerMap\n";
+  S << "Number of property values : " << ent->NbPropertyValues() << "\n";
+  S << "Exchange File Level Number :\n";
+  S << "Native Level Identification :\n";
+  S << "Physical Layer Number :\n";
   S << "Exchange File Level Identification : ";
   IGESData_DumpStrings
     (S,-level,1, ent->NbLevelToLayerDefs(),ent->ExchangeFileLevelIdent);
-  S << Message_EndLine;
+  S << "\n";
   if (level > 4)
     for ( num = ent->NbLevelToLayerDefs(), i = 1; i <= num; i++ )
       {
-       S << "[" << i << "]: " << Message_EndLine;
+       S << "[" << i << "]:\n";
        S << "Exchange File Level Number : "
-         << ent->ExchangeFileLevelNumber(i) << Message_EndLine;
+         << ent->ExchangeFileLevelNumber(i) << "\n";
        S << "Native Level Identification : ";
        IGESData_DumpString(S,ent->NativeLevel(i));
-       S << Message_EndLine;
-       S << "Physical Layer Number : " << ent->PhysicalLayerNumber(i) << Message_EndLine;
+       S << "\n";
+       S << "Physical Layer Number : " << ent->PhysicalLayerNumber(i) << "\n";
        S << "Exchange File Level Identification : ";
        IGESData_DumpString(S,ent->ExchangeFileLevelIdent(i));
-       S << Message_EndLine;
+       S << "\n";
       }
 }
index 055b43868e75290a2a6f017a7c591461bc2c5cff..4b0993b044c16fef8ca713cc84a1c30007bdfb36 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a LevelToPWBLayerMap. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESAppli_LevelToPWBLayerMap)& entfrom, const Handle(IGESAppli_LevelToPWBLayerMap)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESAppli_LevelToPWBLayerMap)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESAppli_LevelToPWBLayerMap)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 89c0a901c3cf5e5a9e525d53926778753b916e6f..46ea98c93580f61d7858d6394c18ec2a2b336b8e 100644 (file)
@@ -29,7 +29,6 @@
 #include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
 IGESAppli_ToolLineWidening::IGESAppli_ToolLineWidening ()    {  }
@@ -136,36 +135,36 @@ void  IGESAppli_ToolLineWidening::OwnCheck
 
 void  IGESAppli_ToolLineWidening::OwnDump
   (const Handle(IGESAppli_LineWidening)& ent, const IGESData_IGESDumper& /*dumper*/,
-   const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+   Standard_OStream& S, const Standard_Integer /*level*/) const
 {
-  S << "IGESAppli_LineWidening" << Message_EndLine;
+  S << "IGESAppli_LineWidening\n";
 
-  S << "Number of property values : " << ent->NbPropertyValues()     << Message_EndLine;
-  S << "Width of metalization : " << ent->WidthOfMetalization()      << Message_EndLine;
+  S << "Number of property values : " << ent->NbPropertyValues() << "\n";
+  S << "Width of metalization : " << ent->WidthOfMetalization()  << "\n";
   S << "Cornering Code : " ;
-  if      (ent->CorneringCode() == 0) S << "0 (rounded)" << Message_EndLine;
-  else if (ent->CorneringCode() == 1) S << "1 (squared)" << Message_EndLine;
-  else                                S << "incorrect value" << Message_EndLine;
+  if      (ent->CorneringCode() == 0) S << "0 (rounded)\n";
+  else if (ent->CorneringCode() == 1) S << "1 (squared)\n";
+  else                                S << "incorrect value\n";
 
   S << "Extension Flag : " ;
-  if      (ent->ExtensionFlag() == 0) S << "0 (No Extension)" << Message_EndLine;
-  else if (ent->ExtensionFlag() == 1) S << "1 (One-half width extension)" << Message_EndLine;
-  else if (ent->ExtensionFlag() == 2) S << "2 (Extension set by ExtensionValue)" << Message_EndLine;
-  else    S << "incorrect value" << Message_EndLine;
+  if      (ent->ExtensionFlag() == 0) S << "0 (No Extension)\n";
+  else if (ent->ExtensionFlag() == 1) S << "1 (One-half width extension)\n";
+  else if (ent->ExtensionFlag() == 2) S << "2 (Extension set by ExtensionValue)\n";
+  else    S << "incorrect value\n";
 
   S << "Justification Flag : " ;
   if (ent->JustificationFlag() == 0)
-    S << "0 (Centre justified)" << Message_EndLine;
+    S << "0 (Centre justified)\n";
   else if (ent->JustificationFlag() == 1)
-    S << "1 (left justified)" << Message_EndLine;
+    S << "1 (left justified)\n";
   else if (ent->JustificationFlag() == 2)
-    S << "2 (right justified)" << Message_EndLine;
+    S << "2 (right justified)\n";
   else
-    S << "incorrect value" << Message_EndLine;
+    S << "incorrect value\n";
 
   if (ent->ExtensionFlag() == 2)
-    S << "Extension Value : " << ent->ExtensionValue()  << Message_EndLine;
+    S << "Extension Value : " << ent->ExtensionValue()  << std::endl;
   else
-    S << "No Extension Value (Extension Flag != 2)" << Message_EndLine;
+    S << "No Extension Value (Extension Flag != 2)" << std::endl;
 }
 
index a1d37b26d69e2a6f1431cd0694629d8c09636b60..d636db929c8241994bfadeed737d9bd2162b7cc9 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a LineWidening. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESAppli_LineWidening)& entfrom, const Handle(IGESAppli_LineWidening)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESAppli_LineWidening)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESAppli_LineWidening)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 1584b2adb739cd1d3ecd426985f64813de8433d6..890526555af4792e105f398fcb8ecd8b61dc18b8 100644 (file)
@@ -130,15 +130,15 @@ void  IGESAppli_ToolNodalConstraint::OwnCheck
 
 void  IGESAppli_ToolNodalConstraint::OwnDump
   (const Handle(IGESAppli_NodalConstraint)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
-  S << "IGESAppli_NodalConstraint" << Message_EndLine;
-  S << "Type of Constraint : " << ent->Type() << Message_EndLine;
+  S << "IGESAppli_NodalConstraint\n";
+  S << "Type of Constraint : " << ent->Type() << "\n";
   S << "Node : ";
   dumper.Dump(ent->NodeEntity(),S, sublevel);
-  S << Message_EndLine;
+  S << "\n";
   S << "Tabular Data Properties : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbCases(),ent->TabularData);
-  S << Message_EndLine;
+  S << std::endl;
 }
index 33cd7e58fe773be6d17860767f60b3121b3d9bf3..d863240d3e3777287e144b5421458ba4362f2bab 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a NodalConstraint. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESAppli_NodalConstraint)& entfrom, const Handle(IGESAppli_NodalConstraint)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESAppli_NodalConstraint)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESAppli_NodalConstraint)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index c8a72a9e62c14de6947e01238530bce1a2144dd5..0eaecb9e2046bf21d7593ace908433660fc4245a 100644 (file)
@@ -207,17 +207,17 @@ void  IGESAppli_ToolNodalDisplAndRot::OwnCheck
 
 void  IGESAppli_ToolNodalDisplAndRot::OwnDump
   (const Handle(IGESAppli_NodalDisplAndRot)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESAppli_NodalDisplAndRot" << Message_EndLine;
+  S << "IGESAppli_NodalDisplAndRot\n";
 
   Standard_Integer nbcases = ent->NbCases();
   Standard_Integer nbnodes = ent->NbNodes();
 
-  S << "No. of analysis cases : " << nbcases << Message_EndLine;
+  S << "No. of analysis cases : " << nbcases << "\n";
   S << "General Notes : ";
   IGESData_DumpEntities(S,dumper ,level,1, nbcases,ent->Note);
-  S << Message_EndLine;
+  S << "\n";
 
 //  gp_GTrsf loca;  // true location n.u.
   switch (level)
@@ -232,7 +232,7 @@ void  IGESAppli_ToolNodalDisplAndRot::OwnDump
 //      IGESData_DumpListXYZL(S,-level,1,nbcases,ent->TranslationParameter,loca);
       S << "Rotational Parameters : ";
 //      IGESData_DumpListXYZL(S,-level,1,nbcases,ent->RotationalParameter,loca);
-      S << "  TO BE DONE" << Message_EndLine;
+      S << "  TO BE DONE" << std::endl;
       break;
     case 5:
     case 6: {
@@ -240,39 +240,39 @@ void  IGESAppli_ToolNodalDisplAndRot::OwnDump
        {
          S << "[" << i << "]: ";
          dumper.Dump (ent->Note(i),S, 1);
-         S << Message_EndLine;
+         S << std::endl;
        }
-      S << "Nodes : " << Message_EndLine;
-      S << "Node Identifiers : "  << Message_EndLine;
-      S << "Translation Parameters : " << Message_EndLine;
+      S << "Nodes :\n";
+      S << "Node Identifiers :\n";
+      S << "Translation Parameters :\n";
       S << "Rotational Parameters : Count = " << nbcases;
 //     IGESData_DumpListXYZL(S,-level,1,nbcases,ent->RotationalParameter,loca);
-      S << Message_EndLine;
+      S << "\n";
       for (Standard_Integer j = 1; j <= nbnodes; j ++)
        {
          S << "[" << j << "]:  -  NodeIdentifier : "
-           << ent->NodeIdentifier(j) << "  -  Node :"<<Message_EndLine;
+           << ent->NodeIdentifier(j) << "  -  Node :\n";
          S << "Node : ";
          dumper.Dump (ent->Node(j),S, 1);
-         S << "  -  Parameters : " << Message_EndLine;
+         S << "  -  Parameters :\n";
          for (Standard_Integer k = 1; k <= nbcases; k ++)
            {
-             S << " [" << k << "]: "  << Message_EndLine;
+             S << " [" << k << "]:\n";
              S << "Translational Parameter : X="
                << ent->TranslationParameter(j,k).X() << ", Y="
                << ent->TranslationParameter(j,k).Y() << ", Z="
-               << ent->TranslationParameter(j,k).Z() << Message_EndLine;
+               << ent->TranslationParameter(j,k).Z() << "\n";
              S << "Rotational Parameter : X="
                << ent->RotationalParameter(j,k).X() << ", Y="
                << ent->RotationalParameter(j,k).Y() << ", Z="
                << ent->RotationalParameter(j,k).Z();
              if (k == nbcases) S << "] ";
-             S << Message_EndLine;
+             S << "\n";
            }
        }
     }
       break;
     default: break;
     }
-  S << Message_EndLine;
+  S << std::endl;
 }
index 19222da1dd008189880ba07266c2f554f3198744..e5caf713a2de517229482e03ae36b742b63595e7 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a NodalDisplAndRot. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESAppli_NodalDisplAndRot)& entfrom, const Handle(IGESAppli_NodalDisplAndRot)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESAppli_NodalDisplAndRot)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESAppli_NodalDisplAndRot)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index f09002ad1f01b2677b10e84c39d7821ca681a614..3c51f6012eaebb6bb84651a132e5ca243b733812 100644 (file)
@@ -212,24 +212,24 @@ void  IGESAppli_ToolNodalResults::OwnCheck
 
 void  IGESAppli_ToolNodalResults::OwnDump
   (const Handle(IGESAppli_NodalResults)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
 //  Standard_Integer nbnodes = ent->NbNodes();
 //  Standard_Integer nbdata  = ent->NbData ();
-  S << "IGESAppli_NodalResults" << Message_EndLine;
+  S << "IGESAppli_NodalResults\n";
 
   S << "General Note : ";
   dumper.Dump(ent->Note(),S, (level <= 4) ? 0 : 1);
-  S << Message_EndLine;
+  S << "\n";
   S << "Analysis subcase number : " << ent->SubCaseNumber() << "  ";
-  S << "Time used : " << ent->Time() << Message_EndLine;
+  S << "Time used : " << ent->Time() << "\n";
   S << "No. of nodes : " << ent->NbNodes() << "  ";
-  S << "No. of values for a node : " << ent->NbData() << Message_EndLine;
-  S << "Node Identifiers : " << Message_EndLine;
-  S << "Nodes : " << Message_EndLine;
+  S << "No. of values for a node : " << ent->NbData() << "\n";
+  S << "Node Identifiers :\n";
+  S << "Nodes :\n";
   S << "Data : ";  if (level < 6) S << " [ask level > 5]";
 //  IGESData_DumpRectVals(S ,-level,1, ent->NbData(),ent->Data);
-  S << Message_EndLine;
+  S << "\n";
   if (level > 4)
     {
       for (Standard_Integer i=1; i <= ent->NbNodes(); i++)
@@ -238,12 +238,12 @@ void  IGESAppli_ToolNodalResults::OwnDump
           S << "NodeIdentifier : " << ent->NodeIdentifier(i) << "  ";
           S << "Node : ";
           dumper.Dump (ent->Node(i),S, 1);
-          S << Message_EndLine;
+          S << "\n";
          if (level < 6) continue;
           S << "Data : [ ";
           for (Standard_Integer j = 1; j <= ent->NbData(); j ++)
               S << "  " << ent->Data(i,j);
-         S << " ]" << Message_EndLine;
+         S << " ]\n";
        }
     }
 }
index 5ad236c8c690c2cba1285d126917c22acd9066e9..791c4250330f89e3790ab0f38e6e48f113c13628 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a NodalResults. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESAppli_NodalResults)& entfrom, const Handle(IGESAppli_NodalResults)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESAppli_NodalResults)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESAppli_NodalResults)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index c4cd87db0aa12d7adc156e419e65ffc2e998004f..de6db18512873fec40f30885b4fc9dbd595aab94 100644 (file)
@@ -110,15 +110,15 @@ void  IGESAppli_ToolNode::OwnCheck
 
 void  IGESAppli_ToolNode::OwnDump
   (const Handle(IGESAppli_Node)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESAppli_Node" << Message_EndLine;
+  S << "IGESAppli_Node\n";
   S << " Nodal Coords : 1st " << ent->Coord().X()
-    << "  2nd : " << ent->Coord().Y() << "  3rd : " << ent->Coord().Z() <<Message_EndLine;
+    << "  2nd : " << ent->Coord().Y() << "  3rd : " << ent->Coord().Z() << "\n";
   S << "Nodal Displacement Coordinate System : ";
   if (!ent->System().IsNull())
     dumper.Dump(ent->System(),S, level);
   else
     S << "Global Cartesian Coordinate System (default)";
-  S << Message_EndLine;
+  S << std::endl;
 }
index e31b1b9feb98b86d62545696f0e351003a9b6f2d..1248c827ebed5f41b17f611b1e2204ba9c54a592 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Node. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESAppli_Node)& entfrom, const Handle(IGESAppli_Node)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESAppli_Node)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESAppli_Node)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 6379015c8964370d15c72f890d29f61863e8fe42..68425daff31d8a99cf590c880edb765dafba9407 100644 (file)
@@ -114,14 +114,14 @@ void  IGESAppli_ToolPWBArtworkStackup::OwnCheck
 
 void  IGESAppli_ToolPWBArtworkStackup::OwnDump
   (const Handle(IGESAppli_PWBArtworkStackup)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESAppli_PWBArtworkStackup" << Message_EndLine;
-  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
+  S << "IGESAppli_PWBArtworkStackup\n";
+  S << "Number of property values : " << ent->NbPropertyValues() << "\n";
   S << "Artwork Stackup Identification : ";
   IGESData_DumpString(S,ent->Identification());
-  S << Message_EndLine;
+  S << "\n";
   S << "Level Numbers : ";
-  IGESData_DumpVals(S ,level,1, ent->NbLevelNumbers(),ent->LevelNumber);
-  S << Message_EndLine;
+  IGESData_DumpVals(S,level,1, ent->NbLevelNumbers(),ent->LevelNumber);
+  S << std::endl;
 }
index ea1bcc7f9cc05e22178dba1b6225c8c2768c84e9..d0cb039ff3f5b57f51211dc71b08aa15d7d5f507 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a PWBArtworkStackup. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESAppli_PWBArtworkStackup)& entfrom, const Handle(IGESAppli_PWBArtworkStackup)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESAppli_PWBArtworkStackup)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESAppli_PWBArtworkStackup)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index a016694ebc81e52666142719441c3df85e65bfbf..cab5650619b370730665b593e47da1385d4d0580 100644 (file)
@@ -118,11 +118,11 @@ void  IGESAppli_ToolPWBDrilledHole::OwnCheck
 
 void  IGESAppli_ToolPWBDrilledHole::OwnDump
   (const Handle(IGESAppli_PWBDrilledHole)& ent, const IGESData_IGESDumper& /*dumper*/,
-   const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+   Standard_OStream& S, const Standard_Integer /*level*/) const
 {
-  S << "IGESAppli_PWBDrilledHole" << Message_EndLine;
-  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
-  S << "Drill Diameter Size  : " << ent->DrillDiameterSize() << Message_EndLine;
-  S << "Finish Diameter Size : " << ent->FinishDiameterSize() << Message_EndLine;
-  S << "Drilled Hole Function Code : " << ent->FunctionCode() << Message_EndLine;
+  S << "IGESAppli_PWBDrilledHole\n"
+    << "Number of property values : " << ent->NbPropertyValues() << "\n"
+    << "Drill Diameter Size  : " << ent->DrillDiameterSize() << "\n"
+    << "Finish Diameter Size : " << ent->FinishDiameterSize() << "\n"
+    << "Drilled Hole Function Code : " << ent->FunctionCode() << std::endl;
 }
index cfcb73218712d93c6657547f610bef8614efc723..b15c9cecf7054246bd42e14a422f34fff8b0ebdc 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a PWBDrilledHole. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESAppli_PWBDrilledHole)& entfrom, const Handle(IGESAppli_PWBDrilledHole)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESAppli_PWBDrilledHole)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESAppli_PWBDrilledHole)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 907aa5004adcc8b9194e3a9c047c8292197717dc..d63f1c8cd60a499038b00cea64608d1e14f360c5 100644 (file)
@@ -30,7 +30,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 
@@ -130,21 +129,21 @@ void  IGESAppli_ToolPartNumber::OwnCheck
 
 void  IGESAppli_ToolPartNumber::OwnDump
   (const Handle(IGESAppli_PartNumber)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
+   Standard_OStream& S, const Standard_Integer /* level */) const
 {
   //Standard_Integer sublevel = (level > 4) ? 1 : 0; //szv#4:S4163:12Mar99 unused
-  S << "IGESAppli_PartNumber" << Message_EndLine;
-  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
+  S << "IGESAppli_PartNumber\n";
+  S << "Number of property values : " << ent->NbPropertyValues() << "\n";
   S << "Generic  Number or Name : ";
   IGESData_DumpString(S,ent->GenericNumber());
-  S << Message_EndLine;
+  S << "\n";
   S << "Military Number or Name : ";
   IGESData_DumpString(S,ent->MilitaryNumber());
-  S << Message_EndLine;
+  S << "\n";
   S << "Vendor   Number or Name : ";
   IGESData_DumpString(S,ent->VendorNumber());
-  S << Message_EndLine;
+  S << "\n";
   S << "Internal Number or Name : ";
   IGESData_DumpString(S,ent->InternalNumber());
-  S << Message_EndLine;
+  S << std::endl;
 }
index 78668b8bdc9acaa61b444d5b78f08827875f2231..748f671e834b872d38e00b3ce0dd8d2b05e9b028 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a PartNumber. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESAppli_PartNumber)& entfrom, const Handle(IGESAppli_PartNumber)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESAppli_PartNumber)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESAppli_PartNumber)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index b506c087730318253d5870feb69d5dd5788360c9..4f33ce8601a3e1ca1c9f6055613e914e8aa38c62 100644 (file)
@@ -116,11 +116,11 @@ void  IGESAppli_ToolPinNumber::OwnCheck
 
 void  IGESAppli_ToolPinNumber::OwnDump
   (const Handle(IGESAppli_PinNumber)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
+   Standard_OStream& S, const Standard_Integer /* level */) const
 {
-  S << "IGESAppli_PinNumber" << Message_EndLine;
-  S << "Number of Property Values : " << ent->NbPropertyValues() << Message_EndLine;
+  S << "IGESAppli_PinNumber\n";
+  S << "Number of Property Values : " << ent->NbPropertyValues() << "\n";
   S << "PinNumber : ";
   IGESData_DumpString(S,ent->PinNumberVal());
-  S << Message_EndLine;
+  S << std::endl;
 }
index 1ef373f48149f36db49b3a147d49cf1236dbdc0e..f5476a7df64f98227e02bba837589ef7d6fd4e03 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a PinNumber. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESAppli_PinNumber)& entfrom, const Handle(IGESAppli_PinNumber)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESAppli_PinNumber)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESAppli_PinNumber)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index b0e40c7feec64efbd65c968c114bcf53662370fb..f4de6a4e0c149e8bdaf060aab8fd45f4e80d6283 100644 (file)
@@ -282,11 +282,11 @@ void  IGESAppli_ToolPipingFlow::OwnCheck
 
 void  IGESAppli_ToolPipingFlow::OwnDump
   (const Handle(IGESAppli_PipingFlow)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESAppli_PipingFlow" << Message_EndLine;
-  S << "Number of Context Flags : " << ent->NbContextFlags() << Message_EndLine;
-  S << "Type of Flow : " << ent->TypeOfFlow() << Message_EndLine;
+  S << "IGESAppli_PipingFlow\n";
+  S << "Number of Context Flags : " << ent->NbContextFlags() << "\n";
+  S << "Type of Flow : " << ent->TypeOfFlow() << "\n";
   S << "Flow Associativities : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbFlowAssociativities(),
                        ent->FlowAssociativity);
@@ -303,6 +303,6 @@ void  IGESAppli_ToolPipingFlow::OwnDump
   S << "Continuation Flow Associativities : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbContFlowAssociativities(),
                        ent->ContFlowAssociativity);
-  S << Message_EndLine;
+  S << std::endl;
 }
 
index 3e40b4119c5c626a9bb2861977ade7adb8873f86..7d0c1bf87c27778bab422aedbd20c14fe1c9c7eb 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a PipingFlow. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESAppli_PipingFlow)& entfrom, const Handle(IGESAppli_PipingFlow)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESAppli_PipingFlow)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESAppli_PipingFlow)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 939bdcf94f1e94dfa942670d792ed978b4eb3d25..887ba489f16d576a5e907ed83263010e9029c4dc 100644 (file)
@@ -121,11 +121,11 @@ void  IGESAppli_ToolReferenceDesignator::OwnCheck
 
 void  IGESAppli_ToolReferenceDesignator::OwnDump
   (const Handle(IGESAppli_ReferenceDesignator)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
+   Standard_OStream& S, const Standard_Integer /* level */) const
 {
-  S << "IGESAppli_ReferenceDesignator" << Message_EndLine;
-  S << "Number of Property Values : " << ent->NbPropertyValues() << Message_EndLine;
+  S << "IGESAppli_ReferenceDesignator\n";
+  S << "Number of Property Values : " << ent->NbPropertyValues() << "\n";
   S << "ReferenceDesignator : ";
   IGESData_DumpString(S,ent->RefDesignatorText());
-  S << Message_EndLine;
+  S << std::endl;
 }
index c47b8f3b8414950b39af408b882e6f70cc61fb3e..1e8b5767f8eed36610fd2c5f0dcf7b0d43418452 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a ReferenceDesignator. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESAppli_ReferenceDesignator)& entfrom, const Handle(IGESAppli_ReferenceDesignator)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESAppli_ReferenceDesignator)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESAppli_ReferenceDesignator)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index e6197b87e1af310c114ed412158af04e8a186fa8..549544b6ac49442e68d1f76c5a9404bd552f3ef9 100644 (file)
@@ -126,14 +126,14 @@ void  IGESAppli_ToolRegionRestriction::OwnCheck
 
 void  IGESAppli_ToolRegionRestriction::OwnDump
   (const Handle(IGESAppli_RegionRestriction)& ent, const IGESData_IGESDumper& /*dumper*/,
-   const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+   Standard_OStream& S, const Standard_Integer /*level*/) const
 {
-  S << "IGESAppli_RegionRestriction" << Message_EndLine;
-  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
-  S << "Electrical vias restriction       : "
-    << ent->ElectricalViasRestriction() << Message_EndLine;
-  S << "Electrical components restriction : "
-    << ent->ElectricalComponentRestriction() << Message_EndLine;
-  S << "Electrical circuitary restriction : "
-    << ent->ElectricalCktRestriction()  << Message_EndLine;
+  S << "IGESAppli_RegionRestriction\n"
+    << "Number of property values : " << ent->NbPropertyValues() << "\n"
+    << "Electrical vias restriction       : "
+    << ent->ElectricalViasRestriction() << "\n"
+    << "Electrical components restriction : "
+    << ent->ElectricalComponentRestriction() << "\n"
+    << "Electrical circuitary restriction : "
+    << ent->ElectricalCktRestriction()  << std::endl;
 }
index 0d12ed28f19e95dd0dbd32fd5ddec4ab3974d554..cc949d47bfec368b7cc52282d7be23b18a9a949c 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a RegionRestriction. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESAppli_RegionRestriction)& entfrom, const Handle(IGESAppli_RegionRestriction)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESAppli_RegionRestriction)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESAppli_RegionRestriction)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 39e3d62d7d11e8345ba8eb411559d8f54f370a3d..92c9d16c285097cca308eb3d9ab1cf0662d8ce86 100644 (file)
@@ -61,7 +61,7 @@ IGESBasic_SpecificModule::IGESBasic_SpecificModule()    {  }
 
     void  IGESBasic_SpecificModule::OwnDump
   (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
-   const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S,
+   const IGESData_IGESDumper& dumper, Standard_OStream& S,
    const Standard_Integer own) const 
 {
   switch (CN) {
index 6e464c251bf0da742934e5c5427ef3c26ae0ccb4..cef0f17d999bb0dbade085d3028d004140f6caf1 100644 (file)
@@ -25,8 +25,6 @@
 #include <Standard_Boolean.hxx>
 class IGESData_IGESEntity;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 class IGESBasic_SpecificModule;
 DEFINE_STANDARD_HANDLE(IGESBasic_SpecificModule, IGESData_SpecificModule)
@@ -43,7 +41,7 @@ public:
   Standard_EXPORT IGESBasic_SpecificModule();
   
   //! Specific Dump (own parameters) for IGESBasic
-  Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const Standard_OVERRIDE;
+  Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const Standard_OVERRIDE;
   
   //! Performs non-ambiguous Corrections on Entities which support
   //! them (AssocGroupType,Hierarchy,Name,SingleParent)
index a180f8d73813ee2fd819bc5eab60e1dab5d716d3..e4675e8fc4185579461181823ae9c2f4cff56742 100644 (file)
@@ -112,12 +112,12 @@ void  IGESBasic_ToolAssocGroupType::OwnCheck
 
 void  IGESBasic_ToolAssocGroupType::OwnDump
   (const Handle(IGESBasic_AssocGroupType)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
+   Standard_OStream& S, const Standard_Integer /* level */) const
 {
-  S << "IGESBasic_AssocGroupType" << Message_EndLine;
-  S << "Number of data fields : " << ent->NbData() << Message_EndLine;
-  S << "Type of attached associativity : " << ent->AssocType() << Message_EndLine;
-  S << "Name of attached associativity : ";
+  S << "IGESBasic_AssocGroupType\n"
+    << "Number of data fields : " << ent->NbData() << "\n"
+    << "Type of attached associativity : " << ent->AssocType() << "\n"
+    << "Name of attached associativity : ";
   IGESData_DumpString(S,ent->Name());
-  S << Message_EndLine;
+  S << std::endl;
 }
index 49072f61c1e2b2dc56152aaa901dd268517b4a74..0e94b2d3c1cc0bca81af9c4a1a9695465ca73795 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a AssocGroupType. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESBasic_AssocGroupType)& entfrom, const Handle(IGESBasic_AssocGroupType)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESBasic_AssocGroupType)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESBasic_AssocGroupType)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 9cae4ea9c26ee6abdc70628bee2609788f6b9a96..a2d1ab6da9188ac66babd78e6f01076b8091f713 100644 (file)
@@ -92,10 +92,10 @@ void  IGESBasic_ToolExternalRefFile::OwnCheck
 
 void  IGESBasic_ToolExternalRefFile::OwnDump
   (const Handle(IGESBasic_ExternalRefFile)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
+   Standard_OStream& S, const Standard_Integer /* level */) const
 {
-  S << "IGESBasic_ExternalRefFile" << Message_EndLine;
-  S << "External Reference File Identifier : ";
+  S << "IGESBasic_ExternalRefFile\n"
+    << "External Reference File Identifier : ";
   IGESData_DumpString(S,ent->FileId());
-  S << Message_EndLine;
+  S << std::endl;
 }
index 1cfd0e815b4c9d1194e9ecda04ac689a81149dbb..c8f39e36681a946bc44dc2f9c994f3e0d7804ae4 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a ExternalRefFile. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESBasic_ExternalRefFile)& entfrom, const Handle(IGESBasic_ExternalRefFile)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefFile)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefFile)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 8ea02731e5dea4f6a93b15e5f62e349d050c9652..c35321386ee8169ee95a2be86eb08c1b67a94fcb 100644 (file)
@@ -132,23 +132,23 @@ void  IGESBasic_ToolExternalRefFileIndex::OwnCheck
 
 void  IGESBasic_ToolExternalRefFileIndex::OwnDump
   (const Handle(IGESBasic_ExternalRefFileIndex)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
   Standard_Integer i, num;
-  S << "IGESBasic_ExternalRefFileIndex" << Message_EndLine;
-  S << "External Reference Names : " << Message_EndLine;
-  S << "Internal Entities : ";
+  S << "IGESBasic_ExternalRefFileIndex\n"
+    << "External Reference Names :\n"
+    << "Internal Entities : ";
   IGESData_DumpEntities(S,dumper,-level,1, ent->NbEntries(),ent->Entity);
-  S << Message_EndLine;
+  S << "\n";
   if (level > 4)
     for ( num = ent->NbEntries(), i = 1; i <= num; i++ )
       {
-       S << "[" << i << "]: ";
-       S << "External Reference Name : ";
+       S << "[" << i << "]: "
+         << "External Reference Name : ";
        IGESData_DumpString(S,ent->Name(i));
        S << "  Internal Entity : ";
        dumper.Dump (ent->Entity(i),S, 1);
-       S << Message_EndLine;
+       S << "\n";
       }
-  S << Message_EndLine;
+  S << std::endl;
 }
index a35110182dd943542e22f524552100d3627ed06a..637b90448b31c0908c72c650fe6be00a6198d885 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a ExternalRefFileIndex. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESBasic_ExternalRefFileIndex)& entfrom, const Handle(IGESBasic_ExternalRefFileIndex)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefFileIndex)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefFileIndex)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 2746701b2ec05d6657e347796823587630fd943e..2c89dbe46e588c322ca48d0dbabe39df0aee919e 100644 (file)
@@ -100,13 +100,13 @@ void  IGESBasic_ToolExternalRefFileName::OwnCheck
 
 void  IGESBasic_ToolExternalRefFileName::OwnDump
   (const Handle(IGESBasic_ExternalRefFileName)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
+   Standard_OStream& S, const Standard_Integer /* level */) const
 {
-  S << "IGESBasic_ExternalRefFileName" << Message_EndLine;
-  S << "External Reference File Identifier : ";
+  S << "IGESBasic_ExternalRefFileName\n"
+    << "External Reference File Identifier : ";
   IGESData_DumpString(S,ent->FileId());
-  S << Message_EndLine;
-  S << "External Reference Symbolic Name : ";
+  S << "\n"
+    << "External Reference Symbolic Name : ";
   IGESData_DumpString(S,ent->ReferenceName());
-  S << Message_EndLine;
+  S << std::endl;
 }
index d64c188cc0ee818a0693712e5bb65a0a2287ca7f..e74c8f38c48928c0ab314f03f88ed3e49b3b6f42 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a ExternalRefFileName. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESBasic_ExternalRefFileName)& entfrom, const Handle(IGESBasic_ExternalRefFileName)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefFileName)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefFileName)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 1e6ab195adb25a918dbad82193ba10a722a3ab30..119516de1f04aaec6a7ed615cde35c7afcbfd440 100644 (file)
@@ -97,13 +97,13 @@ void  IGESBasic_ToolExternalRefLibName::OwnCheck
 
 void  IGESBasic_ToolExternalRefLibName::OwnDump
   (const Handle(IGESBasic_ExternalRefLibName)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S,const Standard_Integer /* level */) const
+   Standard_OStream& S,const Standard_Integer /* level */) const
 {
-  S << "IGESBasic_ExternalRefLibName" << Message_EndLine;
-  S << "Name of Library : ";
+  S << "IGESBasic_ExternalRefLibName\n"
+    << "Name of Library : ";
   IGESData_DumpString(S,ent->LibraryName());
-  S << Message_EndLine;
-  S << "External Reference Symbolic Name : ";
+  S << "\n"
+    << "External Reference Symbolic Name : ";
   IGESData_DumpString(S,ent->ReferenceName());
-  S << Message_EndLine;
+  S << std::endl;
 }
index 59048e373165753062bbb7410863ea37dbd82cb0..cf6a1007ec51b4a9c4cfa39e098eb9fb87b90982 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a ExternalRefLibName. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESBasic_ExternalRefLibName)& entfrom, const Handle(IGESBasic_ExternalRefLibName)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefLibName)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefLibName)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 8979e91d55d7fc5d6b744507be1734c85c143918..ab4daea9d3ed1403dfca8e8cf56e74c205d51d55 100644 (file)
@@ -92,10 +92,10 @@ void  IGESBasic_ToolExternalRefName::OwnCheck
 
 void  IGESBasic_ToolExternalRefName::OwnDump
   (const Handle(IGESBasic_ExternalRefName)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
+   Standard_OStream& S, const Standard_Integer /* level */) const
 {
-  S << "IGESBasic_ExternalRefName" << Message_EndLine;
-  S << "External Reference Symbolic Name : ";
+  S << "IGESBasic_ExternalRefName\n"
+    << "External Reference Symbolic Name : ";
   IGESData_DumpString(S,ent->ReferenceName());
-  S << Message_EndLine;
+  S << std::endl;
 }
index 23aba4f052e9eb5381c007825709953b9b1678ba..3afda60316e821d094434f3565d52a5ff6fa7871 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a ExternalRefName. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESBasic_ExternalRefName)& entfrom, const Handle(IGESBasic_ExternalRefName)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefName)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalRefName)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index cc3e0ceb64942b8e84a2603fad9126259d1c6583..bdb3af00aa44a59d4b1860d812b99de3c0760010 100644 (file)
@@ -105,10 +105,10 @@ void  IGESBasic_ToolExternalReferenceFile::OwnCheck
 
 void  IGESBasic_ToolExternalReferenceFile::OwnDump
   (const Handle(IGESBasic_ExternalReferenceFile)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESBasic_ExternalReferenceFile" << Message_EndLine;
-  S << "External Reference Names : ";
-  IGESData_DumpStrings(S ,level,1, ent->NbListEntries(),ent->Name);
-  S << Message_EndLine;
+  S << "IGESBasic_ExternalReferenceFile\n"
+    << "External Reference Names : ";
+  IGESData_DumpStrings(S,level,1, ent->NbListEntries(),ent->Name);
+  S << std::endl;
 }
index 7e6b423ab8ef9df1dbafebb3b8a51c6310981d1e..a9fae5b3c56686f0751020f429abd976724bf80c 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a ExternalReferenceFile. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESBasic_ExternalReferenceFile)& entfrom, const Handle(IGESBasic_ExternalReferenceFile)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalReferenceFile)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESBasic_ExternalReferenceFile)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 8b6aacf60ad29a9ac6ace64de362ff90138e8714..7fb5a56d6501f036f13da34fe545ab89210ae07c 100644 (file)
@@ -32,7 +32,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 
@@ -163,11 +162,11 @@ void IGESBasic_ToolGroup::OwnCheck(const Handle(IGESBasic_Group)& ent,
 
 void IGESBasic_ToolGroup::OwnDump
   (const Handle(IGESBasic_Group)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESBasic_Group" << Message_EndLine;
-  S << "Entries in the Group : ";
+  S << "IGESBasic_Group\n"
+    << "Entries in the Group : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
-  S << Message_EndLine;
+  S << std::endl;
 }
 
index be8b3644076f17a7a2d02409ea264eb3efdb056c..9e0654e8d316a6b8937413e34961ce96e05e6ed6 100644 (file)
@@ -74,7 +74,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESBasic_Group)& entfrom, const Handle(IGESBasic_Group)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESBasic_Group)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESBasic_Group)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index c1c32a5d78b36638ef8b092c47f33c9757dc2dd6..1cf783816144255963e7dacdb3a567e00097f269 100644 (file)
@@ -160,11 +160,11 @@ void  IGESBasic_ToolGroupWithoutBackP::OwnCheck
 
 void  IGESBasic_ToolGroupWithoutBackP::OwnDump
 (const Handle(IGESBasic_GroupWithoutBackP)& ent, const IGESData_IGESDumper& dumper,
const Handle(Message_Messenger)& S, const Standard_Integer level) const
Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESBasic_GroupWithoutBackP" << Message_EndLine;
-  S << "Entries in the Group : ";
+  S << "IGESBasic_GroupWithoutBackP\n"
+    << "Entries in the Group : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
-  S << Message_EndLine;
+  S << std::endl;
 }
 
index ca8dd4a1e47ad0a56760aa9fa4d0b033076caf6b..bb60ec712d228cbbd0864519a2470f7f2b345432 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a GroupWithoutBackP. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESBasic_GroupWithoutBackP)& entfrom, const Handle(IGESBasic_GroupWithoutBackP)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESBasic_GroupWithoutBackP)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESBasic_GroupWithoutBackP)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 680ee578467df8f37645c707b137651304ee5a18..41ab2f7cc24601e360ccec20237ffc122c6b6512 100644 (file)
@@ -130,15 +130,14 @@ void  IGESBasic_ToolHierarchy::OwnCheck
 
 void  IGESBasic_ToolHierarchy::OwnDump
   (const Handle(IGESBasic_Hierarchy)& ent, const IGESData_IGESDumper& /*dumper*/,
-   const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+   Standard_OStream& S, const Standard_Integer /*level*/) const
 {
-  S << "IGESBasic_Hierarchy" << Message_EndLine;
-
-  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
-  S << "Line Font    : " << ent->NewLineFont() << Message_EndLine;
-  S << "View Number  : " << ent->NewView() << Message_EndLine;
-  S << "Entity level : " << ent->NewEntityLevel() << Message_EndLine;
-  S << "Blank status : " << ent->NewBlankStatus() << Message_EndLine;
-  S << "Line weight  : " << ent->NewLineWeight() << Message_EndLine;
-  S << "Color number : " << ent->NewColorNum() << Message_EndLine;
+  S << "IGESBasic_Hierarchy\n"
+    << "Number of property values : " << ent->NbPropertyValues() << "\n"
+    << "Line Font    : " << ent->NewLineFont() << "\n"
+    << "View Number  : " << ent->NewView() << "\n"
+    << "Entity level : " << ent->NewEntityLevel() << "\n"
+    << "Blank status : " << ent->NewBlankStatus() << "\n"
+    << "Line weight  : " << ent->NewLineWeight() << "\n"
+    << "Color number : " << ent->NewColorNum() << std::endl;
 }
index 560c9c600b12178f84bc89354a829b8e60567e20..bb45ef64398e55036293361188334a8a360c3d6f 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Hierarchy. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESBasic_Hierarchy)& entfrom, const Handle(IGESBasic_Hierarchy)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESBasic_Hierarchy)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESBasic_Hierarchy)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 46758bef4283244d82bdab1500a973e084d39986..5d30351eb50f5b7e23a81c55243db2d05bc406f4 100644 (file)
@@ -105,12 +105,11 @@ void  IGESBasic_ToolName::OwnCheck
 
 void  IGESBasic_ToolName::OwnDump
   (const Handle(IGESBasic_Name)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
+   Standard_OStream& S, const Standard_Integer /* level */) const
 {
-  S << "IGESBasic_Name" << Message_EndLine;
-
-  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
-  S << "Name : ";
+  S << "IGESBasic_Name\n"
+    << "Number of property values : " << ent->NbPropertyValues() << "\n"
+    << "Name : ";
   IGESData_DumpString(S,ent->Value());
-  S << Message_EndLine;
+  S << std::endl;
 }
index 18021c2e3cb4e7266f217c1045ad7d3187d0a589..75e22583a04055e1578edfcf4e5f9dd1d701bd40 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Name. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESBasic_Name)& entfrom, const Handle(IGESBasic_Name)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESBasic_Name)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESBasic_Name)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 9e13d9b176298adf3c76c58cb1a15e18a248c1d0..75d29fd55a091398da7d0bb2b442e9590a09473b 100644 (file)
@@ -151,12 +151,11 @@ void  IGESBasic_ToolOrderedGroup::OwnCheck
 
 void  IGESBasic_ToolOrderedGroup::OwnDump
   (const Handle(IGESBasic_OrderedGroup)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESBasic_OrderedGroup" << Message_EndLine;
-
-  S << "Entries in the Group : ";
+  S << "IGESBasic_OrderedGroup\n"
+    << "Entries in the Group : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
-  S << Message_EndLine;
+  S << std::endl;
 }
 
index 1a3a7bc5c07911e5fcf5d4ca7bd91776df0aaa89..1e688686c21dd3165be6c1618a80441b266ae1d8 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a OrderedGroup. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESBasic_OrderedGroup)& entfrom, const Handle(IGESBasic_OrderedGroup)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESBasic_OrderedGroup)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESBasic_OrderedGroup)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index c0175740bafff82cd9406ec92bae6c43435c2e84..516bd5864823a90cc113d30bd0d3c4752ba5f806 100644 (file)
@@ -152,12 +152,11 @@ void IGESBasic_ToolOrderedGroupWithoutBackP::OwnCheck
 
 void  IGESBasic_ToolOrderedGroupWithoutBackP::OwnDump
   (const Handle(IGESBasic_OrderedGroupWithoutBackP)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESBasic_OrderedGroupWithoutBackP" << Message_EndLine;
-
-  S << "Entries in the Group : ";
+  S << "IGESBasic_OrderedGroupWithoutBackP\n"
+    << "Entries in the Group : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
-  S << Message_EndLine;
+  S << std::endl;
 }
 
index ccc9c4d4a0d1dbe349a1ff7b5132fe32b9c636ce..b5e4c94d7b3ae3e7ba758e75ad3289ee316c3659 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a OrderedGroupWithoutBackP. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESBasic_OrderedGroupWithoutBackP)& entfrom, const Handle(IGESBasic_OrderedGroupWithoutBackP)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESBasic_OrderedGroupWithoutBackP)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESBasic_OrderedGroupWithoutBackP)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 76c43e7b09e03a0ab0883b89519fb5aec93070f6..4ea052a72a1accf0084153ff4e922cb3825e60a6 100644 (file)
@@ -176,15 +176,14 @@ void  IGESBasic_ToolSingleParent::OwnCheck
 
 void  IGESBasic_ToolSingleParent::OwnDump
   (const Handle(IGESBasic_SingleParent)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESBasic_SingleParent" << Message_EndLine;
-
-  S << "Number of ParentEntities : " << ent->NbParentEntities() << Message_EndLine;
-  S << "ParentEntity : ";
+  S << "IGESBasic_SingleParent\n"
+    << "Number of ParentEntities : " << ent->NbParentEntities() << "\n"
+    << "ParentEntity : ";
   dumper.Dump(ent->SingleParent(),S,(level <= 4) ? 0 : 1);
-  S << Message_EndLine;
-  S << "Children : ";
+  S << "\n"
+    << "Children : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbChildren(),ent->Child);
-  S << Message_EndLine;
+  S << std::endl;
 }
index 852dfb4306d18dd48a0e432789a65df568c64549..7c41f36de1335b963966be86a00f8044d5c88bf0 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a SingleParent. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESBasic_SingleParent)& entfrom, const Handle(IGESBasic_SingleParent)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESBasic_SingleParent)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESBasic_SingleParent)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 9aa9fc8da4ab169be440a0e359a426beb68991fc..5b20a230b8fde1e32c5b3a965da3e63d76954f53 100644 (file)
@@ -159,15 +159,14 @@ void  IGESBasic_ToolSingularSubfigure::OwnCheck
 
 void  IGESBasic_ToolSingularSubfigure::OwnDump
   (const Handle(IGESBasic_SingularSubfigure)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESBasic_SingularSubfigure" << Message_EndLine;
-
-  S << "Subfigure Definition Entity : " ;
+  S << "IGESBasic_SingularSubfigure\n"
+    << "Subfigure Definition Entity : " ;
   dumper.Dump(ent->Subfigure(),S,(level <= 4) ? 0 : 1);
-  S << Message_EndLine;
-  S << " Translation Data : ";
+  S << "\n"
+    << " Translation Data : ";
   IGESData_DumpXYZL(S,level, ent->Translation(), ent->Location());
-  S << "  Scale Factors : " << ent->ScaleFactor() << Message_EndLine;
-  S << Message_EndLine;
+  S << "  Scale Factors : " << ent->ScaleFactor() << "\n"
+    << std::endl;
 }
index 4f2e5962a3b77f0781c106be1c6df166990ea049..6c4c764e56d4efd2fa5413398c5a355ad1bd5a44 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a SingularSubfigure. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESBasic_SingularSubfigure)& entfrom, const Handle(IGESBasic_SingularSubfigure)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESBasic_SingularSubfigure)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESBasic_SingularSubfigure)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index f09f0f02871f279d69c8d8ee00b0595739e21b7e..696c7d7d509eed4d51e8863afc938566b0437058 100644 (file)
@@ -32,7 +32,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
@@ -142,15 +141,14 @@ void  IGESBasic_ToolSubfigureDef::OwnCheck
 
 void  IGESBasic_ToolSubfigureDef::OwnDump
   (const Handle(IGESBasic_SubfigureDef)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESBasic_SubfigureDef" << Message_EndLine;
-
-  S << "Depth of the subfigure : " << ent->Depth() << Message_EndLine;
-  S << "Name of subfigure : ";
+  S << "IGESBasic_SubfigureDef\n"
+    << "Depth of the subfigure : " << ent->Depth() << "\n"
+    << "Name of subfigure : ";
   IGESData_DumpString(S,ent->Name());
-  S << Message_EndLine;
-  S << "The Associated Entities : " ;
+  S << "\n"
+    << "The Associated Entities : ";
   IGESData_DumpEntities(S,dumper,level,1,ent->NbEntities(),ent->AssociatedEntity);
-  S << Message_EndLine;
+  S << std::endl;
 }
index b1356b21792c1cd46dbb225f305f6aa8e950b13b..9cf6b87818db054f22a3b122a54573166d8eb6c2 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a SubfigureDef. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESBasic_SubfigureDef)& entfrom, const Handle(IGESBasic_SubfigureDef)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESBasic_SubfigureDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESBasic_SubfigureDef)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 1c0c81277e09252b72dbeb41634fe619d0aa0e5b..8d4142b79d704088b77177e081a7c0684deec93b 100644 (file)
@@ -247,7 +247,8 @@ void  IGESControl_Reader::PrintTransferInfo
       NCollection_DataMap<TCollection_AsciiString, Handle(TColStd_HSequenceOfInteger)>::Iterator aMapListIter(aMapList);
       for(; aMapCountIter.More() && aMapListIter.More();
             aMapCountIter.Next(), aMapListIter.Next()) {
-        TF << aMapCountIter.Value() << aMapCountIter.Key() << Message_EndLine;
+        Message_Messenger::StreamBuffer aSender = TF->SendInfo();
+        aSender << aMapCountIter.Value() << aMapCountIter.Key() << std::endl;
         if (mode == IFSelect_ListByItem) {
           Handle(TColStd_HSequenceOfInteger) entityList = aMapListIter.Value();
           Standard_Integer length = entityList->Length();
@@ -255,19 +256,19 @@ void  IGESControl_Reader::PrintTransferInfo
           TF->Send(msg3035, Message_Info);
           char line[80];
           sprintf(line, "\t\t\t");
-          TF << line;
+          aSender << line;
           Standard_Integer nbInLine = 0;
           for (Standard_Integer i = 1; i <= length; i++) {
             // IDT_Out << (entityList->Value(i)) << " ";
             sprintf(line, "\t %d", entityList->Value(i));
-            TF << line;
+            aSender << line;
             if (++nbInLine == 6) {
               nbInLine = 0;
               sprintf(line, "\n\t\t\t");
-              TF << line;
+              aSender << line;
             }
           }
-          TF << Message_EndLine;
+          aSender << std::endl;
         }
       }
       break;
@@ -281,7 +282,7 @@ void  IGESControl_Reader::PrintTransferInfo
       NCollection_DataMap<TCollection_AsciiString, Standard_Integer>::Iterator aMapIter(aMapCountResult);
       for (; aMapIter.More(); aMapIter.Next())
       {
-        TF << aMapIter.Key() << aMapIter.Value() << Message_EndLine;
+        TF->SendInfo() << aMapIter.Key() << aMapIter.Value() << std::endl;
       }
       break;
     }
@@ -311,7 +312,7 @@ void  IGESControl_Reader::PrintTransferInfo
       for(; aMapCountIter.More(); aMapCountIter.Next()) {
         char mess[80];
         sprintf(mess, aMapCountIter.Key().ToCString(), aMapCountIter.Value());
-        TF << mess << Message_EndLine; //dicoCountIter.Value() << dicoCountIter.Name() << std::endl;
+        TF->SendInfo() << mess << std::endl; //dicoCountIter.Value() << dicoCountIter.Name() << std::endl;
       }
       break;
     }
index cc0d0adcb9f4dbbb666985f77eeb99d8a532917b..93d97d22b631814580c2fdd0ebebf34c1c80ce74 100644 (file)
@@ -32,29 +32,29 @@ IGESData_DefaultSpecific::IGESData_DefaultSpecific ()
 
     void  IGESData_DefaultSpecific::OwnDump
   (const Standard_Integer /*CN*/, const Handle(IGESData_IGESEntity)& ent,
-   const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S,
+   const IGESData_IGESDumper& dumper, Standard_OStream& S,
    const Standard_Integer /*own*/) const 
 {
   DeclareAndCast(IGESData_UndefinedEntity,lent,ent);
   if (lent.IsNull()) return;
 
   Standard_Integer dstat = lent->DirStatus();
-  if (dstat != 0) S
-    << " --  Directory Entry Error Status = " << dstat << "  --" << Message_EndLine;
+  if (dstat != 0) 
+    S << " --  Directory Entry Error Status = " << dstat << "  --\n";
   Handle(Interface_UndefinedContent) cont = lent->UndefinedContent();
   Standard_Integer nb = cont->NbParams();
   S << " UNDEFINED ENTITY ...\n"<<nb
     <<" Parameters (WARNING : Odd Integer Values Interpreted as Entities)\n";
   for (Standard_Integer i = 1; i <= nb; i ++) {
     Interface_ParamType ptyp = cont->ParamType(i);
-    if (ptyp == Interface_ParamVoid) S<<"      ["<<i<<":Void]";
+    if (ptyp == Interface_ParamVoid) S <<"     ["<<i<<":Void]";
     else if (cont->IsParamEntity(i)) {
       DeclareAndCast(IGESData_IGESEntity,anent,cont->ParamEntity(i));
-      S<<"     ["<<i<<":IGES]=";  
+      S <<"    ["<<i<<":IGES]=";  
       dumper.PrintDNum(anent,S);
     }
-    else {  S<<"       ["<<i<<"]=" << cont->ParamValue(i);  }
-    if ( i == (i%5)*5) S << Message_EndLine;
+    else {  S <<"      ["<<i<<"]=" << cont->ParamValue(i)->String();  }
+    if ( i == (i%5)*5) S << "\n";
   }
-  S << Message_EndLine;
+  S << std::endl;
 }
index 13556af0efeda28a6e8aacfe5345734b0c70762e..a96846b0abbb51961938cf630a5bcb74307d8e2c 100644 (file)
@@ -24,8 +24,6 @@
 #include <Standard_Integer.hxx>
 class IGESData_IGESEntity;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 class IGESData_DefaultSpecific;
 DEFINE_STANDARD_HANDLE(IGESData_DefaultSpecific, IGESData_SpecificModule)
@@ -43,7 +41,7 @@ public:
   //! Specific Dump for UndefinedEntity : it concerns only
   //! own parameters, the general data (Directory Part, Lists) are
   //! taken into account by the IGESDumper
-  Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const Standard_OVERRIDE;
+  Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const Standard_OVERRIDE;
 
 
 
index f94e5266ada99f63a5d94f9d77840f75d2bcdd59..b6d48716f6bf2648bdaed203e64cfb04e84ae706 100644 (file)
@@ -96,7 +96,7 @@
 
 #define IGESData_DumpString(S,str) \
 if (str.IsNull()) S << "(undefined)";\
-  else {  S << '"' << str << '"';  }
+  else {  S << '"' << str->String() << '"';  }
 
 #define IGESData_DumpXY(S,XYval) \
  S << " (" << XYval.X() << "," << XYval.Y() << ")"
@@ -211,8 +211,8 @@ if (str.IsNull()) S << "(undefined)";\
     S << " :";\
     for (Standard_Integer iopa = lo; iopa <= up; iopa ++) IGESData_DumpXY(S,item(iopa));\
     if (Trsf.Form() != gp_Identity) {\
-      S<< "\n Transformed :";\
-      if (Level == 5) S<<" [ask level > 5]";\
+      S << "\n Transformed :";\
+      if (Level == 5) S <<" [ask level > 5]";\
       else\
        for (Standard_Integer jopa = lo; jopa <= up; jopa ++)\
          IGESData_DumpXYT(S,item(jopa),Trsf);\
@@ -231,8 +231,8 @@ if (str.IsNull()) S << "(undefined)";\
     S << " :";\
     for (Standard_Integer iopa = lo; iopa <= up; iopa ++) IGESData_DumpXY(S,item(iopa));\
     if (Trsf.Form() != gp_Identity) {\
-      S<< "\n Transformed :";\
-      if (Level == 5) S<<" [ask level > 5]";\
+      S << "\n Transformed :";\
+      if (Level == 5) S <<" [ask level > 5]";\
       else\
        for (Standard_Integer jopa = lo; jopa <= up; jopa ++)\
          IGESData_DumpXYTZ(S,item(jopa),Trsf,Z);\
@@ -252,8 +252,8 @@ if (str.IsNull()) S << "(undefined)";\
     S << " :";\
     for (Standard_Integer iopa = lo; iopa <= up; iopa ++) IGESData_DumpXYZ(S,item(iopa));\
     if (Trsf.Form() != gp_Identity) {\
-      S<< "\n Transformed :";\
-      if (Level == 5) S<<" [ask level > 5]";\
+      S << "\n Transformed :";\
+      if (Level == 5) S <<" [ask level > 5]";\
       else\
        for (Standard_Integer jopa = lo; jopa <= up; jopa ++)\
          IGESData_DumpXYZT(S,item(jopa),Trsf);\
@@ -271,7 +271,7 @@ if (str.IsNull()) S << "(undefined)";\
   else if (Level > 0) {\
     S << " :";\
     for (Standard_Integer iopa = lo; iopa <= up; iopa ++)\
-      {  S << "\n["<<Interface_MSG::Blanks(iopa,3)<<iopa<<"]:\"" << item(iopa) << '"';  }\
+      {  S << "\n["<<Interface_MSG::Blanks(iopa,3)<<iopa<<"]:\"" << item(iopa)->String() << '"';  }\
     S << "\n";\
   }\
 }
index 98cbe33c45bea6882f5062b9029cff88c6614ca8..ee2efa3166a352804ddc6c1935b82c6b71fa3655 100644 (file)
@@ -28,7 +28,6 @@
 #include <Interface_InterfaceError.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_MSG.hxx>
-#include <Message_Messenger.hxx>
 #include <TCollection_HAsciiString.hxx>
 
 IGESData_IGESDumper::IGESData_IGESDumper
@@ -39,29 +38,29 @@ IGESData_IGESDumper::IGESData_IGESDumper
 
 
     void  IGESData_IGESDumper::PrintDNum
-  (const Handle(IGESData_IGESEntity)& ent, const Handle(Message_Messenger)& S) const 
+  (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S) const 
 {
 //   Affichage garanti sur  12 caracteres 12345/D24689
   Standard_Integer num = 0;
   if (!ent.IsNull()) {
-    if (themodel.IsNull())                          S<<"    D???    ";
-    else if ( (num = themodel->Number(ent)) == 0)   S<<"    0:D?????";
+    if (themodel.IsNull())                          S <<"    D???    ";
+    else if ( (num = themodel->Number(ent)) == 0)   S <<"    0:D?????";
 // throw Interface_InterfaceError("IGESDumper : PrintDNum");
     else {
-      S<<Interface_MSG::Blanks(num,9)<<num<<":D"<<2*num-1<<Interface_MSG::Blanks(2*num-1,9);
+      S <<Interface_MSG::Blanks(num,9)<<num<<":D"<<2*num-1<<Interface_MSG::Blanks(2*num-1,9);
     }
   }
-  else                                              S<<"  D0(Null)  ";
+  else                                              S <<"  D0(Null)  ";
 }
 
     void  IGESData_IGESDumper::PrintShort
-  (const Handle(IGESData_IGESEntity)& ent, const Handle(Message_Messenger)& S) const 
+  (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S) const 
 {
 //  PrintDNum(ent,S);
   if (!ent.IsNull()) {
     Standard_Integer num = 0;
     if (!themodel.IsNull()) num = themodel->Number(ent);
-    if (num > 0) S<<num<<":D"<<2*num-1;
+    if (num > 0) S <<num<<":D"<<2*num-1;
     S << "  Type:" << ent->TypeNumber() << "  Form:" << ent->FormNumber()
       << Interface_MSG::Blanks (ent->FormNumber(),3)
       << " Class:"<< Interface_InterfaceModel::ClassName(ent->DynamicType()->Name());
@@ -70,7 +69,7 @@ IGESData_IGESDumper::IGESData_IGESDumper
 
 
     void  IGESData_IGESDumper::Dump
-  (const Handle(IGESData_IGESEntity)& ent, const Handle(Message_Messenger)& S,
+  (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S,
    const Standard_Integer own, const Standard_Integer attached) const 
 {
   Standard_Integer att = attached;
@@ -79,27 +78,28 @@ IGESData_IGESDumper::IGESData_IGESDumper
   if (att == 0)  att = diratt;  // -1 signifie : ne rien sortir
 
   if (own < 0) return;
-  if (own > 1) S<<"\n";
-  if (ent.IsNull())  {  S<<"(Null)";  if (own > 1) S<<"\n";  return;  }
+
+  if (own > 1) S <<"\n";
+  if (ent.IsNull())  {  S <<"(Null)";  if (own > 1) S <<"\n";  return;  }
   if (own == 0)  {  PrintDNum  (ent,S);  return;  }    // affichage auxiliaire
   if (own == 1)  {  PrintShort (ent,S);  return;  }    // affichage auxiliaire
 
-  if (own > 0) S<<"****    Dump IGES, level "<<own<<" ( ";
+  if (own > 0) S <<"****    Dump IGES, level "<<own<<" ( ";
   switch (own) {
   case 0 :    break;
-  case 1 :    S<<"D.E. Number + Type + Name";  break;
-  case 2 :    S<<"D.E. Number + Type, Name + Transf, View";  break;
-  case 3 :    S<<"Complete Directory Part";  break;
-  case 4 :    S<<"Directory Part + Parameters, no Arrays";  break;
-  case 5 :    S<<"Complete";  break;
-  default :   S<<"Complete + Transformed Values";  break;
+  case 1 :    S <<"D.E. Number + Type + Name";  break;
+  case 2 :    S <<"D.E. Number + Type, Name + Transf, View";  break;
+  case 3 :    S <<"Complete Directory Part";  break;
+  case 4 :    S <<"Directory Part + Parameters, no Arrays";  break;
+  case 5 :    S <<"Complete";  break;
+  default :   S <<"Complete + Transformed Values";  break;
   }
-  S<<" )    ****"<<Message_EndLine;
+  S <<" )    ****\n";
 
 // ****    Entity 1234:D2467  **  Type:102 Form:56  **  CompositeCurve  **
-  S<<"\n****    Entity ";  PrintShort (ent,S);  S<<Message_EndLine;
+  S <<"\n****    Entity ";  PrintShort (ent,S);  S << "\n";
 
-  S<<"              Directory Part\n";
+  S <<"              Directory Part\n";
 // **      Status :   Blank:1    Subordinate:2    UseFlag:3    Hierarchy:4
   if (own >= 2)
     S <<"**      Status Number :   Blank:"<<ent->BlankStatus()
@@ -107,50 +107,50 @@ IGESData_IGESDumper::IGESData_IGESDumper
       <<"    UseFlag:"<<ent->UseFlag()
       <<"    Hierarchy:"<<ent->HierarchyStatus()<<"\n";
   if (own >= 1) {
-    if (ent->HasShortLabel()) S<<"****    Label         :"<<ent->ShortLabel()->ToCString();
-    if (ent->HasSubScriptNumber()) S<<"    SubScript:"<<ent->SubScriptNumber();
-    if (ent->HasShortLabel())  S<<Message_EndLine;
+    if (ent->HasShortLabel()) S <<"****    Label         :"<<ent->ShortLabel()->ToCString();
+    if (ent->HasSubScriptNumber()) S <<"    SubScript:"<<ent->SubScriptNumber();
+    if (ent->HasShortLabel())  S <<std::endl;
 
     if (ent->HasTransf())
-      {  S<<"**      Transf.Matrix :";  PrintDNum(ent->Transf(),S); S<<"\n"; }
+      {  S <<"**      Transf.Matrix :";  PrintDNum(ent->Transf(),S); S <<"\n"; }
     IGESData_DefList  viewkind = ent->DefView();
     if (viewkind == IGESData_DefOne)
-      {  S<<"**      View          :";  PrintDNum (ent->View(),S);  S<<"\n"; }
+      {  S <<"**      View          :";  PrintDNum (ent->View(),S);  S <<"\n"; }
     if (viewkind == IGESData_DefSeveral)
-      {  S<<"**      View (List)   :";  PrintDNum (ent->ViewList(),S);  S<<"\n"; }
+      {  S <<"**      View (List)   :";  PrintDNum (ent->ViewList(),S);  S <<"\n"; }
      
   }
 
   if (own >= 2) {
 
     if (ent->HasStructure())
-      {  S<<"**      Structure     :"; PrintDNum (ent->Structure(),S);  S<<"\n";  }
+      {  S <<"**      Structure     :"; PrintDNum (ent->Structure(),S);  S <<"\n";  }
 
-    S<<"\n              Graphic Attributes\n";
+    S <<"\n              Graphic Attributes\n";
     if (ent->DefLineFont() == IGESData_DefValue)
-      {  S<<"**      LineFont Value:"<<ent->RankLineFont()<<"\n"; }
+      {  S <<"**      LineFont Value:"<<ent->RankLineFont()<<"\n"; }
     else if (ent->DefLineFont() == IGESData_DefReference)
-      {  S<<"**      LineFont Ref  :";  PrintDNum (ent->LineFont(),S);  S<<"\n"; }
+      {  S <<"**      LineFont Ref  :";  PrintDNum (ent->LineFont(),S);  S <<"\n"; }
 
-    if (ent->Level() > 0)  S<<"**      Level Value   :"<<ent->Level()<<"\n";
+    if (ent->Level() > 0)  S <<"**      Level Value   :"<<ent->Level()<<"\n";
     else if (ent->Level() < 0)
-      {  S<<"**      Level List    :";  PrintDNum(ent->LevelList(),S);  S<<"\n"; }
+      {  S <<"**      Level List    :";  PrintDNum(ent->LevelList(),S);  S <<"\n"; }
 
     if (ent->HasLabelDisplay())
-      {  S<<"**      Label Display :";  PrintDNum (ent->LabelDisplay(),S);  S<<"\n"; }
+      {  S <<"**      Label Display :";  PrintDNum (ent->LabelDisplay(),S);  S <<"\n"; }
     if (ent->LineWeightNumber() != 0) {
-      S   <<"**      LineWeight Num:"<<ent->LineWeightNumber();
-      if (diratt > 0) S<<"    ->  Value:"<<ent->LineWeight();
-      S<<Message_EndLine;
+      S <<"**      LineWeight Num:"<<ent->LineWeightNumber();
+      if (diratt > 0) S <<"    ->  Value:"<<ent->LineWeight();
+      S <<std::endl;
     }
     if (ent->DefColor() == IGESData_DefValue)
-      {  S<<"**      Color Value   :"<<ent->RankColor();  }
+      {  S <<"**      Color Value   :"<<ent->RankColor();  }
     else if (ent->DefColor() == IGESData_DefReference)
-      {  S<<"**      Color Ref     :";  PrintDNum (ent->Color(),S); }
-    S<<Message_EndLine;
+      {  S <<"**      Color Ref     :";  PrintDNum (ent->Color(),S); }
+    S <<std::endl;
 
     if (own > 3) {
-      S<<"****             Own Data             ****\n\n";
+      S <<"****             Own Data             ****\n\n";
       OwnDump(ent,S,own);
     }
   }
@@ -161,7 +161,7 @@ IGESData_IGESDumper::IGESData_IGESDumper
   Standard_Integer nb = iter.NbEntities();
   Standard_Boolean iasuit = (nb > 0);
   if (nb > 0) {
-    S<<"\n****     Properties (nb:"<<nb<<")          ****\n";
+    S <<"\n****     Properties (nb:"<<nb<<")          ****\n";
     for (;iter.More(); iter.Next()) {
       DeclareAndCast(IGESData_IGESEntity,ent2,iter.Value());
       Dump (ent2,S,att,-1);
@@ -171,28 +171,28 @@ IGESData_IGESDumper::IGESData_IGESDumper
   nb = iter.NbEntities();
   if (nb > 0) iasuit = Standard_True;
   if (nb > 0) {
-    S<<"\n****   Associativities (nb:"<<nb<<")        ****\n";
+    S <<"\n****   Associativities (nb:"<<nb<<")        ****\n";
     for (;iter.More(); iter.Next()) {
       DeclareAndCast(IGESData_IGESEntity,ent2,iter.Value());
       Dump(ent2,S,att,-1);
     }
   }
   if (iasuit) {  if (att <= 1) S << "\n";  }
-  S<<"\n****             End of Dump          ****\n"<<Message_EndLine;
+  S <<"\n****             End of Dump          ****\n"<<std::endl;
 }
 
 
 
     void  IGESData_IGESDumper::OwnDump
-  (const Handle(IGESData_IGESEntity)& ent, const Handle(Message_Messenger)& S,
+  (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S,
    const Standard_Integer own) const 
 {
   Handle(IGESData_SpecificModule) module;  Standard_Integer CN;
   if (thelib.Select(ent,module,CN))
     module->OwnDump(CN,ent,*this,S,own);
   else if (themodel.IsNull())
-    S <<"  ****  Dump impossible. Type "<<ent->DynamicType()->Name()<<Message_EndLine;
+    S <<"  ****  Dump impossible. Type "<<ent->DynamicType()->Name()<<std::endl;
   else
     S <<"  ****  Dump Impossible, n0:id:"<<themodel->Number(ent)<<":D"
-      <<themodel->DNum(ent)<<" Type "<<ent->DynamicType()->Name()<<Message_EndLine;
+      <<themodel->DNum(ent)<<" Type "<<ent->DynamicType()->Name()<<std::endl;
 }
index 7badcff7f8a16fed204f982a9b8450dcd5abb500..5a15457e2fbd20b92ba0575099d69e16e2ac1095 100644 (file)
@@ -27,8 +27,6 @@ class IGESData_IGESModel;
 class Interface_InterfaceError;
 class IGESData_Protocol;
 class IGESData_IGESEntity;
-class Message_Messenger;
-
 
 //! Provides a way to obtain a clear Dump of an IGESEntity
 //! (distinct from normalized output). It works with tools
@@ -55,18 +53,18 @@ public:
   //! Prints onto an output, the "Number of Directory Entry" which
   //! corresponds to an IGESEntity in the IGESModel, under the form
   //! "D#nnn" (a Null Handle gives D#0)
-  Standard_EXPORT void PrintDNum (const Handle(IGESData_IGESEntity)& ent, const Handle(Message_Messenger)& S) const;
+  Standard_EXPORT void PrintDNum (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S) const;
   
   //! Prints onto an output, the "Number of Directory Entry" (see
   //! PrintDNum) plus IGES Type and Form Numbers, which gives
   //! "D#nnn  Type nnn  Form nnn"
-  Standard_EXPORT void PrintShort (const Handle(IGESData_IGESEntity)& ent, const Handle(Message_Messenger)& S) const;
+  Standard_EXPORT void PrintShort (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S) const;
   
-  Standard_EXPORT void Dump (const Handle(IGESData_IGESEntity)& ent, const Handle(Message_Messenger)& S, const Standard_Integer own, const Standard_Integer attached = -1) const;
+  Standard_EXPORT void Dump (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S, const Standard_Integer own, const Standard_Integer attached = -1) const;
   
   //! Specific Dump for each IGES Entity, call by Dump (just above)
   //! <own> is the parameter <own> from Dump
-  Standard_EXPORT void OwnDump (const Handle(IGESData_IGESEntity)& ent, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESData_IGESEntity)& ent, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index a620d49d2c483e1f3a936990758384cd3e50e9a5..3091718eadbbf848006bfbd30ead964f55916b34 100644 (file)
@@ -25,7 +25,6 @@
 #include <Interface_InterfaceModel.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_Static.hxx>
-#include <Message_Messenger.hxx>
 #include <Message_Msg.hxx>
 #include <Standard_Transient.hxx>
 #include <Standard_Type.hxx>
@@ -75,14 +74,14 @@ void IGESData_IGESModel::ClearHeader ()
 //=======================================================================
 
 void IGESData_IGESModel::DumpHeader
-  (const Handle(Message_Messenger)& S, const Standard_Integer ) const
+  (Standard_OStream& S, const Standard_Integer ) const
 {
   Standard_Integer ns = thestart->Length();
-  S<<"****    Dump of IGES Model , Start and Global Sections   ****"<<Message_EndLine;
+  S <<"****    Dump of IGES Model , Start and Global Sections   ****"<<std::endl;
   if (ns > 0) {
     S << "****    Start Section : "<<ns<<" Line(s)   ****\n";
     for (Standard_Integer i = 1; i <= ns; i ++)
-      S<<"["<<(i<10 ? " ": "")<<i<<"]:"<<thestart->Value(i)->ToCString()<<Message_EndLine;
+      S <<"["<<(i<10 ? " ": "")<<i<<"]:"<<thestart->Value(i)->ToCString()<<std::endl;
   }
   S << "\n****    Global Section    ****\n";
   char sep = theheader.Separator();
@@ -91,73 +90,73 @@ void IGESData_IGESModel::DumpHeader
   char emk = theheader.EndMark();
   if (emk == ';')  S << "        [ 2]      Default End Mark  : " << emk;
   else             S << "        [ 2]  Non Default End Mark  : " << emk;
-  S<<"\n";
+  S <<"\n";
   Handle(TCollection_HAsciiString) str;
   str = theheader.SendName();
-  if (!str.IsNull()) S<<"[ 3]  Sender                : "<<str->ToCString()<<Message_EndLine;
+  if (!str.IsNull()) S <<"[ 3]  Sender                : "<<str->ToCString()<<std::endl;
   str = theheader.FileName();
-  if (!str.IsNull()) S<<"[ 4]  (recorded) File Name  : "<<str->ToCString()<<Message_EndLine;
+  if (!str.IsNull()) S <<"[ 4]  (recorded) File Name  : "<<str->ToCString()<<std::endl;
   str = theheader.SystemId();
-  if (!str.IsNull()) S<<"[ 5]  System Identification : "<<str->ToCString()<<Message_EndLine;
+  if (!str.IsNull()) S <<"[ 5]  System Identification : "<<str->ToCString()<<std::endl;
   str = theheader.InterfaceVersion();
-  if (!str.IsNull()) S<<"[ 6]  Interface Version     : "<<str->ToCString()<<Message_EndLine;
-  S<<Message_EndLine;
+  if (!str.IsNull()) S <<"[ 6]  Interface Version     : "<<str->ToCString()<<std::endl;
+  S <<std::endl;
   S << "[ 7]  Integer Bits          : " << theheader.IntegerBits()
-    << "          Features for Reals : " << Message_EndLine;
+    << "          Features for Reals : " << std::endl;
   S << "[ 8]  Single Max.Power(10)  : " << theheader.MaxPower10Single();
   S << "         [ 9]  Digits   : " << theheader.MaxDigitsSingle()<<"\n";
   S << "[10]  Double Max.Power(10)  : " << theheader.MaxPower10Double();
   S << "         [11]  Digits   : " << theheader.MaxDigitsDouble() << "\n\n";
   str = theheader.ReceiveName();
-  if (!str.IsNull()) S<<"[12]  Receiver              : "<<str->ToCString()<<"\n";
+  if (!str.IsNull()) S <<"[12]  Receiver              : "<<str->ToCString()<<"\n";
   S << "[13]  Scale                 : " << theheader.Scale()<<"\n";
   S << "[14]  Unit  Flag            : " << theheader.UnitFlag();
 //  if (Interface_Static::IVal("read.scale.unit") == 1)
     //#73 rln 10.03.99 S4135: "read.scale.unit" does not affect GlobalSection
-//    S    << "    -> Value (in Meter) = " << theheader.UnitValue() / 1000 <<"\n";
+//    S << "    -> Value (in Meter) = " << theheader.UnitValue() / 1000 <<"\n";
 //  else S << "    -> Value (in Millimeter) = " << theheader.UnitValue()<<"\n";
   //abv 02 Mar 00: no unit parameter in OCC
   S << "    -> Value (in CASCADE units) = " << theheader.UnitValue() <<"\n";
   
   str = theheader.UnitName();
-  if (!str.IsNull()) S<<"[15]  Unit  Name            : " << str->ToCString()<<"\n\n";
+  if (!str.IsNull()) S <<"[15]  Unit  Name            : " << str->ToCString()<<"\n\n";
   S << "[16]  Line Weight  Gradient : " << theheader.LineWeightGrad()<<"\n";
   S << "[17]  Line Weight  Max Value: " << theheader.MaxLineWeight()<<"\n";
 
   str = theheader.Date();
-  if (!str.IsNull()) S<<"[18]  (Creation) Date       : "<<str->ToCString()
+  if (!str.IsNull()) S <<"[18]  (Creation) Date       : "<<str->ToCString()
     <<"  i.e. "<<IGESData_GlobalSection::NewDateString(str,1)->ToCString()<<"\n";
   S << "[19]  Resolution            : " << theheader.Resolution()<<"\n";
   if (theheader.HasMaxCoord())
-    S<<"[20]  Maximum Coord         : " << theheader.MaxCoord() << "\n\n";
-  else S<<"[20]  Maximum Coord           not defined\n\n";
+    S <<"[20]  Maximum Coord         : " << theheader.MaxCoord() << "\n\n";
+  else S <<"[20]  Maximum Coord           not defined\n\n";
 
   str = theheader.AuthorName();
-  if (!str.IsNull()) S<<"[21]  Author                : "<<str->ToCString()<<"\n";
+  if (!str.IsNull()) S <<"[21]  Author                : "<<str->ToCString()<<"\n";
   str = theheader.CompanyName();
-  if (!str.IsNull()) S<<"[22]  Company               : "<<str->ToCString()<<"\n";
+  if (!str.IsNull()) S <<"[22]  Company               : "<<str->ToCString()<<"\n";
   Standard_Integer num = theheader.IGESVersion();
   S << "[23]  IGES Version Number   : " << num << "   -> Name : " 
     << IGESData_BasicEditor::IGESVersionName(num);
 
   num = theheader.DraftingStandard();
   S << "\n[24]  Drafting Standard     : " << num;
-  if (num > 0) S<< "   -> Name : " << IGESData_BasicEditor::DraftingName(num);
-  S<<Message_EndLine;
+  if (num > 0) S << "   -> Name : " << IGESData_BasicEditor::DraftingName(num);
+  S <<std::endl;
 
   if (theheader.HasLastChangeDate()) {
     str = theheader.LastChangeDate();
     S <<  "[25]  Last Change Date      : " << str->ToCString() 
-      <<"  i.e. "<<IGESData_GlobalSection::NewDateString(str,1)->ToCString()<<Message_EndLine;
+      <<"  i.e. "<<IGESData_GlobalSection::NewDateString(str,1)->ToCString()<<std::endl;
   }
-  else S<<"[25]  Last Change Date        not defined (version IGES < 5.1)" << Message_EndLine;
+  else S <<"[25]  Last Change Date        not defined (version IGES < 5.1)" << std::endl;
 
   if (theheader.HasApplicationProtocol()) {
     str = theheader.ApplicationProtocol();
-    S <<  "[26]  Application Protocol  : " << str->ToCString() <<Message_EndLine;
+    S <<  "[26]  Application Protocol  : " << str->ToCString() <<std::endl;
   }
 
-  S << " ****     End of Dump      ****"<<Message_EndLine;
+  S << " ****     End of Dump      ****"<<std::endl;
 }
 
 
@@ -565,14 +564,14 @@ void  IGESData_IGESModel::ClearLabels ()
 //=======================================================================
 
 void  IGESData_IGESModel::PrintLabel
-  (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S) const
+  (const Handle(Standard_Transient)& ent, Standard_OStream& S) const
 { 
   DeclareAndCast(IGESData_IGESEntity,igesent,ent);
-  if (igesent.IsNull()) S<<"Null";
+  if (igesent.IsNull()) S <<"Null";
    else {
      Standard_Integer num = Number(ent);
-     if (num == 0) S<<"??";
-     else          S<<"D"<<(2*num-1);
+     if (num == 0) S <<"??";
+     else          S <<"D"<<(2*num-1);
    }
 }
 
@@ -583,14 +582,14 @@ void  IGESData_IGESModel::PrintLabel
 //=======================================================================
 
 void  IGESData_IGESModel::PrintToLog
-  (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S) const
+  (const Handle(Standard_Transient)& ent, Standard_OStream& S) const
 {
   DeclareAndCast(IGESData_IGESEntity,igesent,ent);
   if (!igesent.IsNull()) {
     Standard_Integer num = Number(ent);
-    if (num == 0) S<<"??";
+    if (num == 0) S <<"??";
     else {
-      S<<" DE : "<<(2*num-1) << " type : " << igesent->TypeNumber();
+      S <<" DE : "<<(2*num-1) << " type : " << igesent->TypeNumber();
 //      Standard_Integer num2 = igesent->TypeNumber();
     }
   }
@@ -603,15 +602,15 @@ void  IGESData_IGESModel::PrintToLog
 //=======================================================================
 
 void  IGESData_IGESModel::PrintInfo
-  (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S) const
+  (const Handle(Standard_Transient)& ent, Standard_OStream& S) const
 {
   DeclareAndCast(IGESData_IGESEntity,igesent,ent);
-  if (igesent.IsNull()) S<<"(NOT IGES)";
+  if (igesent.IsNull()) S <<"(NOT IGES)";
   else {
     Standard_Integer num = Number(ent);
-    if (num == 0) S<<"??";
+    if (num == 0) S <<"??";
     else  {
-      S<<(2*num-1) << "type " << Type(ent)->Name();
+      S <<(2*num-1) << "type " << Type(ent)->Name();
     }
   }
 }
index 70e114685c7ce241d3322cd8fa01a59a69b701c6..55044e42d3f96637f5d63ae26d167436a6f817c0 100644 (file)
 #ifndef _IGESData_IGESModel_HeaderFile
 #define _IGESData_IGESModel_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <TColStd_HSequenceOfHAsciiString.hxx>
 #include <IGESData_GlobalSection.hxx>
 #include <Interface_InterfaceModel.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_CString.hxx>
-#include <Standard_Boolean.hxx>
-#include <Standard_Real.hxx>
+
 class Interface_InterfaceError;
-class Message_Messenger;
 class IGESData_GlobalSection;
 class IGESData_IGESEntity;
 class Interface_InterfaceModel;
@@ -67,7 +60,7 @@ public:
   //! Prints the IGES file header
   //! (Start and Global Sections) to the log file. The integer
   //! parameter is intended to be used as a level indicator but is not used at present.
-  Standard_EXPORT void DumpHeader (const Handle(Message_Messenger)& S, const Standard_Integer level = 0) const Standard_OVERRIDE;
+  Standard_EXPORT void DumpHeader (Standard_OStream& S, const Standard_Integer level = 0) const Standard_OVERRIDE;
   
   //! Returns Model's Start Section (list of comment lines)
   Standard_EXPORT Handle(TColStd_HSequenceOfHAsciiString) StartSection() const;
@@ -144,16 +137,16 @@ public:
   
   //! Prints label specific to IGES norm for a given entity, i.e.
   //! its directory entry number (2*Number-1)
-  Standard_EXPORT void PrintLabel (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S) const Standard_OVERRIDE;
+  Standard_EXPORT void PrintLabel (const Handle(Standard_Transient)& ent, Standard_OStream& S) const Standard_OVERRIDE;
   
   //! Prints label specific to IGES norm  for a given -- --
   //! entity,  i.e.  its directory entry number (2*Number-1)
   //! in the log file format.
-  Standard_EXPORT virtual void PrintToLog (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S) const Standard_OVERRIDE;
+  Standard_EXPORT virtual void PrintToLog (const Handle(Standard_Transient)& ent, Standard_OStream& S) const Standard_OVERRIDE;
   
   //! Prints label specific to IGES norm for a given entity, i.e.
   //! its directory entry number (2*Number-1)
-  Standard_EXPORT void PrintInfo (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S) const;
+  Standard_EXPORT void PrintInfo (const Handle(Standard_Transient)& ent, Standard_OStream& S) const;
   
   //! Returns a string with the label attached to a given entity,
   //! i.e. a string "Dnn" with nn = directory entry number (2*N-1)
index 8a2b9a9af6281df42dec0bb2662b7a00836f8330..17e0716db871ddf1c10fc0cf96407d780f7601e3 100644 (file)
@@ -116,7 +116,7 @@ void IGESData_IGESWriter::SendStartLine (const Standard_CString startline)
     void IGESData_IGESWriter::SendModel
   (const Handle(IGESData_Protocol)& protocol)
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   IGESData_WriterLib lib(protocol);
 
   Standard_Integer nb = themodel->NbEntities();
@@ -137,7 +137,7 @@ void IGESData_IGESWriter::SendStartLine (const Standard_CString startline)
 #endif
 //  Attention aux cas d erreur : contenu redefini
     if (themodel->IsRedefinedContent(i)) {
-      sout << " --  IGESWriter : Erroneous Entity N0."<<i<<"  --"<<Message_EndLine;
+      sout << " --  IGESWriter : Erroneous Entity N0."<<i<<"  --"<<std::endl;
       Handle(Interface_ReportEntity) rep = themodel->ReportEntity(i);
       if (!rep.IsNull()) cnt = GetCasted(IGESData_IGESEntity,rep->Content());
       if (cnt.IsNull())  cnt = ent;    // secours
@@ -156,7 +156,7 @@ void IGESData_IGESWriter::SendStartLine (const Standard_CString startline)
       undent->WriteOwnParams (*this);
     }
     else sout<<" -- IGESWriter : Not Processed for n0."<<i<<" in file,  Type "
-      <<cnt->TypeNumber()<<"  Form "<<cnt->FormNumber()<<Message_EndLine;
+      <<cnt->TypeNumber()<<"  Form "<<cnt->FormNumber()<<std::endl;
 
     Associativities (cnt);
     Properties      (cnt);
@@ -505,7 +505,7 @@ Standard_Boolean IGESData_IGESWriter::Print (Standard_OStream& S) const
       S << "                              ***  EUCLID/STRIM  DESKTOP CLIPBOARD  ***"<<std::endl;
       writefnes (S,"                                                                        S0000001");
     }
-    else S<<"                                                                        S0000001";
+    else S <<"                                                                        S0000001";
 //      123456789 123456789 123456789 123456789 123456789 123456789 123456789 12
     S << std::endl;
   } else {
@@ -517,7 +517,7 @@ Standard_Boolean IGESData_IGESWriter::Print (Standard_OStream& S) const
 
       if (fnes) writefnes (S,line->ToCString());
       else S << line->ToCString();
-//    for (Standard_Integer k = line->Length()+1; k <= MaxcarsG; k ++)  S<<' ';
+//    for (Standard_Integer k = line->Length()+1; k <= MaxcarsG; k ++)  aSender <<' ';
       S << &blancs[line->Length()];
       if (fnes) writefnes (S,finlin);
       else S << finlin;
@@ -537,7 +537,7 @@ Standard_Boolean IGESData_IGESWriter::Print (Standard_OStream& S) const
 
     if (fnes) writefnes (S,line->ToCString());
     else S << line->ToCString();
-//    for (Standard_Integer k = line->Length()+1; k <= MaxcarsG; k ++)  S<<' ';
+//    for (Standard_Integer k = line->Length()+1; k <= MaxcarsG; k ++)  aSender <<' ';
     S << &blancs[line->Length()];
     if (fnes) writefnes (S,finlin);
     else S << finlin;
@@ -567,16 +567,16 @@ Standard_Boolean IGESData_IGESWriter::Print (Standard_OStream& S) const
            v[8],v[9],v[10],v[11] ,2*i-1);
     if (fnes) writefnes (S,ligne);
     else S << ligne;
-    S<< "\n";
+    S << "\n";
     sprintf(ligne,"%8d%8d%8d%8d%8d%8s%8s%8s%8sD%7.7d",
            v[0],v[13],v[14],v[15],v[16],res1,res2,lab,num,2*i);
     if (fnes) writefnes (S,ligne);
     else S << ligne;
-    S<< "\n";
+    S << "\n";
 //    std::cout << "Ent.no "<<i<<" No en P "<<thepnum.Value(i)<<
 //      " Lignes P:"<<thepnum.Value(i+1)-thepnum.Value(i)<<std::endl;
-//    for (j = 0; j < 17; j ++) S<<v[j]<<" ";
-//    S<<res1<<res2<<" label:"<<lab<<" subnum:"<<num<<std::endl;
+//    for (j = 0; j < 17; j ++) S <<v[j]<<" ";
+//    S <<res1<<res2<<" label:"<<lab<<" subnum:"<<num<<std::endl;
     isGood = S.good();
   }
   if(!isGood)
@@ -597,7 +597,7 @@ Standard_Boolean IGESData_IGESWriter::Print (Standard_OStream& S) const
 
       if (fnes) writefnes (S,line->ToCString());
       else S << line->ToCString();
-//      for (Standard_Integer k = line->Length()+1; k <= MaxcarsP; k ++)S<<' ';
+//      for (Standard_Integer k = line->Length()+1; k <= MaxcarsP; k ++)aSender <<' ';
       S << &blancs[line->Length()];
       if (fnes) writefnes (S,finlin);
       else S << finlin;
@@ -618,7 +618,7 @@ Standard_Boolean IGESData_IGESWriter::Print (Standard_OStream& S) const
 //   12345678- 16- 24- 32  56789 123456789 123456789 123456789 12
   if (fnes) writefnes (S,ligne);
   else S << ligne;
-  S<< "\n";
+  S << "\n";
   S.flush();
   isGood = S.good();
 #ifdef PATIENCELOG
index 0eec2f5374e2f68a2df32f322203164a7f4d31aa..ea93065959a9b35076caa2dcc55b49a380085a0c 100644 (file)
@@ -15,8 +15,6 @@
 #include <IGESData_IGESDumper.hxx>
 #include <IGESData_IGESEntity.hxx>
 #include <IGESData_SpecificModule.hxx>
-#include <Message_Messenger.hxx>
-#include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESData_SpecificModule,Standard_Transient)
 
index 8eb81a33cc77ca4c1393f77aa2f24c4f6b23dcdd..6f7a3a7d5545e04820ba5f962e58de9ecf8a0379 100644 (file)
@@ -25,7 +25,6 @@
 #include <Standard_Boolean.hxx>
 class IGESData_IGESEntity;
 class IGESData_IGESDumper;
-class Message_Messenger;
 
 
 class IGESData_SpecificModule;
@@ -44,7 +43,7 @@ public:
   //! taken into account by the IGESDumper
   //! See class IGESDumper for the rules to follow for <own> and
   //! <attached> level
-  Standard_EXPORT virtual void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const = 0;
+  Standard_EXPORT virtual void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const = 0;
   
   //! Specific Automatic Correction on own Parameters of an Entity.
   //! It works by setting in accordance redundant data, if there are
index 537d2f92c55afba4f61dbd93cb82872f3d42d54a..eb76d8cbf7824e647bbfba5a8b7c42259cea4604 100644 (file)
@@ -30,7 +30,6 @@
 #include <IGESDefs_ToolUnitsData.hxx>
 #include <IGESDefs_UnitsData.hxx>
 #include <Interface_Macros.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESDefs_SpecificModule,IGESData_SpecificModule)
@@ -43,7 +42,7 @@ IGESDefs_SpecificModule::IGESDefs_SpecificModule()    {  }
 
     void  IGESDefs_SpecificModule::OwnDump
   (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
-   const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S,
+   const IGESData_IGESDumper& dumper, Standard_OStream& S,
    const Standard_Integer own) const 
 {
   switch (CN) {
index 68dc1a57abdf747ae739841e1df2fe407819923a..f1a94bcbc6afb6eba5be90ba7cf9e8981d36ef43 100644 (file)
@@ -24,8 +24,6 @@
 #include <Standard_Integer.hxx>
 class IGESData_IGESEntity;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 class IGESDefs_SpecificModule;
 DEFINE_STANDARD_HANDLE(IGESDefs_SpecificModule, IGESData_SpecificModule)
@@ -41,7 +39,7 @@ public:
   Standard_EXPORT IGESDefs_SpecificModule();
   
   //! Specific Dump (own parameters) for IGESDefs
-  Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const Standard_OVERRIDE;
+  Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const Standard_OVERRIDE;
 
 
 
index 86991d5adcf3faba2e8dc5452bab879aae2f15ba..d4c2a7f3576c84ef47c4335521085518f8626e91 100644 (file)
@@ -177,39 +177,39 @@ void  IGESDefs_ToolAssociativityDef::OwnCheck
 
 void  IGESDefs_ToolAssociativityDef::OwnDump
   (const Handle(IGESDefs_AssociativityDef)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const 
+   Standard_OStream& S, const Standard_Integer level) const 
 { 
-  S << "IGESDefs_AssociativityDef" << Message_EndLine;
-  S << "Number of Class Definitions : " << ent->NbClassDefs() << Message_EndLine;
-  S << "Back Pointer Requirement  : " << Message_EndLine; 
-  S << "Ordered / Unordered Class : " << Message_EndLine;
-  S << "Number Of Items per Entry : " << Message_EndLine;
-  S << "Items : " << Message_EndLine; 
+  S << "IGESDefs_AssociativityDef\n"
+    << "Number of Class Definitions : " << ent->NbClassDefs() << "\n"
+    << "Back Pointer Requirement  :\n"
+    << "Ordered / Unordered Class :\n"
+    << "Number Of Items per Entry :\n"
+    << "Items :\n";
   IGESData_DumpVals(S,-level,1, ent->NbClassDefs(),ent->BackPointerReq);
-  S << Message_EndLine;
+  S << std::endl;
   if (level > 4)
     {
 // Warning : Item is a JAGGED Array
       Standard_Integer upper = ent->NbClassDefs();
       for (Standard_Integer i = 1; i <= upper; i ++) {
-       S << "[" << i << "]: " << Message_EndLine;
+       S << "[" << i << "]:\n";
        S << "Back Pointer Requirement : "  << ent->BackPointerReq(i) << "  ";
        if (ent->IsBackPointerReq(i)) S << "(Yes)  ";
        else                          S << "(No)   ";
        S << " Ordered/Unordered Class : "  << ent->ClassOrder(i) << " ";
-       if (ent->IsOrdered(i)) S << "(Yes)" <<Message_EndLine;
-       else                   S << "(No)"  <<Message_EndLine;
+       if (ent->IsOrdered(i)) S << "(Yes)\n";
+       else                   S << "(No)\n";
        S << "Number Of Items per Entry : " << ent->NbItemsPerClass(i);
        if (level < 6) {
-         S << " [ask level > 5 for more]" << Message_EndLine;
+         S << " [ask level > 5 for more]\n";
          continue;
        }
-       S << Message_EndLine << " [";
+       S << "\n [";
        for (Standard_Integer j = 1; j <= ent->NbItemsPerClass(i); j ++)
          S << "  " << ent->Item(i,j);
-       S << "]" << Message_EndLine;
+       S << "]\n";
       }
     }
-  S << Message_EndLine;
+  S << std::endl;
 }
 
index 27b93e0e2e569820b6b79c6124795291162adcfa..e00d6fd25289ec1a976db26080327b8939fa4c46 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a AssociativityDef. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDefs_AssociativityDef)& entfrom, const Handle(IGESDefs_AssociativityDef)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDefs_AssociativityDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDefs_AssociativityDef)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 6d546f29b718785b21486b717b4a4cfe0dd6afe6..524fb1474af29ef25a091a7665947ff499453489 100644 (file)
@@ -441,23 +441,23 @@ void IGESDefs_ToolAttributeDef::OwnCheck
 
 void IGESDefs_ToolAttributeDef::OwnDump
   (const Handle(IGESDefs_AttributeDef)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
 
-  S << "IGESDefs_AttributeDef" << Message_EndLine;
-  S << "Attribute Table Name: ";
+  S << "IGESDefs_AttributeDef\n"
+    << "Attribute Table Name: ";
   IGESData_DumpString(S,ent->TableName());
-  S << Message_EndLine;
-  S << "Attribute List Type  : " << ent->ListType() << Message_EndLine;
-  S << "Number of Attributes : " << ent->NbAttributes() << Message_EndLine;
-  S << "Attribute Types : " << Message_EndLine;
-  S << "Attribute Value Data Types : " << Message_EndLine;
-  S << "Attribute Value Counts : " << Message_EndLine;
-  if (ent->HasValues())       S << "Attribute Values : " << Message_EndLine;
-  if (ent->HasTextDisplay())  S << "Attribute Value Entities : " << Message_EndLine;
+  S << "\n"
+    << "Attribute List Type  : " << ent->ListType() << "\n"
+    << "Number of Attributes : " << ent->NbAttributes() << "\n"
+    << "Attribute Types :\n"
+    << "Attribute Value Data Types :\n"
+    << "Attribute Value Counts :\n";
+  if (ent->HasValues())       S << "Attribute Values :\n";
+  if (ent->HasTextDisplay())  S << "Attribute Value Entities :\n";
   IGESData_DumpVals(S,-level,1, ent->NbAttributes(),ent->AttributeType);
-  S << Message_EndLine;
+  S << "\n";
   if (level > 4)
     {
       Standard_Integer upper = ent->NbAttributes();
@@ -465,9 +465,9 @@ void IGESDefs_ToolAttributeDef::OwnDump
        {
          Standard_Integer avc = ent->AttributeValueCount(i);
          Standard_Integer typ = ent->AttributeValueDataType(i);
-          S << "[" << i << "]:  ";
-          S << "Attribute Type : " << ent->AttributeType(i) << "  ";
-          S << "Value Data Type : " << typ;
+          S << "[" << i << "]:  "
+            << "Attribute Type : " << ent->AttributeType(i) << "  "
+            << "Value Data Type : " << typ;
          switch (typ) {
            case 0 : S << "  (Void)";     break;
            case 1 : S << " : Integer ";  break;
@@ -478,11 +478,11 @@ void IGESDefs_ToolAttributeDef::OwnDump
            case 6 : S << " : Logical ";  break;
            default :   break;
          }
-          S << "   Count : " << avc << Message_EndLine;
+          S << "   Count : " << avc << "\n";
           if (ent->HasValues())
            {
              if (level <= 5) {
-               S << " [ content (Values) : ask level > 5 ]" << Message_EndLine;
+               S << " [ content (Values) : ask level > 5 ]\n";
                continue;
              }
               for (Standard_Integer j = 1; j <= avc; j ++)
@@ -512,10 +512,10 @@ void IGESDefs_ToolAttributeDef::OwnDump
                       S << "  Attribute Value Pointer : ";
                       dumper.Dump (ent->AttributeTextDisplay(i,j),S, sublevel);
                    }
-                 S << Message_EndLine;
+                 S << std::endl;
                }
            }
        }
     }
-  S << Message_EndLine;
+  S << std::endl;
 }
index b0eea36f09083d6f43821616c3e39bd792c94b02..05ea914b44a654d474663dceb58abcf7ea8ec6ee 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a AttributeDef. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDefs_AttributeDef)& entfrom, const Handle(IGESDefs_AttributeDef)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDefs_AttributeDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDefs_AttributeDef)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 9c7d1a779d4f723566b4ca1cf44bb576d007c91d..f43dbce920ead5fc91992610ac3d03e9ae3eb043 100644 (file)
@@ -301,20 +301,20 @@ void  IGESDefs_ToolAttributeTable::OwnCheck
 
 void  IGESDefs_ToolAttributeTable::OwnDump
   (const Handle(IGESDefs_AttributeTable)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 { 
-  S << "IGESDefs_AttributeTable" << Message_EndLine;
+  S << "IGESDefs_AttributeTable\n";
 
   Handle(IGESDefs_AttributeDef) ab = ent->Definition();
 
   Standard_Integer na = ent->NbAttributes();
   Standard_Integer nr = ent->NbRows();
   if (ent->FormNumber() == 1)
-    S << "Number of Rows (i.e. complete sets of Attributes) : " << nr << Message_EndLine;
-  else S << "One set of Attributes" << Message_EndLine;
-  S << "Number of defined Attributes : " << na << Message_EndLine;
+    S << "Number of Rows (i.e. complete sets of Attributes) : " << nr << "\n";
+  else S << "One set of Attributes\n";
+  S << "Number of defined Attributes : " << na << "\n";
   if (level <= 4) S <<
-    " [ structure : see Structure in Directory Entry; content : level > 4 ]" <<Message_EndLine;
+    " [ structure : see Structure in Directory Entry; content : level > 4 ]\n";
   else
     for (Standard_Integer k = 1; k <= nr; k ++)
       {
@@ -347,8 +347,8 @@ void  IGESDefs_ToolAttributeTable::OwnDump
                default : break;
              }
            }
-           S << Message_EndLine;
+           S << "\n";
          }
       }
-  S << Message_EndLine;
+  S << std::endl;
 }
index de2a3718559a2ca2bdac66f5810bec69f8985bb4..53c1a547cfbcdcd90294f18f2b4f783a90e5620c 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a AttributeTable. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDefs_AttributeTable)& entfrom, const Handle(IGESDefs_AttributeTable)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDefs_AttributeTable)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDefs_AttributeTable)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 19708e74b3dc2d277c9128446a4b8f1897874f7a..b13a0e552fa33a00cc446db98b87c46204616116 100644 (file)
@@ -255,25 +255,25 @@ void  IGESDefs_ToolGenericData::OwnCheck
 
 void  IGESDefs_ToolGenericData::OwnDump
   (const Handle(IGESDefs_GenericData)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESDefs_GenericData" << Message_EndLine;
-  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
-  S << "Property Name : ";
+  S << "IGESDefs_GenericData\n"
+    << "Number of property values : " << ent->NbPropertyValues() << "\n"
+    << "Property Name : ";
   IGESData_DumpString(S,ent->Name());
-  S << Message_EndLine;
+  S << std::endl;
   switch (level)
     {
     case 4:
-      S << "Types  : " << Message_EndLine;
-      S << "Values : Count = " << ent->NbTypeValuePairs() << Message_EndLine;
-      S << "      [ as level > 4 for content ]" << Message_EndLine;
+      S << "Types  :\n";
+      S << "Values : Count = " << ent->NbTypeValuePairs() << "\n";
+      S << "      [ as level > 4 for content ]\n";
       break;
     case 5:
     case 6:
       {
        Standard_Integer i, num;
-       S << "Types & Values : " << Message_EndLine;
+       S << "Types & Values : " << "\n";
        for ( num = ent->NbTypeValuePairs(), i = 1; i <= num; i++ )
           {
            S << "[" << i << "]: ";
@@ -293,9 +293,9 @@ void  IGESDefs_ToolGenericData::OwnDump
                << (ent->ValueAsLogical(i) ? "True" : "False");  break;
              default : break;
              }
-           S << Message_EndLine;
+           S << "\n";
           }
       }
     }
-  S << Message_EndLine;
+  S << std::endl;
 }
index abfd855102d544745f35dece5e26d7f5fc8f40d6..4f54ec8b3f1e487b5de65a29e849eeefe28258ea 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a GenericData. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDefs_GenericData)& entfrom, const Handle(IGESDefs_GenericData)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDefs_GenericData)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDefs_GenericData)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 1c048168092ab3a55297909bb86728a58ce541ca..6f0049bfc014ac8a7abbf727d7dd8c77732b2df2 100644 (file)
@@ -143,16 +143,16 @@ void  IGESDefs_ToolMacroDef::OwnCheck
 
 void  IGESDefs_ToolMacroDef::OwnDump
   (const Handle(IGESDefs_MacroDef)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const 
+   Standard_OStream& S, const Standard_Integer level) const 
 { 
-  S << "IGESDefs_MacroDef" << Message_EndLine;
-  S << "MACRO : ";
+  S << "IGESDefs_MacroDef\n"
+    << "MACRO : ";
   IGESData_DumpString(S,ent->MACRO());
-  S << Message_EndLine;
-  S << "Entity Type ID : " << ent->EntityTypeID() << Message_EndLine;
-  S << "Language Statement : ";
-  IGESData_DumpStrings(S ,level,1, ent->NbStatements(),ent->LanguageStatement);
+  S << "\n"
+    << "Entity Type ID : " << ent->EntityTypeID() << "\n"
+    << "Language Statement : ";
+  IGESData_DumpStrings(S,level,1, ent->NbStatements(),ent->LanguageStatement);
   S << "END MACRO : ";
   IGESData_DumpString(S,ent->ENDMACRO());
-  S << Message_EndLine;
+  S << std::endl;
 }
index ccb552865a90d1544c138b3513e8fdc3a6686f68..ef9a327c519a4916b486f3d7a90d73bc0d8f86c7 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a MacroDef. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDefs_MacroDef)& entfrom, const Handle(IGESDefs_MacroDef)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDefs_MacroDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDefs_MacroDef)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 0817534a32f684e02b009e383d64c80a824a192e..4be7ee6dfd5b955ab93e86bb5e3da155c0f374c2 100644 (file)
@@ -223,34 +223,34 @@ void IGESDefs_ToolTabularData::OwnCheck
 
 void IGESDefs_ToolTabularData::OwnDump
   (const Handle(IGESDefs_TabularData)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
   Standard_Integer nbIndeps = ent->NbIndependents(); //szv#4:S4163:12Mar99 i unused
   Standard_Integer nbDeps = ent->NbDependents();
 
-  S << "IGESDefs_TabularData" << Message_EndLine;
-  S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
-  S << "Property type : " << ent->PropertyType() << Message_EndLine;
-  S << "No. of Dependent variables    : " << nbDeps << Message_EndLine;
-  S << "No. of Independent variables  : " << nbIndeps << Message_EndLine;
-  S << "Type of independent variables : ";
-  IGESData_DumpVals(S ,level,1, nbIndeps,ent->TypeOfIndependents);
-  S << Message_EndLine << "Number of values of independent variables : ";
-  IGESData_DumpVals(S ,level,1, nbIndeps,ent->NbValues);
+  S << "IGESDefs_TabularData\n"
+    << "No. of property values : " << ent->NbPropertyValues() << "\n"
+    << "Property type : " << ent->PropertyType() << "\n"
+    << "No. of Dependent variables    : " << nbDeps << "\n"
+    << "No. of Independent variables  : " << nbIndeps << "\n"
+    << "Type of independent variables : ";
+  IGESData_DumpVals(S,level,1, nbIndeps,ent->TypeOfIndependents);
+  S << "\nNumber of values of independent variables : ";
+  IGESData_DumpVals(S,level,1, nbIndeps,ent->NbValues);
 // ?? JAGGED ??
-  S << Message_EndLine << "Values of the independent variable : ";
+  S << std::endl << "Values of the independent variable : ";
   if (level < 5) S << " [ask level > 4]";
   else {
     for (Standard_Integer ind = 1; ind <= nbIndeps; ind ++) {
-      S << Message_EndLine << "[" << ind << "]:";
+      S << std::endl << "[" << ind << "]:";
       Standard_Integer nbi = ent->NbValues(ind);
       for (Standard_Integer iv = 1; iv <= nbi; iv ++)
        S << " " << ent->IndependentValue(ind,iv);
     }
   }
-//  IGESData_DumpVals(,level,1, nbIndeps,ent->IndependentValue);
-  S << Message_EndLine << "Values of the dependent variable : ";
-//  IGESData_DumpVals(,level,1, nbDeps,ent->DependentValue);
-  S << "  TO BE DONE";
-  S << Message_EndLine;
+//  IGESData_DumpVals(aSender,level,1, nbIndeps,ent->IndependentValue);
+  S << std::endl << "Values of the dependent variable : ";
+//  IGESData_DumpVals(aSender,level,1, nbDeps,ent->DependentValue);
+  S << "  TO BE DONE"
+    << std::endl;
 }
index 5b156e2706c3506ca074e87ad7bb8aa2037c2bed..206de7a6c60904e2433f18164d379e9c3ef3ee41 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a TabularData. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDefs_TabularData)& entfrom, const Handle(IGESDefs_TabularData)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDefs_TabularData)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDefs_TabularData)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index c92dca5fa5e9b3037d91c8a4c0d2199cbf598f13..f42cbf7ebafc5da9bad60621beea2d75e8c0cfd6 100644 (file)
@@ -31,7 +31,6 @@
 #include <Interface_HArray1OfHAsciiString.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 #include <TColStd_HArray1OfReal.hxx>
@@ -153,29 +152,29 @@ void  IGESDefs_ToolUnitsData::OwnCheck
 
 void  IGESDefs_ToolUnitsData::OwnDump
   (const Handle(IGESDefs_UnitsData)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const 
+   Standard_OStream& S, const Standard_Integer level) const 
 { 
-  S << "IGESDefs_UnitsData" << Message_EndLine;
-  S << "Number of Units : " << ent->NbUnits() << Message_EndLine;
-  S << "Type of Unit : " << Message_EndLine;
-  S << "Value of Unit : " << Message_EndLine;
-  S << "Scale Factor : " << Message_EndLine;
+  S << "IGESDefs_UnitsData\n"
+    << "Number of Units : " << ent->NbUnits() << "\n"
+    << "Type of Unit :\n"
+    << "Value of Unit :\n"
+    << "Scale Factor :\n";
   IGESData_DumpStrings(S,-level,1, ent->NbUnits(),ent->UnitType);
-  S << Message_EndLine;
+  S << "\n";
   if (level > 4)
     {
-      S << "Details of the Units" << Message_EndLine;
+      S << "Details of the Units\n";
       Standard_Integer upper = ent->NbUnits();
       for (Standard_Integer i = 1; i <= upper; i++)
        {
           S << "[" << i << "] Type  : ";
           IGESData_DumpString(S,ent->UnitType(i));
-          S << Message_EndLine;
-          S << "     Value : ";
+          S << "\n"
+            << "     Value : ";
           IGESData_DumpString(S,ent->UnitValue(i));
-          S << Message_EndLine;
-          S << "     ScaleFactor: " << ent->ScaleFactor(i) << Message_EndLine;
+          S << "\n"
+            << "     ScaleFactor: " << ent->ScaleFactor(i) << "\n";
        }
     }
-  S << Message_EndLine;
+  S << std::endl;
 }
index ea5a62992db7e0a93e5613028d47887ac4d1b878..7a6c5e9260d9365376039239fa0794ec279e803d 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a UnitsData. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDefs_UnitsData)& entfrom, const Handle(IGESDefs_UnitsData)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDefs_UnitsData)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDefs_UnitsData)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 9dd3484b9efbeeb857b15130cc34e3d07b5f24f3..0fd7dfaf525bd34eab59c89e3f95760bf830dde4 100644 (file)
@@ -75,7 +75,7 @@ IGESDimen_SpecificModule::IGESDimen_SpecificModule()  {  }
 
     void  IGESDimen_SpecificModule::OwnDump
   (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
-   const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S,
+   const IGESData_IGESDumper& dumper, Standard_OStream& S,
    const Standard_Integer own) const 
 {
   switch (CN) {
index 29bdd57da1b7f79781e17078326667d4ad13c207..64d51a2af5e0299f19640043155f46a6747950b1 100644 (file)
@@ -25,8 +25,6 @@
 #include <Standard_Boolean.hxx>
 class IGESData_IGESEntity;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 class IGESDimen_SpecificModule;
 DEFINE_STANDARD_HANDLE(IGESDimen_SpecificModule, IGESData_SpecificModule)
@@ -43,7 +41,7 @@ public:
   Standard_EXPORT IGESDimen_SpecificModule();
   
   //! Specific Dump (own parameters) for IGESDimen
-  Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const Standard_OVERRIDE;
+  Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const Standard_OVERRIDE;
   
   //! Performs non-ambiguous Corrections on Entities which support
   //! them (BasicDimension,CenterLine,DimensionDisplayData,
index 699b06f6f38b58aeb3fb48934e9b674c39db2737..01bd4ed74fec574c7e52efe77825f0e21a6833ac 100644 (file)
@@ -143,28 +143,28 @@ void  IGESDimen_ToolAngularDimension::OwnCheck
 
 void  IGESDimen_ToolAngularDimension::OwnDump
   (const Handle(IGESDimen_AngularDimension)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const 
+   Standard_OStream& S, const Standard_Integer level) const 
 { 
   Standard_Integer sublevel  = (level > 4) ? 1 : 0;
 
-  S << "IGESDimen_AngularDimension" << Message_EndLine;
-  S << "General Note Entity   : ";
+  S << "IGESDimen_AngularDimension\n"
+    << "General Note Entity   : ";
   dumper.Dump(ent->Note(),S, sublevel);
-  S << Message_EndLine;
-  S << "First  Witness Entity : ";
+  S << "\n"
+    << "First  Witness Entity : ";
   dumper.Dump(ent->FirstWitnessLine(),S, sublevel);
-  S << Message_EndLine;
-  S << "Second Witness Entity : ";
+  S << "\n"
+    << "Second Witness Entity : ";
   dumper.Dump(ent->SecondWitnessLine(),S, sublevel);
-  S << Message_EndLine;
-  S << "Vertex Point Co-ords  : ";
-  IGESData_DumpXYL(S,level, ent->Vertex(), ent->Location());  S << Message_EndLine;
-  S << "Radius of Leader arcs : " << ent->Radius() << Message_EndLine;
-  S << "First  Leader Entity  : ";
+  S << "\n"
+    << "Vertex Point Co-ords  : ";
+  IGESData_DumpXYL(S,level, ent->Vertex(), ent->Location());  S << "\n";
+  S << "Radius of Leader arcs : " << ent->Radius() << "\n"
+    << "First  Leader Entity  : ";
   dumper.Dump(ent->FirstLeader(),S, sublevel);
-  S << Message_EndLine;
-  S << "Second Leader Entity  : ";
+  S << "\n"
+    << "Second Leader Entity  : ";
   dumper.Dump(ent->SecondLeader(),S, sublevel);
-  S << Message_EndLine;
+  S << std::endl;
 }
 
index 3894a253e957b7bebb0eb511e709db11c9fde29b..c36a577c7703c18188901e6281c900f6f395b7f8 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a AngularDimension. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_AngularDimension)& entfrom, const Handle(IGESDimen_AngularDimension)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_AngularDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_AngularDimension)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index b440d4a5a23b792a30e6ee081108b7717d9870f7..7ca95b5a0c3e7e24b0e8d5b358314d172eaedb0c 100644 (file)
@@ -119,18 +119,18 @@ void  IGESDimen_ToolBasicDimension::OwnCheck
 
 void  IGESDimen_ToolBasicDimension::OwnDump
   (const Handle(IGESDimen_BasicDimension)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
+   Standard_OStream& S, const Standard_Integer /* level */) const
 { 
-  S << "IGESDimen_BasicDimension" << Message_EndLine;
-  S << "Number of Property Values : " << ent->NbPropertyValues() << Message_EndLine;
-  S << Message_EndLine << "  Lower left corner  : " ;
+  S << "IGESDimen_BasicDimension\n"
+    << "Number of Property Values : " << ent->NbPropertyValues() << "\n\n"
+    << "  Lower left corner  : " ;
   IGESData_DumpXY(S, ent->LowerLeft());
-  S << Message_EndLine << "  Lower right corner : " ;
+  S << "\n  Lower right corner : " ;
   IGESData_DumpXY(S, ent->LowerRight());
-  S << Message_EndLine << "  Upper right corner : " ;
+  S << "\n  Upper right corner : " ;
   IGESData_DumpXY(S, ent->UpperRight());
-  S << Message_EndLine << "  Upper left corner  : ";
+  S << "\n  Upper left corner  : ";
   IGESData_DumpXY(S, ent->UpperLeft());
-  S << Message_EndLine;
+  S << std::endl;
 }
 
index a7ea6531cce2db19ffbe98ac6e7a1470c7e1d93b..98d9529021a81e9b11eda0a37c9a9ac1b468ca81 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a BasicDimension. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_BasicDimension)& entfrom, const Handle(IGESDimen_BasicDimension)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_BasicDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_BasicDimension)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index e4334fd388c6d0e9d517083b501d21906fb6f96b..e67cfbd9fc8b29a67e84e67a92abe538d9d99ae9 100644 (file)
@@ -157,16 +157,16 @@ void  IGESDimen_ToolCenterLine::OwnCheck
 
 void  IGESDimen_ToolCenterLine::OwnDump
   (const Handle(IGESDimen_CenterLine)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const 
+   Standard_OStream& S, const Standard_Integer level) const 
 { 
-  S << "IGESDimen_CenterLine" << Message_EndLine;
-  if (ent->IsCrossHair()) S << "Cross Hair" << Message_EndLine;
-  else                    S << "Through Circle Centers" << Message_EndLine;
-  S << "Data Type : "             << ent->Datatype() << "  ";
-  S << "Number of Data Points : " << ent->NbPoints()  << "  ";
-  S << "Common Z displacement : " << ent->ZDisplacement() << "  ";
-  S << "Data Points : " << Message_EndLine;
-  IGESData_DumpListXYLZ(S ,level,1, ent->NbPoints(),ent->Point,
+  S << "IGESDimen_CenterLine\n";
+  if (ent->IsCrossHair()) S << "Cross Hair\n";
+  else                    S << "Through Circle Centers\n";
+  S << "Data Type : "             << ent->Datatype() << "  "
+    << "Number of Data Points : " << ent->NbPoints()  << "  "
+    << "Common Z displacement : " << ent->ZDisplacement() << "  "
+    << "Data Points :\n";
+  IGESData_DumpListXYLZ(S,level,1, ent->NbPoints(),ent->Point,
                        ent->Location(), ent->ZDisplacement());
-  S << Message_EndLine;
+  S << std::endl;
 }
index 7211c3100413cc034a9581c8028d9b7aa3c06e9f..04badadcc6d268240fca13c5a216bd697da24f79 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a CenterLine. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_CenterLine)& entfrom, const Handle(IGESDimen_CenterLine)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_CenterLine)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_CenterLine)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index e3b4314403bbf05bcd3b3adaac3845fc830066df..75490ef5c9c0aa83a51199e54381b19b35d97cd2 100644 (file)
@@ -153,30 +153,30 @@ void  IGESDimen_ToolCurveDimension::OwnCheck
 
 void  IGESDimen_ToolCurveDimension::OwnDump
   (const Handle(IGESDimen_CurveDimension)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const 
+   Standard_OStream& S, const Standard_Integer level) const 
 { 
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
 
-  S << "IGESDimen_CurveDimension" << Message_EndLine;
-  S << "General Note Entity   : ";
+  S << "IGESDimen_CurveDimension\n"
+    << "General Note Entity   : ";
   dumper.Dump(ent->Note(),S, sublevel);
-  S << Message_EndLine;
-  S << "First  Curve   Entity : ";
+  S << "\n"
+    << "First  Curve   Entity : ";
   dumper.Dump(ent->FirstCurve(),S, sublevel);
-  S << Message_EndLine;
-  S << "Second Curve   Entity : ";
+  S << "\n"
+    << "Second Curve   Entity : ";
   dumper.Dump(ent->SecondCurve(),S, sublevel);
-  S << Message_EndLine;
-  S << "First  Leader  Entity : ";
+  S << "\n"
+    << "First  Leader  Entity : ";
   dumper.Dump(ent->FirstLeader(),S, sublevel);
-  S << Message_EndLine;
-  S << "Second Leader  Entity : ";
+  S << "\n"
+    << "Second Leader  Entity : ";
   dumper.Dump(ent->SecondLeader(),S, sublevel);
-  S << Message_EndLine;
-  S << "First  Witness Entity : ";
+  S << "\n"
+    << "First  Witness Entity : ";
   dumper.Dump(ent->FirstWitnessLine(),S, sublevel);
-  S << Message_EndLine;
-  S << "Second Witness Entity : ";
+  S << "\n"
+    << "Second Witness Entity : ";
   dumper.Dump(ent->SecondWitnessLine(),S, sublevel);
-  S << Message_EndLine;
+  S << std::endl;
 }
index 66a9d1b5308076c4b234e52e663f9f407cd211bf..32c4d14139b8c036c7e183088d304dc0dfb96b0a 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a CurveDimension. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_CurveDimension)& entfrom, const Handle(IGESDimen_CurveDimension)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_CurveDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_CurveDimension)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 56082c2944140e1fd069e6b955eff2bca8924b98..04aafef6180eaf18413c3f08d4419f454cfd50aa 100644 (file)
@@ -119,22 +119,22 @@ void  IGESDimen_ToolDiameterDimension::OwnCheck
 
 void  IGESDimen_ToolDiameterDimension::OwnDump
   (const Handle(IGESDimen_DiameterDimension)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const 
+   Standard_OStream& S, const Standard_Integer level) const 
 { 
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
 
-  S << "IGESDimen_DiameterDimension" << Message_EndLine;
-  S << "General Note Entity : ";
+  S << "IGESDimen_DiameterDimension\n"
+    << "General Note Entity : ";
   dumper.Dump(ent->Note(),S, sublevel);
-  S << Message_EndLine;
-  S << "First  Leader Entity : ";
+  S << "\n"
+    << "First  Leader Entity : ";
   dumper.Dump(ent->FirstLeader(),S, sublevel);
-  S << Message_EndLine;
-  S << "Second Leader Entity : ";
+  S << "\n"
+    << "Second Leader Entity : ";
   dumper.Dump(ent->SecondLeader(),S, sublevel);
-  S << Message_EndLine;
-  S << "Center Point : ";
+  S << "\n"
+    << "Center Point : ";
   IGESData_DumpXYL(S,level, ent->Center(), ent->Location());
-  S << Message_EndLine;
+  S << std::endl;
 }
 
index 14489ee3190a5336033ba08676cfbcf1dcf77fbd..681f73d09ec0b41d60a7056a0e22c40783ee2b89 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a DiameterDimension. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_DiameterDimension)& entfrom, const Handle(IGESDimen_DiameterDimension)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_DiameterDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_DiameterDimension)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 0802eea002746aed7ba468a8a6746a29459b1915..3d339a67ee57d4e8767d6b8f769da6dd9302f432 100644 (file)
@@ -269,90 +269,87 @@ void  IGESDimen_ToolDimensionDisplayData::OwnCheck
 
 void  IGESDimen_ToolDimensionDisplayData::OwnDump
   (const Handle(IGESDimen_DimensionDisplayData)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESDimen_DimensionDisplayData" << Message_EndLine;
-
-  S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
-
-  S << "DimensionType : "  << ent->DimensionType() ;
+  S << "IGESDimen_DimensionDisplayData\n"
+    << "No. of property values : " << ent->NbPropertyValues() << "\n"
+    << "DimensionType : "  << ent->DimensionType() ;
   switch (ent->DimensionType()) {
-    case 0  :  S << " (Ordinary)"  << Message_EndLine;  break;
-    case 1  :  S << " (Reference)" << Message_EndLine;  break;
-    case 2  :  S << " (Basic)"     << Message_EndLine;  break;
-    default :  S << " (Incorrect Value)" << Message_EndLine;  break;
+    case 0  :  S << " (Ordinary)\n";  break;
+    case 1  :  S << " (Reference)\n"; break;
+    case 2  :  S << " (Basic)\n";     break;
+    default :  S << " (Incorrect Value)\n"; break;
   }
 
   S << "Preferred Label Position : "  << ent->LabelPosition();
   switch (ent->LabelPosition()) {
-    case 0  :  S << " (Does not exist)"     << Message_EndLine;  break;
-    case 1  :  S << " (Before Measurement)" << Message_EndLine;  break;
-    case 2  :  S << " (After Measurement)"  << Message_EndLine;  break;
-    case 3  :  S << " (Above Measurement)"  << Message_EndLine;  break;
-    case 4  :  S << " (Below Measurement)"  << Message_EndLine;  break;
-    default :  S << " (Incorrect Value)"    << Message_EndLine;  break;
+    case 0  :  S << " (Does not exist)\n";     break;
+    case 1  :  S << " (Before Measurement)\n"; break;
+    case 2  :  S << " (After Measurement)\n";  break;
+    case 3  :  S << " (Above Measurement)\n";  break;
+    case 4  :  S << " (Below Measurement)\n";  break;
+    default :  S << " (Incorrect Value)\n";    break;
   }
 
   S << "Character set interpretation : " << ent->CharacterSet() ;
   switch (ent->CharacterSet()) 
     {
-    case 1    : S << " (Standard ASCII)" << Message_EndLine; break;
-    case 1001 : S << " (Symbol Font 1)" << Message_EndLine; break;
-    case 1002 : S << " (Symbol Font 2)" << Message_EndLine; break;
-    case 1003 : S << " (Drafting Font)" << Message_EndLine; break;
-    default   : S << " (Not meaningful)" << Message_EndLine; break;
+    case 1    : S << " (Standard ASCII)\n"; break;
+    case 1001 : S << " (Symbol Font 1)\n";  break;
+    case 1002 : S << " (Symbol Font 2)\n";  break;
+    case 1003 : S << " (Drafting Font)\n";  break;
+    default   : S << " (Not meaningful)\n"; break;
   }
 
   S << "LString : ";
   IGESData_DumpString(S,ent->LString());
-  S << Message_EndLine;
-
-  S << "Decimal Symbol : ";
-  if (ent->DecimalSymbol() == 0)  S << "0 (.)" << Message_EndLine;
-  else                            S << "1 (,)" << Message_EndLine;
+  S << "\n"
+    << "Decimal Symbol : ";
+  if (ent->DecimalSymbol() == 0)  S << "0 (.)\n";
+  else                            S << "1 (,)\n";
 
-  S << "Witness Line Angle : " << ent->WitnessLineAngle() << Message_EndLine;
-  S << "Text Alignment : " ;
-  if      (ent->TextAlignment() == 0 )    S << "0 (Horizontal)" << Message_EndLine;
-  else if (ent->TextAlignment() == 1 )    S << "1 (Parallel)" << Message_EndLine;
-  else     S <<  ent->TextAlignment() << " (Incorrect Value)" << Message_EndLine;
+  S << "Witness Line Angle : " << ent->WitnessLineAngle() << "\n"
+    << "Text Alignment : " ;
+  if      (ent->TextAlignment() == 0 )    S << "0 (Horizontal)\n";
+  else if (ent->TextAlignment() == 1 )    S << "1 (Parallel)\n";
+  else     S <<  ent->TextAlignment() << " (Incorrect Value)\n";
 
   S << "Text Level : " << ent->TextLevel();
   switch (ent->TextLevel()) {
-    case 0  :  S << " (Neither above nor below)" << Message_EndLine;  break;
-    case 1  :  S << " (Above)"                   << Message_EndLine;  break;
-    case 2  :  S << " (Below)"                   << Message_EndLine;  break;
-    default :  S << " (Incorrect Value)"         << Message_EndLine;  break;
+    case 0  :  S << " (Neither above nor below)\n"; break;
+    case 1  :  S << " (Above)\n"; break;
+    case 2  :  S << " (Below)\n"; break;
+    default :  S << " (Incorrect Value)\n"; break;
   }
 
   S << "Preferred Text placement : " << ent->TextPlacement();
   switch (ent->TextPlacement()) {
-    case 0  :  S << " (Between witness lines)"               << Message_EndLine;  break;
-    case 1  :  S << " (Outside near the first witness line)" << Message_EndLine;  break;
-    case 2  :  S << " (Outside near second witness line)"    << Message_EndLine;  break;
-    default :  S << " (Incorrect Value)"                     << Message_EndLine;  break;
+    case 0  :  S << " (Between witness lines)\n"; break;
+    case 1  :  S << " (Outside near the first witness line)\n"; break;
+    case 2  :  S << " (Outside near second witness line)\n"; break;
+    default :  S << " (Incorrect Value)\n"; break;
   }
 
   S << "Arrow Head Orientation : "  << ent->ArrowHeadOrientation();
-  if      (ent->ArrowHeadOrientation() == 0) S << " (In, pointing out)" <<Message_EndLine;
-  else if (ent->ArrowHeadOrientation() == 1) S << " (Out, pointing in)" <<Message_EndLine;
-  else                                       S << " (Incorrect Value)" << Message_EndLine;
+  if      (ent->ArrowHeadOrientation() == 0) S << " (In, pointing out)\n";
+  else if (ent->ArrowHeadOrientation() == 1) S << " (Out, pointing in)\n";
+  else                                       S << " (Incorrect Value)\n";
 
   Standard_Integer nbnotes = ent->NbSupplementaryNotes();
-  S << " Primary Dimension Value : " << ent->InitialValue() << Message_EndLine;
-  S << " Number of Supplementary Notes : " << nbnotes <<Message_EndLine;
-  S << "Supplementary Notes , ";
-  S << " Start Index , ";
-  S << " End   Index : " << Message_EndLine;
+  S << " Primary Dimension Value : " << ent->InitialValue() << "\n"
+    << " Number of Supplementary Notes : " << nbnotes << "\n"
+    << "Supplementary Notes , "
+    << " Start Index , "
+    << " End   Index :\n";
   IGESData_DumpVals(S,-level,1, nbnotes,ent->EndIndex);
-  S << Message_EndLine;
+  S << "\n";
   if (level > 4)
     for (Standard_Integer i = 1; i <= nbnotes; i ++)
       {
-       S << "[" << i << "]: " << Message_EndLine;
-       S << "Supplementary Note : " << ent->SupplementaryNote(i);
-       S << ", Start Index : " << ent->StartIndex(i);
-       S << ", End Index : "   << ent->EndIndex(i) << Message_EndLine;
+       S << "[" << i << "]:\n"
+         << "Supplementary Note : " << ent->SupplementaryNote(i)
+         << ", Start Index : " << ent->StartIndex(i)
+         << ", End Index : "   << ent->EndIndex(i) << "\n";
       }
-  S << Message_EndLine;
+  S << std::endl;
 }
index 4da8605a02551a0d67b2ab7ca688ca2b9822bcbd..7d6cdb2b0622d42f25551bfb351299e94f7d3263 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a DimensionDisplayData. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_DimensionDisplayData)& entfrom, const Handle(IGESDimen_DimensionDisplayData)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_DimensionDisplayData)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_DimensionDisplayData)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 6c0e43659a87efedfcd90a0d136314385f8d3046..47a0f5af18b1bd1d6ac813547a6717918b461924 100644 (file)
@@ -153,17 +153,17 @@ void  IGESDimen_ToolDimensionTolerance::OwnCheck
 
 void  IGESDimen_ToolDimensionTolerance::OwnDump
   (const Handle(IGESDimen_DimensionTolerance)& ent, const IGESData_IGESDumper& /*dumper*/,
-   const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+   Standard_OStream& S, const Standard_Integer /*level*/) const
 {
-  S << "IGESDimen_DimensionTolerance" << Message_EndLine;
-  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
-  S << "Secondary Tolerance Flag : " << ent->SecondaryToleranceFlag() << Message_EndLine;
-  S << "Tolerance Type           : " << ent->ToleranceType() << Message_EndLine;
-  S << "Tolerance Placement Flag : " << ent->TolerancePlacementFlag() << Message_EndLine;
-  S << "Upper Tolerance          : " << ent->UpperTolerance() << Message_EndLine;
-  S << "Lower Tolerance          : " << ent->LowerTolerance() << Message_EndLine;
-  S << "Sign Suppression Flag    : " << ( ent->SignSuppressionFlag() ? "True" : "False" ) << Message_EndLine;
-  S << "Fraction Flag            : " << ent->FractionFlag() << Message_EndLine;
-  S << "Precision                : " << ent->Precision() << Message_EndLine;
+  S << "IGESDimen_DimensionTolerance\n"
+    << "Number of property values : " << ent->NbPropertyValues() << "\n"
+    << "Secondary Tolerance Flag : " << ent->SecondaryToleranceFlag() << "\n"
+    << "Tolerance Type           : " << ent->ToleranceType() << "\n"
+    << "Tolerance Placement Flag : " << ent->TolerancePlacementFlag() << "\n"
+    << "Upper Tolerance          : " << ent->UpperTolerance() << "\n"
+    << "Lower Tolerance          : " << ent->LowerTolerance() << "\n"
+    << "Sign Suppression Flag    : " << ( ent->SignSuppressionFlag() ? "True" : "False" ) << "\n"
+    << "Fraction Flag            : " << ent->FractionFlag() << "\n"
+    << "Precision                : " << ent->Precision() << std::endl;
 }
 
index 32f0ffe8892640f9aa041d35a7b2abfc6fd8b304..b7f675e4e7a4b048b2cb3b6883bb6f819535e7bd 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a DimensionTolerance. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_DimensionTolerance)& entfrom, const Handle(IGESDimen_DimensionTolerance)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_DimensionTolerance)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_DimensionTolerance)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index beeddd408fec24bba68bbab1bd5756f8cab31102..653bf09d8d5e0c12a3078a37bd464e6cb1ccf918 100644 (file)
@@ -149,18 +149,18 @@ void  IGESDimen_ToolDimensionUnits::OwnCheck
 
 void  IGESDimen_ToolDimensionUnits::OwnDump
   (const Handle(IGESDimen_DimensionUnits)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
+   Standard_OStream& S, const Standard_Integer /* level */) const
 {
-  S << "IGESDimen_DimensionUnits" << Message_EndLine;
-  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
-  S << "Secondary Dimension Position : " << ent->SecondaryDimenPosition() << Message_EndLine;
-  S << "Units Indicator : " << ent->UnitsIndicator() << Message_EndLine;
-  S << "Character Set   : " << ent->CharacterSet() << Message_EndLine;
-  S << "Format String   : ";
+  S << "IGESDimen_DimensionUnits\n"
+    << "Number of property values : " << ent->NbPropertyValues() << "\n"
+    << "Secondary Dimension Position : " << ent->SecondaryDimenPosition() << "\n"
+    << "Units Indicator : " << ent->UnitsIndicator() << "\n"
+    << "Character Set   : " << ent->CharacterSet() << "\n"
+    << "Format String   : ";
   IGESData_DumpString(S,ent->FormatString());
-  S << Message_EndLine;
-  S << "Fraction Flag   : " << ent->FractionFlag();
+  S << "\n"
+    << "Fraction Flag   : " << ent->FractionFlag();
   if (ent->FractionFlag() == 0) S << " Decimal  , Precision   : ";
   else                          S << " Fraction , Denominator : ";
-  S << ent->PrecisionOrDenominator() << Message_EndLine;
+  S << ent->PrecisionOrDenominator() << std::endl;
 }
index 3ea10e7c5e3b558fae22fb3162cf736a3b40aa74..da61ff6d5e0270f77f1b673a0e872b0073e9f4de 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a DimensionUnits. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_DimensionUnits)& entfrom, const Handle(IGESDimen_DimensionUnits)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_DimensionUnits)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_DimensionUnits)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 7d1b01a590bb58ce02a0c95e3ecd17cc78818955..b67e7e3271a6a86b833c17a8e0774761df44c738 100644 (file)
@@ -32,7 +32,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
 IGESDimen_ToolDimensionedGeometry::IGESDimen_ToolDimensionedGeometry ()    {  }
@@ -147,18 +146,18 @@ void  IGESDimen_ToolDimensionedGeometry::OwnCheck
 
 void  IGESDimen_ToolDimensionedGeometry::OwnDump
   (const Handle(IGESDimen_DimensionedGeometry)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)&  S, const Standard_Integer level) const 
+   Standard_OStream&  S, const Standard_Integer level) const 
 { 
-  S << "IGESDimen_DimensionedGeometry" << Message_EndLine;
+  S << "IGESDimen_DimensionedGeometry\n";
 
   //Standard_Integer lower = 1; //szv#4:S4163:12Mar99 unused
 //  Standard_Integer upper = ent->NbGeometryEntities();
 
-  S << "Number of Dimensions : " << ent->NbDimensions() << Message_EndLine;
-  S << "Dimension Entity : ";
+  S << "Number of Dimensions : " << ent->NbDimensions() << "\n"
+    << "Dimension Entity : ";
   dumper.Dump(ent->DimensionEntity(),S,(level <= 4) ? 0 : 1);
-  S << Message_EndLine;
-  S << "Geometry Entities : ";
+  S << "\n"
+    << "Geometry Entities : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbGeometryEntities(),ent->GeometryEntity);
-  S << Message_EndLine;
+  S << std::endl;
 }
index 5908793944f469f48a0cdd14e697cd1d62008ac6..62703d8cab93dd81daea0693c9b3d74c19f19396 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a DimensionedGeometry. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_DimensionedGeometry)& entfrom, const Handle(IGESDimen_DimensionedGeometry)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_DimensionedGeometry)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_DimensionedGeometry)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index f6ff3857680d7d2309a5103774c817844a182290..355525a5bc3f04b450f18d5a7b8e3a0a7a2efcdb 100644 (file)
@@ -34,7 +34,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
 IGESDimen_ToolFlagNote::IGESDimen_ToolFlagNote ()    {  }
@@ -148,18 +147,18 @@ void  IGESDimen_ToolFlagNote::OwnCheck
 
 void  IGESDimen_ToolFlagNote::OwnDump
   (const Handle(IGESDimen_FlagNote)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const 
+   Standard_OStream& S, const Standard_Integer level) const 
 { 
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
 
-  S << "IGESDimen_FlagNote" << Message_EndLine;
-  S << "LowerLeftCorner : ";
+  S << "IGESDimen_FlagNote\n"
+    << "LowerLeftCorner : ";
   IGESData_DumpXYZL(S,level, ent->LowerLeftCorner(), ent->Location());
-  S << Message_EndLine << "Rotation Angle: " << ent->Angle() << Message_EndLine;
-  S << "General Note Entity : ";
+  S << "\nRotation Angle: " << ent->Angle() << "\n"
+    << "General Note Entity : ";
   dumper.Dump(ent->Note(),S, sublevel);
-  S << Message_EndLine;
-  S << "Number of Leaders : " << ent->NbLeaders() << "   Leaders : ";
+  S << "\n"
+    << "Number of Leaders : " << ent->NbLeaders() << "   Leaders : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbLeaders(),ent->Leader);
-  S << Message_EndLine;
+  S << std::endl;
 }
index 1e9f41ec4b4342829239c69d48848cc26f9008b8..83ce5b0be8a7d6c6aeb0c3c5772900529d2d337e 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a FlagNote. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_FlagNote)& entfrom, const Handle(IGESDimen_FlagNote)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_FlagNote)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_FlagNote)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 5b57e17b539d08486b1d8b4a2aef1bfe705924cf..a90e2d516bfa706e481199b62b2e3173db259ee8 100644 (file)
@@ -129,17 +129,17 @@ void  IGESDimen_ToolGeneralLabel::OwnCheck
 
 void  IGESDimen_ToolGeneralLabel::OwnDump
   (const Handle(IGESDimen_GeneralLabel)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const 
+   Standard_OStream& S, const Standard_Integer level) const 
 { 
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
 
-  S << "IGESDimen_GeneralLabel" << Message_EndLine;
-  S << "General Note Entity : ";
+  S << "IGESDimen_GeneralLabel\n"
+    << "General Note Entity : ";
   dumper.Dump(ent->Note(),S, sublevel);
-  S << Message_EndLine;
-  S << "Number of Leaders : " << ent->NbLeaders() << Message_EndLine;
-  S << "Leaders : "; 
+  S << "\n"
+    << "Number of Leaders : " << ent->NbLeaders() << "\n"
+    << "Leaders : "; 
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbLeaders(),ent->Leader);
-  S << Message_EndLine;
+  S << std::endl;
 }
 
index f841d074e26b3426c2fce901b79c8e27ad7f55d9..990e3ef5472716ce2b3178cfe4d9a8b69e36b38b 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a GeneralLabel. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_GeneralLabel)& entfrom, const Handle(IGESDimen_GeneralLabel)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_GeneralLabel)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_GeneralLabel)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index b8f04fcf04bf4b56634b5458599033f756859ea5..4f72799f3c6eaaf10d1ef91a6cab271bcb1e6055 100644 (file)
@@ -332,53 +332,53 @@ void  IGESDimen_ToolGeneralNote::OwnCheck
 
 void  IGESDimen_ToolGeneralNote::OwnDump
   (const Handle(IGESDimen_GeneralNote)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const 
+   Standard_OStream& S, const Standard_Integer level) const 
 { 
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
   Standard_Integer upper = ent->NbStrings();
 
-  S << "IGESDimen_GeneralNote" << Message_EndLine;
-  S << "Number of Text Strings : " << upper << Message_EndLine;
-  S << "Number of Characters : " << Message_EndLine;
-  S << "Box Widths : " << Message_EndLine;
-  S << "Box Heights : " << Message_EndLine;
-  S << "Font Codes : " << Message_EndLine;
-  S << "Font Entities : " << Message_EndLine;
-  S << "Slant Angles : " << Message_EndLine;
-  S << "Rotation Angles : " << Message_EndLine;
-  S << "Mirror Flags : " << Message_EndLine;
-  S << "Rotate Flags : " << Message_EndLine;
-  S << "Start Points : " << Message_EndLine;
-  S << "Texts : ";
+  S << "IGESDimen_GeneralNote\n"
+    << "Number of Text Strings : " << upper << "\n"
+    << "Number of Characters :\n"
+    << "Box Widths :\n"
+    << "Box Heights :\n"
+    << "Font Codes :\n"
+    << "Font Entities :\n"
+    << "Slant Angles :\n"
+    << "Rotation Angles :\n"
+    << "Mirror Flags :\n"
+    << "Rotate Flags :\n"
+    << "Start Points :\n"
+    << "Texts : ";
   IGESData_DumpVals(S,-level,1, ent->NbStrings(),ent->NbCharacters);
-  S << Message_EndLine;
+  S << "\n";
   if (level > 4)
     {
-      S << "Details of each String" << Message_EndLine;
+      S << "Details of each String\n";
       for ( Standard_Integer i = 1; i <= upper; i++)
        {
-          S << "[" << i << "]: " << Message_EndLine;
-          S << "Number of Characters : " << ent->NbCharacters(i) << "  ";
-          S << "Box Width  : " << ent->BoxWidth(i)  << "  ";
-          S << "Box Height : " << ent->BoxHeight(i) << Message_EndLine;
+          S << "[" << i << "]:\n"
+            << "Number of Characters : " << ent->NbCharacters(i) << "  "
+            << "Box Width  : " << ent->BoxWidth(i)  << "  "
+            << "Box Height : " << ent->BoxHeight(i) << "\n";
           if (ent->IsFontEntity(i))
            {
               S << "Font Entity : ";
               dumper.Dump (ent->FontEntity(i),S, sublevel);
-              S << Message_EndLine;
+              S << "\n";
            }
           else
-           S << "Font Code : " << ent->FontCode(i) << Message_EndLine;
-          S << "Slant Angle : " << ent->SlantAngle(i) << "  ";
-          S << "Rotation Angle : " << ent->RotationAngle(i) << "  ";
-          S << "Mirror Flag : " << ent->MirrorFlag(i) << "  ";
-          S << "Rotate Flag : " << ent->RotateFlag(i) << Message_EndLine;
-          << "Start Point : ";
+           S << "Font Code : " << ent->FontCode(i) << "\n"
+          << "Slant Angle : " << ent->SlantAngle(i) << "  "
+          << "Rotation Angle : " << ent->RotationAngle(i) << "  "
+          << "Mirror Flag : " << ent->MirrorFlag(i) << "  "
+          << "Rotate Flag : " << ent->RotateFlag(i) << "\n"
+          << "Start Point : ";
           IGESData_DumpXYZL(S,level, ent->StartPoint(i), ent->Location());
           S << "\nText : ";
           IGESData_DumpString(S,ent->Text(i));
-          S << Message_EndLine;
+          S << "\n";
        }
     }
-  S << Message_EndLine;
+  S << std::endl;
 }
index c1c0debc7161c2aeb670899911460babda777e71..712c4745a0192d266a8bef137f8d333d1d8fe2be 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a GeneralNote. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_GeneralNote)& entfrom, const Handle(IGESDimen_GeneralNote)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_GeneralNote)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_GeneralNote)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 869047e0c74036820c50dd64a8d1757d9dd736dc..b313127b1482ec962cb1d2f9119cc1402ee322ce 100644 (file)
@@ -173,15 +173,15 @@ void  IGESDimen_ToolGeneralSymbol::OwnCheck
 
 void  IGESDimen_ToolGeneralSymbol::OwnDump
   (const Handle(IGESDimen_GeneralSymbol)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
-  S << "IGESDimen_GeneralSymbol" << Message_EndLine;
-  S << "General Note : ";
+  S << "IGESDimen_GeneralSymbol\n"
+    << "General Note : ";
   dumper.Dump(ent->Note(),S, sublevel);
-  S << Message_EndLine << "Geometric Entities : ";
+  S << "\nGeometric Entities : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbGeomEntities(),ent->GeomEntity);
-  S << Message_EndLine << "Leader Arrows : ";
+  S << "\nLeader Arrows : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbLeaders(),ent->LeaderArrow);
-  S << Message_EndLine;
+  S << std::endl;
 }
index 5c890de71e44d10717d990fdff8db7abc054a8f0..1e32272e7ce0dc4399edd49d4461028362e9bcd4 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a GeneralSymbol. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_GeneralSymbol)& entfrom, const Handle(IGESDimen_GeneralSymbol)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_GeneralSymbol)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_GeneralSymbol)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 47d5e0a8aa93225391ba55655028719bcc7f850c..8745ad73b98aac67eca84d68e1eedb7f1b40289b 100644 (file)
@@ -32,7 +32,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 #include <TColgp_HArray1OfXY.hxx>
 
@@ -142,17 +141,17 @@ void  IGESDimen_ToolLeaderArrow::OwnCheck
 
 void  IGESDimen_ToolLeaderArrow::OwnDump
   (const Handle(IGESDimen_LeaderArrow)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const 
+   Standard_OStream& S, const Standard_Integer level) const 
 { 
-  S << "IGESDimen_LeaderArrow" << Message_EndLine;
-  S << "Number of Segments : " << ent->NbSegments() << Message_EndLine;
-  S << "Arrowhead Height   : " << ent->ArrowHeadHeight() << Message_EndLine;
-  S << "Arrowhead Width    : " << ent->ArrowHeadWidth() << Message_EndLine;
-  S << "Z depth            : " << ent->ZDepth() << Message_EndLine;
-  S << "Arrowhead co-ords  : ";
+  S << "IGESDimen_LeaderArrow\n"
+    << "Number of Segments : " << ent->NbSegments() << "\n"
+    << "Arrowhead Height   : " << ent->ArrowHeadHeight() << "\n"
+    << "Arrowhead Width    : " << ent->ArrowHeadWidth() << "\n"
+    << "Z depth            : " << ent->ZDepth() << "\n"
+    << "Arrowhead co-ords  : ";
   IGESData_DumpXYLZ(S,level,ent->ArrowHead(),ent->Location(),ent->ZDepth());
-  S << Message_EndLine << "Segment Tails : "; 
-  IGESData_DumpListXYLZ(S ,level,1, ent->NbSegments(),ent->SegmentTail,
+  S << "\nSegment Tails : "; 
+  IGESData_DumpListXYLZ(S,level,1, ent->NbSegments(),ent->SegmentTail,
                        ent->Location(), ent->ZDepth());
-  S << Message_EndLine;
+  S << std::endl;
 }
index 56dc806a843d80fada159a635b873a460ab1f774..842e37525b248a3536a9320dbbd60dcfc3956e21 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a LeaderArrow. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_LeaderArrow)& entfrom, const Handle(IGESDimen_LeaderArrow)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_LeaderArrow)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_LeaderArrow)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index ec976812db3db3f3da5a1d52708610efa63252b6..b5397089696b5b4a89101e198efccf967fc12bac 100644 (file)
@@ -32,7 +32,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
 IGESDimen_ToolLinearDimension::IGESDimen_ToolLinearDimension ()    {  }
@@ -130,28 +129,28 @@ void  IGESDimen_ToolLinearDimension::OwnCheck
 
 void  IGESDimen_ToolLinearDimension::OwnDump
   (const Handle(IGESDimen_LinearDimension)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const 
+   Standard_OStream& S, const Standard_Integer level) const 
 { 
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
 
-  S << "IGESDimen_LinearDimension" << Message_EndLine;
-  if      (ent->FormNumber() == 0) S << "     (Undetermined Form)" << Message_EndLine;
-  else if (ent->FormNumber() == 1) S << "     (Diameter Form)" << Message_EndLine;
-  else if (ent->FormNumber() == 2) S << "     (Radius Form)" << Message_EndLine;
+  S << "IGESDimen_LinearDimension\n";
+  if      (ent->FormNumber() == 0) S << "     (Undetermined Form)\n";
+  else if (ent->FormNumber() == 1) S << "     (Diameter Form)\n";
+  else if (ent->FormNumber() == 2) S << "     (Radius Form)\n";
   S << "General Note Entity : ";
   dumper.Dump(ent->Note(),S, sublevel);
-  S << Message_EndLine;
-  S << "First  Leader  Entity : ";
+  S << "\n"
+    << "First  Leader  Entity : ";
   dumper.Dump(ent->FirstLeader(),S, sublevel);
-  S << Message_EndLine;
-  S << "Second Leader  Entity : ";
+  S << "\n"
+    << "Second Leader  Entity : ";
   dumper.Dump(ent->SecondLeader(),S, sublevel);
-  S << Message_EndLine;
-  S << "First  Witness Entity : ";
+  S << "\n"
+    << "First  Witness Entity : ";
   dumper.Dump(ent->FirstWitness(),S, sublevel);
-  S << Message_EndLine;
-  S << "Second Witness Entity : ";
+  S << "\n"
+    << "Second Witness Entity : ";
   dumper.Dump(ent->SecondWitness(),S, sublevel);
-  S << Message_EndLine;
+  S << std::endl;
 }
 
index 0f33ccede4fb9ceaa06cef0aeb0b3811123e38f0..d9b631d5979c9782aabd13cd28deedcd52dd94a6 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a LinearDimension. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_LinearDimension)& entfrom, const Handle(IGESDimen_LinearDimension)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_LinearDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_LinearDimension)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index ec333b53a332bb944aabcf08bd789d82e3d7f188..9f9299f029f9b6a00910058872d0823a740269ea 100644 (file)
@@ -212,31 +212,31 @@ void  IGESDimen_ToolNewDimensionedGeometry::OwnCheck
 
 void  IGESDimen_ToolNewDimensionedGeometry::OwnDump
   (const Handle(IGESDimen_NewDimensionedGeometry)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
   Standard_Integer i, num, sublevel = (level > 4) ? 1 : 0;
-  S << "IGESDimen_NewDimensionedGeometry" << Message_EndLine;
-  S << "Number of Dimensions : " << ent->NbDimensions() << Message_EndLine;
-  S << "Dimension Entity : ";
+  S << "IGESDimen_NewDimensionedGeometry\n"
+    << "Number of Dimensions : " << ent->NbDimensions() << "\n"
+    << "Dimension Entity : ";
   dumper.Dump(ent->DimensionEntity(),S, sublevel);
-  S << Message_EndLine;
-  S << "Dimension Orientation Flag : " << ent->DimensionOrientationFlag() << Message_EndLine;
-  S << "Angle Value Flag : " << ent->AngleValue() << Message_EndLine;
-  S << "Geometry Entities : " << Message_EndLine;
-  S << "Dimension Location Flags : " << Message_EndLine;
-  S << "Points : ";
+  S << "\n"
+    << "Dimension Orientation Flag : " << ent->DimensionOrientationFlag() << "\n"
+    << "Angle Value Flag : " << ent->AngleValue() << "\n"
+    << "Geometry Entities :\n"
+    << "Dimension Location Flags :\n"
+    << "Points : ";
   IGESData_DumpEntities(S,dumper,-level,1, ent->NbGeometries(),ent->GeometryEntity);
-  S << Message_EndLine;
+  S << "\n";
   if (level > 4)
     for ( num = ent->NbGeometries(), i = 1; i <= num; i++ )
       {
-       S << "[" << i << "]: " << Message_EndLine;
-       S << "Geometry Entity : ";
+       S << "[" << i << "]:\n"
+         << "Geometry Entity : ";
        dumper.Dump (ent->GeometryEntity(i),S, 1);
-       S << Message_EndLine;
-       S << "Dimension Location Flag : " << ent->DimensionLocationFlag(i) << Message_EndLine;
-       S << "Point : ";
+       S << "\n"
+         << "Dimension Location Flag : " << ent->DimensionLocationFlag(i) << "\n"
+         << "Point : ";
        IGESData_DumpXYZL(S,level, ent->Point(i), ent->Location());
       }
-  S << Message_EndLine;
+  S << std::endl;
 }
index 3095fc81a5cd3cb298fe1db705b26e9187f6d26f..dc09685bccdcdb2ff07c810edcbcf11fde0267e3 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a NewDimensionedGeometry. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_NewDimensionedGeometry)& entfrom, const Handle(IGESDimen_NewDimensionedGeometry)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_NewDimensionedGeometry)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_NewDimensionedGeometry)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index d42b25e92fd283e220104808f7173a8f7f3b48bb..2dbbd06afb1fcc37743332151f56bc582b5ea099 100644 (file)
@@ -458,82 +458,82 @@ void  IGESDimen_ToolNewGeneralNote::OwnCheck
 
 void  IGESDimen_ToolNewGeneralNote::OwnDump
   (const Handle(IGESDimen_NewGeneralNote)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const 
+   Standard_OStream& S, const Standard_Integer level) const 
 { 
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
   Standard_Integer nbval = ent->NbStrings();
 
-  S << "IGESDimen_NewGeneralNote" << Message_EndLine;
-  S << "Text Area  : Width : " << ent->TextWidth() << "  ";
-  S << "Height : " << ent->TextHeight() << "  ";
-  S << "Justification Code  : " << ent->JustifyCode() << Message_EndLine;
-  S << "Text Area Location Point : ";
+  S << "IGESDimen_NewGeneralNote\n"
+    << "Text Area  : Width : " << ent->TextWidth() << "  "
+    << "Height : " << ent->TextHeight() << "  "
+    << "Justification Code  : " << ent->JustifyCode() << "\n"
+    << "Text Area Location Point : ";
   IGESData_DumpXYZL(S,level, ent->AreaLocation(), ent->Location());
-  S << "Rotation Angle of Text : " << ent->AreaRotationAngle() << Message_EndLine;
-  S << "Base Line Position : ";
+  S << "Rotation Angle of Text : " << ent->AreaRotationAngle() << "\n"
+    << "Base Line Position : ";
   IGESData_DumpXYZL(S,level, ent->BaseLinePosition(), ent->Location());
-  S << "Normal Interline Spacing : " << ent->NormalInterlineSpace() << Message_EndLine;
-  S << "Number of Text Strings : " << nbval << Message_EndLine;
-
-  S << "Character Display : " << Message_EndLine; 
-  S << "Character Width : " << Message_EndLine; 
-  S << "Character Height : " << Message_EndLine; 
-  S << "Inter Character Spacing : " << Message_EndLine; 
-  S << "Interline Spacing : " << Message_EndLine; 
-  S << "Font Styles : " << Message_EndLine; 
-  S << "Character Angle : " << Message_EndLine; 
-  S << "Control Code String : " << Message_EndLine; 
-  S << "Number of Characters : " << Message_EndLine; 
-  S << "Box Widths : " << Message_EndLine; 
-  S << "Box Heights : " << Message_EndLine; 
-  S << "Character Set Codes : " << Message_EndLine; 
-  S << "Character Set Entities : " << Message_EndLine; 
-  S << "Slant Angles : " << Message_EndLine; 
-  S << "Rotation Angles : " << Message_EndLine; 
-  S << "Mirror Flags : " << Message_EndLine; 
-  S << "Rotate Flags : " << Message_EndLine; 
-  S << "Start Points : " << Message_EndLine; 
-  S << "Texts : "; 
+  S << "Normal Interline Spacing : " << ent->NormalInterlineSpace() << "\n"
+    << "Number of Text Strings : " << nbval << "\n";
+
+  S << "Character Display :\n"
+    << "Character Width :\n"
+    << "Character Height :\n"
+    << "Inter Character Spacing :\n"
+    << "Interline Spacing :\n"
+    << "Font Styles :\n"
+    << "Character Angle :\n"
+    << "Control Code String :\n"
+    << "Number of Characters :\n"
+    << "Box Widths :\n"
+    << "Box Heights :\n"
+    << "Character Set Codes :\n"
+    << "Character Set Entities :\n"
+    << "Slant Angles :\n"
+    << "Rotation Angles :\n"
+    << "Mirror Flags :\n"
+    << "Rotate Flags :\n"
+    << "Start Points :\n"
+    << "Texts : "; 
   IGESData_DumpVals(S,-level,1, nbval, ent->NbCharacters);
-  S << Message_EndLine;
+  S << "\n";
   if (level > 4)
     {
-      S << "Details of each String" << Message_EndLine;
+      S << "Details of each String\n";
       for ( Standard_Integer i = 1; i <= nbval; i++)
        {
-          S << "[" << i << "]: " << Message_EndLine;
-          S << "Character Display : " << ent->CharacterDisplay(i) << "  ";
-          S << "Character Width   : " << ent->CharacterWidth(i)   << "  ";
-          S << "Character Height  : " << ent->CharacterHeight(i)  << Message_EndLine;
-          S << "Inter Character Spacing : "<<ent->InterCharacterSpace(i)<<"  ";
-          S << "Interline Spacing : " << ent->InterlineSpace(i) << Message_EndLine;
-          S << "Font Styles       : " << ent->FontStyle(i) << Message_EndLine;
-          S << "Character Angle   : " << ent->CharacterAngle(i) << Message_EndLine;
-          S << "Control Code String : " ;
+          S << "[" << i << "]:\n"
+            << "Character Display : " << ent->CharacterDisplay(i) << "  "
+            << "Character Width   : " << ent->CharacterWidth(i)   << "  "
+            << "Character Height  : " << ent->CharacterHeight(i)  << "\n"
+            << "Inter Character Spacing : "<<ent->InterCharacterSpace(i)<<"  "
+            << "Interline Spacing : " << ent->InterlineSpace(i) << "\n"
+            << "Font Styles       : " << ent->FontStyle(i) << "\n"
+            << "Character Angle   : " << ent->CharacterAngle(i) << "\n"
+            << "Control Code String : " ;
           IGESData_DumpString(S,ent->ControlCodeString(i));
-          S << Message_EndLine;
-          S << "Number of Characters : " << ent->NbCharacters(i) << "  ";
-          S << "Box Width  : " << ent->BoxWidth(i)  << "  ";
-          S << "Box Height : " << ent->BoxHeight(i) << Message_EndLine;
+          S << "\n"
+            << "Number of Characters : " << ent->NbCharacters(i) << "  "
+            << "Box Width  : " << ent->BoxWidth(i)  << "  "
+            << "Box Height : " << ent->BoxHeight(i) << "\n";
           if (ent->IsCharSetEntity(i))
            {
               S << "Character Set Entity : ";
               dumper.Dump (ent->CharSetEntity(i),S, sublevel);
-              S << Message_EndLine;
+              S << "\n";
            }
           else
-           S << "Character Set Code : " << ent->CharSetCode(i) << Message_EndLine;
+           S << "Character Set Code : " << ent->CharSetCode(i) << "\n"
 
-          S << "Slant Angle : "    << ent->SlantAngle(i) << "  ";
-          S << "Rotation Angle : " << ent->RotationAngle(i) << "  ";
-          S << "Mirror Flag : "    << ent->MirrorFlag(i) << "  ";
-          S << "Rotate Flag : "    << ent->RotateFlag(i) << Message_EndLine;
-          << "Start Point : ";
+          << "Slant Angle : "    << ent->SlantAngle(i) << "  "
+          << "Rotation Angle : " << ent->RotationAngle(i) << "  "
+          << "Mirror Flag : "    << ent->MirrorFlag(i) << "  "
+          << "Rotate Flag : "    << ent->RotateFlag(i) << "\n"
+          << "Start Point : ";
           IGESData_DumpXYZL(S,level, ent->StartPoint(i), ent->Location());
           S << "Text : ";
           IGESData_DumpString(S,ent->Text(i));
-          S << Message_EndLine;
+          S << "\n";
        }
     }
-  else S << Message_EndLine;
+  else S << std::endl;
 }
index 5ac4ce34da37b083c2dec895af7936fdb8990acd..d6588ddd6fad55f6cb7f2eddf22570a4b31c0c7a 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a NewGeneralNote. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_NewGeneralNote)& entfrom, const Handle(IGESDimen_NewGeneralNote)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_NewGeneralNote)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_NewGeneralNote)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 32fb62efd95324255b7c91bf9841f683b09b6210..9b53b23102a40c66fc5f8356ea5cc926128512c0 100644 (file)
@@ -151,24 +151,24 @@ void IGESDimen_ToolOrdinateDimension::OwnCheck
 
 void IGESDimen_ToolOrdinateDimension::OwnDump
   (const Handle(IGESDimen_OrdinateDimension)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESDimen_OrdinateDimension" << Message_EndLine;
+  S << "IGESDimen_OrdinateDimension\n";
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
   S << "General Note : ";
   dumper.Dump(ent->Note(),S, sublevel);
-  S << Message_EndLine;
+  S << "\n";
   Handle(IGESDimen_WitnessLine) witLine = ent->WitnessLine();
   Handle(IGESDimen_LeaderArrow) leadArr = ent->Leader();
   if (!witLine.IsNull()) {
     S << "Witness line : ";
     dumper.Dump(witLine,S, sublevel);
-    S << Message_EndLine;
+    S << "\n";
   }
   if (!leadArr.IsNull()) {
     S << "Leader arrow :";
     dumper.Dump(leadArr,S, sublevel);
-    S << Message_EndLine;
+    S << "\n";
   }
 }
index fbc8914d706456897a6bb111bcb9534e676052ac..770358a62e70a5f525800861a2fff477ebd49fdc 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a OrdinateDimension. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_OrdinateDimension)& entfrom, const Handle(IGESDimen_OrdinateDimension)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_OrdinateDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_OrdinateDimension)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 22e84807c195bfa3f476d55bce0d7cfdf6976461..55d019f4ac715fb3dba9ab06022391b25f6620a0 100644 (file)
@@ -111,21 +111,21 @@ void IGESDimen_ToolPointDimension::OwnCheck
 
 void IGESDimen_ToolPointDimension::OwnDump
   (const Handle(IGESDimen_PointDimension)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESDimen_PointDimension" << Message_EndLine;
+  S << "IGESDimen_PointDimension\n";
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
   S << "General Note : ";
   dumper.Dump(ent->Note(),S , sublevel);
-  S << Message_EndLine;
-  S << "Leader Arrow : ";
+  S << "\n"
+    << "Leader Arrow : ";
   dumper.Dump(ent->LeaderArrow(),S , sublevel);
-  S << Message_EndLine;
+  S << "\n";
   if (!ent->Geom().IsNull())
     {
       S << "Enclosing Entity : ";
       dumper.Dump(ent->Geom(),S , sublevel);
-      S << Message_EndLine;
+      S << "\n";
     }
 }
index 77d6f6d6b2cd2a46257d2cf103f2ba341339fc5a..02a2d512ac78c1394a9653efa2d505c149d8e159 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a PointDimension. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_PointDimension)& entfrom, const Handle(IGESDimen_PointDimension)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_PointDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_PointDimension)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 4ca9fc74f08607f478dbb31c5da368f4c9396b52..903ba2c55e8ffd21e27ce78a22bf669f62f44ba4 100644 (file)
@@ -126,24 +126,24 @@ void IGESDimen_ToolRadiusDimension::OwnCheck
 
 void IGESDimen_ToolRadiusDimension::OwnDump
   (const Handle(IGESDimen_RadiusDimension)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S,const Standard_Integer level) const
+   Standard_OStream& S,const Standard_Integer level) const
 {
-  S << "IGESDimen_RadiusDimension" << Message_EndLine;
+  S << "IGESDimen_RadiusDimension\n";
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
   S << "General note : ";
   dumper.Dump(ent->Note(),S, sublevel);
-  S << Message_EndLine;
-  S << "Leader arrow : ";
+  S << "\n"
+    << "Leader arrow : ";
   dumper.Dump(ent->Leader(),S, sublevel);
-  S << Message_EndLine;
-  S << "Arc center : ";
+  S << "\n"
+    << "Arc center : ";
   IGESData_DumpXYLZ(S,level,ent->Center(),ent->Location(),ent->Leader()->ZDepth());
   if (ent->HasLeader2())
     {
-      S << Message_EndLine << "Leader arrow 2 : ";
+      S << "\nLeader arrow 2 : ";
       dumper.Dump(ent->Leader2(),S, sublevel);
-      S << Message_EndLine;
+      S << "\n";
     }
-  S << Message_EndLine;
+  S << std::endl;
 }
index 9f5817808ddfb282f1ebc36135913aac0d6dc1cf..ecb0ed26b7f10a2dc0f685da4271bc27df49939e 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a RadiusDimension. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_RadiusDimension)& entfrom, const Handle(IGESDimen_RadiusDimension)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_RadiusDimension)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_RadiusDimension)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 7c969925cc59cb6ead876b9691079c4f68c231e3..1a1d223f6fb54e0aa837d6ebd8a4e8ae8512dbe1 100644 (file)
@@ -157,14 +157,14 @@ void  IGESDimen_ToolSection::OwnCheck
 
 void  IGESDimen_ToolSection::OwnDump
   (const Handle(IGESDimen_Section)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const 
+   Standard_OStream& S, const Standard_Integer level) const 
 { 
-  S << "IGESDimen_Section" << Message_EndLine;
-  S << "Data Type   : "           << ent->Datatype() << "  ";
-  S << "Number of Data Points : " << ent->NbPoints()  << "  ";
-  S << "Common Z displacement : " << ent->ZDisplacement() << Message_EndLine;
-  S << "Data Points : "; 
-  IGESData_DumpListXYLZ(S ,level,1, ent->NbPoints(),ent->Point,
+  S << "IGESDimen_Section\n"
+    << "Data Type   : "           << ent->Datatype() << "  "
+    << "Number of Data Points : " << ent->NbPoints()  << "  "
+    << "Common Z displacement : " << ent->ZDisplacement() << "\n"
+    << "Data Points : "; 
+  IGESData_DumpListXYLZ(S,level,1, ent->NbPoints(),ent->Point,
                        ent->Location(), ent->ZDisplacement());
-  S << Message_EndLine;
+  S << std::endl;
 }
index 04fa88b7de2cc9ca0cb67a668eaa5d6b4f118f52..726dbd369c2d5eabc55272f1f373a028c3573d16 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Section. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_Section)& entfrom, const Handle(IGESDimen_Section)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_Section)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_Section)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 4789837ce4d86dd22736cfde11fc8696b2d8b8d2..e02ca96da65463370e95d65f196809455402bb68 100644 (file)
@@ -34,7 +34,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
 IGESDimen_ToolSectionedArea::IGESDimen_ToolSectionedArea ()    {  }
@@ -156,22 +155,21 @@ void IGESDimen_ToolSectionedArea::OwnCheck
 
 void IGESDimen_ToolSectionedArea::OwnDump
   (const Handle(IGESDimen_SectionedArea)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDimen_SectionedArea" << Message_EndLine;
-  S << (ent->IsInverted() ? "Inverted Cross Hatches" : "Standard Cross Hatches");
-
-  S << " - Exterior curve : ";
+  S << "IGESDimen_SectionedArea\n"
+    << (ent->IsInverted() ? "Inverted Cross Hatches" : "Standard Cross Hatches")
+    << " - Exterior curve : ";
   dumper.Dump(ent->ExteriorCurve(),S, sublevel);
-  S << Message_EndLine;
-  S << "Fill pattern code : " << ent->Pattern() << Message_EndLine;
-  S << "Passing point : ";
-  IGESData_DumpXYZL(S,level, ent->PassingPoint(), ent->Location());  S << Message_EndLine;
-  S << "Distance between lines : " << ent->Distance() << Message_EndLine;
-  S << "Angle between lines and X axis : " << ent->Angle() << Message_EndLine;
-  S << "Island Curve : ";
+  S << "\n"
+    << "Fill pattern code : " << ent->Pattern() << "\n"
+    << "Passing point : ";
+  IGESData_DumpXYZL(S,level, ent->PassingPoint(), ent->Location());  S << "\n";
+  S << "Distance between lines : " << ent->Distance() << "\n"
+    << "Angle between lines and X axis : " << ent->Angle() << "\n"
+    << "Island Curve : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbIslands(),ent->IslandCurve);
-  S << Message_EndLine;
+  S << "\n";
 }
index dfe6437c737656bf1bff3a9ab8701e3c69e1d1aa..98b826fce9b2c5139ea686ebc8fd67a321e4a44e 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a SectionedArea. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_SectionedArea)& entfrom, const Handle(IGESDimen_SectionedArea)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_SectionedArea)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_SectionedArea)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 3ba0df768ca43d8c7720e4a6594f9dc530b040a6..4f38fc646a8c721a753f4d5f7d479b2c6257e346 100644 (file)
@@ -158,14 +158,14 @@ void  IGESDimen_ToolWitnessLine::OwnCheck
 
 void  IGESDimen_ToolWitnessLine::OwnDump
   (const Handle(IGESDimen_WitnessLine)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const 
+   Standard_OStream& S, const Standard_Integer level) const 
 { 
-  S << "IGESDimen_WitnessLine" << Message_EndLine;
-  S << "Data Type   : "           << ent->Datatype() << "  ";
-  S << "Number of Data Points : " << ent->NbPoints() << "  ";
-  S << "Common Z displacement : " << ent->ZDisplacement() << Message_EndLine;
-  S << "Data Points : "; 
-  IGESData_DumpListXYLZ(S ,level,1, ent->NbPoints(),ent->Point,
+  S << "IGESDimen_WitnessLine\n"
+    << "Data Type   : "           << ent->Datatype() << "  "
+    << "Number of Data Points : " << ent->NbPoints() << "  "
+    << "Common Z displacement : " << ent->ZDisplacement() << "\n"
+    << "Data Points : "; 
+  IGESData_DumpListXYLZ(S,level,1, ent->NbPoints(),ent->Point,
                    ent->Location(), ent->ZDisplacement());
-  S << Message_EndLine;
+  S << std::endl;
 }
index e7edf191a86edb06a7f516718d728d0b8a5734ab..09a4b34be27de58c1ffab97f1ed0e452c57d84ad 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a WitnessLine. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDimen_WitnessLine)& entfrom, const Handle(IGESDimen_WitnessLine)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDimen_WitnessLine)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDimen_WitnessLine)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 7621d9ad969e4a7ea6ace423fba6a45db82106d3..c825e096ca8569f0ea867e452d7564dae41a4e91 100644 (file)
@@ -44,7 +44,6 @@
 #include <IGESDraw_ViewsVisible.hxx>
 #include <IGESDraw_ViewsVisibleWithAttr.hxx>
 #include <Interface_Macros.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESDraw_SpecificModule,IGESData_SpecificModule)
@@ -57,7 +56,7 @@ IGESDraw_SpecificModule::IGESDraw_SpecificModule()    {  }
 
     void  IGESDraw_SpecificModule::OwnDump
   (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
-   const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S,
+   const IGESData_IGESDumper& dumper, Standard_OStream& S,
    const Standard_Integer own) const 
 {
   switch (CN) {
index ea95d6eb68ea3aebd801ca7533f342e22c436a59..4276b141ac94bbd6e4ef73d217673ea8f34599c7 100644 (file)
@@ -25,8 +25,6 @@
 #include <Standard_Boolean.hxx>
 class IGESData_IGESEntity;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 class IGESDraw_SpecificModule;
 DEFINE_STANDARD_HANDLE(IGESDraw_SpecificModule, IGESData_SpecificModule)
@@ -43,7 +41,7 @@ public:
   Standard_EXPORT IGESDraw_SpecificModule();
   
   //! Specific Dump (own parameters) for IGESDraw
-  Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const Standard_OVERRIDE;
+  Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const Standard_OVERRIDE;
   
   //! Performs non-ambiguous Corrections on Entities which support
   //! them (Planar)
index d9b87e2843bd6dd7ca71a6b42e438c0f24a5cf7a..a19924ced04e3234fca47cf6a9ec7ade7677714d 100644 (file)
@@ -32,7 +32,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 
@@ -161,25 +160,24 @@ void IGESDraw_ToolCircArraySubfigure::OwnCheck
 
 void IGESDraw_ToolCircArraySubfigure::OwnDump
   (const Handle(IGESDraw_CircArraySubfigure)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
   Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_CircArraySubfigure" << Message_EndLine;
-
-  S << "Base Entity : ";
+  S << "IGESDraw_CircArraySubfigure\n"
+    << "Base Entity : ";
   dumper.Dump(ent->BaseEntity(),S, tempSubLevel);
-  S << Message_EndLine;
-  S << "Total Number Of Possible Instance Locations : " << ent->NbLocations()
-    << Message_EndLine;
-  S << "Imaginary Circle. Radius : " << ent->CircleRadius() << "  Center : ";
-  IGESData_DumpXYZL(S, level, ent->CenterPoint(), ent->Location());  S << Message_EndLine;
-  S << "Start Angle (in radians) : " << ent->StartAngle() << "  ";
-  S << "Delta Angle (in radians) : " << ent->DeltaAngle() << Message_EndLine;
-  S << "Do-Dont Flag : ";
-  if (ent->DoDontFlag())     S << "Dont" << Message_EndLine;
-  else                       S << "Do" << Message_EndLine;
+  S << "\n"
+    << "Total Number Of Possible Instance Locations : " << ent->NbLocations()
+    << "\n"
+    << "Imaginary Circle. Radius : " << ent->CircleRadius() << "  Center : ";
+  IGESData_DumpXYZL(S, level, ent->CenterPoint(), ent->Location());  S << "\n";
+  S << "Start Angle (in radians) : " << ent->StartAngle() << "  "
+    << "Delta Angle (in radians) : " << ent->DeltaAngle() << "\n"
+    << "Do-Dont Flag : ";
+  if (ent->DoDontFlag())     S << "Dont\n";
+  else                       S << "Do\n";
   S << "The Do-Dont List : ";
-  IGESData_DumpVals(S ,level,1, ent->ListCount(),ent->ListPosition);
-  S << Message_EndLine;
+  IGESData_DumpVals(S,level,1, ent->ListCount(),ent->ListPosition);
+  S << std::endl;
 }
index 1c5c1fd4824b213b19fcd1e67583f10c8cd4b9d2..f9a0ff744b268e1157578fbb42ec795cdfb8608b 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a CircArraySubfigure. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDraw_CircArraySubfigure)& entfrom, const Handle(IGESDraw_CircArraySubfigure)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDraw_CircArraySubfigure)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDraw_CircArraySubfigure)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 866f74b184c9266d18b5dcf1f188e340e4e290b1..10900b479f5c1ee48773dad6bf82b831d26b7a2c 100644 (file)
@@ -203,32 +203,31 @@ void IGESDraw_ToolConnectPoint::OwnCheck
 
 void IGESDraw_ToolConnectPoint::OwnDump
   (const Handle(IGESDraw_ConnectPoint)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
   Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_ConnectPoint" << Message_EndLine;
-
-  S << "Connection Point Coordinate : ";
+  S << "IGESDraw_ConnectPoint\n"
+    << "Connection Point Coordinate : ";
   IGESData_DumpXYZL(S, level, ent->Point(), ent->Location());
   S << "Display Symbol Geometry Entity : ";
   dumper.Dump(ent->DisplaySymbol(),S, tempSubLevel);
-  S << Message_EndLine;
-  S << "Type Flag : "     << ent->TypeFlag() << "  "
-    << "Function Flag : " << ent->FunctionFlag() << Message_EndLine;
-  S << "Function Identifier : ";
+  S << "\n"
+    << "Type Flag : "     << ent->TypeFlag() << "  "
+    << "Function Flag : " << ent->FunctionFlag() << "\n"
+    << "Function Identifier : ";
   IGESData_DumpString(S,ent->FunctionIdentifier());
-  S << Message_EndLine << "Text Display Template Entity for CID : ";
+  S << "\nText Display Template Entity for CID : ";
   dumper.Dump(ent->IdentifierTemplate(),S, tempSubLevel);
-  S << Message_EndLine << "Function Name : ";
+  S << "\nFunction Name : ";
   IGESData_DumpString(S,ent->FunctionName());
-  S << Message_EndLine << "Text Display Template Entity for CFN : ";
+  S << "\nText Display Template Entity for CFN : ";
   dumper.Dump(ent->FunctionTemplate(),S, tempSubLevel);
-  S << Message_EndLine;
-  S << "Point Identifier : " << ent->PointIdentifier() << Message_EndLine
+  S << "\n"
+    << "Point Identifier : " << ent->PointIdentifier() << "\n"
     << "Function Code : "    << ent->FunctionCode()
-    << "Swap Flag : "        << ( ent->SwapFlag() ? "True" : "False" ) << Message_EndLine;
-  S << "Owner Subfigure Entity : ";
+    << "Swap Flag : "        << ( ent->SwapFlag() ? "True" : "False" ) << "\n"
+    << "Owner Subfigure Entity : ";
   dumper.Dump(ent->OwnerSubfigure(),S, tempSubLevel);
-  S << Message_EndLine;
+  S << std::endl;
 }
index b009c35eea5503cded255bd804b08f956ef7b31c..f11c7f4735a0da4983708d50ca318cc3bfceeb5d 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a ConnectPoint. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDraw_ConnectPoint)& entfrom, const Handle(IGESDraw_ConnectPoint)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDraw_ConnectPoint)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDraw_ConnectPoint)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 200803d0b3f915683cbf97dfa5a22b4259b78ee1..82f635e814ee0766d899d727f616e6344f587c44 100644 (file)
@@ -262,21 +262,20 @@ void IGESDraw_ToolDrawing::OwnCheck
 
 void IGESDraw_ToolDrawing::OwnDump
   (const Handle(IGESDraw_Drawing)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_Drawing" << Message_EndLine;
-
-  S << "View Entities            : " << Message_EndLine
-    << "Transformed View Origins : ";
-  S << "Count = "      << ent->NbViews();
+  S << "IGESDraw_Drawing\n"
+    << "View Entities            :\n"
+    << "Transformed View Origins : "
+    << "Count = "      << ent->NbViews();
   switch (level)
     {
-    case 4 : S << " [ ask level > 4 for content ]" << Message_EndLine;
+    case 4 : S << " [ ask level > 4 for content ]\n";
       break; // Nothing to be dumped here
     case 5 :        // Presently level 5 and 6 have the same Dump
-      S << Message_EndLine;
+      S << "\n";
       Standard_FALLTHROUGH
     case 6 :
       {
@@ -284,17 +283,17 @@ void IGESDraw_ToolDrawing::OwnDump
        Standard_Integer up  = ent->NbViews();
        for (I = 1; I <= up; I++)
          {
-           S << Message_EndLine << "[" << I << "] ";
-           S << "View Entity : ";
+           S << "\n[" << I << "] "
+             << "View Entity : ";
            dumper.Dump (ent->ViewItem(I),S, sublevel);
-           S << Message_EndLine;
-           S << "Transformed View Origin : ";
+           S << "\n"
+             << "Transformed View Origin : ";
            IGESData_DumpXY(S, ent->ViewOrigin(I));
          }
       }
       break;
     }
-  S << Message_EndLine << "Annotation Entities : ";
+  S << "\nAnnotation Entities : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbAnnotations(),ent->Annotation);
-  S << Message_EndLine;
+  S << std::endl;
 }
index 14fc0d0de4364a2257599cc83d9107f2a444cdf6..1110df72645969f952529819f48f679bc4990db0 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Drawing. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDraw_Drawing)& entfrom, const Handle(IGESDraw_Drawing)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDraw_Drawing)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDraw_Drawing)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index ea2478571b578ce21b7f69fd2d8009ca206b9642..940e992ac2065c970b97cabc897c400deff5beaf 100644 (file)
@@ -282,16 +282,15 @@ void IGESDraw_ToolDrawingWithRotation::OwnCheck
 
 void IGESDraw_ToolDrawingWithRotation::OwnDump
   (const Handle(IGESDraw_DrawingWithRotation)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_DrawingWithRotation" << Message_EndLine;
-
-  S << "View Entities            : " << Message_EndLine
-    << "Transformed View Origins : " << Message_EndLine
-    << "Orientation Angles : ";
-  S << "Count = "      << ent->NbViews() << Message_EndLine;
+  S << "IGESDraw_DrawingWithRotation\n"
+    << "View Entities            :\n"
+    << "Transformed View Origins :\n"
+    << "Orientation Angles : "
+    << "Count = "      << ent->NbViews() << "\n";
 
   if (level > 4)    // Level = 4 : no Dump. Level = 5 & 6 have same Dump
     {
@@ -299,16 +298,16 @@ void IGESDraw_ToolDrawingWithRotation::OwnDump
       Standard_Integer up  = ent->NbViews();
       for (I = 1; I <= up; I++)
        {
-         S << "[" << I << "]:" << Message_EndLine;
-         S << "View Entity : ";
+         S << "[" << I << "]:\n"
+           << "View Entity : ";
          dumper.Dump (ent->ViewItem(I),S, sublevel);
-         S << Message_EndLine;
-         S << "Transformed View Origin : ";
+         S << "\n"
+           << "Transformed View Origin : ";
          IGESData_DumpXY(S, ent->ViewOrigin(I));
-         S << "  Orientation Angle : " << ent->OrientationAngle(I) << Message_EndLine;
+         S << "  Orientation Angle : " << ent->OrientationAngle(I) << "\n";
        }
     }
   S << "Annotation Entities : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbAnnotations(),ent->Annotation);
-  S << Message_EndLine;
+  S << std::endl;
 }
index 2b1bdab8abb6030f7180c97eac13126b0718ab8e..4dab1a66c7cdc52fbb24aa9c6da11ed5783771ed 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a DrawingWithRotation. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDraw_DrawingWithRotation)& entfrom, const Handle(IGESDraw_DrawingWithRotation)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDraw_DrawingWithRotation)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDraw_DrawingWithRotation)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index d4b76bfdfcb27d59e059d14cf0baf1daa4e7f68e..2cd6244336771b988a286e23f6a9f3241ad1cb7f 100644 (file)
@@ -204,39 +204,38 @@ void IGESDraw_ToolLabelDisplay::OwnCheck
 
 void IGESDraw_ToolLabelDisplay::OwnDump
   (const Handle(IGESDraw_LabelDisplay)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_LabelDisplay" << Message_EndLine;
-
-  S << "View Entities       : " << Message_EndLine
-    << "Text Locations      : " << Message_EndLine
-    << "Leader Entities     : " << Message_EndLine
-    << "Label Level Numbers : " << Message_EndLine
-    << "Displayed Entities  : ";
-  S << "Count = "      << ent->NbLabels() << Message_EndLine;
+  S << "IGESDraw_LabelDisplay\n"
+    << "View Entities       :\n"
+    << "Text Locations      :\n"
+    << "Leader Entities     :\n"
+    << "Label Level Numbers :\n"
+    << "Displayed Entities  : "
+    << "Count = "      << ent->NbLabels() << "\n";
   if (level > 4)  // Level = 4 : no Dump. Level = 5 & 6 : same Dump
     {
       Standard_Integer I;
       Standard_Integer up  = ent->NbLabels();
       for (I = 1; I <= up; I ++)
        {
-         S << "[" << I << "]:" << Message_EndLine;
-         S << "View Entity : ";
+         S << "[" << I << "]:\n"
+           << "View Entity : ";
          dumper.Dump (ent->ViewItem(I),S, sublevel);
-         S << Message_EndLine;
-         S << "Text Location in View : ";
+         S << "\n"
+           << "Text Location in View : ";
          IGESData_DumpXYZL(S,level, ent->TextLocation(I), ent->Location());
          S << "  Leader Entity in View : ";
          dumper.Dump (ent->LeaderEntity(I),S, sublevel);
-         S << Message_EndLine;
-         S << "Entity Label Level Number : ";
-         S << ent->LabelLevel(I) << "  ";
-         S << "Displayed Entity : ";
+         S << "\n"
+           << "Entity Label Level Number : "
+           << ent->LabelLevel(I) << "  "
+           << "Displayed Entity : ";
          dumper.Dump (ent->DisplayedEntity(I),S, sublevel);
-         S << Message_EndLine;
+         S << "\n";
        }
     }
-  S << Message_EndLine;
+  S << std::endl;
 }
index 768dc1e540b296f013300842d7c7154f887de6df..1660e7e98c651e96cd173ebbcd6024a8c828c3ed 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a LabelDisplay. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDraw_LabelDisplay)& entfrom, const Handle(IGESDraw_LabelDisplay)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDraw_LabelDisplay)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDraw_LabelDisplay)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index c5e17480141fd52df78259da79301016ea7d1cef..284c53a5acd19192f57c2132e8399c50b2d3057b 100644 (file)
@@ -226,24 +226,23 @@ void IGESDraw_ToolNetworkSubfigure::OwnCheck
 
 void IGESDraw_ToolNetworkSubfigure::OwnDump
   (const Handle(IGESDraw_NetworkSubfigure)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_NetworkSubfigure" << Message_EndLine;
-
-  S << "Network Subfigure Definition Entity : ";
+  S << "IGESDraw_NetworkSubfigure\n"
+    << "Network Subfigure Definition Entity : ";
   dumper.Dump(ent->SubfigureDefinition(),S, sublevel);
-  S << Message_EndLine << "Translation Data : ";
+  S << "\nTranslation Data : ";
   IGESData_DumpXYZL(S,level, ent->Translation(), ent->Location());
-  S << Message_EndLine << "Scale Factors    : ";
+  S << "\nScale Factors    : ";
   IGESData_DumpXYZ(S, ent->ScaleFactors());
-  S << Message_EndLine << "Type Flag : " << ent->TypeFlag() << Message_EndLine;
-  S << "Primary Reference Designator : ";
+  S << "\nType Flag : " << ent->TypeFlag() << "\n"
+    << "Primary Reference Designator : ";
   IGESData_DumpString(S,ent->ReferenceDesignator());
-  S << Message_EndLine << "Text Display Template Entity : ";
+  S << "\nText Display Template Entity : ";
   dumper.Dump(ent->DesignatorTemplate(),S, sublevel);
-  S << Message_EndLine << "Connect Points  : ";
+  S << "\nConnect Points  : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbConnectPoints(),ent->ConnectPoint);
-  S << Message_EndLine;
+  S << std::endl;
 }
index 77d22695d92ee17207c90b02896d0cf23e3f5d86..0c014bdda04f7515ae49495ab5c6582648226115 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a NetworkSubfigure. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDraw_NetworkSubfigure)& entfrom, const Handle(IGESDraw_NetworkSubfigure)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDraw_NetworkSubfigure)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDraw_NetworkSubfigure)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index faa30fe7833321c6e339aac4b55c2f1e3a4e6996..deb628925e79b99b1f1c8ecda4850e3a3898a177 100644 (file)
@@ -223,23 +223,22 @@ void IGESDraw_ToolNetworkSubfigureDef::OwnCheck
 
 void IGESDraw_ToolNetworkSubfigureDef::OwnDump
   (const Handle(IGESDraw_NetworkSubfigureDef)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
   Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_NetworkSubfigureDef" << Message_EndLine;
-
-  S << "Depth Of Subfigure(Nesting)  : " << ent->Depth() << Message_EndLine;
-  S << "Name Of Subfigure            : ";
+  S << "IGESDraw_NetworkSubfigureDef\n"
+    << "Depth Of Subfigure(Nesting)  : " << ent->Depth() << "\n"
+    << "Name Of Subfigure            : ";
   IGESData_DumpString(S,ent->Name());
-  S << Message_EndLine << "Associated Entities          : ";
+  S << "\nAssociated Entities          : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
-  S << Message_EndLine << "Type Flag : " << ent->TypeFlag() << Message_EndLine;
-  S << "Primary Reference Designator : ";
+  S << "\nType Flag : " << ent->TypeFlag() << "\n"
+    << "Primary Reference Designator : ";
   IGESData_DumpString(S,ent->Designator());
-  S << Message_EndLine << "Text Display Template Entity : ";
+  S << "\nText Display Template Entity : ";
   dumper.Dump(ent->DesignatorTemplate(),S, tempSubLevel);
-  S << Message_EndLine << "Connect Point Entities       : ";
+  S << "\nConnect Point Entities       : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbPointEntities(),ent->PointEntity);
-  S << Message_EndLine;
+  S << std::endl;
 }
index f27a626a8fc5082292e5210b3fb0ac4612260dfe..761f56b9a505423eda139cec539424a020117613 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a NetworkSubfigureDef. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDraw_NetworkSubfigureDef)& entfrom, const Handle(IGESDraw_NetworkSubfigureDef)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDraw_NetworkSubfigureDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDraw_NetworkSubfigureDef)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index e3c6d40b5c31cde00a8a1576216ae1073c95eb87..08399d3c574ca65c3ce1f375e394dd56a3095ac0 100644 (file)
@@ -168,34 +168,33 @@ void IGESDraw_ToolPerspectiveView::OwnCheck
 
 void IGESDraw_ToolPerspectiveView::OwnDump
   (const Handle(IGESDraw_PerspectiveView)& ent, const IGESData_IGESDumper& /*dumper*/,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
-  S << "IGESDraw_PerspectiveView" << Message_EndLine;
-
-  S << "View Number  : " << ent->ViewNumber()  << "  ";
-  S << "Scale Factor : " << ent->ScaleFactor() << Message_EndLine;
-  S         << "View Plane Normal Vector : ";
+  S << "IGESDraw_PerspectiveView\n"
+    << "View Number  : " << ent->ViewNumber()  << "  "
+    << "Scale Factor : " << ent->ScaleFactor() << "\n"
+    << "View Plane Normal Vector : ";
   IGESData_DumpXYZL(S,level, ent->ViewNormalVector(), ent->Location());
-  S << Message_EndLine << "View Reference Point     : ";
+  S << "\nView Reference Point     : ";
   IGESData_DumpXYZL(S,level, ent->ViewReferencePoint() , ent->Location());
-  S << Message_EndLine << "Center Of Projection     : ";
+  S << "\nCenter Of Projection     : ";
   IGESData_DumpXYZL(S,level, ent->CenterOfProjection() , ent->Location());
-  S << Message_EndLine << "View Up Vector           : ";
+  S << "\nView Up Vector           : ";
   IGESData_DumpXYZL(S,level, ent->ViewUpVector() , ent->Location());
-  S << Message_EndLine << "View Plane Distance      : " << ent->ViewPlaneDistance()<<Message_EndLine;
-  S << "Left   Side Of Clipping Window : " << ent->TopLeft().X()     << Message_EndLine;
-  S << "Right  Side Of Clipping Window : " << ent->BottomRight().X() << Message_EndLine;
-  S << "Bottom Side Of Clipping Window : " << ent->BottomRight().Y() << Message_EndLine;
-  S << "Top    Side Of Clipping Window : " << ent->TopLeft().Y()     << Message_EndLine;
-  S << "Depth Clipping : " << ent->DepthClip();
+  S << "\nView Plane Distance      : " << ent->ViewPlaneDistance()<< "\n"
+    << "Left   Side Of Clipping Window : " << ent->TopLeft().X()     << "\n"
+    << "Right  Side Of Clipping Window : " << ent->BottomRight().X() << "\n"
+    << "Bottom Side Of Clipping Window : " << ent->BottomRight().Y() << "\n"
+    << "Top    Side Of Clipping Window : " << ent->TopLeft().Y()     << "\n"
+    << "Depth Clipping : " << ent->DepthClip();
   switch (ent->DepthClip()) {
-    case 0 :  S << " (No Depth Clipping)" << Message_EndLine;                    break;
-    case 1 :  S << " (Back Clipping Plane ON)" << Message_EndLine;               break;
-    case 2 :  S << " (Front Clipping Plane ON)" << Message_EndLine;              break;
-    case 3 :  S << " (Front and Back Clipping Planes ON)" << Message_EndLine;    break;
-    default : S << " (Invalid Value)" << Message_EndLine;                        break;
+    case 0 :  S << " (No Depth Clipping)\n";                 break;
+    case 1 :  S << " (Back Clipping Plane ON)\n";            break;
+    case 2 :  S << " (Front Clipping Plane ON)\n";           break;
+    case 3 :  S << " (Front and Back Clipping Planes ON)\n"; break;
+    default : S << " (Invalid Value)\n";                     break;
   }
-  S << "Back Plane Distance  : " << ent->BackPlaneDistance()  << "  ";
-  S << "Front Plane Distance : " << ent->FrontPlaneDistance() << Message_EndLine;
-  S << Message_EndLine;
+  S << "Back Plane Distance  : " << ent->BackPlaneDistance()  << "  "
+    << "Front Plane Distance : " << ent->FrontPlaneDistance() << "\n"
+    << std::endl;
 }
index cc6b137e5ff34ebfefe66c3f6afeaaad5cf2d8cd..8814f36d665d00553baf9bfafe0c1ebb7b6ae7aa 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a PerspectiveView. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDraw_PerspectiveView)& entfrom, const Handle(IGESDraw_PerspectiveView)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDraw_PerspectiveView)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDraw_PerspectiveView)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 83416461b740577af5261a837bf7dcec38a8996c..e0bd3fc058d56899b70324a6818dafdbb593cca5 100644 (file)
@@ -168,20 +168,19 @@ void IGESDraw_ToolPlanar::OwnCheck
 
 void IGESDraw_ToolPlanar::OwnDump
   (const Handle(IGESDraw_Planar)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_Planar" << Message_EndLine;
-
-  S << "No. of Transformation Matrices : " << ent->NbMatrices() << "  ";
-  S << "i.e. : ";
+  S << "IGESDraw_Planar\n"
+    << "No. of Transformation Matrices : " << ent->NbMatrices() << "  "
+    << "i.e. : ";
   if ( ent->TransformMatrix().IsNull() )
     S << "Null Handle";
   else
     dumper.OwnDump (ent->TransformMatrix(),S, sublevel);
-  S << Message_EndLine;
-  S << "Array of Entities on the specified plane : ";
+  S << "\n"
+    << "Array of Entities on the specified plane : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
-  S << Message_EndLine;
+  S << std::endl;
 }
index 4696120d1219172fd15818c5d752c88886336951..90c4dcd922fad7c3297a63a9f5da26dc0c1764ab 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Planar. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDraw_Planar)& entfrom, const Handle(IGESDraw_Planar)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDraw_Planar)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDraw_Planar)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 6595a9242e04b43c1c921723beab408360544f2d..10a196d39df6f42be87755da96fda529389881ba 100644 (file)
@@ -174,27 +174,26 @@ void IGESDraw_ToolRectArraySubfigure::OwnCheck
 
 void IGESDraw_ToolRectArraySubfigure::OwnDump
   (const Handle(IGESDraw_RectArraySubfigure)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
   Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_RectArraySubfigure" << Message_EndLine;
-
-  S << "Base Entity : ";
+  S << "IGESDraw_RectArraySubfigure\n"
+    << "Base Entity : ";
   dumper.Dump(ent->BaseEntity(),S, tempSubLevel);
-  S << Message_EndLine;
-  S << "Scale Factor : " << ent->ScaleFactor() << "  ";
-  S << "Lower Left Corner Of Array : ";
+  S << "\n"
+    << "Scale Factor : " << ent->ScaleFactor() << "  "
+    << "Lower Left Corner Of Array : ";
   IGESData_DumpXYZL(S,level, ent->LowerLeftCorner(),gp_GTrsf()); // no location
-  S << "Number Of Columns : " << ent->NbColumns()   << "  ";
-  S << "Number Of Rows    : " << ent->NbRows()      << Message_EndLine;
-  S << "Horizontal Distance Between Columns : " << ent->ColumnSeparation()<<Message_EndLine;
-  S << "Vertical Distance Between Rows      : " << ent->RowSeparation() <<Message_EndLine;
-  S << "Rotation Angle (in radians)         : " << ent->RotationAngle() <<Message_EndLine;
-  S << "Do-Dont Flag : ";
+  S << "Number Of Columns : " << ent->NbColumns()   << "  "
+    << "Number Of Rows    : " << ent->NbRows()      << "\n"
+    << "Horizontal Distance Between Columns : " << ent->ColumnSeparation()<< "\n"
+    << "Vertical Distance Between Rows      : " << ent->RowSeparation() << "\n"
+    << "Rotation Angle (in radians)         : " << ent->RotationAngle() << "\n"
+    << "Do-Dont Flag : ";
   if (ent->DoDontFlag()) S << "(1)Dont  ";
   else                   S << "(0)Do  ";
   S << "Do-Dont List : ";
-  IGESData_DumpVals(S ,level,1, ent->ListCount(),ent->ListPosition);
-  S << Message_EndLine;
+  IGESData_DumpVals(S,level,1, ent->ListCount(),ent->ListPosition);
+  S << std::endl;
 }
index 13e077640bd0b1a200a60efcb5f60c1f13eaf630..cbf48c8303e2b5410cb66c62379aaf2a960bfcb5 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a RectArraySubfigure. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDraw_RectArraySubfigure)& entfrom, const Handle(IGESDraw_RectArraySubfigure)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDraw_RectArraySubfigure)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDraw_RectArraySubfigure)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 648ab51e00b5bbc32683297c0ffa9bb9ace8d978..24ab423c0898f78e22f45363fc7a81ad3e26aa61 100644 (file)
@@ -35,7 +35,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 #include <TColStd_HArray1OfReal.hxx>
@@ -277,24 +276,23 @@ void IGESDraw_ToolSegmentedViewsVisible::OwnCheck
 
 void IGESDraw_ToolSegmentedViewsVisible::OwnDump
   (const Handle(IGESDraw_SegmentedViewsVisible)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_SegmentedViewsVisible" << Message_EndLine;
-
-  S << "View Entities            : " << Message_EndLine
-    << "Breakpoint parameters    : " << Message_EndLine
-    << "Display flags            : " << Message_EndLine
-    << "Color Values             : " << Message_EndLine
-    << "Color Definitions        : " << Message_EndLine
-    << "LineFont Values          : " << Message_EndLine
-    << "LineFont Definitions     : " << Message_EndLine
-    << "Line Weights : " << Message_EndLine;
-  S << "Count Of Blocks = "      << ent->NbSegmentBlocks() << Message_EndLine;
+  S << "IGESDraw_SegmentedViewsVisible\n"
+    << "View Entities            :\n"
+    << "Breakpoint parameters    :\n"
+    << "Display flags            :\n"
+    << "Color Values             :\n"
+    << "Color Definitions        :\n"
+    << "LineFont Values          :\n"
+    << "LineFont Definitions     :\n"
+    << "Line Weights :\n"
+    << "Count Of Blocks = "      << ent->NbSegmentBlocks() << "\n";
   switch (level)
     {
-    case 4 : S << " [ for content, ask level > 4 ]" << Message_EndLine;
+    case 4 : S << " [ for content, ask level > 4 ]\n";
       break; // Nothing to be dumped here
     case 5 :        // Presently level 5 and 6 have the same Dump
     case 6 :
@@ -303,23 +301,22 @@ void IGESDraw_ToolSegmentedViewsVisible::OwnDump
        Standard_Integer up  = ent->NbSegmentBlocks();
        for (I = 1; I <= up; I++)
           {
-           S << "[" << I << "]:" << Message_EndLine;
-           S << "View Entity : ";
+           S << "[" << I << "]:\n"
+             << "View Entity : ";
            dumper.Dump (ent->ViewItem(I),S, sublevel);
-           S << Message_EndLine;
-           S << "Breakpoint parameter : " <<ent->BreakpointParameter(I)<<Message_EndLine;
-           S << "Display Flag : " << ent->DisplayFlag(I) << Message_EndLine;
+           S << "\n"
+             << "Breakpoint parameter : " <<ent->BreakpointParameter(I)<< "\n"
+             << "Display Flag : " << ent->DisplayFlag(I) << "\n";
            if ( (ent->ColorDefinition(I)).IsNull() )
               {
-               S << "Color Value : ";
-               S << ent->ColorValue(I);
+               S << "Color Value : " << ent->ColorValue(I);
               }
            else
               {
                S << "Color Definition : ";
                dumper.Dump (ent->ColorDefinition(I),S, sublevel);
               }
-           S << Message_EndLine;
+           S << "\n";
            if ( (ent->LineFontDefinition(I)).IsNull() )
               {
                S << "LineFont Value : " << ent->LineFontValue(I);
@@ -329,11 +326,11 @@ void IGESDraw_ToolSegmentedViewsVisible::OwnDump
                S << "LineFont Definition : ";
                dumper.Dump (ent->LineFontDefinition(I),S, sublevel);
               }
-           S << Message_EndLine;
-           S << "Line Weight : " << ent->LineWeightItem(I) << Message_EndLine;
+           S << "\n"
+             << "Line Weight : " << ent->LineWeightItem(I) << "\n";
           }
       }
       break;
     }
-  S << Message_EndLine;
+  S << std::endl;
 }
index 09980452f40c199864688b06e8a1488778e7920f..e835cbf03e87c13c2024552801a13c2dadd7badf 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a SegmentedViewsVisible. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDraw_SegmentedViewsVisible)& entfrom, const Handle(IGESDraw_SegmentedViewsVisible)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDraw_SegmentedViewsVisible)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDraw_SegmentedViewsVisible)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index ae61b4b659c62746a1bc5b2ae723baefe1522d12..2488fbde3b266b54997240a84100bca20e73373b 100644 (file)
@@ -31,7 +31,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
 IGESDraw_ToolView::IGESDraw_ToolView ()    {  }
@@ -153,24 +152,23 @@ void IGESDraw_ToolView::OwnCheck
 
 void IGESDraw_ToolView::OwnDump
   (const Handle(IGESDraw_View)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
   Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_View" << Message_EndLine;
-
-  S << "View Number  : " << ent->ViewNumber()  << Message_EndLine;
-  S << "Scale Factor : " << ent->ScaleFactor() << Message_EndLine;
-  S << "Left Plane Of View Volume   : ";
-  dumper.Dump(ent->LeftPlane(),S, tempSubLevel);    S << Message_EndLine;
+  S << "IGESDraw_View\n"
+    << "View Number  : " << ent->ViewNumber()  << "\n"
+    << "Scale Factor : " << ent->ScaleFactor() << "\n"
+    << "Left Plane Of View Volume   : ";
+  dumper.Dump(ent->LeftPlane(),S, tempSubLevel);    S << "\n";
   S << "Top Plane Of View Volume    : ";
-  dumper.Dump(ent->TopPlane(),S, tempSubLevel);     S << Message_EndLine;
+  dumper.Dump(ent->TopPlane(),S, tempSubLevel);     S << "\n";
   S << "Right Plane Of View Volume  : ";
-  dumper.Dump(ent->RightPlane(),S, tempSubLevel);   S << Message_EndLine;
+  dumper.Dump(ent->RightPlane(),S, tempSubLevel);   S << "\n";
   S << "Bottom Plane Of View Volume : ";
-  dumper.Dump(ent->BottomPlane(),S, tempSubLevel);  S << Message_EndLine;
+  dumper.Dump(ent->BottomPlane(),S, tempSubLevel);  S << "\n";
   S << "Back Plane Of View Volume   : ";
-  dumper.Dump(ent->BackPlane(),S, tempSubLevel);    S << Message_EndLine;
+  dumper.Dump(ent->BackPlane(),S, tempSubLevel);    S << "\n";
   S << "Front Plane Of View Volume  : ";
-  dumper.Dump(ent->FrontPlane(),S, tempSubLevel);   S << Message_EndLine;
+  dumper.Dump(ent->FrontPlane(),S, tempSubLevel);   S << std::endl;
 }
index 79b3e378f3d46e7d30f0cbc205e55e1c76e99d50..e53c9f427dbe1a394e4a5d348b15479be1d46784 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a View. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESDraw_View)& entfrom, const Handle(IGESDraw_View)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDraw_View)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDraw_View)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 03f89c671bb537bca2e45b92ce457f85c185f101..728795ab651df18d3cdd358ec18f002b2038dfa2 100644 (file)
@@ -34,7 +34,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
 #include <stdio.h>
@@ -227,17 +226,15 @@ void  IGESDraw_ToolViewsVisible::OwnWhenDelete
 
 void IGESDraw_ToolViewsVisible::OwnDump
   (const Handle(IGESDraw_ViewsVisible)& ent, const IGESData_IGESDumper& dumper,
-  const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
-  S << "IGESDraw_ViewsVisible" << Message_EndLine;
-
-  S << "Views Visible : ";
+  S << "IGESDraw_ViewsVisible\n"
+    << "Views Visible : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbViews(),ent->ViewItem);
-  S << Message_EndLine;
-  S << "Entities Displayed : ";
-  IGESData_DumpEntities
-    (S,dumper ,level,1, ent->NbDisplayedEntities(),ent->DisplayedEntity);
-  S << Message_EndLine;
+  S << "\n"
+    << "Entities Displayed : ";
+  IGESData_DumpEntities(S,dumper ,level,1, ent->NbDisplayedEntities(),ent->DisplayedEntity);
+  S << std::endl;
 }
 
 Standard_Boolean  IGESDraw_ToolViewsVisible::OwnCorrect
index 4ae6139f0499b50be887fcbd7adc582829651f45..f3099cbab8ab320b8912923613f540065b0f97d2 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a ViewsVisible. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -83,7 +81,7 @@ public:
   Standard_EXPORT void OwnWhenDelete (const Handle(IGESDraw_ViewsVisible)& ent) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDraw_ViewsVisible)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDraw_ViewsVisible)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
   
   //! Sets automatic unambiguous Correction on a ViewsVisible
   //! (all displayed entities must refer to <ent> in directory part,
index 99bcfae57acc5c0c3cef1e5bef0ed0939c2cb100..79c1fc1ac6f9ae5351b4e946fc6486bb0f5e124f 100644 (file)
@@ -38,7 +38,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 
@@ -337,48 +336,46 @@ void IGESDraw_ToolViewsVisibleWithAttr::OwnWhenDelete
 
 void IGESDraw_ToolViewsVisibleWithAttr::OwnDump
   (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent, const IGESData_IGESDumper& dumper,
-  const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
   Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_ViewsVisibleWithAttr" << Message_EndLine;
-
-  S << "View Entities            : " << Message_EndLine
-    << "Line Font Values         : " << Message_EndLine
-    << "Line Font Definitions    : " << Message_EndLine
-    << "Color Number/Definitions : " << Message_EndLine
-    << "Line Weights             : " << Message_EndLine;
-  S << "Count of View Blocks : "     << ent->NbViews() << Message_EndLine;
+  S << "IGESDraw_ViewsVisibleWithAttr\n"
+    << "View Entities            :\n"
+    << "Line Font Values         :\n"
+    << "Line Font Definitions    :\n"
+    << "Color Number/Definitions :\n"
+    << "Line Weights             :\n"
+    << "Count of View Blocks : "     << ent->NbViews() << "\n";
   if (level > 4) {   // Level = 4 : nothing to Dump. Level = 5 & 6 : same Dump
     Standard_Integer I;
     Standard_Integer upper  = ent->NbViews();
     for (I = 1; I <= upper; I++) {
-      S << "[" << I << "]: " << Message_EndLine;
-      S << "View Entity : ";
+      S << "[" << I << "]:\n"
+        << "View Entity : ";
       dumper.Dump (ent->ViewItem(I),S, tempSubLevel);
-      S << Message_EndLine;
+      S << "\n";
 
       if (ent->IsFontDefinition(I)) {
        S << "Line Font Definition  : ";
        dumper.Dump (ent->FontDefinition(I),S, tempSubLevel);
-       S << Message_EndLine;
+       S << "\n";
       }
-      else S << "Line Font Value       : " << ent->LineFontValue(I) << Message_EndLine;
+      else S << "Line Font Value       : " << ent->LineFontValue(I) << "\n";
 
       if (ent->IsColorDefinition(I)) {
        S << "Color Definition : ";
        dumper.Dump (ent->ColorDefinition(I),S, tempSubLevel);
-       S << Message_EndLine;
+       S << std::endl;
       }
-      else S << "Color Value      : " << ent->ColorValue(I) << Message_EndLine;
+      else S << "Color Value      : " << ent->ColorValue(I) << "\n";
 
-      S      << "Line Weight      : " << ent->LineWeightItem(I) << Message_EndLine;
+      S << "Line Weight      : " << ent->LineWeightItem(I) << "\n";
     }
   }
   S << "Displayed Entities : ";
-  IGESData_DumpEntities
-    (S,dumper ,level,1, ent->NbDisplayedEntities(),ent->DisplayedEntity);
-  S << Message_EndLine;
+  IGESData_DumpEntities(S,dumper ,level,1, ent->NbDisplayedEntities(),ent->DisplayedEntity);
+  S << std::endl;
 }
 
 Standard_Boolean  IGESDraw_ToolViewsVisibleWithAttr::OwnCorrect
index cd3437d493d0553ee639b7c33c0902fc34b3fb57..15ef55e16e71b10691140ff9ed7de75cac302833 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a ViewsVisibleWithAttr. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -84,7 +82,7 @@ public:
   Standard_EXPORT void OwnWhenDelete (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESDraw_ViewsVisibleWithAttr)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
   
   //! Sets automatic unambiguous Correction on a ViewsVisibleWithAttr
   //! (all displayed entities must refer to <ent> in directory part,
index 316d22ffae326cdb72f60b82a9027ef8adc2449e..b04c56231186362eba52360527c5d042fe823906 100644 (file)
@@ -62,7 +62,6 @@
 #include <IGESGeom_TransformationMatrix.hxx>
 #include <IGESGeom_TrimmedSurface.hxx>
 #include <Interface_Macros.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESGeom_SpecificModule,IGESData_SpecificModule)
@@ -75,7 +74,7 @@ IGESGeom_SpecificModule::IGESGeom_SpecificModule()    {  }
 
     void  IGESGeom_SpecificModule::OwnDump
   (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
-   const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S,
+   const IGESData_IGESDumper& dumper, Standard_OStream& S,
    const Standard_Integer own) const 
 {
   switch (CN) {
index 76d1b6e800a0954bdef73790e91e0de06524ce05..274feb9be130c93b9e8d414b5c34b3e7ab464f46 100644 (file)
@@ -25,8 +25,6 @@
 #include <Standard_Boolean.hxx>
 class IGESData_IGESEntity;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 class IGESGeom_SpecificModule;
 DEFINE_STANDARD_HANDLE(IGESGeom_SpecificModule, IGESData_SpecificModule)
@@ -43,7 +41,7 @@ public:
   Standard_EXPORT IGESGeom_SpecificModule();
   
   //! Specific Dump (own parameters) for IGESGeom
-  Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const Standard_OVERRIDE;
+  Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const Standard_OVERRIDE;
   
   //! Performs non-ambiguous Correction on Entities which support
   //! them (Boundary,ConicArc,Flash,OffsetCurve,TransformationMatrix)
index 961ab8ac9b3f84e80ceea23191d3d42a1a13b84e..dcaaf0572ddafa19f57635f02129d33beb3b041f 100644 (file)
@@ -401,27 +401,26 @@ void IGESGeom_ToolBSplineCurve::OwnCheck(const Handle(IGESGeom_BSplineCurve)& en
 
 void IGESGeom_ToolBSplineCurve::OwnDump(const Handle(IGESGeom_BSplineCurve)& ent,
                                         const IGESData_IGESDumper& /* dumper */,
-                                        const Handle(Message_Messenger)& S,
+                                        Standard_OStream& S,
                                         const Standard_Integer level)  const
 {
   Standard_Integer upind = ent->UpperIndex();
-  S << "BSplineCurve from IGESGeom" << Message_EndLine;
-  S << "Sum UpperIndex : " << upind;
-  S << "   Degree : " << ent->Degree() << "  ";
-  S << (ent->IsPlanar() ? "Planar" : "NonPlanar") << Message_EndLine;
-  S << (ent->IsClosed() ? "Closed" : "Open") << "  ";
-  S << (ent->IsPeriodic() ? "Periodic" : "NonPeriodic") << "  ";//#54 rln 24.12.98 CCI60005
-  S << (ent->IsPolynomial(Standard_True) ? "Polynomial" : "Rational");
-
-  S << Message_EndLine << "Knots : ";
-  IGESData_DumpVals(S ,level,-ent->Degree(), upind+1,ent->Knot);
-  S << Message_EndLine << "Weights : ";
-  IGESData_DumpVals(S ,level,0, upind,ent->Weight);
-  S << Message_EndLine << "Control Points (Poles) : ";
-  IGESData_DumpListXYZL(S ,level,0, upind, ent->Pole, ent->Location());
-  S << Message_EndLine << "Starting Parameter Value : " << ent->UMin();
-  S << "  Ending Parameter Value : " << ent->UMax() << Message_EndLine;
-  S << "Unit Normal : ";
+  S << "BSplineCurve from IGESGeom\n"
+    << "Sum UpperIndex : " << upind
+    << "   Degree : " << ent->Degree() << "  "
+    << (ent->IsPlanar() ? "Planar" : "NonPlanar") << "\n"
+    << (ent->IsClosed() ? "Closed" : "Open") << "  "
+    << (ent->IsPeriodic() ? "Periodic" : "NonPeriodic") << "  " //#54 rln 24.12.98 CCI60005
+    << (ent->IsPolynomial(Standard_True) ? "Polynomial" : "Rational")
+    << "\nKnots : ";
+  IGESData_DumpVals(S,level,-ent->Degree(), upind+1,ent->Knot);
+  S << "\nWeights : ";
+  IGESData_DumpVals(S,level,0, upind,ent->Weight);
+  S << "\nControl Points (Poles) : ";
+  IGESData_DumpListXYZL(S,level,0, upind, ent->Pole, ent->Location());
+  S << "\nStarting Parameter Value : " << ent->UMin()
+    << "  Ending Parameter Value : " << ent->UMax() << "\n"
+    << "Unit Normal : ";
   IGESData_DumpXYZL(S,level, ent->Normal(), ent->Location());
-  S << Message_EndLine;
+  S << std::endl;
 }
index 2c0aa0ffbc86c5ffca746cac6add45b11aa00ad6..5c0e0d80659bb2af3d2b915088eedb01b99c2559 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a BSplineCurve. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_BSplineCurve)& entfrom, const Handle(IGESGeom_BSplineCurve)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_BSplineCurve)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_BSplineCurve)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index f54d8c9e3657a2bce58a35c71894eadc18bdde9e..190898c1ac3600ced8405567f4c9901c31e5222d 100644 (file)
@@ -466,50 +466,50 @@ void IGESGeom_ToolBSplineSurface::OwnCheck(const Handle(IGESGeom_BSplineSurface)
 
 void IGESGeom_ToolBSplineSurface::OwnDump(const Handle(IGESGeom_BSplineSurface)& ent,
                                           const IGESData_IGESDumper& /* dumper */,
-                                          const Handle(Message_Messenger)& S,
+                                          Standard_OStream& S,
                                           const Standard_Integer level)  const
 {
-  S << "BSplineSurface from IGESGeom" << Message_EndLine << Message_EndLine;
+  S << "BSplineSurface from IGESGeom\n\n";
 
   Standard_Integer indU = ent->UpperIndexU();
   Standard_Integer indV = ent->UpperIndexV();
   Standard_Integer degU = ent->DegreeU();
   Standard_Integer degV = ent->DegreeV();
 
-  S << "In U : Upper Knot Index : " << indU;
-  S << "   Degree : " << degU << "  ";
-  S << (ent->IsClosedU() ? "Closed" : "Open") << "  ";
-  S << (ent->IsPeriodicU() ? "Periodic" : "Non Periodic");
-  S << Message_EndLine;
-  S << "In V : Upper Knot Index : " << indV;
-  S << "   Degree : " << degV << "  ";
-  S << (ent->IsClosedV() ? "Closed" : "Open") << "  ";
-  S << (ent->IsPeriodicV() ? "Periodic" : "Non Periodic") << "  ";
-  S << (ent->IsPolynomial(Standard_True) ? "Polynomial" : "Rational") << Message_EndLine;
-
-  S << "Starting Parameter for U direction : " << ent->UMin() << Message_EndLine;
-  S << "Ending   Parameter for U direction : " << ent->UMax() << Message_EndLine;
-  S << "Starting Parameter for V direction : " << ent->VMin() << Message_EndLine;
-  S << "Ending   Parameter for V direction : " << ent->VMax() << Message_EndLine;
+  S << "In U : Upper Knot Index : " << indU
+    << "   Degree : " << degU << "  "
+    << (ent->IsClosedU() ? "Closed" : "Open") << "  "
+    << (ent->IsPeriodicU() ? "Periodic" : "Non Periodic")
+    << "\n"
+    << "In V : Upper Knot Index : " << indV
+    << "   Degree : " << degV << "  "
+    << (ent->IsClosedV() ? "Closed" : "Open") << "  "
+    << (ent->IsPeriodicV() ? "Periodic" : "Non Periodic") << "  "
+    << (ent->IsPolynomial(Standard_True) ? "Polynomial" : "Rational") << "\n";
+
+  S << "Starting Parameter for U direction : " << ent->UMin() << "\n"
+    << "Ending   Parameter for U direction : " << ent->UMax() << "\n"
+    << "Starting Parameter for V direction : " << ent->VMin() << "\n"
+    << "Ending   Parameter for V direction : " << ent->VMax() << "\n";
 
   S << " Knots in  U : ";
-  IGESData_DumpVals(S ,level,-degU, indU+1,ent->KnotU);
-  S << Message_EndLine;
-  S << " Knots in  V : ";
-  IGESData_DumpVals(S ,level,-degV, indV+1,ent->KnotV);
-  S << Message_EndLine;
-  S << "Weights : (Row -> IndexU, Col -> IndexV)";
-  IGESData_DumpRectVals(S ,level,0, indU,0,indV,ent->Weight);
-  S << Message_EndLine;
-  S << "Control Points (Poles) : ";
+  IGESData_DumpVals(S,level,-degU, indU+1,ent->KnotU);
+  S << "\n"
+    << " Knots in  V : ";
+  IGESData_DumpVals(S,level,-degV, indV+1,ent->KnotV);
+  S << "\n"
+    << "Weights : (Row -> IndexU, Col -> IndexV)";
+  IGESData_DumpRectVals(S,level,0, indU,0,indV,ent->Weight);
+  S << "\n"
+    << "Control Points (Poles) : ";
 //IGESData_DumpRectXYZL(S,level,1, ent->NbPoles(),ent->Pole, ent->Location());
-  if (level < 5) {  S << " [ content : ask level > 4 ]" << Message_EndLine; return;  }
+  if (level < 5) {  S << " [ content : ask level > 4 ]" << std::endl; return;  }
   gp_GTrsf loca = ent->Location();
   for (Standard_Integer JP = 0; JP <= indV; JP ++)
     for (Standard_Integer IP = 0; IP <= indU; IP ++) {
-      if (IP == 0) S << Message_EndLine;
+      if (IP == 0) S << "\n";
       S <<"  -  ["<<IP<<","<<JP<<"]: ";
       IGESData_DumpXYZL(S,level,ent->Pole(IP,JP),loca);
     }
-  S << Message_EndLine;
+  S << std::endl;
 }
index 7ad8e0bea8bf6fc049826be6c1981326dffe92fe..a515656cb8986fae4bf6b557229490f11c4f68ff 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a BSplineSurface. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_BSplineSurface)& entfrom, const Handle(IGESGeom_BSplineSurface)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_BSplineSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_BSplineSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 5994f1f7e68d19bec441d78062a73455d81641c1..6c7de8dc5fbee32c8c96eecb477047bf4a72391e 100644 (file)
@@ -34,7 +34,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
@@ -430,36 +429,38 @@ void IGESGeom_ToolBoundary::OwnCheck(const Handle(IGESGeom_Boundary)& ent,
 
 void IGESGeom_ToolBoundary::OwnDump(const Handle(IGESGeom_Boundary)& ent,
                                     const IGESData_IGESDumper& dumper,
-                                    const Handle(Message_Messenger)& S,
+                                    Standard_OStream& S,
                                     const Standard_Integer level)  const
 {
   Standard_Integer i, num, sublevel = (level > 4) ? 1 : 0;
-  S << "IGESGeom_Boundary" << Message_EndLine;
-  S << "Bounded Surface Representation Type : " << ent->BoundaryType() << Message_EndLine;
-  S << "Trimming Curves Representation : " << ent->PreferenceType() << Message_EndLine;
-  S << "Bounded Surface    : ";
+  S << "IGESGeom_Boundary\n"
+    << "Bounded Surface Representation Type : " << ent->BoundaryType() << "\n"
+    << "Trimming Curves Representation : " << ent->PreferenceType() << "\n"
+    << "Bounded Surface    : ";
   dumper.Dump(ent->Surface(),S, sublevel);
-  S << Message_EndLine;
-  S << "Model Space Curves : " << Message_EndLine;
-  S << "Orientation Flags  : " << Message_EndLine;
-  S << "Parameter Curves Set : ";
-  IGESData_DumpEntities
-    (S,dumper,-level,1,ent->NbModelSpaceCurves(),ent->ModelSpaceCurve);
-  S << Message_EndLine;
+  S << "\n"
+    << "Model Space Curves :\n"
+    << "Orientation Flags  :\n"
+    << "Parameter Curves Set : ";
+  IGESData_DumpEntities(S,dumper,-level,1,ent->NbModelSpaceCurves(),ent->ModelSpaceCurve);
+  S << "\n";
   if (level > 4)
     for ( num = ent->NbModelSpaceCurves(), i = 1; i <= num; i++ )
       {
-       S << "[" << i << "]: ";
-       S << "Model Space Curve : ";
+       S << "[" << i << "]: "
+         << "Model Space Curve : ";
        dumper.Dump (ent->ModelSpaceCurve(i),S, 1);
-       S << "  Orientation Flags : " << ent->Sense(i) << Message_EndLine;
-       S << "  Parameter Curves : ";
+       S << "  Orientation Flags : " << ent->Sense(i) << "\n"
+         << "  Parameter Curves : ";
        Handle(IGESData_HArray1OfIGESEntity) curves = ent->ParameterCurves(i);
        if (!curves.IsNull()) {
          IGESData_DumpEntities(S,dumper, level,1,curves->Length(),curves->Value);
        }
-       else S << " List Empty";
-       S << Message_EndLine;
+       else
+  {
+    S << " List Empty";
+  }
+       S << "\n";
       }
-  S << Message_EndLine;
+  S << std::endl;
 }
index 8eee7e1e9d94b9128669d9a1d6fb99c7298c6d6d..d5b4d78dbfc9e3e7de68828e25ff1ae119abb661 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Boundary. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_Boundary)& entfrom, const Handle(IGESGeom_Boundary)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_Boundary)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_Boundary)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 8080c6b91309f146b0d9857e962e4f80c866c83f..3253bc8fa4f94d094dbff2647b5a79dff89c8177 100644 (file)
@@ -250,16 +250,16 @@ void IGESGeom_ToolBoundedSurface::OwnCheck(const Handle(IGESGeom_BoundedSurface)
 
 void IGESGeom_ToolBoundedSurface::OwnDump(const Handle(IGESGeom_BoundedSurface)& ent,
                                           const IGESData_IGESDumper& dumper,
-                                          const Handle(Message_Messenger)& S,
+                                          Standard_OStream& S,
                                           const Standard_Integer level)  const
 {
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
-  S << "IGESGeom_BoundedSurface" << Message_EndLine;
-  S << "Representation Type   : " << ent->RepresentationType() << Message_EndLine;
-  S << "Surface to be Bounded : ";
+  S << "IGESGeom_BoundedSurface\n"
+    << "Representation Type   : " << ent->RepresentationType() << "\n"
+    << "Surface to be Bounded : ";
   dumper.Dump(ent->Surface(),S, sublevel);
-  S << Message_EndLine;
-  S << "Boundary Entities     : ";
+  S << "\n"
+    << "Boundary Entities     : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbBoundaries(),ent->Boundary);
-  S << Message_EndLine;
+  S << std::endl;
 }
index 61c6d716c3dbbd5912de5e542014a78063184e9c..96444b19d7693d62198451bf76cf9d22ea8b1ab6 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a BoundedSurface. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_BoundedSurface)& entfrom, const Handle(IGESGeom_BoundedSurface)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_BoundedSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_BoundedSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 7bdf9d92250f0a22ea8611d36f6dc7a319208041..3be1d9f9a56bdf83589838860cac94e28c7edd6f 100644 (file)
@@ -33,7 +33,6 @@
 #include <Interface_Macros.hxx>
 #include <Interface_MSG.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 
@@ -141,20 +140,20 @@ void IGESGeom_ToolCircularArc::OwnCheck
 
 void IGESGeom_ToolCircularArc::OwnDump
   (const Handle(IGESGeom_CircularArc)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
-  S << "CircularArc from IGESGeom" << Message_EndLine;
-  S << "Z-Plane Displacement : " << ent->ZPlane() << Message_EndLine;
-  S << "Center      : ";
+  S << "CircularArc from IGESGeom]\n"
+    << "Z-Plane Displacement : " << ent->ZPlane() << "\n"
+    << "Center      : ";
   IGESData_DumpXYLZ(S,level, ent->Center(), ent->Location(), ent->ZPlane());
-  S << Message_EndLine;
-  S << "Start Point : ";
+  S << "\n"
+    << "Start Point : ";
   IGESData_DumpXYLZ(S,level, ent->StartPoint(), ent->Location(),ent->ZPlane());
-  S << Message_EndLine;
-  S << "End Point   : ";
+  S << "\n"
+    << "End Point   : ";
   IGESData_DumpXYLZ(S,level, ent->EndPoint(), ent->Location(), ent->ZPlane());
-  S << Message_EndLine;
+  S << "\n";
   if (level <= 5) return;
-  S<< "  Normal Axis : ";  IGESData_DumpXYZL(S,level,ent->Axis(),ent->VectorLocation());
-  S << Message_EndLine;
+  S << "  Normal Axis : ";  IGESData_DumpXYZL(S,level,ent->Axis(),ent->VectorLocation());
+  S << std::endl;
 }
index f0676fef0e2ef1818be67474e5cb45948ffa67d8..03392da7da6471bece3b4634fa8e83dd2f37dce4 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a CircularArc. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_CircularArc)& entfrom, const Handle(IGESGeom_CircularArc)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_CircularArc)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_CircularArc)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 7d13962d37d535a0b5ce06b4bbbfca52450cb18b..6bca940d04c11a69958f13a5ca83bfacddbbf059 100644 (file)
@@ -121,10 +121,10 @@ void  IGESGeom_ToolCompositeCurve::OwnCheck
 
 void  IGESGeom_ToolCompositeCurve::OwnDump
   (const Handle(IGESGeom_CompositeCurve)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
-  S << "IGESGeom_CompositeCurve" << Message_EndLine;
-  S << "Curve Entities : " << Message_EndLine;
+  S << "IGESGeom_CompositeCurve\n"
+    << "Curve Entities :\n";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbCurves(),ent->Curve);
-  S << Message_EndLine;
+  S << std::endl;
 }
index 501bc232f0177edd9c63f10e3ad50178c352a4a7..5f4b819f9ed509911b67a4ca1ee9ca0189487008 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a CompositeCurve. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_CompositeCurve)& entfrom, const Handle(IGESGeom_CompositeCurve)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_CompositeCurve)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_CompositeCurve)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 6ef8a7385dec04ee26550cb0281a63be72fe6b5d..7947bd8faf0a877a2fcb68c96f3d875859943837 100644 (file)
@@ -278,47 +278,49 @@ void IGESGeom_ToolConicArc::OwnCheck(const Handle(IGESGeom_ConicArc)& ent,
 
 void IGESGeom_ToolConicArc::OwnDump(const Handle(IGESGeom_ConicArc)& ent,
                                     const IGESData_IGESDumper& /* dumper */,
-                                    const Handle(Message_Messenger)& S,
+                                    Standard_OStream& S,
                                     const Standard_Integer level)  const
 {
   Standard_Real A,B,C,D,E,F;
   ent->Equation(A,B,C,D,E,F);
-  S << "IGESGeom_ConicArc" << Message_EndLine;
+  S << "IGESGeom_ConicArc\n";
   Standard_Integer cf = ent->FormNumber();
   if (cf == 0) cf = ent->ComputedFormNumber();
-  if (cf == 1)      S << " --     Ellipse     --" << Message_EndLine;
-  else if (cf == 2) S << " --    Hyperbola    --" << Message_EndLine;
-  else if (cf == 3) S << " --    Parabola    --"  << Message_EndLine;
-  else              S << " --    (Undetermined type of Conic)    --" << Message_EndLine;
-  S << "Conic Coefficient A : " << A << Message_EndLine;
-  S << "Conic Coefficient B : " << B << Message_EndLine;
-  S << "Conic Coefficient C : " << C << Message_EndLine;
-  S << "Conic Coefficient D : " << D << Message_EndLine;
-  S << "Conic Coefficient E : " << E << Message_EndLine;
-  S << "Conic Coefficient F : " << F << Message_EndLine;
-  S << "Z-Plane shift : " << ent->ZPlane() << Message_EndLine;
-  S << "Start Point : ";
+  if (cf == 1)      S << " --     Ellipse     --\n";
+  else if (cf == 2) S << " --    Hyperbola    --\n";
+  else if (cf == 3) S << " --    Parabola    --\n";
+  else              S << " --    (Undetermined type of Conic)    --\n";
+
+  S << "Conic Coefficient A : " << A << "\n"
+    << "Conic Coefficient B : " << B << "\n"
+    << "Conic Coefficient C : " << C << "\n"
+    << "Conic Coefficient D : " << D << "\n"
+    << "Conic Coefficient E : " << E << "\n"
+    << "Conic Coefficient F : " << F << "\n"
+    << "Z-Plane shift : " << ent->ZPlane() << "\n"
+    << "Start Point : ";
   IGESData_DumpXYLZ(S,level, ent->StartPoint(), ent->Location(),ent->ZPlane());
-  S << Message_EndLine;
-  S << "End   Point : ";
+  S << "\n"
+    << "End   Point : ";
   IGESData_DumpXYLZ(S,level, ent->EndPoint(), ent->Location(), ent->ZPlane());
-  S << Message_EndLine;
-  if (level <= 4) S<<" -- Computed Definition : ask level > 4" << Message_EndLine;
+  S << "\n";
+  if (level <= 4) S <<" -- Computed Definition : ask level > 4" << std::endl;
   else {
     gp_Pnt Cen;  gp_Dir Ax;  Standard_Real Rmin,Rmax;
     ent->Definition (Cen,Ax,Rmin,Rmax);
-    S << " -- Computed Definition (and Transformed if level > 5)" << Message_EndLine;
+    S << " -- Computed Definition (and Transformed if level > 5)\n";
 
     if (cf != 3) {
-      S<<" Center        : "; IGESData_DumpXYZL(S,level,Cen,ent->Location());
-      S<<Message_EndLine;
+      S <<" Center        : "; IGESData_DumpXYZL(S,level,Cen,ent->Location());
+      S <<"\n";
     }
     S << " Main Axis   : "; IGESData_DumpXYZL(S,level,Ax,ent->VectorLocation());
-    S<<Message_EndLine;
-    if (cf == 3) S << " Focal : " << Rmin << Message_EndLine;
-    else if (Rmin == Rmax) S << " Radius (Major = Minor) : " << Rmin << Message_EndLine;
-    else S << " Major Radius : " << Rmax << "  Minor Radius : " << Rmin <<Message_EndLine;
-    S<< "  Normal Axis : ";  IGESData_DumpXYZL(S,level,ent->Axis(),ent->VectorLocation());
-    S << Message_EndLine;
+    S <<"\n";
+    if (cf == 3) S << " Focal : " << Rmin << "\n";
+    else if (Rmin == Rmax) S << " Radius (Major = Minor) : " << Rmin << "\n";
+    else S << " Major Radius : " << Rmax << "  Minor Radius : " << Rmin <<"\n";
+    
+    S << "  Normal Axis : ";  IGESData_DumpXYZL(S,level,ent->Axis(),ent->VectorLocation());
+    S << std::endl;
   }
 }
index df65fa70b735c89c0ab57885cf688b6c837bd125..362e89a6d3411544e792f542c8bfbc4d1c9de502 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a ConicArc. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_ConicArc)& entfrom, const Handle(IGESGeom_ConicArc)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_ConicArc)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_ConicArc)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 5d558a41c50d72516d9bb81096cfd8e4ac142f97..58ac8d32ce54df94364981be37b3de6550a4d475 100644 (file)
@@ -262,7 +262,7 @@ void IGESGeom_ToolCopiousData::OwnCheck(const Handle(IGESGeom_CopiousData)& ent,
 
 void IGESGeom_ToolCopiousData::OwnDump(const Handle(IGESGeom_CopiousData)& ent,
                                        const IGESData_IGESDumper& /* dumper */,
-                                       const Handle(Message_Messenger)& S,
+                                       Standard_OStream& S,
                                        const Standard_Integer level)  const
 {
   Standard_Integer nbPnts = ent->NbPoints();
@@ -272,21 +272,21 @@ void IGESGeom_ToolCopiousData::OwnDump(const Handle(IGESGeom_CopiousData)& ent,
   gp_GTrsf locv = ent->VectorLocation();
   Standard_Boolean yatr = (level > 5 && ent->HasTransf());
 
-  S << "IGESGeom_CopiousData" << Message_EndLine;
+  S << "IGESGeom_CopiousData\n";
 
   if (ent->IsPointSet())          S << "Point Set  ";
   else if (ent->IsPolyline())     S << "Polyline  ";
   else if (ent->IsClosedPath2D()) S << "Closed Path 2D  ";
-  S << "DataType " << ent->DataType() << "  ";
-  S << "Number of T-uples = " << nbPnts << "  ";
+  S << "DataType " << ent->DataType() << "  "
+    << "Number of T-uples = " << nbPnts << "  ";
   if (dtype == 1) {
-    S << "(Points 2D)  ";
-    S << "ZPlane = " << ent->ZPlane() << Message_EndLine;
+    S << "(Points 2D)  "
+      << "ZPlane = " << ent->ZPlane() << "\n";
   }
   else if (dtype == 2)
-    S << "(Points 3D)" << Message_EndLine;
+    S << "(Points 3D)\n";
   else if (dtype == 3)
-    S << "(Points 3D + Vectors 3D)" << Message_EndLine;
+    S << "(Points 3D + Vectors 3D)\n";
 
   if (level > 4) {
     for (i = 1; i <= nbPnts; i ++) {
@@ -309,9 +309,9 @@ void IGESGeom_ToolCopiousData::OwnDump(const Handle(IGESGeom_CopiousData)& ent,
          S << " Transformed ("<< T.X() << "," << T.Y() << "," << T.Z() << ")";
        }
       }
-      S << Message_EndLine;
+      S << std::endl;
     }
   }
   else S << " [ for content, ask level > 4 ]";
-  S << Message_EndLine;
+  S << std::endl;
 }
index f0b66165e8af7c5827d754e6a51cf520534a843e..b043f1f413386d4659ec31842fb739044c67b0ce 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a CopiousData. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_CopiousData)& entfrom, const Handle(IGESGeom_CopiousData)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_CopiousData)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_CopiousData)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index e1bbfbb18ef3cfe02ab73012261249a0cc3657c5..979daaa01b5364b6dd98dc6b40775a345b4d1767 100644 (file)
@@ -265,33 +265,33 @@ void IGESGeom_ToolCurveOnSurface::OwnCheck(const Handle(IGESGeom_CurveOnSurface)
 
 void IGESGeom_ToolCurveOnSurface::OwnDump(const Handle(IGESGeom_CurveOnSurface)& ent,
                                           const IGESData_IGESDumper& dumper,
-                                          const Handle(Message_Messenger)& S,
+                                          Standard_OStream& S,
                                           const Standard_Integer level)  const
 {
-  S << "IGESGeom_CurveOnSurface" << Message_EndLine << Message_EndLine;
+  S << "IGESGeom_CurveOnSurface\n\n";
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
   Standard_Integer crem = ent->CreationMode();
   S << "Creation Mode : " << crem << "  i.e. ";
-  if      (crem == 0) S << " <Unspecified>" << Message_EndLine;
-  else if (crem == 1) S << " Projection of a Curve on a Surface" << Message_EndLine;
-  else if (crem == 2) S << " Intersection of two Surfaces" << Message_EndLine;
-  else if (crem == 3) S << " Isoparametric Curve (either U or V)" << Message_EndLine;
-  else S << " <Incorrect Value>" << Message_EndLine;
+  if      (crem == 0) S << " <Unspecified>\n";
+  else if (crem == 1) S << " Projection of a Curve on a Surface\n";
+  else if (crem == 2) S << " Intersection of two Surfaces\n";
+  else if (crem == 3) S << " Isoparametric Curve (either U or V)\n";
+  else S << " <Incorrect Value>\n";
   S << "The Surface on which the curve lies : ";
   dumper.Dump(ent->Surface(),S, sublevel);
-  S << Message_EndLine;
-  S << "The curve B (in the parametric space (u, v))  : ";
+  S << "\n"
+       "The curve B (in the parametric space (u, v))  : ";
   dumper.Dump(ent->CurveUV(),S, sublevel);
-  S << Message_EndLine;
-  S << "The curve C (in the 3D Space) : ";
+  S << "\n"
+       "The curve C (in the 3D Space) : ";
   dumper.Dump(ent->Curve3D(),S, sublevel);
-  S << Message_EndLine;
+  S << "\n";
   Standard_Integer pref = ent->PreferenceMode();
   S << "Preferred representation mode : " << pref << "  i.e. ";
-  if      (pref == 0) S << " <Unspecified>" << Message_EndLine;
-  else if (pref == 1) S << " Curve B on Surface" << Message_EndLine;
-  else if (pref == 2) S << " Curve C in 3D Space" << Message_EndLine;
-  else if (pref == 3) S << " Curves B & C equally preferred" << Message_EndLine;
-  else S << " <Incorrect Value>" << Message_EndLine;
+  if      (pref == 0) S << " <Unspecified>\n";
+  else if (pref == 1) S << " Curve B on Surface\n";
+  else if (pref == 2) S << " Curve C in 3D Space\n";
+  else if (pref == 3) S << " Curves B & C equally preferred\n";
+  else S << " <Incorrect Value>\n";
 }
index db69a033e3c8303ff959e96653838f2ed7edf5f7..c794925dfb180d7c679aaf2ad42f9cef16a7ad79 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a CurveOnSurface. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_CurveOnSurface)& entfrom, const Handle(IGESGeom_CurveOnSurface)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_CurveOnSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_CurveOnSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 516234e44cc0f71ba1f85ec5e58dcd32f084979c..cc99544e21d48586f1f076849e139d5b96c1fdf8 100644 (file)
@@ -33,7 +33,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
 IGESGeom_ToolDirection::IGESGeom_ToolDirection ()    {  }
@@ -115,11 +114,10 @@ void IGESGeom_ToolDirection::OwnCheck
 
 void IGESGeom_ToolDirection::OwnDump
   (const Handle(IGESGeom_Direction)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
-  S << "IGESGeom_Direction" << Message_EndLine << Message_EndLine;
-
-  S << "Value : ";
+  S << "IGESGeom_Direction\n\n"
+    << "Value : ";
   IGESData_DumpXYZL(S,level, ent->Value(), ent->VectorLocation());
-  S << Message_EndLine;
+  S << std::endl;
 }
index 50ab570ed9ac0be6f5f9118c2a9225dbec1c9716..f0aacec8c853698d37d7531c6012b3e2ce4c8e50 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Direction. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_Direction)& entfrom, const Handle(IGESGeom_Direction)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_Direction)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_Direction)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index de2dfeec88234d6225f6dbd149642a9dd4325c86..4d1d4c7ce6242722828b66013085bb5bdc101db9 100644 (file)
@@ -173,14 +173,14 @@ void IGESGeom_ToolFlash::OwnCheck
 
 void IGESGeom_ToolFlash::OwnDump
   (const Handle(IGESGeom_Flash)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
   Standard_Integer fn = ent->FormNumber();
 
-  S << "IGESGeom_Flash" << Message_EndLine;
+  S << "IGESGeom_Flash\n";
   switch (fn) {
-    case 0 : S << " --    Form defined by reference entity   --" << Message_EndLine; break;
+    case 0 : S << " --    Form defined by reference entity   --\n"; break;
     case 1 : S << " --    Circular    --  ";  break;
     case 2 : S << " --    Rectangle   --  ";  break;
     case 3 : S << " --    Donut    --  ";  break;
@@ -190,10 +190,10 @@ void IGESGeom_ToolFlash::OwnDump
 
   S << "Flash reference point    : ";
   IGESData_DumpXYL(S,level, ent->ReferencePoint(), ent->Location());
-  S << " First sizing parameter  : " << ent->Dimension1() << "  ";
-  S << " Second sizing parameter : " << ent->Dimension2() << Message_EndLine;
-  S << " Rotation about reference entity : " << ent->Rotation() << Message_EndLine;
-  S << "Reference Entity         : ";
+  S << " First sizing parameter  : " << ent->Dimension1() << "  "
+    << " Second sizing parameter : " << ent->Dimension2() << "\n"
+    << " Rotation about reference entity : " << ent->Rotation() << "\n"
+    << "Reference Entity         : ";
   dumper.Dump(ent->ReferenceEntity(),S, sublevel);
-  S << Message_EndLine;
+  S << std::endl;
 }
index a73f8f8ebb4fe9dd1597caa7151ed323799670ae..27b4ea82ef9eddb55e2c18c52eb0c210bdcd5cd4 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Flash. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_Flash)& entfrom, const Handle(IGESGeom_Flash)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_Flash)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_Flash)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 64c81301f85957810cd22a108e3ccffecdfc5932..b501886540de0ce3183f8673283e1e92cb12a83f 100644 (file)
@@ -108,20 +108,20 @@ void IGESGeom_ToolLine::OwnCheck
 
 void IGESGeom_ToolLine::OwnDump
   (const Handle(IGESGeom_Line)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
   Standard_Integer infin = ent->Infinite();
   switch (infin) {
-    case 1 : S << "Semi-Infinite Line"<<Message_EndLine;  break;
-    case 2 : S << "Infinite Line"<<Message_EndLine;  break;
-    default : S << "Bounded Line"<<Message_EndLine; break;
+    case 1 : S << "Semi-Infinite Line\n"; break;
+    case 2 : S << "Infinite Line\n"; break;
+    default : S << "Bounded Line\n"; break;
   }
 
-  S << "Line from IGESGeom" << Message_EndLine;
-  S << "Starting Point : ";
+  S << "Line from IGESGeom\n"
+    << "Starting Point : ";
   IGESData_DumpXYZL(S,level, ent->StartPoint(), ent->Location());
-  S << Message_EndLine;
-  S << "End Point : ";
+  S << "\n"
+       "End Point : ";
   IGESData_DumpXYZL(S,level, ent->EndPoint(), ent->Location());
-  S << Message_EndLine;
+  S << std::endl;
 }
index 180764b020b15e76119020aed677f7ed1b030eda..9f344515803bedfdd5a4e1be947199d03cf11686 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Line. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_Line)& entfrom, const Handle(IGESGeom_Line)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_Line)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_Line)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index b3148e6383bff69bdcdba37a33b8a7fb0831ca11..23dd13af6239c25add388435782e6f0d6b8f391d 100644 (file)
@@ -351,27 +351,26 @@ void IGESGeom_ToolOffsetCurve::OwnCheck(const Handle(IGESGeom_OffsetCurve)& ent,
 
 void IGESGeom_ToolOffsetCurve::OwnDump(const Handle(IGESGeom_OffsetCurve)& ent,
                                        const IGESData_IGESDumper& dumper,
-                                       const Handle(Message_Messenger)& S,
+                                       Standard_OStream& S,
                                        const Standard_Integer level)  const
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESGeom_OffsetCurve" << Message_EndLine;
-
-  S << "The curve to be offset     : " << Message_EndLine;
+  S << "IGESGeom_OffsetCurve\n"
+    << "The curve to be offset     :\n";
   dumper.Dump(ent->BaseCurve(),S, sublevel);
-  S << "Offset Distance Flag       : " << ent->OffsetType() << Message_EndLine;
-  S << "Curve entity whose coordinate defines the offset : ";
+  S << "Offset Distance Flag       : " << ent->OffsetType() << "\n"
+    << "Curve entity whose coordinate defines the offset : ";
   dumper.Dump(ent->Function(),S, sublevel);
-  S << Message_EndLine;
-  S << "In which Coordinate to use : " << ent->FunctionParameter()    << Message_EndLine;
-  S << "Tapered Offset Type Flag   : " << ent->TaperedOffsetType()    << Message_EndLine;
-  S << "First Offset Distance      : " << ent->FirstOffsetDistance()  << "  ";
-  S << "Arc Length : " << ent->ArcLength1() << Message_EndLine;
-  S << "Second Offset Distance     : " << ent->SecondOffsetDistance() << "  ";
-  S << "Arc Length : " << ent->ArcLength2() << Message_EndLine;
-  S << "Normal Vector : ";
-  IGESData_DumpXYZL(S,level, ent->NormalVector(), ent->VectorLocation());  S<<Message_EndLine;
-  S << "Offset curve Parameters. Starting : " << ent->StartParameter() << "  ";
-  S << "Ending : " << ent->EndParameter()   << Message_EndLine;
+  S << "\n"
+    << "In which Coordinate to use : " << ent->FunctionParameter()    << "\n"
+    << "Tapered Offset Type Flag   : " << ent->TaperedOffsetType()    << "\n"
+    << "First Offset Distance      : " << ent->FirstOffsetDistance()  << "  "
+    << "Arc Length : " << ent->ArcLength1() << "\n"
+    << "Second Offset Distance     : " << ent->SecondOffsetDistance() << "  "
+    << "Arc Length : " << ent->ArcLength2() << "\n"
+    << "Normal Vector : ";
+  IGESData_DumpXYZL(S,level, ent->NormalVector(), ent->VectorLocation());  S <<"\n";
+  S << "Offset curve Parameters. Starting : " << ent->StartParameter() << "  "
+    << "Ending : " << ent->EndParameter()   << std::endl;
 }
index 75dc1d814803eae8aab6f76349a91dfa765f9665..3302b15d2e54f598c4bab91d999c14a3c133fb5e 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a OffsetCurve. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_OffsetCurve)& entfrom, const Handle(IGESGeom_OffsetCurve)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_OffsetCurve)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_OffsetCurve)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 3857c449a84d18dd52c5b1965b96331c827d99dd..4a0151b7a26b59ceec91fc70ae5de7bec7550cca 100644 (file)
@@ -147,17 +147,16 @@ void IGESGeom_ToolOffsetSurface::OwnCheck
 
 void IGESGeom_ToolOffsetSurface::OwnDump
   (const Handle(IGESGeom_OffsetSurface)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESGeom_OffsetSurface" << Message_EndLine;
-
-  S << "Offset Indicator     : ";
+  S << "IGESGeom_OffsetSurface\n"
+    << "Offset Indicator     : ";
   IGESData_DumpXYZL(S,level, ent->OffsetIndicator(), ent->VectorLocation());
-  S << Message_EndLine;
-  S << "Offset Distance      : " << ent->Distance() << "  ";
-  S << "Surface to be offset : ";
+  S << "\n"
+    << "Offset Distance      : " << ent->Distance() << "  "
+    << "Surface to be offset : ";
   dumper.Dump(ent->Surface(),S, sublevel);
-  S << Message_EndLine;
+  S << std::endl;
 }
index 5aeda5da3d75153a122e327e8b296edde18f8853..c93ebdd43ab23a2f4ec262576d4fb8aefe82dbd8 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a OffsetSurface. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_OffsetSurface)& entfrom, const Handle(IGESGeom_OffsetSurface)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_OffsetSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_OffsetSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 9fa0a8b7d18e3e614b575ab3de69c4d087c62177..57a91718d295d61fb1d171aa95f363ea6dcf1ceb 100644 (file)
@@ -266,21 +266,21 @@ void IGESGeom_ToolPlane::OwnCheck(const Handle(IGESGeom_Plane)& ent,
 
 void IGESGeom_ToolPlane::OwnDump(const Handle(IGESGeom_Plane)& ent,
                                  const IGESData_IGESDumper& dumper,
-                                 const Handle(Message_Messenger)& S,
+                                 Standard_OStream& S,
                                  const Standard_Integer level)  const
 {
-  S << "IGESGeom_Plane" << Message_EndLine;
+  S << "IGESGeom_Plane\n";
   Standard_Real A,B,C,D;
   ent->Equation(A,B,C,D);
 
-  S << "Plane Coefficient A : " << A << Message_EndLine;
-  S << "Plane Coefficient B : " << B << Message_EndLine;
-  S << "Plane Coefficient C : " << C << Message_EndLine;
-  S << "Plane Coefficient D : " << D << Message_EndLine;
-  S << "The Bounding Curve  : " ;
+  S << "Plane Coefficient A : " << A << "\n"
+    << "Plane Coefficient B : " << B << "\n"
+    << "Plane Coefficient C : " << C << "\n"
+    << "Plane Coefficient D : " << D << "\n"
+    << "The Bounding Curve  : " ;
   dumper.Dump(ent->BoundingCurve(),S, (level <= 4) ? 0 : 1);
-  S << Message_EndLine;
-  S << "Display Symbol Location : ";
+  S << "\n"
+    << "Display Symbol Location : ";
   IGESData_DumpXYZL(S,level, ent->SymbolAttach(), ent->Location());
-  S << "  Size  : " << ent->SymbolSize() << Message_EndLine;
+  S << "  Size  : " << ent->SymbolSize() << std::endl;
 }
index 2d693b73e6da82f027c189bf76bb17861a73fc96..29bf270f13e41ba8ffc53c1f3c7fd3acd09c6eea 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Plane. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_Plane)& entfrom, const Handle(IGESGeom_Plane)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_Plane)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_Plane)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 677032e66445d0a11109d795ec14a3c39dd279d9..670f11fc7bf479a2f581f2538753cd0d4e1a8b58 100644 (file)
@@ -142,14 +142,13 @@ void IGESGeom_ToolPoint::OwnCheck
 
 void IGESGeom_ToolPoint::OwnDump
   (const Handle(IGESGeom_Point)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
-  S << "IGESGeom_Point" << Message_EndLine;
-
-  S << " Value         : ";
+  S << "IGESGeom_Point\n"
+    << " Value         : ";
   IGESData_DumpXYZL(S,level, ent->Value(), ent->Location());
-  S << Message_EndLine;
-  S << " Display Symbol : ";
+  S << "\n"
+    << " Display Symbol : ";
   dumper.Dump(ent->DisplaySymbol(),S, (level <= 4) ? 0 : 1);
-  S << Message_EndLine;
+  S << std::endl;
 }
index 5eb5a28fec16e0ad5dc2b9706f24edf9863933c8..d8e3c43c2bf447cc20ec566e9236786b56823082 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Point. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_Point)& entfrom, const Handle(IGESGeom_Point)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_Point)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_Point)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 2dc97ae3d06be26a374d9d24fbb16ad1452f5959..92cba6e94ebb948c972dde515a409d6e199b1307 100644 (file)
@@ -153,21 +153,20 @@ void IGESGeom_ToolRuledSurface::OwnCheck
 
 void IGESGeom_ToolRuledSurface::OwnDump
   (const Handle(IGESGeom_RuledSurface)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
   Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESGeom_RuledSurface" << Message_EndLine;
-
-  S << "First  Curve   : ";
+  S << "IGESGeom_RuledSurface\n"
+    << "First  Curve   : ";
   dumper.Dump(ent->FirstCurve(),S, tempSubLevel);
-  S << Message_EndLine;
-  S << "Second Curve   : ";
+  S << "\n"
+    << "Second Curve   : ";
   dumper.Dump(ent->SecondCurve(),S, tempSubLevel);
-  S << Message_EndLine;
-  S << "Direction Flag : " << ent->DirectionFlag() << "  i.e.";
-  if (ent->DirectionFlag() == 0) S<< "Join First to First, Last to Last"<<Message_EndLine;
-  else                           S<< "Join First to Last, Last to First"<<Message_EndLine;
-  if (ent->IsDevelopable()) S << " .. Is Developable" << Message_EndLine;
-  else                      S << " .. Is possibly not developable .." << Message_EndLine;
+  S << "\n"
+    << "Direction Flag : " << ent->DirectionFlag() << "  i.e.";
+  if (ent->DirectionFlag() == 0) S << "Join First to First, Last to Last\n";
+  else                           S << "Join First to Last, Last to First\n";
+  if (ent->IsDevelopable()) S << " .. Is Developable\n";
+  else                      S << " .. Is possibly not developable ..\n";
 }
index d14c69f3392c9639ecd659a51cd00d51ee323b27..13e4fd1e127420b146197275809eebaf9d1d5efd 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a RuledSurface. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_RuledSurface)& entfrom, const Handle(IGESGeom_RuledSurface)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_RuledSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_RuledSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 246d40f4b5121a0f07039ff32212ddcde9a6bb6d..b4d0a938f95b9eee8b580474f8ea418c2e5db16a 100644 (file)
@@ -30,7 +30,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 #include <TColStd_HArray1OfReal.hxx>
@@ -320,9 +319,9 @@ void IGESGeom_ToolSplineCurve::OwnCheck
 
 void IGESGeom_ToolSplineCurve::OwnDump
   (const Handle(IGESGeom_SplineCurve)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
-  S << "IGESGeom_SplineCurve" << Message_EndLine;
+  S << "IGESGeom_SplineCurve\n";
 
   Standard_Integer nbSegments = ent->NbSegments();
   S << "Spline Type          : " << ent->SplineType()    << "  ";
@@ -336,17 +335,17 @@ void IGESGeom_ToolSplineCurve::OwnDump
     case 6 : S << "(B-Spline)"; break;
       default : S << "(Invalid value)"; break;
     }
-  S << Message_EndLine;
-  S << "Degree Of Continuity : " << ent->Degree()       << Message_EndLine;
-  S << "Number Of Dimensions : " << ent->NbDimensions() << Message_EndLine;
-  S << "Number Of Segments   : " << ent->NbSegments()   << Message_EndLine;
-  S << "Segment Break Points : ";
-  IGESData_DumpVals(S ,level,1, nbSegments+1,ent->BreakPoint);
+  S << "\n"
+    << "Degree Of Continuity : " << ent->Degree()       << "\n"
+    << "Number Of Dimensions : " << ent->NbDimensions() << "\n"
+    << "Number Of Segments   : " << ent->NbSegments()   << "\n"
+    << "Segment Break Points : ";
+  IGESData_DumpVals(S,level,1, nbSegments+1,ent->BreakPoint);
   if (level <= 4) {
-    S << " [ also ask level > 4 for X-Y-Z Polynomials ]" << Message_EndLine;
+    S << " [ also ask level > 4 for X-Y-Z Polynomials ]" << std::endl;
     return;
   }
-  S << "  --  Polynomial  Values  --" << Message_EndLine;
+  S << "  --  Polynomial  Values  --\n";
   Standard_Real AX,BX,CX,DX, AY,BY,CY,DY, AZ,BZ,CZ,DZ;
   for (Standard_Integer I = 1; I <= nbSegments; I++) {
 //no need to declare (hides the same name in an outer scope)
@@ -354,18 +353,18 @@ void IGESGeom_ToolSplineCurve::OwnDump
     ent->XCoordPolynomial(I,AX,BX,CX,DX);
     ent->YCoordPolynomial(I,AY,BY,CY,DY);
     ent->ZCoordPolynomial(I,AZ,BZ,CZ,DZ);
-    S << "Segment "<<I<<" :        X              Y            Z"<<Message_EndLine;
-    S << " A ...       "<<AX<<"        "<<AY<<"        "<<AZ<<Message_EndLine;
-    S << " B ...       "<<BX<<"        "<<BY<<"        "<<BZ<<Message_EndLine;
-    S << " C ...       "<<CX<<"        "<<CY<<"        "<<CZ<<Message_EndLine;
-    S << " D ...       "<<DX<<"        "<<DY<<"        "<<DZ<<Message_EndLine;
+    S << "Segment "<<I<<" :        X              Y            Z"<<"\n"
+      << " A ...       "<<AX<<"        "<<AY<<"        "<<AZ<<"\n"
+      << " B ...       "<<BX<<"        "<<BY<<"        "<<BZ<<"\n"
+      << " C ...       "<<CX<<"        "<<CY<<"        "<<CZ<<"\n"
+      << " D ...       "<<DX<<"        "<<DY<<"        "<<DZ<<"\n";
   }
   ent->XValues(AX,BX,CX,DX);
   ent->YValues(AY,BY,CY,DY);
   ent->ZValues(AZ,BZ,CZ,DZ);
-  S << "Terminate Point :          X              Y            Z"<<Message_EndLine;
-  S << " Value         "<<AX<<"        "<<AY<<"        "<<AZ<<Message_EndLine;
-  S << " 1st Derivative        "<<BX<<"        "<<BY<<"        "<<BZ<<Message_EndLine;
-  S << " 2nd Der./2!           "<<CX<<"        "<<CY<<"        "<<CZ<<Message_EndLine;
-  S << " 3rd Der./3!           "<<DX<<"        "<<DY<<"        "<<DZ<<Message_EndLine;
+  S << "Terminate Point :          X              Y            Z"<<"\n"
+    << " Value         "<<AX<<"        "<<AY<<"        "<<AZ<<"\n"
+    << " 1st Derivative        "<<BX<<"        "<<BY<<"        "<<BZ<<"\n"
+    << " 2nd Der./2!           "<<CX<<"        "<<CY<<"        "<<CZ<<"\n"
+    << " 3rd Der./3!           "<<DX<<"        "<<DY<<"        "<<DZ<<std::endl;
 }
index 9af88ed04e9e859585b59198e98dff123b0bef12..6868faad3e8003a1188f55fd9db8b1281baeaee4 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a SplineCurve. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_SplineCurve)& entfrom, const Handle(IGESGeom_SplineCurve)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_SplineCurve)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_SplineCurve)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 11cc355d0148cca3c39cd75886815307bc318860..62dd755543ee0724e0f702cca61f5c8b804398b3 100644 (file)
@@ -310,9 +310,9 @@ void IGESGeom_ToolSplineSurface::OwnCheck
 
 void IGESGeom_ToolSplineSurface::OwnDump
   (const Handle(IGESGeom_SplineSurface)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
-  S << "IGESGeom_SplineSurface" << Message_EndLine;
+  S << "IGESGeom_SplineSurface\n";
 
   Standard_Integer I, J;
   Standard_Integer nbUSegs = ent->NbUSegments();
@@ -330,39 +330,38 @@ void IGESGeom_ToolSplineSurface::OwnDump
       case 6 : S << "  (B-Spline)"; break;
       default : S << "  (Invalid value)"; break;
     }
-  S << Message_EndLine;
-  S << "The  Patch Type : " << ent->PatchType();
+  S << "\n"
+    << "The  Patch Type : " << ent->PatchType();
   if (ent->PatchType() == 1)    S << "  (Cartesian Product)";
   else                          S << "  (Unspecified)";
-  S << Message_EndLine;
-  S << "Number Of Segments. In U : "
-    << nbUSegs << "    In V : " << nbVSegs << Message_EndLine;
-  S << "The U Break Points : ";
-  IGESData_DumpVals(S ,level,1, nbUSegs+1,ent->UBreakPoint);
-  S <<Message_EndLine<< "The V Break Points : ";
-  IGESData_DumpVals(S ,level,1, nbVSegs+1,ent->VBreakPoint);
-
-  S <<Message_EndLine<< " X-Y-Z Polynomials Of Segments : ";
-  S << Message_EndLine;
+  S << "\n"
+    << "Number Of Segments. In U : "
+    << nbUSegs << "    In V : " << nbVSegs << "\n"
+    << "The U Break Points : ";
+  IGESData_DumpVals(S,level,1, nbUSegs+1,ent->UBreakPoint);
+  S << "\nThe V Break Points : ";
+  IGESData_DumpVals(S,level,1, nbVSegs+1,ent->VBreakPoint);
+
+  S << "\n X-Y-Z Polynomials Of Segments :\n";
   if (level > 4)
     {
       for (I = 1; I <= nbUSegs; I++)
        for (J = 1; J <= nbVSegs; J++) 
           {
-           S << "[" << I <<"," << J << "]: " << Message_EndLine;
-           S << "X Polynomial : ";
+           S << "[" << I <<"," << J << "]:\n"
+             << "X Polynomial : ";
            temp = ent->XPolynomial(I,J);
            IGESData_DumpVals(S,level,1, temp->Length(),temp->Value);
-           S << Message_EndLine;
-           S << "Y Polynomial : ";
+           S << "\n"
+             << "Y Polynomial : ";
            temp = ent->YPolynomial(I,J);
            IGESData_DumpVals(S,level,1, temp->Length(),temp->Value);
-           S << Message_EndLine;
-           S << "Z Polynomial : ";
+           S << "\n"
+             << "Z Polynomial : ";
            temp = ent->ZPolynomial(I,J);
            IGESData_DumpVals(S,level,1, temp->Length(),temp->Value);
-           S << Message_EndLine;
+           S << "\n";
           }
     }
-  else  S << Message_EndLine;
+  else  S << std::endl;
 }
index 27e9a68e08bdf7996aba1977e992b2edc6f9fa6d..ba3eb4a38b01f0b1e4ea18026afdbdb5c9e3c823 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a SplineSurface. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_SplineSurface)& entfrom, const Handle(IGESGeom_SplineSurface)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_SplineSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_SplineSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 4a3904cfbe9dc7ee9b2e6ebeb2d0b07dd62c42e8..c5bd1e99536382e34cad83d0db4dbbed80426c93 100644 (file)
@@ -32,7 +32,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 
@@ -164,18 +163,17 @@ void IGESGeom_ToolSurfaceOfRevolution::OwnCheck
 
 void IGESGeom_ToolSurfaceOfRevolution::OwnDump
   (const Handle(IGESGeom_SurfaceOfRevolution)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
-
-  S << "IGESGeom_SurfaceOfRevolution" << Message_EndLine << Message_EndLine;
+  S << "IGESGeom_SurfaceOfRevolution\n\n";
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
   S << "Axis Of Revolution : ";
   dumper.Dump(ent->AxisOfRevolution(),S, sublevel);
-  S << Message_EndLine;
-  S << "Generatrix         : ";
+  S << "\n"
+    << "Generatrix         : ";
   dumper.Dump(ent->Generatrix(),S, sublevel);
-  S << Message_EndLine;
-  S << "Start Angle        : " << ent->StartAngle() << "  ";
-  S << "End Angle   : " << ent->EndAngle() << Message_EndLine;
+  S << "\n"
+    << "Start Angle        : " << ent->StartAngle() << "  "
+    << "End Angle   : " << ent->EndAngle() << std::endl;
 }
index 9c1acfb1c657abac2daf860f0515371577bd9041..dbd8cd95bd173a4793a747ec8b6b74aa5861544a 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a SurfaceOfRevolution. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_SurfaceOfRevolution)& entfrom, const Handle(IGESGeom_SurfaceOfRevolution)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_SurfaceOfRevolution)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_SurfaceOfRevolution)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 26079bea7421ab2f69626b84787c04f8433e0485..63799c54716f4211b046dad7535b33c0dc2aa284 100644 (file)
@@ -34,7 +34,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 
@@ -133,16 +132,15 @@ void IGESGeom_ToolTabulatedCylinder::OwnCheck
 
 void IGESGeom_ToolTabulatedCylinder::OwnDump
   (const Handle(IGESGeom_TabulatedCylinder)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESGeom_TabulatedCylinder" << Message_EndLine;
-
-  S << "Directrix       : ";
+  S << "IGESGeom_TabulatedCylinder\n"
+    << "Directrix       : ";
   dumper.Dump(ent->Directrix(),S, sublevel);
-  S << Message_EndLine;
-  S << "Terminate Point : ";
+  S << "\n"
+    << "Terminate Point : ";
   IGESData_DumpXYZL(S,level, ent->EndPoint(), ent->Location());
-  S << Message_EndLine;
+  S << std::endl;
 }
index f40c7afdff8994dde9ea2c5c8b45f9304061e65a..746e5f52c090386aca893f1d1390c96990aa4407 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a TabulatedCylinder. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_TabulatedCylinder)& entfrom, const Handle(IGESGeom_TabulatedCylinder)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_TabulatedCylinder)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_TabulatedCylinder)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index fc4e73d96eb87792264fd467dbc224e1473d27ca..16d09c5e279e97825eb15237fa398fa2b96896d8 100644 (file)
@@ -30,7 +30,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 #include <TColStd_HArray2OfReal.hxx>
@@ -212,28 +211,25 @@ void IGESGeom_ToolTransformationMatrix::OwnCheck
 
 void IGESGeom_ToolTransformationMatrix::OwnDump
   (const Handle(IGESGeom_TransformationMatrix)& ent, const IGESData_IGESDumper& /*dumper*/,
-  const Handle(Message_Messenger)& S, const Standard_Integer /*level*/)  const
+   Standard_OStream& S, const Standard_Integer /*level*/)  const
 {
-  S << "IGESGeom_TransformationMatrix" << Message_EndLine;
-
-  S << "| R11, R12, R13, T1 |       "
+  S << "IGESGeom_TransformationMatrix\n"
+    << "| R11, R12, R13, T1 |       "
     << ent->Data(1, 1) << ", " << ent->Data(1, 2) << ", "
-    << ent->Data(1, 3) << ", " << ent->Data(1, 4) << Message_EndLine;
-
-  S << "| R21, R22, R23, T2 |       "
+    << ent->Data(1, 3) << ", " << ent->Data(1, 4) << "\n"
+    << "| R21, R22, R23, T2 |       "
     << ent->Data(2, 1) << ", " << ent->Data(2, 2) << ", "
-    << ent->Data(2, 3) << ", " << ent->Data(2, 4) << Message_EndLine;
-
-  S << "| R31, R32, R33, T3 |       "
+    << ent->Data(2, 3) << ", " << ent->Data(2, 4) << "\n"
+    << "| R31, R32, R33, T3 |       "
     << ent->Data(3, 1) << ", " << ent->Data(3, 2) << ", "
-    << ent->Data(3, 3) << ", " << ent->Data(3, 4) << Message_EndLine;
+    << ent->Data(3, 3) << ", " << ent->Data(3, 4) << "\n";
 
   switch (ent->FormNumber()) {
-    case  0 : S << "-- Direct Orthogonal Matrix"      << Message_EndLine;  break;
-    case  1 : S << "-- Reverse Orthogonal Matrix"     << Message_EndLine;  break;
-    case 10 : S << "-- Cartesien Coordinate System"   << Message_EndLine;  break;
-    case 11 : S << "-- Cylindrical Coordinate System" << Message_EndLine;  break;
-    case 12 : S << "-- Spherical Coordinate System"   << Message_EndLine;  break;
-    default : S << "--  (Incorrect Form Number)"      << Message_EndLine;  break;
+    case  0 : S << "-- Direct Orthogonal Matrix"      << std::endl;  break;
+    case  1 : S << "-- Reverse Orthogonal Matrix"     << std::endl;  break;
+    case 10 : S << "-- Cartesien Coordinate System"   << std::endl;  break;
+    case 11 : S << "-- Cylindrical Coordinate System" << std::endl;  break;
+    case 12 : S << "-- Spherical Coordinate System"   << std::endl;  break;
+    default : S << "--  (Incorrect Form Number)"      << std::endl;  break;
   }
 }
index 6e4be028c3e88075c9ce3792937b4e42e7115db6..811d7d8d4e692328e1bf48d7d608f44372e45e79 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a TransformationMatrix. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_TransformationMatrix)& entfrom, const Handle(IGESGeom_TransformationMatrix)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_TransformationMatrix)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_TransformationMatrix)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 8c7dd3a0c8ddf3b908daf95d694454a26afcb531..152a0ff84e6ff9c68d679de15e2ba172026f6a18 100644 (file)
@@ -34,7 +34,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 
@@ -299,21 +298,20 @@ void IGESGeom_ToolTrimmedSurface::OwnCheck(const Handle(IGESGeom_TrimmedSurface)
 
 void IGESGeom_ToolTrimmedSurface::OwnDump(const Handle(IGESGeom_TrimmedSurface)& ent,
                                           const IGESData_IGESDumper& dumper,
-                                          const Handle(Message_Messenger)& S,
+                                          Standard_OStream& S,
                                           const Standard_Integer level)  const
 {
   Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESGeom_TrimmedSurface" << Message_EndLine;
-
-  S << "Surface to be trimmed : ";
+  S << "IGESGeom_TrimmedSurface\n"
+    << "Surface to be trimmed : ";
   dumper.Dump(ent->Surface(),S, tempSubLevel);
-  S << Message_EndLine;
-  S << "Boundary type    : " << ent->OuterBoundaryType() << Message_EndLine;
-  S << "Outer Boundary   : ";
+  S << "\n"
+    << "Boundary type    : " << ent->OuterBoundaryType() << "\n"
+    << "Outer Boundary   : ";
   dumper.Dump(ent->OuterContour(),S, tempSubLevel);
-  S << Message_EndLine;
-  S << "Inner Boundaries : ";
+  S << "\n"
+    << "Inner Boundaries : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbInnerContours(),ent->InnerContour);
-  S << Message_EndLine;
+  S << std::endl;
 }
index 6dfeb3a3fcccffcb13b1c27cf06a2a458537a3b7..87eeb9a3cc22e51d4fd1ed63460e71aaa6786219 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a TrimmedSurface. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGeom_TrimmedSurface)& entfrom, const Handle(IGESGeom_TrimmedSurface)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGeom_TrimmedSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGeom_TrimmedSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index d96d195e4f3a082664e66b19ce48f23e137ad858..5b52244b7f678e7867a0d3f847f118d9066201f1 100644 (file)
@@ -57,7 +57,7 @@ IGESGraph_SpecificModule::IGESGraph_SpecificModule()    {  }
 
     void  IGESGraph_SpecificModule::OwnDump
   (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
-   const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S,
+   const IGESData_IGESDumper& dumper, Standard_OStream& S,
    const Standard_Integer own) const 
 {
   switch (CN) {
index d119954854ab31788a36afc46febbd2ff396ec44..18440234aec72cd1336ee1b2365c70d97bf21800 100644 (file)
@@ -25,8 +25,6 @@
 #include <Standard_Boolean.hxx>
 class IGESData_IGESEntity;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 class IGESGraph_SpecificModule;
 DEFINE_STANDARD_HANDLE(IGESGraph_SpecificModule, IGESData_SpecificModule)
@@ -43,7 +41,7 @@ public:
   Standard_EXPORT IGESGraph_SpecificModule();
   
   //! Specific Dump (own parameters) for IGESGraph
-  Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const Standard_OVERRIDE;
+  Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const Standard_OVERRIDE;
   
   //! Performs non-ambiguous Corrections on Entities which support
   //! them (DrawingSize,DrawingUnits,HighLight,IntercharacterSpacing,
index 94e6a39f2cb61812d96af12707f47efc3ca638d3..be7a710f95e81e617bf83d35f12ab85c2fa972ac 100644 (file)
@@ -118,16 +118,16 @@ void IGESGraph_ToolColor::OwnCheck
 
 void IGESGraph_ToolColor::OwnDump
   (const Handle(IGESGraph_Color)& ent, const IGESData_IGESDumper& /*dumper*/,
-   const Handle(Message_Messenger)& S, const Standard_Integer /*level*/)  const
+   Standard_OStream& S, const Standard_Integer /*level*/)  const
 {
-  S << "IGESGraph_Color" << Message_EndLine;
+  S << "IGESGraph_Color\n";
 
   Standard_Real Red,Green,Blue;
   ent->RGBIntensity(Red,Green,Blue);
-  S << "Red   (in % Of Full Intensity) : " << Red   << Message_EndLine;
-  S << "Green (in % Of Full Intensity) : " << Green << Message_EndLine;
-  S << "Blue  (in % Of Full Intensity) : " << Blue  << Message_EndLine;
-  S << "Color Name : ";
+  S << "Red   (in % Of Full Intensity) : " << Red   << "\n"
+    << "Green (in % Of Full Intensity) : " << Green << "\n"
+    << "Blue  (in % Of Full Intensity) : " << Blue  << "\n"
+    << "Color Name : ";
   IGESData_DumpString(S,ent->ColorName());
-  S << Message_EndLine;
+  S << std::endl;
 }
index 92b650fdc3c8d35c73a9aee6f86877fca4ed3b87..8d1bb881953199e9edd5b04c3d96ded692ec65bf 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Color. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGraph_Color)& entfrom, const Handle(IGESGraph_Color)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGraph_Color)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGraph_Color)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 03e63814b08228385040b73daa24cdb242aea3e4..486862f35d54dcdeae444cf18bfdb3352b95aa48 100644 (file)
@@ -112,12 +112,11 @@ void IGESGraph_ToolDefinitionLevel::OwnCheck
 
 void IGESGraph_ToolDefinitionLevel::OwnDump
   (const Handle(IGESGraph_DefinitionLevel)& ent, const IGESData_IGESDumper& /*dumper*/,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
-  S << "IGESGraph_DefinitionLevel" << Message_EndLine;
-
-  S << "Level Numbers : ";
-  IGESData_DumpVals(S ,level,1, ent->NbPropertyValues(),ent->LevelNumber);
-  S << Message_EndLine;
+  S << "IGESGraph_DefinitionLevel\n"
+    << "Level Numbers : ";
+  IGESData_DumpVals(S,level,1, ent->NbPropertyValues(),ent->LevelNumber);
+  S << std::endl;
 }
 
index fbae62d20a6da23e4989e0eec8b0abbc404c872d..a373d6afbf4d06a25387aeed9d445a595684c4d5 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a DefinitionLevel. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGraph_DefinitionLevel)& entfrom, const Handle(IGESGraph_DefinitionLevel)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGraph_DefinitionLevel)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGraph_DefinitionLevel)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 83dffafb4b9ccf8ddfa58a874c556dabcb0e892e..cd60387ca7d68f0d1a4a114f22c3e1cbfdd978ee 100644 (file)
@@ -111,12 +111,11 @@ void IGESGraph_ToolDrawingSize::OwnCheck
 
 void IGESGraph_ToolDrawingSize::OwnDump
   (const Handle(IGESGraph_DrawingSize)& ent, const IGESData_IGESDumper& /*dumper*/,
-   const Handle(Message_Messenger)& S, const Standard_Integer /*level*/)  const
+   Standard_OStream& S, const Standard_Integer /*level*/)  const
 {
-  S << "IGESGraph_DrawingSize" << Message_EndLine;
-
-  S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
-  S << "Drawing extent along positive X-axis : " << ent->XSize() << Message_EndLine;
-  S << "Drawing extent along positive Y-axis : " << ent->YSize() << Message_EndLine;
-  S << Message_EndLine;
+  S << "IGESGraph_DrawingSize\n"
+    << "No. of property values : " << ent->NbPropertyValues() << "\n"
+    << "Drawing extent along positive X-axis : " << ent->XSize() << "\n"
+    << "Drawing extent along positive Y-axis : " << ent->YSize() << "\n"
+    << std::endl;
 }
index 3ecce38a80b05b484c9ee0a38ead9155c2e0ed11..d5437bbcbe26db43ed1aa69963915e53c96e2f33 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a DrawingSize. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGraph_DrawingSize)& entfrom, const Handle(IGESGraph_DrawingSize)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGraph_DrawingSize)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGraph_DrawingSize)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 4ab83d2472ee39d82df200a406772177e7518805..a98f2735a492e10defc0b4bb15ea7775ec52c887 100644 (file)
@@ -221,14 +221,13 @@ void IGESGraph_ToolDrawingUnits::OwnCheck
 
 void IGESGraph_ToolDrawingUnits::OwnDump
   (const Handle(IGESGraph_DrawingUnits)& ent, const IGESData_IGESDumper& /*dumper*/,
-   const Handle(Message_Messenger)& S, const Standard_Integer /*level*/)  const
+   Standard_OStream& S, const Standard_Integer /*level*/)  const
 {
-  S << "IGESGraph_DrawingUnits" << Message_EndLine;
-
-  S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
-  S << "  Units Flag : " << ent->Flag();
-  S << "  Units Name : ";
+  S << "IGESGraph_DrawingUnits\n"
+    << "No. of property values : " << ent->NbPropertyValues() << "\n"
+    << "  Units Flag : " << ent->Flag()
+    << "  Units Name : ";
   IGESData_DumpString(S,ent->Unit());
-  S << "  computed Value (in meters) : " << ent->UnitValue();
-  S << Message_EndLine;
+  S << "  computed Value (in meters) : " << ent->UnitValue()
+    << std::endl;
 }
index dd87f92e9e4c5f6b27a4dac26d35c621ab877156..414cd6bfb314d44bc699c8b3c30e5071677bddf1 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a DrawingUnits. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGraph_DrawingUnits)& entfrom, const Handle(IGESGraph_DrawingUnits)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGraph_DrawingUnits)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGraph_DrawingUnits)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index b9549af9da8e13175589a3fd2d5e1c6811aff844..b77f83f6ed2f0d847446db1f1b4631a8ddb6fe59 100644 (file)
@@ -107,11 +107,10 @@ void IGESGraph_ToolHighLight::OwnCheck
 
 void IGESGraph_ToolHighLight::OwnDump
   (const Handle(IGESGraph_HighLight)& ent, const IGESData_IGESDumper& /*dumper*/,
-   const Handle(Message_Messenger)& S, const Standard_Integer /*level*/)  const
+   Standard_OStream& S, const Standard_Integer /*level*/)  const
 {
-  S << "IGESGraph_HighLight" << Message_EndLine;
-
-  S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
-  S << "Highlight Status : " << ent->HighLightStatus() << Message_EndLine;
-  S << Message_EndLine;
+  S << "IGESGraph_HighLight\n"
+    << "No. of property values : " << ent->NbPropertyValues() << "\n"
+    << "Highlight Status : " << ent->HighLightStatus() << "\n"
+    << std::endl;
 }
index b0820da10844d2f07c2ce9359b54901ca30c546a..4c8828d1702c462e18e11be3d3d1da4872497a7e 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a HighLight. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGraph_HighLight)& entfrom, const Handle(IGESGraph_HighLight)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGraph_HighLight)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGraph_HighLight)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 97948ba58e609e9ef57c8920060bd4115b618555..d6fef26833d39cd928096c02beac2f73e42aee24 100644 (file)
@@ -109,11 +109,10 @@ void IGESGraph_ToolIntercharacterSpacing::OwnCheck
 
 void IGESGraph_ToolIntercharacterSpacing::OwnDump
   (const Handle(IGESGraph_IntercharacterSpacing)& ent, const IGESData_IGESDumper& /*dumper*/,
-   const Handle(Message_Messenger)& S, const Standard_Integer /*level*/)  const
+   Standard_OStream& S, const Standard_Integer /*level*/)  const
 {
-  S << "IGESGraph_IntercharacterSpacing" << Message_EndLine;
-
-  S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
-  S << "Intercharacter space in % of text height : " << ent->ISpace() << Message_EndLine;
-  S << Message_EndLine;
+  S << "IGESGraph_IntercharacterSpacing\n"
+    << "No. of property values : " << ent->NbPropertyValues() << "\n"
+    << "Intercharacter space in % of text height : " << ent->ISpace() << "\n"
+    << std::endl;
 }
index 735a5dbcb03329b9fa70c5576aa3fea97ca3ec79..27884ecddf7feaa3607af94921bf0c9f91a25c66 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a IntercharacterSpacing. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGraph_IntercharacterSpacing)& entfrom, const Handle(IGESGraph_IntercharacterSpacing)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGraph_IntercharacterSpacing)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGraph_IntercharacterSpacing)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index bbda86aafce54880e79e6f2eca91b3a4070821e4..e057ef55c3b4a2d218f9fb2c4c9500b29089b59e 100644 (file)
@@ -30,7 +30,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 #include <TCollection_HAsciiString.hxx>
 #include <TColStd_HArray1OfReal.hxx>
@@ -130,21 +129,20 @@ void IGESGraph_ToolLineFontDefPattern::OwnCheck
 
 void IGESGraph_ToolLineFontDefPattern::OwnDump
   (const Handle(IGESGraph_LineFontDefPattern)& ent, const IGESData_IGESDumper& /*dumper*/,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
-  S << "IGESGraph_LineFontDefPattern" << Message_EndLine;
-
-  S << "Visible-Blank Segments : ";
+  S << "IGESGraph_LineFontDefPattern\n"
+    << "Visible-Blank Segments : ";
   Standard_Integer nb = ent->NbSegments();
-  IGESData_DumpVals(S ,level,1, nb,ent->Length);
-  S <<Message_EndLine << "Display Pattern : ";
+  IGESData_DumpVals(S,level,1, nb,ent->Length);
+  S << "\nDisplay Pattern : ";
   IGESData_DumpString(S,ent->DisplayPattern());
-  S << Message_EndLine;
+  S << "\n";
   if (level > 4) {
-    S << " -> Which Segments are Visible (the others are Blank) : " << Message_EndLine;
+    S << " -> Which Segments are Visible (the others are Blank) :\n";
     for (Standard_Integer I = 1; I <= nb; I ++) {
       if (ent->IsVisible(I)) S << "  " << I;
     }
-    S << Message_EndLine;
+    S << std::endl;
   }
 }
index 0401709a0c03f9340bad7ee81e8e350f9376bf83..074ceac93877317fffb314f8aa448cb4414881ba 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a LineFontDefPattern. Called by various
 //! Modules (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGraph_LineFontDefPattern)& entfrom, const Handle(IGESGraph_LineFontDefPattern)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontDefPattern)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontDefPattern)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 68d65df8b7145ee03d4bea91a4e3a92bf7423690..b2d581b0b2fe0444544770aa4a57458f9000c9a6 100644 (file)
@@ -117,18 +117,17 @@ void IGESGraph_ToolLineFontDefTemplate::OwnCheck
 
 void IGESGraph_ToolLineFontDefTemplate::OwnDump
   (const Handle(IGESGraph_LineFontDefTemplate)& ent, const IGESData_IGESDumper& dumper,
-  const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
   Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESGraph_LineFontDefTemplate" << Message_EndLine;
-
-  S << "Orientation : " << ent->Orientation() << Message_EndLine;
-  S << "Subfigure Display Entity For Template Display : ";
+  S << "IGESGraph_LineFontDefTemplate\n"
+    << "Orientation : " << ent->Orientation() << "\n"
+    << "Subfigure Display Entity For Template Display : ";
   dumper.Dump(ent->TemplateEntity(),S, tempSubLevel);
-  S << Message_EndLine;
-  S << "Length Between Successive Template Figure : " << ent->Distance()<<Message_EndLine;
-  S << "Scale Factor for Subfigure : " << ent->Scale() << Message_EndLine;
-  S << Message_EndLine;
+  S << "\n"
+    << "Length Between Successive Template Figure : " << ent->Distance()<< "\n"
+    << "Scale Factor for Subfigure : " << ent->Scale() << "\n"
+    << std::endl;
 }
 
index 83be4734ba82a5ce58abe956595af3c4f63dda90..0efe63a97f38368d1dcdebc3e47f0f17fc7a2652 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a LineFontDefTemplate. Called by various
 //! Modules (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGraph_LineFontDefTemplate)& entfrom, const Handle(IGESGraph_LineFontDefTemplate)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontDefTemplate)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontDefTemplate)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 6360513bb65802aedf745de65f5befc4c3185839..15af838628dddc374633ce88ec71e2d7b184e0f9 100644 (file)
@@ -106,11 +106,10 @@ void IGESGraph_ToolLineFontPredefined::OwnCheck
 
 void IGESGraph_ToolLineFontPredefined::OwnDump
   (const Handle(IGESGraph_LineFontPredefined)& ent, const IGESData_IGESDumper& /*dumper*/,
-   const Handle(Message_Messenger)& S, const Standard_Integer /*level*/)  const
+   Standard_OStream& S, const Standard_Integer /*level*/)  const
 {
-  S << "IGESGraph_LineFontPredefined" << Message_EndLine;
-
-  S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
-  S << "Line font pattern code : " << ent->LineFontPatternCode() << Message_EndLine;
-  S << Message_EndLine;
+  S << "IGESGraph_LineFontPredefined\n"
+    << "No. of property values : " << ent->NbPropertyValues() << "\n"
+    << "Line font pattern code : " << ent->LineFontPatternCode() << "\n"
+    << std::endl;
 }
index 60300d9fc7875e2df95535bde89f331f5dde172a..92ea8df41f5effdaf37d89c5600893d6fbd77276 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a LineFontPredefined. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGraph_LineFontPredefined)& entfrom, const Handle(IGESGraph_LineFontPredefined)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontPredefined)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGraph_LineFontPredefined)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index a7b73c12d24beac82099ce42333290f423537775..b7a7d71fc6f37b41db300a4892eea8bb30a9783d 100644 (file)
@@ -144,16 +144,15 @@ void IGESGraph_ToolNominalSize::OwnCheck
 
 void IGESGraph_ToolNominalSize::OwnDump
   (const Handle(IGESGraph_NominalSize)& ent, const IGESData_IGESDumper& /*dumper*/,
-   const Handle(Message_Messenger)& S, const Standard_Integer /*level*/)  const
+   Standard_OStream& S, const Standard_Integer /*level*/)  const
 {
-  S << "IGESGraph_NominalSize" << Message_EndLine;
-
-  S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
-  S << "Nominal size value : "     << ent->NominalSizeValue() << Message_EndLine;
-  S << "Nominal size name  : ";
+  S << "IGESGraph_NominalSize\n"
+    << "No. of property values : " << ent->NbPropertyValues() << "\n"
+    << "Nominal size value : "     << ent->NominalSizeValue() << "\n"
+    << "Nominal size name  : ";
   IGESData_DumpString(S,ent->NominalSizeName());
-  S << Message_EndLine;
-  S << "Name of relevant engineering standard : ";
+  S << "\n"
+    << "Name of relevant engineering standard : ";
   IGESData_DumpString(S,ent->StandardName());
-  S << Message_EndLine;
+  S << std::endl;
 }
index fe83b74a5912a29951fc5410b332644b45f96a1c..388c84ebaaade34402b1fcd341bb3ad4453912f6 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a NominalSize. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGraph_NominalSize)& entfrom, const Handle(IGESGraph_NominalSize)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGraph_NominalSize)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGraph_NominalSize)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 7f8a9ceb2e2046d89564c275062cb27542bfcedc..b5741f4bdbe26979a23099cc4664736442dcd38a 100644 (file)
@@ -109,12 +109,11 @@ void IGESGraph_ToolPick::OwnCheck
 
 void IGESGraph_ToolPick::OwnDump
   (const Handle(IGESGraph_Pick)& ent, const IGESData_IGESDumper& /*dumper*/,
-   const Handle(Message_Messenger)& S, const Standard_Integer /*level*/)  const
+   Standard_OStream& S, const Standard_Integer /*level*/)  const
 {
-  S << "IGESGraph_Pick" << Message_EndLine;
-
-  S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
-  S << "Pick flag : " << ent->PickFlag();
-  S << (ent->PickFlag() == 0 ? " NO" : " YES" );
-  S << Message_EndLine;
+  S << "IGESGraph_Pick\n"
+    << "No. of property values : " << ent->NbPropertyValues() << "\n"
+    << "Pick flag : " << ent->PickFlag()
+    << (ent->PickFlag() == 0 ? " NO" : " YES" )
+    << std::endl;
 }
index 4d05caccdb5487a6252208609e02307740db22db..37d299bfc00690f7ecd7dfe7b4609b249d073819 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Pick. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGraph_Pick)& entfrom, const Handle(IGESGraph_Pick)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGraph_Pick)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGraph_Pick)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index d1ed697d33fcbb7084d9df01ea142ceeddefcb26..4f6d857bccbe66e2f53ab937f87a8573bcb3af2c 100644 (file)
@@ -182,14 +182,13 @@ void IGESGraph_ToolTextDisplayTemplate::OwnCheck
 
 void IGESGraph_ToolTextDisplayTemplate::OwnDump
   (const Handle(IGESGraph_TextDisplayTemplate)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESGraph_TextDisplayTemplate" << Message_EndLine;
-
-  S << "Character box width  : "  << ent->BoxWidth() << "  ";
-  S << "Character box height : "  << ent->BoxHeight() << Message_EndLine;
+  S << "IGESGraph_TextDisplayTemplate\n"
+    << "Character box width  : "  << ent->BoxWidth() << "  "
+    << "Character box height : "  << ent->BoxHeight() << "\n";
   if ( ent->IsFontEntity() )
     {
       S << "Font Entity : ";
@@ -197,15 +196,16 @@ void IGESGraph_ToolTextDisplayTemplate::OwnDump
     }
   else
     S << "Font code : " << ent->FontCode();
-  S << Message_EndLine;
-  S << "Slant angle    : "  << ent->SlantAngle() << "  ";
-  S << "Rotation angle : "  << ent->RotationAngle() << Message_EndLine;
-  S << "Mirror flag    : "  << ent->MirrorFlag() << "  ";
-  S << "Rotate flag    : "  << ent->RotateFlag() << Message_EndLine;
+
+  S << "\n"
+    << "Slant angle    : "  << ent->SlantAngle() << "  "
+    << "Rotation angle : "  << ent->RotationAngle() << "\n"
+    << "Mirror flag    : "  << ent->MirrorFlag() << "  "
+    << "Rotate flag    : "  << ent->RotateFlag() << "\n";
   if ( ent->FormNumber() == 0 )
     S << "Lower Left Corner coordinates : ";
   else
     S << "Increments from coordinates : "; 
   IGESData_DumpXYZL(S,level, ent->StartingCorner(), ent->Location());
-  S << Message_EndLine;
+  S << std::endl;
 }
index 266ba5ceff86d8281dcf401db216965c705a0e15..67843cd4587fe231b2173dc6e013d83c4ceda2ac 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a TextDisplayTemplate. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGraph_TextDisplayTemplate)& entfrom, const Handle(IGESGraph_TextDisplayTemplate)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGraph_TextDisplayTemplate)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGraph_TextDisplayTemplate)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index e1be0fb46e399824334c2fcf56e0ed9461406967..d3ee2af01ba861075e7cd32395b85bb9eea693e9 100644 (file)
@@ -288,32 +288,31 @@ void IGESGraph_ToolTextFontDef::OwnCheck
 
 void IGESGraph_ToolTextFontDef::OwnDump
   (const Handle(IGESGraph_TextFontDef)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
+   Standard_OStream& S, const Standard_Integer level)  const
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
   Standard_Integer nbchars  = ent->NbCharacters();
 
-  S << "IGESGraph_TextFontDef" << Message_EndLine;
-
-  S << "Font Code : " << ent->FontCode() << Message_EndLine;
-  S << "Font Name : ";
+  S << "IGESGraph_TextFontDef\n"
+    << "Font Code : " << ent->FontCode() << "\n"
+    << "Font Name : ";
   IGESData_DumpString(S,ent->FontName());
-  S << Message_EndLine;
+  S << "\n";
   if ( ent->IsSupersededFontEntity() ) {
     S << "Text Definition Entity : ";
     dumper.Dump(ent->SupersededFontEntity(),S, sublevel);
   }
   else  S << "Superseding Font Number : " << ent->SupersededFontCode();
-  S << Message_EndLine; 
-  S << "No. of Grid Units eqvt to 1 Text Height : " << ent->Scale() << Message_EndLine;
-  S << "ASCII Codes                              : " << Message_EndLine
-    << "Grid Locations of next character origins : " << Message_EndLine
-    << "Pen Motions                              : " << Message_EndLine
-    << "Pen Positions                            : " << Message_EndLine
-    << "Grid Locations the pen moves to          : ";
-  S << "Count = "      << nbchars << Message_EndLine;
+  S << "\n"
+    << "No. of Grid Units eqvt to 1 Text Height : " << ent->Scale() << "\n"
+    << "ASCII Codes                              :\n"
+    << "Grid Locations of next character origins :\n"
+    << "Pen Motions                              :\n"
+    << "Pen Positions                            :\n"
+    << "Grid Locations the pen moves to          : "
+    << "Count = "      << nbchars << "\n";
   IGESData_DumpVals(S,-level,1,nbchars,ent->ASCIICode);
-  S << Message_EndLine;
+  S << "\n";
   if (level > 4 )
     {
       Handle(TColgp_HArray1OfXY) arrXY;
@@ -321,26 +320,25 @@ void IGESGraph_ToolTextFontDef::OwnDump
       for (I = 1; I <= nbchars; I++)
        {
          Standard_Integer IX,IY;
-         S << "[" << I << "]: ";
-         S << "ASCII Code : " << ent->ASCIICode(I) << Message_EndLine;
-         S << "Grid Location of next character's origin : ";
+         S << "[" << I << "]: "
+           << "ASCII Code : " << ent->ASCIICode(I) << "\n"
+           << "Grid Location of next character's origin : ";
          ent->NextCharOrigin(I,IX,IY);
          S << "X=" << IX << " Y=" << IY;
          nbmotions = ent->NbPenMotions(I);
          S << "  No. of Pen Motions : " << nbmotions;
-         if (level <= 5) S << " [ ask level > 5 for Details ]" << Message_EndLine;
+         if (level <= 5) S << " [ ask level > 5 for Details ]\n";
          else {
-           S << Message_EndLine;
+           S << "\n";
            for (J = 1; J <= nbmotions; J++)
              {
-               S << "Pen up(1) / down(0) flag : " << (Standard_Integer)ent->IsPenUp(I,J);
-               S << " Next Pen Position : ";
+               S << "Pen up(1) / down(0) flag : " << (Standard_Integer)ent->IsPenUp(I,J)
+                 << " Next Pen Position : ";
                ent->NextPenPosition(I,J, IX,IY);
-               S << " X="<<IX<<" Y="<<IY;
-               S << Message_EndLine;
+               S << " X="<<IX<<" Y="<<IY << "\n";
              }
          }
        }
     }
-  S << Message_EndLine;
+  S << std::endl;
 }
index 823e2e1d458bd7b8b2043a53a9318bf4811ff554..2eec869d8d525f074b98eb6e15289c7a290d23b1 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a TextFontDef. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGraph_TextFontDef)& entfrom, const Handle(IGESGraph_TextFontDef)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGraph_TextFontDef)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGraph_TextFontDef)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index da39bdac4f83c97ee8cd03d4e2f586e209ba4cd6..a3c813ede94b8b8fffee3de08fbd0dec526cacad 100644 (file)
@@ -32,7 +32,6 @@
 #include <Interface_CopyTool.hxx>
 #include <Interface_EntityIterator.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
 IGESGraph_ToolUniformRectGrid::IGESGraph_ToolUniformRectGrid ()    {  }
@@ -159,19 +158,18 @@ void IGESGraph_ToolUniformRectGrid::OwnCheck
 
 void IGESGraph_ToolUniformRectGrid::OwnDump
   (const Handle(IGESGraph_UniformRectGrid)& ent, const IGESData_IGESDumper& /*dumper*/,
-   const Handle(Message_Messenger)& S, const Standard_Integer /*level*/)  const
+   Standard_OStream& S, const Standard_Integer /*level*/)  const
 {
-  S << "IGESGraph_UniformRectGrid" << Message_EndLine;
-
-  S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
-  S << "Grid         : " << ( ent->IsFinite() ? "Finite" : "Infinite");
-  S << "  -  Composed of " << ( ent->IsLine() ? "Lines" : "Points");
-  S << "  -  " << ( ent->IsWeighted() ? "Weighted" : "Unweighted") << Message_EndLine;
-  S << "Grid Point   : ";
+  S << "IGESGraph_UniformRectGrid\n"
+    << "No. of property values : " << ent->NbPropertyValues() << "\n"
+    << "Grid         : " << ( ent->IsFinite() ? "Finite" : "Infinite")
+    << "  -  Composed of " << ( ent->IsLine() ? "Lines" : "Points")
+    << "  -  " << ( ent->IsWeighted() ? "Weighted" : "Unweighted") << "\n"
+    << "Grid Point   : ";
   IGESData_DumpXY(S, ent->GridPoint());
   S << "  Grid Spacing : ";
-  IGESData_DumpXY(S, ent->GridSpacing());  S << Message_EndLine;
+  IGESData_DumpXY(S, ent->GridSpacing());  S << "\n";
   if (ent->IsFinite())
     S << "No. of points/lines in direction :  X : " << ent->NbPointsX()
-      << "  -  Y : " << ent->NbPointsY() << Message_EndLine;
+      << "  -  Y : " << ent->NbPointsY() << std::endl;
 }
index fc46ea5a4828043ae8d15eccaa34053b70bebf8b..ca642abfb83993fd47760bd46e57f1c8abddd073 100644 (file)
@@ -34,8 +34,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a UniformRectGrid. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -74,7 +72,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESGraph_UniformRectGrid)& entfrom, const Handle(IGESGraph_UniformRectGrid)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESGraph_UniformRectGrid)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESGraph_UniformRectGrid)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 16ba5583fea1a992b84138021fe10cb58abbaf6a..396e877881f1b90afe842262718f936ec11913db 100644 (file)
@@ -176,14 +176,14 @@ IGESSelect_Activator::IGESSelect_Activator()
         std::cout<<sets->NbEntities(i)<<" ent.s:"<<std::endl;
        if (listmode == 0) continue;
        iter = sets->Entities(i);
-       WS->ListEntities (iter,0);
+       WS->ListEntities (iter, 0, std::cout);
       }
 
       std::cout <<" --  Remaining Entities (not yet sorted) :"
        <<sets->NbDuplicated(0,Standard_False)<<std::endl;
       if (listmode < 2) return IFSelect_RetVoid;
       iter = sets->Duplicated(0,Standard_False);
-      WS->ListEntities(iter,0);
+      WS->ListEntities (iter, 0, std::cout);
       return IFSelect_RetVoid;
     }
 
index 2647f3fe31ee93693877ff0b894e8d39f31f495c..0adf7e70c9caef5e2039e9b79391caa9b19241f0 100644 (file)
@@ -17,9 +17,6 @@
 #include <IGESSelect_CounterOfLevelNumber.hxx>
 #include <Interface_InterfaceModel.hxx>
 #include <Interface_Macros.hxx>
-#include <Message_Messenger.hxx>
-#include <Standard_Transient.hxx>
-#include <Standard_Type.hxx>
 #include <TCollection_HAsciiString.hxx>
 
 #include <stdio.h>
@@ -133,10 +130,10 @@ IGESSelect_CounterOfLevelNumber::IGESSelect_CounterOfLevelNumber
 
 
     void  IGESSelect_CounterOfLevelNumber::PrintCount
-  (const Handle(Message_Messenger)& S) const
+  (Standard_OStream& S) const
 {
-  IFSelect_SignatureList::PrintCount(S);
-  S<<" Highest value : " << thehigh << Message_EndLine;
-  if (thenblists > 0) S<<"REMARK for LEVEL LIST : Entities are counted in"
-    <<" <LEVEL LIST>\n, and in each Level value of their list"<<Message_EndLine;
+  IFSelect_SignatureList::PrintCount (S);
+  S <<" Highest value : " << thehigh << std::endl;
+  if (thenblists > 0) S <<"REMARK for LEVEL LIST : Entities are counted in"
+    <<" <LEVEL LIST>\n, and in each Level value of their list"<<std::endl;
 }
index ea444af8e506f5a8265a096efa271ff96f93b34e..bfecd6f7529eb97a79829fed44b7997d06ec695a 100644 (file)
 #ifndef _IGESSelect_CounterOfLevelNumber_HeaderFile
 #define _IGESSelect_CounterOfLevelNumber_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
-#include <Standard_Integer.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 #include <IFSelect_SignCounter.hxx>
-#include <Standard_Boolean.hxx>
 #include <TColStd_HSequenceOfInteger.hxx>
-class Standard_Transient;
+
 class Interface_InterfaceModel;
 class TCollection_HAsciiString;
-class Message_Messenger;
-
 
 class IGESSelect_CounterOfLevelNumber;
 DEFINE_STANDARD_HANDLE(IGESSelect_CounterOfLevelNumber, IFSelect_SignCounter)
@@ -85,7 +78,7 @@ public:
   
   //! Prints the counts of items (not the list) then the Highest
   //! Level Number recorded
-  Standard_EXPORT virtual void PrintCount (const Handle(Message_Messenger)& S) const Standard_OVERRIDE;
+  Standard_EXPORT virtual void PrintCount (Standard_OStream& S) const Standard_OVERRIDE;
 
 
 
index 06882d77328524885b72e6bee75bae5d6688a614..7f7260d67a0be15d9a21da0d2c2c404805648e36 100644 (file)
@@ -77,15 +77,15 @@ static  Handle(IGESData_FileProtocol) IGESProto;
    Handle(Interface_InterfaceModel)& model,
    const Handle(Interface_Protocol)& protocol) const
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   Handle(IGESData_IGESModel) igesmod = new IGESData_IGESModel;
   DeclareAndCast(IGESData_Protocol,prot,protocol);
 
   char* pname=(char*) name;
   Standard_Integer status = IGESFile_Read (pname,igesmod,prot);
 
-  if (status < 0) sout<<"File not found : "<<name<<Message_EndLine;
-  if (status > 0) sout<<"Error when reading file : "<<name<<Message_EndLine;
+  if (status < 0) sout<<"File not found : "<<name<<std::endl;
+  if (status > 0) sout<<"Error when reading file : "<<name<<std::endl;
   if (status == 0) model = igesmod;
   else             model.Nullify();
   return status;
@@ -95,7 +95,7 @@ static  Handle(IGESData_FileProtocol) IGESProto;
     Standard_Boolean  IGESSelect_WorkLibrary::WriteFile
   (IFSelect_ContextWrite& ctx) const
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
 //  Preparation
   DeclareAndCast(IGESData_IGESModel,igesmod,ctx.Model());
   DeclareAndCast(IGESData_Protocol,prot,ctx.Protocol());
@@ -105,7 +105,7 @@ static  Handle(IGESData_FileProtocol) IGESProto;
   OSD_OpenStream(fout,ctx.FileName(),std::ios::out );
   if (!fout) {
     ctx.CCheck(0)->AddFail("IGES File could not be created");
-    sout<<" - IGES File could not be created : " << ctx.FileName() << Message_EndLine; return 0;
+    sout<<" - IGES File could not be created : " << ctx.FileName() << std::endl; return 0;
   }
   sout<<" IGES File Name : "<<ctx.FileName();
   IGESData_IGESWriter VW(igesmod);  
@@ -128,13 +128,13 @@ static  Handle(IGESData_FileProtocol) IGESProto;
   VW.SendModel(prot);            
   sout<<" Write ";
   if (themodefnes) VW.WriteMode() = 10;
-  Standard_Boolean status = VW.Print(fout);                sout<<" Done"<<Message_EndLine;
+  Standard_Boolean status = VW.Print(fout);                sout<<" Done"<<std::endl;
 
   errno = 0;
   fout.close();
   status = fout.good() && status && !errno;
   if(errno)
-    sout << strerror(errno) << Message_EndLine;
+    sout << strerror(errno) << std::endl;
 
   return status;
 }
@@ -156,7 +156,7 @@ static  Handle(IGESData_FileProtocol) IGESProto;
   (const Handle(Interface_InterfaceModel)& model, 
    const Handle(Interface_Protocol)& protocol,
    const Handle(Standard_Transient)& entity,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
   DeclareAndCast(IGESData_IGESModel,igesmod,model);
   DeclareAndCast(IGESData_Protocol,igespro,protocol);
@@ -165,17 +165,17 @@ static  Handle(IGESData_FileProtocol) IGESProto;
   Standard_Integer num = igesmod->Number(igesent);
   if (num == 0) return;
 
-  S<<" --- Entity "<<num;
+  S <<" --- Entity "<<num;
   Standard_Boolean iserr = model->IsRedefinedContent(num);
   Handle(Standard_Transient) con;
   if (iserr) con = model->ReportEntity(num)->Content();
-  if (entity.IsNull()) { S<<" Null"<<Message_EndLine; return ;  }
+  if (entity.IsNull()) { S <<" Null"<<std::endl; return ;  }
 
 //  On attaque le dump : d abord cas de l Erreur
   if (iserr) {
     S << " ERRONEOUS, Content, Type cdl : ";
     if (!con.IsNull()) S << con->DynamicType()->Name();
-    else S << "(undefined)" << Message_EndLine;
+    else S << "(undefined)" << std::endl;
     igesent = GetCasted(IGESData_IGESEntity,con);
     con.Nullify();
     Handle(Interface_Check) check = model->ReportEntity(num)->Check();
@@ -192,6 +192,6 @@ static  Handle(IGESData_FileProtocol) IGESProto;
     dump.Dump(igesent,S,level,(level-1)/3);
   }
   catch (Standard_Failure const&) {
-    S << " **  Dump Interrupt **" << Message_EndLine;
+    S << " **  Dump Interrupt **" << std::endl;
   }
 }
index 8021194ada310076d98b653e488efb770a95c4fb..aeb3fcc2499ae3111885720b40f921090a23b7e7 100644 (file)
@@ -29,8 +29,6 @@ class Interface_Protocol;
 class IFSelect_ContextWrite;
 class IGESData_Protocol;
 class Standard_Transient;
-class Message_Messenger;
-
 
 class IGESSelect_WorkLibrary;
 DEFINE_STANDARD_HANDLE(IGESSelect_WorkLibrary, IFSelect_WorkLibrary)
@@ -61,7 +59,7 @@ public:
   
   //! Dumps an IGES Entity with an IGES Dumper. <level> is the one
   //! used by IGESDumper.
-  Standard_EXPORT void DumpEntity (const Handle(Interface_InterfaceModel)& model, const Handle(Interface_Protocol)& protocol, const Handle(Standard_Transient)& entity, const Handle(Message_Messenger)& S, const Standard_Integer level) const Standard_OVERRIDE;
+  Standard_EXPORT virtual void DumpEntity (const Handle(Interface_InterfaceModel)& model, const Handle(Interface_Protocol)& protocol, const Handle(Standard_Transient)& entity, Standard_OStream& S, const Standard_Integer level) const Standard_OVERRIDE;
 
 
 
index 88cff12e1f2f8ee2b5b1ab694377aa63bfe3c180..e10acb77cbf861e4c512404ab1a2d6c61e13e228 100644 (file)
@@ -64,7 +64,6 @@
 #include <IGESSolid_Torus.hxx>
 #include <IGESSolid_VertexList.hxx>
 #include <Interface_Macros.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_Type.hxx>
 
 IMPLEMENT_STANDARD_RTTIEXT(IGESSolid_SpecificModule,IGESData_SpecificModule)
@@ -77,7 +76,7 @@ IGESSolid_SpecificModule::IGESSolid_SpecificModule()    {  }
 
     void  IGESSolid_SpecificModule::OwnDump
   (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent,
-   const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S,
+   const IGESData_IGESDumper& dumper, Standard_OStream& S,
    const Standard_Integer own) const 
 {
   switch (CN) {
index 642adebb1264647eb185dfe3f519b874aa35c0df..82c87afd58cc0dc1a91bf8ad22686b24bf013fc4 100644 (file)
@@ -24,8 +24,6 @@
 #include <Standard_Integer.hxx>
 class IGESData_IGESEntity;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 class IGESSolid_SpecificModule;
 DEFINE_STANDARD_HANDLE(IGESSolid_SpecificModule, IGESData_SpecificModule)
@@ -41,7 +39,7 @@ public:
   Standard_EXPORT IGESSolid_SpecificModule();
   
   //! Specific Dump (own parameters) for IGESSolid
-  Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const Standard_OVERRIDE;
+  Standard_EXPORT void OwnDump (const Standard_Integer CN, const Handle(IGESData_IGESEntity)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const Standard_OVERRIDE;
 
 
 
index eb7421cdf8bb0f9327413df5fa61ab4f21490d62..0b9aa06508f7bb1687c122715083e3a956bd4144 100644 (file)
@@ -185,17 +185,16 @@ void  IGESSolid_ToolBlock::OwnCheck
 
 void IGESSolid_ToolBlock::OwnDump
   (const Handle(IGESSolid_Block)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_Block" << Message_EndLine;
-
-  S <<         "Size   : ";
+  S << "IGESSolid_Block\n"
+    <<         "Size   : ";
   IGESData_DumpXYZ(S, ent->Size());
-  S << Message_EndLine << "Corner : ";
+  S << "\nCorner : ";
   IGESData_DumpXYZL(S,level, ent->Corner(), ent->Location());
-  S << Message_EndLine << "XAxis  : ";
+  S << "\nXAxis  : ";
   IGESData_DumpXYZL(S,level, ent->XAxis(), ent->VectorLocation());
-  S << Message_EndLine << "ZAxis  : ";
+  S << "\nZAxis  : ";
   IGESData_DumpXYZL(S,level, ent->ZAxis(), ent->VectorLocation());
-  S << Message_EndLine;
+  S << std::endl;
 }
index 1554a48717c6c7d68dbf5ac612beac3e5b154ea6..2dd4a0849efc314b64f20cddc88462b8746ea8bc 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Block. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Block)& entfrom, const Handle(IGESSolid_Block)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_Block)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_Block)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index abddb0d71b46b59f2fe69eefe9d35a0ef6c9031c..4ff431ea2704c716becbb3a2dc6199f9d79ea577 100644 (file)
@@ -174,35 +174,33 @@ void  IGESSolid_ToolBooleanTree::OwnCheck
 
 void  IGESSolid_ToolBooleanTree::OwnDump
   (const Handle(IGESSolid_BooleanTree)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
   Standard_Integer i, length = ent->Length();
 
-  S << "IGESSolid_Boolean Tree" << Message_EndLine;
-
-  S << "Length of the post-order notation :" << length << Message_EndLine;
-
+  S << "IGESSolid_Boolean Tree\n"
+    << "Length of the post-order notation :" << length << "\n";
   if (level > 4)
     {
-      S << "Post-order notation of the Boolean Tree :" << Message_EndLine;
+      S << "Post-order notation of the Boolean Tree :\n";
       for (i = 1; i <= length; i++)
        {
           if (ent->IsOperand(i))
            {
               S << "[" << i << "] Operand : ";
               dumper.Dump (ent->Operand(i),S, 1);
-              S << Message_EndLine;
+              S << "\n";
            }
           else
            {
              Standard_Integer opcode = ent->Operation(i);
              S << "[" << i << "] Operator : " << opcode;
              if      (opcode == 1) S << " (Union)";
-             else if (opcode == 2) S << " (Intersection)" << Message_EndLine;
-             else if (opcode == 3) S << " (Difference)" << Message_EndLine;
-             else                  S << " (incorrect value)" << Message_EndLine;
+             else if (opcode == 2) S << " (Intersection)\n";
+             else if (opcode == 3) S << " (Difference)\n";
+             else                  S << " (incorrect value)\n";
            }
        }
     }
-//  S << std::endl;
+//  aSender << std::endl;
 }
index 9c0796c28899a0813977efb1a508afed61870f9f..01d609becdbce16485490c75f11e2eadab56a2b3 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a BooleanTree. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_BooleanTree)& entfrom, const Handle(IGESSolid_BooleanTree)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_BooleanTree)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_BooleanTree)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 7008154edd38728166295ee6c75854b90a2dbb76..054e3489a0fcece41bc0851a7c16693a6e70a9e5 100644 (file)
@@ -169,16 +169,15 @@ void  IGESSolid_ToolConeFrustum::OwnCheck
 
 void  IGESSolid_ToolConeFrustum::OwnDump
   (const Handle(IGESSolid_ConeFrustum)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_ConeFrustum" << Message_EndLine;
-
-  S << "Height : " << ent->Height() << "  ";
-  S << "Larger face Radius : "  << ent->LargerRadius() << "  ";
-  S << "Smaller face Radius : " << ent->SmallerRadius() << Message_EndLine;
-  S << "Face Center : ";
+  S << "IGESSolid_ConeFrustum\n"
+    << "Height : " << ent->Height() << "  "
+    << "Larger face Radius : "  << ent->LargerRadius() << "  "
+    << "Smaller face Radius : " << ent->SmallerRadius() << "\n"
+    << "Face Center : ";
   IGESData_DumpXYZL(S,level, ent->FaceCenter(), ent->Location());
-  S << Message_EndLine << "Axis : ";
+  S << "\nAxis : ";
   IGESData_DumpXYZL(S,level, ent->Axis(), ent->VectorLocation());
-  S << Message_EndLine;
+  S << std::endl;
 }
index 59cd011c7059bb37228c609cb199194636bff6bc..a3b8b8a164d2b8b676c340a73c9679772d7dfafc 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a ConeFrustum. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_ConeFrustum)& entfrom, const Handle(IGESSolid_ConeFrustum)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_ConeFrustum)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_ConeFrustum)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index d0559cbc3409571b2bff2a0a2b65d90c39c09ad5..c11d25921c1bae7b677ef74944fdedfdc4298722 100644 (file)
@@ -141,24 +141,24 @@ void  IGESSolid_ToolConicalSurface::OwnCheck
 
 void  IGESSolid_ToolConicalSurface::OwnDump
   (const Handle(IGESSolid_ConicalSurface)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_ConicalSurface" << Message_EndLine;
+  S << "IGESSolid_ConicalSurface\n";
 
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
   S << "Point on axis  : ";
   dumper.Dump(ent->LocationPoint(),S, sublevel);
-  S << Message_EndLine;
-  S << "Axis direction : ";
+  S << "\n"
+    << "Axis direction : ";
   dumper.Dump(ent->Axis(),S, sublevel);
-  S << Message_EndLine;
-  S << "Radius         : " << ent->Radius() << "  ";
-  S << "Semi-angle     : " << ent->SemiAngle() << Message_EndLine;
+  S << "\n"
+    << "Radius         : " << ent->Radius() << "  "
+    << "Semi-angle     : " << ent->SemiAngle() << "\n";
   if (ent->IsParametrised())
     {
-      S << "Surface is Parametrised  -  Reference direction : " << Message_EndLine;
+      S << "Surface is Parametrised  -  Reference direction :\n";
       dumper.Dump(ent->ReferenceDir(),S, sublevel);
-      S << Message_EndLine;
+      S << std::endl;
     }
-  else S << "Surface is UnParametrised" << Message_EndLine;
+  else S << "Surface is UnParametrised" << std::endl;
 }
index b580d49a11c7c0aa39bd48d50678ac5cff0103a6..38dd43040547e5546ba44da8b0338658261bba0f 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a ConicalSurface. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_ConicalSurface)& entfrom, const Handle(IGESSolid_ConicalSurface)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_ConicalSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_ConicalSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 8c72c03a0b74fd9c896288cd434c020f30974424..2fd410d2f54a2b12f8fb2c098dbff2a5879bc4dd 100644 (file)
@@ -158,20 +158,19 @@ void  IGESSolid_ToolCylinder::OwnCheck
 
 void  IGESSolid_ToolCylinder::OwnDump
   (const Handle(IGESSolid_Cylinder)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
 
 //  Standard_Boolean locprint = (ent->HasTransf() && level >=6);
 //  gp_Pnt TCenter = ent->TransformedFaceCenter();
 //  gp_Dir TAxis   = ent->TransformedAxis();
 
-  S << "IGESSolid_Cylinder" << Message_EndLine;
-
-  S << "Height : " << ent->Height() << "  ";
-  S << "Radius : " << ent->Radius() << Message_EndLine;
-  S << "Center : ";
+  S << "IGESSolid_Cylinder\n"
+    << "Height : " << ent->Height() << "  "
+    << "Radius : " << ent->Radius() << "\n"
+    << "Center : ";
   IGESData_DumpXYZL(S,level, ent->FaceCenter(), ent->Location());
-  S << Message_EndLine << "Axis : ";
+  S << "\nAxis : ";
   IGESData_DumpXYZL(S,level, ent->Axis(), ent->VectorLocation());
-  S << Message_EndLine;
+  S << std::endl;
 }
index b1b2734d72a3a89fe38cc02361ee2c343d250876..951c031277da0a40318b809aaa00c9f2fd5e07aa 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Cylinder. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Cylinder)& entfrom, const Handle(IGESSolid_Cylinder)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_Cylinder)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_Cylinder)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 1666f8766c0126c2bc3a6e9ae34ae96aeb65069c..cda68e6b0fa2b06c4542350592b68d3521aaa6e5 100644 (file)
@@ -134,23 +134,23 @@ void  IGESSolid_ToolCylindricalSurface::OwnCheck
 
 void  IGESSolid_ToolCylindricalSurface::OwnDump
   (const Handle(IGESSolid_CylindricalSurface)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_CylindricalSurface" << Message_EndLine;
+  S << "IGESSolid_CylindricalSurface\n";
 
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
   S << "Point on axis  : ";
   dumper.Dump(ent->LocationPoint(),S, sublevel);
-  S << Message_EndLine;
-  S << "Axis direction : ";
+  S << "\n"
+    << "Axis direction : ";
   dumper.Dump(ent->Axis(),S, sublevel);
-  S << Message_EndLine;
-  S << "Radius         : " << ent->Radius() << Message_EndLine;
+  S << "\n"
+    << "Radius         : " << ent->Radius() << "\n";
   if (ent->IsParametrised())
     {
       S << "Surface is Parametrised  -  Reference direction : ";
       dumper.Dump(ent->ReferenceDir(),S, sublevel);
-      S << Message_EndLine;
+      S << std::endl;
     }
-  else S << "Surface is UnParametrised" << Message_EndLine;
+  else S << "Surface is UnParametrised" << std::endl;
 }
index 10b2ff317b7f649d02bc265f4a3bb29895b1416d..29024dd09f04bc846065ed2e14ca61f147197e9b 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a CylindricalSurface. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_CylindricalSurface)& entfrom, const Handle(IGESSolid_CylindricalSurface)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_CylindricalSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_CylindricalSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index a49d44ef692bb802caebf254930ed6fbb711f7e7..31217d18278bf832af64367bf83f04cd3efd51b0 100644 (file)
@@ -346,29 +346,29 @@ void IGESSolid_ToolEdgeList::OwnCheck(const Handle(IGESSolid_EdgeList)& ent,
 
 void IGESSolid_ToolEdgeList::OwnDump(const Handle(IGESSolid_EdgeList)& ent,
                                      const IGESData_IGESDumper& dumper,
-                                     const Handle(Message_Messenger)& S,
+                                     Standard_OStream& S,
                                      const Standard_Integer level) const
 {
   Standard_Integer i, length = ent->NbEdges();
 
-  S << "IGESSolid_EdgeList" << Message_EndLine;
-  S << "Number of edge tuples : " << length << Message_EndLine;
+  S << "IGESSolid_EdgeList\n"
+    << "Number of edge tuples : " << length << "\n";
   switch (level)
     {
     case 4 :
-      S << "Curves : ";
-      S << "Start Vertex List : ";
-      S << "Start Vertex Index : ";
-      IGESData_DumpVals(S ,level,1, length,ent->StartVertexIndex);
-      S << Message_EndLine;
-      S << "End Vertex List : ";
-      S << "End Vertex Index : ";
-      IGESData_DumpVals(S ,level,1, length,ent->EndVertexIndex);
-      S << Message_EndLine;
+      S << "Curves : "
+        << "Start Vertex List : "
+        << "Start Vertex Index : ";
+      IGESData_DumpVals(S,level,1, length,ent->StartVertexIndex);
+      S << "\n"
+        << "End Vertex List : "
+        << "End Vertex Index : ";
+      IGESData_DumpVals(S,level,1, length,ent->EndVertexIndex);
+      S << "\n";
       break;
     case 5 :
     case 6 :
-      S<<" Curve - Vertices. Start : (VertexList,Index)  End : (VertexList,Index)"<<Message_EndLine;
+      S <<" Curve - Vertices. Start : (VertexList,Index)  End : (VertexList,Index)\n";
       for (i = 1; i <= length; i ++)
        {
 //[123]:Curve : #1234 - Vertices. Start = (#5678 , 3467)  End = (#1234 , 4664)
@@ -376,15 +376,15 @@ void IGESSolid_ToolEdgeList::OwnDump(const Handle(IGESSolid_EdgeList)& ent,
          dumper.Dump (ent->Curve(i),S, level-5);
          S <<" - Vertices. Start : (";
          dumper.Dump (ent->StartVertexList(i),S, 0);
-         S << " , " << ent->StartVertexIndex(i);
-         S << ")  End : (";
+         S << " , " << ent->StartVertexIndex(i)
+           << ")  End : (";
          dumper.Dump (ent->EndVertexList(i),S, 0);
-         S << " , " << ent->EndVertexIndex(i);
-         S << ")"   << Message_EndLine;
+         S << " , " << ent->EndVertexIndex(i)
+           << ")"   << "\n";
        }
       break;
       default :
        break;
     }
-  S << Message_EndLine;
+  S << std::endl;
 }
index 2f7f85625348c16ea7aa3647b0f15859405a4dd6..4e3c837c5906890713e2b01d7a69e8e7722f7629 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a EdgeList. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_EdgeList)& entfrom, const Handle(IGESSolid_EdgeList)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_EdgeList)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_EdgeList)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 46e05ae3f2bb80583001df3d2eb5dd7c6c8c8ad2..95ab3359aa28e7ff624c46c0adea29aad39322ae 100644 (file)
@@ -188,17 +188,16 @@ void  IGESSolid_ToolEllipsoid::OwnCheck
 
 void  IGESSolid_ToolEllipsoid::OwnDump
   (const Handle(IGESSolid_Ellipsoid)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_Ellipsoid" << Message_EndLine;
-
-  S << "Size   : ";
+  S << "IGESSolid_Ellipsoid\n"
+    << "Size   : ";
   IGESData_DumpXYZ(S, ent->Size());
-  S << Message_EndLine << "Center : ";
+  S << "\nCenter : ";
   IGESData_DumpXYZL(S,level, ent->Center(), ent->Location());
-  S << Message_EndLine << "XAxis  : ";
+  S << "\nXAxis  : ";
   IGESData_DumpXYZL(S,level, ent->XAxis(), ent->VectorLocation());
-  S << Message_EndLine << "ZAxis  : ";
+  S << "\nZAxis  : ";
   IGESData_DumpXYZL(S,level, ent->ZAxis(), ent->VectorLocation());
-  S << Message_EndLine;
+  S << std::endl;
 }
index 822867770be237e5240138a4dd6273e062ac6c0e..f246fed084932bac4d46d6b231ea4a6410af13dd 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Ellipsoid. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Ellipsoid)& entfrom, const Handle(IGESSolid_Ellipsoid)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_Ellipsoid)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_Ellipsoid)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 3b2053ce56bf1f58878e7fcceea12558d805b203..279eb194fd75a012c4ea4891299f3d7a74d5cd7d 100644 (file)
@@ -246,19 +246,19 @@ void IGESSolid_ToolFace::OwnCheck(const Handle(IGESSolid_Face)& ent,
 
 void IGESSolid_ToolFace::OwnDump(const Handle(IGESSolid_Face)& ent,
                                  const IGESData_IGESDumper& dumper,
-                                 const Handle(Message_Messenger)& S,
+                                 Standard_OStream& S,
                                  const Standard_Integer level) const
 {
-  S << "IGESSolid_Face" << Message_EndLine;
+  S << "IGESSolid_Face\n";
 
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
   S << "Surface : ";
   dumper.Dump(ent->Surface(),S, sublevel);
-  S << Message_EndLine;
-  if (ent->HasOuterLoop())  S << "Outer loop is present (First one)" << Message_EndLine;
-  else                      S << "Outer loop is not present" << Message_EndLine;
+  S << "\n";
+  if (ent->HasOuterLoop())  S << "Outer loop is present (First one)\n";
+  else                      S << "Outer loop is not present\n";
   S << "Loops : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbLoops(),ent->Loop);
-  S << Message_EndLine;
+  S << std::endl;
 }
 
index 1ffe331172f6b17896672cf29809fa336c10bed8..b588c1ec62b25529a37210aa86e806dafca42063 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Face. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Face)& entfrom, const Handle(IGESSolid_Face)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_Face)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_Face)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 85385925a00909d9779b381236b7bf23ef6d31a4..cc914d86b292f3019b7b77f79fcc1cc55efbc1d7 100644 (file)
@@ -38,7 +38,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
@@ -368,31 +367,30 @@ void IGESSolid_ToolLoop::OwnCheck(const Handle(IGESSolid_Loop)& ent,
 
 void IGESSolid_ToolLoop::OwnDump(const Handle(IGESSolid_Loop)& ent,
                                  const IGESData_IGESDumper& dumper,
-                                 const Handle(Message_Messenger)& S,
+                                 Standard_OStream& S,
                                  const Standard_Integer level) const
 {
   Standard_Integer i, j;
   Standard_Integer nbedges  = ent->NbEdges();
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESSolid_Loop" << Message_EndLine;
-
-  S << "Edge types : " << Message_EndLine;
-  S << "Edges      : " << Message_EndLine;
-  S << "List index : " << Message_EndLine;
-  S << "Orientation flags : " << Message_EndLine;
-  S << "Parametric flags  : ";
+  S << "IGESSolid_Loop\n"
+    << "Edge types :\n"
+    << "Edges      :\n"
+    << "List index :\n"
+    << "Orientation flags :\n"
+    << "Parametric flags  : ";
   IGESData_DumpEntities(S,dumper,-level,1, nbedges,ent->Edge);
-  S << Message_EndLine;
+  S << "\n";
   if (level > 4)
     {
       S << "[ ";
       for (i = 1; i <= nbedges; i ++)
        {
          Standard_Integer nbc = ent->NbParameterCurves(i);
-          S << "[" << i << "]:  ";
-          S << "Edge type : " << ent->EdgeType(i) << "  ";
-          S << "Edge : ";
+          S << "[" << i << "]:  "
+            << "Edge type : " << ent->EdgeType(i) << "  "
+            << "Edge : ";
           dumper.Dump (ent->Edge(i),S, sublevel);
           S << "  - Index : " << ent->ListIndex(i)
             << ", Orientation flag : " << ( ent->Orientation(i) ? "Positive" : "Negative" )
@@ -404,19 +402,19 @@ void IGESSolid_ToolLoop::OwnDump(const Handle(IGESSolid_Loop)& ent,
                S << ":\n [ ";
                for (j = 1; j <= nbc; j ++)
                  {
-                   S << "[" << j << "]:  ";
-                   S << "Isoparametric flag : "
-                     << ( ent->IsIsoparametric(i,j) ? "True" : "False" ) << "  ";
-                   S << "Parametric curve : ";
+                   S << "[" << j << "]:  "
+                     << "Isoparametric flag : "
+                     << ( ent->IsIsoparametric(i,j) ? "True" : "False" ) << "  "
+                     << "Parametric curve : ";
                    dumper.Dump (ent->ParametricCurve(i,j),S, sublevel);
-                   S << Message_EndLine;
+                   S << "\n";
                  }
                S << " ]";
              }
            }
-         S << Message_EndLine;
+         S << "\n";
        }
       S << " ]";
     }
-  S << Message_EndLine;
+  S << std::endl;
 }
index 294bfc62cfe87907f2fb6c82db79ff6b4b55368f..89054688c7a8d32b99969cd0feda35dd29eaa6f3 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Loop. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Loop)& entfrom, const Handle(IGESSolid_Loop)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_Loop)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_Loop)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index d87f164dc4351284fbb426b6b9bac68f7097a62a..fd255197940c39c5223715be7a9add36d2aef894 100644 (file)
@@ -33,7 +33,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Message_Msg.hxx>
 #include <Standard_DomainError.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
@@ -207,39 +206,39 @@ void  IGESSolid_ToolManifoldSolid::OwnCheck
 
 void  IGESSolid_ToolManifoldSolid::OwnDump
   (const Handle(IGESSolid_ManifoldSolid)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_ManifoldSolid" << Message_EndLine;
+  S << "IGESSolid_ManifoldSolid\n";
 
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
   S << "Shell : ";
   dumper.Dump(ent->Shell(),S, sublevel);
-  S << Message_EndLine;
+  S << "\n";
   if (ent->OrientationFlag())
-    S << "Orientation agrees with the underlying surface" << Message_EndLine;
+    S << "Orientation agrees with the underlying surface\n";
   else
-    S << "Orientation does not agrees with the underlying surface" << Message_EndLine;
-  S << "Void shells :" << Message_EndLine << "Orientation flags : ";
+    S << "Orientation does not agrees with the underlying surface\n";
+  S << "Void shells :\nOrientation flags : ";
   IGESData_DumpEntities(S,dumper,-level,1, ent->NbVoidShells(),ent->VoidShell);
-  S << Message_EndLine;
+  S << std::endl;
   if (level > 4)
     {
-      S << "[ " << Message_EndLine;
+      S << "[\n";
       if (ent->NbVoidShells() > 0)
        {
           Standard_Integer upper = ent->NbVoidShells();
           for (Standard_Integer i = 1; i <= upper; i ++)
            {
-              S << "[" << i << "]:  ";
-              S << "Void shell : ";
+              S << "[" << i << "]:  "
+                << "Void shell : ";
               dumper.Dump (ent->VoidShell(i),S, sublevel);
               S << "  - Orientation flag : ";
-              if (ent->VoidOrientationFlag(i)) S << "True"  << Message_EndLine;
-              else                            S << "False" << Message_EndLine;
+              if (ent->VoidOrientationFlag(i)) S << "True\n";
+              else                            S << "False\n";
            }
        }
-      S << " ]" << Message_EndLine;
+      S << " ]\n";
     }
-  S << Message_EndLine;
+  S << std::endl;
 }
 
index 0ecd1fd3e7705f2cea05a28efb53033b02ac0e0e..e2419eefa52acb3f4088b45b5ee5f6538cffd82f 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a ManifoldSolid. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_ManifoldSolid)& entfrom, const Handle(IGESSolid_ManifoldSolid)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_ManifoldSolid)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_ManifoldSolid)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 02a8806716309dc84336753d387b46e7fd9e4878..d04a0f5ce24b067f4efb54989d838a712f8f61a2 100644 (file)
@@ -254,23 +254,23 @@ void IGESSolid_ToolPlaneSurface::OwnCheck(const Handle(IGESSolid_PlaneSurface)&
 
 void IGESSolid_ToolPlaneSurface::OwnDump(const Handle(IGESSolid_PlaneSurface)& ent,
                                          const IGESData_IGESDumper& dumper,
-                                         const Handle(Message_Messenger)& S,
+                                         Standard_OStream& S,
                                          const Standard_Integer level) const
 {
-  S << "IGESSolid_PlaneSurface" << Message_EndLine;
+  S << "IGESSolid_PlaneSurface\n";
 
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
   S << "Point on axis    : ";
   dumper.Dump(ent->LocationPoint(),S, sublevel);
-  S << Message_EndLine;
-  S << "Normal direction : ";
+  S << "\n"
+    << "Normal direction : ";
   dumper.Dump(ent->Normal(),S, sublevel);
-  S << Message_EndLine;
+  S << "\n";
   if (ent->IsParametrised())
     {
       S << "Surface is Parametrised  -  Reference direction : ";
       dumper.Dump(ent->ReferenceDir(),S, sublevel);
-      S << Message_EndLine;
+      S << std::endl;
     }
-  else S << "Surface is UnParametrised" << Message_EndLine;
+  else S << "Surface is UnParametrised" << std::endl;
 }
index 3e6a2185c278f12ed7b8c74f573e46329e4ccd8b..dc5bf05c37dc40f4725371294a6750c0b5ac0ba6 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a PlaneSurface. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_PlaneSurface)& entfrom, const Handle(IGESSolid_PlaneSurface)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_PlaneSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_PlaneSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index c9c698a9ca77c27618ab6e232b68240a6dfba6e5..616a9a63e32ab1558da9a1da6aed81ea06e2209b 100644 (file)
@@ -194,18 +194,17 @@ void  IGESSolid_ToolRightAngularWedge::OwnCheck
 
 void  IGESSolid_ToolRightAngularWedge::OwnDump
   (const Handle(IGESSolid_RightAngularWedge)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_RightAngularWedge" << Message_EndLine;
-
-  S << "Size   : ";
+  S << "IGESSolid_RightAngularWedge\n"
+    << "Size   : ";
   IGESData_DumpXYZ(S, ent->Size());  S << "  ";
-  S << "XSmall : " << ent->XSmallLength() << Message_EndLine;
-  S << "Corner : ";
+  S << "XSmall : " << ent->XSmallLength() << "\n"
+    << "Corner : ";
   IGESData_DumpXYZL(S,level, ent->Corner(), ent->Location());
-  S << Message_EndLine << "XAxis : ";
+  S << "\nXAxis : ";
   IGESData_DumpXYZL(S,level, ent->XAxis(), ent->VectorLocation());
-  S << Message_EndLine << "ZAxis : ";
+  S << "\nZAxis : ";
   IGESData_DumpXYZL(S,level, ent->ZAxis(), ent->VectorLocation());
-  S << Message_EndLine;
+  S << std::endl;
 }
index f3b23333ef55ff1cb5d442b29e19c334ff5b1e39..84015a32275e82621fc0056fdc5d60a51093acbb 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a RightAngularWedge. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_RightAngularWedge)& entfrom, const Handle(IGESSolid_RightAngularWedge)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_RightAngularWedge)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_RightAngularWedge)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 16c91cd31857e8a795e40e2219cfb6bb2ea859bd..6599f01699b5a03f0b4f4f79d8bc50a153b2ccf5 100644 (file)
@@ -105,14 +105,14 @@ void  IGESSolid_ToolSelectedComponent::OwnCheck
 
 void  IGESSolid_ToolSelectedComponent::OwnDump
   (const Handle(IGESSolid_SelectedComponent)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_SelectedComponent" << Message_EndLine;
+  S << "IGESSolid_SelectedComponent\n";
 
   // the heading for boolean tree is in BooleanTree OwnDump
-  S << "Boolean Tree Entity : " << Message_EndLine;
+  S << "Boolean Tree Entity :\n";
   dumper.Dump(ent->Component(),S, (level <= 4) ? 0 : 1);
   S << "Seleted Point       : ";
   IGESData_DumpXYZL(S,level, ent->SelectPoint(), ent->Location());
-  S << Message_EndLine;
+  S << std::endl;
 }
index e1a8bb86a75a0d18d06df5aec582ea90da6b3b11..2ecc4e2b15e53b6ea72e7177fe3199a3412b01d2 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a SelectedComponent. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_SelectedComponent)& entfrom, const Handle(IGESSolid_SelectedComponent)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_SelectedComponent)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_SelectedComponent)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index dd8466de9a859c2dd6f58b1f1130653a4575f11c..89223742711f2262eb733aa76a526f645560f2d0 100644 (file)
@@ -229,28 +229,28 @@ void IGESSolid_ToolShell::OwnCheck(const Handle(IGESSolid_Shell)& ent,
 
 void IGESSolid_ToolShell::OwnDump(const Handle(IGESSolid_Shell)& ent,
                                   const IGESData_IGESDumper& dumper,
-                                  const Handle(Message_Messenger)& S,
+                                  Standard_OStream& S,
                                   const Standard_Integer level) const
 {
-  S << "IGESSolid_Shell" << Message_EndLine;
+  S << "IGESSolid_Shell\n";
   Standard_Integer upper = ent->NbFaces();
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "Faces : " << Message_EndLine << "Orientation flags : ";
+  S << "Faces :\nOrientation flags : ";
   IGESData_DumpEntities(S,dumper,-level,1, ent->NbFaces(),ent->Face);
-  S << Message_EndLine;
+  S << "\n";
   if (level > 4)
     {
-      S << "[" << Message_EndLine;
+      S << "[\n";
       for (Standard_Integer i = 1; i <= upper; i ++)
        {
-          S << "[" << i << "]:  ";
-          S << "Face : ";
+          S << "[" << i << "]:  "
+            << "Face : ";
           dumper.Dump (ent->Face(i),S, sublevel);
           S << "  - Orientation flag : ";
-          if (ent->Orientation(i)) S << "True" << Message_EndLine;
-          else                     S << "False" << Message_EndLine;
+          if (ent->Orientation(i)) S << "True\n";
+          else                     S << "False\n";
        }
     }
-  S << Message_EndLine;
+  S << std::endl;
 }
index 35cfd7418c17c6b63785cef493b51725847c182a..3ff3dca816217e73f500f57ab39e7a546678a683 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Shell. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Shell)& entfrom, const Handle(IGESSolid_Shell)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_Shell)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_Shell)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 4bd250ab6e3ca70dfc2b90b0cacb138af1f415b0..c6935f905cb73c49a7f224e411b63759f58748a1 100644 (file)
@@ -156,16 +156,14 @@ void  IGESSolid_ToolSolidAssembly::OwnCheck
 
 void  IGESSolid_ToolSolidAssembly::OwnDump
   (const Handle(IGESSolid_SolidAssembly)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
 //  Standard_Integer upper = ent->NbItems();
-
-  S << "IGESSolid_SolidAssembly" << Message_EndLine;
-
-  S << "Items : ";
+  S << "IGESSolid_SolidAssembly\n"
+    << "Items : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbItems(),ent->Item);
-  S << Message_EndLine;
-  S << "Matrices : ";
+  S << "\n"
+    << "Matrices : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbItems(),ent->TransfMatrix);
-  S << Message_EndLine;
+  S << std::endl;
 }
index 5e138f225610613322ba903a53acddba0e6eb759..791c81b4865fa088f7628758f38d53107f5f4172 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a SolidAssembly. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_SolidAssembly)& entfrom, const Handle(IGESSolid_SolidAssembly)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_SolidAssembly)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_SolidAssembly)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 6825ff9b4a968deb0f4240e3bcfae5382bd10c61..9c1ab881ddc86e2d66377c6b82718c5fabbc7921 100644 (file)
@@ -91,11 +91,10 @@ void  IGESSolid_ToolSolidInstance::OwnCheck
 
 void  IGESSolid_ToolSolidInstance::OwnDump
   (const Handle(IGESSolid_SolidInstance)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_SolidInstance" << Message_EndLine;
-
-  S << "Solid entity : ";
+  S << "IGESSolid_SolidInstance\n"
+    << "Solid entity : ";
   dumper.Dump(ent->Entity(),S, (level <= 4) ? 0 : 1);
-  S << Message_EndLine;
+  S << std::endl;
 }
index 936698283e137b33a3525ebda4cb881d44988984..a137cedcfb78ee7c77a3bfae5718c35512638aba 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a SolidInstance. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_SolidInstance)& entfrom, const Handle(IGESSolid_SolidInstance)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_SolidInstance)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_SolidInstance)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 144c09c35d3cea5e889f2b28e9a2d3851882bc89..95cb02377e387c0e634646a6fcded59d2dcb4853 100644 (file)
@@ -135,15 +135,14 @@ void  IGESSolid_ToolSolidOfLinearExtrusion::OwnCheck
 
 void  IGESSolid_ToolSolidOfLinearExtrusion::OwnDump
   (const Handle(IGESSolid_SolidOfLinearExtrusion)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_SolidOfLinearExtrusion" << Message_EndLine;
-
-  S << "Curve entity        : ";
+  S << "IGESSolid_SolidOfLinearExtrusion\n"
+    << "Curve entity        : ";
   dumper.Dump(ent->Curve(),S, (level <= 4) ? 0 : 1);
-  S << Message_EndLine;
-  S << "Extrusion length    : " << ent->ExtrusionLength() << Message_EndLine;
-  S << "Extrusion direction : ";
+  S << "\n"
+    << "Extrusion length    : " << ent->ExtrusionLength() << "\n"
+    << "Extrusion direction : ";
   IGESData_DumpXYZL(S,level, ent->ExtrusionDirection(), ent->VectorLocation());
-  S << Message_EndLine;
+  S << std::endl;
 }
index 100802585f7afd4866692c8dbb4626cfa08972fe..341838fcd3f8dd4f74cef2fa89da7f6f08f6e44c 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a SolidOfLinearExtrusion. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_SolidOfLinearExtrusion)& entfrom, const Handle(IGESSolid_SolidOfLinearExtrusion)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_SolidOfLinearExtrusion)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_SolidOfLinearExtrusion)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 58e2552316691d0d9824cf7b6d94ffa6bbb92fc7..52ad518cd3f9144e17ec2f1fc9f1ff3c1703b320 100644 (file)
@@ -167,17 +167,16 @@ void  IGESSolid_ToolSolidOfRevolution::OwnCheck
 
 void  IGESSolid_ToolSolidOfRevolution::OwnDump
   (const Handle(IGESSolid_SolidOfRevolution)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_SolidOfRevolution" << Message_EndLine;
-
-  S << "Curve entity   :";
+  S << "IGESSolid_SolidOfRevolution\n"
+    << "Curve entity   :";
   dumper.Dump(ent->Curve(),S, (level <= 4) ? 0 : 1);
-  S << Message_EndLine;
-  S << "Fraction of rotation : " << ent->Fraction() << Message_EndLine;
-  S << "Axis Point     : ";
+  S << "\n"
+    << "Fraction of rotation : " << ent->Fraction() << "\n"
+    << "Axis Point     : ";
   IGESData_DumpXYZL(S,level, ent->AxisPoint(), ent->Location());
-  S << Message_EndLine << "Axis direction : ";
+  S << "\nAxis direction : ";
   IGESData_DumpXYZL(S,level, ent->Axis(), ent->VectorLocation());
-  S << Message_EndLine;
+  S << std::endl;
 }
index 1bde02b2d09f95ea59a412ee9c196b57c57a0273..e559b335dc5f99a43c3f3a660eb2c6651f9a20f2 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a SolidOfRevolution. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_SolidOfRevolution)& entfrom, const Handle(IGESSolid_SolidOfRevolution)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_SolidOfRevolution)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_SolidOfRevolution)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index f260734ba7c34358553454f712ec595a58481e7f..0564cac99f3c2fb8e5c0e72e67797ac017bb88a9 100644 (file)
@@ -120,12 +120,11 @@ void  IGESSolid_ToolSphere::OwnCheck
 
 void  IGESSolid_ToolSphere::OwnDump
   (const Handle(IGESSolid_Sphere)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_Sphere" << Message_EndLine;
-
-  S << "Radius : " << ent->Radius() << Message_EndLine;
-  S << "Center : ";
+  S << "IGESSolid_Sphere\n"
+    << "Radius : " << ent->Radius() << "\n"
+    << "Center : ";
   IGESData_DumpXYZL(S,level, ent->Center(), ent->Location());
-  S << Message_EndLine;
+  S << std::endl;
 }
index ba888fef7ed34905bbf1bc887c33fdfa74b2a944..03f445b06283edd039d690d065f1faaaf6696bc5 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Sphere. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Sphere)& entfrom, const Handle(IGESSolid_Sphere)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_Sphere)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_Sphere)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index cbc73c1655b618c664108cc6984d1fcaebc4d425..6c4885bdbe6c356b30efc9b352eddff4c06ddebd 100644 (file)
@@ -141,24 +141,24 @@ void  IGESSolid_ToolSphericalSurface::OwnCheck
 
 void  IGESSolid_ToolSphericalSurface::OwnDump
   (const Handle(IGESSolid_SphericalSurface)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_SphericalSurface" << Message_EndLine;
+  S << "IGESSolid_SphericalSurface\n";
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
   S << "Center : ";
   dumper.Dump(ent->Center(),S, sublevel);
-  S << Message_EndLine;
-  S << "Radius : " << ent->Radius() << Message_EndLine;
+  S << "\n"
+    << "Radius : " << ent->Radius() << "\n";
   if (ent->IsParametrised())
     {
-      S << "Surface is Parametrised" << Message_EndLine;
-      S << "Axis direction      : ";
+      S << "Surface is Parametrised\n"
+        << "Axis direction      : ";
       dumper.Dump(ent->Axis(),S, sublevel);
-      S << Message_EndLine;
-      S << "Reference direction : ";
+      S << "\n"
+        << "Reference direction : ";
       dumper.Dump(ent->ReferenceDir(),S, sublevel);
-      S << Message_EndLine;
+      S << std::endl;
     }
-  else S << "Surface is UnParametrised" << Message_EndLine;
+  else S << "Surface is UnParametrised" << std::endl;
 }
index d6236f9821c0a1653cd7341399426aee3f7cb505..7700f5178427d0c3ab41e965d0b0bae1a995a81e 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a SphericalSurface. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_SphericalSurface)& entfrom, const Handle(IGESSolid_SphericalSurface)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_SphericalSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_SphericalSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 46833581475c635efed54c878b43b3a38879a854..0f6f3fa57329168e1b18ce6233a01db085496012 100644 (file)
@@ -31,7 +31,6 @@
 #include <Interface_EntityIterator.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_DomainError.hxx>
 
 IGESSolid_ToolToroidalSurface::IGESSolid_ToolToroidalSurface ()    {  }
@@ -138,24 +137,24 @@ void  IGESSolid_ToolToroidalSurface::OwnCheck
 
 void  IGESSolid_ToolToroidalSurface::OwnDump
   (const Handle(IGESSolid_ToroidalSurface)& ent, const IGESData_IGESDumper& dumper,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_ToroidalSurface" << Message_EndLine;
+  S << "IGESSolid_ToroidalSurface\n";
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
   S << "Center : ";
   dumper.Dump(ent->Center(),S, sublevel);
-  S << Message_EndLine;
-  S << "Axis direction : ";
+  S << "\n"
+    << "Axis direction : ";
   dumper.Dump(ent->Axis(),S, sublevel);
-  S << Message_EndLine;
-  S << "Major Radius : " << ent->MajorRadius() << "  ";
-  S << "Minor Radius : " << ent->MinorRadius() << Message_EndLine;
+  S << "\n"
+    << "Major Radius : " << ent->MajorRadius() << "  "
+    << "Minor Radius : " << ent->MinorRadius() << "\n";
   if (ent->IsParametrised())
     {
       S << "Surface is Parametrised  -  Reference direction : ";
       dumper.Dump(ent->ReferenceDir(),S, sublevel);
-      S << Message_EndLine;
+      S << std::endl;
     }
-  else S << "Surface is UnParametrised" << Message_EndLine;
+  else S << "Surface is UnParametrised" << std::endl;
 }
index 602e9b6d08e5857901b6038cfe043ba3daffe64d..f0ea4411ef4481e3520998302f202c73631721b4 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a ToroidalSurface. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_ToroidalSurface)& entfrom, const Handle(IGESSolid_ToroidalSurface)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_ToroidalSurface)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_ToroidalSurface)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 0fffb8c9c194bf444ad0a94bb803154d25acb62c..c9b99c395df0610981d42b9f6371905e046aa4c0 100644 (file)
@@ -159,15 +159,14 @@ void  IGESSolid_ToolTorus::OwnCheck
 
 void  IGESSolid_ToolTorus::OwnDump
   (const Handle(IGESSolid_Torus)& ent, const IGESData_IGESDumper& /* dumper */,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_Torus" << Message_EndLine;
-
-  S << "Radius of revolution : " << ent->MajorRadius() << "  ";
-  S << "Radius of the disc   : " << ent->DiscRadius()  << Message_EndLine;
-  S << "Center Point   : ";
+  S << "IGESSolid_Torus\n"
+    << "Radius of revolution : " << ent->MajorRadius() << "  "
+    << "Radius of the disc   : " << ent->DiscRadius()  << "\n"
+    << "Center Point   : ";
   IGESData_DumpXYZL(S,level, ent->AxisPoint(), ent->Location());
-  S << Message_EndLine << "Axis direction : ";
+  S << "\nAxis direction : ";
   IGESData_DumpXYZL(S,level, ent->Axis(), ent->VectorLocation());
-  S << Message_EndLine;
+  S << std::endl;
 }
index de3ca1f6e05655bf1a45623e1c3e6d6b0d2a552b..e698dad6ebc8273c767050fdcaa84ab46b2a3b94 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a Torus. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_Torus)& entfrom, const Handle(IGESSolid_Torus)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_Torus)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_Torus)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 60b8d844781dc943256c866a1d391127d44a23d4..1b4ba8e89274f3f25c00aa79043a39135902e01e 100644 (file)
@@ -201,12 +201,11 @@ void IGESSolid_ToolVertexList::OwnCheck(const Handle(IGESSolid_VertexList)& ent,
 
 void IGESSolid_ToolVertexList::OwnDump(const Handle(IGESSolid_VertexList)& ent,
                                        const IGESData_IGESDumper& /* dumper */,
-                                       const Handle(Message_Messenger)& S,
+                                       Standard_OStream& S,
                                        const Standard_Integer level) const
 {
-  S << "IGESSolid_VertexList" << Message_EndLine;
-
-  S << "Vertices : ";
-  IGESData_DumpListXYZL(S ,level,1, ent->NbVertices(),ent->Vertex,ent->Location());
-  S << Message_EndLine;
+  S << "IGESSolid_VertexList\n"
+    << "Vertices : ";
+  IGESData_DumpListXYZL(S,level,1, ent->NbVertices(),ent->Vertex,ent->Location());
+  S << std::endl;
 }
index b0909405370ec6288ae4778ec16edf5cdc8452b6..eff89aa166b3170ddcf2e48df15dc56986a1a264 100644 (file)
@@ -33,8 +33,6 @@ class Interface_ShareTool;
 class Interface_Check;
 class Interface_CopyTool;
 class IGESData_IGESDumper;
-class Message_Messenger;
-
 
 //! Tool to work on a VertexList. Called by various Modules
 //! (ReadWriteModule, GeneralModule, SpecificModule)
@@ -69,7 +67,7 @@ public:
   Standard_EXPORT void OwnCopy (const Handle(IGESSolid_VertexList)& entfrom, const Handle(IGESSolid_VertexList)& entto, Interface_CopyTool& TC) const;
   
   //! Dump of Specific Parameters
-  Standard_EXPORT void OwnDump (const Handle(IGESSolid_VertexList)& ent, const IGESData_IGESDumper& dumper, const Handle(Message_Messenger)& S, const Standard_Integer own) const;
+  Standard_EXPORT void OwnDump (const Handle(IGESSolid_VertexList)& ent, const IGESData_IGESDumper& dumper, Standard_OStream& S, const Standard_Integer own) const;
 
 
 
index 3511d96e2158968af414ea660f190ab1a6024b5c..c3c5f43af8425f254b7fe65fa30a1bf049d12d26 100644 (file)
@@ -194,7 +194,7 @@ void IGESToBRep_CurveAndSurface::SetModel(const Handle(IGESData_IGESModel)& mode
   if (unitfactor != 1.)
     {
       if ( myTP->TraceLevel() > 2 )
-       myTP->Messenger() << "UnitFactor = "<< unitfactor << Message_EndLine;
+       myTP->Messenger()->SendInfo() << "UnitFactor = "<< unitfactor << std::endl;
       myUnitFactor = unitfactor;
     }
   UpdateMinMaxTol();
index 34d8f0d2f5248868c1e9b168526311ddee32e832..c2863d52b92a3a8be00bfa566cdefe7c878d6ea1 100644 (file)
@@ -268,8 +268,13 @@ Standard_Integer IGESToBRep_Reader::LoadFile (const Standard_CString filename)
 {
   Interface_CheckTool cht (theModel,protocol);
   Interface_CheckIterator chl = cht.CompleteCheckList();
-  if (withprint && !theProc.IsNull()) 
-    cht.Print(chl, theProc->Messenger());
+  if (withprint
+  && !theProc.IsNull()
+  && !theProc->Messenger().IsNull())
+  {
+    Message_Messenger::StreamBuffer aBuffer = theProc->Messenger()->SendInfo();
+    cht.Print(chl, aBuffer);
+  }
   return chl.IsEmpty(Standard_True);
 }
 
index 0a3b90190b63f490754519f42237c1f52fa226e5..67bcabe7c1b6b3fc506fc31284380e2eed231f86 100644 (file)
@@ -253,7 +253,7 @@ void IVtkDraw_Interactor::MoveTo (Standard_Integer theX, Standard_Integer theY)
       Handle(Message_Messenger) anOutput = Message::DefaultMessenger();
       if (!myPipelines->IsBound(aShapeID))
       {
-        anOutput << "Warning: there is no VTK pipeline registered for highlighted shape" << Message_EndLine;
+        anOutput->SendWarning() << "Warning: there is no VTK pipeline registered for highlighted shape" << std::endl;
         continue;
       }
 
@@ -318,7 +318,7 @@ void IVtkDraw_Interactor::OnSelection()
       Handle(Message_Messenger) anOutput = Message::DefaultMessenger();
       if (!myPipelines->IsBound (aShapeID))
       {
-        anOutput << "Warning: there is no VTK pipeline registered for picked shape" << Message_EndLine;
+        anOutput->SendWarning() << "Warning: there is no VTK pipeline registered for picked shape" << std::endl;
         continue;
       }
 
index 520fdbc77ce146e73fad9ee03cae7a6179843480..fac73916823e184e470d857e152554018fca6045 100644 (file)
@@ -310,14 +310,14 @@ bool IVtkOCC_ShapePickerAlgo::processPicked()
 
       if (aSelectable.IsNull())
       {
-        anOutput << "Error: EntityOwner having null SelectableObject picked!";
+        anOutput->SendAlarm() << "Error: EntityOwner having null SelectableObject picked!";
         continue;
       }
 
       Handle(IVtkOCC_Shape) aSelShape = aSelectable->GetShape();
       if (aSelShape.IsNull())
       {
-        anOutput << "Error: SelectableObject with null OccShape pointer picked!";
+        anOutput->SendAlarm() << "Error: SelectableObject with null OccShape pointer picked!";
         continue;
       }
 
@@ -334,12 +334,12 @@ bool IVtkOCC_ShapePickerAlgo::processPicked()
       TopoDS_Shape aSubShape      = anEntityOwner->Shape();
       if (aTopLevelShape.IsNull())
       {
-        anOutput << "Error: OccShape with null top-level TopoDS_Shape picked!";
+        anOutput->SendAlarm() << "Error: OccShape with null top-level TopoDS_Shape picked!";
         continue;
       }
       if (aSubShape.IsNull())
       {
-        anOutput << "Error: EntityOwner with null TopoDS_Shape picked!";
+        anOutput->SendAlarm() << "Error: EntityOwner with null TopoDS_Shape picked!";
         continue;
       }
 
index a54d5be7a8c98678e6742b491a3b5d3ecb4f80d6..b6ff1aff343402b74954d158c6719c0c13de09c4 100644 (file)
@@ -685,7 +685,7 @@ void Interface_Check::GetAsWarning(const Handle(Interface_Check)& other,
 //purpose  : 
 //=======================================================================
 
-void Interface_Check::Print(const Handle(Message_Messenger)& S, const Standard_Integer level,
+void Interface_Check::Print(Standard_OStream& S, const Standard_Integer level,
                             const Standard_Integer final) const
 {
   Standard_Integer j, nb = NbFails();
@@ -695,9 +695,9 @@ void Interface_Check::Print(const Handle(Message_Messenger)& S, const Standard_I
 //    if (nb > 0) S<<" -->   Fails    : "<<nb<<std::endl;
     for (j = 1; j <= nb; j ++) {
       if (final >= 0) 
-       S<<CFail(j,Standard_True)<<"\n";
+       S <<CFail(j,Standard_True)<<"\n";
       else
-       S<<CFail(j,Standard_False)<<"\n";
+       S <<CFail(j,Standard_False)<<"\n";
 //      if (final == 0)
 //     if (Fail(j,Standard_True) != Fail(j,Standard_False))
 //       S<<"[original:"<<CFail(j,Standard_False)<<"]\n";
@@ -709,9 +709,9 @@ void Interface_Check::Print(const Handle(Message_Messenger)& S, const Standard_I
 //    if (nb > 0) S<<" -->   Warnings : "<<nb<<std::endl;
     for (j = 1; j <= nb; j ++) {
       if (final >= 0)
-       S<<CWarning(j,Standard_True)<<"\n";
+       S <<CWarning(j,Standard_True)<<"\n";
       else
-       S<<CWarning(j,Standard_False)<<"\n";
+       S <<CWarning(j,Standard_False)<<"\n";
 //      if (final == 0)
 //     if (Warning(j,Standard_True) != Warning(j,Standard_False))
 //       S<<"[original:"<<CWarning(j,Standard_False)<<"]\n";
@@ -724,9 +724,9 @@ void Interface_Check::Print(const Handle(Message_Messenger)& S, const Standard_I
 //    if (nb > 0) S<<" -->   Infos    : "<<nb<<std::endl;
     for (j = 1; j <= nb; j ++) {
       if (final >= 0) 
-       S<<CInfoMsg(j,Standard_True)<<"\n";
+       S <<CInfoMsg(j,Standard_True)<<"\n";
       else
-       S<<CInfoMsg(j,Standard_False)<<"\n";
+       S <<CInfoMsg(j,Standard_False)<<"\n";
 //      if (final == 0)
 //     if (InfoMsg(j,Standard_True) != InfoMsg(j,Standard_False))
 //       S<<"[original:"<<CInfoMsg(j,Standard_False)<<"]\n";
@@ -744,5 +744,6 @@ void Interface_Check::Print(const Handle(Message_Messenger)& S, const Standard_I
 void Interface_Check::Trace(const Standard_Integer level,
                             const Standard_Integer final) const
 {
-  Print (Message::DefaultMessenger(), level, final);
+  Message_Messenger::StreamBuffer sout = Message::SendInfo(); // shouldn't it be changed to SendTrace()?
+  Print (sout, level, final);
 }
index 3abfb55be7bebb57534d73b7d16d36ad0e7484e7..6bfc927e7f7890134b337c65076c585ba341c1b4 100644 (file)
@@ -30,7 +30,6 @@ class Standard_Transient;
 class Standard_OutOfRange;
 class Message_Msg;
 class TCollection_HAsciiString;
-class Message_Messenger;
 
 // resolve name collisions with X11 headers
 #ifdef Status
@@ -238,7 +237,7 @@ public:
   //! <final> : if positive (D) prints final values of messages
   //! if negative, prints originals
   //! if null, prints both forms
-  Standard_EXPORT void Print (const Handle(Message_Messenger)& S, const Standard_Integer level, const Standard_Integer final = 1) const;
+  Standard_EXPORT void Print (Standard_OStream& S, const Standard_Integer level, const Standard_Integer final = 1) const;
   
   //! Prints the messages of the check to the default trace file
   //! By default, according to the default standard level
index 07d5fbd072c82f50a6827707a592888d811cb55e..645be1169c5a14cc5df96196f11f0ed1f88d48dc 100644 (file)
@@ -16,7 +16,6 @@
 #include <Interface_CheckIterator.hxx>
 #include <Interface_InterfaceModel.hxx>
 #include <Interface_IntVal.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_NoSuchObject.hxx>
 #include <Standard_Transient.hxx>
 #include <TCollection_HAsciiString.hxx>
@@ -501,7 +500,7 @@ Standard_Integer Interface_CheckIterator::Number () const
 //purpose  : 
 //=======================================================================
 
-void Interface_CheckIterator::Print(const Handle(Message_Messenger)& S,
+void Interface_CheckIterator::Print(Standard_OStream& S,
                                     const Standard_Boolean failsonly,
                                     const Standard_Integer final) const
 {
@@ -514,7 +513,7 @@ void Interface_CheckIterator::Print(const Handle(Message_Messenger)& S,
 //purpose  : 
 //=======================================================================
 
-void Interface_CheckIterator::Print(const Handle(Message_Messenger)& S,
+void Interface_CheckIterator::Print(Standard_OStream& S,
                                     const Handle(Interface_InterfaceModel)& model,
                                     const Standard_Boolean failsonly,
                                     const Standard_Integer /*final*/) const
@@ -540,22 +539,22 @@ void Interface_CheckIterator::Print(const Handle(Message_Messenger)& S,
 //  mesnum = mesnum0;
 //    if (yamod) mesnum = (nm0 > 0 ? mesnum1 : mesnum2);
 
-    if (!titre)        S<<" **  " << Name() << "  **"<<Message_EndLine;
+    if (!titre)        S <<" **  " << Name() << "  **"<<std::endl;
     titre = Standard_True;
-    S<<"Check:"; if(nb > 9 && i < 10) S<<" "; if (nb > 99 && i < 100) S<<" ";
-    S<<i;
-    if      (num <  0) S<<" -- Global Check"<<Message_EndLine;
-    else if (num == 0) S<<" -- Entity n0 ??:";
+    S <<"Check:"; if(nb > 9 && i < 10) S <<" "; if (nb > 99 && i < 100) S <<" ";
+    S <<i;
+    if      (num <  0) S <<" -- Global Check"<<std::endl;
+    else if (num == 0) S <<" -- Entity n0 ??:";
     else {
-      if (yamod) { S<<" -- Entity (n0:id) "; model->Print (ent,S); }
-      else       S<<" -- Entity n0 "<<num;
+      if (yamod) { S <<" -- Entity (n0:id) "; model->Print (ent, S); }
+      else       S <<" -- Entity n0 "<<num;
 //      S<<" -- Entity n0 "<<num<<mesnum;
 //      if (yamod) model->PrintLabel(ent,S);
     }
-    if      (num >= 0 &&  entnul) S<<" (unknown Type)"<<Message_EndLine;
+    if      (num >= 0 &&  entnul) S <<" (unknown Type)"<<std::endl;
     else if (num >= 0 && !entnul) {
-      if (yamod) S<<"   Type:"<<model->TypeName(ent)<<Message_EndLine;
-      else       S<<"   Type:"<<ent->DynamicType()->Name()<<Message_EndLine;
+      if (yamod) S <<"   Type:"<<model->TypeName(ent)<<std::endl;
+      else       S <<"   Type:"<<ent->DynamicType()->Name()<<std::endl;
     }
 
     nbch ++;
index 710ab3af17f4f4d34cdba5eee440efb54b950f63..35b1cc1b0f2b81160c280ba149c0ae047890cbfe 100644 (file)
@@ -34,7 +34,6 @@ class Interface_IntVal;
 class Standard_NoSuchObject;
 class Interface_Check;
 class Standard_Transient;
-class Message_Messenger;
 
 // resolve name collisions with X11 headers
 #ifdef Status
@@ -181,12 +180,12 @@ public:
   //! If <final> > 0, prints only final messages
   //! It uses the recorded Model if it is defined
   //! Remark : Works apart from the iteration methods (no interference)
-  Standard_EXPORT void Print (const Handle(Message_Messenger)& S, const Standard_Boolean failsonly, const Standard_Integer final = 0) const;
+  Standard_EXPORT void Print (Standard_OStream& S, const Standard_Boolean failsonly, const Standard_Integer final = 0) const;
   
   //! Works as Print without a model, but for entities which have
   //! no attached number (Number not positive), tries to compute
   //! this Number from <model> and displays "original" or "computed"
-  Standard_EXPORT void Print (const Handle(Message_Messenger)& S, const Handle(Interface_InterfaceModel)& model, const Standard_Boolean failsonly, const Standard_Integer final = 0) const;
+  Standard_EXPORT void Print (Standard_OStream& S, const Handle(Interface_InterfaceModel)& model, const Standard_Boolean failsonly, const Standard_Integer final = 0) const;
   
   //! Clears data of iteration
   Standard_EXPORT void Destroy();
index 1a136dff11845172c297990ffb77e5f6952dc4e3..52f3c3e154ca9dd55ae006b32c76dfa50ff9745f 100644 (file)
@@ -26,7 +26,6 @@
 #include <Interface_Protocol.hxx>
 #include <Interface_ReportEntity.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_ErrorHandler.hxx>
 #include <Standard_Failure.hxx>
 #include <Standard_Transient.hxx>
@@ -155,18 +154,18 @@ void Interface_CheckTool::FillCheck(const Handle(Standard_Transient)& ent,
 //=======================================================================
 
 void Interface_CheckTool::Print(const Handle(Interface_Check)& ach,
-                                const Handle(Message_Messenger)& S) const 
+                                Standard_OStream& S) const 
 {
   Standard_Integer i, nb;
   nb = ach->NbFails();
   if (nb > 0) S << " Fail Messages : " << nb << " :\n";
   for (i = 1; i <= nb; i ++) {
-    S << ach->Fail(i) << "\n";
+    S << ach->Fail(i)->String() << "\n";
   }
   nb = ach->NbWarnings();
   if (nb > 0) S << " Warning Messages : " << nb << " :\n";
   for (i = 1; i <= nb; i ++) {
-    S << ach->Warning(i) << "\n";
+    S << ach->Warning(i)->String() << "\n";
   }
 }
 
@@ -177,7 +176,7 @@ void Interface_CheckTool::Print(const Handle(Interface_Check)& ach,
 //=======================================================================
 
 void Interface_CheckTool::Print(const Interface_CheckIterator& list,
-                                const Handle(Message_Messenger)& S) const 
+                                Standard_OStream& S) const 
 {
   Handle(Interface_InterfaceModel) model = theshare.Model();
   list.Print(S,model,Standard_False);
index 663f628f08c78725ce2547846a83f91900507be2..f4ac23bedc2d847ccb497a63e52a959dd8481dcb 100644 (file)
@@ -33,7 +33,6 @@ class Interface_HGraph;
 class Standard_Transient;
 class Interface_ShareTool;
 class Interface_Check;
-class Message_Messenger;
 class Interface_CheckIterator;
 class Interface_EntityIterator;
 
@@ -71,12 +70,12 @@ public:
   Standard_EXPORT void FillCheck (const Handle(Standard_Transient)& ent, const Interface_ShareTool& sh, Handle(Interface_Check)& ach);
   
   //! Utility method which Prints the content of a Check
-  Standard_EXPORT void Print (const Handle(Interface_Check)& ach, const Handle(Message_Messenger)& S) const;
+  Standard_EXPORT void Print (const Handle(Interface_Check)& ach, Standard_OStream& S) const;
   
   //! Simply Lists all the Checks and the Content (messages) and the
   //! Entity, if there is, of each Check
   //! (if all Checks are OK, nothing is Printed)
-  Standard_EXPORT void Print (const Interface_CheckIterator& list, const Handle(Message_Messenger)& S) const;
+  Standard_EXPORT void Print (const Interface_CheckIterator& list, Standard_OStream& S) const;
   
   //! Returns the Check associated to an Entity identified by
   //! its Number in a Model.
index bec27975c4f16d82cb16c6037e9dd518f5289973..1351fd6fb6761ca41a39be73c263c7ec19a42db2 100644 (file)
@@ -575,7 +575,10 @@ Handle(Standard_Transient) Interface_FileReaderTool::LoadedEntity
     thereports->SetValue(irep,rep);
 
     if ( thetrace >= 2 && !Messenger().IsNull())
-      ach->Print (Messenger(),2);
+    {
+      Message_Messenger::StreamBuffer sout = Messenger()->SendInfo();
+      ach->Print (sout,2);
+    }
   }
   
 //    Rechargement ? si oui, dans une UnknownEntity fournie par le protocole
index edfc3c23e883dd52b1bdea60851869ef2c598bca..968ba241e8baec196ec7774b27dae814bcee7651 100644 (file)
@@ -27,7 +27,6 @@
 #include <Interface_Protocol.hxx>
 #include <Interface_ReportEntity.hxx>
 #include <Interface_SignType.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_NoSuchObject.hxx>
 #include <Standard_OutOfRange.hxx>
 #include <Standard_Transient.hxx>
@@ -916,18 +915,18 @@ void Interface_InterfaceModel::VerifyCheck (Handle(Interface_Check)& /*ach*/) co
 //=======================================================================
 
 void Interface_InterfaceModel::Print(const Handle(Standard_Transient)& ent,
-                                     const Handle(Message_Messenger)& S,
+                                     Standard_OStream& S,
                                      const Standard_Integer mode) const
 { 
-  if (ent.IsNull())  {  S<<"NULL";  return;  }
+  if (ent.IsNull())  {  S << "NULL" ;  return;  }
   Standard_Integer num = Number(ent);
-  if (mode <= 0) S<<num;
-  if (mode == 0) S<<":";
+  if (mode <= 0) S <<num;
+  if (mode == 0) S <<":";
   if (mode >= 0) {
     if (num > 0) 
       PrintToLog(ent,S);
 //      PrintLabel (ent,S);
-    else S<<"??";
+    else S <<"??";
   }
 }
 
@@ -938,7 +937,7 @@ void Interface_InterfaceModel::Print(const Handle(Standard_Transient)& ent,
 //=======================================================================
 
 void Interface_InterfaceModel::PrintToLog(const Handle(Standard_Transient)& ent,
-                                          const Handle(Message_Messenger)& S) const
+                                          Standard_OStream& S) const
 {
   PrintLabel (ent,S);
 }
index e290857698b7b022e62bf705b763f5725bc2dad9..9d6be7089707ba98323ea1ac1d7117da6a7145c0 100644 (file)
@@ -40,7 +40,6 @@ class Interface_ReportEntity;
 class Interface_CheckIterator;
 class Interface_GeneralLib;
 class Interface_EntityIterator;
-class Message_Messenger;
 
 
 class Interface_InterfaceModel;
@@ -345,7 +344,7 @@ public:
   //! Dumps Header in a short, easy to read, form, onto a Stream
   //! <level> allows to print more or less parts of the header,
   //! if necessary. 0 for basic print
-  Standard_EXPORT virtual void DumpHeader (const Handle(Message_Messenger)& S, const Standard_Integer level = 0) const = 0;
+  Standard_EXPORT virtual void DumpHeader (Standard_OStream& S, const Standard_Integer level = 0) const = 0;
   
   //! Prints identification of a given entity in <me>, in order to
   //! be printed in a list or phrase
@@ -354,17 +353,17 @@ public:
   //! <mode> = 0 (D) : prints its number plus '/' plus PrintLabel
   //! If <ent> == <me>, simply prints "Global"
   //! If <ent> is unknown, prints "??/its type"
-  Standard_EXPORT void Print (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& s, const Standard_Integer mode = 0) const;
+  Standard_EXPORT void Print (const Handle(Standard_Transient)& ent, Standard_OStream& s, const Standard_Integer mode = 0) const;
   
   //! Prints label specific to each norm, for a given entity.
   //! Must only print label itself, in order to be included in a
   //! phrase. Can call the result of StringLabel, but not obliged.
-  Standard_EXPORT virtual void PrintLabel (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S) const = 0;
+  Standard_EXPORT virtual void PrintLabel (const Handle(Standard_Transient)& ent, Standard_OStream& S) const = 0;
   
   //! Prints label specific to each norm in log format, for
   //! a given entity.
   //! By default, just calls PrintLabel, can be redefined
-  Standard_EXPORT virtual void PrintToLog (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S) const;
+  Standard_EXPORT virtual void PrintToLog (const Handle(Standard_Transient)& ent, Standard_OStream& S) const;
   
   //! Returns a string with the label attached to a given entity.
   //! Warning : While this string may be edited on the spot, if it is a read
index e370f81e86f2ce0db4df57e842536c5bef37079b..018c5460b745944cfc84dd4f4b1a720ee4521566 100644 (file)
@@ -203,13 +203,13 @@ Interface_ShareTool::Interface_ShareTool (const Handle(Interface_HGraph)& ahgrap
   return list;
 }
 
-    void  Interface_ShareTool::Print
-  (const Interface_EntityIterator& iter, const Handle(Message_Messenger)& S) const
+void  Interface_ShareTool::Print (const Interface_EntityIterator& iter, Standard_OStream& S) const
 {
   S << " Nb.Entities : " << iter.NbEntities() << " : ";
   for (iter.Start(); iter.More(); iter.Next()) {
     Handle(Standard_Transient) ent = iter.Value();
-    S << " n0/id:"; Model()->Print(ent,S);
+    S << " n0/id:"; 
+    Model()->Print (ent, S);
   }
-  S<<Message_EndLine;
+  S <<std::endl;
 }
index 957f5cc945820755409b026aba7234752c48fde3..9b7f3c0a87ae254b0c0ce64a6cc0496144df46fb 100644 (file)
 #ifndef _Interface_ShareTool_HeaderFile
 #define _Interface_ShareTool_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_DefineAlloc.hxx>
-#include <Standard_Handle.hxx>
-
-#include <Standard_Boolean.hxx>
-#include <Standard_Integer.hxx>
 #include <Standard_Type.hxx>
+
 class Interface_HGraph;
 class Standard_DomainError;
 class Interface_InterfaceError;
@@ -33,9 +28,6 @@ class Interface_GTool;
 class Interface_Protocol;
 class Interface_Graph;
 class Interface_EntityIterator;
-class Standard_Transient;
-class Message_Messenger;
-
 
 //! Builds the Graph of Dependancies, from the General Service
 //! "Shared" -> builds for each Entity of a Model, the Shared and
@@ -113,7 +105,7 @@ public:
   
   //! Utility method which Prints the content of an iterator
   //! (by their Numbers)
-  Standard_EXPORT void Print (const Interface_EntityIterator& iter, const Handle(Message_Messenger)& S) const;
+  Standard_EXPORT void Print (const Interface_EntityIterator& iter,Standard_OStream& S) const;
 
 
 
index bc9dd50117ac02982bb1d6f56a5ce92e6ba4a039..6cd62e109383bf34e6086c25fcb9167a7625a92d 100644 (file)
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
+#include <Interface_Static.hxx>
 
 #include <Interface_InterfaceError.hxx>
-#include <Interface_Static.hxx>
-#include <Message_Messenger.hxx>
 #include <OSD_Path.hxx>
 #include <Standard_Transient.hxx>
 #include <Standard_Type.hxx>
@@ -84,15 +83,15 @@ static char defmess[31];
 
 //  ##   Print   ##
 
-void  Interface_Static::PrintStatic (const Handle(Message_Messenger)& S) const
+void  Interface_Static::PrintStatic (Standard_OStream& S) const
 {
-  S<<"--- Static Value : "<<Name()<<"  Family:"<<Family();
+  S <<"--- Static Value : "<<Name()<<"  Family:"<<Family();
   Print (S);
   if (!thewild.IsNull())
-    S<<" -- Attached to wild-card : "<<thewild->Name()<<Message_EndLine;
-  S<<"--- Actual status : "<<(theupdate ? "" : "original")<<"  Value : ";
+    S <<" -- Attached to wild-card : "<<thewild->Name()<<std::endl;
+  S <<"--- Actual status : "<<(theupdate ? "" : "original")<<"  Value : ";
 
-  if (thesatisf) S<<" -- Specific Function for Satisfies : "<<thesatisn.ToCString()<<Message_EndLine;
+  if (thesatisf) S <<" -- Specific Function for Satisfies : "<<thesatisn.ToCString()<<std::endl;
 }
 
 
index 15f1f0403b3a2011ad23396321a249271b5b58eb..f30e4f39a19ad6c56b27990f7db64f1af487b66f 100644 (file)
@@ -35,8 +35,6 @@
 class TCollection_HAsciiString;
 class Standard_Transient;
 class Interface_InterfaceError;
-class Message_Messenger;
-
 
 class Interface_Static;
 DEFINE_STANDARD_HANDLE(Interface_Static, Interface_TypedValue)
@@ -95,7 +93,7 @@ public:
   //! - Current status (empty  string if it was updated or
   //! if it is the original one)
   //! - Value
-  Standard_EXPORT void PrintStatic (const Handle(Message_Messenger)& S) const;
+  Standard_EXPORT void PrintStatic (Standard_OStream& S) const;
   
   //! Returns the family. It can be : a resource name for applis,
   //! an internal name between : $e (environment variables),
index 2213edb7126c52207780738b98fdbbbb663372e4..fbed890b6705ef9cf12a3943b5c61f1360199590 100644 (file)
@@ -74,7 +74,10 @@ public:
       myStream.flush();
       if (doForce || myStream.rdbuf()->in_avail() > 0)
       {
-        myMessenger->Send (myStream.str().c_str(), myGravity);
+        if (myMessenger)
+        {
+          myMessenger->Send(myStream.str().c_str(), myGravity);
+        }
         myStream.str(std::string()); // empty the buffer for possible reuse
       }
     }
@@ -113,6 +116,12 @@ public:
     //! Access to the stream object
     Standard_SStream& Stream () { return myStream; }
 
+    //! Cast to OStream&
+    operator Standard_OStream& () { return myStream; }
+
+    //! Access to the messenger
+    Message_Messenger* Messenger () { return myMessenger; }
+
   private:
     friend class Message_Messenger;
 
@@ -221,85 +230,4 @@ private:
 
 };
 
-// CString
-inline const Handle(Message_Messenger)& operator<< (const Handle(Message_Messenger)& theMessenger,
-                                                    const Standard_CString theStr)
-{
-  theMessenger->Send (theStr, Message_Info, Standard_False);
-  return theMessenger;
-}
-
-// AsciiString
-inline const Handle(Message_Messenger)& operator<< (const Handle(Message_Messenger)& theMessenger,
-                                                    const TCollection_AsciiString& theStr)
-{
-  theMessenger->Send (theStr, Message_Info, Standard_False);
-  return theMessenger;
-}
-
-// HAsciiString
-inline const Handle(Message_Messenger)& operator<< (const Handle(Message_Messenger)& theMessenger,
-                                                    const Handle(TCollection_HAsciiString)& theStr)
-{
-  theMessenger->Send (theStr->String(), Message_Info, Standard_False);
-  return theMessenger;
-}
-
-// ExtendedString
-inline const Handle(Message_Messenger)& operator<< (const Handle(Message_Messenger)& theMessenger,
-                                                    const TCollection_ExtendedString& theStr)
-{
-  theMessenger->Send (theStr, Message_Info, Standard_False);
-  return theMessenger;
-}
-
-// HExtendedString
-inline const Handle(Message_Messenger)& operator<< (const Handle(Message_Messenger)& theMessenger,
-                                                    const Handle(TCollection_HExtendedString)& theStr)
-{
-  theMessenger->Send (theStr->String(), Message_Info, Standard_False);
-  return theMessenger;
-}
-
-// Integer
-inline const Handle(Message_Messenger)& operator<< (const Handle(Message_Messenger)& theMessenger,
-                                                    const Standard_Integer theVal)
-{
-  TCollection_AsciiString aStr (theVal);
-  theMessenger->Send (aStr, Message_Info, Standard_False);
-  return theMessenger;
-}
-
-// Real
-inline const Handle(Message_Messenger)& operator<< (const Handle(Message_Messenger)& theMessenger,
-                                                    const Standard_Real theVal)
-{
-  TCollection_AsciiString aStr (theVal);
-  theMessenger->Send (aStr, Message_Info, Standard_False);
-  return theMessenger;
-}
-
-// Stream
-inline const Handle(Message_Messenger)& operator<< (const Handle(Message_Messenger)& theMessenger,
-                                                    const Standard_SStream& theStream)
-{
-  theMessenger->Send (theStream.str().c_str(), Message_Info, Standard_False);
-  return theMessenger;
-}
-
-// manipulators
-inline const Handle(Message_Messenger)&
-       operator << (const Handle(Message_Messenger)& theMessenger,
-                    const Handle(Message_Messenger)& (*pman) (const Handle(Message_Messenger)&))
-{
-  return pman (theMessenger);
-}
-
-// Message_EndLine
-inline const Handle(Message_Messenger)& Message_EndLine (const Handle(Message_Messenger)& theMessenger)
-{
-  theMessenger->Send ("", Message_Info, Standard_True);
-  return theMessenger;
-}
-
 #endif // _Message_Messenger_HeaderFile
index d964b768aaebb399fafc1cf923d4c431af14e479..84d691502c178c9afdb9b0316f4af43845a5d400 100644 (file)
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
+#include <MoniTool_TypedValue.hxx>
 
-#include <Message_Messenger.hxx>
 #include <MoniTool_Element.hxx>
-#include <MoniTool_TypedValue.hxx>
 #include <OSD_Path.hxx>
 #include <Standard_ConstructionError.hxx>
 #include <Standard_Transient.hxx>
@@ -228,37 +227,37 @@ static Standard_Boolean StaticPath(const Handle(TCollection_HAsciiString)& val)
 
 //  ##   Print   ##
 
-    void  MoniTool_TypedValue::Print (const Handle(Message_Messenger)& S) const
+    void  MoniTool_TypedValue::Print (Standard_OStream& S) const
 {
-  S<<"--- Typed Value : "<<Name();
-  if (thelabel.Length() > 0) S<<"  Label : "<<Label();
-  S<<Message_EndLine<<"--- Type : "<<Definition()<<Message_EndLine<<"--- Value : ";
+  S <<"--- Typed Value : "<<Name();
+  if (thelabel.Length() > 0) S <<"  Label : "<<Label();
+  S <<std::endl<<"--- Type : "<<Definition()<<std::endl<<"--- Value : ";
 
   PrintValue (S);
-  S<<Message_EndLine;
+  S <<std::endl;
 
-  if (thesatisf) S<<" -- Specific Function for Satisfies : "<<thesatisn.ToCString()<<Message_EndLine;
+  if (thesatisf) S <<" -- Specific Function for Satisfies : "<<thesatisn.ToCString()<<std::endl;
 }
 
 
-    void  MoniTool_TypedValue::PrintValue (const Handle(Message_Messenger)& S) const
+    void  MoniTool_TypedValue::PrintValue (Standard_OStream& S) const
 {
   if (IsSetValue()) {
     if (thetype == MoniTool_ValueIdent)
-      S<<" (type) "<<theoval->DynamicType()->Name();
+      S <<" (type) "<<theoval->DynamicType()->Name();
     if (!thehval.IsNull())
-      S<<(thetype == MoniTool_ValueIdent ? " : " : "")<<thehval->ToCString();
+      S <<(thetype == MoniTool_ValueIdent ? " : " : "")<<thehval->ToCString();
 
     if (HasInterpret()) {
-      S<<"  (";
+      S <<"  (";
       Handle(TCollection_HAsciiString) str = Interpret (thehval,Standard_True);
-      if (!str.IsNull() && str != thehval) S<<"Native:"<<str->ToCString();
+      if (!str.IsNull() && str != thehval) S <<"Native:"<<str->ToCString();
       str = Interpret (thehval,Standard_False);
-      if (!str.IsNull() && str != thehval) S<<"  Coded:"<<str->ToCString();
-      S<<")";
+      if (!str.IsNull() && str != thehval) S <<"  Coded:"<<str->ToCString();
+      S <<")";
     }
   }
-  else S<<"(not set)";
+  else S <<"(not set)";
 }
 
 
index 999c249ffd428319a669a488141af9858f203741..efbfd05fa294b79d3121cea20d95f3eb04600ca7 100644 (file)
@@ -37,8 +37,6 @@ class TCollection_HAsciiString;
 class Standard_Transient;
 class Standard_ConstructionError;
 class TCollection_AsciiString;
-class Message_Messenger;
-
 
 class MoniTool_TypedValue;
 DEFINE_STANDARD_HANDLE(MoniTool_TypedValue, Standard_Transient)
@@ -93,10 +91,10 @@ public:
   Standard_EXPORT void SetDefinition (const Standard_CString deftext);
   
   //! Prints definition, specification, and actual status and value
-  Standard_EXPORT virtual void Print (const Handle(Message_Messenger)& S) const;
+  Standard_EXPORT virtual void Print (Standard_OStream& S) const;
   
   //! Prints only the Value
-  Standard_EXPORT void PrintValue (const Handle(Message_Messenger)& S) const;
+  Standard_EXPORT void PrintValue (Standard_OStream& S) const;
   
   //! Completes the definition of a TypedValue by command <initext>,
   //! once created with its type
index 2264585b7ec6c202a7f56e022732de2d95dc324c..9dba1aea02d4707dea75542dd9463ab7cffae866 100644 (file)
@@ -1620,7 +1620,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteLayers (const Handle(XSControl_Work
       Standard_Integer nb = 
        FindEntities ( FP, oneShape, Loc, seqRI );
       if ( nb <=0 ) 
-       FP->Messenger() << "Warning: Cannot find RI for " << oneShape.TShape()->DynamicType()->Name() << Message_EndLine;
+       FP->Messenger()->SendInfo() << "Warning: Cannot find RI for " << oneShape.TShape()->DynamicType()->Name() << std::endl;
     }
     if ( seqRI.Length() <= 0 ) continue;
 
@@ -1632,7 +1632,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteLayers (const Handle(XSControl_Work
     if (L.FindAttribute(XCAFDoc::InvisibleGUID(), aUAttr)) {
       descr = new TCollection_HAsciiString ("invisible");
 #ifdef OCCT_DEBUG
-      FP->Messenger() << "\tLayer \"" << hName->String().ToCString() << "\" is invisible"<<Message_EndLine;
+      std::cout << "\tLayer \"" << hName->String().ToCString() << "\" is invisible"<<std::endl;
 #endif
       isLinv = Standard_True;
     }
@@ -1916,7 +1916,7 @@ static Standard_Boolean createSHUOStyledItem (const XCAFPrs_Style& style,
   FindEntities ( FP, Sh, L, seqRI );
 #ifdef OCCT_DEBUG
   if ( seqRI.Length() <=0 ) 
-    FP->Messenger() << "Warning: Cannot find RI for " << Sh.TShape()->DynamicType()->Name() << Message_EndLine;
+    std::cout << "Warning: Cannot find RI for " << Sh.TShape()->DynamicType()->Name() << std::endl;
 #endif
   item = Handle(StepRepr_RepresentationItem)::DownCast(seqRI(1));
   //get overridden styled item
@@ -2345,7 +2345,7 @@ Handle(StepRepr_ShapeAspect) STEPCAFControl_Writer::WriteShapeAspect (const Hand
   TColStd_SequenceOfTransient aSeqRI;
   FindEntities( FP, theShape, aLoc, aSeqRI );
   if ( aSeqRI.Length() <= 0 ) {
-    FP->Messenger() << "Warning: Cannot find RI for "<<theShape.TShape()->DynamicType()->Name()<<Message_EndLine;
+    FP->Messenger()->SendInfo() << "Warning: Cannot find RI for "<<theShape.TShape()->DynamicType()->Name()<<std::endl;
     return NULL;
   }
 
@@ -2517,7 +2517,7 @@ Handle(StepDimTol_Datum) STEPCAFControl_Writer::WriteDatumAP242(const Handle(XSC
     aShape = XCAFDoc_ShapeTool::GetShape(theShapeL.Value(i));
     FindEntities(FP, aShape, aLoc, aSeqRI);
     if (aSeqRI.Length() <= 0) {
-      FP->Messenger() << "Warning: Cannot find RI for " << aShape.TShape()->DynamicType()->Name() << Message_EndLine;
+      FP->Messenger()->SendInfo() << "Warning: Cannot find RI for " << aShape.TShape()->DynamicType()->Name() << std::endl;
       continue;
     }
     anEnt = aSeqRI.Value(1);
@@ -3429,7 +3429,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteDGTs (const Handle(XSControl_WorkSe
     TColStd_SequenceOfTransient seqRI;
     FindEntities( FP, aShape, Loc, seqRI );
     if ( seqRI.Length() <= 0 ) {
-      FP->Messenger() << "Warning: Cannot find RI for "<<aShape.TShape()->DynamicType()->Name()<<Message_EndLine;
+      FP->Messenger()->SendInfo() << "Warning: Cannot find RI for "<<aShape.TShape()->DynamicType()->Name()<<std::endl;
       continue;
     }
     Handle(StepRepr_ProductDefinitionShape) PDS;
@@ -3511,7 +3511,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteDGTs (const Handle(XSControl_WorkSe
     TColStd_SequenceOfTransient seqRI;
     FindEntities( FP, aShape, Loc, seqRI );
     if ( seqRI.Length() <= 0 ) {
-      FP->Messenger() << "Warning: Cannot find RI for "<<aShape.TShape()->DynamicType()->Name()<<Message_EndLine;
+      FP->Messenger()->SendInfo() << "Warning: Cannot find RI for "<<aShape.TShape()->DynamicType()->Name()<<std::endl;
       continue;
     }
     Handle(StepRepr_ProductDefinitionShape) PDS;
index 975efe28daca449a46d07af3122797302fde3234..2676a871e59ddb3f652dbd701ae5ebf3e71e9f8c 100644 (file)
@@ -530,10 +530,10 @@ Handle(StepBasic_ProductDefinition) STEPConstruct_ValidationProps::GetPropPD (co
     Handle(StepRepr_ShapeAspect) SA = CD.ShapeAspect();
     if ( SA.IsNull() ) {
 #ifdef OCCT_DEBUG
-      Handle(Message_Messenger) sout = Message::DefaultMessenger();
+      Message_Messenger::StreamBuffer sout = Message::SendInfo();
       sout << "Error: Cannot find target entity (SA) for geometric_validation_property "; 
-      Model()->PrintLabel ( PD, sout ); 
-      sout << Message_EndLine;
+      Model()->PrintLabel (PD, sout);
+      sout << std::endl;
 #endif
       return ProdDef;
     }
@@ -555,10 +555,10 @@ Handle(StepBasic_ProductDefinition) STEPConstruct_ValidationProps::GetPropPD (co
   }
 #ifdef OCCT_DEBUG
   if ( ProdDef.IsNull() ) {
-    Handle(Message_Messenger) sout = Message::DefaultMessenger();
+    Message_Messenger::StreamBuffer sout = Message::SendInfo();
     sout << "Error: Cannot find target entity (SDR) for geometric_validation_property "; 
-    Model()->PrintLabel ( PD, sout ); 
-    sout << Message_EndLine;
+    Model()->PrintLabel (PD, sout);
+    sout << std::endl;
   }
 #endif
   return ProdDef;
@@ -608,10 +608,10 @@ TopoDS_Shape STEPConstruct_ValidationProps::GetPropShape (const Handle(StepBasic
   //}
 #ifdef OCCT_DEBUG
   if ( S.IsNull() ) {
-    Handle(Message_Messenger) sout = Message::DefaultMessenger();
+    Message_Messenger::StreamBuffer sout = Message::SendInfo();
     sout << "Warning: Entity "; 
-    Model()->PrintLabel ( ProdDef, sout ); 
-    sout << " is not mapped to shape" << Message_EndLine;
+    Model()->PrintLabel (ProdDef, sout);
+    sout << " is not mapped to shape" << std::endl;
   }
 #endif
   return S;
index 78e4d05de08c0bed7b6de3c0679be5e34b8a004f..ca669964edbacea9b515dd7ab6845e99fe64a630 100644 (file)
@@ -470,7 +470,7 @@ static void getSDR(const Handle(StepRepr_ProductDefinitionShape)& PDS,
      const Handle(Transfer_TransientProcess)& TP,
      const Standard_Boolean theUseTrsf)
 {
-  Handle(Message_Messenger) sout = TP->Messenger();
+  Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
   Handle(TransferBRep_ShapeBinder) shbinder;
   
   TopoDS_Compound Cund;
@@ -547,7 +547,7 @@ static void getSDR(const Handle(StepRepr_ProductDefinitionShape)& PDS,
       
 #ifdef TRANSLOG
     if (TP->TraceLevel() > 1) 
-      sout<<" -- Actor : Ent.n0 "<<TP->Model()->Number(PD)<<" -> Shared Ent.no"<<TP->Model()->Number(NAUO)<<Message_EndLine;
+      sout<<" -- Actor : Ent.n0 "<<TP->Model()->Number(PD)<<" -> Shared Ent.no"<<TP->Model()->Number(NAUO)<<std::endl;
 #endif
     Handle(Transfer_Binder) binder;
     if (!TP->IsBound(NAUO)) binder = TransferEntity(NAUO,TP);
@@ -789,10 +789,10 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity(
   Standard_Integer nb = sr->NbItems();
   // Used in XSAlgo::AlgoContainer()->ProcessShape (ssv; 13.11.2010)
   Standard_Integer nbTPitems = TP->NbMapped();
-  Handle(Message_Messenger) sout = TP->Messenger();
+  Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
   #ifdef TRANSLOG
   if (TP->TraceLevel() > 2) 
-    sout<<" -- Actor : case  ShapeRepr. NbItems="<<nb<<Message_EndLine;
+    sout<<" -- Actor : case  ShapeRepr. NbItems="<<nb<<std::endl;
   #endif
   
     // Compute unit convertion factors and geometric Accuracy
@@ -842,7 +842,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity(
   //for (i = 1; i <= nb ; i ++) {
     #ifdef TRANSLOG
     if (TP->TraceLevel() > 2) 
-      sout<<" -- Actor, shape_representation.item n0. "<<i<<Message_EndLine;
+      sout<<" -- Actor, shape_representation.item n0. "<<i<<std::endl;
     #endif
     Handle(StepRepr_RepresentationItem) anitem = sr->ItemsValue(i);
     if(anitem.IsNull())
@@ -1232,7 +1232,7 @@ static Standard_Boolean IsNeedRepresentation(const Handle(StepRepr_ShapeAspect)&
 Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::OldWay(const Handle(Standard_Transient)& start,
                                                                const Handle(Transfer_TransientProcess)& TP)
 {
-  Handle(Message_Messenger) sout = TP->Messenger();
+  Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
   const Interface_Graph& graph = TP->Graph();
   Handle(TransferBRep_ShapeBinder) shbinder;
   DeclareAndCast(StepShape_ShapeDefinitionRepresentation,sdr,start);
@@ -1252,7 +1252,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::OldWay(const Handle(Stan
     
 #ifdef TRANSLOG
   if (TP->TraceLevel() > 2) 
-    sout<<" -- Actor : case  shape_definition_representation."<<Message_EndLine;
+    sout<<" -- Actor : case  shape_definition_representation."<<std::endl;
 #endif
   Handle(Transfer_Binder) binder = TP->Find(rep);
   if (binder.IsNull()) binder = TP->Transferring(rep);
@@ -1293,7 +1293,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::OldWay(const Handle(Stan
 //      if (anitem.IsNull()) continue;
 #ifdef TRANSLOG
     if (TP->TraceLevel() > 1) 
-      sout<<" -- Actor : Ent.n0 "<<TP->Model()->Number(start)<<" -> Shared Ent.no"<<TP->Model()->Number(anitem)<<Message_EndLine;
+      sout<<" -- Actor : Ent.n0 "<<TP->Model()->Number(start)<<" -> Shared Ent.no"<<TP->Model()->Number(anitem)<<std::endl;
 #endif
 
     if (!TP->IsBound(anitem)) binder = TP->Transferring(anitem);
@@ -1322,7 +1322,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity(const Han
                                                                        const Handle(Transfer_TransientProcess)& TP,
                                                                        const Standard_Boolean isManifold)
 {
-  Handle(Message_Messenger) sout = TP->Messenger();
+  Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
   Handle(TransferBRep_ShapeBinder) shbinder;
   Standard_Boolean found = Standard_False;
   StepToTopoDS_Builder myShapeBuilder;
@@ -1332,7 +1332,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity(const Han
   OSD_Timer chrono;
   if (TP->TraceLevel() > 2) 
     sout << "Begin transfer STEP -> CASCADE, Type "
-         << start->DynamicType()->Name() << Message_EndLine;
+         << start->DynamicType()->Name() << std::endl;
   chrono.Start();
 #endif
   
@@ -1413,7 +1413,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity(const Han
 #ifdef TRANSLOG
   chrono.Stop();
   if (TP->TraceLevel() > 2) 
-    sout<<"End transfer STEP -> CASCADE :" << (found ? "OK" : " : no result")<<Message_EndLine;
+    sout<<"End transfer STEP -> CASCADE :" << (found ? "OK" : " : no result")<<std::endl;
   if (TP->TraceLevel() > 2) 
     chrono.Show();
 #endif
@@ -1570,11 +1570,11 @@ Handle(Transfer_Binder) STEPControl_ActorRead::TransferShape(
   if (start.IsNull()) return NullResult();
   XSAlgo::AlgoContainer()->PrepareForTransfer();
 
-  Handle(Message_Messenger) sout = TP->Messenger();
+  Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
 #ifdef TRANSLOG
 //  POUR MISE AU POINT, a supprimer ensuite
   if (TP->TraceLevel() > 1) 
-    sout<<" -- Actor : Transfer Ent.n0 "<<TP->Model()->Number(start)<<"  Type "<<start->DynamicType()->Name()<<Message_EndLine;
+    sout<<" -- Actor : Transfer Ent.n0 "<<TP->Model()->Number(start)<<"  Type "<<start->DynamicType()->Name()<<std::endl;
 #endif
   
   Handle(TransferBRep_ShapeBinder) shbinder;
@@ -1731,7 +1731,7 @@ void STEPControl_ActorRead::PrepareUnits(const Handle(StepRepr_Representation)&
   // Assign uncertainty
 #ifdef TRANSLOG
   if (TP->TraceLevel() > 1) 
-    TP->Messenger() <<"  Cc1ToTopoDS : Length Unit = "<<myUnit.LengthFactor()<<"  Tolerance CASCADE = "<<myPrecision<<Message_EndLine;
+    TP->Messenger()->SendInfo() <<"  Cc1ToTopoDS : Length Unit = "<<myUnit.LengthFactor()<<"  Tolerance CASCADE = "<<myPrecision<<std::endl;
 #endif
 }
 
index 22f65accf553956cc6e5099098743a2bfc476b5a..d7a9cabe4a3b951c5de1b74f5b074010dbcd4f40 100644 (file)
@@ -45,7 +45,7 @@ StepData_StepWriter&  StepData_StepDumper::StepWriter ()
 
 
 Standard_Boolean  StepData_StepDumper::Dump
-  (const Handle(Message_Messenger)& S, const Handle(Standard_Transient)& ent,
+  (Standard_OStream& S, const Handle(Standard_Transient)& ent,
    const Standard_Integer level)
 {
   Standard_Integer i, nb = themodel->NbEntities();
@@ -64,18 +64,18 @@ Standard_Boolean  StepData_StepDumper::Dump
        TColStd_SequenceOfAsciiString listypes;
        if (!module->ComplexType(CN,listypes))
          S << "(Complex Type : ask level > 0) cdl = "
-           << ent->DynamicType()->Name() << " (...);" << Message_EndLine;
+           << ent->DynamicType()->Name() << " (...);" << std::endl;
        else {
          Standard_Integer n = listypes.Length();
          for (i = 1; i <= n; i ++) S << listypes.Value(i) << " (...)";
-         S << Message_EndLine;
+         S << std::endl;
        }
       }
-      else S << module->StepType(CN)  << " (...);" << Message_EndLine;
+      else S << module->StepType(CN)  << " (...);" << std::endl;
     }
     else S << "(Unrecognized Type for protocol) cdl = "
-        << ent->DynamicType()->Name() << " (...);" << Message_EndLine;
-    if (nlab > 0) S << "/*   Ident in file for "<<num<<" : #"<<nlab<<"   */"<<Message_EndLine;
+        << ent->DynamicType()->Name() << " (...);" << std::endl;
+    if (nlab > 0) S << "/*   Ident in file for "<<num<<" : #"<<nlab<<"   */"<<std::endl;
   }
 
   else if (level == 1) {
@@ -98,7 +98,7 @@ Standard_Boolean  StepData_StepDumper::Dump
   }
   else {
     Handle(Standard_Transient) anent;
-//    S << " --  Dumping Entity n0 " << num << "  --" << std::endl;
+//    S<< " --  Dumping Entity n0 " << num << "  --" << std::endl;
 //  ...  Envoi  ...
     TColStd_Array1OfInteger tab(0,nb); tab.Init(0);
     tab.SetValue(num,1);
@@ -141,31 +141,31 @@ Standard_Boolean  StepData_StepDumper::Dump
     else if (nlab >  0) nbi ++;
   }
   if (nbe > 0) {
-//    S <<" --   Displayed nums:"<<nbe<<"  with ident=num:"<<nbq<<" , distinct proper ident:"<<nbi<<"\n";
+//    S<<" --   Displayed nums:"<<nbe<<"  with ident=num:"<<nbq<<" , distinct proper ident:"<<nbi<<"\n";
     if (nbu > 0) {
-      S<<" (no ident): ";
+      S <<" (no ident): ";
       for (i = 1; i <= nb; i ++)
-       {  if (ids.Value(i) >=  0) continue;    S<<" #"<<i;      }
-      S<<Message_EndLine;
+       {  if (ids.Value(i) >=  0) continue;    S <<" #"<<i;      }
+      S <<std::endl;
     }
     if (nbq > 0) {
-      S<<" (ident = num): ";
-      for (i = 1; i <= nb; i ++)  {  if (ids.Value(i) == i) S<<" #"<<i;  }
-      S<<Message_EndLine;
+      S <<" (ident = num): ";
+      for (i = 1; i <= nb; i ++)  {  if (ids.Value(i) == i) S <<" #"<<i;  }
+      S <<std::endl;
     }
     if (nbi < 0) {  // on n affiche plus num:#id , on envoie un petit help
       Standard_Integer nbl = 0, nbr = 0, nbr0 = 0, nbc = 0;
       char unid[30];
-//      S<<" (proper ident):  #num          #ident"<<std::endl;
-      S<<" (proper ident):  num:#ident  num:#ident  ..."<<Message_EndLine;
+//      S <<" (proper ident):  #num         #ident"<<std::endl;
+      S <<" (proper ident):  num:#ident  num:#ident  ..."<<std::endl;
       for (i = 1; i <= nb; i ++)  {
        if (ids.Value(i) <= 0 || ids.Value(i) == i) continue;
        sprintf (unid,"%d:#%d",i,ids.Value(i));
        nbc = (Standard_Integer) strlen (unid);  nbr = ((80-nbc) %4) +2;
        nbl +=  nbc;
-       if (nbl+nbr0 > 79) { nbl  = nbc;  S<<Message_EndLine; }
+       if (nbl+nbr0 > 79) { nbl  = nbc;  S <<std::endl; }
        else               { nbl += nbr0; for (; nbr0 > 0; nbr0 --) S << " "; }
-       S<<unid;
+       S <<unid;
        nbr0 = nbr;
 
 //     if (nbl+nbc > 79) { S<<std::endl<<unid; nbl  = 0; }
@@ -175,23 +175,21 @@ Standard_Boolean  StepData_StepDumper::Dump
 //     S<<"  "<<i<<" ->#"<<ids.Value(i);
 //     nbl ++; if (nbl > 5) {  nbl = nbr = 0;  S<<std::endl;  }
       }
-      if (nbl > 0) S<<Message_EndLine;
+      if (nbl > 0) S <<std::endl;
     }
-    if (nbi > 0) S<<"In dump, iii:#jjj means : entity rank iii has step ident #jjj"<<Message_EndLine;
-//    S <<" --   Dumping data, entity "<<num<<"  level "<<level<<" :"<<std::endl;
+    if (nbi > 0) S <<"In dump, iii:#jjj means : entity rank iii has step ident #jjj"<<std::endl;
+//    S<<" --   Dumping data, entity "<<num<<"  level "<<level<<" :"<<std::endl;
   }
   if (level > 0) 
   {
-    Standard_SStream aStream;
-    thewriter.Print(aStream);
-    S << aStream;
+    thewriter.Print (S);
   }
   return Standard_True;
 }
 
 
 Standard_Boolean  StepData_StepDumper::Dump
-  (const Handle(Message_Messenger)& S, const Standard_Integer num,
+  (Standard_OStream& S, const Standard_Integer num,
    const Standard_Integer level)
 {
   if (num <= 0 || num > themodel->NbEntities()) return Standard_False;
index 963e7920689bf6d70584438f62129e9115bad06d..646b6ee256c3400348c68790c44a40b33e18640c 100644 (file)
@@ -30,9 +30,6 @@ class StepData_StepModel;
 class Interface_InterfaceMismatch;
 class StepData_Protocol;
 class StepData_StepWriter;
-class Message_Messenger;
-class Standard_Transient;
-
 
 //! Provides a way to dump entities processed through STEP, with
 //! these features :
@@ -79,12 +76,12 @@ public:
   //!
   //! For levels 1,2,3, the numbers displayed (form #nnn) are the
   //! numbers of the corresponding entities in the Model
-  Standard_EXPORT Standard_Boolean Dump (const Handle(Message_Messenger)& S, const Handle(Standard_Transient)& ent, const Standard_Integer level);
+  Standard_EXPORT Standard_Boolean Dump (Standard_OStream& S, const Handle(Standard_Transient)& ent, const Standard_Integer level);
   
   //! Works as Dump with a Transient, but directly takes the
   //! entity designated by its number in the Model
   //! Returns False, also if <num> is out of range
-  Standard_EXPORT Standard_Boolean Dump (const Handle(Message_Messenger)& S, const Standard_Integer num, const Standard_Integer level);
+  Standard_EXPORT Standard_Boolean Dump (Standard_OStream& S, const Standard_Integer num, const Standard_Integer level);
 
 
 
index 69de9afc1f366a9cb423db02fdbb6b43b91c2c65..c68965372e3d226b69ab4c192c9b1ef0dd3a7b06 100644 (file)
@@ -20,7 +20,6 @@
 #include <Interface_InterfaceModel.hxx>
 #include <Interface_Macros.hxx>
 #include <Interface_ShareTool.hxx>
-#include <Message_Messenger.hxx>
 #include <Standard_NoSuchObject.hxx>
 #include <Standard_Transient.hxx>
 #include <Standard_Type.hxx>
@@ -103,14 +102,13 @@ void StepData_StepModel::VerifyCheck(Handle(Interface_Check)& ach) const
 }
 
 
-void StepData_StepModel::DumpHeader
-(const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
+void StepData_StepModel::DumpHeader (Standard_OStream& S, const Standard_Integer /*level*/) const
 {
   //  NB : level n est pas utilise
 
   Handle(StepData_Protocol) stepro = StepData::HeaderProtocol();
   Standard_Boolean iapro = !stepro.IsNull();
-  if (!iapro) S<<" -- WARNING : StepModel DumpHeader, Protocol not defined\n";
+  if (!iapro) S <<" -- WARNING : StepModel DumpHeader, Protocol not defined\n";
 
   Interface_EntityIterator iter = Header();
   Standard_Integer nb = iter.NbEntities();
@@ -119,16 +117,14 @@ void StepData_StepModel::DumpHeader
     S << "  "  << iter.Value()->DynamicType()->Name() << "\n";
   }
   if (!iapro || nb == 0) return;
-  S << " --  --        STEP MODEL    HEADER  CONTENT      --  --" << Message_EndLine;
+  S << " --  --        STEP MODEL    HEADER  CONTENT      --  --" << "\n";
   S << " --   Dumped with Protocol : " << stepro->DynamicType()->Name()
-    << "   --"<<Message_EndLine;
+    << "   --\n";
 
-  Standard_SStream aSStream;
   Handle(StepData_StepModel) me (this);
   StepData_StepWriter SW(me);
   SW.SendModel(stepro,Standard_True);    // envoi HEADER seul
-  SW.Print(aSStream);
-  S << aSStream.str().c_str();
+  SW.Print(S);
 }
 
 
@@ -171,13 +167,13 @@ Standard_Integer  StepData_StepModel::IdentLabel
  }
 
 void  StepData_StepModel::PrintLabel
-(const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S) const
+(const Handle(Standard_Transient)& ent, Standard_OStream& S) const
 {
   Standard_Integer num = (theidnums.IsNull() ? 0 : Number(ent));
   Standard_Integer  nid = (!num ? 0 : theidnums->Value(num));
-  if      (nid > 0) S<<"#"<<nid;
-  else if (num > 0) S<<"(#"<<num<<")";
-  else              S<<"(#0..)";
+  if      (nid > 0) S <<"#"<<nid;
+  else if (num > 0) S <<"(#"<<num<<")";
+  else              S <<"(#0..)";
 }
 
 Handle(TCollection_HAsciiString) StepData_StepModel::StringLabel
index 3a54fa7b90ef3faede9982ca20560ec24d84c409..db70abdc349057a0442b6db033102cc9e3ff4326 100644 (file)
 #ifndef _StepData_StepModel_HeaderFile
 #define _StepData_StepModel_HeaderFile
 
-#include <Standard.hxx>
-#include <Standard_Type.hxx>
-
 #include <Interface_EntityList.hxx>
 #include <TColStd_HArray1OfInteger.hxx>
 #include <Interface_InterfaceModel.hxx>
-#include <Standard_Integer.hxx>
-#include <Standard_Boolean.hxx>
-#include <Standard_Type.hxx>
+
 class Standard_NoSuchObject;
 class Standard_Transient;
 class Interface_InterfaceModel;
 class Interface_EntityIterator;
 class Interface_Check;
-class Message_Messenger;
 class TCollection_HAsciiString;
 
-
 class StepData_StepModel;
 DEFINE_STANDARD_HANDLE(StepData_StepModel, Interface_InterfaceModel)
 
@@ -83,7 +76,7 @@ public:
   //! prints its Type. Else sends the Header under the form of
   //! HEADER Section of an Ascii Step File
   //! <level> is not used because Header is not so big
-  Standard_EXPORT void DumpHeader (const Handle(Message_Messenger)& S, const Standard_Integer level = 0) const Standard_OVERRIDE;
+  Standard_EXPORT void DumpHeader (Standard_OStream& S, const Standard_Integer level = 0) const Standard_OVERRIDE;
   
   //! erases specific labels, i.e. clears the map (entity-ident)
   Standard_EXPORT void ClearLabels() Standard_OVERRIDE;
@@ -98,7 +91,7 @@ public:
   //! Prints label specific to STEP norm for a given entity, i.e.
   //! if a LabelIdent has been recorded, its value with '#', else
   //! the number in the model with '#' and between ()
-  Standard_EXPORT void PrintLabel (const Handle(Standard_Transient)& ent, const Handle(Message_Messenger)& S) const Standard_OVERRIDE;
+  Standard_EXPORT void PrintLabel (const Handle(Standard_Transient)& ent, Standard_OStream& S) const Standard_OVERRIDE;
   
   //! Returns a string with the label attached to a given entity,
   //! same form as for PrintLabel
index 69bcda5903547fe11f8d2ad543c57bebbfdb6398..56018e249aa3f214caf20ff15b232f0568d25fd3 100644 (file)
@@ -187,11 +187,11 @@ void StepData_StepReaderData::SetRecord(const Standard_Integer num,
             while (theidents(prev) <= 0) {
               prev--;  if (prev <= 0) break;
             }
-            Handle(Message_Messenger) sout = Message::DefaultMessenger();
+            Message_Messenger::StreamBuffer sout = Message::SendInfo();
             sout << "  ***  Error on Record " << num << " (on " << NbRecords()
               << " -> " << num * 100 / NbRecords() << " % in File)  ***";
             if (prev > 0) sout << "  Ident #" << theidents(prev);
-            sout << "\n" << errm << Message_EndLine;
+            sout << "\n" << errm << std::endl;
 #endif
             thecheck->AddWarning(errm.ToCString(), "Complex Type incorrect : ");
           }
@@ -1526,7 +1526,7 @@ Standard_Integer StepData_StepReaderData::FindEntityNumber(const Standard_Intege
 
 void StepData_StepReaderData::SetEntityNumbers(const Standard_Boolean withmap)
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   //   Passe initiale : Resolution directe par Map
   //   si tout passe (pas de collision), OK. Sinon, autres passes a prevoir
   //   On resoud du meme coup les sous-listes
@@ -1571,7 +1571,7 @@ void StepData_StepReaderData::SetEntityNumbers(const Standard_Boolean withmap)
       if (letype == Interface_ParamSub) {
         Standard_Integer numsub = FP.EntityNumber();
         if (numsub > thelastn) {
-          sout << "Bad Sub.N0, Record " << num << " Param " << na << ":$" << numsub << Message_EndLine;
+          sout << "Bad Sub.N0, Record " << num << " Param " << na << ":$" << numsub << std::endl;
           continue;
         }
         FP.SetEntityNumber(subn(numsub));
@@ -1596,7 +1596,7 @@ void StepData_StepReaderData::SetEntityNumbers(const Standard_Boolean withmap)
           //  ...  Et sortir message un peu plus complet
           sout << "*** ERR StepReaderData *** Pour Entite #" << ident
             << "\n    Type:" << RecordType(num)
-            << "  Param.n0 " << na << ": #" << id << " Non trouve" << Message_EndLine;
+            << "  Param.n0 " << na << ": #" << id << " Non trouve" << std::endl;
         }      // FIN  Mapping
       }        // FIN  Traitement Reference
     }          // FIN  Boucle Parametres
@@ -1663,7 +1663,7 @@ void StepData_StepReaderData::SetEntityNumbers(const Standard_Boolean withmap)
             char ligne[80];
             sprintf(ligne, "Ident defined SEVERAL TIMES : #%d", ident);
             thecheck->AddFail(ligne, "Ident defined SEVERAL TIMES : #%d");
-            sout << "StepReaderData:SetEntityNumbers, " << ligne << Message_EndLine;
+            sout << "StepReaderData:SetEntityNumbers, " << ligne << std::endl;
           }
           if (indm(indmap) > 0) indm(indmap) = -indm(indmap);  // Pas pour Map
       //  Cas Normal pour la Map
@@ -1856,7 +1856,7 @@ void StepData_StepReaderData::SetEntityNumbers(const Standard_Boolean withmap)
           sout << "*** ERR StepReaderData *** Pour Entite " << nument
             << ", a " << (nr * 100) / nbseq << "% de DATA : #" << ident
             << "\n    Type:" << RecordType(num)
-            << "  Param.n0 " << na << ": #" << id << " Non trouve" << Message_EndLine;
+            << "  Param.n0 " << na << ": #" << id << " Non trouve" << std::endl;
           FP.SetEntityNumber(0);  // -> Reference non resolue
         }
       }
index 1751f8e564694a8ec8007ba336465ae0e7d3cbe7..7e52ae77dd6cf1593726155495cc3593dfcc2130 100644 (file)
@@ -98,7 +98,7 @@ void StepData_StepReaderTool::Prepare (const Standard_Boolean optim)
       SetEntities();
     }
     catch(Standard_Failure const& anException) {
-      Handle(Message_Messenger) sout = Message::DefaultMessenger();
+      Message_Messenger::StreamBuffer sout = Message::SendInfo();
       sout << " Exception Raised during Preparation :\n";
       sout << anException.GetMessageString();
       sout << "\n Now, trying to continue, but with presomption of failure\n";
@@ -159,7 +159,7 @@ void StepData_StepReaderTool::PrepareHeader
 void StepData_StepReaderTool::BeginRead
   (const Handle(Interface_InterfaceModel)& amodel)
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   DeclareAndCast(StepData_StepModel,model,amodel);
   DeclareAndCast(StepData_StepReaderData,stepdat,Data());
 
@@ -184,7 +184,7 @@ void StepData_StepReaderTool::BeginRead
       Handle(Interface_Check) mch = model->GlobalCheck();
       Standard_Integer nbmess = ach->NbWarnings();
       sout<<nbmess<<" Warnings on Reading Header Entity N0."<<i<<":";
-      if (!ent.IsNull()) sout << ent->DynamicType()->Name() << Message_EndLine;
+      if (!ent.IsNull()) sout << ent->DynamicType()->Name() << std::endl;
       for (Standard_Integer nf = 1; nf <= nbmess; nf ++)
        sout << ach->CWarning(nf) << "\n";
     }
@@ -192,7 +192,7 @@ void StepData_StepReaderTool::BeginRead
       Handle(Interface_Check) mch = model->GlobalCheck();
       Standard_Integer nbmess = ach->NbFails();
       sout << " Errors on Reading Header Entity N0."<<i<<":";
-      if (!ent.IsNull()) sout << ent->DynamicType()->Name() << Message_EndLine;
+      if (!ent.IsNull()) sout << ent->DynamicType()->Name() << std::endl;
       for (Standard_Integer nf = 1; nf <= nbmess; nf ++)
        sout << ach->CFail(nf) << "\n";
     }
index ca16bd22fcd3433eb4910eab1664b481524fccf3..1a76bac419da471be04ed4b2ce3cd97c4c449ee5 100644 (file)
@@ -117,7 +117,7 @@ Standard_Integer StepFile_Read
   const Handle(StepData_FileRecognizer)& recodata)
 
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   char *ficnom = nomfic ;  // because const (non reconnu par C)
 
   checkread->Clear();
@@ -129,7 +129,7 @@ Standard_Integer StepFile_Read
   OSD_Timer c ; 
   c.Reset () ; 
   c.Start();
-  sout << "      ...    Step File Reading : " << ficnom << "" << Message_EndLine;  
+  sout << "      ...    Step File Reading : " << ficnom << "" << std::endl;  
 #endif
 
   try {
@@ -138,9 +138,9 @@ Standard_Integer StepFile_Read
   }
   catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    sout << " ...  Exception Raised while reading Step File : " << ficnom << ":\n" << Message_EndLine;
+    sout << " ...  Exception Raised while reading Step File : " << ficnom << ":\n" << std::endl;
     sout << anException.GetMessageString();  
-    sout << "    ..." << Message_EndLine;
+    sout << "    ..." << std::endl;
 #endif
     (void)anException;
     lir_file_fin(3);  
@@ -150,7 +150,7 @@ Standard_Integer StepFile_Read
   // Continue reading of file despite of possible fails
   //if (checkread->HasFailed()) {  lir_file_fin(3);  stepread_endinput (newin,ficnom);  return 1;  }
 #ifdef CHRONOMESURE
-  sout << "      ...    STEP File   Read    ... " << Message_EndLine;  
+  sout << "      ...    STEP File   Read    ... " << std::endl;  
   c.Show(); 
 #endif
 
@@ -193,10 +193,10 @@ Standard_Integer StepFile_Read
 //  on a undirec pret pour la suite
 
 #ifdef CHRONOMESURE
-  sout << "      ... Step File loaded  ... " << Message_EndLine
+  sout << "      ... Step File loaded  ... " << std::endl
   c.Show();
   sout << "   "<< undirec->NbRecords () <<
-      " records (entities,sub-lists,scopes), "<< nbpar << " parameters\n" << Message_EndLine;
+      " records (entities,sub-lists,scopes), "<< nbpar << " parameters\n" << std::endl;
 #endif
 
 //   Analyse : par StepReaderTool
@@ -219,10 +219,10 @@ Standard_Integer StepFile_Read
   readtool.Clear();
   undirec.Nullify();
 #ifdef CHRONOMESURE
-  sout << "      ...   Objets analysed  ... " << Message_EndLine
+  sout << "      ...   Objets analysed  ... " << std::endl
   c.Show();
   n = stepmodel->NbEntities() ;
-  sout << "  STEP Loading done : " << n << " Entities" << Message_EndLine;
+  sout << "  STEP Loading done : " << n << " Entities" << std::endl;
 #endif
   
   stepread_endinput (newin,ficnom);  return 0 ;
@@ -231,8 +231,8 @@ Standard_Integer StepFile_Read
 void StepFile_Interrupt (char* mess)
 {
 #ifdef OCCT_DEBUG
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  sout << "    ****    StepFile Error : " << mess << "    ****" << Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  sout << "    ****    StepFile Error : " << mess << "    ****" << std::endl;
 #endif
   checkread->AddFail(mess);
 }
index 03f303c647a63d71881e03c794c11870ba71727b..1b7d969e9799b724780978a555371bf40cc3a73f 100644 (file)
@@ -83,7 +83,7 @@ Standard_Boolean  StepSelect_WorkLibrary::WriteFile
   (IFSelect_ContextWrite& ctx) const
 {
 //  Preparation
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   DeclareAndCast(StepData_StepModel,stepmodel,ctx.Model());
   DeclareAndCast(StepData_Protocol,stepro,ctx.Protocol());
   if (stepmodel.IsNull() || stepro.IsNull()) return Standard_False;
@@ -93,7 +93,7 @@ Standard_Boolean  StepSelect_WorkLibrary::WriteFile
 
   if (!fout || !fout.is_open()) {
     ctx.CCheck(0)->AddFail("Step File could not be created");
-    sout<<" Step File could not be created : " << ctx.FileName() << Message_EndLine; return 0;
+    sout<<" Step File could not be created : " << ctx.FileName() << std::endl; return 0;
   }
   sout << " Step File Name : "<<ctx.FileName();
   StepData_StepWriter SW(stepmodel);
@@ -119,13 +119,13 @@ Standard_Boolean  StepSelect_WorkLibrary::WriteFile
     ctx.CCheck(chl.Number())->GetMessages(chl.Value());
   sout<<" Write ";
   Standard_Boolean isGood = SW.Print(fout);                 
-  sout<<" Done"<<Message_EndLine;
+  sout<<" Done"<<std::endl;
       
   errno = 0;
   fout.close();
   isGood = fout.good() && isGood && !errno;
   if(errno)
-    sout << strerror(errno) << Message_EndLine;
+    sout << strerror(errno) << std::endl;
   return isGood;  
 }
 
@@ -146,22 +146,22 @@ void  StepSelect_WorkLibrary::DumpEntity
   (const Handle(Interface_InterfaceModel)& model,
    const Handle(Interface_Protocol)& protocol,
    const Handle(Standard_Transient)& entity,
-   const Handle(Message_Messenger)& S, const Standard_Integer level) const
+   Standard_OStream& S, const Standard_Integer level) const
 {
   Standard_Integer nument = model->Number(entity);
   if (nument <= 0 || nument > model->NbEntities()) return;
   Standard_Boolean iserr = model->IsRedefinedContent(nument);
   Handle(Standard_Transient) ent, con;  ent = entity;
-  S<<" --- (STEP) Entity ";  model->Print(entity,S);
+  S <<" --- (STEP) Entity ";  model->Print(entity, S);
   if (iserr) con = model->ReportEntity(nument)->Content();
-  if (entity.IsNull()) {  S<<" Null"<<Message_EndLine; return;  }
+  if (entity.IsNull()) {  S <<" Null"<<std::endl; return;  }
 
 //  On attaque le dump : d abord cas de l Erreur
-  S << " Type cdl : " << entity->DynamicType()->Name() << Message_EndLine;
+  S << " Type cdl : " << entity->DynamicType()->Name() << std::endl;
   if (iserr)
-    S<<" ***  NOT WELL LOADED : CONTENT FROM FILE  ***"<<Message_EndLine;
+    S <<" ***  NOT WELL LOADED : CONTENT FROM FILE  ***"<<std::endl;
   else if (model->IsUnknownEntity(nument))
-    S<<" ***  UNKNOWN TYPE  ***"<<Message_EndLine;
+    S <<" ***  UNKNOWN TYPE  ***"<<std::endl;
 
   StepData_StepDumper dump(GetCasted(StepData_StepModel,model),
                            GetCasted(StepData_Protocol,protocol),thelabmode);
index 4f09ef394393c16d0871ffa1ba2723c8580b412d..ee67678abe6f7770652f7d959ae14fcef780d71a 100644 (file)
@@ -29,9 +29,6 @@ class Interface_Protocol;
 class IFSelect_ContextWrite;
 class Interface_EntityIterator;
 class Interface_CopyTool;
-class Standard_Transient;
-class Message_Messenger;
-
 
 class StepSelect_WorkLibrary;
 DEFINE_STANDARD_HANDLE(StepSelect_WorkLibrary, IFSelect_WorkLibrary)
@@ -75,7 +72,7 @@ public:
   //! Level 0 just displays type; level 1 displays the entity itself
   //! and level 2 displays the entity plus its shared ones (one
   //! sub-level : immediately shared entities)
-  Standard_EXPORT void DumpEntity (const Handle(Interface_InterfaceModel)& model, const Handle(Interface_Protocol)& protocol, const Handle(Standard_Transient)& entity, const Handle(Message_Messenger)& S, const Standard_Integer level) const Standard_OVERRIDE;
+  Standard_EXPORT virtual void DumpEntity (const Handle(Interface_InterfaceModel)& model, const Handle(Interface_Protocol)& protocol, const Handle(Standard_Transient)& entity, Standard_OStream& S, const Standard_Integer level) const Standard_OVERRIDE;
 
 
 
index 892c2dd7763e50c5ed066eb795aacb2546fbfd55..bf54dcb8b4b3c380d07e292e1f09e2df3624e23a 100644 (file)
@@ -179,7 +179,7 @@ void StepToTopoDS_Builder::Init
 (const Handle(StepShape_ManifoldSolidBrep)& aManifoldSolid,
  const Handle(Transfer_TransientProcess)& TP)
 {
-  Handle(Message_Messenger) sout = TP->Messenger();
+  Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
   // Initialisation of the Tool
 
   StepToTopoDS_Tool         myTool;
@@ -215,16 +215,16 @@ void StepToTopoDS_Builder::Init
 
     if ( TP->TraceLevel() > 2 )
     {
-      sout << "Geometric Statitics : " << Message_EndLine;
-      sout << "   Surface Continuity : - C0 : " << myTool.C0Surf() << Message_EndLine;
-      sout << "                        - C1 : " << myTool.C1Surf() << Message_EndLine;
-      sout << "                        - C2 : " << myTool.C2Surf() << Message_EndLine;
-      sout << "   Curve Continuity :   - C0 : " << myTool.C0Cur3() << Message_EndLine;
-      sout << "                        - C1 : " << myTool.C1Cur3() << Message_EndLine;
-      sout << "                        - C2 : " << myTool.C2Cur3() << Message_EndLine;
-      sout << "   PCurve Continuity :  - C0 : " << myTool.C0Cur2() << Message_EndLine;
-      sout << "                        - C1 : " << myTool.C1Cur2() << Message_EndLine;
-      sout << "                        - C2 : " << myTool.C2Cur2() << Message_EndLine;
+      sout << "Geometric Statitics : " << std::endl;
+      sout << "   Surface Continuity : - C0 : " << myTool.C0Surf() << std::endl;
+      sout << "                        - C1 : " << myTool.C1Surf() << std::endl;
+      sout << "                        - C2 : " << myTool.C2Surf() << std::endl;
+      sout << "   Curve Continuity :   - C0 : " << myTool.C0Cur3() << std::endl;
+      sout << "                        - C1 : " << myTool.C1Cur3() << std::endl;
+      sout << "                        - C2 : " << myTool.C2Cur3() << std::endl;
+      sout << "   PCurve Continuity :  - C0 : " << myTool.C0Cur2() << std::endl;
+      sout << "                        - C1 : " << myTool.C1Cur2() << std::endl;
+      sout << "                        - C2 : " << myTool.C2Cur2() << std::endl;
     }
 
 //:S4136    ShapeFix::SameParameter (S,Standard_False);
@@ -246,7 +246,7 @@ void StepToTopoDS_Builder::Init
 (const Handle(StepShape_BrepWithVoids)& aBRepWithVoids,
  const Handle(Transfer_TransientProcess)& TP)
 {
-  Handle(Message_Messenger) sout = TP->Messenger();
+  Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
  // Initialisation of the Tool
   StepToTopoDS_Tool         myTool;
   StepToTopoDS_DataMapOfTRI aMap;
@@ -323,16 +323,16 @@ void StepToTopoDS_Builder::Init
   
   if ( TP->TraceLevel() > 2 )
   {
-    sout << "Geometric Statitics : " << Message_EndLine;
-    sout << "   Surface Continuity : - C0 : " << myTool.C0Surf() << Message_EndLine;
-    sout << "                        - C1 : " << myTool.C1Surf() << Message_EndLine;
-    sout << "                        - C2 : " << myTool.C2Surf() << Message_EndLine;
-    sout << "   Curve Continuity :   - C0 : " << myTool.C0Cur3() << Message_EndLine;
-    sout << "                        - C1 : " << myTool.C1Cur3() << Message_EndLine;
-    sout << "                        - C2 : " << myTool.C2Cur3() << Message_EndLine;
-    sout << "   PCurve Continuity :  - C0 : " << myTool.C0Cur2() << Message_EndLine;
-    sout << "                        - C1 : " << myTool.C1Cur2() << Message_EndLine;
-    sout << "                        - C2 : " << myTool.C2Cur2() << Message_EndLine;
+    sout << "Geometric Statitics : " << std::endl;
+    sout << "   Surface Continuity : - C0 : " << myTool.C0Surf() << std::endl;
+    sout << "                        - C1 : " << myTool.C1Surf() << std::endl;
+    sout << "                        - C2 : " << myTool.C2Surf() << std::endl;
+    sout << "   Curve Continuity :   - C0 : " << myTool.C0Cur3() << std::endl;
+    sout << "                        - C1 : " << myTool.C1Cur3() << std::endl;
+    sout << "                        - C2 : " << myTool.C2Cur3() << std::endl;
+    sout << "   PCurve Continuity :  - C0 : " << myTool.C0Cur2() << std::endl;
+    sout << "                        - C1 : " << myTool.C1Cur2() << std::endl;
+    sout << "                        - C2 : " << myTool.C2Cur2() << std::endl;
   }
 
 //:S4136  ShapeFix::SameParameter (S,Standard_False);
@@ -464,7 +464,7 @@ void StepToTopoDS_Builder::Init
  const Handle(Transfer_TransientProcess)& TP,
  StepToTopoDS_NMTool& NMTool)
 {
-  Handle(Message_Messenger) sout = TP->Messenger();
+  Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
   // Initialisation of the Tool
 
   StepToTopoDS_Tool         myTool;
@@ -530,16 +530,16 @@ void StepToTopoDS_Builder::Init
   
   if ( TP->TraceLevel() > 2 )
   {
-    sout << "Geometric Statitics : " << Message_EndLine;
-    sout << "   Surface Continuity : - C0 : " << myTool.C0Surf() << Message_EndLine;
-    sout << "                        - C1 : " << myTool.C1Surf() << Message_EndLine;
-    sout << "                        - C2 : " << myTool.C2Surf() << Message_EndLine;
-    sout << "   Curve Continuity :   - C0 : " << myTool.C0Cur3() << Message_EndLine;
-    sout << "                        - C1 : " << myTool.C1Cur3() << Message_EndLine;
-    sout << "                        - C2 : " << myTool.C2Cur3() << Message_EndLine;
-    sout << "   PCurve Continuity :  - C0 : " << myTool.C0Cur2() << Message_EndLine;
-    sout << "                        - C1 : " << myTool.C1Cur2() << Message_EndLine;
-    sout << "                        - C2 : " << myTool.C2Cur2() << Message_EndLine;
+    sout << "Geometric Statitics : " << std::endl;
+    sout << "   Surface Continuity : - C0 : " << myTool.C0Surf() << std::endl;
+    sout << "                        - C1 : " << myTool.C1Surf() << std::endl;
+    sout << "                        - C2 : " << myTool.C2Surf() << std::endl;
+    sout << "   Curve Continuity :   - C0 : " << myTool.C0Cur3() << std::endl;
+    sout << "                        - C1 : " << myTool.C1Cur3() << std::endl;
+    sout << "                        - C2 : " << myTool.C2Cur3() << std::endl;
+    sout << "   PCurve Continuity :  - C0 : " << myTool.C0Cur2() << std::endl;
+    sout << "                        - C1 : " << myTool.C1Cur2() << std::endl;
+    sout << "                        - C2 : " << myTool.C2Cur2() << std::endl;
   }
 
 //:S4136  ShapeFix::SameParameter (S,Standard_False);
@@ -770,9 +770,9 @@ void StepToTopoDS_Builder::Init
             aGeomCrv = StepToGeom::MakeCurve(aCrv);
         }
         catch (Standard_Failure const& anException) {
-          Handle(Message_Messenger) sout = TP->Messenger();
+          Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
           sout << "StepToTopoDS, GeometricSet, elem " << i << " of " << nbElem << ": exception ";
-          sout << anException.GetMessageString() << Message_EndLine;
+          sout << anException.GetMessageString() << std::endl;
         }
         if (!aGeomCrv.IsNull()) {
           BRepBuilderAPI_MakeEdge anEdge(aGeomCrv, aGeomCrv->FirstParameter(), aGeomCrv->LastParameter());
index b71d83d521186806e1b802d437b11c4d03eefca9..0af1263b30084412a838ee53b807fbb3b21b8c73 100644 (file)
@@ -15,9 +15,6 @@
 #include <Interface_Check.hxx>
 #include <Interface_InterfaceModel.hxx>
 #include <Interface_MSG.hxx>
-#include <Message_Messenger.hxx>
-#include <Standard_Transient.hxx>
-#include <Standard_Type.hxx>
 #include <Transfer_Binder.hxx>
 #include <Transfer_Finder.hxx>
 #include <Transfer_FinderProcess.hxx>
@@ -58,20 +55,20 @@ Transfer_FinderProcess::Transfer_FinderProcess (const Standard_Integer nb)
 }
 
 
-    void  Transfer_FinderProcess::PrintTrace
-  (const Handle(Transfer_Finder)& start, const Handle(Message_Messenger)& S) const
-      {  if (!start.IsNull()) S<<" Type:"<<start->ValueTypeName();  }
+void  Transfer_FinderProcess::PrintTrace (const Handle(Transfer_Finder)& start, Standard_OStream& S) const
+{
+  if (!start.IsNull()) S << " Type:" << start->ValueTypeName();
+}
 
-    void  Transfer_FinderProcess::PrintStats
-  (const Standard_Integer mode, const Handle(Message_Messenger)& S) const
+void  Transfer_FinderProcess::PrintStats (const Standard_Integer mode, Standard_OStream& S) const
 {
   S<<"\n*******************************************************************\n";
   if (mode == 1) {    //  Statistiques de base
-    S << "********                 Basic Statistics                  ********"<<Message_EndLine;
+    S<< "********                 Basic Statistics                  ********"<<std::endl;
 
     Standard_Integer nbr = 0, nbe = 0, nbw = 0;
     Standard_Integer i, max = NbMapped(), nbroots = NbRoots();
-    S << "****        Nb Final Results    : "<<nbroots<<Message_EndLine;
+    S<< "****        Nb Final Results    : "<< nbroots <<std::endl;
 
     for (i = 1; i <= max; i ++) {
       const Handle(Transfer_Binder)& binder = MapItem(i);
@@ -86,12 +83,12 @@ Transfer_FinderProcess::Transfer_FinderProcess (const Standard_Integer nb)
       }
     }
     if (nbr > nbroots)
-      S<<"****      ( Itermediate Results : "<<nbr-nbroots<<" )\n";
+      S<<"****      ( Itermediate Results : "<<nbr-nbroots <<" )\n";
     if (nbe > 0)
       S<<"****                  Errors on :"<<Interface_MSG::Blanks(nbe,4)<<nbe<<" Entities\n";
     if (nbw > 0)
       S<<"****                Warnings on : "<<Interface_MSG::Blanks(nbw,4)<<nbw<<" Entities\n";
     S<<"*******************************************************************";
   }
-  S<<Message_EndLine;
+  S<<std::endl;
 }
index ca9599207a9d4f86d73393d9130827fe8b9b8441..3d1fdb865ab53ec0f0825dd3b9ab767be1c3b292 100644 (file)
@@ -23,7 +23,6 @@
 class Interface_InterfaceModel;
 class Transfer_TransientMapper;
 class Transfer_Finder;
-class Message_Messenger;
 
 class Transfer_FinderProcess;
 DEFINE_STANDARD_HANDLE(Transfer_FinderProcess, Transfer_ProcessForFinder)
@@ -69,10 +68,10 @@ public:
   Standard_EXPORT Handle(Transfer_TransientMapper) TransientMapper (const Handle(Standard_Transient)& obj) const;
   
   //! Specific printing to trace a Finder (by its method ValueType)
-  Standard_EXPORT virtual void PrintTrace (const Handle(Transfer_Finder)& start, const Handle(Message_Messenger)& S) const Standard_OVERRIDE;
+  Standard_EXPORT virtual void PrintTrace (const Handle(Transfer_Finder)& start, Standard_OStream& S) const Standard_OVERRIDE;
   
   //! Prints statistics on a given output, according mode
-  Standard_EXPORT void PrintStats (const Standard_Integer mode, const Handle(Message_Messenger)& S) const;
+  Standard_EXPORT void PrintStats (const Standard_Integer mode, Standard_OStream& S) const;
 
   DEFINE_STANDARD_RTTIEXT(Transfer_FinderProcess,Transfer_ProcessForFinder)
 
index 453610fc37500293dd2b349d80a378669e9745f5..dedec5e59acbd1bf276fc9daf5da4fbd2039d66a 100644 (file)
@@ -350,7 +350,7 @@ public:
   
   //! Prints a short information on a starting object. By default
   //! prints its Dynamic Type. Can be redefined
-  Standard_EXPORT virtual void PrintTrace (const Handle(Transfer_Finder)& start, const Handle(Message_Messenger)& S) const;
+  Standard_EXPORT virtual void PrintTrace (const Handle(Transfer_Finder)& start, Standard_OStream& S) const;
   
   //! Returns True if we are surely in a DeadLoop. Evaluation is not
   //! exact, it is a "majorant" which must be computed fast.
index a1d455bf17e2c06c595ca1df3a43d71897df38c7..86be55187955809d796c286a86af04d2c9930dbe 100644 (file)
@@ -23,7 +23,6 @@
 #include <TColStd_HSequenceOfTransient.hxx>
 
 class Message_Messenger;
-class Standard_Transient;
 class Transfer_Binder;
 class Transfer_ActorOfProcessForTransient;
 class Message_ProgressIndicator;
@@ -338,7 +337,7 @@ public:
   
   //! Prints a short information on a starting object. By default
   //! prints its Dynamic Type. Can be redefined
-  Standard_EXPORT virtual void PrintTrace (const Handle(Standard_Transient)& start, const Handle(Message_Messenger)& S) const;
+  Standard_EXPORT virtual void PrintTrace (const Handle(Standard_Transient)& start, Standard_OStream& S) const;
   
   //! Returns True if we are surely in a DeadLoop. Evaluation is not
   //! exact, it is a "majorant" which must be computed fast.
index b42e1c4aa433700daddcfc9b28a92d1bc68b319a..a770140023818e3f3af9a5fc075ddffacb0db425 100644 (file)
@@ -456,10 +456,11 @@ void  Transfer_TransferProcess::SendMsg(const TheStart& start,
   // Alimente la trace : Regle causant (user messages)
   if (thetrace > 0) {
     StartTrace (binder,start,thelevel,6);
-    themessenger << amsg.Value();
+    Message_Messenger::StreamBuffer aSender = themessenger->SendInfo();
+    aSender << amsg.Value();
     if (amsg.IsEdited()&&thetrace>2)
-      themessenger << " [from: " << amsg.Original() << "]";
-    themessenger << Message_EndLine;
+      aSender << " [from: " << amsg.Original() << "]";
+    aSender << std::endl;
   }
 }
 
@@ -481,9 +482,10 @@ void Transfer_TransferProcess::AddFail(const TheStart& start,
   binder->AddFail (mess,orig);
   if (thetrace > 0) {
     StartTrace (binder,start,thelevel,1);
-    themessenger << "    --> Fail : " << mess;
-    if (orig[0] != '\0'&&thetrace>2) themessenger << " [from: " << orig << "]";
-    themessenger << Message_EndLine;
+    Message_Messenger::StreamBuffer aSender = themessenger->SendFail();
+    aSender << "    --> Fail : " << mess;
+    if (orig[0] != '\0'&&thetrace>2) aSender << " [from: " << orig << "]";
+    aSender << std::endl;
   }
 }
 
@@ -532,9 +534,10 @@ void Transfer_TransferProcess::AddWarning(const TheStart& start,
   binder->AddWarning(mess,orig);
   if (thetrace > 1) {
     StartTrace (binder,start,thelevel,2);
-    themessenger << "    --> Warning : " << mess;
-    if (orig[0] != '\0'&&thetrace>2) themessenger << " [from: " << orig << "]";
-    themessenger << Message_EndLine;
+    Message_Messenger::StreamBuffer aSender = themessenger->SendWarning();
+    aSender << "    --> Warning : " << mess;
+    if (orig[0] != '\0'&&thetrace>2) aSender << " [from: " << orig << "]";
+    aSender << std::endl;
   }
 }
 
@@ -1007,6 +1010,7 @@ Handle(Transfer_Binder) Transfer_TransferProcess::Transferring(const TheStart& s
 
     //  ....    Etat Initial : peut-etre deja fait ... ou infaisable !
 
+    Message_Messenger::StreamBuffer aSender = themessenger->SendInfo();
   //if (!former.IsNull()) {
     Transfer_StatusExec statex = former->StatusExec();
     switch (statex) {
@@ -1014,7 +1018,7 @@ Handle(Transfer_Binder) Transfer_TransferProcess::Transferring(const TheStart& s
        break;
       case Transfer_StatusDone :                  // Transfert deja fait
 //#ifdef TRANSLOG
-       themessenger << " .. and Transfer done" << Message_EndLine;
+       aSender << " .. and Transfer done" << std::endl;
 //#endif
 //     if (former->HasResult()) former->SetAlreadyUsed();
        return former;
@@ -1023,7 +1027,7 @@ Handle(Transfer_Binder) Transfer_TransferProcess::Transferring(const TheStart& s
        return former;
       case Transfer_StatusError :                 // pas propre, ca ...
        if (thetrace) {
-         themessenger << "                  *** Transfer in Error Status  :" << Message_EndLine;
+         aSender << "                  *** Transfer in Error Status  :" << std::endl;
          StartTrace (former, start, thelevel,0);
 //       (*themessenger->Out()) << flush;
        }
@@ -1031,7 +1035,7 @@ Handle(Transfer_Binder) Transfer_TransferProcess::Transferring(const TheStart& s
        throw Transfer_TransferFailure("TransferProcess : Transfer in Error Status");
       case Transfer_StatusLoop :                  // la boucle est bouclee ...
        if (thetrace) {
-         themessenger << "                  *** Transfer  Head of Dead Loop  :" << Message_EndLine;
+         aSender << "                  *** Transfer  Head of Dead Loop  :" << std::endl;
          StartTrace (former, start, thelevel,0);
 //       (*themessenger->Out()) << flush;
        }
@@ -1054,6 +1058,8 @@ Handle(Transfer_Binder) Transfer_TransferProcess::Transferring(const TheStart& s
   Handle(Transfer_Binder) binder;
   Standard_Boolean newbind = Standard_False;
   if (theerrh) {
+    Message_Messenger::StreamBuffer aSender = themessenger->SendInfo();
+
     //   Transfert sous protection pour les exceptions (pour notification en fait)
     Standard_Integer oldlev = thelevel;
     try {
@@ -1064,13 +1070,13 @@ Handle(Transfer_Binder) Transfer_TransferProcess::Transferring(const TheStart& s
     //    ...  Exceptions a Rattraper : elles ne se ressemblent pas toutes ... !
     catch (Transfer_TransferDeadLoop const&) {
       if (binder.IsNull()) {
-       themessenger << "                  *** Dead Loop with no Result" << Message_EndLine;
+       aSender << "                  *** Dead Loop with no Result" << std::endl;
        if (thetrace) StartTrace (binder, start, thelevel-1,0);
        binder = new Transfer_VoidBinder;
        Bind (start,binder);  newbind = Standard_True;
       } else if (binder->StatusExec() == Transfer_StatusLoop) {
        if (thetrace) {
-         themessenger << "                  *** Dead Loop : Finding head of Loop :" << Message_EndLine;
+         aSender << "                  *** Dead Loop : Finding head of Loop :" << std::endl;
          StartTrace (binder, start, thelevel-1,0);
        }
        else StartTrace (binder, start,thelevel-1,4);
@@ -1078,7 +1084,7 @@ Handle(Transfer_Binder) Transfer_TransferProcess::Transferring(const TheStart& s
 // Autrement dit, on change d exception (on est sorti de la boucle)
       } else {
        if (thetrace) {
-         themessenger << "                  *** Dead Loop : Actor in Loop :" << Message_EndLine;
+         aSender << "                  *** Dead Loop : Actor in Loop :" << std::endl;
          StartTrace (binder, start, thelevel-1,0);
        }
       }
@@ -1087,13 +1093,13 @@ Handle(Transfer_Binder) Transfer_TransferProcess::Transferring(const TheStart& s
     }
     catch (Standard_Failure const& anException) {
       if (binder.IsNull()) {
-       themessenger << "                  *** Exception Raised with no Result" << Message_EndLine;
+       aSender << "                  *** Exception Raised with no Result" << std::endl;
        binder = new Transfer_VoidBinder;
        Bind (start,binder);  newbind = Standard_True;
       }
       binder->AddFail("Transfer stopped by exception raising");
       if (thetrace) {
-       themessenger << "    *** Raised : " << anException.GetMessageString() << Message_EndLine;
+       aSender << "    *** Raised : " << anException.GetMessageString() << std::endl;
        StartTrace (binder, start, thelevel-1,4);
       }
       thelevel = oldlev;
@@ -1158,7 +1164,7 @@ Handle(Transfer_Binder) Transfer_TransferProcess::Transferring(const TheStart& s
   }
   if (binder.IsNull()) {
 //    if (thetrace) {
-//      themessenger << "Transfer has produced no Result" <<endl;
+//      aSender << "Transfer has produced no Result" <<endl;
 //      StartTrace (binder, start, thelevel-1,0); sout << flush;
 //    }
     if (thelevel > 0) thelevel --;
@@ -1222,21 +1228,22 @@ void Transfer_TransferProcess::StartTrace(const Handle(Transfer_Binder)& binder,
                                          const Standard_Integer level,
                                          const Standard_Integer mode) const 
 {
+  Message_Messenger::StreamBuffer aSender = themessenger->SendInfo();
   // ###  Fail (Roots:50)  --  Start start->DynamicType()
   // ###  Fail (Roots:50)  --  Start id:#label.. Type:start->DynamicType()
   if (thetrace > 3) {  // Internal to be switch when searching bug (trace >= 4)
-    if (mode == 1) themessenger << "  ###  Fail";
-    if (mode == 2) themessenger << "  ###  Warning";
-    if (mode == 3) themessenger << "  ###  New Root n0 " << theroots.Extent();
-    if (mode == 4) themessenger << "  ###  Exception";
-    if (mode == 5) themessenger << "  ###  Substitution";
-    if (mode == 6) themessenger << "  ###  Information";
+    if (mode == 1) aSender << "  ###  Fail";
+    if (mode == 2) aSender << "  ###  Warning";
+    if (mode == 3) aSender << "  ###  New Root n0 " << theroots.Extent();
+    if (mode == 4) aSender << "  ###  Exception";
+    if (mode == 5) aSender << "  ###  Substitution";
+    if (mode == 6) aSender << "  ###  Information";
     if (level > 1)
-      themessenger << " (nested)";  // " at nesting Level:"<<level;
+      aSender << " (nested)";  // " at nesting Level:"<<level;
     if (mode >= 0 && mode != 3)
-      themessenger << " at " << theroots.Extent() << " Roots";
+      aSender << " at " << theroots.Extent() << " Roots";
   }
-  if (!start.IsNull()) PrintTrace (start,themessenger);
+  if (!start.IsNull()) PrintTrace (start,aSender);
 ////  sout << endl;
 
   if (!binder.IsNull()) {   // old: if IsNull sout <<endl<< "  ---  Not Bound";
@@ -1246,10 +1253,10 @@ void Transfer_TransferProcess::StartTrace(const Handle(Transfer_Binder)& binder,
       if (bnd->Status() != Transfer_StatusVoid) {
 // ---  Result Type: binder->ResultType()  ---  Binder : binder->DynamicType();
        if (!hasres)
-         themessenger << "\n  ---  Result Type : ";
+         aSender << "\n  ---  Result Type : ";
        else 
-         themessenger << " , ";
-       themessenger << bnd->ResultTypeName();
+         aSender << " , ";
+       aSender << bnd->ResultTypeName();
 //  CKY 9-JAN-1999:  waiting for XSTEP Kernel message (not IGES_2075)
 /*        Message_Msg Msg2075("IGES_2075");
           Msg2075.AddString(bnd->ResultTypeName());
@@ -1259,7 +1266,7 @@ void Transfer_TransferProcess::StartTrace(const Handle(Transfer_Binder)& binder,
       bnd = bnd->NextResult();
     }
     if (!hasres && mode > 2) {
-      themessenger << "\n  ---  No Result recorded";
+      aSender << "\n  ---  No Result recorded";
 //  CKY 9-JAN-1999 : waiting for XSTEP Kernel message
 //     (not IGES_2075, no reference to specifically TopoDS_Shape)
 /*       Message_Msg Msg2075("IGES_2075");
@@ -1268,7 +1275,7 @@ void Transfer_TransferProcess::StartTrace(const Handle(Transfer_Binder)& binder,
     }
 //old    if (isused) sout << "  --    (Already Used in another Transfer)";
   }
-  themessenger << Message_EndLine;
+  aSender << std::endl;
 }
 
 
@@ -1277,8 +1284,7 @@ void Transfer_TransferProcess::StartTrace(const Handle(Transfer_Binder)& binder,
 //purpose  : 
 //=======================================================================
 
-void  Transfer_TransferProcess::PrintTrace(const TheStart& start,
-                                          const Handle(Message_Messenger)& S) const
+void  Transfer_TransferProcess::PrintTrace(const TheStart& start, Standard_OStream& S) const
 {
   if (!start.IsNull())   S <<" Type:" << start->DynamicType()->Name();
 }
index 92ac423d9e16f78d088fab6f06859c75e6646dcd..85d0e84aac169882bb666ba1a2a2b66e04dbcf55 100644 (file)
@@ -153,16 +153,16 @@ NCollection_DataMap<TCollection_AsciiString, Handle(Standard_Transient)>& Transf
 //=======================================================================
 
 void Transfer_TransientProcess::PrintTrace
-  (const Handle(Standard_Transient)& start, const Handle(Message_Messenger)& S) const
+  (const Handle(Standard_Transient)& start, Standard_OStream& S) const
 {
   if (!start.IsNull()) {
-    S << "Entity ";
     if (!themodel.IsNull()) {
-      themodel->Print (start,S,1);
+      S << "Entity ";
+      themodel->Print (start, S, 1);
 //      S<<"id ";  themodel->Print (start,S);
 //      S<<" Type:"<<themodel->TypeName (start);
     }
-    else S<<" Type:"<< Interface_InterfaceModel::ClassName(start->DynamicType()->Name());
+    else S<<"Entity Type:"<< Interface_InterfaceModel::ClassName(start->DynamicType()->Name());
  //  << start (handle)  ??
   }
 }
@@ -234,20 +234,20 @@ Standard_Boolean Transfer_TransientProcess::IsDataFail
 //=======================================================================
 
 void Transfer_TransientProcess::PrintStats(const Standard_Integer /*mode*/,
-                                           const Handle(Message_Messenger)& S) const
+                                           Standard_OStream& S) const
 {
   S<<"\n*******************************************************************\n";
 //  if (mode == 1) {    //  Statistiques de base
-    S << "********                 Basic Statistics                  ********"<<Message_EndLine;
+    S<< "********                 Basic Statistics                  ********"<<std::endl;
 
     Handle(Interface_InterfaceModel) model = Model();
-    if (model.IsNull())      S<<"****        Model unknown"<<Message_EndLine;
+    if (model.IsNull())      S<<"****        Model unknown"<<std::endl;
     else
-      S<<"****        Nb Entities         : "<<model->NbEntities()<<Message_EndLine;
+      S<<"****        Nb Entities         : "<<model->NbEntities()<<std::endl;
 
     Standard_Integer nbr = 0, nbe = 0, nbw = 0;
     Standard_Integer i, max = NbMapped(), nbroots = NbRoots();
-    S << "****        Nb Final Results    : "<<nbroots<<Message_EndLine;
+    S<< "****        Nb Final Results    : "<<nbroots<<std::endl;
 
     for (i = 1; i <= max; i ++) {
       const Handle(Transfer_Binder)& binder = MapItem(i);
@@ -269,7 +269,7 @@ void Transfer_TransientProcess::PrintStats(const Standard_Integer /*mode*/,
       S<<"****                Warnings on : "<<Interface_MSG::Blanks(nbw,4)<<nbw<<" Entities\n";
     S<<"*******************************************************************";
 //  }
-  S<<Message_EndLine;
+  S<<std::endl;
 }
 
 
index 129801fa3bf1b7f8738a3f8218b362b830cfe8e0..34b6ea109cd85cfff73866ca5c0f048941f7d81a 100644 (file)
 class Interface_InterfaceModel;
 class Interface_HGraph;
 class Interface_Graph;
-class Message_Messenger;
 class Interface_EntityIterator;
 
-
 class Transfer_TransientProcess;
 DEFINE_STANDARD_HANDLE(Transfer_TransientProcess, Transfer_ProcessForTransient)
 
@@ -85,7 +83,7 @@ public:
   
   //! Specific printing to trace an entity : prints label and type
   //! (if model is set)
-  Standard_EXPORT virtual void PrintTrace (const Handle(Standard_Transient)& start, const Handle(Message_Messenger)& S) const Standard_OVERRIDE;
+  Standard_EXPORT virtual void PrintTrace (const Handle(Standard_Transient)& start, Standard_OStream& S) const Standard_OVERRIDE;
   
   //! Specific number of a starting object for check-list : Number
   //! in model
@@ -110,7 +108,7 @@ public:
   Standard_EXPORT Standard_Boolean IsDataFail (const Handle(Standard_Transient)& ent) const;
   
   //! Prints statistics on a given output, according mode
-  Standard_EXPORT void PrintStats (const Standard_Integer mode, const Handle(Message_Messenger)& S) const;
+  Standard_EXPORT void PrintStats (const Standard_Integer mode, Standard_OStream& S) const;
   
   Standard_EXPORT Handle(TColStd_HSequenceOfTransient) RootsForTransfer();
 
index ddee8686a919506077dd2192e46a9f7f85e369e7..74cf5d2fe612e88851fe219e2d0fae3d49464612 100644 (file)
@@ -82,8 +82,13 @@ TransferBRep_Reader::TransferBRep_Reader ()
 {
   Interface_CheckTool cht (theModel,theProto);
   Interface_CheckIterator chl = cht.CompleteCheckList();
-  if ( withprint && ! theProc.IsNull() ) 
-    chl.Print (theProc->Messenger(), theModel, Standard_False);
+  if (withprint
+  && !theProc.IsNull()
+  && !theProc->Messenger().IsNull())
+  {
+    Message_Messenger::StreamBuffer aBuffer = theProc->Messenger()->SendInfo();
+    chl.Print (aBuffer, theModel, Standard_False);
+  }
   return chl.IsEmpty(Standard_True);
 }
 
@@ -145,10 +150,10 @@ TransferBRep_Reader::TransferBRep_Reader ()
   Transfer_TransferOutput TP (theProc,theModel);
 
   if (theProc->TraceLevel() > 1) {
-    Handle(Message_Messenger) sout = theProc->Messenger();
+    Message_Messenger::StreamBuffer sout = theProc->Messenger()->SendInfo();
     sout<<"--  Transfer(Read) : ";  
-    theModel->Print (ent,sout);  
-    sout<<Message_EndLine;
+    theModel->Print (ent, sout);
+    sout<<std::endl;
   }
   TP.Transfer(ent);
   theProc->SetRoot(ent);
@@ -163,19 +168,19 @@ TransferBRep_Reader::TransferBRep_Reader ()
   if (list.IsNull()) return;
   Transfer_TransferOutput TP (theProc,theModel);
   Standard_Integer i, nb = list->Length();
-  Handle(Message_Messenger) sout = theProc->Messenger();
+  Message_Messenger::StreamBuffer sout = theProc->Messenger()->SendInfo();
 
   if (theProc->TraceLevel() > 1) 
-    sout<<"--  Transfer(Read-List) : "<<nb<<" Items"<<Message_EndLine;
+    sout<<"--  Transfer(Read-List) : "<<nb<<" Items"<<std::endl;
   for (i = 1; i <= nb; i ++) {
     Handle(Standard_Transient) ent = list->Value(i);
     if (theModel->Number(ent) == 0) continue;
 
     if (theProc->TraceLevel() > 1) 
     {
-      sout<<"--  Transfer(Read-List), Item "<<i<<" : ";  
-      theModel->Print (ent,sout);  
-      sout<<Message_EndLine;
+      sout<<"--  Transfer(Read-List), Item "<<i<<" : ";
+      theModel->Print (ent, sout);
+      sout<<std::endl;
     }
     TP.Transfer(ent);
     theProc->SetRoot(ent);
@@ -237,8 +242,13 @@ TransferBRep_Reader::TransferBRep_Reader ()
 {
   Interface_CheckIterator chl;
   if (!theProc.IsNull()) chl = theProc->CheckList(Standard_False);
-  if (withprint && ! theProc.IsNull()) 
-    chl.Print (theProc->Messenger(), theModel, Standard_False);
+  if (withprint
+  && !theProc.IsNull()
+  && !theProc->Messenger().IsNull())
+  {
+    Message_Messenger::StreamBuffer aBuffer = theProc->Messenger()->SendInfo();
+    chl.Print (aBuffer, theModel, Standard_False);
+  }
   return chl.IsEmpty(Standard_True);
 }
 
index 2bcf71139e8d3e344d69a4e0fb30ad57f69bfec9..e0ddb8bbb7e5265e1ae8a212e93e3b7b1e47d33f 100644 (file)
@@ -75,14 +75,14 @@ static IFSelect_ReturnStatus XSControl_tpdraw
   const Standard_CString arg2 = pilot->Arg(2);
   const Standard_CString arg3 = pilot->Arg(3);
   const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (TP.IsNull()) { sout<<"No Transfer Read"<<Message_EndLine; return IFSelect_RetError;}
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (TP.IsNull()) { sout<<"No Transfer Read"<<std::endl; return IFSelect_RetError;}
   //        ****    tpdraw        ****
   if (argc < 2) {
-    sout<<"Donner [mode facultatif : item ou root] , NUMERO , nom DRAW facultatif"<<Message_EndLine;
-    sout<<"  mode si present : item ou root, sinon n0 d entite modele"<<Message_EndLine;
+    sout<<"Donner [mode facultatif : item ou root] , NUMERO , nom DRAW facultatif"<<std::endl;
+    sout<<"  mode si present : item ou root, sinon n0 d entite modele"<<std::endl;
     sout<<"  NUMERO entier : d entite, d item transfert ou de root transfert\n"
-      <<  "    ou * pour dire tous"<<Message_EndLine;
+      <<  "    ou * pour dire tous"<<std::endl;
     return IFSelect_RetError;
   }
   Standard_Integer mode = 0, num=0;
@@ -90,7 +90,7 @@ static IFSelect_ReturnStatus XSControl_tpdraw
   else if (arg1[0] == 'r') mode = 2;
   Standard_Boolean tout = Standard_False;
   if (mode == 0) {
-    if (argc < 2) { sout<<"Donner au moins un NUMERO ou *"<<Message_EndLine; return IFSelect_RetError; }
+    if (argc < 2) { sout<<"Donner au moins un NUMERO ou *"<<std::endl; return IFSelect_RetError; }
     if (arg1[0] == '*') tout = Standard_True;
     else num = IFSelect_Functions::GiveEntityNumber(XSControl::Session(pilot),arg1);
   } else {
@@ -108,7 +108,7 @@ static IFSelect_ReturnStatus XSControl_tpdraw
   Handle(Interface_InterfaceModel) model = TP->Model();
   if (model.IsNull()) {
     if (mode == 0) {
-      sout<<"Pas de modele, preciser n0 d item de transfert"<<Message_EndLine;
+      sout<<"Pas de modele, preciser n0 d item de transfert"<<std::endl;
       return IFSelect_RetError;
     }
   }
@@ -117,14 +117,14 @@ static IFSelect_ReturnStatus XSControl_tpdraw
   if (mode == 2) { sout<<"Racine de transfert"; max = TP->NbRoots(); }
   if (tout) {
     n1 = 1;  n2 = max;
-    sout<<", listage de 1 a "<<max<<Message_EndLine;
+    sout<<", listage de 1 a "<<max<<std::endl;
   }
   else if (num <= 0 || num > max) {
-    sout<<" - Num="<<num<<" hors limite (de 1 a "<<max<<")"<<Message_EndLine;
+    sout<<" - Num="<<num<<" hors limite (de 1 a "<<max<<")"<<std::endl;
     return IFSelect_RetError;
   } else {
     n1 = n2 = num;  nbvar = -1;  // nbvar : 1ere shape simple = pas de n0
-    sout<<", n0 "<<num<<Message_EndLine;
+    sout<<", n0 "<<num<<std::endl;
   }
 
   for (i = n1; i <= n2; i ++) {
@@ -147,11 +147,11 @@ static IFSelect_ReturnStatus XSControl_tpdraw
     if (index > 0) binder = TP->MapItem (index);
     if (binder.IsNull()) index = 0;
     if (index == 0) {
-      if (!tout) sout<<"Entite n0 "<<num<<" : non repertoriee"<<Message_EndLine;
+      if (!tout) sout<<"Entite n0 "<<num<<" : non repertoriee"<<std::endl;
       continue;
     }
     if (!binder->HasResult()) {
-      if (!tout) sout<<"Entite n0 "<<num<<" : pas de resultat"<<Message_EndLine;
+      if (!tout) sout<<"Entite n0 "<<num<<" : pas de resultat"<<std::endl;
       continue;
     }
     sh = TransferBRep::ShapeResult (binder);
@@ -159,7 +159,7 @@ static IFSelect_ReturnStatus XSControl_tpdraw
     if (!sh.IsNull()) {
       //sh = shb->Result();
       nbvar ++;
-      if (sh.IsNull()) { sout<<" (no Shape recorded)"<<Message_EndLine; continue; }
+      if (sh.IsNull()) { sout<<" (no Shape recorded)"<<std::endl; continue; }
       if (tout) sout<<"[ "<<i<<" ]:";
       if (num == 0) sout<<" pas dans le modele";
       else sout<<" ent.n0 "<<num;
@@ -173,7 +173,7 @@ static IFSelect_ReturnStatus XSControl_tpdraw
        else if (argc > 2 && mode == 0) sprintf (nomvar,"%s_%d",arg2,nbvar);
        else                            sprintf (nomvar,"tp_%d",i);
       }
-      sout<<" -> 1 DRAW Shape: "<<nomvar<<Message_EndLine;
+      sout<<" -> 1 DRAW Shape: "<<nomvar<<std::endl;
       XSControl::Vars(pilot)->SetShape(nomvar,sh);
       continue;
     }
@@ -187,26 +187,26 @@ static IFSelect_ReturnStatus XSControl_tpdraw
       sout<<" -> "<<nbs<<" DRAW Shapes :";
       for (Standard_Integer j = 1; j <= nbs; j ++)  {
        sh = slb->Shape(j);  if (nbvar < 0) nbvar = 0;  nbvar ++;
-       if (sh.IsNull()) { sout<<" (no Shape recorded)"<<Message_EndLine; continue; }
+       if (sh.IsNull()) { sout<<" (no Shape recorded)"<<std::endl; continue; }
        if      (argc > 3 && mode  > 0) sprintf (nomvar,"%s_%d",arg3,nbvar);
        else if (argc > 2 && mode == 0) sprintf (nomvar,"%s_%d",arg2,nbvar);
        else                        sprintf (nomvar,"tp_%d_%d",i,nbvar);
        sout<<" "<<nomvar;
        XSControl::Vars(pilot)->SetShape(nomvar,sh);
       }
-      sout<<Message_EndLine;
+      sout<<std::endl;
       continue;
     }
     DeclareAndCast(Transfer_SimpleBinderOfTransient,trb,binder);
     if (!trb.IsNull()) {
       Handle(Standard_Transient) resu = trb->Result();
       if (resu.IsNull()) {
-       sout<<"Entite n0 "<<num<<" : pas de resultat"<<Message_EndLine;
+       sout<<"Entite n0 "<<num<<" : pas de resultat"<<std::endl;
        continue;
       }
       DeclareAndCast(Geom_Geometry,geom,resu);
       sout<<"Entite n0 "<<num<<" : resultat "<<resu->DynamicType()->Name();
-      if (geom.IsNull()) { sout<<Message_EndLine; continue; }
+      if (geom.IsNull()) { sout<<std::endl; continue; }
       nbvar ++;
       if (nbvar == 0) {
        if      (argc > 3 && mode  > 0) sprintf (nomvar,"%s",arg3);
@@ -219,15 +219,15 @@ static IFSelect_ReturnStatus XSControl_tpdraw
       }
       char* nomv = nomvar;
       XSControl::Vars(pilot)->Set (nomv,geom);
-      sout<<" -> DRAW Geom : "<<nomvar<<Message_EndLine;
+      sout<<" -> DRAW Geom : "<<nomvar<<std::endl;
       continue;
     }
 
     if (sh.IsNull() && trb.IsNull())
-      if (!tout) sout<<"Entite n0 "<<num<<" : resultat pas une Shape mais "<<binder->ResultTypeName()<<Message_EndLine;
+      if (!tout) sout<<"Entite n0 "<<num<<" : resultat pas une Shape mais "<<binder->ResultTypeName()<<std::endl;
   }
 
-  if (sh.IsNull()) sout<<" (No Shape)"<<Message_EndLine;
+  if (sh.IsNull()) sout<<" (No Shape)"<<std::endl;
   return IFSelect_RetDone;
 }
 
@@ -241,21 +241,21 @@ static IFSelect_ReturnStatus XSControl_tpcompound
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
   const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (TP.IsNull()) { sout<<"No Transfer Read"<<Message_EndLine; return IFSelect_RetError;}
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (TP.IsNull()) { sout<<"No Transfer Read"<<std::endl; return IFSelect_RetError;}
   //        ****    tpcompound        ****
-  if (argc < 2) { sout<<"Give a NAME for the Compound  + optional givelist, else roots are taken"<<Message_EndLine; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Give a NAME for the Compound  + optional givelist, else roots are taken"<<std::endl; return IFSelect_RetError; }
   Handle(TopTools_HSequenceOfShape) list;
   if (argc == 2) list = TransferBRep::Shapes(TP);
   else {
     Handle(TColStd_HSequenceOfTransient) lise = IFSelect_Functions::GiveList(pilot->Session(),pilot->CommandPart(2));
-    if (lise.IsNull()) { sout<<"Not a valid entity list : "<<pilot->CommandPart(2)<<Message_EndLine; return IFSelect_RetError; }
+    if (lise.IsNull()) { sout<<"Not a valid entity list : "<<pilot->CommandPart(2)<<std::endl; return IFSelect_RetError; }
     list = TransferBRep::Shapes (TP,lise);
     sout<<lise->Length()<<" Entities, ";
   }
-  if (list.IsNull()) { sout<<"No Shape listed"<<Message_EndLine; return IFSelect_RetError; }
+  if (list.IsNull()) { sout<<"No Shape listed"<<std::endl; return IFSelect_RetError; }
   Standard_Integer nb = list->Length();
-  sout<<nb<<" Shape(s) listed"<<Message_EndLine;
+  sout<<nb<<" Shape(s) listed"<<std::endl;
   TopoDS_Compound C;
   BRep_Builder B;
   B.MakeCompound(C);
@@ -284,15 +284,15 @@ static IFSelect_ReturnStatus XSControl_traccess
   Standard_Boolean cassave = (pilot->Word(0).Location(1,'s',1,5) > 0);
   TCollection_AsciiString nomsh, noms;
   const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (TR.IsNull()) { sout<<" manque init"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (TR.IsNull()) { sout<<" manque init"<<std::endl; return IFSelect_RetError; }
   const Handle(Interface_InterfaceModel) &mdl = TR->Model();
-  if (mdl.IsNull()) { sout<<" modele absent"<<Message_EndLine; return IFSelect_RetError; }
+  if (mdl.IsNull()) { sout<<" modele absent"<<std::endl; return IFSelect_RetError; }
   Standard_Integer num = (argc > 1 ? IFSelect_Functions::GiveEntityNumber(XSControl::Session(pilot),arg1) : 0);
 
   if (argc > 1) nomsh = arg1;
   else nomsh = cascomp ? "TREAD_COMP" : "TREAD_LIST";
-  if (cassave) sout<<" save shapes -> current directory"<<Message_EndLine;
+  if (cassave) sout<<" save shapes -> current directory"<<std::endl;
 
   if (num == 0 || cascomp) {
     TopoDS_Compound C;        // pour cas compound
@@ -300,11 +300,11 @@ static IFSelect_ReturnStatus XSControl_traccess
     B.MakeCompound(C);
 
     const Handle(TopTools_HSequenceOfShape) &list = TR->ShapeResultList(Standard_True);
-    sout<<" TOUS RESULTATS par ShapeResultList, soit "<<list->Length()<<Message_EndLine;
+    sout<<" TOUS RESULTATS par ShapeResultList, soit "<<list->Length()<<std::endl;
     for (Standard_Integer i = 1, nb = list->Length(); i <= nb; ++i)
     {
       noms = nomsh + "_" + i;
-      if      ( (i%1000) == 0) sout<<"("<<i<<")"<<Message_EndLine;
+      if      ( (i%1000) == 0) sout<<"("<<i<<")"<<std::endl;
       else if ( (i%100)  == 0) sout<<"*";
       else if ( (i%10)   == 0) sout<<"0";
       else                     sout<<".";
@@ -313,18 +313,18 @@ static IFSelect_ReturnStatus XSControl_traccess
       else if (!cascomp &&  cassave) BRepTools::Write (list->Value(i), noms.ToCString());
       else if (cascomp) B.Add (C,list->Value(i));
     }
-    sout<<Message_EndLine;
+    sout<<std::endl;
     if      (cascomp && !cassave) XSControl::Vars(pilot)->SetShape (nomsh.ToCString(), C);
     else if (cascomp &&  cassave) BRepTools::Write (C, nomsh.ToCString());
   } else {
-    if (num < 1 || num > mdl->NbEntities()) { sout<<" incorrect:"<<arg1<<Message_EndLine; return IFSelect_RetError; }
+    if (num < 1 || num > mdl->NbEntities()) { sout<<" incorrect:"<<arg1<<std::endl; return IFSelect_RetError; }
     TopoDS_Shape sh = TR->ShapeResult(mdl->Value(num));
-    if (sh.IsNull()) { sout<<" Pas de resultat pour "<<arg1<<Message_EndLine; return IFSelect_RetError; }
+    if (sh.IsNull()) { sout<<" Pas de resultat pour "<<arg1<<std::endl; return IFSelect_RetError; }
     if (argc > 2) nomsh = arg2;
     else nomsh = TCollection_AsciiString ("TREAD_") + num;
     if      (!cascomp && !cassave) XSControl::Vars(pilot)->SetShape (nomsh.ToCString(), sh);
     else if (!cascomp &&  cassave) BRepTools::Write (sh, nomsh.ToCString());
-    else sout<<"Option non comprise"<<Message_EndLine;
+    else sout<<"Option non comprise"<<std::endl;
   }
   return IFSelect_RetDone;
 }
@@ -360,15 +360,15 @@ static IFSelect_ReturnStatus XSControl_fromshape
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
   //        ****    fromshape (tread)         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) {
-    sout<<"Give name of a DRAW Shape"<<Message_EndLine;
+    sout<<"Give name of a DRAW Shape"<<std::endl;
     return IFSelect_RetError;
   }
   const char* a1 = (char *)arg1;
   TopoDS_Shape Shape = XSControl::Vars(pilot)->GetShape(a1);
   if (Shape.IsNull()) {
-    sout<<"Not a DRAW Shape:"<<arg1<<Message_EndLine;
+    sout<<"Not a DRAW Shape:"<<arg1<<std::endl;
     return IFSelect_RetError;
   }
   Standard_Boolean yena = Standard_False;
@@ -399,7 +399,7 @@ static IFSelect_ReturnStatus XSControl_fromshape
       if (TP.IsNull()) {
         if ( silent )
           sout << "Shape "<<arg1<<" : ";
-        sout<<"no map"<<Message_EndLine;
+        sout<<"no map"<<std::endl;
       }
       else {
        TopoDS_Shape S0 = Shape;
@@ -434,7 +434,7 @@ static IFSelect_ReturnStatus XSControl_fromshape
       // skl 11.05.2004
       // if Shape is a compound try to make "fromshape" for its subshapes
       if(Shape.ShapeType()==TopAbs_COMPOUND) {
-        sout<<Message_EndLine<<"Subshapes imported from entities:";
+        sout<<std::endl<<"Subshapes imported from entities:";
         TopoDS_Iterator Iter(Shape);
         for (; Iter.More(); Iter.Next()) {
           TopoDS_Shape subsh = Iter.Value();
@@ -451,11 +451,11 @@ static IFSelect_ReturnStatus XSControl_fromshape
       }
     }
     else { 
-      sout<<"imported from entity "; 
-      XSControl::Session(pilot)->Model()->Print(ent,sout); 
-      if ( silent ) sout << " in file " << XSControl::Session(pilot)->LoadedFile() << Message_EndLine;
+      sout<<"imported from entity ";
+      XSControl::Session(pilot)->Model()->Print (ent, sout);
+      if ( silent ) sout << " in file " << XSControl::Session(pilot)->LoadedFile() << std::endl;
     }
-    if ( ! silent ) sout<<Message_EndLine;
+    if ( ! silent ) sout<<std::endl;
   }
 
   //   ET EN EXPORT ?
@@ -468,9 +468,9 @@ static IFSelect_ReturnStatus XSControl_fromshape
     if (!fnd.IsNull()) ent = FP->FindTransient (fnd);
     if (!ent.IsNull()) {
       sout<<"Shape "<<arg1<<": exported to entity ";
-      XSControl::Session(pilot)->Model()->Print(ent,sout);
+      XSControl::Session(pilot)->Model()->Print (ent, sout);
       if ( silent ) sout << " in file " << XSControl::Session(pilot)->LoadedFile();
-      sout<<Message_EndLine;
+      sout<<std::endl;
     }
     // abv 31.08.00: treat case of splitted shape (several results)
     // it is supposed that results are of the same type and lie in one-level comp
@@ -484,12 +484,12 @@ static IFSelect_ReturnStatus XSControl_fromshape
          Standard_Integer i = 1, nb = TransientListBinder->NbTransients();
          if (nb > 0) sout<<"Shape "<<arg1<<": exported to entities ";
          for (; i<=nb; i++) {
-           XSControl::Session(pilot)->Model()->Print( TransientListBinder->Transient(i), sout );
+           XSControl::Session(pilot)->Model()->Print( TransientListBinder->Transient(i), sout);
            if (i < nb) sout<<", ";
          }
          if (nb > 0) {
            if ( silent ) sout << " in file " << XSControl::Session(pilot)->LoadedFile();
-           sout<<Message_EndLine;
+           sout<<std::endl;
          }
        }
 /*     else {
@@ -513,7 +513,7 @@ static IFSelect_ReturnStatus XSControl_fromshape
       }
     }
   }
-  if (!yena) sout<<"No transfer (either import or export) recorded"<<Message_EndLine;
+  if (!yena) sout<<"No transfer (either import or export) recorded"<<std::endl;
 
   return IFSelect_RetVoid;
 }
@@ -531,28 +531,28 @@ static IFSelect_ReturnStatus XSControl_trconnexentities
   const Handle(XSControl_TransferReader) &TR  = XSControl::Session(pilot)->TransferReader();
   Handle(Transfer_TransientProcess) TP;
   if (!TR.IsNull()) TP = TR->TransientProcess();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (TP.IsNull()) { sout<<"no transfer map"<<Message_EndLine; return IFSelect_RetVoid; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (TP.IsNull()) { sout<<"no transfer map"<<std::endl; return IFSelect_RetVoid; }
   if (argc < 2) { 
-    sout<<"Give name of a DRAW Shape + optional shape type v-e-w-f(D)-s"<<Message_EndLine
+    sout<<"Give name of a DRAW Shape + optional shape type v-e-w-f(D)-s"<<std::endl
     return IFSelect_RetError; 
   }
   const char* a1 = (const char *)arg1;
   TopoDS_Shape Shape = XSControl::Vars(pilot)->GetShape(a1);
-  if (Shape.IsNull()) { sout<<"Not a DRAW Shape:"<<arg1<<Message_EndLine; return IFSelect_RetError; }
+  if (Shape.IsNull()) { sout<<"Not a DRAW Shape:"<<arg1<<std::endl; return IFSelect_RetError; }
   sout<<"Shape "<<arg1<<" : ";
 
   Handle(TColStd_HSequenceOfTransient) list =
     XSControl_ConnectedShapes::AdjacentEntities (Shape,TP,TopAbs_FACE);
   Standard_Integer i, nb = list->Length();
-  sout<<nb<<" Entities produced Connected Shapes :"<<Message_EndLine;
+  sout<<nb<<" Entities produced Connected Shapes :"<<std::endl;
   const Handle(Interface_InterfaceModel) &model = XSControl::Session(pilot)->Model();
   sout<<"(";
   for (i = 1; i <= nb; i ++) {
     if (i > 1) sout<<",";
     sout<<model->Number(list->Value(i));
   }
-  sout<<")"<<Message_EndLine;
+  sout<<")"<<std::endl;
   return IFSelect_RetDone;
 }
   
@@ -568,9 +568,9 @@ static IFSelect_ReturnStatus XSControl_trimport
   Handle(XSControl_WorkSession) WS = XSControl::Session(pilot);
 
   Standard_Integer argc = pilot->NbWords();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 4) {
-    sout<<"Give : filename or . for current model;  varname or . to take fileroot\n  GiveList, * for all transferrable roots"<<Message_EndLine;
+    sout<<"Give : filename or . for current model;  varname or . to take fileroot\n  GiveList, * for all transferrable roots"<<std::endl;
     return IFSelect_RetError;
   }
   const Standard_CString arg1 = pilot->Arg(1);
@@ -582,9 +582,9 @@ static IFSelect_ReturnStatus XSControl_trimport
   TCollection_AsciiString fnom,rnom;
   Standard_Boolean modfic = XSControl_FuncShape::FileAndVar
     (WS,arg1,arg2,"IMPORT",fnom,rnom);
-  if (modfic) sout<<" File to read : "<<fnom<<Message_EndLine;
-  else        sout<<" Model taken from the session : "<<fnom<<Message_EndLine;
-  sout<<" -- Names of variables BREP-DRAW prefixed by : "<<rnom<<Message_EndLine;
+  if (modfic) sout<<" File to read : "<<fnom<<std::endl;
+  else        sout<<" Model taken from the session : "<<fnom<<std::endl;
+  sout<<" -- Names of variables BREP-DRAW prefixed by : "<<rnom<<std::endl;
 
   //  keep the current command, because sub-commands will be called
   TCollection_AsciiString compart = pilot->CommandPart (3);
@@ -596,9 +596,9 @@ static IFSelect_ReturnStatus XSControl_trimport
     comload.AssignCat(arg1);
     IFSelect_ReturnStatus status = pilot->Execute(comload);
     if (status != IFSelect_RetDone)
-      { sout<<"Abandon import"<<Message_EndLine; return status; }
+      { sout<<"Abandon import"<<std::endl; return status; }
   } else {
-    sout<<"Currently Loaded Model"<<Message_EndLine;
+    sout<<"Currently Loaded Model"<<std::endl;
   }
 
   //  Selecting Entities
@@ -611,21 +611,21 @@ static IFSelect_ReturnStatus XSControl_trimport
     sout<<"List given by "<<compart.ToCString()<<" : ";
     list = WS->GiveList (compart.ToCString());
   }
-  if (list.IsNull()) { sout<<"No list defined. Abandon"<<Message_EndLine; return IFSelect_RetError; }
+  if (list.IsNull()) { sout<<"No list defined. Abandon"<<std::endl; return IFSelect_RetError; }
   Standard_Integer nbl = list->Length();
-  sout<<"Nb entities selected : "<<nbl<<Message_EndLine;
+  sout<<"Nb entities selected : "<<nbl<<std::endl;
 
   //  Starting Transfer
 
   WS->InitTransferReader (0);
   const Handle(XSControl_TransferReader) &TR = WS->TransferReader();
-  if (TR.IsNull()) { sout<<" init not done or failed"<<Message_EndLine; return IFSelect_RetError; }
+  if (TR.IsNull()) { sout<<" init not done or failed"<<std::endl; return IFSelect_RetError; }
 
   TR->BeginTransfer();
 
   //  Transferring
   Standard_Integer nbt = TR->TransferList(list);
-  sout<<"Nb Entities Selected : "<<nbl<<" have given "<<nbt<<" results"<<Message_EndLine;
+  sout<<"Nb Entities Selected : "<<nbl<<" have given "<<nbt<<" results"<<std::endl;
 
   //  Filling VARS. one compound (trimpcomp) or one shape per ent (trimport)
   Standard_Boolean iscomp = (pilot->Arg(0)[5] == 'c');
@@ -635,7 +635,7 @@ static IFSelect_ReturnStatus XSControl_trimport
   BRep_Builder B;
   B.MakeCompound (C);
   Handle(Interface_InterfaceModel)  mdl = TR->Model();
-  if (mdl.IsNull()) { sout<<" modele absent"<<Message_EndLine; return IFSelect_RetError; }
+  if (mdl.IsNull()) { sout<<" modele absent"<<std::endl; return IFSelect_RetError; }
   for (Standard_Integer il= 1; il <= nbl; il ++) {
     Handle(Standard_Transient) ent = list->Value(il);
     sh = TR->ShapeResult(ent);
@@ -648,15 +648,15 @@ static IFSelect_ReturnStatus XSControl_trimport
       XSControl::Vars(pilot)->SetShape(nomsh,sh);
     }
   }
-  if (nbs == 0) sout<<"No Shape produced"<<Message_EndLine;
+  if (nbs == 0) sout<<"No Shape produced"<<std::endl;
   else if (nbs == 1) {
-    sout<<"One Shape produced, named "<<rnom.ToCString()<<Message_EndLine;
+    sout<<"One Shape produced, named "<<rnom.ToCString()<<std::endl;
     XSControl::Vars(pilot)->SetShape(rnom.ToCString(),sh);
   } else if (iscomp) {
-    sout<<"One compound made of "<<nbs<<" Shapes, named "<<rnom.ToCString()<<Message_EndLine;
+    sout<<"One compound made of "<<nbs<<" Shapes, named "<<rnom.ToCString()<<std::endl;
     XSControl::Vars(pilot)->SetShape(rnom.ToCString(),C);
   } else {  // several individual shapes
-    sout<<nbs<<" Shapes, named "<<rnom.ToCString()<<"_1 to "<<rnom.ToCString()<<"_"<<nbs<<Message_EndLine;
+    sout<<nbs<<" Shapes, named "<<rnom.ToCString()<<"_1 to "<<rnom.ToCString()<<"_"<<nbs<<std::endl;
   }
 
   return IFSelect_RetDone;
@@ -672,19 +672,19 @@ static IFSelect_ReturnStatus XSControl_twrite
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
   //        ****    twrite         ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   Handle(XSControl_TransferWriter) TW = XSControl::Session(pilot)->TransferWriter();
-  if (argc < 2) { sout<<" donner nom de shape draw"<<Message_EndLine; return IFSelect_RetError; }
-  sout<<"Attention, on alimente le modele courant ..."<<Message_EndLine;
+  if (argc < 2) { sout<<" donner nom de shape draw"<<std::endl; return IFSelect_RetError; }
+  sout<<"Attention, on alimente le modele courant ..."<<std::endl;
 
   // Shape
   for (Standard_Integer i = 1; i < argc; i ++) {
     const char* ai = (const char *)pilot->Arg(i);
     TopoDS_Shape Shape = XSControl::Vars(pilot)->GetShape(ai);
-    if (Shape.IsNull()) { sout<<"pas un nom de shape draw:"<<arg1<<Message_EndLine; continue; }
+    if (Shape.IsNull()) { sout<<"pas un nom de shape draw:"<<arg1<<std::endl; continue; }
     sout<<"Pour Shape : "<<ai;
     Standard_Integer stat = TW->TransferWriteShape (XSControl::Session(pilot)->Model(),Shape);
-    sout<<" Transfer Write Status = "<<stat<<Message_EndLine;
+    sout<<" Transfer Write Status = "<<stat<<std::endl;
   }
   pilot->Session()->ComputeGraph();
   // Transient ? (Geom) : ignore
@@ -762,11 +762,11 @@ Standard_Integer  XSControl_FuncShape::MoreShapes
   //  name = "**"   -> tous les transferts du TP : VRAIMENT TOUS
   //  name = "."    -> reperage graphique (not yet impl)
   //  name = nom(n1-n2) avec n1,n2 entiers :  les variables de nom  nomn1 a nomn2
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (list.IsNull()) list = new TopTools_HSequenceOfShape();
   if (name[0] == '*' && (name[1] == '\0' || (name[1] == '*' && name[2] == '\0'))) {
     const Handle(Transfer_TransientProcess) &TP = session->TransferReader()->TransientProcess();
-    if (TP.IsNull()) { sout<<"last transfer : unknown"<<Message_EndLine;return 0; }
+    if (TP.IsNull()) { sout<<"last transfer : unknown"<<std::endl;return 0; }
     Handle(TopTools_HSequenceOfShape) li = TransferBRep::Shapes(TP,(name[1] == '\0'));
     if (li.IsNull()) return 0;
     list->Append (li);
@@ -799,12 +799,12 @@ Standard_Integer  XSControl_FuncShape::MoreShapes
       list->Append(Shape);
       nbsh ++;
     }
-    sout<<"  -> taken "<<nbsh<<" Shapes"<<Message_EndLine;
+    sout<<"  -> taken "<<nbsh<<" Shapes"<<std::endl;
     return nbsh;
   }
   const char* a1 = (const char *)name;
   TopoDS_Shape Shape = session->Vars()->GetShape(a1);
-  if (Shape.IsNull()) { sout<<"not a shape draw:"<<a1<<Message_EndLine; return 0; }
+  if (Shape.IsNull()) { sout<<"not a shape draw:"<<a1<<std::endl; return 0; }
   list->Append(Shape);
   return 1;
 }
index a13094488cd627cbf00b13e4a7cc242a68799d15..0a9d9221d083f94f21328daa5ddd1224b26e3115 100644 (file)
@@ -55,8 +55,8 @@ static IFSelect_ReturnStatus XSControl_xinit(const Handle(IFSelect_SessionPilot)
   //        ****    xinit        ****
   if (argc > 1) return (XSControl::Session(pilot)->SelectNorm(arg1) ?
                        IFSelect_RetDone : IFSelect_RetFail);
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  sout<<"Selected Norm:"<<XSControl::Session(pilot)->SelectedNorm()<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  sout<<"Selected Norm:"<<XSControl::Session(pilot)->SelectedNorm()<<std::endl;
   return IFSelect_RetVoid;
 }
 
@@ -71,24 +71,24 @@ static IFSelect_ReturnStatus XSControl_xnorm(const Handle(IFSelect_SessionPilot)
   //        ****    xnorm        ****
   Handle(XSControl_WorkSession) WS = XSControl::Session(pilot);
   Handle(XSControl_Controller) control = WS->NormAdaptor();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc == 1)
-    sout<<"Current Norm. xnorm newnorm to change"<<Message_EndLine;
-  else sout<<"Current Norm :"<<Message_EndLine;
-  if (control.IsNull()) sout<<"no norm currently defined"<<Message_EndLine;
+    sout<<"Current Norm. xnorm newnorm to change"<<std::endl;
+  else sout<<"Current Norm :"<<std::endl;
+  if (control.IsNull()) sout<<"no norm currently defined"<<std::endl;
   else
-    sout<<"  Long  Name (complete) : "<<control->Name(Standard_False)<<Message_EndLine
-      <<  "  Short name (resource) : "<<control->Name(Standard_True)<<Message_EndLine;
+    sout<<"  Long  Name (complete) : "<<control->Name(Standard_False)<<std::endl
+      <<  "  Short name (resource) : "<<control->Name(Standard_True)<<std::endl;
   if (argc == 1) return IFSelect_RetVoid;
 
   control = XSControl_Controller::Recorded(arg1);
   if (control.IsNull()) {
-    sout<<" No norm named : "<<arg1<<Message_EndLine;
+    sout<<" No norm named : "<<arg1<<std::endl;
     return IFSelect_RetError;
   }
 
   WS->SetController(control);
-  sout<<"new norm : "<<control->Name()<<Message_EndLine;
+  sout<<"new norm : "<<control->Name()<<std::endl;
   return IFSelect_RetDone;
 }
 
@@ -100,8 +100,8 @@ static IFSelect_ReturnStatus XSControl_newmodel(const Handle(IFSelect_SessionPil
 {
   //        ****    newmodel        ****
   if (!XSControl::Session(pilot)->NewModel().IsNull()) return IFSelect_RetDone;
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  sout<<"No new Model produced"<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  sout<<"No new Model produced"<<std::endl;
   return IFSelect_RetFail;
 }
 
@@ -115,9 +115,9 @@ static IFSelect_ReturnStatus XSControl_tpclear(const Handle(IFSelect_SessionPilo
   const Standard_Boolean modew = (pilot->Word(0).Value(2) == 'w');
   const Handle(Transfer_FinderProcess)    &FP = XSControl::Session(pilot)->TransferWriter()->FinderProcess();
   const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (modew) { if(!FP.IsNull()) FP->Clear(); else sout<<"No Transfer Write"<<Message_EndLine; }
-  else       { if(!TP.IsNull()) TP->Clear(); else sout<<"No Transfer Read"<<Message_EndLine; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (modew) { if(!FP.IsNull()) FP->Clear(); else sout<<"No Transfer Write"<<std::endl; }
+  else       { if(!TP.IsNull()) TP->Clear(); else sout<<"No Transfer Read"<<std::endl; }
   return IFSelect_RetDone;
 }
 
@@ -131,8 +131,8 @@ static IFSelect_ReturnStatus XSControl_tpstat(const Handle(IFSelect_SessionPilot
   const Standard_CString arg1 = pilot->Arg(1);
   //const Standard_CString arg2 = pilot->Arg(2);
   const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (TP.IsNull()) { sout<<"No Transfer Read"<<Message_EndLine; return IFSelect_RetError;}
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (TP.IsNull()) { sout<<"No Transfer Read"<<std::endl; return IFSelect_RetError;}
   //        ****    tpstat        ****
 
   Standard_Integer mod1 = -1;
@@ -171,7 +171,7 @@ static IFSelect_ReturnStatus XSControl_tpstat(const Handle(IFSelect_SessionPilot
     }
   }
   //  A present help eventuel
-  if (mod1 < -1) sout<<"Unknown Mode"<<Message_EndLine;
+  if (mod1 < -1) sout<<"Unknown Mode"<<std::endl;
   if (mod1 < 0) {
     sout<<"Modes available :\n"
       <<"g : general    c : checks (count)  C (list)\n"
@@ -184,7 +184,7 @@ static IFSelect_ReturnStatus XSControl_tpstat(const Handle(IFSelect_SessionPilot
       <<"  L : list  per couple  type entity/result\n"
       <<"  *n  *s  *b  *t  *r  *l  *L : idem on ALL recorded items\n"
       <<"  ?n  ?s  ?b  ?t ... : idem on abnormal items\n"
-      <<"  n select : n applied on a selection   idem for  s b t r l"<<Message_EndLine;
+      <<"  n select : n applied on a selection   idem for  s b t r l"<<std::endl;
     if (mod1 < -1) return IFSelect_RetError;
     return IFSelect_RetVoid;
   }
@@ -197,7 +197,7 @@ static IFSelect_ReturnStatus XSControl_tpstat(const Handle(IFSelect_SessionPilot
     XSControl_TransferReader::PrintStatsOnList (TP,list,mod1,mod2);
 //    TP->PrintStats (1,sout);
   }
-  else sout<<"TransferRead : not defined"<<Message_EndLine;
+  else sout<<"TransferRead : not defined"<<std::endl;
   return IFSelect_RetVoid;
 }
 
@@ -211,17 +211,17 @@ static IFSelect_ReturnStatus XSControl_tpent(const Handle(IFSelect_SessionPilot)
   const Standard_CString arg1 = pilot->Arg(1);
   const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
   //        ****    tpent        ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (TP.IsNull()) { sout<<"No Transfer Read"<<Message_EndLine; return IFSelect_RetError;}
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (TP.IsNull()) { sout<<"No Transfer Read"<<std::endl; return IFSelect_RetError;}
   Handle(Interface_InterfaceModel) model = TP->Model();
   if (model.IsNull())  return IFSelect_RetFail;
 
-  if (argc < 2) { sout<<"Give ENTITY NUMBER (IN MODEL TransferProcess)"<<Message_EndLine; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Give ENTITY NUMBER (IN MODEL TransferProcess)"<<std::endl; return IFSelect_RetError; }
   Standard_Integer num = atoi(arg1);
-  if (num <= 0 || num > model->NbEntities()) { sout<<"Number not in [1 - "<<model->NbEntities()<<"]"<<Message_EndLine; return IFSelect_RetError; }
+  if (num <= 0 || num > model->NbEntities()) { sout<<"Number not in [1 - "<<model->NbEntities()<<"]"<<std::endl; return IFSelect_RetError; }
   Handle(Standard_Transient) ent = model->Value(num);
   Standard_Integer index = TP->MapIndex  (ent);
-  if (index == 0) sout<<"Entity "<<num<<"  not recorded in transfer"<<Message_EndLine;
+  if (index == 0) sout<<"Entity "<<num<<"  not recorded in transfer"<<std::endl;
   else XSControl::Session(pilot)->PrintTransferStatus (index,Standard_False,sout);
   return IFSelect_RetVoid;
 }
@@ -235,8 +235,8 @@ static IFSelect_ReturnStatus XSControl_tpitem(const Handle(IFSelect_SessionPilot
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    tpitem/tproot/twitem/twroot        ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give ITEM NUMBER (in TransferProcess)"<<Message_EndLine; return IFSelect_RetError; }
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (argc < 2) { sout<<"Give ITEM NUMBER (in TransferProcess)"<<std::endl; return IFSelect_RetError; }
   Standard_Integer num = atoi(arg1);
   if (pilot->Word(0).Value(3) == 'r') num = -num;
   Standard_Boolean modew = Standard_False;
@@ -245,7 +245,9 @@ static IFSelect_ReturnStatus XSControl_tpitem(const Handle(IFSelect_SessionPilot
   Handle(Transfer_Finder) finder;
   Handle(Standard_Transient) ent;
   if (!XSControl::Session(pilot)->PrintTransferStatus(num,modew,sout))
-    sout<<" - Num="<<num<<" incorrect"<<Message_EndLine;
+  {
+    sout<<" - Num="<<num<<" incorrect"<<std::endl;
+  }
   return IFSelect_RetVoid;
 }
 
@@ -264,23 +266,23 @@ static IFSelect_ReturnStatus XSControl_trecord(const Handle(IFSelect_SessionPilo
   const Handle(Interface_InterfaceModel) &mdl = XSControl::Session(pilot)->Model();
   const Handle(XSControl_TransferReader) &TR  = XSControl::Session(pilot)->TransferReader();
   Handle(Standard_Transient) ent;
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (mdl.IsNull() || TR.IsNull() || TP.IsNull())
-    { sout<<" init not done"<<Message_EndLine; return IFSelect_RetError; }
+    { sout<<" init not done"<<std::endl; return IFSelect_RetError; }
   if (!tous) num = atoi(arg1);
   //    Enregistrer les racines
   if (tous) {
     Standard_Integer nb = TP->NbRoots();
-    sout<<" Recording "<<nb<<" Roots"<<Message_EndLine;
+    sout<<" Recording "<<nb<<" Roots"<<std::endl;
     for (Standard_Integer i = 1; i <= nb; i ++) {
       ent = TP->Root(i);
-      if (TR->RecordResult (ent)) sout<<" Root n0."<<i<<Message_EndLine;
-      else sout<<" Root n0."<<i<<" not recorded"<<Message_EndLine;
+      if (TR->RecordResult (ent)) sout<<" Root n0."<<i<<std::endl;
+      else sout<<" Root n0."<<i<<" not recorded"<<std::endl;
     }
   } else {
-    if (num < 1 ||  num > mdl->NbEntities()) sout<<"incorrect number:"<<num<<Message_EndLine;
-    else if (TR->RecordResult(mdl->Value(num))) sout<<" Entity n0."<<num<<Message_EndLine;
-    else sout<<" Entity n0."<<num<<" not recorded"<<Message_EndLine;
+    if (num < 1 ||  num > mdl->NbEntities()) sout<<"incorrect number:"<<num<<std::endl;
+    else if (TR->RecordResult(mdl->Value(num))) sout<<" Entity n0."<<num<<std::endl;
+    else sout<<" Entity n0."<<num<<" not recorded"<<std::endl;
   }
   return IFSelect_RetDone;
 }
@@ -293,31 +295,31 @@ static IFSelect_ReturnStatus XSControl_trstat(const Handle(IFSelect_SessionPilot
 {
   Standard_Integer argc = pilot->NbWords();
   const Standard_CString arg1 = pilot->Arg(1);
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
 //        ****    trstat : TransferReader        ****
   const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
-  if (TR.IsNull()) { sout<<" init not done"<<Message_EndLine; return IFSelect_RetError; }
+  if (TR.IsNull()) { sout<<" init not done"<<std::endl; return IFSelect_RetError; }
   Handle(Interface_InterfaceModel)  mdl = TR->Model();
-  if (mdl.IsNull()) { sout<<" No model"<<Message_EndLine; return IFSelect_RetError; }
-  sout<<" Statistics : FileName : "<<TR->FileName()<<Message_EndLine;
+  if (mdl.IsNull()) { sout<<" No model"<<std::endl; return IFSelect_RetError; }
+  sout<<" Statistics : FileName : "<<TR->FileName()<<std::endl;
   if (argc == 1) {
     // stats generales
-    TR->PrintStats(10,0);
+    TR->PrintStats (sout, 10, 0);
   } else {
     // stats unitaires
     Standard_Integer num = atoi(arg1);
-    if (num < 1 || num > mdl->NbEntities()) { sout<<" incorrect number:"<<arg1<<Message_EndLine; return IFSelect_RetError; }
+    if (num < 1 || num > mdl->NbEntities()) { sout<<" incorrect number:"<<arg1<<std::endl; return IFSelect_RetError; }
     Handle(Standard_Transient) ent = mdl->Value(num);
-    if (!TR->IsRecorded(ent)) { sout<<" Entity "<<num<<" not recorded"<<Message_EndLine; return IFSelect_RetError; }
+    if (!TR->IsRecorded(ent)) { sout<<" Entity "<<num<<" not recorded"<<std::endl; return IFSelect_RetError; }
     Handle(Transfer_ResultFromModel) RM = TR->FinalResult(ent);
     Handle(TColStd_HSequenceOfTransient) list = TR->CheckedList(ent);
     Standard_Integer i, nb = list->Length();
     if (nb > 0) sout<<" Entities implied by Check/Result :"<<nb<<" i.e.:";
-    for (i = 1; i <= nb; i ++) { sout<<"  "; mdl->Print(list->Value(i),sout); }
-    sout<<Message_EndLine;
-    if (RM.IsNull()) { sout<<" no other info"<<Message_EndLine; return IFSelect_RetVoid; }
+    for (i = 1; i <= nb; i ++) { sout<<"  "; mdl->Print(list->Value(i), sout); }
+    sout<<std::endl;
+    if (RM.IsNull()) { sout<<" no other info"<<std::endl; return IFSelect_RetVoid; }
     Interface_CheckIterator chl = RM->CheckList(Standard_False);
-    pilot->Session()->PrintCheckList(chl,Standard_False,IFSelect_EntitiesByItem);
+    pilot->Session()->PrintCheckList (sout, chl, Standard_False, IFSelect_EntitiesByItem);
   }
   return IFSelect_RetVoid;
 }
@@ -336,8 +338,8 @@ static IFSelect_ReturnStatus XSControl_trbegin(const Handle(IFSelect_SessionPilo
     XSControl::Session(pilot)->InitTransferReader (0);
     TR = XSControl::Session(pilot)->TransferReader();
     if (TR.IsNull()) {
-      Handle(Message_Messenger) sout = Message::DefaultMessenger();
-      sout<<" init not done or failed"<<Message_EndLine;
+      Message_Messenger::StreamBuffer sout = Message::SendInfo();
+      sout<<" init not done or failed"<<std::endl;
       return IFSelect_RetError;
     }
   }
@@ -354,23 +356,23 @@ static IFSelect_ReturnStatus XSControl_tread(const Handle(IFSelect_SessionPilot)
   Standard_Integer argc = pilot->NbWords();
   //const Standard_CString arg1 = pilot->Arg(1);
   //        ****    tread : TransferReader        ****
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
-  if (TR.IsNull()) { sout<<" init not done"<<Message_EndLine; return IFSelect_RetError; }
+  if (TR.IsNull()) { sout<<" init not done"<<std::endl; return IFSelect_RetError; }
   const Handle(Interface_InterfaceModel) &mdl = TR->Model();
-  if (mdl.IsNull()) { sout<<" No model"<<Message_EndLine; return IFSelect_RetError; }
+  if (mdl.IsNull()) { sout<<" No model"<<std::endl; return IFSelect_RetError; }
   if (argc < 2) {
 //      DeclareAndCast(IFSelect_Selection,sel,pilot->Session()->NamedItem("xst-model-roots"));
     Handle(Standard_Transient) sel = pilot->Session()->NamedItem("xst-model-roots");
-    if (sel.IsNull()) { sout<<"Select Roots absent"<<Message_EndLine; return IFSelect_RetError; }
+    if (sel.IsNull()) { sout<<"Select Roots absent"<<std::endl; return IFSelect_RetError; }
     Handle(TColStd_HSequenceOfTransient) list = pilot->Session()->GiveList(sel);
-    sout<<" Transferring all roots i.e. : "<<TR->TransferList(list)<<Message_EndLine;
+    sout<<" Transferring all roots i.e. : "<<TR->TransferList(list)<<std::endl;
   } else {
     Handle(TColStd_HSequenceOfTransient) list =
       IFSelect_Functions::GiveList(pilot->Session(),pilot->CommandPart(1));
-    sout<<" Transfer of "<<list->Length()<<" entities"<<Message_EndLine;
+    sout<<" Transfer of "<<list->Length()<<" entities"<<std::endl;
     Standard_Integer nb = TR->TransferList(list);
-    sout<<" Gives "<<nb<<" results"<<Message_EndLine;
+    sout<<" Gives "<<nb<<" results"<<std::endl;
   }
   return IFSelect_RetDone;
 }
@@ -383,9 +385,9 @@ static IFSelect_ReturnStatus XSControl_trtp(const Handle(IFSelect_SessionPilot)&
 {
   //        ****    TReader -> TProcess         ****
   const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (TR.IsNull()) sout<<" No TransferReader"<<Message_EndLine;
-  else if (TR->TransientProcess().IsNull()) sout<<" Transfer Reader without Process"<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  if (TR.IsNull()) sout<<" No TransferReader"<<std::endl;
+  else if (TR->TransientProcess().IsNull()) sout<<" Transfer Reader without Process"<<std::endl;
   return IFSelect_RetVoid;
 }
 
@@ -412,19 +414,19 @@ static IFSelect_ReturnStatus XSControl_twmode(const Handle(IFSelect_SessionPilot
   Handle(XSControl_TransferWriter) TW = XSControl::Session(pilot)->TransferWriter();
   Handle(XSControl_Controller) control = XSControl::Session(pilot)->NormAdaptor();
   Standard_Integer modemin,modemax;
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (control->ModeWriteBounds (modemin,modemax)) {
-    sout<<"Write Mode : allowed values  "<<modemin<<" to "<<modemax<<Message_EndLine;
+    sout<<"Write Mode : allowed values  "<<modemin<<" to "<<modemax<<std::endl;
     for (Standard_Integer modd = modemin; modd <= modemax; modd ++) {
-      sout<<modd<<"    : "<<control->ModeWriteHelp (modd)<<Message_EndLine;
+      sout<<modd<<"    : "<<control->ModeWriteHelp (modd)<<std::endl;
     }
   }
-  sout<<"Write Mode : actual = "<<TW->TransferMode()<<Message_EndLine;
+  sout<<"Write Mode : actual = "<<TW->TransferMode()<<std::endl;
   if (argc <= 1) return IFSelect_RetVoid;
   Standard_Integer mod = atoi(arg1);
-  sout<<"New value -> "<<arg1<<Message_EndLine;
+  sout<<"New value -> "<<arg1<<std::endl;
   TW->SetTransferMode(mod);
-  if (!control->IsModeWrite (mod)) sout<<"Warning : this new value is not supported"<<Message_EndLine;
+  if (!control->IsModeWrite (mod)) sout<<"Warning : this new value is not supported"<<std::endl;
   return IFSelect_RetDone;
 }
 
@@ -440,13 +442,13 @@ static IFSelect_ReturnStatus XSControl_twstat(const Handle(IFSelect_SessionPilot
   const Handle(Transfer_FinderProcess) &FP = XSControl::Session(pilot)->TransferWriter()->FinderProcess();
   //        ****    twstat        ****
   //  Pour Write
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (!FP.IsNull()) {
     sout<<"TransferWrite:";
     //    XSControl_TransferWriter::PrintStatsProcess (FP,mod1,mod2);
     FP->PrintStats (1,sout);
   }
-  else sout<<"TransferWrite: not defined"<<Message_EndLine;
+  else sout<<"TransferWrite: not defined"<<std::endl;
   return IFSelect_RetVoid;
 }
 
index ea17e5cd614cec120926068cae98a7dfd013dbdc..f89e25fbb57412360c92ff783e961bdee7d0d07f 100644 (file)
@@ -20,6 +20,8 @@
 #include <Interface_InterfaceModel.hxx>
 #include <Interface_ShareFlags.hxx>
 #include <Interface_Static.hxx>
+#include <Message.hxx>
+#include <Message_Messenger.hxx>
 #include <Message_ProgressSentry.hxx>
 #include <ShapeExtend_Explorer.hxx>
 #include <Standard_Transient.hxx>
@@ -368,43 +370,72 @@ TopoDS_Shape  XSControl_Reader::OneShape () const
   return C;
 }
 
-
 //=======================================================================
 //function : PrintCheckLoad
-//purpose  : 
+//purpose  :
 //=======================================================================
+void  XSControl_Reader::PrintCheckLoad (Standard_OStream& theStream,
+                                        const Standard_Boolean failsonly,
+                                        const IFSelect_PrintCount mode) const
+{
+  thesession->PrintCheckList (theStream, thesession->ModelCheckList(),failsonly, mode);
+}
 
+//=======================================================================
+//function : PrintCheckLoad
+//purpose  :
+//=======================================================================
 void  XSControl_Reader::PrintCheckLoad (const Standard_Boolean failsonly,
                                         const IFSelect_PrintCount mode) const
 {
-  thesession->PrintCheckList (thesession->ModelCheckList(),failsonly, mode);
+  Message_Messenger::StreamBuffer aBuffer = Message::SendInfo();
+  PrintCheckLoad (aBuffer, failsonly, mode);
 }
 
-
 //=======================================================================
 //function : PrintCheckTransfer
-//purpose  : 
+//purpose  :
 //=======================================================================
+void XSControl_Reader::PrintCheckTransfer(Standard_OStream& theStream,
+                                          const Standard_Boolean failsonly,
+                                          const IFSelect_PrintCount mode) const
+{
+  thesession->PrintCheckList (theStream, thesession->TransferReader()->LastCheckList(), failsonly, mode);
+}
 
+//=======================================================================
+//function : PrintCheckTransfer
+//purpose  :
+//=======================================================================
 void XSControl_Reader::PrintCheckTransfer(const Standard_Boolean failsonly,
                                           const IFSelect_PrintCount mode) const
 {
-  thesession->PrintCheckList (thesession->TransferReader()->LastCheckList(),failsonly, mode);
+  Message_Messenger::StreamBuffer aBuffer = Message::SendInfo();
+  PrintCheckTransfer(aBuffer, failsonly, mode);
 }
 
-
 //=======================================================================
 //function : PrintStatsTransfer
-//purpose  : 
+//purpose  :
 //=======================================================================
+void XSControl_Reader::PrintStatsTransfer (Standard_OStream& theStream,
+                                           const Standard_Integer what, 
+                                           const Standard_Integer mode) const
+{
+  thesession->TransferReader()->PrintStats (theStream, what,mode);
+}
 
+//=======================================================================
+//function : PrintStatsTransfer
+//purpose  :
+//=======================================================================
 void XSControl_Reader::PrintStatsTransfer (const Standard_Integer what, 
                                            const Standard_Integer mode) const
 {
-  thesession->TransferReader()->PrintStats (what,mode);
+  Message_Messenger::StreamBuffer aBuffer = Message::SendInfo();
+  PrintStatsTransfer (aBuffer, what, mode);
 }
 
-
 //=======================================================================
 //function : GetStatsTransfer
 //purpose  : 
index 2e21e0092706cc71fe7c09367b292c9b1a9e18bb..ff1ca9844662c5d5e7933cd90f2f80c6a11006cd 100644 (file)
@@ -203,6 +203,9 @@ public:
   //! mode = 1 : per message, just gives count of entities per check
   //! mode = 2 : also gives entity numbers
   Standard_EXPORT void PrintCheckLoad (const Standard_Boolean failsonly, const IFSelect_PrintCount mode) const;
+
+  //! Prints the check list attached to loaded data.
+  Standard_EXPORT void PrintCheckLoad (Standard_OStream& theStream, const Standard_Boolean failsonly, const IFSelect_PrintCount mode) const;
   
   //! Displays check results for the
   //! last translation of IGES or STEP entities to Open CASCADE
@@ -211,6 +214,9 @@ public:
   //! false. mode determines the contents and the order of the
   //! messages according to the terms of the IFSelect_PrintCount enumeration.
   Standard_EXPORT void PrintCheckTransfer (const Standard_Boolean failsonly, const IFSelect_PrintCount mode) const;
+
+  //! Displays check results for the last translation of IGES or STEP entities to Open CASCADE entities.
+  Standard_EXPORT void PrintCheckTransfer (Standard_OStream& theStream, const Standard_Boolean failsonly, const IFSelect_PrintCount mode) const;
   
   //! Displays the statistics for
   //! the last translation. what defines the kind of
@@ -240,6 +246,9 @@ public:
   //! - if mode is 2 the list of entities per warning is returned.
   //! If mode is not set, only the list of all entities per warning is given.
   Standard_EXPORT void PrintStatsTransfer (const Standard_Integer what, const Standard_Integer mode = 0) const;
+
+  //! Displays the statistics for the last translation.
+  Standard_EXPORT void PrintStatsTransfer (Standard_OStream& theStream, const Standard_Integer what, const Standard_Integer mode = 0) const;
   
   //! Gives statistics about Transfer
   Standard_EXPORT void GetStatsTransfer (const Handle(TColStd_HSequenceOfTransient)& list, Standard_Integer& nbMapped, Standard_Integer& nbWithResult, Standard_Integer& nbWithFail) const;
index 0b23c92571ba41f70f5cd57c7bfe967765940564..1347323f3322fab06852139e625931d0169bad32 100644 (file)
@@ -52,6 +52,7 @@
 #include <XSControl_Controller.hxx>
 #include <XSControl_TransferReader.hxx>
 #include <XSControl_Utils.hxx>
+#include <Message.hxx>
 
 #include <stdio.h>
 IMPLEMENT_STANDARD_RTTIEXT(XSControl_TransferReader,Standard_Transient)
@@ -785,7 +786,7 @@ Standard_Integer XSControl_TransferReader::TransferOne
 
   if (myTP.IsNull())  {  if (!BeginTransfer()) return 0;  }
 
-  Handle(Message_Messenger) sout = myTP->Messenger();
+  Message_Messenger::StreamBuffer sout = myTP->Messenger()->SendInfo();
   Standard_Integer level = myTP->TraceLevel();
   
 
@@ -798,7 +799,7 @@ Standard_Integer XSControl_TransferReader::TransferOne
     Standard_Integer num = myModel->Number(ent);
     Handle(TCollection_HAsciiString) lab = myModel->StringLabel(ent);
     sout<<"\n*******************************************************************\n";
-    sout << "******           Transferring one Entity                     ******"<<Message_EndLine;
+    sout << "******           Transferring one Entity                     ******"<<std::endl;
     if (!lab.IsNull())
       sout<<"******    N0 in file : "<<Interface_MSG::Blanks(num,5)<<num
          <<"      Ident : "<<lab->ToCString()
@@ -839,7 +840,6 @@ Standard_Integer XSControl_TransferReader::TransferList
 
   if (myTP.IsNull())  {  if (!BeginTransfer()) return 0;  }
 
-  Handle(Message_Messenger) sout = myTP->Messenger();
   Standard_Integer level = myTP->TraceLevel();
 
   Transfer_TransferOutput TP (myTP,myModel);
@@ -850,8 +850,9 @@ Standard_Integer XSControl_TransferReader::TransferList
 
   //   Pour le log-file
   if (level > 0) {
+    Message_Messenger::StreamBuffer sout = myTP->Messenger()->SendInfo();
     sout<<"\n*******************************************************************\n";
-    sout << "******           Transferring a list of "<<Interface_MSG::Blanks(nb,5)<<" Entities       ******"<<Message_EndLine;
+    sout << "******           Transferring a list of "<<Interface_MSG::Blanks(nb,5)<<" Entities       ******"<<std::endl;
     sout<<"\n*******************************************************************\n";
 
     Handle(IFSelect_SignatureList) sl = new IFSelect_SignatureList;
@@ -896,7 +897,6 @@ Standard_Integer XSControl_TransferReader::TransferRoots(const Interface_Graph&
 {
   if (myModel != G.Model()) return -1;
   if (!BeginTransfer()) return -1;
-  Handle(Message_Messenger) sout = myTP->Messenger();
   Standard_Integer level = myTP->TraceLevel();
 
   Transfer_TransferOutput TP (myTP,myModel);
@@ -907,8 +907,9 @@ Standard_Integer XSControl_TransferReader::TransferRoots(const Interface_Graph&
   if (level > 0) {
     Interface_EntityIterator roots = G.RootEntities();
     Standard_Integer nb = roots.NbEntities();
+    Message_Messenger::StreamBuffer sout = myTP->Messenger()->SendInfo();
     sout<<"\n*******************************************************************\n";
-    sout << "******           Transferring the "<<Interface_MSG::Blanks(nb,5)<<" Root Entities        ******"<<Message_EndLine;
+    sout << "******           Transferring the "<<Interface_MSG::Blanks(nb,5)<<" Root Entities        ******"<<std::endl;
     sout<<"\n*******************************************************************\n";
     Handle(IFSelect_SignatureList) sl = new IFSelect_SignatureList;
     for (roots.Start(); roots.More(); roots.Next())
@@ -959,22 +960,22 @@ void XSControl_TransferReader::TransferClear(const Handle(Standard_Transient)& e
 //purpose  : 
 //=======================================================================
 
-void XSControl_TransferReader::PrintStats
-  (const Standard_Integer what, const Standard_Integer mode) const
+void XSControl_TransferReader::PrintStats (Standard_OStream& sout, 
+                                           const Standard_Integer what,
+                                           const Standard_Integer mode) const
 {
-  Handle(Message_Messenger) sout = myTP->Messenger();
   //  A ameliorer ... !
   sout<<"\n*******************************************************************\n";
-  sout << "******        Statistics on Transfer (Read)                  ******"<<Message_EndLine;
+  sout << "******        Statistics on Transfer (Read)                  ******"<<std::endl;
   sout<<"\n*******************************************************************\n";
-  if (what > 10)  {  sout<<" ***  Not yet implemented"<<Message_EndLine;  return;  }
+  if (what > 10)  {  sout<<" ***  Not yet implemented"<<std::endl;  return;  }
   if (what < 10)  {
-    sout << "******        Data recorded on Last Transfer                 ******"<<Message_EndLine;
+    sout << "******        Data recorded on Last Transfer                 ******"<<std::endl;
     PrintStatsProcess (myTP,what,mode);
   }
   //  reste  what = 10 : on liste les racines des final results
-  sout << "******        Final Results                                  ******"<<Message_EndLine;
-  if (myModel.IsNull())  {  sout<<"****    Model unknown"<<Message_EndLine;  return;  }
+  sout << "******        Final Results                                  ******"<<std::endl;
+  if (myModel.IsNull())  {  sout<<"****    Model unknown"<<std::endl;  return;  }
   Handle(TColStd_HSequenceOfTransient) list = RecordedList();
   Standard_Integer i, nb = list->Length();
   Handle(IFSelect_SignatureList) counter;
@@ -988,16 +989,16 @@ void XSControl_TransferReader::PrintStats
     if (mode == 0)  {  sout<<"  "<<myModel->Number(ent); continue;  }
     if (mode == 1 || mode == 2) {
       sout<<"[ "<<Interface_MSG::Blanks (i,6)<<" ]:";
-      myModel->Print (ent,sout);
+      myModel->Print (ent, sout);
       sout<<"  Type:"<<myModel->TypeName(ent,Standard_False);
     }
     if (mode >= 3 && mode <= 6) {
       counter->Add (ent,myModel->TypeName(ent,Standard_False));
     }
   }
-  if (!counter.IsNull()) counter->PrintList(sout,myModel,pcm);
+  if (!counter.IsNull()) counter->PrintList (sout, myModel, pcm);
 
-  sout<<Message_EndLine;
+  sout<<std::endl;
 }
 
 
@@ -1109,10 +1110,11 @@ static void PrintPercent(const Handle(Message_Messenger)& sout, const Standard_C
                          const Standard_Integer nb, const Standard_Integer nl)
 {
   if (nb <= 0 || nl == 0) return;
-  sout<<"******      "<<mess<<": ";
-  if      (nb == nl)       sout<<"100 %"<<Message_EndLine;
-  else if (nb*100/nl == 0) sout<<"< 1 %"<<Message_EndLine;
-  else            sout<<(nb*100/nl < 10 ? "  " : " ")<<nb*100/nl<<" %"<<Message_EndLine;
+  Message_Messenger::StreamBuffer aSender = sout->SendInfo();
+  aSender<<"******      "<<mess<<": ";
+  if      (nb == nl)       aSender<<"100 %"<<std::endl;
+  else if (nb*100/nl == 0) aSender<<"< 1 %"<<std::endl;
+  else            aSender<<(nb*100/nl < 10 ? "  " : " ")<<nb*100/nl<<" %"<<std::endl;
 }
 
 
@@ -1140,13 +1142,14 @@ void XSControl_TransferReader::PrintStatsOnList(const Handle(Transfer_TransientP
                                                 const Standard_Integer what,
                                                 const Standard_Integer mode)
 {
-  Handle(Message_Messenger) sout = TP->Messenger();
+  Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
+
   char mess[250];
   if (TP.IsNull()) return;
   if (what == 0) {  TP->PrintStats(0,sout);  return;  }
 
   sout<<"\n*******************************************************************\n";
-  sout << "******        Statistics on Transfer Process (Read)          ******"<<Message_EndLine;
+  sout << "******        Statistics on Transfer Process (Read)          ******"<<std::endl;
   if (what == 1) sout << "******        Individual Transfers  (Roots)                  ******\n";
   if (what == 2) sout << "******        All recorded data about Transfer               ******\n";
   if (what == 3) sout << "******        Abnormal records                               ******\n";
@@ -1184,10 +1187,10 @@ void XSControl_TransferReader::PrintStatsOnList(const Handle(Transfer_TransientP
     IFSelect_PrintCount pcm = IFSelect_CountByItem;
     if (mode == 6) pcm = IFSelect_ListByItem;
 
-    sout  <<"****        Entities in Model   : "<<model->NbEntities()<<Message_EndLine;
-    sout  <<"****        Nb Items (Transfer) : "<<nb<<Message_EndLine;
+    sout  <<"****        Entities in Model   : "<<model->NbEntities()<<std::endl;
+    sout  <<"****        Nb Items (Transfer) : "<<nb<<std::endl;
     if (!nolist)
-      sout<<"****        Nb Items (Listed)   : "<<nl<<Message_EndLine;
+      sout<<"****        Nb Items (Listed)   : "<<nl<<std::endl;
 
     for (itrp.Start(); itrp.More(); itrp.Next()) {
       nbi ++;
@@ -1198,8 +1201,8 @@ void XSControl_TransferReader::PrintStatsOnList(const Handle(Transfer_TransientP
        if (notrec) counter->Add(ent,"(not recorded)");
        else if (mode == 1 || mode == 2) {
          sout<<"["<<Interface_MSG::Blanks (nbi,4)<<nbi<<" ]:";
-         model->Print (ent,sout);
-         sout<<"   "<<model->TypeName(ent,Standard_False)<<"  (not recorded)"<<Message_EndLine;
+         model->Print (ent, sout);
+         sout<<"   "<<model->TypeName(ent,Standard_False)<<"  (not recorded)"<<std::endl;
          continue;
        }
       }
@@ -1219,9 +1222,9 @@ void XSControl_TransferReader::PrintStatsOnList(const Handle(Transfer_TransientP
       //  mode : 0 list num;  1 : num+label + type + result (abrege);  2 : complet
       if (mode == 1 || mode == 2) {
        sout<<"["<<Interface_MSG::Blanks (i,4)<<i<<" ]:";
-       model->Print (ent,sout);
+       model->Print (ent, sout);
        sout<<"   "<<model->TypeName(ent,Standard_False);
-       sout<<" Result:"<<mess<<Message_EndLine;
+       sout<<" Result:"<<mess<<std::endl;
        if (mode == 1) continue;
 
        const Handle(Interface_Check)& ch = binder->Check();
@@ -1229,11 +1232,11 @@ void XSControl_TransferReader::PrintStatsOnList(const Handle(Transfer_TransientP
 
        if (newnbw > 0) {
          sout<<" - Warnings : "<<newnbw<<":\n";
-         for (newi = 1; newi <= newnbw; newi ++) sout<<ch->CWarning(newi)<<Message_EndLine;
+         for (newi = 1; newi <= newnbw; newi ++) sout<<ch->CWarning(newi)<<std::endl;
        }
        if (newnbf > 0) {
          sout<<" - Fails : "<<newnbf<<":\n";
-         for (newi = 1; newi <= newnbf; newi ++) sout<<ch->CFail(newi)<<Message_EndLine;
+         for (newi = 1; newi <= newnbf; newi ++) sout<<ch->CFail(newi)<<std::endl;
        }
        continue;
       }
@@ -1259,16 +1262,16 @@ void XSControl_TransferReader::PrintStatsOnList(const Handle(Transfer_TransientP
 
       //    Fin de l iteration
     }
-    if (!counter.IsNull()) counter->PrintList(sout,model,pcm);
-    else sout<<Message_EndLine;
+    if (!counter.IsNull()) counter->PrintList (sout, model, pcm);
+    else sout<<std::endl;
     //    Pourcentages
     if (mode != 3 && nbi > 0) {
-      sout << "******        Percentages according Transfer Status          ******"<<Message_EndLine;
-      PrintPercent (sout,"Result          ",nbr+nbrw,nl);
-      PrintPercent (sout,"Result + FAIL   ",nbrf,nl);
-      PrintPercent (sout,"FAIL, no Result ",nbf,nl);
-      PrintPercent (sout,"Just Warning    ",nbw,nl);
-      PrintPercent (sout,"Nothing Recorded",nbnr,nl);
+      sout << "******        Percentages according Transfer Status          ******"<<std::endl;
+      PrintPercent (TP->Messenger(),"Result          ",nbr+nbrw,nl);
+      PrintPercent (TP->Messenger(),"Result + FAIL   ",nbrf,nl);
+      PrintPercent (TP->Messenger(),"FAIL, no Result ",nbf,nl);
+      PrintPercent (TP->Messenger(),"Just Warning    ",nbw,nl);
+      PrintPercent (TP->Messenger(),"Nothing Recorded",nbnr,nl);
 /*      if (nbr+nbrw > 0)
        sout<<"******      Result          : "<< (nbr+nbrw)*100/nl<<" %"<<std::endl;
       if (nbrf > 0)
@@ -1289,13 +1292,16 @@ void XSControl_TransferReader::PrintStatsOnList(const Handle(Transfer_TransientP
 
     Interface_CheckIterator chl = TP->CheckList(Standard_False);
     chl.SetName("** TRANSFER READ CHECK **");
-    if (mode == 0) chl.Print (sout,model,(what == 5));
+    if (mode == 0)
+    {
+      chl.Print (sout, model, (what == 5));
+    }
     else {
       IFSelect_PrintCount pcm = IFSelect_CountByItem;
       if (mode == 2) pcm = IFSelect_ListByItem;
       Handle(IFSelect_CheckCounter) counter = new IFSelect_CheckCounter(Standard_True);
       counter->Analyse   (chl,model,Standard_True,(what == 5));
-      counter->PrintList (sout,model,pcm);
+      counter->PrintList (sout, model, pcm);
     }
   }
 
index 7c4034a3560b9a5fd54e4f23172fc7b5138fb279..b840373289c6b8c1ef474d908acca7c36ce91a85 100644 (file)
@@ -286,7 +286,7 @@ class XSControl_TransferReader : public Standard_Transient
   
   //! Prints statistics on current Trace File, according <what> and
   //! <mode>.  See PrintStatsProcess for details
-  Standard_EXPORT void PrintStats (const Standard_Integer theWhat, const Standard_Integer theMode = 0) const;
+  Standard_EXPORT void PrintStats (Standard_OStream& theStream, const Standard_Integer theWhat, const Standard_Integer theMode = 0) const;
   
   //! Returns the CheckList resulting from last TransferRead
   //! i.e. from TransientProcess itself, recorded from last Clear
index 4e072e0acd481f68d91add3431f19b2bb851a159..5532d3a7404195ea73dc19014cdf2dd11396698e 100644 (file)
@@ -52,15 +52,15 @@ void XSControl_TransferWriter::Clear (const Standard_Integer mode)
 
 void XSControl_TransferWriter::PrintStats (const Standard_Integer , const Standard_Integer ) const
 {
-  Handle(Message_Messenger) sout = myTransferWriter->Messenger();
+  Message_Messenger::StreamBuffer sout = myTransferWriter->Messenger()->SendInfo();
 //  A ameliorer ... !
   sout<<"\n*******************************************************************\n";
-  sout << "******        Statistics on Transfer (Write)                 ******"<<Message_EndLine;
+  sout << "******        Statistics on Transfer (Write)                 ******"<<std::endl;
   sout<<"\n*******************************************************************\n";
   sout << "******        Transfer Mode = "<<myTransferMode;
   Standard_CString modehelp = myController->ModeWriteHelp (myTransferMode);
   if (modehelp && modehelp[0] != 0) sout<<"  I.E.  "<<modehelp;
-  sout<<"       ******"<<Message_EndLine;
+  sout<<"       ******"<<std::endl;
 }
 
 
@@ -97,19 +97,19 @@ IFSelect_ReturnStatus XSControl_TransferWriter::TransferWriteTransient
   Handle(Transfer_ActorOfFinderProcess) nulact;
   myTransferWriter->SetActor (nulact);
   Handle(Standard_Transient) resultat;
-  Handle(Message_Messenger) sout = myTransferWriter->Messenger();
+  Message_Messenger::StreamBuffer sout = myTransferWriter->Messenger()->SendInfo();
   try {
     OCC_CATCH_SIGNALS
     PrintStats(myTransferMode);
     sout << "******        Transferring Transient, CDL Type = ";
-    sout<<obj->DynamicType()->Name()<<"   ******"<<Message_EndLine;
+    sout<<obj->DynamicType()->Name()<<"   ******"<<std::endl;
     status = myController->TransferWriteTransient
       (obj,myTransferWriter,model,myTransferMode);
   }
   catch(Standard_Failure const& anException) {
     sout<<"****  ****  TransferWriteShape, EXCEPTION : ";
     sout<<anException.GetMessageString(); 
-    sout<<Message_EndLine;
+    sout<<std::endl;
     status = IFSelect_RetFail;
   }
   return status;
@@ -145,19 +145,19 @@ IFSelect_ReturnStatus XSControl_TransferWriter::TransferWriteShape
   Handle(Transfer_ActorOfFinderProcess) nulact;
   myTransferWriter->SetActor (nulact);
   Handle(Standard_Transient) resultat;
-  Handle(Message_Messenger) sout = myTransferWriter->Messenger();
+  Message_Messenger::StreamBuffer sout = myTransferWriter->Messenger()->SendInfo();
   try {
     OCC_CATCH_SIGNALS
     PrintStats(myTransferMode);
     sout << "******        Transferring Shape, ShapeType = " << shape.ShapeType();
-    sout<<"                      ******"<<Message_EndLine;
+    sout<<"                      ******"<<std::endl;
     status = myController->TransferWriteShape
       (shape,myTransferWriter,model,myTransferMode);
   }
   catch(Standard_Failure const& anException) {
     sout<<"****  ****  TransferWriteShape, EXCEPTION : "; 
     sout<<anException.GetMessageString(); 
-    sout<<Message_EndLine;
+    sout<<std::endl;
     status = IFSelect_RetFail;
   }
   return status;
index 82ac3f0718d0687f4f813d43c1693f8a58f05eba..4a93408a295ad856423457cc3e2e36b143fe9046 100644 (file)
@@ -54,26 +54,26 @@ static const Standard_ExtString   voidext = { 0 };
 
     void  XSControl_Utils::TraceLine (const Standard_CString line) const
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  sout<<line<<Message_EndLine;
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
+  sout<<line<<std::endl;
 }
 
     void  XSControl_Utils::TraceLines (const Handle(Standard_Transient)& lines) const
 {
-  Handle(Message_Messenger) sout = Message::DefaultMessenger();
+  Message_Messenger::StreamBuffer sout = Message::SendInfo();
   Standard_Integer i,nb;
   DeclareAndCast(TColStd_HSequenceOfHAsciiString,linha,lines);
   if (!linha.IsNull()) {
     nb = linha->Length();
     for (i = 1; i <= nb; i ++)
-      if (!linha->Value(i).IsNull()) sout<<linha->Value(i)->ToCString()<<Message_EndLine;
+      if (!linha->Value(i).IsNull()) sout<<linha->Value(i)->ToCString()<<std::endl;
     return;
   }
   DeclareAndCast(TColStd_HSequenceOfAsciiString,lina,lines);
   if (!lina.IsNull()) {
     nb = lina->Length();
     for (i = 1; i <= nb; i ++)
-      sout<<lina->Value(i).ToCString()<<Message_EndLine;
+      sout<<lina->Value(i).ToCString()<<std::endl;
     return;
   }
   DeclareAndCast(TColStd_HSequenceOfHExtendedString,linhe,lines);
@@ -81,20 +81,20 @@ static const Standard_ExtString   voidext = { 0 };
     nb = linhe->Length();
     for (i = 1; i <= nb; i ++)
       if (!linhe->Value(i).IsNull())
-       sout << linhe->Value(i) << Message_EndLine;
+       sout << linhe->Value(i)->String() << std::endl;
     return;
   }
   DeclareAndCast(TColStd_HSequenceOfExtendedString,linee,lines);
   if (!linee.IsNull()) {
     nb = linee->Length();
     for (i = 1; i <= nb; i ++)
-      sout << linee->Value(i) << Message_EndLine;
+      sout << linee->Value(i) << std::endl;
     return;
   }
   DeclareAndCast(TCollection_HAsciiString,lin1a,lines);
-  if (!lin1a.IsNull()) sout<<lin1a;
+  if (!lin1a.IsNull()) sout<<lin1a->String();
   DeclareAndCast(TCollection_HExtendedString,lin1e,lines);
-  if (!lin1e.IsNull()) sout<<lin1e;
+  if (!lin1e.IsNull()) sout<<lin1e->String();
 }
 
 
index 6cf05457de0ec98c5fd881365a869e4886d0706b..e36152e6f2f76e86057b1341842db3ec3c17e592 100644 (file)
@@ -177,7 +177,7 @@ void XSControl_WorkSession::ClearContext ()
 
 Standard_Boolean  XSControl_WorkSession::PrintTransferStatus(const Standard_Integer num,
                                                              const Standard_Boolean wri,
-                                                             const Handle(Message_Messenger)& S) const
+                                                             Standard_OStream& S) const
 {
   const Handle(Transfer_FinderProcess)    &FP = myTransferWriter->FinderProcess();
   Handle(Transfer_TransientProcess) TP = myTransferReader->TransientProcess();
@@ -209,16 +209,16 @@ Standard_Boolean  XSControl_WorkSession::PrintTransferStatus(const Standard_Inte
     {
       S<<"  ** Transfer Root n0."<<ne;
     }
-    S<<Message_EndLine;
+    S<<std::endl;
     ent = FP->FindTransient(finder);
-    S<<" -> Type "<<finder->DynamicType()->Name()<<Message_EndLine;
+    S<<" -> Type "<<finder->DynamicType()->Name()<<std::endl;
     FP->StartTrace (binder,finder,0,0);  // pb sout/S
     if (!ent.IsNull()) {
       S<<" ** Resultat Transient, type "<<ent->DynamicType()->Name();
       const Handle(Interface_InterfaceModel) &model = Model();
       if (!model.IsNull())
-       {  S<<" In output Model, Entity ";  model->Print(ent,S);  }
-      S<<Message_EndLine;
+       {  S<<" In output Model, Entity ";  model->Print(ent, S);  }
+      S<<std::endl;
     }
   }
 
@@ -248,10 +248,10 @@ Standard_Boolean  XSControl_WorkSession::PrintTransferStatus(const Standard_Inte
     {
       S<<"  ** Transfer Root n0."<<ne;
     }
-    S<<Message_EndLine;
-    if (!model.IsNull())  {  S<<" In Model, Entity ";  model->Print(ent,S); }
+    S<<std::endl;
+    if (!model.IsNull())  {  S<<" In Model, Entity ";  model->Print(ent, S); }
     binder = TP->MapItem (ne);
-    S<<Message_EndLine;
+    S<<std::endl;
     TP->StartTrace (binder,ent,0,0);
 
   }
@@ -262,11 +262,11 @@ Standard_Boolean  XSControl_WorkSession::PrintTransferStatus(const Standard_Inte
     Standard_Integer i,nbw = ch->NbWarnings(), nbf = ch->NbFails();
     if (nbw > 0) {
       S<<" - Warnings : "<<nbw<<" :\n";
-      for (i = 1; i <= nbw; i ++) S<<ch->CWarning(i)<<Message_EndLine;
+      for (i = 1; i <= nbw; i ++) S<<ch->CWarning(i)<<std::endl;
     }
     if (nbf > 0) {
       S<<" - Fails : "<<nbf<<" :\n";
-      for (i = 1; i <= nbf; i ++) S<<ch->CFail(i)<<Message_EndLine;
+      for (i = 1; i <= nbf; i ++) S<<ch->CFail(i)<<std::endl;
     }
   }
   return Standard_True;
index a1645382530078abdc91fb9620b7cbc53a443a53..528d0e528f5cd9dac29a0891cbb56dd92d341457 100644 (file)
@@ -98,7 +98,7 @@ class XSControl_WorkSession : public IFSelect_WorkSession
   //! the Mapped n0 <num>, from MapWriter if <wri> is True, or
   //! from MapReader if <wri> is False
   //! Returns True when done, False else (i.e. num out of range)
-  Standard_EXPORT Standard_Boolean PrintTransferStatus (const Standard_Integer theNum, const Standard_Boolean theWri, const Handle(Message_Messenger)& theS) const;
+  Standard_EXPORT Standard_Boolean PrintTransferStatus (const Standard_Integer theNum, const Standard_Boolean theWri, Standard_OStream& theS) const;
   
   //! Sets a Transfer Reader, by internal ways, according mode :
   //! 0 recreates it clear,  1 clears it (does not recreate)
index 0114302f5fce2ba495efb5f0be43b3f806b43937..da26af4e59cbb940bd4d64db26fc71cfb3083046 100644 (file)
@@ -279,7 +279,7 @@ Standard_Integer XSDRAW_WHAT (const Handle(Standard_Transient)& ent)
   Handle(Interface_InterfaceModel) model = XSDRAW::Model();
   if (model.IsNull()) { std::cout<<"(No model)  Type:"<<ent->DynamicType()->Name()<<std::endl; return 0; }
   std::cout<<" Num/Id :";  
-  model->Print (ent, Message::DefaultMessenger(), 0);
+  model->Print (ent, std::cout, 0);
   std::cout<<"  --  Recorded Type:"<<model->TypeName (ent)<<std::endl;
   return model->Number(ent);
 }
index fdc0e829fa992119aa0a0ed3f76d2d52bc721cdb..ab174f753d1e918285407a1edacb9fcbdb7da590 100644 (file)
@@ -601,10 +601,12 @@ static Standard_Integer XSDRAWIGES_tplosttrim (Draw_Interpretor& di, Standard_In
       }
 
       TColStd_MapIteratorOfMapOfTransient itmap;
+      Standard_SStream aTmpStream;
       for(itmap.Initialize(aMap); itmap.More(); itmap.Next()) {
-        XSDRAW::Model()->Print (itmap.Key(), Message::DefaultMessenger());
-        di << "  ";
+        XSDRAW::Model()->Print (itmap.Key(), aTmpStream);
+        aTmpStream << "  ";
       }
+      di << aTmpStream.str().c_str();
       di << "\n";
       di << "\nNumber:"<< nbFaces << "\n";
       totFaces += nbFaces;
index e7662a8b9d1752a3bb1c9d2b1975475e0508515d..bd800972c974d4628b778bdaa425e3633b8513fc 100644 (file)
@@ -162,7 +162,9 @@ static Standard_Integer stepread (Draw_Interpretor& di/*theCommands*/, Standard_
       di<<"NbRootsForTransfer="<<num<<" :\n";
       for (i = 1; i <= num; i ++) {
         di<<"Root."<<i<<", Ent. ";
-        sr.Model()->Print (sr.RootForTransfer(i), Message::DefaultMessenger());
+        Standard_SStream aTmpStream;
+        sr.Model()->Print (sr.RootForTransfer(i), aTmpStream);
+        di << aTmpStream.str().c_str();
         di<<" Type:"<<sr.RootForTransfer(i)->DynamicType()->Name()<<"\n";
       }