]> OCCT Git - occt.git/commitdiff
0033672: Coding - New line performance update CR33672
authordpasukhi <dmitry.pasukhin@opencascade.com>
Sun, 14 Apr 2024 10:17:17 +0000 (10:17 +0000)
committerdpasukhi <dmitry.pasukhin@opencascade.com>
Sun, 14 Apr 2024 10:17:17 +0000 (10:17 +0000)
Auto-fix for std::endl to \n in the file-based stream

388 files changed:
src/AdvApp2Var/AdvApp2Var_ApproxAFunc2Var.cxx
src/AdvApprox/AdvApprox_ApproxAFunction.cxx
src/AdvApprox/AdvApprox_SimpleApprox.cxx
src/AppDef/AppDef_MultiLine.cxx
src/AppDef/AppDef_MultiPointConstraint.cxx
src/AppDef/AppDef_Variational.cxx
src/AppParCurves/AppParCurves_MultiBSpCurve.cxx
src/AppParCurves/AppParCurves_MultiCurve.cxx
src/AppParCurves/AppParCurves_MultiPoint.cxx
src/Approx/Approx_Curve3d.cxx
src/Approx/Approx_CurvilinearParameter.cxx
src/Approx/Approx_SweepApproximation.cxx
src/BRepBuilderAPI/BRepBuilderAPI_Sewing.cxx
src/BRepCheck/BRepCheck_Shell.cxx
src/BRepExtrema/BRepExtrema_DistShapeShape.cxx
src/BRepMesh/BRepMesh_DataStructureOfDelaun.cxx
src/BRepOffset/BRepOffset_Inter2d.cxx
src/BRepOffsetAPI/BRepOffsetAPI_MiddlePath.cxx
src/BRepTest/BRepTest_CurveCommands.cxx
src/BRepTest/BRepTest_SurfaceCommands.cxx
src/BRepTest/BRepTest_SweepCommands.cxx
src/BRepTools/BRepTools_Debug.cxx
src/BiTgte/BiTgte_Blend.cxx
src/BinTools/BinTools_Curve2dSet.cxx
src/BinTools/BinTools_CurveSet.cxx
src/BinTools/BinTools_IStream.cxx
src/BinTools/BinTools_LocationSet.cxx
src/BinTools/BinTools_ShapeReader.cxx
src/BinTools/BinTools_ShapeSet.cxx
src/BinTools/BinTools_ShapeWriter.cxx
src/BinTools/BinTools_SurfaceSet.cxx
src/Bisector/Bisector_BisecAna.cxx
src/Bisector/Bisector_BisecCC.cxx
src/Bisector/Bisector_BisecPC.cxx
src/Bisector/Bisector_PointOnBis.cxx
src/CDF/CDF_Application.cxx
src/CDM/CDM_Document.cxx
src/CDM/CDM_MetaData.cxx
src/ChFi3d/ChFi3d_ChBuilder.cxx
src/Contap/Contap_Contour.cxx
src/DBRep/DBRep.cxx
src/DBRep/DBRep_DrawableShape.cxx
src/DBRep/DBRep_IsoBuilder.cxx
src/DDF/DDF.cxx
src/DDF/DDF_Browser.cxx
src/DDF/DDF_Data.cxx
src/DDataStd/DDataStd_BasicCommands.cxx
src/DDataStd/DDataStd_DrawPresentation.cxx
src/DDataStd/DDataStd_TreeBrowser.cxx
src/DDocStd/DDocStd.cxx
src/DDocStd/DDocStd_DrawDocument.cxx
src/DNaming/DNaming_ModelingCommands.cxx
src/DNaming/DNaming_SelectionCommands.cxx
src/DNaming/DNaming_SelectionDriver.cxx
src/Draw/Draw.cxx
src/Draw/Draw_BasicCommands.cxx
src/Draw/Draw_Debug.cxx
src/Draw/Draw_GraphicCommands.cxx
src/Draw/Draw_Interpretor.cxx
src/Draw/Draw_MessageCommands.cxx
src/Draw/Draw_VariableCommands.cxx
src/Draw/Draw_Window.cxx
src/DrawTrSurf/DrawTrSurf_Point.cxx
src/ExpToCasExe/lex.exptocas.cxx
src/FEmTool/FEmTool_ProfileMatrix.cxx
src/FairCurve/FairCurve_Batten.cxx
src/FairCurve/FairCurve_MinimalVariation.cxx
src/Geom2dConvert/Geom2dConvert_ApproxCurve.cxx
src/Geom2dHatch/Geom2dHatch_Hatcher.cxx
src/GeomConvert/GeomConvert_ApproxCurve.cxx
src/GeomConvert/GeomConvert_ApproxSurface.cxx
src/GeomFill/GeomFill_ConstrainedFilling.cxx
src/GeomFill/GeomFill_FunctionGuide.cxx
src/GeomTools/GeomTools_Curve2dSet.cxx
src/GeomTools/GeomTools_CurveSet.cxx
src/GeomTools/GeomTools_Debug.cxx
src/GeomTools/GeomTools_SurfaceSet.cxx
src/GeomTools/GeomTools_UndefinedTypeHandler.cxx
src/GeometryTest/GeometryTest_APICommands.cxx
src/GeometryTest/GeometryTest_CurveCommands.cxx
src/GeometryTest/GeometryTest_TestProjCommands.cxx
src/GeomliteTest/GeomliteTest_SurfaceCommands.cxx
src/Graphic3d/Graphic3d_ShaderProgram.cxx [changed mode: 0755->0644]
src/HLRAlgo/HLRAlgo_PolyInternalData.cxx
src/HLRBRep/HLRBRep_InternalAlgo.cxx
src/HLRTest/HLRTest_OutLiner.cxx
src/HLRTest/HLRTest_Projector.cxx
src/HatchGen/HatchGen_Domain.cxx
src/HatchGen/HatchGen_PointOnElement.cxx
src/HatchGen/HatchGen_PointOnHatching.cxx
src/IFSelect/IFSelect_ContextModif.cxx
src/IFSelect/IFSelect_EditForm.cxx
src/IFSelect/IFSelect_Editor.cxx
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_TransformStandard.cxx
src/IFSelect/IFSelect_WorkSession.cxx
src/IGESAppli/IGESAppli_ToolDrilledHole.cxx
src/IGESAppli/IGESAppli_ToolFiniteElement.cxx
src/IGESAppli/IGESAppli_ToolFlow.cxx
src/IGESAppli/IGESAppli_ToolLineWidening.cxx
src/IGESAppli/IGESAppli_ToolNodalConstraint.cxx
src/IGESAppli/IGESAppli_ToolNodalDisplAndRot.cxx
src/IGESAppli/IGESAppli_ToolNode.cxx
src/IGESAppli/IGESAppli_ToolPWBArtworkStackup.cxx
src/IGESAppli/IGESAppli_ToolPWBDrilledHole.cxx
src/IGESAppli/IGESAppli_ToolPartNumber.cxx
src/IGESAppli/IGESAppli_ToolPinNumber.cxx
src/IGESAppli/IGESAppli_ToolPipingFlow.cxx
src/IGESAppli/IGESAppli_ToolReferenceDesignator.cxx
src/IGESAppli/IGESAppli_ToolRegionRestriction.cxx
src/IGESBasic/IGESBasic_ToolAssocGroupType.cxx
src/IGESBasic/IGESBasic_ToolExternalRefFile.cxx
src/IGESBasic/IGESBasic_ToolExternalRefFileIndex.cxx
src/IGESBasic/IGESBasic_ToolExternalRefFileName.cxx
src/IGESBasic/IGESBasic_ToolExternalRefLibName.cxx
src/IGESBasic/IGESBasic_ToolExternalRefName.cxx
src/IGESBasic/IGESBasic_ToolExternalReferenceFile.cxx
src/IGESBasic/IGESBasic_ToolGroup.cxx
src/IGESBasic/IGESBasic_ToolGroupWithoutBackP.cxx
src/IGESBasic/IGESBasic_ToolHierarchy.cxx
src/IGESBasic/IGESBasic_ToolName.cxx
src/IGESBasic/IGESBasic_ToolOrderedGroup.cxx
src/IGESBasic/IGESBasic_ToolOrderedGroupWithoutBackP.cxx
src/IGESBasic/IGESBasic_ToolSingleParent.cxx
src/IGESBasic/IGESBasic_ToolSingularSubfigure.cxx
src/IGESBasic/IGESBasic_ToolSubfigureDef.cxx
src/IGESControl/IGESControl_Reader.cxx
src/IGESData/IGESData_DefaultSpecific.cxx
src/IGESData/IGESData_IGESDumper.cxx
src/IGESData/IGESData_IGESModel.cxx
src/IGESData/IGESData_IGESWriter.cxx
src/IGESDefs/IGESDefs_ToolAssociativityDef.cxx
src/IGESDefs/IGESDefs_ToolAttributeDef.cxx
src/IGESDefs/IGESDefs_ToolAttributeTable.cxx
src/IGESDefs/IGESDefs_ToolGenericData.cxx
src/IGESDefs/IGESDefs_ToolMacroDef.cxx
src/IGESDefs/IGESDefs_ToolTabularData.cxx
src/IGESDefs/IGESDefs_ToolUnitsData.cxx
src/IGESDimen/IGESDimen_ToolAngularDimension.cxx
src/IGESDimen/IGESDimen_ToolBasicDimension.cxx
src/IGESDimen/IGESDimen_ToolCenterLine.cxx
src/IGESDimen/IGESDimen_ToolCurveDimension.cxx
src/IGESDimen/IGESDimen_ToolDiameterDimension.cxx
src/IGESDimen/IGESDimen_ToolDimensionDisplayData.cxx
src/IGESDimen/IGESDimen_ToolDimensionTolerance.cxx
src/IGESDimen/IGESDimen_ToolDimensionUnits.cxx
src/IGESDimen/IGESDimen_ToolDimensionedGeometry.cxx
src/IGESDimen/IGESDimen_ToolFlagNote.cxx
src/IGESDimen/IGESDimen_ToolGeneralLabel.cxx
src/IGESDimen/IGESDimen_ToolGeneralNote.cxx
src/IGESDimen/IGESDimen_ToolGeneralSymbol.cxx
src/IGESDimen/IGESDimen_ToolLeaderArrow.cxx
src/IGESDimen/IGESDimen_ToolLinearDimension.cxx
src/IGESDimen/IGESDimen_ToolNewDimensionedGeometry.cxx
src/IGESDimen/IGESDimen_ToolNewGeneralNote.cxx
src/IGESDimen/IGESDimen_ToolRadiusDimension.cxx
src/IGESDimen/IGESDimen_ToolSection.cxx
src/IGESDimen/IGESDimen_ToolWitnessLine.cxx
src/IGESDraw/IGESDraw_ToolCircArraySubfigure.cxx
src/IGESDraw/IGESDraw_ToolConnectPoint.cxx
src/IGESDraw/IGESDraw_ToolDrawing.cxx
src/IGESDraw/IGESDraw_ToolDrawingWithRotation.cxx
src/IGESDraw/IGESDraw_ToolLabelDisplay.cxx
src/IGESDraw/IGESDraw_ToolNetworkSubfigure.cxx
src/IGESDraw/IGESDraw_ToolNetworkSubfigureDef.cxx
src/IGESDraw/IGESDraw_ToolPerspectiveView.cxx
src/IGESDraw/IGESDraw_ToolPlanar.cxx
src/IGESDraw/IGESDraw_ToolRectArraySubfigure.cxx
src/IGESDraw/IGESDraw_ToolSegmentedViewsVisible.cxx
src/IGESDraw/IGESDraw_ToolView.cxx
src/IGESDraw/IGESDraw_ToolViewsVisible.cxx
src/IGESDraw/IGESDraw_ToolViewsVisibleWithAttr.cxx
src/IGESGeom/IGESGeom_ToolBSplineCurve.cxx
src/IGESGeom/IGESGeom_ToolBSplineSurface.cxx
src/IGESGeom/IGESGeom_ToolBoundary.cxx
src/IGESGeom/IGESGeom_ToolBoundedSurface.cxx
src/IGESGeom/IGESGeom_ToolCircularArc.cxx
src/IGESGeom/IGESGeom_ToolCompositeCurve.cxx
src/IGESGeom/IGESGeom_ToolConicArc.cxx
src/IGESGeom/IGESGeom_ToolCopiousData.cxx
src/IGESGeom/IGESGeom_ToolDirection.cxx
src/IGESGeom/IGESGeom_ToolFlash.cxx
src/IGESGeom/IGESGeom_ToolLine.cxx
src/IGESGeom/IGESGeom_ToolOffsetCurve.cxx
src/IGESGeom/IGESGeom_ToolOffsetSurface.cxx
src/IGESGeom/IGESGeom_ToolPlane.cxx
src/IGESGeom/IGESGeom_ToolPoint.cxx
src/IGESGeom/IGESGeom_ToolSplineCurve.cxx
src/IGESGeom/IGESGeom_ToolSplineSurface.cxx
src/IGESGeom/IGESGeom_ToolSurfaceOfRevolution.cxx
src/IGESGeom/IGESGeom_ToolTabulatedCylinder.cxx
src/IGESGeom/IGESGeom_ToolTransformationMatrix.cxx
src/IGESGeom/IGESGeom_ToolTrimmedSurface.cxx
src/IGESGeom/IGESGeom_TransformationMatrix.cxx
src/IGESGraph/IGESGraph_ToolColor.cxx
src/IGESGraph/IGESGraph_ToolDefinitionLevel.cxx
src/IGESGraph/IGESGraph_ToolDrawingSize.cxx
src/IGESGraph/IGESGraph_ToolDrawingUnits.cxx
src/IGESGraph/IGESGraph_ToolHighLight.cxx
src/IGESGraph/IGESGraph_ToolIntercharacterSpacing.cxx
src/IGESGraph/IGESGraph_ToolLineFontDefPattern.cxx
src/IGESGraph/IGESGraph_ToolLineFontDefTemplate.cxx
src/IGESGraph/IGESGraph_ToolLineFontPredefined.cxx
src/IGESGraph/IGESGraph_ToolNominalSize.cxx
src/IGESGraph/IGESGraph_ToolPick.cxx
src/IGESGraph/IGESGraph_ToolTextDisplayTemplate.cxx
src/IGESGraph/IGESGraph_ToolTextFontDef.cxx
src/IGESGraph/IGESGraph_ToolUniformRectGrid.cxx
src/IGESSelect/IGESSelect_Activator.cxx
src/IGESSelect/IGESSelect_CounterOfLevelNumber.cxx
src/IGESSelect/IGESSelect_WorkLibrary.cxx
src/IGESSolid/IGESSolid_ToolBlock.cxx
src/IGESSolid/IGESSolid_ToolConeFrustum.cxx
src/IGESSolid/IGESSolid_ToolConicalSurface.cxx
src/IGESSolid/IGESSolid_ToolCylinder.cxx
src/IGESSolid/IGESSolid_ToolCylindricalSurface.cxx
src/IGESSolid/IGESSolid_ToolEdgeList.cxx
src/IGESSolid/IGESSolid_ToolEllipsoid.cxx
src/IGESSolid/IGESSolid_ToolFace.cxx
src/IGESSolid/IGESSolid_ToolLoop.cxx
src/IGESSolid/IGESSolid_ToolManifoldSolid.cxx
src/IGESSolid/IGESSolid_ToolPlaneSurface.cxx
src/IGESSolid/IGESSolid_ToolRightAngularWedge.cxx
src/IGESSolid/IGESSolid_ToolSelectedComponent.cxx
src/IGESSolid/IGESSolid_ToolShell.cxx
src/IGESSolid/IGESSolid_ToolSolidAssembly.cxx
src/IGESSolid/IGESSolid_ToolSolidInstance.cxx
src/IGESSolid/IGESSolid_ToolSolidOfLinearExtrusion.cxx
src/IGESSolid/IGESSolid_ToolSolidOfRevolution.cxx
src/IGESSolid/IGESSolid_ToolSphere.cxx
src/IGESSolid/IGESSolid_ToolSphericalSurface.cxx
src/IGESSolid/IGESSolid_ToolToroidalSurface.cxx
src/IGESSolid/IGESSolid_ToolTorus.cxx
src/IGESSolid/IGESSolid_ToolVertexList.cxx
src/IGESToBRep/IGESToBRep_CurveAndSurface.cxx
src/IntAna/IntAna_IntQuadQuad.cxx
src/IntAna2d/IntAna2d_AnaIntersection_5.cxx
src/IntCurveSurface/IntCurveSurface_Intersection.cxx
src/IntCurveSurface/IntCurveSurface_IntersectionPoint.cxx
src/IntCurveSurface/IntCurveSurface_IntersectionSegment.cxx
src/IntPatch/IntPatch_Point.cxx
src/IntPatch/IntPatch_Polygo.cxx
src/IntPatch/IntPatch_RLine.cxx
src/IntPatch/IntPatch_RstInt.cxx
src/IntPatch/IntPatch_WLine.cxx
src/Interface/Interface_CheckIterator.cxx
src/Interface/Interface_MSG.cxx
src/Interface/Interface_ShareTool.cxx
src/Interface/Interface_Static.cxx
src/Intf/Intf_Interference.cxx
src/Intf/Intf_SectionLine.cxx
src/LDOM/LDOM_XmlWriter.cxx
src/LocOpe/LocOpe_SplitDrafts.cxx
src/LocOpe/LocOpe_SplitShape.cxx
src/LocalAnalysis/LocalAnalysis.cxx
src/MAT/MAT_Bisector.cxx
src/MAT2d/MAT2d_Connexion.cxx
src/MeshTest/MeshTest_Debug.cxx
src/MeshTest/MeshTest_PluginCommands.cxx
src/Message/Message_PrinterOStream.cxx
src/Message/Message_Report.cxx
src/MoniTool/MoniTool_Timer.cxx
src/MoniTool/MoniTool_TypedValue.cxx
src/OSD/OSD_MAllocHook.cxx
src/OSD/OSD_signal.cxx
src/Plugin/Plugin.cxx
src/Poly/Poly_CoherentNode.cxx
src/ProjLib/ProjLib_ProjectOnSurface.cxx
src/QABugs/QABugs_11.cxx
src/QABugs/QABugs_19.cxx
src/QABugs/QABugs_20.cxx
src/QABugs/QABugs_BVH.cxx
src/QADNaming/QADNaming.cxx
src/QADraw/QADraw.cxx
src/QANCollection/QANCollection_Perf.cxx
src/QANCollection/QANCollection_Stl.cxx
src/QANCollection/QANCollection_Test.cxx
src/Resource/Resource_Manager.cxx
src/STEPControl/STEPControl_ActorRead.cxx
src/STEPControl/STEPControl_Reader.cxx
src/STEPSelections/STEPSelections_AssemblyExplorer.cxx
src/ShapeBuild/ShapeBuild_ReShape.cxx
src/Standard/Standard_ErrorHandler.cxx
src/StdLDrivers/StdLDrivers_DocumentRetrievalDriver.cxx
src/StepData/StepData_StepDumper.cxx
src/StepData/StepData_StepReaderData.cxx
src/StepData/StepData_StepReaderTool.cxx
src/StepFile/StepFile_Read.cxx
src/StepSelect/StepSelect_Activator.cxx
src/StepSelect/StepSelect_WorkLibrary.cxx
src/StepShape/StepShape_OrientedClosedShell.cxx
src/StepShape/StepShape_OrientedEdge.cxx
src/StepShape/StepShape_OrientedFace.cxx
src/StepShape/StepShape_OrientedOpenShell.cxx
src/StepShape/StepShape_OrientedPath.cxx
src/StepToTopoDS/StepToTopoDS_Builder.cxx
src/TCollection/TCollection_HExtendedString.cxx
src/TDF/TDF_Attribute.cxx
src/TDF/TDF_Data.cxx
src/TDF/TDF_DataSet.cxx
src/TDF/TDF_Delta.cxx
src/TDF/TDF_IDFilter.cxx
src/TDF/TDF_Label.cxx
src/TDF/TDF_RelocationTable.cxx
src/TDF/TDF_Tool.cxx
src/TDataStd/TDataStd_AsciiString.cxx
src/TDataStd/TDataStd_BooleanArray.cxx
src/TDataStd/TDataStd_BooleanList.cxx
src/TDataStd/TDataStd_ByteArray.cxx
src/TDataStd/TDataStd_ExtStringArray.cxx
src/TDataStd/TDataStd_ExtStringList.cxx
src/TDataStd/TDataStd_IntPackedMap.cxx
src/TDataStd/TDataStd_IntegerArray.cxx
src/TDataStd/TDataStd_IntegerList.cxx
src/TDataStd/TDataStd_Name.cxx
src/TDataStd/TDataStd_RealArray.cxx
src/TDataStd/TDataStd_RealList.cxx
src/TDataStd/TDataStd_ReferenceArray.cxx
src/TDataStd/TDataStd_ReferenceList.cxx
src/TDataStd/TDataStd_TreeNode.cxx
src/TDocStd/TDocStd_MultiTransactionManager.cxx
src/TFunction/TFunction_Iterator.cxx
src/TFunction/TFunction_Logbook.cxx
src/TNaming/TNaming.cxx
src/TNaming/TNaming_Naming.cxx
src/TNaming/TNaming_Translator.cxx
src/TNaming/TNaming_UsedShapes.cxx
src/TObj/TObj_Persistence.cxx
src/TopLoc/TopLoc_Datum3D.cxx
src/TopLoc/TopLoc_Location.cxx
src/TopOpeBRep/TopOpeBRep_FacesFiller_1.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_GIter.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_GTool.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_GTopo.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Griddump.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_KPart.cxx
src/TopOpeBRepDS/TopOpeBRepDS_Check.cxx
src/TopOpeBRepDS/TopOpeBRepDS_connex.cxx
src/TopOpeBRepTool/TopOpeBRepTool_faulty.cxx
src/TopTools/TopTools_LocationSet.cxx
src/TopTools/TopTools_ShapeSet.cxx
src/Transfer/Transfer_FinderProcess.cxx
src/Transfer/Transfer_ProcessForFinder_0.cxx
src/Transfer/Transfer_ProcessForTransient_0.cxx
src/Transfer/Transfer_TransientProcess.cxx
src/TransferBRep/TransferBRep_Reader.cxx
src/Units/Units_Dimensions.cxx
src/Units/Units_Measurement.cxx
src/Units/Units_Quantity.cxx
src/Units/Units_ShiftedToken.cxx
src/Units/Units_ShiftedUnit.cxx
src/Units/Units_Token.cxx
src/Units/Units_Unit.cxx
src/Units/Units_UnitsDictionary.cxx
src/Units/Units_UnitsSystem.cxx
src/ViewerTest/ViewerTest_CmdParser.cxx
src/ViewerTest/ViewerTest_ObjectCommands.cxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx
src/VrmlConverter/VrmlConverter_WFDeflectionRestrictedFace.cxx
src/XCAFDoc/XCAFDoc_GraphNode.cxx
src/XCAFDoc/XCAFDoc_LengthUnit.cxx
src/XCAFDoc/XCAFDoc_ShapeTool.cxx
src/XDEDRAW/XDEDRAW.cxx
src/XDEDRAW/XDEDRAW_Views.cxx
src/XSControl/XSControl_FuncShape.cxx
src/XSControl/XSControl_Functions.cxx
src/XSControl/XSControl_TransferReader.cxx
src/XSControl/XSControl_TransferWriter.cxx
src/XSControl/XSControl_Utils.cxx
src/XSControl/XSControl_WorkSession.cxx
src/XSDRAW/XSDRAW.cxx
src/XSDRAWIGES/XSDRAWIGES.cxx
src/XSDRAWSTL/XSDRAWSTL_DataSource.cxx
src/XmlLDrivers/XmlLDrivers_DocumentRetrievalDriver.cxx
src/math/math_BissecNewton.cxx
src/math/math_BracketMinimum.cxx
src/math/math_BracketedRoot.cxx
src/math/math_FunctionAllRoots.cxx
src/math/math_FunctionRoot.cxx
src/math/math_FunctionRoots.cxx
src/math/math_Gauss.cxx
src/math/math_Jacobi.cxx
src/math/math_NewtonMinimum.cxx
src/math/math_Uzawa.cxx

index f07a63a03549b4d376a645854523f7ee85291830..ed40686fa2cda2da9bb5df30fa5cb43cd44ed9cb 100644 (file)
@@ -1065,44 +1065,44 @@ Standard_Real
 void AdvApp2Var_ApproxAFunc2Var::Dump(Standard_OStream& o) const 
 {
   Standard_Integer iesp=1,NbKU,NbKV,ik;
-  o<<std::endl;
-  if (!myHasResult) { o<<"No result"<<std::endl; }
+  o<<'\n';
+  if (!myHasResult) { o<<"No result"<<'\n'; }
   else {
     o<<"There is a result";
     if (myDone) {
-      o<<" within the requested tolerance "<<my3DTolerances->Value(iesp)<<std::endl;
+      o<<" within the requested tolerance "<<my3DTolerances->Value(iesp)<<'\n';
     }
     else if (my3DMaxError->Value(iesp)>my3DTolerances->Value(iesp)) {
-      o<<" WITHOUT the requested tolerance "<<my3DTolerances->Value(iesp)<<std::endl;
+      o<<" WITHOUT the requested tolerance "<<my3DTolerances->Value(iesp)<<'\n';
     }
     else {
-      o<<" WITHOUT the requested continuities "<<std::endl;
+      o<<" WITHOUT the requested continuities "<<'\n';
     }
-    o<<std::endl;
-    o<<"Result max error :"<<my3DMaxError->Value(iesp)<<std::endl;
-    o<<"Result average error :"<<my3DAverageError->Value(iesp)<<std::endl;
-    o<<"Result max error on U frontiers :"<<my3DUFrontError->Value(iesp)<<std::endl;
-    o<<"Result max error on V frontiers :"<<my3DVFrontError->Value(iesp)<<std::endl;
-    o<<std::endl;
+    o<<'\n';
+    o<<"Result max error :"<<my3DMaxError->Value(iesp)<<'\n';
+    o<<"Result average error :"<<my3DAverageError->Value(iesp)<<'\n';
+    o<<"Result max error on U frontiers :"<<my3DUFrontError->Value(iesp)<<'\n';
+    o<<"Result max error on V frontiers :"<<my3DVFrontError->Value(iesp)<<'\n';
+    o<<'\n';
     o<<"Degree of Bezier patches in U : "<<myDegreeInU
-      <<"  in V : "<<myDegreeInV<<std::endl;
-    o<<std::endl;
+      <<"  in V : "<<myDegreeInV<<'\n';
+    o<<'\n';
     Handle(Geom_BSplineSurface) S
       = Handle(Geom_BSplineSurface)::DownCast(mySurfaces->Value(iesp));
     o<<"Number of poles in U : "<<S->NbUPoles()
-      <<"  in V : "<<S->NbVPoles()<<std::endl;
-    o<<std::endl;
+      <<"  in V : "<<S->NbVPoles()<<'\n';
+    o<<'\n';
     NbKU = S->NbUKnots();
     NbKV = S->NbVKnots();
-    o<<"Number of knots in U : "<<NbKU<<std::endl;
+    o<<"Number of knots in U : "<<NbKU<<'\n';
     for (ik=1;ik<=NbKU;ik++) {
-      o<<"   "<<ik<<" : "<<S->UKnot(ik)<<"   mult : "<<S->UMultiplicity(ik)<<std::endl;
+      o<<"   "<<ik<<" : "<<S->UKnot(ik)<<"   mult : "<<S->UMultiplicity(ik)<<'\n';
     }
-    o<<std::endl;
-    o<<"Number of knots in V : "<<NbKV<<std::endl;
+    o<<'\n';
+    o<<"Number of knots in V : "<<NbKV<<'\n';
     for (ik=1;ik<=NbKV;ik++) {
-      o<<"   "<<ik<<" : "<<S->VKnot(ik)<<"   mult : "<<S->VMultiplicity(ik)<<std::endl;
+      o<<"   "<<ik<<" : "<<S->VKnot(ik)<<"   mult : "<<S->VMultiplicity(ik)<<'\n';
     }
-    o<<std::endl;
+    o<<'\n';
   }
 }
index 388ddf909db447b7723864335c28ff15a51c13b6..b30dd183f9daf5a99befe76c87e4e833360dca1b 100644 (file)
@@ -1090,25 +1090,25 @@ Standard_Real  AdvApprox_ApproxAFunction::AverageError(
 void  AdvApprox_ApproxAFunction::Dump(Standard_OStream& o) const 
 {
   Standard_Integer ii;
-  o << "Dump of ApproxAFunction" << std::endl;
+  o << "Dump of ApproxAFunction" << '\n';
   if (myNumSubSpaces[0] > 0) {
-    o << "Error(s) 1d = " << std::endl;
+    o << "Error(s) 1d = " << '\n';
     for (ii=1; ii <= myNumSubSpaces[0]; ii++) {
-      o << "   " << MaxError(1, ii) << std::endl;
+      o << "   " << MaxError(1, ii) << '\n';
     }
   }
 
   if (myNumSubSpaces[1] > 0) {
-    o << "Error(s) 2d = " << std::endl;
+    o << "Error(s) 2d = " << '\n';
     for (ii=1; ii <= myNumSubSpaces[1]; ii++) {
-      o << "   " << MaxError(2, ii) << std::endl;
+      o << "   " << MaxError(2, ii) << '\n';
     }
   }
 
   if (myNumSubSpaces[2] > 0) {
-    o << "Error(s) 3d = " << std::endl;
+    o << "Error(s) 3d = " << '\n';
     for (ii=1; ii <= myNumSubSpaces[2]; ii++) {
-      o << "   " << MaxError(3, ii) << std::endl;
+      o << "   " << MaxError(3, ii) << '\n';
     }
   }
 }
index 6ffcec798b291209c2e9276b7969f46515c52ace..95c234ef30424b7e773af597f92bbeaec1684e71 100644 (file)
@@ -378,9 +378,9 @@ Standard_Real AdvApprox_SimpleApprox::AverageError(const Standard_Integer Index)
 void AdvApprox_SimpleApprox::Dump(Standard_OStream& o) const
 {
   Standard_Integer ii;
-  o << "Dump of SimpleApprox " << std::endl;
+  o << "Dump of SimpleApprox " << '\n';
   for (ii=1; ii <= myTotalNumSS; ii++) {
-    o << "Error   " << MaxError(ii) << std::endl;
+    o << "Error   " << MaxError(ii) << '\n';
   }
 }
 
index b53ea7db6dabdc97e2c6f9032bba62df535153be..7e324f172ece6e647c53e54f85ac6653c192770f 100644 (file)
@@ -96,8 +96,8 @@ AppDef_MultiPointConstraint AppDef_MultiLine::Value (const Standard_Integer Inde
 
 void AppDef_MultiLine::Dump(Standard_OStream& o) const
 {
-  o << "AppDef_MultiLine dump:" << std::endl;
+  o << "AppDef_MultiLine dump:" << '\n';
 //  AppDef_MultiPointConstraint MP = tabMult->Value(1);
-  o << "It contains " <<  tabMult->Length() << " MultiPointConstraint"<< std::endl;
+  o << "It contains " <<  tabMult->Length() << " MultiPointConstraint"<< '\n';
 //  o << MP->NbPoints() << " 3d and " << MP->NbPoints2d() << std::endl;
 }
index b35ba67def5f0469970b2a65cde2af554fac4bb1..3931abd30089b25843b0bc410391ed42b75a3a44 100644 (file)
@@ -316,5 +316,5 @@ Standard_Boolean AppDef_MultiPointConstraint::IsCurvaturePoint() const
 
 void AppDef_MultiPointConstraint::Dump(Standard_OStream& o) const
 {
-  o << "AppDef_MultiPointConstraint dump:" << std::endl;
+  o << "AppDef_MultiPointConstraint dump:" << '\n';
 }
index b4604d0e351b7d33f0ad1c56d7f89702d0f53efe..7d62f64fc73188eb1394cd5da7c60d73c3b628b5 100644 (file)
@@ -878,34 +878,34 @@ Standard_Integer AppDef_Variational::NbIterations() const
 //
 void AppDef_Variational::Dump(Standard_OStream& o) const 
 {
-  o << " \nVariational Smoothing " << std::endl;
-  o << " Number of multipoints                   "  << myNbPoints << std::endl;
-  o << " Number of 2d par multipoint "  << myNbP2d << std::endl;
-  o << " Nombre of 3d par multipoint "  << myNbP3d << std::endl;
-  o << " Number of PassagePoint      "  << myNbPassPoints << std::endl;
-  o << " Number of TangencyPoints    "  << myNbTangPoints << std::endl;
-  o << " Number of CurvaturePoints   "  << myNbCurvPoints << std::endl;
+  o << " \nVariational Smoothing " << '\n';
+  o << " Number of multipoints                   "  << myNbPoints << '\n';
+  o << " Number of 2d par multipoint "  << myNbP2d << '\n';
+  o << " Nombre of 3d par multipoint "  << myNbP3d << '\n';
+  o << " Number of PassagePoint      "  << myNbPassPoints << '\n';
+  o << " Number of TangencyPoints    "  << myNbTangPoints << '\n';
+  o << " Number of CurvaturePoints   "  << myNbCurvPoints << '\n';
   o << " \nTolerance " << o.setf(std::ios::scientific) << std::setprecision(3) << std::setw(9) << myTolerance;
-  if ( WithMinMax()) { o << "  as Max Error." << std::endl;}
-  else { o << "  as size Error." << std::endl;}
+  if ( WithMinMax()) { o << "  as Max Error." << '\n';}
+  else { o << "  as size Error." << '\n';}
   o << "CriteriumWeights : " << myPercent[0] << " , " 
-    << myPercent[1] << " , " << myPercent[2] << std::endl;
+    << myPercent[1] << " , " << myPercent[2] << '\n';
 
   if (myIsDone ) {
-    o << " MaxError             " << std::setprecision(3) << std::setw(9) << myMaxError << std::endl;
-    o << " Index of  MaxError   " << myMaxErrorIndex << std::endl;
-    o << " Average Error        " << std::setprecision(3) << std::setw(9) << myAverageError << std::endl;
-    o << " Quadratic Error      " << std::setprecision(3) << std::setw(9) << myCriterium[0] << std::endl;
-    o << " Tension Criterium    " << std::setprecision(3) << std::setw(9) << myCriterium[1] << std::endl;
-    o << " Flexion  Criterium   " << std::setprecision(3) << std::setw(9) << myCriterium[2] << std::endl;
-    o << " Jerk  Criterium      " << std::setprecision(3) << std::setw(9) << myCriterium[3] << std::endl;
-    o << " NbSegments           "  << myKnots->Length()-1 << std::endl;
+    o << " MaxError             " << std::setprecision(3) << std::setw(9) << myMaxError << '\n';
+    o << " Index of  MaxError   " << myMaxErrorIndex << '\n';
+    o << " Average Error        " << std::setprecision(3) << std::setw(9) << myAverageError << '\n';
+    o << " Quadratic Error      " << std::setprecision(3) << std::setw(9) << myCriterium[0] << '\n';
+    o << " Tension Criterium    " << std::setprecision(3) << std::setw(9) << myCriterium[1] << '\n';
+    o << " Flexion  Criterium   " << std::setprecision(3) << std::setw(9) << myCriterium[2] << '\n';
+    o << " Jerk  Criterium      " << std::setprecision(3) << std::setw(9) << myCriterium[3] << '\n';
+    o << " NbSegments           "  << myKnots->Length()-1 << '\n';
   }
   else
   {
     o << (myIsOverConstr
        ? " The problem is overconstraint"
-       : " Error in approximation") << std::endl;
+       : " Error in approximation") << '\n';
   }
 }
 
index ed0a35993a6381bcb88eedb1c06c13714adccf4f..57fe27feb7d4a1c9bc1c42a74f2d21ee448e9e6e 100644 (file)
@@ -288,9 +288,9 @@ void AppParCurves_MultiBSpCurve::D2 (const Standard_Integer CuIndex,
 
 void AppParCurves_MultiBSpCurve::Dump(Standard_OStream& o) const
 {
-  o << "AppParCurves_MultiBSpCurve dump:" << std::endl;
-  o << " It contains " << NbCurves() << " BSpline curves "<< std::endl;
-  o << " The poles are: " << std::endl;
+  o << "AppParCurves_MultiBSpCurve dump:" << '\n';
+  o << " It contains " << NbCurves() << " BSpline curves "<< '\n';
+  o << " The poles are: " << '\n';
 /*  for (Standard_Integer i = 1; i <= NbCurves(); i++) {
     o << " Curve No. " << i << std::endl;
     if (Dimension(i) == 3) {
index e9fd50925293159ccff026f096c3ded9bf86dc17..201ebf3a178ff22c47c0ceb2670d7746d56ff57e 100644 (file)
@@ -283,9 +283,9 @@ void AppParCurves_MultiCurve::D2 (const Standard_Integer CuIndex,
 
 void AppParCurves_MultiCurve::Dump(Standard_OStream& o) const
 {
-  o << "AppParCurves_MultiCurve dump:" << std::endl;
-  o << " It contains " << NbCurves() << " Bezier curves of degree " << tabPoint->Length()-1 << std::endl;
-  o << " The poles are: " << std::endl;
+  o << "AppParCurves_MultiCurve dump:" << '\n';
+  o << " It contains " << NbCurves() << " Bezier curves of degree " << tabPoint->Length()-1 << '\n';
+  o << " The poles are: " << '\n';
 /*  for (Standard_Integer i = 1; i <= NbCurves(); i++) {
     o << " Curve No. " << i << std::endl;
     if (Dimension(i) == 3) {
index faf2c490d8d3efba312033cc1fd7bfeea5684ff3..450bb33838df06930748e310c2aacff806948f38 100644 (file)
@@ -172,20 +172,20 @@ const gp_Pnt2d& AppParCurves_MultiPoint::Point2d (const Standard_Integer Index)
 
 void AppParCurves_MultiPoint::Dump(Standard_OStream& o) const
 {
-  o << "AppParCurves_MultiPoint dump:" << std::endl;
+  o << "AppParCurves_MultiPoint dump:" << '\n';
   const Standard_Integer  aNbPnts3D = NbPoints(),
                           aNbPnts2D = NbPoints2d();
-  o << "It contains " << aNbPnts3D << " 3d points and " << aNbPnts2D <<" 2d points." << std::endl;
+  o << "It contains " << aNbPnts3D << " 3d points and " << aNbPnts2D <<" 2d points." << '\n';
   
   if(aNbPnts3D > 0)
   {
     for(Standard_Integer i = tabPoint->Lower(); i <= tabPoint->Upper(); i++)
     {
-      o << "3D-Point #" << i << std::endl;
+      o << "3D-Point #" << i << '\n';
 
-      o << " Pole x = " << (tabPoint->Value(i)/*->Point(j)*/).X() << std::endl;
-      o << " Pole y = " << (tabPoint->Value(i)/*->Point(j)*/).Y() << std::endl;
-      o << " Pole z = " << (tabPoint->Value(i)/*->Point(j)*/).Z() << std::endl;
+      o << " Pole x = " << (tabPoint->Value(i)/*->Point(j)*/).X() << '\n';
+      o << " Pole y = " << (tabPoint->Value(i)/*->Point(j)*/).Y() << '\n';
+      o << " Pole z = " << (tabPoint->Value(i)/*->Point(j)*/).Z() << '\n';
     }
   }
   
@@ -193,10 +193,10 @@ void AppParCurves_MultiPoint::Dump(Standard_OStream& o) const
   {
     for(Standard_Integer i = tabPoint2d->Lower(); i <= tabPoint2d->Upper(); i++)
     {
-      o << "2D-Point #" << i << std::endl;
+      o << "2D-Point #" << i << '\n';
 
-      o << " Pole x = " << (tabPoint2d->Value(i)/*->Point2d(j)*/).X() << std::endl;
-      o << " Pole y = " << (tabPoint2d->Value(i)/*->Point2d(j)*/).Y() << std::endl;
+      o << " Pole x = " << (tabPoint2d->Value(i)/*->Point2d(j)*/).X() << '\n';
+      o << " Pole y = " << (tabPoint2d->Value(i)/*->Point2d(j)*/).Y() << '\n';
     }
   }
 }
index ccbab07868e2c477c3d5750768e748de06f3ae79..6b4e988981cd69daebe7698aa77fdd957eb7166f 100644 (file)
@@ -172,8 +172,8 @@ Approx_Curve3d::Approx_Curve3d(const Handle(Adaptor3d_Curve)& Curve,
 
  void Approx_Curve3d::Dump(Standard_OStream& o) const
 {
-  o << "******* Dump of ApproxCurve *******" << std::endl;
-  o << "*******Degree     " << Curve()->Degree() << std::endl;
-  o << "*******NbSegments " << Curve()->NbKnots() - 1 << std::endl;
-  o << "*******Error      " << MaxError() << std::endl;
+  o << "******* Dump of ApproxCurve *******" << '\n';
+  o << "*******Degree     " << Curve()->Degree() << '\n';
+  o << "*******NbSegments " << Curve()->NbKnots() - 1 << '\n';
+  o << "*******Error      " << MaxError() << '\n';
 }
index 77ca7f8e2cccab88cd23761746ff8e0605b55f73..c2582f5f202ad2c3ccb65f10734378c14fd7ddb9 100644 (file)
@@ -623,12 +623,12 @@ Approx_CurvilinearParameter::Approx_CurvilinearParameter(const Handle(Adaptor2d_
 
 void Approx_CurvilinearParameter::Dump(Standard_OStream& o) const
 {
-  o << "Dump of Approx_CurvilinearParameter" << std::endl;
+  o << "Dump of Approx_CurvilinearParameter" << '\n';
   if (myCase==2 || myCase==3) 
-    o << "myMaxError2d1 = " << myMaxError2d1 << std::endl;
+    o << "myMaxError2d1 = " << myMaxError2d1 << '\n';
   if (myCase==3) 
-    o << "myMaxError2d2 = " << myMaxError2d2 << std::endl;
-  o << "myMaxError3d = " << myMaxError3d << std::endl;
+    o << "myMaxError2d2 = " << myMaxError2d2 << '\n';
+  o << "myMaxError3d = " << myMaxError3d << '\n';
 }
 
 //=======================================================================
index 5e136d2fc94c67b0c374fe2fe87ac5ead3dafe15..18f7ee7e89ee7ce2d7cfd711193d7cccb0d1dc73 100644 (file)
@@ -732,19 +732,19 @@ Standard_Real Approx_SweepApproximation::TolCurveOnSurf(const Standard_Integer I
 
  void Approx_SweepApproximation::Dump(Standard_OStream& o) const
 {
-  o << "Dump of SweepApproximation" << std::endl;
+  o << "Dump of SweepApproximation" << '\n';
   if (done) { 
-    o << "Error 3d = " << MaxErrorOnSurf() << std::endl;
+    o << "Error 3d = " << MaxErrorOnSurf() << '\n';
 
     if (Num2DSS>0) {
       o << "Error 2d = ";
       for (Standard_Integer ii=1; ii<=Num2DSS; ii++) 
        {  o << Max2dError(ii);
-          if (ii < Num2DSS) o << " , " << std::endl;
+          if (ii < Num2DSS) o << " , " << '\n';
         }
-      std::cout << std::endl;
+      std::cout << '\n';
     }
-    o <<  tabVKnots->Length()-1 <<" Segment(s) of degree " << vdeg << std::endl;
+    o <<  tabVKnots->Length()-1 <<" Segment(s) of degree " << vdeg << '\n';
   }
-  else std::cout << " Not Done " << std::endl;
+  else std::cout << " Not Done " << '\n';
 }
index 5054222ff0b9aab36766b43b5d65932e995f8d58..344aad0ed4d703f788a9f8f317f189ff80ca64b1 100644 (file)
@@ -2184,23 +2184,23 @@ void BRepBuilderAPI_Sewing::Dump() const
       mapVertices.Add(V2);
     }
   }
-  std::cout << " " << std::endl;
-  std::cout << "                        Information                         " << std::endl;
-  std::cout << " ===========================================================" << std::endl;
-  std::cout << " " << std::endl;
-  std::cout << " Number of input shapes      : " << myOldShapes.Extent() << std::endl;
-  std::cout << " Number of actual shapes     : " << myNbShapes << std::endl;
-  std::cout << " Number of Bounds            : " << NbBounds << std::endl;
-  std::cout << " Number of Sections          : " << NbSections << std::endl;
-  std::cout << " Number of Edges             : " << mapEdges.Extent() << std::endl;
-  std::cout << " Number of Vertices          : " << myNbVertices << std::endl;
-  std::cout << " Number of Nodes             : " << mapVertices.Extent() << std::endl;
-  std::cout << " Number of Free Edges        : " << myFreeEdges.Extent() << std::endl;
-  std::cout << " Number of Contigous Edges   : " << myContigousEdges.Extent() << std::endl;
-  std::cout << " Number of Multiple Edges    : " << myMultipleEdges.Extent() << std::endl;
-  std::cout << " Number of Degenerated Edges : " << myDegenerated.Extent() << std::endl;
-  std::cout << " ===========================================================" << std::endl;
-  std::cout << " " << std::endl;
+  std::cout << " " << '\n';
+  std::cout << "                        Information                         " << '\n';
+  std::cout << " ===========================================================" << '\n';
+  std::cout << " " << '\n';
+  std::cout << " Number of input shapes      : " << myOldShapes.Extent() << '\n';
+  std::cout << " Number of actual shapes     : " << myNbShapes << '\n';
+  std::cout << " Number of Bounds            : " << NbBounds << '\n';
+  std::cout << " Number of Sections          : " << NbSections << '\n';
+  std::cout << " Number of Edges             : " << mapEdges.Extent() << '\n';
+  std::cout << " Number of Vertices          : " << myNbVertices << '\n';
+  std::cout << " Number of Nodes             : " << mapVertices.Extent() << '\n';
+  std::cout << " Number of Free Edges        : " << myFreeEdges.Extent() << '\n';
+  std::cout << " Number of Contigous Edges   : " << myContigousEdges.Extent() << '\n';
+  std::cout << " Number of Multiple Edges    : " << myMultipleEdges.Extent() << '\n';
+  std::cout << " Number of Degenerated Edges : " << myDegenerated.Extent() << '\n';
+  std::cout << " ===========================================================" << '\n';
+  std::cout << " " << '\n';
 }
 
 //=======================================================================
index b0a6ea3875d5143c597b6c5025c47e4aa9e4c3d3..a1cb708b8d10fcd3a4b4e39792692a51245d59d4 100644 (file)
@@ -86,7 +86,7 @@ void PrintShape(const TopoDS_Shape& theShape) {
   if (!theShape.IsNull()) {
     size_t code = TopTools_ShapeMapHasher{}(theShape);
     std::cout << TopAbs::ShapeTypeToString (theShape.ShapeType()) << " : " << code
-       << " " << TopAbs::ShapeOrientationToString(theShape.Orientation()) << std::endl;
+       << " " << TopAbs::ShapeOrientationToString(theShape.Orientation()) << '\n';
   }
 }
     
index c77cd09de565e1067441936df87f36a8f02e43bb..805511ba4331062e37d1a6183f6283d7e25bc759 100644 (file)
@@ -1120,18 +1120,18 @@ void BRepExtrema_DistShapeShape::Dump(Standard_OStream& o) const
   Standard_Integer i;
   Standard_Real r1,r2;
   
-  o<< "the distance  value is :  " << Value()<<std::endl;
-  o<< "the number of solutions is :"<<NbSolution()<<std::endl;
-  o<<std::endl;
+  o<< "the distance  value is :  " << Value()<<'\n';
+  o<< "the number of solutions is :"<<NbSolution()<<'\n';
+  o<<'\n';
   for (i=1;i<=NbSolution();i++)
   {
-    o<<"solution number "<<i<<": "<< std::endl;
-    o<<"the type of the solution on the first shape is " <<Standard_Integer( SupportTypeShape1(i)) <<std::endl
-    o<<"the type of the solution on the second shape is "<<Standard_Integer( SupportTypeShape2(i))<< std::endl;
-    o<< "the coordinates of  the point on the first shape are: "<<std::endl
-    o<<"X=" <<PointOnShape1(i).X()<<" Y=" <<PointOnShape1(i).Y()<<" Z="<<PointOnShape1(i).Z()<<std::endl;
-    o<< "the coordinates of  the point on the second shape are: "<<std::endl
-    o<<"X="<< PointOnShape2(i).X()<< " Y="<<PointOnShape2(i).Y()<<" Z="<< PointOnShape2(i).Z()<<std::endl;
+    o<<"solution number "<<i<<": "<< '\n';
+    o<<"the type of the solution on the first shape is " <<Standard_Integer( SupportTypeShape1(i)) <<'\n'
+    o<<"the type of the solution on the second shape is "<<Standard_Integer( SupportTypeShape2(i))<< '\n';
+    o<< "the coordinates of  the point on the first shape are: "<<'\n'
+    o<<"X=" <<PointOnShape1(i).X()<<" Y=" <<PointOnShape1(i).Y()<<" Z="<<PointOnShape1(i).Z()<<'\n';
+    o<< "the coordinates of  the point on the second shape are: "<<'\n'
+    o<<"X="<< PointOnShape2(i).X()<< " Y="<<PointOnShape2(i).Y()<<" Z="<< PointOnShape2(i).Z()<<'\n';
     
     switch (SupportTypeShape1(i))
     {
@@ -1139,11 +1139,11 @@ void BRepExtrema_DistShapeShape::Dump(Standard_OStream& o) const
         break;
       case BRepExtrema_IsOnEdge:
         ParOnEdgeS1(i,r1);
-        o << "parameter on the first edge :  t= " << r1 << std::endl;
+        o << "parameter on the first edge :  t= " << r1 << '\n';
         break;
       case BRepExtrema_IsInFace:
         ParOnFaceS1(i,r1,r2);
-        o << "parameters on the first face :  u= " << r1 << " v=" <<  r2 << std::endl;
+        o << "parameters on the first face :  u= " << r1 << " v=" <<  r2 << '\n';
         break;
     }
     switch (SupportTypeShape2(i))
@@ -1152,13 +1152,13 @@ void BRepExtrema_DistShapeShape::Dump(Standard_OStream& o) const
         break;
       case BRepExtrema_IsOnEdge:
         ParOnEdgeS2(i,r1);
-        o << "parameter on the second edge : t=" << r1 << std::endl;
+        o << "parameter on the second edge : t=" << r1 << '\n';
         break;
       case BRepExtrema_IsInFace:
         ParOnFaceS2(i,r1,r2);
-        o << "parameters on the second face : u= " << r1 << " v=" <<  r2 << std::endl;
+        o << "parameters on the second face : u= " << r1 << " v=" <<  r2 << '\n';
         break;
     }
-    o<<std::endl;
+    o<<'\n';
   } 
 }
index bd9bc087a4220982955ec31cd19a051b93b65171..55a7ac09abaeccfcc6f1d28a883eb19381cf2f8c 100644 (file)
@@ -473,14 +473,14 @@ void BRepMesh_DataStructureOfDelaun::Statistics(Standard_OStream& theStream) con
 {
   theStream << " Map of nodes : \n";
   myNodes->Statistics(theStream);
-  theStream << "\n Deleted nodes : " << myNodes->GetListOfDelNodes().Extent() << std::endl;
+  theStream << "\n Deleted nodes : " << myNodes->GetListOfDelNodes().Extent() << '\n';
 
   theStream << "\n\n Map of Links : \n";
   myLinks.Statistics(theStream);
-  theStream << "\n Deleted links : " << myDelLinks.Extent() << std::endl;
+  theStream << "\n Deleted links : " << myDelLinks.Extent() << '\n';
 
   theStream << "\n\n Map of elements : \n";
-  theStream << "\n Elements : " << myElements.Size() << std::endl;
+  theStream << "\n Elements : " << myElements.Size() << '\n';
 }
 
 //=======================================================================
index 8b35e9301f3ff16d27ddf2c2e94f404af5846da1..91cfb57165cd3813a4d4044acf08c87b03242f22 100644 (file)
@@ -618,7 +618,7 @@ static void EdgeInter(const TopoDS_Face&              F,
 //  Modified by skv - Thu Jan 22 18:19:05 2004 OCC4455 End
             LV1.Remove(it1LV1);
             LV2.Remove(it1LV2);
-            if (AffichPurge) std::cout <<"Doubles removed in EdgeInter."<<std::endl;
+            if (AffichPurge) std::cout <<"Doubles removed in EdgeInter."<<'\n';
             Purge = Standard_True;
             break;
           }
@@ -900,7 +900,7 @@ static void RefEdgeInter(const TopoDS_Face&              F,
           if (P1.IsEqual(P2, Tol)) {
             LV1.Remove(it1LV1);
             LV2.Remove(it1LV2);
-            if (AffichPurge) std::cout <<"Doubles removed in EdgeInter."<<std::endl;
+            if (AffichPurge) std::cout <<"Doubles removed in EdgeInter."<<'\n';
             Purge = Standard_True;
             break;
           }
index 25d8297b7242e39cbeb5d65531f6dc9d5bad5adc..8c043855dd92dfe312ecf8f29f68cc3f63b867fd 100644 (file)
@@ -986,7 +986,7 @@ void BRepOffsetAPI_MiddlePath::Build(const Message_ProgressRange& /*theRange*/)
       Interpol.Perform();
       if (!Interpol.IsDone())
       {
-        std::cout<<std::endl<<"Interpolation failed"<<std::endl;
+        std::cout<<'\n'<<"Interpolation failed"<<'\n';
       }
       Handle(Geom_Curve) InterCurve (Interpol.Curve());
       MidEdges(i) = BRepLib_MakeEdge(InterCurve);
index 11a49f95c06db0045d31525c57c60f9853043605..fed3cf491bf939638052a5177b6920787d14d612 100644 (file)
@@ -1800,15 +1800,15 @@ static Standard_Integer arclinconvert (Draw_Interpretor& /*dout*/, Standard_Inte
 {
   // Check the command arguments
   if (n < 3) {
-    std::cout<<"Error: "<<a[0]<<" - invalid number of arguments"<<std::endl;
-    std::cout<<"Usage: type help "<<a[0]<<std::endl;
+    std::cout<<"Error: "<<a[0]<<" - invalid number of arguments"<<'\n';
+    std::cout<<"Usage: type help "<<a[0]<<'\n';
     return 1; //TCL_ERROR
   }
 
   //read shape
   const TopoDS_Shape aShape = DBRep::Get(a[2]);
   if (aShape.IsNull()) {
-    std::cout<<"Error: "<<a[2]<<" is null"<<std::endl;
+    std::cout<<"Error: "<<a[2]<<" is null"<<'\n';
     return 1; //TCL_ERROR
   }
 
@@ -1816,7 +1816,7 @@ static Standard_Integer arclinconvert (Draw_Interpretor& /*dout*/, Standard_Inte
   if (aType != TopAbs_WIRE &&
       aType != TopAbs_FACE)
   {
-    std::cout<<"Error: "<<a[2]<<" is neither wire no face"<<std::endl;
+    std::cout<<"Error: "<<a[2]<<" is neither wire no face"<<'\n';
     return 1; //TCL_ERROR
   }
 
@@ -1824,7 +1824,7 @@ static Standard_Integer arclinconvert (Draw_Interpretor& /*dout*/, Standard_Inte
   Standard_Real aTol = 0.01;
   if (n > 3)
     aTol = Draw::Atof(a[3]);
-  std::cout<<"Info: tolerance is set to "<<aTol<<std::endl;
+  std::cout<<"Info: tolerance is set to "<<aTol<<'\n';
 
   TopoDS_Shape aResult;
   
@@ -1834,7 +1834,7 @@ static Standard_Integer arclinconvert (Draw_Interpretor& /*dout*/, Standard_Inte
     BRepBuilderAPI_MakeFace aFaceMaker (TopoDS::Wire(aShape), OnlyPlane);
     if (aFaceMaker.Error() != BRepBuilderAPI_FaceDone)
     {
-      std::cout<<"Error: failed to find a face for the wire "<<a[2]<<std::endl;
+      std::cout<<"Error: failed to find a face for the wire "<<a[2]<<'\n';
       return 1; //TCL_ERROR
     }
     const TopoDS_Face& aFace = aFaceMaker.Face();
@@ -1849,7 +1849,7 @@ static Standard_Integer arclinconvert (Draw_Interpretor& /*dout*/, Standard_Inte
   }
 
   if (aResult.IsNull()) {
-    std::cout<<"Error: could not convert "<<a[2]<<std::endl;
+    std::cout<<"Error: could not convert "<<a[2]<<'\n';
     return 1; //TCL_ERROR
   }
 
index 52cc4f72e1e2e8d06e14cb18f9599a557d77ef8a..138c6317d98b6fff019d02c3365e19de214aeaf6 100644 (file)
@@ -245,7 +245,7 @@ static Standard_Integer pcurve(Draw_Interpretor& , Standard_Integer n, const cha
       const Handle(Geom2d_Curve) c = BRep_Tool::CurveOnSurface
        (TopoDS::Edge(ex.Current()),TopoDS::Face(S),f,l);
       if ( c.IsNull() ) {
-        std::cout << "Error: Edge " << i << " does not have pcurve" << std::endl;
+        std::cout << "Error: Edge " << i << " does not have pcurve" << '\n';
         continue;
       }
       col = DBRep_ColorOrientation(ex.Current().Orientation());
index e4cb347e72fe2668471c089727c3c4a17f6e8201..4b4a29cf7d2a07de55db6734bcb40b2fe88af0bd 100644 (file)
@@ -247,7 +247,7 @@ static Standard_Integer geompipe(Draw_Interpretor&,
   }
 
   Standard_Real Accuracy = aPipe.ErrorOnSurf();
-  std::cout << "Accuracy of approximation = " << Accuracy << std::endl;
+  std::cout << "Accuracy of approximation = " << Accuracy << '\n';
   
   Handle(Geom_Surface) Sur = aPipe.Surface();
   TopoDS_Face F;
index df54e59e453117fc8b44290c218cf6773b408ea8..29d8a7f52412e18a07b6a6ac488fd62dcd9e002b 100644 (file)
@@ -54,7 +54,7 @@ const char* BRepTools_Dump (void* theShapePtr)
 
     std::cout <<"\n\n";
     BRepTools::Dump (*(TopoDS_Shape*)theShapePtr, std::cout);
-    std::cout << std::endl;
+    std::cout << '\n';
 
     return "Shape dumped to std::cout";
   }
@@ -78,7 +78,7 @@ const char* BRepTools_DumpLoc (void* theLocationPtr)
     TopTools_LocationSet LS;
     LS.Add(*(TopLoc_Location*)theLocationPtr);
     LS.Dump(std::cout);
-    std::cout <<std::endl;
+    std::cout <<'\n';
 
     return "Location dumped to std::cout";
   }
index c4f76cb668a49c595cfb7682814f8aef9c93ae7a..5ff8c28c31dbf71b0d0e18b56861ca4a5d512d31 100644 (file)
@@ -2064,7 +2064,7 @@ void BiTgte_Blend::ComputeSurfaces()
        if (MKE.IsDone()) 
          E1 = MKE.Edge();
        else  {
-         std::cout << "Edge Not Done" << std::endl;
+         std::cout << "Edge Not Done" << '\n';
          E1 = MKE.Edge();
        }
          
@@ -2103,7 +2103,7 @@ void BiTgte_Blend::ComputeSurfaces()
        if (MKE.IsDone()) 
          E2 = MKE.Edge();
        else {
-         std::cout << "edge not Done" << std::endl;
+         std::cout << "edge not Done" << '\n';
          E2 = MKE.Edge();
        }
        KPartCurve3d(E2,PC2,GS2);
index 8979369fa7821a7f33fafdbb92a5f14a5e4180a6..fe4a6c02b09c3d324fd85983c4f3d660aac7b756 100644 (file)
@@ -311,8 +311,8 @@ void BinTools_Curve2dSet::WriteCurve2d(
   }
   catch(Standard_Failure const& anException) {
     Standard_SStream aMsg;
-    aMsg << "EXCEPTION in BinTools_Curve2dSet::WriteCurve2d(..)" << std::endl;
-    aMsg << anException << std::endl;
+    aMsg << "EXCEPTION in BinTools_Curve2dSet::WriteCurve2d(..)" << '\n';
+    aMsg << anException << '\n';
     throw Standard_Failure(aMsg.str().c_str());
   }  
 }
@@ -660,8 +660,8 @@ Standard_IStream& BinTools_Curve2dSet::ReadCurve2d(Standard_IStream& IS,
   catch(Standard_Failure const& anException) {
     C = NULL;
     Standard_SStream aMsg;
-    aMsg <<"EXCEPTION in BinTools_Curve2dSet::ReadCurve2d(...)" << std::endl;
-    aMsg << anException << std::endl;
+    aMsg <<"EXCEPTION in BinTools_Curve2dSet::ReadCurve2d(...)" << '\n';
+    aMsg << anException << '\n';
     throw Standard_Failure(aMsg.str().c_str());
   }
   return IS;
@@ -680,7 +680,7 @@ void  BinTools_Curve2dSet::Read (Standard_IStream& IS,
   IS >> buffer;
   if (IS.fail() || strcmp(buffer,"Curve2ds")) {
     Standard_SStream aMsg;
-    aMsg << "BinTools_Curve2dSet::Read:  Not a Curve2d table"<<std::endl;
+    aMsg << "BinTools_Curve2dSet::Read:  Not a Curve2d table"<<'\n';
 #ifdef OCCT_DEBUG
     std::cout <<"Curve2dSet buffer: " << buffer << std::endl;
 #endif
index 1966f12e5ce951663d49e68054895fe8a0374b93..2f5ef77c0e2697b78d8db414df6693ee1ae5af0c 100644 (file)
@@ -320,8 +320,8 @@ void BinTools_CurveSet::WriteCurve(const Handle(Geom_Curve)& C,
   }
    catch(Standard_Failure const& anException) {
      Standard_SStream aMsg;
-     aMsg << "EXCEPTION in BinTools_CurveSet::WriteCurve(..)" << std::endl;
-     aMsg << anException << std::endl;
+     aMsg << "EXCEPTION in BinTools_CurveSet::WriteCurve(..)" << '\n';
+     aMsg << anException << '\n';
      throw Standard_Failure(aMsg.str().c_str());
    }  
 }
@@ -675,8 +675,8 @@ Standard_IStream& BinTools_CurveSet::ReadCurve(Standard_IStream& IS,
   catch(Standard_Failure const& anException) {
     C = NULL;
     Standard_SStream aMsg;
-    aMsg <<"EXCEPTION in BinTools_CurveSet::ReadCurve(..)" << std::endl;
-    aMsg << anException << std::endl;
+    aMsg <<"EXCEPTION in BinTools_CurveSet::ReadCurve(..)" << '\n';
+    aMsg << anException << '\n';
     throw Standard_Failure(aMsg.str().c_str());
   }
   return IS;
@@ -694,7 +694,7 @@ void  BinTools_CurveSet::Read (Standard_IStream& IS,
   IS >> buffer;
   if (IS.fail() || strcmp(buffer,"Curves")) {
     Standard_SStream aMsg;
-    aMsg << "BinTools_CurveSet::Read:  Not a Curve table"<<std::endl;
+    aMsg << "BinTools_CurveSet::Read:  Not a Curve table"<<'\n';
 #ifdef OCCT_DEBUG
     std::cout <<"CurveSet buffer: " << buffer << std::endl;
 #endif
index 5d5175c7a70245efe3fa34ec10d550e550e23b7a..27582a501d62d38db359c597468533df55d77a3f 100644 (file)
@@ -96,7 +96,7 @@ uint64_t BinTools_IStream::ReadReference()
   if (aDelta == 0)
   {
     Standard_SStream aMsg;
-    aMsg << "BinTools_IStream::ReadReference: invalid reference " << (char)myLastType << std::endl;
+    aMsg << "BinTools_IStream::ReadReference: invalid reference " << (char)myLastType << '\n';
     throw Standard_Failure (aMsg.str().c_str());
   }
   return aCurrentPos - aDelta - 1; // add a type-byte
index e1f5aa286b3083bc99885648b4abc5ffbbd2ec05..9e7c7d401df046052680383a14920253f47557d3 100644 (file)
@@ -195,8 +195,8 @@ void  BinTools_LocationSet::Write(Standard_OStream& OS) const
   }
   catch(Standard_Failure const& anException) {
     Standard_SStream aMsg;
-    aMsg << "EXCEPTION in BinTools_LocatioSet::Write(..)" << std::endl;
-    aMsg << anException << std::endl;
+    aMsg << "EXCEPTION in BinTools_LocatioSet::Write(..)" << '\n';
+    aMsg << anException << '\n';
     throw Standard_Failure(aMsg.str().c_str());
   }
 }
@@ -215,7 +215,7 @@ void  BinTools_LocationSet::Read(Standard_IStream& IS)
   IS >> buffer;
   if (IS.fail() || (strcmp(buffer,"Locations"))) {
     Standard_SStream aMsg;
-    aMsg << "BinTools_LocationSet::Read: Not a location table"<<std::endl;
+    aMsg << "BinTools_LocationSet::Read: Not a location table"<<'\n';
     throw Standard_Failure(aMsg.str().c_str());
     return;
   }
@@ -247,7 +247,7 @@ void  BinTools_LocationSet::Read(Standard_IStream& IS)
        }
       } else {
        Standard_SStream aMsg;
-       aMsg << "Unexpected location's type = " << aTypLoc << std::endl;
+       aMsg << "Unexpected location's type = " << aTypLoc << '\n';
        throw Standard_Failure(aMsg.str().c_str());
       }    
       if (!L.IsIdentity()) myMap.Add(L);
@@ -255,8 +255,8 @@ void  BinTools_LocationSet::Read(Standard_IStream& IS)
   }
   catch(Standard_Failure const& anException) {
     Standard_SStream aMsg;
-    aMsg << "EXCEPTION in BinTools_LocationSet::Read(..)" << std::endl;
-    aMsg << anException << std::endl;
+    aMsg << "EXCEPTION in BinTools_LocationSet::Read(..)" << '\n';
+    aMsg << anException << '\n';
     throw Standard_Failure(aMsg.str().c_str());
   }
 }
index 8b8ed4dc91d382990cc3286eb7f609d5bcdb70fd..5302d132b62c3b542690dbd460fb59d8f35ea4f7 100644 (file)
@@ -146,7 +146,7 @@ TopoDS_Shape BinTools_ShapeReader::ReadShape (BinTools_IStream& theStream)
           default:
           {
             Standard_SStream aMsg;
-            aMsg << "BinTools_ShapeReader::Read: UnExpected BRep_PointRepresentation = " << aPrsType << std::endl;
+            aMsg << "BinTools_ShapeReader::Read: UnExpected BRep_PointRepresentation = " << aPrsType << '\n';
             throw Standard_Failure (aMsg.str().c_str());
           }
           }
@@ -255,7 +255,7 @@ TopoDS_Shape BinTools_ShapeReader::ReadShape (BinTools_IStream& theStream)
           default:
           {
             Standard_SStream aMsg;
-            aMsg << "Unexpected Curve Representation =" << aPrsType << std::endl;
+            aMsg << "Unexpected Curve Representation =" << aPrsType << '\n';
             throw Standard_Failure (aMsg.str().c_str());
           }
 
@@ -295,7 +295,7 @@ TopoDS_Shape BinTools_ShapeReader::ReadShape (BinTools_IStream& theStream)
       default:
       {
         Standard_SStream aMsg;
-        aMsg << "Unexpected topology type = " << aShapeType << std::endl;
+        aMsg << "Unexpected topology type = " << aShapeType << '\n';
         throw Standard_Failure (aMsg.str().c_str());
         break;
       }
@@ -304,8 +304,8 @@ TopoDS_Shape BinTools_ShapeReader::ReadShape (BinTools_IStream& theStream)
   catch (Standard_Failure const& anException)
   {
     Standard_SStream aMsg;
-    aMsg << "EXCEPTION in BinTools_ShapeReader::Read" << std::endl;
-    aMsg << anException << std::endl;
+    aMsg << "EXCEPTION in BinTools_ShapeReader::Read" << '\n';
+    aMsg << anException << '\n';
     throw Standard_Failure (aMsg.str().c_str());
   }
   // read flags and subs
index 9f2cde22fe3c5f9a2c88a41256ffeda91ab87da9..c26b3355897037e91fa0816ac07b0d8f04dd03ab 100644 (file)
@@ -391,7 +391,7 @@ void  BinTools_ShapeSet::Read (Standard_IStream& IS,
   } 
   while ( ! IS.fail());
   if (IS.fail()) {
-    std::cout << "BinTools_ShapeSet::Read: File was not written with this version of the topology" << std::endl;
+    std::cout << "BinTools_ShapeSet::Read: File was not written with this version of the topology" << '\n';
     return;
   }
 
@@ -414,7 +414,7 @@ void  BinTools_ShapeSet::Read (Standard_IStream& IS,
   IS >> buffer;
   if (IS.fail() || strcmp(buffer,"TShapes")) {
     Standard_SStream aMsg;
-    aMsg << "BinTools_ShapeSet::Read: Not a TShape table"<<std::endl;
+    aMsg << "BinTools_ShapeSet::Read: Not a TShape table"<<'\n';
     throw Standard_Failure(aMsg.str().c_str());
     return;
   }
@@ -760,8 +760,8 @@ void BinTools_ShapeSet::WriteShape (const TopoDS_Shape& S,
   }
   catch(Standard_Failure const& anException) {
     Standard_SStream aMsg;
-    aMsg << "EXCEPTION in BinTools_ShapeSet::WriteGeometry(S,OS)" << std::endl;
-    aMsg << anException << std::endl;
+    aMsg << "EXCEPTION in BinTools_ShapeSet::WriteGeometry(S,OS)" << '\n';
+    aMsg << anException << '\n';
     throw Standard_Failure(aMsg.str().c_str());
   }
 }
@@ -880,7 +880,7 @@ void  BinTools_ShapeSet::ReadShape (const TopAbs_ShapeEnum T,
           default:
           {
             Standard_SStream aMsg;
-            aMsg << "BinTools_SurfaceSet::ReadGeometry: UnExpected BRep_PointRepresentation = " << val << std::endl;
+            aMsg << "BinTools_SurfaceSet::ReadGeometry: UnExpected BRep_PointRepresentation = " << val << '\n';
             throw Standard_Failure(aMsg.str().c_str());
           }
           }
@@ -1081,7 +1081,7 @@ void  BinTools_ShapeSet::ReadShape (const TopAbs_ShapeEnum T,
           default:
           {
             Standard_SStream aMsg;
-            aMsg << "Unexpected Curve Representation =" << val << std::endl;
+            aMsg << "Unexpected Curve Representation =" << val << '\n';
             throw Standard_Failure(aMsg.str().c_str());
           }
 
@@ -1167,7 +1167,7 @@ void  BinTools_ShapeSet::ReadShape (const TopAbs_ShapeEnum T,
       default:
       {
         Standard_SStream aMsg;
-        aMsg << "Unexpected topology type = " << T << std::endl;
+        aMsg << "Unexpected topology type = " << T << '\n';
         throw Standard_Failure(aMsg.str().c_str());
         break;
       }
@@ -1175,8 +1175,8 @@ void  BinTools_ShapeSet::ReadShape (const TopAbs_ShapeEnum T,
   }
   catch (Standard_Failure const& anException) {
     Standard_SStream aMsg;
-    aMsg << "EXCEPTION in BinTools_ShapeSet::ReadGeometry(S,OS)" << std::endl;
-    aMsg << anException << std::endl;
+    aMsg << "EXCEPTION in BinTools_ShapeSet::ReadGeometry(S,OS)" << '\n';
+    aMsg << anException << '\n';
     throw Standard_Failure(aMsg.str().c_str());
   }
 }
index ac604c7bd4813a1f5b2d686c842311b49768747d..89a27808ff8230001d1765d6eb97e240e508061a 100644 (file)
@@ -247,8 +247,8 @@ void BinTools_ShapeWriter::WriteShape (BinTools_OStream& theStream, const TopoDS
   catch (Standard_Failure const& anException)
   {
     Standard_SStream aMsg;
-    aMsg << "EXCEPTION in BinTools_ShapeWriter::WriteShape" << std::endl;
-    aMsg << anException << std::endl;
+    aMsg << "EXCEPTION in BinTools_ShapeWriter::WriteShape" << '\n';
+    aMsg << anException << '\n';
     throw Standard_Failure(aMsg.str().c_str());
   }
   theStream.PutBools (aShape.Free(), aShape.Modified(), aShape.Checked(),
@@ -308,8 +308,8 @@ void BinTools_ShapeWriter::WriteLocation (BinTools_OStream& theStream, const Top
   }
   catch (Standard_Failure const& anException) {
     Standard_SStream aMsg;
-    aMsg << "EXCEPTION in BinTools_ShapeWriter::WriteLocation" << std::endl;
-    aMsg << anException << std::endl;
+    aMsg << "EXCEPTION in BinTools_ShapeWriter::WriteLocation" << '\n';
+    aMsg << anException << '\n';
     throw Standard_Failure (aMsg.str().c_str());
   }
 }
index d2c118ad65506bebbe7652168bc80a6a3e1a418b..9064c58e0f793e695d2b45085603e42066d4d389 100644 (file)
@@ -391,8 +391,8 @@ void BinTools_SurfaceSet::WriteSurface (const Handle(Geom_Surface)& S,
   }
    catch(Standard_Failure const& anException) {
      Standard_SStream aMsg;
-    aMsg << "EXCEPTION in BinTools_SurfaceSet::WriteSurface(..)" << std::endl;
-    aMsg << anException << std::endl;
+    aMsg << "EXCEPTION in BinTools_SurfaceSet::WriteSurface(..)" << '\n';
+    aMsg << anException << '\n';
     throw Standard_Failure(aMsg.str().c_str());
   }  
 }
@@ -830,8 +830,8 @@ Standard_IStream& BinTools_SurfaceSet::ReadSurface(Standard_IStream& IS,
   catch(Standard_Failure const& anException) {
     S = NULL;
     Standard_SStream aMsg;
-    aMsg << "EXCEPTION in BinTools_SurfaceSet::ReadSurface(..)" << std::endl;
-    aMsg << anException << std::endl;
+    aMsg << "EXCEPTION in BinTools_SurfaceSet::ReadSurface(..)" << '\n';
+    aMsg << anException << '\n';
     throw Standard_Failure(aMsg.str().c_str());
   }
   return IS;
@@ -849,7 +849,7 @@ void  BinTools_SurfaceSet::Read (Standard_IStream& IS,
   IS >> buffer;
   if (IS.fail() || strcmp(buffer,"Surfaces")) {
     Standard_SStream aMsg;
-    aMsg << "BinTools_SurfaceSet::Read:  Not a surface table"<<std::endl;
+    aMsg << "BinTools_SurfaceSet::Read:  Not a surface table"<<'\n';
 #ifdef OCCT_DEBUG
     std::cout <<"SurfaceSet buffer: " << buffer << std::endl;
 #endif
index 64a31618a3369bb78316337e86fa37595012eb3d..5cba56e45feee03e9a06d0e358f8306980ee0c5f 100644 (file)
@@ -283,7 +283,7 @@ void Bisector_BisecAna::Perform(const Handle(Geom2d_Curve)& afirstcurve   ,
       line2   = L2->Lin2d();
     }
     else {
-      std::cout << "Not yet implemented" << std::endl;
+      std::cout << "Not yet implemented" << '\n';
     }
   }
   else if (type1 == STANDARD_TYPE(Geom2d_Line)) {
@@ -302,11 +302,11 @@ void Bisector_BisecAna::Perform(const Handle(Geom2d_Curve)& afirstcurve   ,
       line2   = L2->Lin2d();
     }
     else {
-      std::cout << "Not yet implemented" << std::endl;
+      std::cout << "Not yet implemented" << '\n';
     }
   }
   else {
-    std::cout << "Not yet implemented" << std::endl;
+    std::cout << "Not yet implemented" << '\n';
   }
 
   switch(cas) {
@@ -842,7 +842,7 @@ void Bisector_BisecAna::Perform(const Handle(Geom2d_Curve)& afirstcurve  ,
     line   = L1->Lin2d();
   }
   else {
-    std::cout << "Not yet implemented" << std::endl;
+    std::cout << "Not yet implemented" << '\n';
   }
 
   switch(cas) {
@@ -997,7 +997,7 @@ void Bisector_BisecAna::Perform(const Handle(Geom2d_Curve)& afirstcurve  ,
 
     default:
       {
-       std::cout << "Not yet implemented" << std::endl;
+       std::cout << "Not yet implemented" << '\n';
        break;
       }
     }
@@ -1633,7 +1633,7 @@ void Bisector_BisecAna::Dump(const Standard_Integer ,
                             const Standard_Integer Offset) const 
 {
   Indent (Offset);
-  std::cout<<"Bisector_BisecAna"<<std::endl;
+  std::cout<<"Bisector_BisecAna"<<'\n';
   Indent (Offset);
 //  thebisector->Dump();
 }
index 07f29490cef7b0e030ca99d03f1db864e276dd0e..c4ae1e413c5a69c5af104d84aea4ff1eb64c65b7 100644 (file)
@@ -1464,19 +1464,19 @@ void Bisector_BisecCC::Dump(const Standard_Integer ,
   const Standard_Integer Offset) const 
 {
   Indent (Offset);
-  std::cout <<"Bisector_BisecCC :"<<std::endl;
+  std::cout <<"Bisector_BisecCC :"<<'\n';
   Indent (Offset);
   //  std::cout <<"Curve1 :"<<curve1<<std::endl;
   //  std::cout <<"Curve2 :"<<curve2<<std::endl;
-  std::cout <<"Sign1  :"<<sign1<<std::endl;
-  std::cout <<"Sign2  :"<<sign2<<std::endl;
+  std::cout <<"Sign1  :"<<sign1<<'\n';
+  std::cout <<"Sign2  :"<<sign2<<'\n';
 
-  std::cout <<"Number Of Intervals :"<<startIntervals.Length()<<std::endl;
+  std::cout <<"Number Of Intervals :"<<startIntervals.Length()<<'\n';
   for (Standard_Integer i = 1; i <= startIntervals.Length(); i++) {
     std::cout <<"Interval number :"<<i<<"Start :"<<startIntervals.Value(i)
-      <<"  end :"<<  endIntervals.Value(i)<<std::endl ;
+      <<"  end :"<<  endIntervals.Value(i)<<'\n' ;
   }
-  std::cout <<"Index Current Interval :"<<currentInterval<<std::endl;
+  std::cout <<"Index Current Interval :"<<currentInterval<<'\n';
 }
 
 //=============================================================================
index 5ee0290a45fd68e969f44be6ee6f33b72f7f111d..7c3c6917553b60ad2558eb64759f3ddc079102e9 100644 (file)
@@ -847,18 +847,18 @@ void Bisector_BisecPC::Dump(const Standard_Integer ,
                            const Standard_Integer Offset) const 
 {
   Indent (Offset);
-  std::cout <<"Bisector_BisecPC :"<<std::endl;
+  std::cout <<"Bisector_BisecPC :"<<'\n';
   Indent (Offset);
-  std::cout <<"Point :"<<std::endl;
-  std::cout <<" X = "<<point.X()<<std::endl;
-  std::cout <<" Y = "<<point.Y()<<std::endl;
-  std::cout <<"Sign  :"<<sign<<std::endl;
-  std::cout <<"Number Of Intervals :"<<startIntervals.Length()<<std::endl;
+  std::cout <<"Point :"<<'\n';
+  std::cout <<" X = "<<point.X()<<'\n';
+  std::cout <<" Y = "<<point.Y()<<'\n';
+  std::cout <<"Sign  :"<<sign<<'\n';
+  std::cout <<"Number Of Intervals :"<<startIntervals.Length()<<'\n';
   for (Standard_Integer i = 1; i <= startIntervals.Length(); i++) {
     std::cout <<"Interval number :"<<i<<"Start :"<<startIntervals.Value(i)
-                                 <<"  end :"<<  endIntervals.Value(i)<<std::endl ;
+                                 <<"  end :"<<  endIntervals.Value(i)<<'\n' ;
   }
-  std::cout <<"Index Current Interval :"<<currentInterval<<std::endl;
+  std::cout <<"Index Current Interval :"<<currentInterval<<'\n';
 }
 
 
index 0d3a1c0148e9f92ff8d0109bf0bada6c6c36424b..db4f61a0731841fb507488b8a158415b5d2e75c9 100644 (file)
@@ -163,8 +163,8 @@ Standard_Boolean Bisector_PointOnBis::IsInfinite() const
 //=============================================================================
 void Bisector_PointOnBis::Dump() const 
 {
-  std::cout <<"Param1    :"<<param1<<std::endl;
-  std::cout <<"Param2    :"<<param2<<std::endl;
-  std::cout <<"Param Bis :"<<paramBis<<std::endl;
-  std::cout <<"Distance  :"<<distance<<std::endl;
+  std::cout <<"Param1    :"<<param1<<'\n';
+  std::cout <<"Param2    :"<<param2<<'\n';
+  std::cout <<"Param Bis :"<<paramBis<<'\n';
+  std::cout <<"Distance  :"<<distance<<'\n';
 }
index 410f9bb92b9f7db5b2db4edcc95cc356e1951266..f9bb3dbe3c2253d85f4c7a550fda2ceddf79f517 100644 (file)
@@ -264,13 +264,13 @@ Handle(CDM_Document) CDF_Application::Retrieve (const Handle(CDM_MetaData)& aMet
     myRetrievableStatus = CanRetrieve(aMetaData, isAppendMode);
     switch (myRetrievableStatus) {
     case PCDM_RS_UnknownDocument: 
-      aMsg << "could not find the referenced document: " << aMetaData->Path() << "; not found."  <<(char)0 << std::endl;
+      aMsg << "could not find the referenced document: " << aMetaData->Path() << "; not found."  <<(char)0 << '\n';
       break;
     case PCDM_RS_PermissionDenied:      
-      aMsg << "Could not find the referenced document: " << aMetaData->Path() << "; permission denied. " <<(char)0 << std::endl;
+      aMsg << "Could not find the referenced document: " << aMetaData->Path() << "; permission denied. " <<(char)0 << '\n';
       break;
     case PCDM_RS_NoDocument:
-      aMsg << "Document for appending is not defined." << (char)0 << std::endl;
+      aMsg << "Document for appending is not defined." << (char)0 << '\n';
       break;
     default:
       myRetrievableStatus = PCDM_RS_OK;
@@ -319,7 +319,7 @@ Handle(CDM_Document) CDF_Application::Retrieve (const Handle(CDM_MetaData)& aMet
       myRetrievableStatus = theReader->GetStatus();
       if (myRetrievableStatus > PCDM_RS_AlreadyRetrieved) {
         Standard_SStream aMsg;
-        aMsg << anException << std::endl;
+        aMsg << anException << '\n';
         throw Standard_Failure(aMsg.str().c_str());
       }
     }
@@ -392,7 +392,7 @@ void CDF_Application::Read (Standard_IStream& theIStream,
     myRetrievableStatus = PCDM_RS_FormatFailure;
     
     Standard_SStream aMsg;
-    aMsg << anException << std::endl;
+    aMsg << anException << '\n';
     throw Standard_Failure(aMsg.str().c_str());
   }
 
@@ -437,7 +437,7 @@ void CDF_Application::Read (Standard_IStream& theIStream,
     if (myRetrievableStatus  > PCDM_RS_AlreadyRetrieved)
     {
       Standard_SStream aMsg;
-      aMsg << anException << std::endl;
+      aMsg << anException << '\n';
       throw Standard_Failure(aMsg.str().c_str());
     }  
   }
index c4abc6d988656bcba6e77549c0b26d32b663982b..3a8076da126dd7bdffff18cf0f13f65751357627 100644 (file)
@@ -1005,7 +1005,7 @@ Handle(Resource_Manager) CDM_Document::StorageResource()
   if(myApplication.IsNull()) {
     Standard_SStream aMsg;
     aMsg << "this document of format "<< StorageFormat()
-         << " has not yet been opened by any application. "<< std::endl;
+         << " has not yet been opened by any application. "<< '\n';
     throw Standard_Failure(aMsg.str().c_str());
   }
   return myApplication->Resources();
index 5c5e273bb0c25ba190326f064455e7f729c24919..53e598776f8b719449627cc0defaf3986401f96d 100644 (file)
@@ -140,7 +140,7 @@ Standard_OStream& CDM_MetaData::Print(Standard_OStream& anOStream) const {
   if(HasVersion()) anOStream << "," << myVersion ;
   anOStream << "; Physical situation: ";
   anOStream << myFileName;
-  anOStream << std::endl;
+  anOStream << '\n';
   return anOStream;
 }
 Standard_OStream& CDM_MetaData::operator << (Standard_OStream& anOStream) {
index 237fd058f57fbd2c37f1bc45b8f7c8551a65b5f6..031f52e881debc5abf40d4daad65eb45c954e4ff 100644 (file)
@@ -894,7 +894,7 @@ ChFi3d_ChBuilder::SimulSurf(Handle(ChFiDS_SurfData)&            Data,
       
       if (OffsetHGuide.IsNull())
       {
-        std::cout<<std::endl<<"Construction of offset guide failed!"<<std::endl;
+        std::cout<<'\n'<<"Construction of offset guide failed!"<<'\n';
         //exception
       }
       pFunc.reset(new BRepBlend_ConstThroatWithPenetration(S1,S2,OffsetHGuide));
@@ -1271,7 +1271,7 @@ Standard_Boolean ChFi3d_ChBuilder::PerformFirstSection
       
       if (OffsetHGuide.IsNull())
       {
-        std::cout<<std::endl<<"Construction of offset guide failed!"<<std::endl;
+        std::cout<<'\n'<<"Construction of offset guide failed!"<<'\n';
         //exception
       }
       pFunc.reset(new BRepBlend_ConstThroatWithPenetration(S1,S2,OffsetHGuide));
@@ -1518,7 +1518,7 @@ ChFi3d_ChBuilder::PerformSurf(ChFiDS_SequenceOfSurfData&          SeqData,
       
       if (OffsetHGuide.IsNull())
       {
-        std::cout<<std::endl<<"Construction of offset guide failed!"<<std::endl;
+        std::cout<<'\n'<<"Construction of offset guide failed!"<<'\n';
         //exception
       }
       pFunc.reset(new BRepBlend_ConstThroatWithPenetration(S1,S2,OffsetHGuide));
index 16d2d586256abbf0698d1bea0ef387f1428de80d..e0e89dce47ceb8586ba919aad609862cc160628f 100644 (file)
@@ -1244,7 +1244,7 @@ void ComputeInternalPoints
           rsnld.Perform(SFunc,X,infb,supb);
 
           if (!rsnld.IsDone()) {
-            std::cout << "Echec recherche internal points" << std::endl;
+            std::cout << "Echec recherche internal points" << '\n';
             solution = Standard_True;
             ok = Standard_False;
           }
@@ -1282,7 +1282,7 @@ void ComputeInternalPoints
               }
             }
             else { // on n est pas sur une solution
-              std::cout << "Echec recherche internal points" << std::endl;
+              std::cout << "Echec recherche internal points" << '\n';
               solution = Standard_True;
               ok = Standard_False;
             }
index 2dba7ae0d721ce6616cae4434cb1b0346ab25a81..6fdc4cc924532eaaa6ee1f8f19753ff506bff45c 100644 (file)
@@ -61,7 +61,7 @@ Standard_EXPORT void DBRep_WriteColorOrientation ()
   std::cout << "\nrouge  FORWARD";
   std::cout << "\nbleu   REVERSED";
   std::cout << "\nrose   EXTERNAL";
-  std::cout << "\norange INTERNAL"<<std::endl;
+  std::cout << "\norange INTERNAL"<<'\n';
 }
 
 Standard_EXPORT Draw_Color DBRep_ColorOrientation (const TopAbs_Orientation Or) 
@@ -1376,7 +1376,7 @@ TopoDS_Shape DBRep::getShape (Standard_CString& theName,
       TopAbs::Print (theType, std::cout);
       std::cout << " but a ";
       TopAbs::Print (aShape.ShapeType(), std::cout);
-      std::cout << std::endl;
+      std::cout << '\n';
     }
     return TopoDS_Shape();
   }
index 55efde50a78b58b1fd653a003791c971bea8fa2a..86f3b04dc9e5e8250a95b600d98b1648b447194a 100644 (file)
@@ -630,7 +630,7 @@ void  DBRep_DrawableShape::DrawOn(Draw_Display& dis) const
       BRep_Tool::Range(E->Edge(), aCheckU1, aCheckU2);
       if (aCheckU2 < aCheckU1) {
        // bad orientation
-       std::cout << "DBRep_DrawableShape : Bad parameters on edge."<<std::endl;
+       std::cout << "DBRep_DrawableShape : Bad parameters on edge."<<'\n';
        BRepTools::Dump(E->Edge(),std::cout);
        ite.Next();
        continue;
index 5912ca35c51b5ce8c323ad0ac7c9b089693f5c3b..57fe42abd83b9e316a70585ae95168091f019219 100644 (file)
@@ -294,11 +294,11 @@ void DBRep_IsoBuilder::LoadIsos (const Handle(DBRep_Face)& Face) const
       if (!IsDone (UInd)) {
        std::cout << "DBRep_IsoBuilder:: U iso of parameter: " << UPrm ;
        switch (Status (UInd)) {
-         case HatchGen_NoProblem          : std::cout << " No Problem"          << std::endl ; break ;
-         case HatchGen_TrimFailure        : std::cout << " Trim Failure"        << std::endl ; break ;
-         case HatchGen_TransitionFailure  : std::cout << " Transition Failure"  << std::endl ; break ;
-         case HatchGen_IncoherentParity   : std::cout << " Incoherent Parity"   << std::endl ; break ;
-         case HatchGen_IncompatibleStates : std::cout << " Incompatible States" << std::endl ; break ;
+         case HatchGen_NoProblem          : std::cout << " No Problem"          << '\n' ; break ;
+         case HatchGen_TrimFailure        : std::cout << " Trim Failure"        << '\n' ; break ;
+         case HatchGen_TransitionFailure  : std::cout << " Transition Failure"  << '\n' ; break ;
+         case HatchGen_IncoherentParity   : std::cout << " Incoherent Parity"   << '\n' ; break ;
+         case HatchGen_IncompatibleStates : std::cout << " Incompatible States" << '\n' ; break ;
        }
       } else {
        Standard_Integer NbDom = Geom2dHatch_Hatcher::NbDomains (UInd) ;
@@ -320,11 +320,11 @@ void DBRep_IsoBuilder::LoadIsos (const Handle(DBRep_Face)& Face) const
       if (!IsDone (VInd)) {
        std::cout << "DBRep_IsoBuilder:: V iso of parameter: " << VPrm ;
        switch (Status (VInd)) {
-         case HatchGen_NoProblem          : std::cout << " No Problem"          << std::endl ; break ;
-         case HatchGen_TrimFailure        : std::cout << " Trim Failure"        << std::endl ; break ;
-         case HatchGen_TransitionFailure  : std::cout << " Transition Failure"  << std::endl ; break ;
-         case HatchGen_IncoherentParity   : std::cout << " Incoherent Parity"   << std::endl ; break ;
-         case HatchGen_IncompatibleStates : std::cout << " Incompatible States" << std::endl ; break ;
+         case HatchGen_NoProblem          : std::cout << " No Problem"          << '\n' ; break ;
+         case HatchGen_TrimFailure        : std::cout << " Trim Failure"        << '\n' ; break ;
+         case HatchGen_TransitionFailure  : std::cout << " Transition Failure"  << '\n' ; break ;
+         case HatchGen_IncoherentParity   : std::cout << " Incoherent Parity"   << '\n' ; break ;
+         case HatchGen_IncompatibleStates : std::cout << " Incompatible States" << '\n' ; break ;
        }
       } else {
        Standard_Integer NbDom = Geom2dHatch_Hatcher::NbDomains (VInd) ;
index fe59d15f46c04b228ab89e177a2f9dd8f5765fb8..e9820bd672d571a3a700ab899844b8d75bf45cd2 100644 (file)
@@ -56,7 +56,7 @@ Standard_Boolean DDF::FindLabel (const Handle(TDF_Data)& DF,
 {
   Label.Nullify();
   TDF_Tool::Label(DF,Entry,Label,Standard_False);
-  if (Label.IsNull() && Complain) std::cout << "No label for entry " << Entry <<std::endl;
+  if (Label.IsNull() && Complain) std::cout << "No label for entry " << Entry <<'\n';
   return !Label.IsNull();
 }
 
@@ -77,7 +77,7 @@ Standard_Boolean DDF::GetDF (Standard_CString&       Name,
     DF = DDF->DataFramework(); 
     return Standard_True;
   } 
-  if (Complain) std::cout <<"framework "<<Name<<" not found "<< std::endl
+  if (Complain) std::cout <<"framework "<<Name<<" not found "<< '\n'
   return Standard_False;
 }
 
@@ -96,7 +96,7 @@ Standard_Boolean DDF::Find (const Handle(TDF_Data)& DF,
   TDF_Label L;
   if (FindLabel(DF,Entry,L,Complain)) {
     if (L.FindAttribute(ID,A)) return Standard_True;
-    if (Complain) std::cout <<"attribute not found for entry : "<< Entry <<std::endl
+    if (Complain) std::cout <<"attribute not found for entry : "<< Entry <<'\n'
   }
   return Standard_False;   
 }
index af9799913c0b26dcd15c83006d5df13ad878245a..e8c485e83434de88af4e897accea194b544d33d2 100644 (file)
@@ -82,7 +82,7 @@ Handle(Draw_Drawable3D) DDF_Browser::Copy() const
 
 void DDF_Browser::Dump(Standard_OStream& S) const
 {
-  S<<"DDF_Browser on a DF:"<<std::endl;
+  S<<"DDF_Browser on a DF:"<<'\n';
   S<<myDF;
 }
 
index dd973ccfb96f0522ce8c35595e84ca9cdbc80120..8509de5821933c1393eb04cc78678ccb100847c4 100644 (file)
@@ -45,7 +45,7 @@ DDF_Data::DDF_Data(const Handle(TDF_Data)& aDF) : myDF (aDF) {}
 
 void DDF_Data::DrawOn(Draw_Display& /*dis*/) const
 
-{ std::cout<<"DDF_Data"<<std::endl; }
+{ std::cout<<"DDF_Data"<<'\n'; }
 
 
 
index d2f467ee1754e7b15ec427c16749386e3964c96a..0c9f5797dc616275c9c2d95e265874b90466f05f 100644 (file)
@@ -2947,7 +2947,7 @@ static Standard_Integer DDataStd_SetIntPackedMap (Draw_Interpretor& di,
     }
     const Handle(TColStd_HPackedMapOfInteger)& aHMap = new TColStd_HPackedMapOfInteger(aMap);
     anAtt->ChangeMap(aHMap);
-    std::cout << "Map extent = " << anAtt->Extent()<<std::endl;
+    std::cout << "Map extent = " << anAtt->Extent()<<'\n';
     return 0; 
   }
   di << "DDataStd_SetIntPackedMap : Error\n";
@@ -3145,7 +3145,7 @@ static Standard_Integer DDataStd_SetIntPHugeMap (Draw_Interpretor& di,
     }
     const Handle(TColStd_HPackedMapOfInteger)& aHMap = new TColStd_HPackedMapOfInteger(aMap);
     anAtt->ChangeMap(aHMap);
-    std::cout << "Map extent = " << anAtt->Extent()<<std::endl;
+    std::cout << "Map extent = " << anAtt->Extent()<<'\n';
     return 0; 
   }
   di << "DDataStd_SetIntPHugeMap : Error\n";
@@ -3261,7 +3261,7 @@ static Standard_Integer DDataStd_SetAsciiString (Draw_Interpretor& di,
       return 1;
     }
   
-    std::cout << "String = " << anAtt->Get().ToCString() << " is kept in DF" << std::endl;
+    std::cout << "String = " << anAtt->Get().ToCString() << " is kept in DF" << '\n';
     return 0; 
   }
   di << "DDataStd_SetAsciiString : Error\n";
@@ -3375,8 +3375,8 @@ static Standard_Integer DDataStd_GetNDIntegers (Draw_Interpretor& di,
       return 1;
     }
 
-    std::cout <<std::endl;
-    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
+    std::cout <<'\n';
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';
     anAtt->LoadDeferredData();
     const TColStd_DataMapOfStringInteger& aMap = anAtt->GetIntegersContainer();
     TColStd_DataMapIteratorOfDataMapOfStringInteger itr(aMap);
@@ -3414,15 +3414,15 @@ static Standard_Integer DDataStd_GetNDInteger (Draw_Interpretor& di,
       return 1;
     }
 
-    std::cout <<std::endl;
-    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;    
+    std::cout <<'\n';
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';    
     anAtt->LoadDeferredData();
     TCollection_ExtendedString aKey(arg[3], Standard_True);
     if(!anAtt->HasInteger(aKey)) {
-      std::cout << "There is no data specified by Key = "<< arg[3]  << std::endl;
+      std::cout << "There is no data specified by Key = "<< arg[3]  << '\n';
       return 1;
     } else {
-      std::cout << "Key = "  << arg[3]  << " Value = " <<anAtt->GetInteger(aKey)<<std::endl;
+      std::cout << "Key = "  << arg[3]  << " Value = " <<anAtt->GetInteger(aKey)<<'\n';
       if(nb == 5) 
         Draw::Set(arg[4], anAtt->GetInteger(aKey));
       return 0; 
@@ -3486,8 +3486,8 @@ static Standard_Integer DDataStd_GetNDReals (Draw_Interpretor& di,
     TDF_Label aLabel;
     if(!DDF::FindLabel(DF, arg[2], aLabel)) return 1;
  
-    std::cout <<std::endl;
-    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
+    std::cout <<'\n';
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';
     Handle(TDataStd_NamedData) anAtt;
     if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt))
     {
@@ -3531,15 +3531,15 @@ static Standard_Integer DDataStd_GetNDReal (Draw_Interpretor& di,
       return 1;
     }
 
-    std::cout <<std::endl;
-    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;    
+    std::cout <<'\n';
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';    
     anAtt->LoadDeferredData();
     TCollection_ExtendedString aKey(arg[3], Standard_True);
     if(!anAtt->HasReal(aKey)) {
       Message::SendFail() << "There is no data specified by Key = " << arg[3];
       return 1;
     } else {
-      std::cout << "Key = "  << arg[3]  << " Value = " <<anAtt->GetReal(aKey)<<std::endl;
+      std::cout << "Key = "  << arg[3]  << " Value = " <<anAtt->GetReal(aKey)<<'\n';
       if(nb == 5) 
         Draw::Set(arg[4], anAtt->GetReal(aKey));
       return 0; 
@@ -3622,8 +3622,8 @@ static Standard_Integer DDataStd_GetNDStrings (Draw_Interpretor& di,
       return 1;
     }
 
-    std::cout <<std::endl;
-    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;    
+    std::cout <<'\n';
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';    
     anAtt->LoadDeferredData();
     const TDataStd_DataMapOfStringString& aMap = anAtt->GetStringsContainer();
 
@@ -3665,8 +3665,8 @@ static Standard_Integer DDataStd_GetNDString (Draw_Interpretor& di,
       di << "NamedData attribute is not found or not set"  << "\n";
       return 1;}
 
-    std::cout <<std::endl;
-    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;    
+    std::cout <<'\n';
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';    
     anAtt->LoadDeferredData();
     TCollection_ExtendedString aKey(arg[3], Standard_True);
     if (!anAtt->HasString(aKey))
@@ -3677,7 +3677,7 @@ static Standard_Integer DDataStd_GetNDString (Draw_Interpretor& di,
     else
     {
       TCollection_AsciiString aValue (anAtt->GetString(aKey));
-      std::cout << "Key = "  << arg[3]  << " Value = " << aValue.ToCString() << std::endl;
+      std::cout << "Key = "  << arg[3]  << " Value = " << aValue.ToCString() << '\n';
       if(nb == 5) 
         Draw::Set(arg[4], aValue.ToCString());
       return 0; 
@@ -3749,8 +3749,8 @@ static Standard_Integer DDataStd_GetNDBytes (Draw_Interpretor& di,
       return 1;
     }
 
-    std::cout <<std::endl;
-    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;      
+    std::cout <<'\n';
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';      
     anAtt->LoadDeferredData();
     const TDataStd_DataMapOfStringByte& aMap = anAtt->GetBytesContainer();
     TDataStd_DataMapIteratorOfDataMapOfStringByte itr(aMap);
@@ -3758,7 +3758,7 @@ static Standard_Integer DDataStd_GetNDBytes (Draw_Interpretor& di,
     {
       const TCollection_ExtendedString& aKey(itr.Key());
       Standard_Byte aValue = itr.Value();
-      std::cout << "Key = "  << aKey << " Value = " <<aValue<<std::endl;
+      std::cout << "Key = "  << aKey << " Value = " <<aValue<<'\n';
     }
     return 0; 
   }
@@ -3788,8 +3788,8 @@ static Standard_Integer DDataStd_GetNDByte (Draw_Interpretor& di,
       return 1;
     }
 
-    std::cout <<std::endl;
-    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;      
+    std::cout <<'\n';
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';      
     anAtt->LoadDeferredData();
     TCollection_ExtendedString aKey(arg[3], Standard_True);
     if (!anAtt->HasByte(aKey))
@@ -3799,7 +3799,7 @@ static Standard_Integer DDataStd_GetNDByte (Draw_Interpretor& di,
     }
     else
     {
-      std::cout << "Key = "  << arg[3]  << " Value = " <<anAtt->GetByte(aKey)<< std::endl;
+      std::cout << "Key = "  << arg[3]  << " Value = " <<anAtt->GetByte(aKey)<< '\n';
       if(nb == 5) 
         Draw::Set(arg[4], anAtt->GetByte(aKey));
       return 0; 
@@ -3875,24 +3875,24 @@ static Standard_Integer DDataStd_GetNDIntArrays (Draw_Interpretor& di,
       return 1;
     }
 
-    std::cout <<std::endl;
-    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;      
+    std::cout <<'\n';
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';      
     anAtt->LoadDeferredData();
     const TDataStd_DataMapOfStringHArray1OfInteger& aMap = anAtt->GetArraysOfIntegersContainer();
     TDataStd_DataMapIteratorOfDataMapOfStringHArray1OfInteger itr(aMap);
     for (; itr.More(); itr.Next()){
       const TCollection_ExtendedString& aKey(itr.Key());
-      std::cout << "Key = "  << aKey<< std::endl;
+      std::cout << "Key = "  << aKey<< '\n';
       const Handle(TColStd_HArray1OfInteger)& anArrValue = itr.Value();      
       if(!anArrValue.IsNull()) {
         Standard_Integer lower = anArrValue->Lower();
         Standard_Integer upper = anArrValue->Upper();
         for(Standard_Integer i = lower; i<=upper;i++) {
           Standard_Integer aValue = anArrValue->Value(i);
-          std::cout << "\tValue("<<i<<") = " <<aValue<<std::endl;
+          std::cout << "\tValue("<<i<<") = " <<aValue<<'\n';
         }
       } else 
-        std::cout << "\tthe specified array is Null "<<std::endl;
+        std::cout << "\tthe specified array is Null "<<'\n';
     }
     return 0; 
   }
@@ -3922,8 +3922,8 @@ static Standard_Integer DDataStd_GetNDIntArray (Draw_Interpretor& di,
       return 1;
     }
 
-    std::cout <<std::endl;
-    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;      
+    std::cout <<'\n';
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';      
     anAtt->LoadDeferredData();
     TCollection_ExtendedString aKey(arg[3], Standard_True);
     if (!anAtt->HasArrayOfIntegers(aKey))
@@ -3933,7 +3933,7 @@ static Standard_Integer DDataStd_GetNDIntArray (Draw_Interpretor& di,
     }
     else
     {
-      std::cout << "Key = "  << arg[3] <<std::endl;
+      std::cout << "Key = "  << arg[3] <<'\n';
 
       Handle(TColStd_HArray1OfInteger) anArrValue = anAtt->GetArrayOfIntegers(aKey);
       if(!anArrValue.IsNull()) {
@@ -3941,10 +3941,10 @@ static Standard_Integer DDataStd_GetNDIntArray (Draw_Interpretor& di,
         Standard_Integer upper = anArrValue->Upper();
         for(Standard_Integer i = lower; i<=upper;i++) {
           Standard_Integer aValue = anArrValue->Value(i);
-          std::cout << "\tValue("<<i<<") = " <<aValue<<std::endl;
+          std::cout << "\tValue("<<i<<") = " <<aValue<<'\n';
         }
       } else 
-        std::cout << "\tthe specified array is Null or not found"<<std::endl;
+        std::cout << "\tthe specified array is Null or not found"<<'\n';
       return 0; 
     }
   }
@@ -4018,24 +4018,24 @@ static Standard_Integer DDataStd_GetNDRealArrays (Draw_Interpretor& di,
       return 1;
     }
 
-    std::cout <<std::endl;
-    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;      
+    std::cout <<'\n';
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';      
     anAtt->LoadDeferredData();
     const TDataStd_DataMapOfStringHArray1OfReal& aMap = anAtt->GetArraysOfRealsContainer();
     TDataStd_DataMapIteratorOfDataMapOfStringHArray1OfReal itr(aMap);
     for (; itr.More(); itr.Next()){
       const TCollection_ExtendedString& aKey(itr.Key());
-      std::cout << "Key = "  << aKey << std::endl;
+      std::cout << "Key = "  << aKey << '\n';
       const Handle(TColStd_HArray1OfReal)& anArrValue = itr.Value();      
       if(!anArrValue.IsNull()) {
         Standard_Integer lower = anArrValue->Lower();
         Standard_Integer upper = anArrValue->Upper();
         for(Standard_Integer i = lower; i<=upper;i++) {
           Standard_Real aValue = anArrValue->Value(i);
-          std::cout << "\tValue("<<i<<") = " <<aValue<<std::endl;
+          std::cout << "\tValue("<<i<<") = " <<aValue<<'\n';
         }
       } else 
-        std::cout << "\tthe specified array is Null "<<std::endl;
+        std::cout << "\tthe specified array is Null "<<'\n';
     }
     return 0; 
   }
@@ -4063,15 +4063,15 @@ static Standard_Integer DDataStd_GetNDRealArray (Draw_Interpretor& di,
       di << "NamedData attribute is not found or not set"  << "\n";
       return 1;}
 
-    std::cout <<std::endl;
-    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
+    std::cout <<'\n';
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';
     anAtt->LoadDeferredData();
     TCollection_ExtendedString aKey(arg[3], Standard_True);
     if(!anAtt->HasArrayOfReals(aKey)) {
-      std::cout << "There is no data specified by Key = "<< arg[3]  << std::endl;
+      std::cout << "There is no data specified by Key = "<< arg[3]  << '\n';
       return 1;
     } else {
-      std::cout << "Key = "  << arg[3] <<std::endl;
+      std::cout << "Key = "  << arg[3] <<'\n';
 
       Handle(TColStd_HArray1OfReal) anArrValue = anAtt->GetArrayOfReals(aKey);
       if(!anArrValue.IsNull()) {
@@ -4079,10 +4079,10 @@ static Standard_Integer DDataStd_GetNDRealArray (Draw_Interpretor& di,
         Standard_Integer upper = anArrValue->Upper();
         for(Standard_Integer i = lower; i<=upper;i++) {
           Standard_Real aValue = anArrValue->Value(i);
-          std::cout << "\tValue("<<i<<") = " <<aValue<<std::endl;
+          std::cout << "\tValue("<<i<<") = " <<aValue<<'\n';
         }
       } else 
-        std::cout << "\tthe specified array is Null or not found"<<std::endl;
+        std::cout << "\tthe specified array is Null or not found"<<'\n';
       return 0; 
     }
   }
index 2a69febaa7c0a3a7401cd9a7634d962063c64581..0b74b1567c832513d6eda1417dd122ba6072ca39 100644 (file)
@@ -353,7 +353,7 @@ void DDataStd_DrawPresentation::DrawBuild ()
     DDataStd_DrawDriver::Set(DD);
   }
   Handle(Draw_Drawable3D) D3D = DD->Drawable(Label()); 
-  if (D3D.IsNull()) std::cout<< "DDataStd_DrawPresentation::DrawBuild : null drawable" << std::endl;
+  if (D3D.IsNull()) std::cout<< "DDataStd_DrawPresentation::DrawBuild : null drawable" << '\n';
   myDrawable = D3D;
 }
 
@@ -380,7 +380,7 @@ void DDataStd_DrawPresentation::DrawDisplay (const TDF_Label& L,
       return;
     }
   }
-  std::cout<< "DDataStd_DrawPresentation::DrawDisplay : null Label" << std::endl;
+  std::cout<< "DDataStd_DrawPresentation::DrawDisplay : null Label" << '\n';
 }
 
 //=======================================================================
@@ -401,7 +401,7 @@ void DDataStd_DrawPresentation::DrawErase (const TDF_Label& L,
       return;
     }
   }
-  std::cout<< "DDataStd_DrawPresentation::DrawErase : null Label" << std::endl;
+  std::cout<< "DDataStd_DrawPresentation::DrawErase : null Label" << '\n';
 }
 
 
index 5b6a1afc24d3aa4ebe2109401b9d0f299ec79860..683af31e73c1d757e10ba4c12987bfdbf756b0fa 100644 (file)
@@ -59,7 +59,7 @@ DDataStd_TreeBrowser::DDataStd_TreeBrowser(const TDF_Label& aLabel)
 //=======================================================================
 
 void DDataStd_TreeBrowser::DrawOn(Draw_Display& /*dis*/) const
-{ std::cout<<"DDataStd_TreeBrowser"<<std::endl; }
+{ std::cout<<"DDataStd_TreeBrowser"<<'\n'; }
 
 
 //=======================================================================
@@ -78,7 +78,7 @@ Handle(Draw_Drawable3D) DDataStd_TreeBrowser::Copy() const
 
 void DDataStd_TreeBrowser::Dump(Standard_OStream& S) const
 {
-  S<<"DDataStd_TreeBrowser on a label: "<<std::endl;
+  S<<"DDataStd_TreeBrowser on a label: "<<'\n';
   S<<myRoot;
 }
 
index a49532ec0a5d7de03fec00d5d5be93fbbc2a33c7..f1b3a80a11a13e201764b120b899cddcbdbac5d9 100644 (file)
@@ -68,7 +68,7 @@ Standard_Boolean DDocStd::GetDocument (Standard_CString&         Name,
 {
   Handle(DDocStd_DrawDocument) DD = Handle(DDocStd_DrawDocument)::DownCast (Draw::GetExisting (Name));
   if (DD.IsNull()) {
-    if (Complain) std::cout << Name << " is not a Document" << std::endl
+    if (Complain) std::cout << Name << " is not a Document" << '\n'
     return Standard_False;
   }
   Handle(TDocStd_Document) STDDOC = DD->GetDocument();
@@ -76,7 +76,7 @@ Standard_Boolean DDocStd::GetDocument (Standard_CString&         Name,
     DOC = STDDOC;
     return Standard_True;
   }
-  if (Complain) std::cout << Name << " is not a CAF Document" << std::endl
+  if (Complain) std::cout << Name << " is not a CAF Document" << '\n'
   return Standard_False;
 }
 
@@ -93,7 +93,7 @@ Standard_Boolean DDocStd::Find (const Handle(TDocStd_Document)& D,
 {
   Label.Nullify();
   TDF_Tool::Label(D->GetData(),Entry,Label,Standard_False);
-  if (Label.IsNull() && Complain) std::cout<<"No label for entry "<<Entry<<std::endl;
+  if (Label.IsNull() && Complain) std::cout<<"No label for entry "<<Entry<<'\n';
   return !Label.IsNull();
 }
 
@@ -111,7 +111,7 @@ Standard_Boolean DDocStd::Find (const Handle(TDocStd_Document)& D,
   TDF_Label L;
   if (Find(D,Entry,L,Complain)) {
     if (L.FindAttribute(ID,A)) return Standard_True;
-    if (Complain) std::cout <<"attribute not found for entry : "<< Entry <<std::endl
+    if (Complain) std::cout <<"attribute not found for entry : "<< Entry <<'\n'
   }
   return Standard_False;   
 }
index 7e8de054b99b5e81c4a54a88d024fc5ec9efc3eb..f155855609dc60335d87f370d1e05f2afc90d25f 100644 (file)
@@ -88,7 +88,7 @@ void DDocStd_DrawDocument::Dump (Standard_OStream& S) const
     DDF_Data::Dump(S);
   }
   else {  
-    S << myDocument->DynamicType()->Name() << " is not a CAF document" << std::endl;
+    S << myDocument->DynamicType()->Name() << " is not a CAF document" << '\n';
   }
 }
 
index eed3de3f0215bf80e7a24fff6ea6009a2d3b812e..ca348c30a91e927be6a13fe006541d4a63bd6cc2 100644 (file)
@@ -187,7 +187,7 @@ static Handle(TFunction_Driver) GetDriver(const TCollection_AsciiString& name)
   else if(name == "Section") 
     aDrv = new DNaming_BooleanOperationDriver();
   else 
-    std::cout << "the specified driver is not supported" <<std::endl;
+    std::cout << "the specified driver is not supported" <<'\n';
   return aDrv;
 }
 //=======================================================================
@@ -504,7 +504,7 @@ static Standard_Integer DNaming_SolveFlatFrom (Draw_Interpretor& /*theDI*/,
       Handle(TFunction_Function) aFun;
       funLabel.FindAttribute(TFunction_Function::GetID(), aFun);
       if(aFun.IsNull()) {
-       std::cout << "DNaming_SolveFlatFrom:: Null function is found!" << std::endl;
+       std::cout << "DNaming_SolveFlatFrom:: Null function is found!" << '\n';
        continue;
       } 
       else {
@@ -521,7 +521,7 @@ static Standard_Integer DNaming_SolveFlatFrom (Draw_Interpretor& /*theDI*/,
          std::cout <<"DNaming_SolveFlatFrom : function from label " << entry << " is recomputed" << std::endl;
 #endif
        } catch (EXCEPTION) {
-         std::cout <<"DNaming_SolveFlatFrom : Exception computing function at label " << entry << std::endl;
+         std::cout <<"DNaming_SolveFlatFrom : Exception computing function at label " << entry << '\n';
        }
       }
     }
@@ -576,15 +576,15 @@ static Standard_Integer DNaming_CheckLogBook (Draw_Interpretor& /*theDI*/,
     if (!DDocStd::GetDocument(aDocS, aDoc)) return 1;
     Handle(TFunction_Logbook) logbook = TFunction_Logbook::Set(aDoc->Main());
     if(logbook->IsEmpty())
-      std::cout << "DNaming_CheckLogBook : is empty" <<std::endl;
+      std::cout << "DNaming_CheckLogBook : is empty" <<'\n';
     else {
       const TDF_LabelMap& aMap = logbook->GetValid();
       TDF_MapIteratorOfLabelMap it(aMap);
       TCollection_AsciiString entry;
-      std::cout << "DNaming_CheckLogBook : LogBook current state:" <<std::endl;
+      std::cout << "DNaming_CheckLogBook : LogBook current state:" <<'\n';
       for (;it.More();it.Next()) {
        TDF_Tool::Entry(it.Key(), entry);
-       std::cout << entry <<std::endl;
+       std::cout << entry <<'\n';
       }
     }
     return 0;
@@ -688,7 +688,7 @@ static Standard_Integer DNaming_AttachShape (Draw_Interpretor& di,
              return 1;
          }
           catch (Standard_Failure const&) {
-           std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<std::endl;
+           std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<'\n';
          }
     
          if(!aCont.IsNull()) {
@@ -756,7 +756,7 @@ static Standard_Integer DNaming_XAttachShape (Draw_Interpretor& di,
          Handle(TNaming_NamedShape) aCont =  DNaming::GetObjectValue(aContext);
 
          if(aCont.IsNull() || aCont->IsEmpty())
-           std::cout <<"Wrong Context ..." <<std::endl;
+           std::cout <<"Wrong Context ..." <<'\n';
          else {
            TopoDS_Shape aCONTEXT = aCont->Get();
            try{
@@ -765,7 +765,7 @@ static Standard_Integer DNaming_XAttachShape (Draw_Interpretor& di,
                return 1;
            }
             catch (Standard_Failure const&) {
-             std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<std::endl;
+             std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<'\n';
            }
     
            TDF_Reference::Set(aFun->Label().FindChild(FUNCTION_ARGUMENTS_LABEL).FindChild(ATTACH_ARG), 
@@ -1546,7 +1546,7 @@ static Standard_Integer DNaming_PntOffset (Draw_Interpretor& theDI,
       if(isDX || isDY || isDZ)
        DDF::ReturnLabel(theDI, objLabel);
       else
-       std::cout <<"DNaming_PntOffset : Nothing changed" << std::endl
+       std::cout <<"DNaming_PntOffset : Nothing changed" << '\n'
       return 0;
     }
   }
@@ -1691,7 +1691,7 @@ static Standard_Boolean MakeSelection (const Handle(TDataStd_UAttribute)& Obj,
          if(!aSelector.Select(Selection, aContext, Geometry, KeepOrientation))
            return Standard_False;
        }catch (...) {
-         std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<std::endl;
+         std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<'\n';
        }
 
        if(!aNS.IsNull()) {
@@ -1749,7 +1749,7 @@ static Standard_Boolean MakeXSelection (const Handle(TDataStd_UAttribute)& Obj,
          if(!aSelector.Select(Selection, aContext, Geometry, KeepOrientation))
            return Standard_False;
        }catch (...) {
-         std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<std::endl;
+         std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<'\n';
        }
 
        if(!aNS.IsNull()) {
@@ -1923,7 +1923,7 @@ static Standard_Integer DNaming_TestSingle (Draw_Interpretor& theDI,
        }
        catch (Standard_Failure const& anException) {
          std::cout << "%%%INFO:Error: ::TestSingleSelection failed :";
-         std::cout << anException.GetMessageString() << std::endl;
+         std::cout << anException.GetMessageString() << '\n';
        }
        catch(...) {
          std::cout << "%%%INFO:Error: ::TestSingleSelection selection failed : unknown exception type";
@@ -1960,9 +1960,9 @@ static Standard_Integer DNaming_TestSingle (Draw_Interpretor& theDI,
        }
        if(aResult.Length()) {
          if(aResult.Search("Warning") == -1)
-           std::cout << "Failed units: " << aResult << " at " << entry << std::endl;
+           std::cout << "Failed units: " << aResult << " at " << entry << '\n';
          else 
-           std::cout << aResult << " at " << entry << std::endl;
+           std::cout << aResult << " at " << entry << '\n';
          TDataStd_Name::Set(auxObj->Label(), aResult);
        }
       } 
@@ -1976,7 +1976,7 @@ static Standard_Integer DNaming_TestSingle (Draw_Interpretor& theDI,
          B.Generated(it1.Value());
          TCollection_AsciiString entry;
          TDF_Tool::Entry(aLabel, entry);
-         std::cout << "\t" <<entry <<std::endl;
+         std::cout << "\t" <<entry <<'\n';
        }
       }
       if(!FirstAuxObj.IsNull())
@@ -2057,7 +2057,7 @@ static Standard_Integer DNaming_Multiple (Draw_Interpretor& theDI,
        }
        catch (Standard_Failure const& anException) {
          std::cout << "%%%INFO:Error: ::TestSingleSelection failed :";
-         std::cout << anException.GetMessageString() << std::endl;
+         std::cout << anException.GetMessageString() << '\n';
        }
        catch(...) {
          std::cout << "%%%INFO:Error: ::TestSingleSelection selection failed : unknown exception type";
@@ -2093,7 +2093,7 @@ static Standard_Integer DNaming_Multiple (Draw_Interpretor& theDI,
          aFailedList.Append(aCurShape);
        }
        if(aResult.Length())
-         std::cout << "Failed units: " << aResult << std::endl;
+         std::cout << "Failed units: " << aResult << '\n';
       }
  
       if(aFailedList.Extent()) {
index 269ab68d728c7589b616be6c105a619fd3f66d7d..c098fca9517b3058152219c778aab2fc471504b6 100644 (file)
@@ -184,7 +184,7 @@ static Standard_Integer DNaming_SolveSelection (Draw_Interpretor& di, Standard_I
 
     Handle(TNaming_Naming) naming;    
     if (!L.FindAttribute(TNaming_Naming::GetID(),naming)) {  
-      std::cout <<"DNaming__SolveSelection  : not a selection" << std::endl;
+      std::cout <<"DNaming__SolveSelection  : not a selection" << '\n';
       return 1;
     }
        TDF_LabelMap aValidMap;
index 71dc6c4cb5c2a44b481d9627f6f1d0807edafc02..98b7200e16430edf3479f444cef5e026b6576ebb 100644 (file)
@@ -124,15 +124,15 @@ Standard_Integer DNaming_SelectionDriver::Execute(Handle(TFunction_Logbook)& the
     theLog->SetValid(aRLabel);
     Handle(TNaming_NamedShape) aNS;
     if(!aRLabel.FindAttribute(TNaming_NamedShape::GetID(),aNS)) {
-      std::cout <<"%%%WARNING: DNaming_SelectionDriver::NamedShape is not found"<<std::endl;
+      std::cout <<"%%%WARNING: DNaming_SelectionDriver::NamedShape is not found"<<'\n';
     }
     else {
       if(aNS.IsNull()) {
-       std::cout << "%%%WARNING: DNaming_SelectionDriver::NamedShape is NULL" <<std::endl;
+       std::cout << "%%%WARNING: DNaming_SelectionDriver::NamedShape is NULL" <<'\n';
       } else 
        if(aNS->IsEmpty()) {
          std::cout << "%%%WARNING: DNaming_SelectionDriver::NamedShape is EMPTY on Label = ";
-         aNS->Label().EntryDump(std::cout); std::cout << std::endl;
+         aNS->Label().EntryDump(std::cout); std::cout << '\n';
          
        } else {
 #ifdef OCCT_DEBUG
@@ -159,7 +159,7 @@ Standard_Integer DNaming_SelectionDriver::Execute(Handle(TFunction_Logbook)& the
   }
   else {
     aFunction->SetFailure(NOTDONE);
-    std::cout << "%%%WARNING: DNaming_SelectionDriver::Execute: Selection is Not solved !!!" << std::endl;
+    std::cout << "%%%WARNING: DNaming_SelectionDriver::Execute: Selection is Not solved !!!" << '\n';
     return 1;
   }
   return 0;
index 8bf5fbf0361694601ad535ebc3a123bb76657b5a..457564fb7849cc1073a467c4ed2ba413d421ae36 100644 (file)
@@ -385,7 +385,7 @@ void Draw_Appli(int argc, char** argv, const FDraw_InitAppli Draw_InitAppli)
 #endif
   else
   {
-    std::cout << "DRAW is running in batch mode" << std::endl;
+    std::cout << "DRAW is running in batch mode" << '\n';
     theCommands.Init();
     Tcl_Init(theCommands.Interp());
   }
@@ -397,7 +397,7 @@ void Draw_Appli(int argc, char** argv, const FDraw_InitAppli Draw_InitAppli)
     {
       if (!dout.DefineColor (i, ColorNames[i]))
       {
-        std::cout <<"Could not allocate default color " << ColorNames[i] << std::endl;
+        std::cout <<"Could not allocate default color " << ColorNames[i] << '\n';
       }
     }
   }
@@ -479,8 +479,8 @@ void Draw_Appli(int argc, char** argv, const FDraw_InitAppli Draw_InitAppli)
 #ifdef _WIN32
       ReadInitFile ("ddefault");
 #else
-      std::cout << " the CASROOT variable is mandatory to Run OpenCascade "<< std::endl;
-      std::cout << "No default file" << std::endl;
+      std::cout << " the CASROOT variable is mandatory to Run OpenCascade "<< '\n';
+      std::cout << "No default file" << '\n';
 #endif
     }
   }
@@ -621,7 +621,7 @@ Standard_Boolean Draw_Interprete(const char* com)
     {
       Message_PrinterOStream::SetConsoleTextColor (&std::cout, Message_ConsoleColor_Red, true);
     }
-    std::cout << theCommands.Result() << std::endl;
+    std::cout << theCommands.Result() << '\n';
     if (c > 0 && theCommands.ToColorize())
     {
       Message_PrinterOStream::SetConsoleTextColor (&std::cout, Message_ConsoleColor_Default, false);
@@ -656,7 +656,7 @@ Standard_Integer Tcl_AppInit (Tcl_Interp *)
 Standard_Integer  Draw_Call (char *c)
 {
    Standard_Integer r = theCommands.Eval(c);
-   std::cout << theCommands.Result() << std::endl;
+   std::cout << theCommands.Result() << '\n';
    return r;
 }
 
@@ -679,7 +679,7 @@ void Draw::Load (Draw_Interpretor& theDI,
     if (!aPluginResource->Find (theKey, aPluginLibrary))
     {
       Message::SendFail() << "could not find the resource:" << theKey;
-      Standard_SStream aMsg; aMsg << "Could not find the resource:" << theKey << std::endl;
+      Standard_SStream aMsg; aMsg << "Could not find the resource:" << theKey << '\n';
       throw Draw_Failure (aMsg.str().c_str());
     }
 
index f115d05982a9d4bd06ca015941f1df3f4c21518b..d1e321fa14fa976207a33e768d56123ac6478ba6 100644 (file)
@@ -574,7 +574,7 @@ static unsigned int __stdcall CpuFunc (void * /*param*/)
 #else
 static void cpulimitSignalHandler (int)
 {
-  std::cout << "Process killed by CPU limit  (" << CPU_LIMIT << " sec)" << std::endl;
+  std::cout << "Process killed by CPU limit  (" << CPU_LIMIT << " sec)" << '\n';
   exit(2);
 }
 static void *CpuFunc(void* /*threadarg*/)
@@ -585,7 +585,7 @@ static void *CpuFunc(void* /*threadarg*/)
     sleep (5);
     anElapCurrent = clock_t(aTimer.ElapsedTime());
     if (CPU_LIMIT >0 && (anElapCurrent) >= CPU_LIMIT) {
-      std::cout << "Process killed by elapsed limit  (" << CPU_LIMIT << " sec)" << std::endl;
+      std::cout << "Process killed by elapsed limit  (" << CPU_LIMIT << " sec)" << '\n';
       exit(2);
     }
   }
@@ -827,7 +827,7 @@ static int dlocale (Draw_Interpretor& di, Standard_Integer n, const char** argv)
   if (result)
     di << result;
   else 
-    std::cout << "Error: unsupported locale specification: " << locale << std::endl;
+    std::cout << "Error: unsupported locale specification: " << locale << '\n';
   return 0;
 }
 
@@ -1271,7 +1271,7 @@ static int dputs (Draw_Interpretor& theDI,
       *aStream << theArgVec[anArgIter];
       if (!isNoNewline)
       {
-        *aStream << std::endl;
+        *aStream << '\n';
       }
 
       if (toIntense || aColor != Message_ConsoleColor_Default)
index af6d6a743dbc9d9765cd55e4cabb03016d54fe83..33a879ee51cccb4c944cdb92180f4f9cc9a9f53e 100644 (file)
@@ -32,7 +32,7 @@ Standard_EXPORT const char* Draw_Eval (const char *theCommandStr)
     OCC_CATCH_SIGNALS
     Draw_Interpretor& aCommands = Draw::GetInterpretor();
     aCommands.Eval (theCommandStr);
-    std::cout << aCommands.Result() << std::endl;
+    std::cout << aCommands.Result() << '\n';
     return aCommands.Result();
   }
   catch (Standard_Failure const& anException)
index 6f9cd1ef0bd6724a6ac443941817b79d3ae66bd9..b1687d17a867c2294d2231f1abd7ddafd87eb780 100644 (file)
@@ -64,11 +64,11 @@ static Standard_Integer ViewId(const Standard_CString a)
 {
   Standard_Integer id = Draw::Atoi(a);
   if ((id < 0) || (id >= MAXVIEW)) {
-    std::cout << "Incorrect view-id, must be in 0.."<<MAXVIEW-1<<std::endl;
+    std::cout << "Incorrect view-id, must be in 0.."<<MAXVIEW-1<<'\n';
     return -1;
   }
   if (!dout.HasView(id)) {
-    std::cout <<"View "<<id<<" does not exist."<<std::endl;
+    std::cout <<"View "<<id<<" does not exist."<<'\n';
     return -1;
   }
   return id;
index 4fc5d52dd21a9cc0cd6cb51c967a7d69a057e12b..fe33b90239b4f6550aeaf8d7c8bce8733a39a405 100644 (file)
@@ -57,7 +57,7 @@ namespace {
   {
     for (int i=0; i < argc; i++)
       os << argv[i] << " ";
-    os << std::endl;
+    os << '\n';
   }
 
   void flush_standard_streams ()
@@ -216,7 +216,7 @@ static Standard_Integer CommandCmd (ClientData theClientData, Tcl_Interp* interp
     const char* aResultStr = Tcl_GetStringResult (interp);
     if (aResultStr != 0 && aResultStr[0] != '\0' )
     {
-      std::cout << aResultStr << std::endl;
+      std::cout << aResultStr << '\n';
     }
   }
 
index 1d4ac34b1cc2719547fc28e59f96f1940f6064c4..8467e485ad523c52b827b8dd36f990e176119023 100644 (file)
@@ -114,7 +114,7 @@ static Standard_Integer PrintMessenger (Draw_Interpretor& theDI, Standard_Intege
   Standard_SStream aSStream;
   aMessenger->DumpJson (aSStream);
   theDI << aSStream;
-  std::cout << aSStream.str() << std::endl;
+  std::cout << aSStream.str() << '\n';
 
   return 0;
 }
index 4756691641305525f367f68f5d40662b620b5783..d1a4ca64e534835e4353462d2a29b72d30e8410d 100644 (file)
@@ -230,7 +230,7 @@ static Standard_Integer erase(Draw_Interpretor& di, Standard_Integer n, const ch
        Handle(Draw_Drawable3D) D = Draw::Get(a[i]);
        if (D.IsNull()) {
          if ((a[i][0] == '.') && (a[i][1] == '\0'))
-           std::cout << "Missed !!!" << std::endl;
+           std::cout << "Missed !!!" << '\n';
          return 0;
        }
       }
@@ -714,7 +714,7 @@ void Draw::Set(const Standard_CString name,
     Handle(Draw_Drawable3D) anOldD(reinterpret_cast<Draw_Drawable3D*>(aCD));
     if (!anOldD.IsNull()) {
       if (Draw::Drawables().Contains(anOldD) && anOldD->Protected()) {
-        std::cout << "variable is protected" << std::endl;
+        std::cout << "variable is protected" << '\n';
         return;
       }
       anOldD.Nullify();
@@ -776,7 +776,7 @@ Handle(Draw_Drawable3D) Draw::getDrawable (Standard_CString& theName,
     return Handle(Draw_Drawable3D)();
   }
 
-  std::cout << "Pick an object" << std::endl;
+  std::cout << "Pick an object" << '\n';
   Handle(Draw_Drawable3D) aDrawable;
   dout.Select (p_id, p_X, p_Y, p_b);
   dout.Pick (p_id, p_X, p_Y, 5, aDrawable, 0);
@@ -889,7 +889,7 @@ static Standard_Real ParseValue (char*& theName)
       x = Parse (theName);
       if (*theName != ')')
       {
-        std::cout << "Mismatched parenthesis" << std::endl;
+        std::cout << "Mismatched parenthesis" << '\n';
       }
       ++theName;
       break;
@@ -949,7 +949,7 @@ static Standard_Real ParseValue (char*& theName)
           }
           if (pc > 0)
           {
-            std::cout << "Unclosed parenthesis"<< std::endl;
+            std::cout << "Unclosed parenthesis"<< '\n';
             x = 0;
           }
           else
@@ -989,7 +989,7 @@ static Standard_Real ParseValue (char*& theName)
               }
               if (aCommands.Eval (theName) != 0)
               {
-                std::cout << "Call of function " << theName << " failed" << std::endl;
+                std::cout << "Call of function " << theName << " failed" << '\n';
                 x = 0;
               }
               else
index 090fa69b5e60460deb915ab0e8da36214b6f2953..528c6f2909e05fb63b917dd1593bd370d83cbc42 100644 (file)
@@ -1325,7 +1325,7 @@ Standard_Boolean Init_Appli()
     }
     catch (Standard_Failure const& theFail)
     {
-      std::cout << "Cannot open display (" << theFail << "). Interpret commands in batch mode." << std::endl;
+      std::cout << "Cannot open display (" << theFail << "). Interpret commands in batch mode." << '\n';
       return Standard_False;
     }
   }
index 20cc708de5ffceaa3d1968cb430d8ce6349044ab..6f7c4bf997d97bd566cad2031b2f3855d55bcd0b 100644 (file)
@@ -127,9 +127,9 @@ void DrawTrSurf_Point::Dump (Standard_OStream& S) const
   std::streamsize prec = S.precision(15);
 #endif
   if (is3D)
-    S << "Point : " << myPoint.X() << ", " << myPoint.Y() << ", " << myPoint.Z() <<std::endl;
+    S << "Point : " << myPoint.X() << ", " << myPoint.Y() << ", " << myPoint.Z() <<'\n';
   else
-    S << "Point 2d : " << myPoint.X() << ", " << myPoint.Y() <<std::endl;
+    S << "Point 2d : " << myPoint.X() << ", " << myPoint.Y() <<'\n';
 #if !defined(_MSC_VER) && !defined(__sgi) && !defined(IRIX)
   S.setf(F);
 #else
index 59c0574de6cb568a2a0e86937d539ecd342ea0ed..e0c0d5fc4935eda6359a5268bc3a6d2abb7cce83 100644 (file)
@@ -2017,7 +2017,7 @@ void yyFlexLexer::yyensure_buffer_stack(void)
 
 void yyFlexLexer::LexerError( const char* msg )
 {
-       std::cerr << msg << std::endl;
+       std::cerr << msg << '\n';
        exit( YY_EXIT_FAILURE );
 }
 
index 1f4e900454518612e86328590dc6711d0f29068b..d9b5b5487efefca1014e275a43928436154da26c 100644 (file)
@@ -254,32 +254,32 @@ Standard_Boolean FEmTool_ProfileMatrix::IsInProfile(const Standard_Integer i,
  void FEmTool_ProfileMatrix::OutM() const
 {
   Standard_Integer i, j;
-  std::cout<<"Matrix A"<<std::endl;
+  std::cout<<"Matrix A"<<'\n';
   for(i = 1; i <= RowNumber(); i++) {
     for(j = 1; j < i - profile(1, i); j++) 
       std::cout<<"0 ";
 
     for(j = profile(2, i) - profile(1, i); j <= profile(2, i); j++) 
       std::cout<<ProfileMatrix->Value(j)<<" ";
-    std::cout<<std::endl;
+    std::cout<<'\n';
   }
 
-  std::cout<<"NextCoeff"<<std::endl;
+  std::cout<<"NextCoeff"<<'\n';
   for(i = 1; i <= profile(2, RowNumber()); i++)
     std::cout<<NextCoeff->Value(i)<<" ";
-  std::cout<<std::endl;
+  std::cout<<'\n';
 }
 
  void FEmTool_ProfileMatrix::OutS() const
 {
   Standard_Integer i, j;
-  std::cout<<"Matrix S"<<std::endl;
+  std::cout<<"Matrix S"<<'\n';
   for(i = 1; i <= RowNumber(); i++) {
     for(j = 1; j < i - profile(1, i); j++) 
       std::cout<<"0 ";
 
     for(j = profile(2, i) - profile(1, i); j <= profile(2, i); j++) 
       std::cout<<SMatrix->Value(j)<<" ";
-    std::cout<<std::endl;
+    std::cout<<'\n';
   }
 }
index 0685b6c89df138b5d8e657ba2b7efadf8a4a1ddc..6a4b53e9b1e39e46c32b8aedbdf6f8415cbb78d1 100644 (file)
@@ -530,31 +530,31 @@ void FairCurve_Batten::Dump(Standard_OStream& o) const
 // ==================================================================
 {
 
-o << "  Batten       |"; o.width(7); o<< "Old  |   New" << std::endl;
-o << "  P1    X      |"; o.width(7); o<<  OldP1.X() << " | " << NewP1.X() << std::endl;
-o << "        Y      |"; o.width(7); o<<  OldP1.Y() << " | " << NewP1.Y() << std::endl;
-o << "  P2    X      |"; o.width(7); o<<  OldP2.X() << " | " << NewP2.X() << std::endl;
-o << "        Y      |"; o.width(7); o<<  OldP2.Y() << " | " << NewP2.Y() << std::endl;
-o << "      Angle1   |"; o.width(7); o<<  OldAngle1 << " | " << NewAngle1 << std::endl;
-o << "      Angle2   |"; o.width(7); o<<  OldAngle2 << " | " << NewAngle2 << std::endl;
-o << "      Height   |"; o.width(7); o<<  OldHeight << " | " << NewHeight << std::endl;
-o << "      Slope    |"; o.width(7); o<<  OldSlope  << " | " << NewSlope << std::endl
-o << " SlidingFactor |"; o.width(7); o<<  OldSlidingFactor << " | " << NewSlidingFactor << std::endl;
-o << " FreeSliding   |"; o.width(7); o<<  OldFreeSliding << " | " << NewFreeSliding << std::endl
-o << " ConstrOrder1  |"; o.width(7); o<<  OldConstraintOrder1 << " | " << NewConstraintOrder1 << std::endl
-o << " ConstrOrder2  |" ; o.width(7); o<<  OldConstraintOrder2 << " | " << NewConstraintOrder2 << std::endl;
+o << "  Batten       |"; o.width(7); o<< "Old  |   New" << '\n';
+o << "  P1    X      |"; o.width(7); o<<  OldP1.X() << " | " << NewP1.X() << '\n';
+o << "        Y      |"; o.width(7); o<<  OldP1.Y() << " | " << NewP1.Y() << '\n';
+o << "  P2    X      |"; o.width(7); o<<  OldP2.X() << " | " << NewP2.X() << '\n';
+o << "        Y      |"; o.width(7); o<<  OldP2.Y() << " | " << NewP2.Y() << '\n';
+o << "      Angle1   |"; o.width(7); o<<  OldAngle1 << " | " << NewAngle1 << '\n';
+o << "      Angle2   |"; o.width(7); o<<  OldAngle2 << " | " << NewAngle2 << '\n';
+o << "      Height   |"; o.width(7); o<<  OldHeight << " | " << NewHeight << '\n';
+o << "      Slope    |"; o.width(7); o<<  OldSlope  << " | " << NewSlope << '\n'
+o << " SlidingFactor |"; o.width(7); o<<  OldSlidingFactor << " | " << NewSlidingFactor << '\n';
+o << " FreeSliding   |"; o.width(7); o<<  OldFreeSliding << " | " << NewFreeSliding << '\n'
+o << " ConstrOrder1  |"; o.width(7); o<<  OldConstraintOrder1 << " | " << NewConstraintOrder1 << '\n'
+o << " ConstrOrder2  |" ; o.width(7); o<<  OldConstraintOrder2 << " | " << NewConstraintOrder2 << '\n';
  switch (myCode) {
    case FairCurve_OK : 
-     o  << "AnalysisCode : Ok" << std::endl;
+     o  << "AnalysisCode : Ok" << '\n';
        break;
    case  FairCurve_NotConverged : 
-     o << "AnalysisCode : NotConverged" << std::endl;
+     o << "AnalysisCode : NotConverged" << '\n';
        break;
    case  FairCurve_InfiniteSliding : 
-     o << "AnalysisCode : InfiniteSliding" << std::endl;
+     o << "AnalysisCode : InfiniteSliding" << '\n';
        break;
    case  FairCurve_NullHeight : 
-     o << "AnalysisCode : NullHeight" << std::endl;
+     o << "AnalysisCode : NullHeight" << '\n';
        break;
      } 
 }
index 2d12de07f3928c1b2840f21ff6e51647ec01a931..5e35d99f67751de750da4777730b85e79b953ed9 100644 (file)
@@ -430,34 +430,34 @@ void FairCurve_MinimalVariation::Dump(Standard_OStream& o) const
 //======================================================================================
 {
 
-o << "  MVCurve      |"; o.width(7); o<< "Old  |   New" << std::endl;
-o << "  P1    X      |"; o.width(7); o<<  OldP1.X() << " | " << NewP1.X() << std::endl;
-o << "        Y      |"; o.width(7); o<<  OldP1.Y() << " | " << NewP1.Y() << std::endl;
-o << "  P2    X      |"; o.width(7); o<<  OldP2.X() << " | " << NewP2.X() << std::endl;
-o << "        Y      |"; o.width(7); o<<  OldP2.Y() << " | " << NewP2.Y() << std::endl;
-o << "      Angle1   |"; o.width(7); o<<  OldAngle1 << " | " << NewAngle1 << std::endl;
-o << "      Angle2   |"; o.width(7); o<<  OldAngle2 << " | " << NewAngle2 << std::endl;
-o << " Curvature1    |"; o.width(7); o<<  OldCurvature1 << " | " << NewCurvature1 << std::endl;
-o << " Curvature2    |"; o.width(7); o<<  OldCurvature2 << " | " << NewCurvature2 << std::endl;
-o << "      Height   |"; o.width(7); o<<  OldHeight << " | " << NewHeight << std::endl;
-o << "      Slope    |"; o.width(7); o<<  OldSlope  << " | " << NewSlope << std::endl
-o << " PhysicalRatio |"; o.width(7); o<<  OldPhysicalRatio << " | " << NewPhysicalRatio << std::endl;
-o << " SlidingFactor |"; o.width(7); o<<  OldSlidingFactor << " | " << NewSlidingFactor << std::endl;
-o << " FreeSliding   |"; o.width(7); o<<  OldFreeSliding << " | " << NewFreeSliding << std::endl
-o << " ConstrOrder1  |"; o.width(7); o<<  OldConstraintOrder1 << " | " << NewConstraintOrder1 << std::endl
-o << " ConstrOrder2  |"; o.width(7); o<<  OldConstraintOrder2 << " | " << NewConstraintOrder2 << std::endl;
+o << "  MVCurve      |"; o.width(7); o<< "Old  |   New" << '\n';
+o << "  P1    X      |"; o.width(7); o<<  OldP1.X() << " | " << NewP1.X() << '\n';
+o << "        Y      |"; o.width(7); o<<  OldP1.Y() << " | " << NewP1.Y() << '\n';
+o << "  P2    X      |"; o.width(7); o<<  OldP2.X() << " | " << NewP2.X() << '\n';
+o << "        Y      |"; o.width(7); o<<  OldP2.Y() << " | " << NewP2.Y() << '\n';
+o << "      Angle1   |"; o.width(7); o<<  OldAngle1 << " | " << NewAngle1 << '\n';
+o << "      Angle2   |"; o.width(7); o<<  OldAngle2 << " | " << NewAngle2 << '\n';
+o << " Curvature1    |"; o.width(7); o<<  OldCurvature1 << " | " << NewCurvature1 << '\n';
+o << " Curvature2    |"; o.width(7); o<<  OldCurvature2 << " | " << NewCurvature2 << '\n';
+o << "      Height   |"; o.width(7); o<<  OldHeight << " | " << NewHeight << '\n';
+o << "      Slope    |"; o.width(7); o<<  OldSlope  << " | " << NewSlope << '\n'
+o << " PhysicalRatio |"; o.width(7); o<<  OldPhysicalRatio << " | " << NewPhysicalRatio << '\n';
+o << " SlidingFactor |"; o.width(7); o<<  OldSlidingFactor << " | " << NewSlidingFactor << '\n';
+o << " FreeSliding   |"; o.width(7); o<<  OldFreeSliding << " | " << NewFreeSliding << '\n'
+o << " ConstrOrder1  |"; o.width(7); o<<  OldConstraintOrder1 << " | " << NewConstraintOrder1 << '\n'
+o << " ConstrOrder2  |"; o.width(7); o<<  OldConstraintOrder2 << " | " << NewConstraintOrder2 << '\n';
  switch (myCode) {
    case  FairCurve_OK : 
-     o << "AnalysisCode : Ok" << std::endl;
+     o << "AnalysisCode : Ok" << '\n';
      break;
    case  FairCurve_NotConverged : 
-     o << "AnalysisCode : NotConverged" << std::endl;
+     o << "AnalysisCode : NotConverged" << '\n';
      break;
    case  FairCurve_InfiniteSliding : 
-     o << "AnalysisCode : InfiniteSliding" << std::endl;
+     o << "AnalysisCode : InfiniteSliding" << '\n';
      break;
    case  FairCurve_NullHeight : 
-     o << "AnalysisCode : NullHeight" << std::endl;
+     o << "AnalysisCode : NullHeight" << '\n';
      break;
      }   
 }
index 54831879a25a29f9887ec8fa44e3e46d944eaeb1..3be4edbfdfd2590c66f09a95765eea928dc74431 100644 (file)
@@ -186,7 +186,7 @@ void Geom2dConvert_ApproxCurve::Approximate(const Handle(Adaptor2d_Curve2d)& the
 
  void Geom2dConvert_ApproxCurve::Dump(Standard_OStream& o) const
 {
-  o << "******* Dump of ApproxCurve *******" << std::endl;
-  o << "******* Error   " << MaxError() << std::endl;
+  o << "******* Dump of ApproxCurve *******" << '\n';
+  o << "******* Error   " << MaxError() << '\n';
 }
 
index 0f84262502bdb2592fcf7495ffda8b890ff309dc..17ef37df287e346df6db1176025aff7d4df9d4c8 100644 (file)
@@ -1593,74 +1593,74 @@ const HatchGen_Domain& Geom2dHatch_Hatcher::Domain (const Standard_Integer IndH,
 
 void Geom2dHatch_Hatcher::Dump () const
 {
-  std::cout << std::endl ;
-  std::cout << "========================================================" << std::endl ;
-  std::cout << "=== Dump of the hatcher ================================" << std::endl ;
-  std::cout << "========================================================" << std::endl ;
-  std::cout << std::endl ;
+  std::cout << '\n' ;
+  std::cout << "========================================================" << '\n' ;
+  std::cout << "=== Dump of the hatcher ================================" << '\n' ;
+  std::cout << "========================================================" << '\n' ;
+  std::cout << '\n' ;
 
   std::cout << "The points   are "
        << (myKeepPoints   ? "    " : "not ")
        << "considered."
-       << std::endl ;
+       << '\n' ;
   std::cout << "The segments are "
        << (myKeepSegments ? "    " : "not ")
        << "considered."
-       << std::endl ;
-  std::cout << "2D Confusion tolerance : " << myConfusion2d << std::endl ;
-  std::cout << "3D Confusion tolerance : " << myConfusion3d << std::endl ;
+       << '\n' ;
+  std::cout << "2D Confusion tolerance : " << myConfusion2d << '\n' ;
+  std::cout << "3D Confusion tolerance : " << myConfusion3d << '\n' ;
   
   std::cout << myNbHatchings
        << " hatching"
        << ((myNbHatchings == 1) ? "" : "s")
-       << std::endl ;
+       << '\n' ;
   std::cout << myNbElements
        << " element"
        << ((myNbElements  == 1) ? "" : "s")
-       << std::endl ;
+       << '\n' ;
   
-  std::cout << std::endl ;
-  std::cout << "========================================================" << std::endl ;
-  std::cout << "=== Hatchings ==========================================" << std::endl ;
-  std::cout << "========================================================" << std::endl ;
-  std::cout << std::endl ;
+  std::cout << '\n' ;
+  std::cout << "========================================================" << '\n' ;
+  std::cout << "=== Hatchings ==========================================" << '\n' ;
+  std::cout << "========================================================" << '\n' ;
+  std::cout << '\n' ;
   
   for (Standard_Integer IndH = 1 ; IndH <= myNbHatchings ; IndH++) {
     std::cout << "Hatching # " << IndH ;
     if (!myHatchings.IsBound (IndH)) {
-      std::cout << " is not bound" << std::endl ;
+      std::cout << " is not bound" << '\n' ;
     } else {
       const Geom2dHatch_Hatching& Hatching = myHatchings.Find (IndH) ;
       Standard_Integer NbPnt = Hatching.NbPoints() ;
-      std::cout << " contains " << NbPnt << " restriction points :"  << std::endl ;
+      std::cout << " contains " << NbPnt << " restriction points :"  << '\n' ;
       for (Standard_Integer IPnt = 1 ; IPnt <= NbPnt ; IPnt++) {
        const HatchGen_PointOnHatching& PntH = Hatching.Point (IPnt) ;
         PntH.Dump (IPnt) ;
       }
-      std::cout << "----------------------------------------------" << std::endl ;
+      std::cout << "----------------------------------------------" << '\n' ;
     }
   }
 
-  std::cout << std::endl ;
-  std::cout << "========================================================" << std::endl ;
-  std::cout << "=== Elements ===========================================" << std::endl ;
-  std::cout << "========================================================" << std::endl ;
-  std::cout << std::endl ;
+  std::cout << '\n' ;
+  std::cout << "========================================================" << '\n' ;
+  std::cout << "=== Elements ===========================================" << '\n' ;
+  std::cout << "========================================================" << '\n' ;
+  std::cout << '\n' ;
   
   for (Standard_Integer IndE = 1 ; IndE <= myNbElements ; IndE++) {
     std::cout << "Element # " << IndE ;
     if (!myElements.IsBound (IndE)) {
-      std::cout << " is not bound" << std::endl ;
+      std::cout << " is not bound" << '\n' ;
     } else {
       const Geom2dHatch_Element& Element = myElements.Find (IndE) ;
       switch (Element.Orientation()) {
-        case TopAbs_FORWARD  : std::cout << " is FORWARD"  << std::endl ; break ;
-        case TopAbs_REVERSED : std::cout << " is REVERSED" << std::endl ; break ;
-        case TopAbs_INTERNAL : std::cout << " is INTERNAL" << std::endl ; break ;
-        case TopAbs_EXTERNAL : std::cout << " is EXTERNAL" << std::endl ; break ;
+        case TopAbs_FORWARD  : std::cout << " is FORWARD"  << '\n' ; break ;
+        case TopAbs_REVERSED : std::cout << " is REVERSED" << '\n' ; break ;
+        case TopAbs_INTERNAL : std::cout << " is INTERNAL" << '\n' ; break ;
+        case TopAbs_EXTERNAL : std::cout << " is EXTERNAL" << '\n' ; break ;
       }
     }
   }
 
-  std::cout << std::endl ;
+  std::cout << '\n' ;
 }
index 3c4da08d270e937ed39f7fa11a67b72044b1585b..17cc8e68e8d3a38e36d95315219773f71cdcba4a 100644 (file)
@@ -184,7 +184,7 @@ void GeomConvert_ApproxCurve::Approximate(
 
  void GeomConvert_ApproxCurve::Dump(Standard_OStream& o) const
 {
-  o << "******* Dump of ApproxCurve *******" << std::endl;
-  o << "*******Error   " << MaxError() << std::endl;
+  o << "******* Dump of ApproxCurve *******" << '\n';
+  o << "*******Error   " << MaxError() << '\n';
 }
 
index 545c7dd1e34f853d3b3b48c9fd75c952861175ab..8732ed02c40dd4701d30624dee818cfbb5948518 100644 (file)
@@ -430,12 +430,12 @@ void GeomConvert_ApproxSurface::Approximate(const Handle(Adaptor3d_Surface)& the
 
 void GeomConvert_ApproxSurface::Dump(Standard_OStream& o) const 
 {
-  o<<std::endl;
-  if (!myHasResult) { o<<"No result"<<std::endl; }
+  o<<'\n';
+  if (!myHasResult) { o<<"No result"<<'\n'; }
   else {
-    o<<"Result max error :"<< myMaxError <<std::endl;
+    o<<"Result max error :"<< myMaxError <<'\n';
     }
-  o<<std::endl;
+  o<<'\n';
 }
 
 
index d48c72cf7a190d3948d7fbdd3ffb42dfc5587679..98fd1afbe2327e0984510c0b95e4e303658679b6 100644 (file)
@@ -1335,8 +1335,8 @@ void GeomFill_ConstrainedFilling::CheckTgteField(const Standard_Integer I)
       if(Abs(alpha) > maxang) maxang = Abs(alpha);
     }
   }
-  std::cout<<"KAlgo angle max sur bord "<<I<<" : "<<maxang<<std::endl;
-  if(caplisse) std::cout<<"sur bord "<<I<<" le champ tangent change de cote!"<<std::endl;
+  std::cout<<"KAlgo angle max sur bord "<<I<<" : "<<maxang<<'\n';
+  if(caplisse) std::cout<<"sur bord "<<I<<" le champ tangent change de cote!"<<'\n';
 }
 
 
@@ -1381,11 +1381,11 @@ void GeomFill_ConstrainedFilling::CheckApprox(const Standard_Integer I)
     }
     if(papp.Distance(pbound) > maxdist) maxdist = papp.Distance(pbound);
   }
-  std::cout<<"Controle approx/contrainte sur bord "<<I<<" : "<<std::endl;
-  std::cout<<"Distance max : "<<maxdist<<std::endl;
+  std::cout<<"Controle approx/contrainte sur bord "<<I<<" : "<<'\n';
+  std::cout<<"Distance max : "<<maxdist<<'\n';
   if (donor) {
     maxang = maxang*180./M_PI;
-    std::cout<<"Angle max    : "<<maxang<<" deg"<<std::endl;
+    std::cout<<"Angle max    : "<<maxang<<" deg"<<'\n';
   }
 }
 
@@ -1461,11 +1461,11 @@ void GeomFill_ConstrainedFilling::CheckResult(const Standard_Integer I)
     vv += dvv;
     ww += dww;
   }
-  std::cout<<"Controle resultat/contrainte sur bord "<<I<<" : "<<std::endl;
-  std::cout<<"Distance max : "<<maxdist<<std::endl;
+  std::cout<<"Controle resultat/contrainte sur bord "<<I<<" : "<<'\n';
+  std::cout<<"Distance max : "<<maxdist<<'\n';
   if (donor) {
     Standard_Real angdeg = maxang*180./M_PI;
-    std::cout<<"Angle max    : "<<angdeg<<" deg"<<std::endl;
+    std::cout<<"Angle max    : "<<angdeg<<" deg"<<'\n';
   }
 #ifdef DRAW
   Standard_Boolean scale = maxang>1.e-10;
index 8097e8225a19c98767dc126dd350e47fcd29fafb..6bad802b099b4f6a7a104ba66f32fdfff629f081 100644 (file)
@@ -255,7 +255,7 @@ GeomFill_FunctionGuide::GeomFill_FunctionGuide
 
    gp_XYZ& Q  = Pc.ChangeCoord(), DQ(0, 0, 0); //Q
    if (!isconst) {
-     std::cout << "Not implemented" << std::endl;
+     std::cout << "Not implemented" << '\n';
    }
 
 
index b8553f8bebe631eec5ca37d1014c5e436d18892d..c9bb4f98f5fd6739abcd1b02913bdd11ebf7ed7b 100644 (file)
@@ -841,7 +841,7 @@ void  GeomTools_Curve2dSet::Read(Standard_IStream& IS, const Message_ProgressRan
   char buffer[255];
   IS >> buffer;
   if (strcmp(buffer,"Curve2ds")) {
-    std::cout << "Not a Curve2d table"<<std::endl;
+    std::cout << "Not a Curve2d table"<<'\n';
     return;
   }
 
index 76f053cfb9b6ca13203d963a0eb4c4a17c1e5ac5..8b3f705183fcea3af75a95bdc316d91217e4c95d 100644 (file)
@@ -862,7 +862,7 @@ void  GeomTools_CurveSet::Read(Standard_IStream& IS, const Message_ProgressRange
   char buffer[255];
   IS >> buffer;
   if (strcmp(buffer,"Curves")) {
-    std::cout << "Not a Curve table"<<std::endl;
+    std::cout << "Not a Curve table"<<'\n';
     return;
   }
 
index f7c8c072ea502f8b481508ed7d9cc98467714dac..c48ceb410b48b6702f2a26086f8c8284e5b37434 100644 (file)
@@ -42,7 +42,7 @@ const char* GeomTools_Dump (void* theHandlePtr)
     if (!GS.IsNull()) {
       std::cout << "\n\n";
       GeomTools_SurfaceSet::PrintSurface (GS,std::cout);
-      std::cout << std::endl;
+      std::cout << '\n';
       return "Found Geom_Surface, see dump in std::cout";
     }
 
@@ -50,7 +50,7 @@ const char* GeomTools_Dump (void* theHandlePtr)
     if (!GC.IsNull()) {
       std::cout << "\n\n";
       GeomTools_CurveSet::PrintCurve(GC,std::cout);
-      std::cout << std::endl;
+      std::cout << '\n';
       return "Found Geom_Curve, see dump in std::cout";
     }
 
@@ -58,7 +58,7 @@ const char* GeomTools_Dump (void* theHandlePtr)
     if (!GC2d.IsNull()) {
       std::cout << "\n\n";
       GeomTools_Curve2dSet::PrintCurve2d(GC2d,std::cout);
-      std::cout << std::endl;
+      std::cout << '\n';
       return "Found Geom2d_Curve, see dump in std::cout";
     }
 
index 707cfde1d914b6a82aee69fcf89e7030c08cba30..eece5ae6149010c6ca14bda01b705eb934f9b8c2 100644 (file)
@@ -1051,7 +1051,7 @@ void  GeomTools_SurfaceSet::Read(Standard_IStream& IS, const Message_ProgressRan
   char buffer[255];
   IS >> buffer;
   if (strcmp(buffer,"Surfaces")) {
-    std::cout << "Not a surface table"<<std::endl;
+    std::cout << "Not a surface table"<<'\n';
     return;
   }
 
index 62672d5f044705d319d65469f724f9870e64a861..86f02a72b7c926cb8ffb99954ac9ec30770570af 100644 (file)
@@ -38,7 +38,7 @@ void GeomTools_UndefinedTypeHandler::PrintCurve(const Handle(Geom_Curve)& /*C*/,
   if (!compact)
     OS << "****** UNKNOWN CURVE TYPE ******\n";
   else 
-    std::cout << "****** UNKNOWN CURVE TYPE ******" << std::endl;
+    std::cout << "****** UNKNOWN CURVE TYPE ******" << '\n';
 }
 
 //=======================================================================
@@ -65,7 +65,7 @@ void GeomTools_UndefinedTypeHandler::PrintCurve2d(const Handle(Geom2d_Curve)& /*
   if (!compact)
     OS << "****** UNKNOWN CURVE2d TYPE ******\n";
   else 
-    std::cout << "****** UNKNOWN CURVE2d TYPE ******" << std::endl;
+    std::cout << "****** UNKNOWN CURVE2d TYPE ******" << '\n';
 }
 
 //=======================================================================
@@ -92,7 +92,7 @@ void GeomTools_UndefinedTypeHandler::PrintSurface(const Handle(Geom_Surface)& /*
   if (!compact)
     OS << "****** UNKNOWN SURFACE TYPE ******\n";
   else 
-    std::cout << "****** UNKNOWN SURFACE TYPE ******" << std::endl;
+    std::cout << "****** UNKNOWN SURFACE TYPE ******" << '\n';
 }
 
 Standard_IStream& GeomTools_UndefinedTypeHandler::ReadSurface(const Standard_Integer /*ctype*/,
index 0624ec4f59457579abd89d42db1e7e7a2939dda5..cdf2a791fd0f2704c782b06f95de61192d0b2815 100644 (file)
@@ -153,7 +153,7 @@ static Standard_Integer proj (Draw_Interpretor& di, Standard_Integer n, const ch
 
     if(proj.NbPoints() == 0)
     {
-      std::cout << "No project point was found." << std::endl;
+      std::cout << "No project point was found." << '\n';
       return 0;
     }
 
index 2e52fc6d11739613cb51d0611e30ad34e71b92e1..7e82d5bd7e74678e331d3e4baea115b944e26115 100644 (file)
@@ -1645,7 +1645,7 @@ static Standard_Integer intersection (Draw_Interpretor& di,
       Standard_Integer Compt = 1;
 
       if(nblines >= 1)
-        std::cout << "   Lines: " << std::endl;
+        std::cout << "   Lines: " << '\n';
 
       for (i = 1; i <= nblines; i++, Compt++)
       {
@@ -1657,7 +1657,7 @@ static Standard_Integer intersection (Draw_Interpretor& di,
       }
 
       if(nbpoints >= 1)
-        std::cout << "   Points: " << std::endl;
+        std::cout << "   Points: " << '\n';
 
       const Standard_Integer imax = nblines+nbpoints;
 
index dfb09217a3c832b881f05f9ec10498ae4fa506bd..7d8c755d996f817c86b222f12b99cf3fc248208d 100644 (file)
@@ -35,7 +35,7 @@ static Standard_Integer xdistcc(Draw_Interpretor& , Standard_Integer n, const ch
 {
   if (n < 5)
   {
-    std::cout<<" Use xdistcc c1 c2 t1 t2 nbp"<<std::endl;
+    std::cout<<" Use xdistcc c1 c2 t1 t2 nbp"<<'\n';
     return 0;
   }
 
@@ -49,14 +49,14 @@ static Standard_Integer xdistcc(Draw_Interpretor& , Standard_Integer n, const ch
   aC1=DrawTrSurf::GetCurve(a[1]);
   if (aC1.IsNull())
   {
-    std::cout<<a[1]<<" is null curve"<<std::endl;
+    std::cout<<a[1]<<" is null curve"<<'\n';
     return 0;
   }
 
   aC2=DrawTrSurf::GetCurve(a[2]);
   if (aC2.IsNull())
   {
-    std::cout<<a[2]<<" is null curve"<<std::endl;
+    std::cout<<a[2]<<" is null curve"<<'\n';
     return 0;
   }
 
@@ -98,8 +98,8 @@ static Standard_Integer xdistcc(Draw_Interpretor& , Standard_Integer n, const ch
     dout << aMr;
   }
 
-  std::cout << "Max distance = "  << aMaxDist << std::endl;
-  std::cout << "Param = " << aMaxParam << std::endl;
+  std::cout << "Max distance = "  << aMaxDist << '\n';
+  std::cout << "Param = " << aMaxParam << '\n';
 
   return 0;
 }
@@ -112,7 +112,7 @@ static Standard_Integer xdistc2dc2dss(Draw_Interpretor& , Standard_Integer n, co
 {
   if (n < 7)
   {
-    std::cout<<" Use xdistc2dc2dss c2d_1 c2d_2 s1 s2 t1 t2 nbp"<<std::endl;
+    std::cout<<" Use xdistc2dc2dss c2d_1 c2d_2 s1 s2 t1 t2 nbp"<<'\n';
     return 0;
   }
 
@@ -128,28 +128,28 @@ static Standard_Integer xdistc2dc2dss(Draw_Interpretor& , Standard_Integer n, co
   aC2d1=DrawTrSurf::GetCurve2d(a[1]);
   if (aC2d1.IsNull())
   {
-    std::cout<<a[1]<<" is null 2dcurve"<<std::endl;
+    std::cout<<a[1]<<" is null 2dcurve"<<'\n';
     return 0;
   }
 
   aC2d2=DrawTrSurf::GetCurve2d(a[2]);
   if (aC2d2.IsNull())
   {
-    std::cout<<a[2]<<" is null 2dcurve"<<std::endl;
+    std::cout<<a[2]<<" is null 2dcurve"<<'\n';
     return 0;
   }
 
   aS1=DrawTrSurf::GetSurface(a[3]);
   if (aS1.IsNull())
   {
-    std::cout<<a[3]<<" is null surface"<<std::endl;
+    std::cout<<a[3]<<" is null surface"<<'\n';
     return 0;
   }
 
   aS2=DrawTrSurf::GetSurface(a[4]);
   if (aS2.IsNull())
   {
-    std::cout<<a[4]<<" is null surface"<<std::endl;
+    std::cout<<a[4]<<" is null surface"<<'\n';
     return 0;
   }
 
@@ -194,8 +194,8 @@ static Standard_Integer xdistc2dc2dss(Draw_Interpretor& , Standard_Integer n, co
     dout << aMr;
   }
 
-  std::cout << "Max distance = "  << aMaxDist << std::endl;
-  std::cout << "Param = " << aMaxParam << std::endl;
+  std::cout << "Max distance = "  << aMaxDist << '\n';
+  std::cout << "Param = " << aMaxParam << '\n';
 
   return 0;
 }
@@ -208,7 +208,7 @@ static Standard_Integer xdistcc2ds(Draw_Interpretor& , Standard_Integer n, const
 {
   if (n < 6)
   {
-    std::cout<<" Use xdistcc2ds c c2d s t1 t2 nbp"<<std::endl;
+    std::cout<<" Use xdistcc2ds c c2d s t1 t2 nbp"<<'\n';
     return 0;
   }
 
@@ -225,21 +225,21 @@ static Standard_Integer xdistcc2ds(Draw_Interpretor& , Standard_Integer n, const
   aC=DrawTrSurf::GetCurve(a[1]);
   if (aC.IsNull())
   {
-    std::cout<<a[1]<<" is null curve"<<std::endl;
+    std::cout<<a[1]<<" is null curve"<<'\n';
     return 0;
   }
 
   aC2d=DrawTrSurf::GetCurve2d(a[2]);
   if (aC2d.IsNull())
   {
-    std::cout<<a[2]<<" is null 2dcurve"<<std::endl;
+    std::cout<<a[2]<<" is null 2dcurve"<<'\n';
     return 0;
   }
 
   aS=DrawTrSurf::GetSurface(a[3]);
   if (aS.IsNull())
   {
-    std::cout<<a[3]<<" is null surface"<<std::endl;
+    std::cout<<a[3]<<" is null surface"<<'\n';
     return 0;
   }
 
@@ -283,8 +283,8 @@ static Standard_Integer xdistcc2ds(Draw_Interpretor& , Standard_Integer n, const
     dout << aMr;
   }
 
-  std::cout << "Max distance = "  << aMaxDist << std::endl;
-  std::cout << "Param = " << aMaxParam << std::endl;
+  std::cout << "Max distance = "  << aMaxDist << '\n';
+  std::cout << "Param = " << aMaxParam << '\n';
 
   return 0;
 }
@@ -296,10 +296,10 @@ static Standard_Integer xdistcc2ds(Draw_Interpretor& , Standard_Integer n, const
 static Standard_Integer xdistcs(Draw_Interpretor& di, Standard_Integer n, const char** a)
 {
   if (n < 6) {
-    std::cout << "Use: xdistcs curve surface t1 t2 nbpoints [tol [warn_tol]]" << std::endl;
-    std::cout << "Measures distances from curve to surface by nbpoints probing points on a curve" << std::endl;
-    std::cout << "Error will be reported for points where distance is greater than tol" << std::endl;
-    std::cout << "Warning will be reported for points where distance is greater than warn_tol" << std::endl;
+    std::cout << "Use: xdistcs curve surface t1 t2 nbpoints [tol [warn_tol]]" << '\n';
+    std::cout << "Measures distances from curve to surface by nbpoints probing points on a curve" << '\n';
+    std::cout << "Error will be reported for points where distance is greater than tol" << '\n';
+    std::cout << "Warning will be reported for points where distance is greater than warn_tol" << '\n';
     return 0;
   }
   //
index bdbed3277d169cc9b8ae6dbc59b432ef00ecf1a8..33e9e2a316eec2297d4ff87c91063539c5d1ab62 100644 (file)
@@ -1564,7 +1564,7 @@ static Standard_Integer compBsplSur (Draw_Interpretor& , Standard_Integer n, con
       if(aDist > Precision::SquareConfusion())
       {
         Standard_Real aD = sqrt(aDist);
-        std::cout<<"Surfaces differ for U,V,Dist: "<<aU<<" "<<aV<<" "<<aD<<std::endl;
+        std::cout<<"Surfaces differ for U,V,Dist: "<<aU<<" "<<aV<<" "<<aD<<'\n';
       }
     }
   }
old mode 100755 (executable)
new mode 100644 (file)
index c457584..eb1bf7f
@@ -66,7 +66,7 @@ const TCollection_AsciiString& Graphic3d_ShaderProgram::ShadersFolder()
     if (!aDir.Exists()
      || !aProgramFile.Exists())
     {
-      std::cerr << "Standard GLSL programs are not found in: " << THE_SHADERS_FOLDER.ToCString() << std::endl;
+      std::cerr << "Standard GLSL programs are not found in: " << THE_SHADERS_FOLDER.ToCString() << '\n';
       throw Standard_Failure("CSF_ShadersDirectory or CASROOT is set incorrectly");
     }
   }
index 3eca3e98d6f8fbd5237c2a0b08d3cef9a73888e6..9defcda6ac46fe0e0d1d27c6a889f1225b2ff56a 100644 (file)
@@ -635,7 +635,7 @@ void HLRAlgo_PolyInternalData::Dump () const
     std::cout << std::setw(20)<< Nod1RValues.Point.X();
     std::cout << std::setw(20)<< Nod1RValues.Point.Y();
     std::cout << std::setw(20)<< Nod1RValues.Point.Z();
-    std::cout << std::endl;
+    std::cout << '\n';
   }
 
   for (i = 1; i <= myNbPISeg; i++) {
@@ -647,7 +647,7 @@ void HLRAlgo_PolyInternalData::Dump () const
     std::cout << std::setw(6) << aSegIndices->NxtSg2;
     std::cout << std::setw(6) << aSegIndices->Conex1;
     std::cout << std::setw(6) << aSegIndices->Conex2;
-    std::cout << std::endl;
+    std::cout << '\n';
   }
 
   for (i = 1; i <= myNbTData; i++) {
@@ -656,7 +656,7 @@ void HLRAlgo_PolyInternalData::Dump () const
     std::cout << std::setw(6) << aTriangle.Node1;
     std::cout << std::setw(6) << aTriangle.Node2;
     std::cout << std::setw(6) << aTriangle.Node3;
-    std::cout << std::endl;
+    std::cout << '\n';
   }
 }
 
index d8f2b9d1415f4af01565129de3ff7f2d926f650b..2b1dc4e7d890eb635096fec7901cd938257dff4d 100644 (file)
@@ -114,8 +114,8 @@ void HLRBRep_InternalAlgo::Update ()
         if (myDebug)
         {
           std::cout << "An exception was caught when preparing the Shape " << i;
-          std::cout << " and computing its OutLines " << std::endl;
-          std::cout << anException << std::endl;
+          std::cout << " and computing its OutLines " << '\n';
+          std::cout << anException << '\n';
         }
        DS[i-1] = new HLRBRep_Data(0,0,0);
        dv = 0;
@@ -555,7 +555,7 @@ void HLRBRep_InternalAlgo::PartialHide ()
     Standard_Integer i,n = myShapes.Length();
 
     if (myDebug)
-      std::cout << " Partial hiding" << std::endl << std::endl;
+      std::cout << " Partial hiding" << '\n' << '\n';
 
     for (i = 1; i <= n; i++)
       Hide(i);
@@ -575,7 +575,7 @@ void HLRBRep_InternalAlgo::Hide ()
     Standard_Integer i,j,n = myShapes.Length();
 
     if (myDebug)
-      std::cout << " Total hiding" << std::endl;
+      std::cout << " Total hiding" << '\n';
 
     for (i = 1; i <= n; i++)
       Hide(i);
@@ -601,7 +601,7 @@ void HLRBRep_InternalAlgo::Hide (const Standard_Integer I)
        "HLRBRep_InternalAlgo::Hide : unknown Shape");
     
     if (myDebug)
-      std::cout << " hiding the shape " << I << " by itself" << std::endl;
+      std::cout << " hiding the shape " << I << " by itself" << '\n';
     
     Select(I);
     InitEdgeStatus();
@@ -643,7 +643,7 @@ void HLRBRep_InternalAlgo::Hide (const Standard_Integer I,
          ((MinMaxShBJ->Max[7] - MinMaxShBI->Min[7]) & 0x80008000) == 0) {
        if (myDebug) {
          std::cout << " hiding the shape " << I;
-         std::cout << " by the shape : " << J << std::endl;
+         std::cout << " by the shape : " << J << '\n';
        }
        SelectEdge(I);
        SelectFace(J);
@@ -716,17 +716,17 @@ void HLRBRep_InternalAlgo::HideSelected (const Standard_Integer I,
       
       if (myDebug)
       {
-        std::cout << std::endl;
-        std::cout << "Vertices  : " << std::setw(5) << myDS->NbVertices() << std::endl;
+        std::cout << '\n';
+        std::cout << "Vertices  : " << std::setw(5) << myDS->NbVertices() << '\n';
         std::cout << "Edges     : " << std::setw(5) << myDS->NbEdges()    << " , ";
         std::cout << "Selected  : " << std::setw(5) << nbSelEdges         << " , ";
-        std::cout << "Visible   : " << std::setw(5) << nbVisEdges         << std::endl;
+        std::cout << "Visible   : " << std::setw(5) << nbVisEdges         << '\n';
         std::cout << "Faces     : " << std::setw(5) << myDS->NbFaces()    << " , ";
         std::cout << "Selected  : " << std::setw(5) << nbSelFaces         << " , ";
-        std::cout << "Simple    : " << std::setw(5) << nbFSimp            << std::endl;
+        std::cout << "Simple    : " << std::setw(5) << nbFSimp            << '\n';
         if (SideFace)
           std::cout << "Side      : " << std::setw(5) << nbFSide            << " , ";
-        std::cout << "Cachantes : " << std::setw(5) << nbCache            << std::endl << std::endl;
+        std::cout << "Cachantes : " << std::setw(5) << nbCache            << '\n' << '\n';
       }
     }
 
@@ -753,7 +753,7 @@ void HLRBRep_InternalAlgo::HideSelected (const Standard_Integer I,
            else {  
              if (myDebug && HLRBRep_InternalAlgo_TRACE) {
                j++;
-               std::cout << " OwnHiding " << j << " of face : " << f << std::endl;
+               std::cout << " OwnHiding " << j << " of face : " << f << '\n';
              }
            }
            Cache.OwnHiding(f);
index 782fe974eaa9e4698beef9b62b070b47ae619c5f..25ca6df30465e887ca37187ef5744d04c3f4c54b 100644 (file)
@@ -61,7 +61,7 @@ Handle(Draw_Drawable3D) HLRTest_OutLiner::Copy () const
 
 void HLRTest_OutLiner::Dump (Standard_OStream& S) const 
 {
-  S << "This is an outliner" << std::endl;
+  S << "This is an outliner" << '\n';
 }
 
 //=======================================================================
index c4fcf67ee1bef12bea0f7e2eeac26f8da8dec0e0..6a19c635bf1440c67bcdd7b78c377911604585c3 100644 (file)
@@ -67,7 +67,7 @@ void HLRTest_Projector::Dump (Standard_OStream& S) const
     }
     S << "\n";
   }
-  S << std::endl;
+  S << '\n';
 }
 
 //=======================================================================
index c0d0a339333496b6fc1a9b6ff01f3f767f861efa..01ea3981edb10557fec681ef3f2dd768d45b7906 100644 (file)
@@ -76,19 +76,19 @@ void HatchGen_Domain::Dump (const Standard_Integer Index) const
   } else {
     std::cout << "======" ;
   }
-  std::cout << "=============================" << std::endl ;
+  std::cout << "=============================" << '\n' ;
 
   if (myHasFirstPoint) {
     myFirstPoint.Dump (1) ;
   } else {
-    std::cout << "    Has not a first point" << std::endl ;
+    std::cout << "    Has not a first point" << '\n' ;
   }
 
   if (myHasSecondPoint) {
     mySecondPoint.Dump (2) ;
   } else {
-    std::cout << "    Has not a second point" << std::endl ;
+    std::cout << "    Has not a second point" << '\n' ;
   }
 
-  std::cout << "==============================================" << std::endl ;
+  std::cout << "==============================================" << '\n' ;
 }
index bbfaa29eebe7491df25e11c8fb961a799c75e279..c72af86cea22c312c1d2dd212d02681c3c5b5866 100644 (file)
@@ -206,10 +206,10 @@ void HatchGen_PointOnElement::Dump (const Standard_Integer Index) const
   } else {
     std::cout << "------" ;
   }
-  std::cout << "---------------" << std::endl ;
+  std::cout << "---------------" << '\n' ;
 
-  std::cout << "        Index of the element = " << myIndex << std::endl ;
-  std::cout << "        Parameter on element = " << myParam << std::endl ;
+  std::cout << "        Index of the element = " << myIndex << '\n' ;
+  std::cout << "        Parameter on element = " << myParam << '\n' ;
   std::cout << "        Position  on element = " ;
   switch (myPosit) {
       case TopAbs_FORWARD  : std::cout << "FORWARD  (i.e. BEGIN  )" ; break ;
@@ -217,7 +217,7 @@ void HatchGen_PointOnElement::Dump (const Standard_Integer Index) const
       case TopAbs_REVERSED : std::cout << "REVERSED (i.e. END    )" ; break ;
       case TopAbs_EXTERNAL : std::cout << "EXTERNAL (i.e. UNKNOWN)" ; break ;
   }
-  std::cout << std::endl ;
+  std::cout << '\n' ;
   std::cout << "        Intersection Type    = " ;
   switch (myType) {
       case HatchGen_TRUE         : std::cout << "TRUE"         ; break ;
@@ -225,7 +225,7 @@ void HatchGen_PointOnElement::Dump (const Standard_Integer Index) const
       case HatchGen_TANGENT      : std::cout << "TANGENT"      ; break ;
       case HatchGen_UNDETERMINED : std::cout << "UNDETERMINED" ; break ;
   }
-  std::cout << std::endl ;
+  std::cout << '\n' ;
   std::cout << "        State Before         = " ;
   switch (myBefore) {
       case TopAbs_IN      : std::cout << "IN"      ; break ;
@@ -233,7 +233,7 @@ void HatchGen_PointOnElement::Dump (const Standard_Integer Index) const
       case TopAbs_ON      : std::cout << "ON"      ; break ;
       case TopAbs_UNKNOWN : std::cout << "UNKNOWN" ; break ;
   }
-  std::cout << std::endl ;
+  std::cout << '\n' ;
   std::cout << "        State After          = " ;
   switch (myAfter) {
       case TopAbs_IN      : std::cout << "IN"      ; break ;
@@ -241,9 +241,9 @@ void HatchGen_PointOnElement::Dump (const Standard_Integer Index) const
       case TopAbs_ON      : std::cout << "ON"      ; break ;
       case TopAbs_UNKNOWN : std::cout << "UNKNOWN" ; break ;
   }
-  std::cout << std::endl ;
-  std::cout << "        Beginning of segment = " << (mySegBeg ? "TRUE" : "FALSE") << std::endl ;
-  std::cout << "        End       of segment = " << (mySegEnd ? "TRUE" : "FALSE") << std::endl ;
+  std::cout << '\n' ;
+  std::cout << "        Beginning of segment = " << (mySegBeg ? "TRUE" : "FALSE") << '\n' ;
+  std::cout << "        End       of segment = " << (mySegEnd ? "TRUE" : "FALSE") << '\n' ;
 
-  std::cout << "    ------------------------------------------" << std::endl ;
+  std::cout << "    ------------------------------------------" << '\n' ;
 }
index 3afd2bb33471cf4209a6cd7d02cecb47c1051c86..d2dde2d96769c032ea5ca51707a1893ab2c7b4a3 100644 (file)
@@ -166,10 +166,10 @@ void HatchGen_PointOnHatching::Dump (const Standard_Integer Index) const
   } else {
     std::cout << "------" ;
   }
-  std::cout << "------------------" << std::endl ;
+  std::cout << "------------------" << '\n' ;
 
-  std::cout << "    Index of the hatching = " << myIndex << std::endl ;
-  std::cout << "    Parameter on hatching = " << myParam << std::endl ;
+  std::cout << "    Index of the hatching = " << myIndex << '\n' ;
+  std::cout << "    Parameter on hatching = " << myParam << '\n' ;
   std::cout << "    Position  on hatching = " ;
   switch (myPosit) {
       case TopAbs_FORWARD  : std::cout << "FORWARD  (i.e. BEGIN  )" ; break ;
@@ -177,7 +177,7 @@ void HatchGen_PointOnHatching::Dump (const Standard_Integer Index) const
       case TopAbs_REVERSED : std::cout << "REVERSED (i.e. END    )" ; break ;
       case TopAbs_EXTERNAL : std::cout << "EXTERNAL (i.e. UNKNOWN)" ; break ;
   }
-  std::cout << std::endl ;
+  std::cout << '\n' ;
   std::cout << "    State Before          = " ;
   switch (myBefore) {
       case TopAbs_IN      : std::cout << "IN"      ; break ;
@@ -185,7 +185,7 @@ void HatchGen_PointOnHatching::Dump (const Standard_Integer Index) const
       case TopAbs_ON      : std::cout << "ON"      ; break ;
       case TopAbs_UNKNOWN : std::cout << "UNKNOWN" ; break ;
   }
-  std::cout << std::endl ;
+  std::cout << '\n' ;
   std::cout << "    State After           = " ;
   switch (myAfter) {
       case TopAbs_IN      : std::cout << "IN"      ; break ;
@@ -193,20 +193,20 @@ void HatchGen_PointOnHatching::Dump (const Standard_Integer Index) const
       case TopAbs_ON      : std::cout << "ON"      ; break ;
       case TopAbs_UNKNOWN : std::cout << "UNKNOWN" ; break ;
   }
-  std::cout << std::endl ;
-  std::cout << "    Beginning of segment  = " << (mySegBeg ? "TRUE" : "FALSE") << std::endl ;
-  std::cout << "    End       of segment  = " << (mySegEnd ? "TRUE" : "FALSE") << std::endl ;
+  std::cout << '\n' ;
+  std::cout << "    Beginning of segment  = " << (mySegBeg ? "TRUE" : "FALSE") << '\n' ;
+  std::cout << "    End       of segment  = " << (mySegEnd ? "TRUE" : "FALSE") << '\n' ;
 
   Standard_Integer NbPnt = myPoints.Length () ;
   if (NbPnt == 0) {
-    std::cout << "    No points on element" << std::endl ;
+    std::cout << "    No points on element" << '\n' ;
   } else {
-    std::cout << "    Contains " << NbPnt << " points on element" << std::endl ;
+    std::cout << "    Contains " << NbPnt << " points on element" << '\n' ;
     for (Standard_Integer IPnt = 1 ; IPnt <= NbPnt ; IPnt++) {
       const HatchGen_PointOnElement& Point = myPoints.Value (IPnt) ;
       Point.Dump (IPnt) ;
     }
   }
 
-  std::cout << "----------------------------------------------" << std::endl ;
+  std::cout << "----------------------------------------------" << '\n' ;
 }
index c69ad559be5e6de5ed353e355949522b6b53af7b..13f631799b72854ca97c182cad9653748018fa72 100644 (file)
@@ -349,7 +349,7 @@ void IFSelect_ContextModif::TraceModifier
   if (modif.IsNull()) return;
 
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  sout << "---   Run Modifier:" << std::endl;
+  sout << "---   Run Modifier:" << '\n';
   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)"<<std::endl;
-  else          sout<<"  Entities,Total:"<<nb<<" Concerned:"<<ne<<std::endl;
+  if (nb == ne) sout<<"  All Model ("<<nb<<" Entities)"<<'\n';
+  else          sout<<"  Entities,Total:"<<nb<<" Concerned:"<<ne<<'\n';
 }
 
 
@@ -375,11 +375,11 @@ void IFSelect_ContextModif::Trace (const Standard_CString mess)
   if (thecurr <= 0) return;
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (ValueOriginal() == ValueResult())
-    sout<<"--  ContextModif. Entity  n0 "<<thecurr<<std::endl;
+    sout<<"--  ContextModif. Entity  n0 "<<thecurr<<'\n';
   else
     sout<<"--  ContextModif. Entity in Original, n0 "<<thecurr<<" in Result, n0 "
-      <<thecurt<<std::endl;
-  if (mess[0] != '\0') sout<<"--  Message:"<<mess<<std::endl;
+      <<thecurt<<'\n';
+  if (mess[0] != '\0') sout<<"--  Message:"<<mess<<'\n';
 }
 
 
index 7065164e56073e3100751bfd887911e83abf0a50..97389eb518205287b4ffaa291008694c55a0f3b5 100644 (file)
@@ -406,14 +406,14 @@ IFSelect_EditForm::IFSelect_EditForm
     void  IFSelect_EditForm::PrintDefs (Standard_OStream& S) const
 {
   Standard_Integer iv, nbv = NbValues(Standard_True);
-  S<<"***** EditForm,  Label : "<<Label()<<std::endl;
-  if (IsComplete()) S<<"Complete, "<<nbv<<" Values"<<std::endl;
+  S<<"***** EditForm,  Label : "<<Label()<<'\n';
+  if (IsComplete()) S<<"Complete, "<<nbv<<" Values"<<'\n';
   else {
-    S<<"Extraction on "<<nbv<<" Values : (extracted<-editor)"<<std::endl;
+    S<<"Extraction on "<<nbv<<" Values : (extracted<-editor)"<<'\n';
     for (iv = 1; iv <= nbv; iv ++) S<<"  "<<iv<<"<-"<<NumberFromRank(iv);
-    S<<std::endl;
+    S<<'\n';
   }
-  S<<"*****"<<std::endl;
+  S<<"*****"<<'\n';
 }
 
 
@@ -421,15 +421,15 @@ static void PrintList
   (const Handle(TColStd_HSequenceOfHAsciiString)& list,
    Standard_OStream& S, const Standard_Boolean alsolist)
 {
-  if (list.IsNull())  {  S<<"(NULL LIST)"<<std::endl;  return;  }
+  if (list.IsNull())  {  S<<"(NULL LIST)"<<'\n';  return;  }
 
   Standard_Integer i,nb = list->Length();
-  S<<"(List : "<<nb<<" Items)"<<std::endl;
+  S<<"(List : "<<nb<<" Items)"<<'\n';
   if (!alsolist) return;
 
   for (i = 1; i <= nb; i ++) {
     Handle(TCollection_HAsciiString) str = list->Value(i);
-    S<<"  ["<<i<<"]    "<< (str.IsNull() ? "(NULL)" : str->ToCString())<<std::endl;
+    S<<"  ["<<i<<"]    "<< (str.IsNull() ? "(NULL)" : str->ToCString())<<'\n';
   }
 }
 
@@ -438,11 +438,11 @@ static void PrintList
    const Standard_Boolean names, const Standard_Boolean alsolist) const
 {
   Standard_Integer iv, nbv = NbValues(Standard_True);
-  S<<  "****************************************************"<<std::endl;
-  S<<"*****  "<<Label()<<Interface_MSG::Blanks(Label(),40)<<"*****"<<std::endl;
-  S<<"*****                                          *****"<<std::endl;
+  S<<  "****************************************************"<<'\n';
+  S<<"*****  "<<Label()<<Interface_MSG::Blanks(Label(),40)<<"*****"<<'\n';
+  S<<"*****                                          *****"<<'\n';
   if (!theloaded)
-    S<<"*****         Values are NOT loaded            *****"<<std::endl;
+    S<<"*****         Values are NOT loaded            *****"<<'\n';
 
   else {
 //  Donnees sur lesquelles on a travaille
@@ -454,15 +454,15 @@ static void PrintList
       else { S<<"*****  Loaded entity : "; themodel->PrintLabel (theent, S); }
     }
   }
-  S<<std::endl<<"****************************************************"<<std::endl<<std::endl;
+  S<<'\n'<<"****************************************************"<<'\n'<<'\n';
 
 //  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"<<std::endl;
-  else S<<" N0 Name               Value"<<std::endl;
+  if (what != 0) S<<"Mod N0 Name               Value"<<'\n';
+  else S<<" N0 Name               Value"<<'\n';
 
   for (iv = 1; iv <= nbv; iv ++) {
     Standard_Integer jv = NumberFromRank(iv);
@@ -487,7 +487,7 @@ static void PrintList
       if (what < 0) str = OriginalValue (jv);
       if (what > 0) str = EditedValue (jv);
 
-      S<< (str.IsNull() ? "(NULL)" : str->ToCString()) <<std::endl;
+      S<< (str.IsNull() ? "(NULL)" : str->ToCString()) <<'\n';
 
 //    Modified only
     } else {
@@ -509,12 +509,12 @@ static void PrintList
       Handle(TCollection_HAsciiString) str = OriginalValue (jv);
       S<<Interface_MSG::Blanks(iv,3)<<iv<<" "
        <<name<<Interface_MSG::Blanks(name,maxnam)<<" ORIG:"
-       << (str.IsNull() ? "(NULL)" : str->ToCString()) <<std::endl;
+       << (str.IsNull() ? "(NULL)" : str->ToCString()) <<'\n';
       str = EditedValue (jv);
-      S<<Interface_MSG::Blanks("",maxnam+4)<<" MOD :"<< (str.IsNull() ? "(NULL)" : str->ToCString()) <<std::endl;
+      S<<Interface_MSG::Blanks("",maxnam+4)<<" MOD :"<< (str.IsNull() ? "(NULL)" : str->ToCString()) <<'\n';
     }
   }
-  if (what == 0) S<<"On "<<nbv<<" Values, "<<nbmod<<" Modified"<<std::endl;
+  if (what == 0) S<<"On "<<nbv<<" Values, "<<nbmod<<" Modified"<<'\n';
 }
 
 
index 49c9464c195af0a51499dd05f96f4075e98f553c..761b3defb2bcc3b757c63f2c95123769d5d09ddc 100644 (file)
@@ -105,11 +105,11 @@ Standard_Integer  IFSelect_Editor::MaxList (const Standard_Integer num) const
     void  IFSelect_Editor::PrintNames (Standard_OStream& S) const
 {
   Standard_Integer i, nb = NbValues();
-  S<<"****    Editor : "<<Label()<<std::endl;
-  S<<"****    Nb Values = "<<nb<<"    ****    Names / Labels"<<std::endl;
+  S<<"****    Editor : "<<Label()<<'\n';
+  S<<"****    Nb Values = "<<nb<<"    ****    Names / Labels"<<'\n';
   S<<" Num ";
   if (themaxsh > 0) S<<"Short"<<Interface_MSG::Blanks("Short",themaxsh)<<" ";
-  S<<"Complete"<<Interface_MSG::Blanks("Complete",themaxco)<<"  Label"<<std::endl;
+  S<<"Complete"<<Interface_MSG::Blanks("Complete",themaxco)<<"  Label"<<'\n';
 
   for (i = 1; i <= nb; i ++) {
     Handle(Interface_TypedValue) tv = TypedValue(i);
@@ -119,7 +119,7 @@ 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()<<std::endl;
+    S<<tv->Name()<<Interface_MSG::Blanks(tv->Name(),themaxco)<<"  "<<tv->Label()<<'\n';
   }
 }
 
@@ -127,15 +127,15 @@ Standard_Integer  IFSelect_Editor::MaxList (const Standard_Integer num) const
   (Standard_OStream& S, const Standard_Boolean labels) const
 {
   Standard_Integer i, nb = NbValues();
-  S<<"****    Editor : "<<Label()<<std::endl;
-  S<<"****    Nb Values = "<<nb<<"    ****    "<<(labels ? "Labels" : "Names")<<"  /  Definitions"<<std::endl;
+  S<<"****    Editor : "<<Label()<<'\n';
+  S<<"****    Nb Values = "<<nb<<"    ****    "<<(labels ? "Labels" : "Names")<<"  /  Definitions"<<'\n';
   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"<<std::endl;
+  S<<"  Edit Mode  &  Definition"<<'\n';
 
   for (i = 1; i <= nb; i ++) {
     Handle(Interface_TypedValue) tv = TypedValue(i);
@@ -166,7 +166,7 @@ Standard_Integer  IFSelect_Editor::MaxList (const Standard_Integer num) const
       default :                     S<<"?????????";  break;
     }
 
-    S<<" "<<tv->Definition()<<std::endl;
+    S<<" "<<tv->Definition()<<'\n';
   }
 }
 
index c04459131604207da930e5ec87f79b572ffb276f..e0673acbb342454d00bc0019aa816dd0dd5bbe9f 100644 (file)
@@ -106,10 +106,10 @@ static IFSelect_ReturnStatus funstatus
 //        ****    Version & cie     ****
   //#58 rln
   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;
+  sout<<"Processor Version : "<<XSTEP_PROCESSOR_VERSION<<'\n';
+  sout<<"OL Version        : "<<XSTEP_SYSTEM_VERSION<<'\n';
+  sout<<"Configuration     : "<<XSTEP_Config<<'\n';
+  sout<<"UL Names          : "<<XSTEP_ULNames<<'\n';
   return IFSelect_RetVoid;
 }
 
@@ -120,8 +120,8 @@ static IFSelect_ReturnStatus fun1
 //        ****    ToggleHandler     ****
   Standard_Boolean hand = !WS->ErrorHandle();
   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;
+  if (hand) sout << " --  Mode Catch Error now Active"   <<'\n';
+  else      sout << " --  Mode Catch Error now Inactive" <<'\n';
   WS->SetErrorHandle(hand);
   return IFSelect_RetDone;
 }
@@ -134,20 +134,20 @@ static IFSelect_ReturnStatus fun3
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    XRead / Load         ****
   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; }
+  if (argc < 2) { sout<<"Read/Load : give file name !"<<'\n'; return IFSelect_RetError; }
+  if (WS->Protocol().IsNull()) { sout<<"Protocol not defined"<<'\n'; return IFSelect_RetError; }
+  if (WS->WorkLibrary().IsNull()) { sout<<"WorkLibrary not defined"<<'\n'; 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"<<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;
+    case IFSelect_RetVoid  : sout<<"file:"<<arg1<<" gives empty result"<<'\n'; break;
+    case IFSelect_RetError : sout<<"file:"<<arg1<<" could not be opened"<<'\n'; break;
+    case IFSelect_RetDone  : sout<<"file:"<<arg1<<" read"<<'\n'; break;
+    case IFSelect_RetFail  : sout<<"file:"<<arg1<<" : error while reading"<<'\n'; break;
+    case IFSelect_RetStop  : sout<<"file:"<<arg1<<" : EXCEPTION while reading"<<'\n'; break;
+    default : sout<<"file:"<<arg1<<" could not be read"<<'\n'; break;
   }
   if (status != IFSelect_RetDone) return status;
 //      sout<<" - clearing list of already written files"<<std::endl;
@@ -163,7 +163,7 @@ static IFSelect_ReturnStatus fun4
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Write All         ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Write All : give file name !"<<std::endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Write All : give file name !"<<'\n'; return IFSelect_RetError; }
   return WS->SendAll (arg1);
 }
 
@@ -176,11 +176,11 @@ static IFSelect_ReturnStatus fun5
 //  const Standard_CString arg2 = pilot->Arg(2);
 //        ****    Write Selected         ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 3) { sout<<"Write Selected : give file name + givelist !"<<std::endl; return IFSelect_RetError; }
+  if (argc < 3) { sout<<"Write Selected : give file name + givelist !"<<'\n'; return IFSelect_RetError; }
   Handle(TColStd_HSequenceOfTransient) result =
     IFSelect_Functions::GiveList (WS,pilot->CommandPart( 2));
-  if (result.IsNull()) { sout<<"No entity selected"<<std::endl; return IFSelect_RetError; }
-  else sout<<"Nb Entities selected : "<<result->Length()<<std::endl;
+  if (result.IsNull()) { sout<<"No entity selected"<<'\n'; return IFSelect_RetError; }
+  else sout<<"Nb Entities selected : "<<result->Length()<<'\n';
   Handle(IFSelect_SelectPointed) sp = new IFSelect_SelectPointed;
   sp->SetList (result);
   return WS->SendSelected (arg1,sp);
@@ -194,19 +194,19 @@ static IFSelect_ReturnStatus fun6
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Write Entite(s)         ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 3) { sout<<"Write Entitie(s) : give file name + n0s entitie(s)!"<<std::endl; return IFSelect_RetError; }
+  if (argc < 3) { sout<<"Write Entitie(s) : give file name + n0s entitie(s)!"<<'\n'; 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<<std::endl;
-      else { sout<<" Fail Add n0."<<id<<std::endl; ko ++; }
+      if (sp->Add(item)) sout<<"Added:no."<<id<<'\n';
+      else { sout<<" Fail Add n0."<<id<<'\n'; ko ++; }
     }
-    else { sout<<"Not an entity number:"<<pilot->Arg(ia)<<std::endl; ko ++; }
+    else { sout<<"Not an entity number:"<<pilot->Arg(ia)<<'\n'; ko ++; }
   }
-  if (ko > 0) { sout<<ko<<" bad arguments, abandon"<<std::endl; return IFSelect_RetError; }
+  if (ko > 0) { sout<<ko<<" bad arguments, abandon"<<'\n'; return IFSelect_RetError; }
   return WS->SendSelected (arg1,sp);
 }
 
@@ -218,14 +218,14 @@ static IFSelect_ReturnStatus fun7
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Entity Label       ****
   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; }
+  if (argc < 2) { sout<<"Give entity number"<<'\n'; return IFSelect_RetError; }
+  if (!WS->HasModel()) { sout<<"No loaded model, abandon"<<'\n'; return IFSelect_RetError; }
   Standard_Integer nument = WS->NumberFromLabel (arg1);
   if (nument <= 0 || nument > WS->NbStartingEntities())
-    { sout<<"Not a suitable number: "<<arg1<<std::endl;  return IFSelect_RetError; }
+    { sout<<"Not a suitable number: "<<arg1<<'\n';  return IFSelect_RetError; }
   sout<<"N0."<<nument<<" ->Label in Model : ";
   WS->Model()->PrintLabel(WS->StartingEntity(nument), sout);
-  sout<<std::endl;
+  sout<<'\n';
   return IFSelect_RetVoid;
 }
 
@@ -237,23 +237,23 @@ static IFSelect_ReturnStatus fun8
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Entity Number      ****
   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; }
+  if (argc < 2) { sout<<"Give label to search"<<'\n'; return IFSelect_RetError; }
+  if (!WS->HasModel()) { sout<<"No loaded model, abandon"<<'\n'; 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<<std::endl;
+  sout<<" **  Search Entity Number for Label : "<<arg1<<'\n';
   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<<std::endl;
+    sout<<'\n';
   }
   
-  if (cnt == 0) sout<<" **  No Match"<<std::endl;
-  else if (cnt == 1) sout<<" **  1 Match"<<std::endl;
-  else sout<<cnt<<" Matches"<<std::endl;
+  if (cnt == 0) sout<<" **  No Match"<<'\n';
+  else if (cnt == 1) sout<<" **  1 Match"<<'\n';
+  else sout<<cnt<<" Matches"<<'\n';
   return IFSelect_RetVoid;
 }
 
@@ -281,10 +281,10 @@ static IFSelect_ReturnStatus funcount
 
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) {
-    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;
+    sout<<"Designer signature ou compteur, + facultatif selection + facultatif entite"<<'\n';
+    sout<<" signature/compteur seul -> tout le modele"<<'\n'
+      <<  " sign/compteur + selection -> cette selection, evaluation normale"<<'\n'
+       <<" sign/compteur + sel + num -> cette selection evaluee sur entite n0 num"<<'\n';
     return IFSelect_RetError;
   }
   DeclareAndCast(IFSelect_SignCounter,counter,WS->NamedItem(arg1));
@@ -318,7 +318,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"<<std::endl;
+         sout<<"Incorrect definition for applied selection"<<'\n';
          return IFSelect_RetError;
        }
       }
@@ -331,7 +331,7 @@ static IFSelect_ReturnStatus funcount
   }
 
   if (counter.IsNull()) {
-    sout<<"Neither Counter nor Signature : "<<arg1<<std::endl;
+    sout<<"Neither Counter nor Signature : "<<arg1<<'\n';
     return IFSelect_RetError;
   }
 
@@ -351,26 +351,26 @@ static IFSelect_ReturnStatus funsigntype
 //        ****    Sign Type              ****
   Handle(IFSelect_Signature) signtype = WS->SignType();
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (signtype.IsNull()) sout<<"signtype actually undefined"<<std::endl;
+  if (signtype.IsNull()) sout<<"signtype actually undefined"<<'\n';
   else {
     Handle(TCollection_HAsciiString) str = WS->Name (signtype);
     Standard_Integer id = WS->ItemIdent (signtype);
-    sout<<signtype->Label()<<std::endl;
+    sout<<signtype->Label()<<'\n';
     if (str.IsNull()) {
-      if (id > 0) sout<<"signtype : item n0 "<<id<<std::endl;
+      if (id > 0) sout<<"signtype : item n0 "<<id<<'\n';
     } else {
-      sout<<"signtype : also named as "<<str->ToCString()<<std::endl;
+      sout<<"signtype : also named as "<<str->ToCString()<<'\n';
     }
   }
-  if (argc < 2) sout<<"signtype newitem  to change, signtype . to clear"<<std::endl;
+  if (argc < 2) sout<<"signtype newitem  to change, signtype . to clear"<<'\n';
   else {
     if (arg1[0] == '.' && arg1[1] == '\0') {
       signtype.Nullify();
-      sout<<"signtype now cleared"<<std::endl;
+      sout<<"signtype now cleared"<<'\n';
     } else {
       signtype = GetCasted(IFSelect_Signature,WS->NamedItem(arg1));
-      if (signtype.IsNull()) { sout<<"Not a Signature : "<<arg1<<std::endl; return IFSelect_RetError; }
-      else sout<<"signtype now set to "<<arg1<<std::endl;
+      if (signtype.IsNull()) { sout<<"Not a Signature : "<<arg1<<'\n'; return IFSelect_RetError; }
+      else sout<<"signtype now set to "<<arg1<<'\n';
     }
     WS->SetSignType(signtype);
     return IFSelect_RetDone;
@@ -386,22 +386,22 @@ static IFSelect_ReturnStatus funsigncase
 //        ****    Sign Case              ****
   Handle(IFSelect_Signature) signcase = GetCasted(IFSelect_Signature,WS->NamedItem(arg1));
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (signcase.IsNull()) sout<<"Not a Signature : "<<arg1<<std::endl;
+  if (signcase.IsNull()) sout<<"Not a Signature : "<<arg1<<'\n';
   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<<std::endl;
+      sout<<'\n';
     }
     Handle(TColStd_HSequenceOfAsciiString) caselist = signcase->CaseList();
-    if (caselist.IsNull()) sout<<"Signature "<<arg1<<" : no predefined case, see command  count "<<arg1<<std::endl;
+    if (caselist.IsNull()) sout<<"Signature "<<arg1<<" : no predefined case, see command  count "<<arg1<<'\n';
     else {
       Standard_Integer i, nb = caselist->Length();
-      sout<<"Signature "<<arg1<<" : "<<nb<<" basic cases :"<<std::endl;
+      sout<<"Signature "<<arg1<<" : "<<nb<<" basic cases :"<<'\n';
       for (i = 1; i <= nb; i ++) sout<<"  "<<caselist->Value(i);
-      sout<<std::endl;
+      sout<<'\n';
     }
   }
   return IFSelect_RetVoid;
@@ -422,12 +422,12 @@ static IFSelect_ReturnStatus fun10
     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"<<std::endl;
+    sout<<" On a given entity : give its number"<<'\n';
     return IFSelect_RetVoid;
   }
   Standard_Integer num = pilot->Number(arg1);
   if (num <= 0 || num > WS->NbStartingEntities())
-    { sout<<"Not a suitable entity number : "<<arg1<<std::endl; return IFSelect_RetError; }
+    { sout<<"Not a suitable entity number : "<<arg1<<'\n'; return IFSelect_RetError; }
   Handle(Standard_Transient) ent = WS->StartingEntity(num);
   WS->PrintEntityStatus (ent, sout);
   return IFSelect_RetVoid;
@@ -455,7 +455,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)"<<std::endl;
+       <<" TOTALCHECK CheckList (complete) per message (listing complete)"<<'\n';
      return IFSelect_RetVoid;
     case 'g' : niv = 0; break;
     case 'r' : niv = 1; break;
@@ -467,7 +467,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"<<std::endl; return IFSelect_RetError;
+    default  : sout<<"Unknown Mode .  data tout court pour help"<<'\n'; return IFSelect_RetError;
   }
   WS->TraceDumpModel(niv);
   return IFSelect_RetVoid;
@@ -484,11 +484,11 @@ static IFSelect_ReturnStatus fundumpent
   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"<<std::endl;
-    else sout<<"  + optional, dump level in [0 - "<<levmax<<"] , default = "<<levdef<<std::endl;
+    if (levmax < 0) sout<<"  and dump level"<<'\n';
+    else sout<<"  + optional, dump level in [0 - "<<levmax<<"] , default = "<<levdef<<'\n';
     for (level = 0; level <= levmax; level ++) {
       Standard_CString help = WL->DumpHelp (level);
-      if (help[0] != '\0') sout<<level<<" : "<<help<<std::endl;
+      if (help[0] != '\0') sout<<level<<" : "<<help<<'\n';
     }
     return IFSelect_RetError;
   }
@@ -501,10 +501,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" << std::endl;
+    sout << "No entity with given id " << arg1 << " (" << num << ") is found in the current model" << '\n';
   }
   else {
-    sout << "  --   DUMP  Entity n0 " << num << "  level " << level << std::endl;
+    sout << "  --   DUMP  Entity n0 " << num << "  level " << level << '\n';
     WL->DumpEntity (WS->Model(),WS->Protocol(),ent,sout,level);
 
     Interface_CheckIterator chl = WS->CheckOne (ent);
@@ -523,13 +523,13 @@ static IFSelect_ReturnStatus funsign
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 3) { sout<<" Give signature name + n0 or id of entity"<<std::endl; return IFSelect_RetError; }
+  if (argc < 3) { sout<<" Give signature name + n0 or id of entity"<<'\n'; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Signature,sign,WS->NamedItem(arg1));
-  if (sign.IsNull()) { sout<<"Not a signature : "<<arg1<<std::endl; return IFSelect_RetError; }
+  if (sign.IsNull()) { sout<<"Not a signature : "<<arg1<<'\n'; 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)<<std::endl;
+  sout<<"Entity n0 "<<num<<" : "<<WS->SignValue(sign,ent)<<'\n';
   return IFSelect_RetVoid;
 }
 
@@ -541,14 +541,14 @@ static IFSelect_ReturnStatus funqp
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 3) { sout<<" Give 2 numeros or labels : dad son"<<std::endl; return IFSelect_RetError; }
+  if (argc < 3) { sout<<" Give 2 numeros or labels : dad son"<<'\n'; 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<<std::endl;
+  sout<<"QueryParent for dad:"<<arg1<<":"<<n1<<" and son:"<<arg2<<":"<<n2<<'\n';
   Standard_Integer qp = WS->QueryParent(WS->StartingEntity(n1),WS->StartingEntity(n2));
-  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;
+  if (qp < 0) sout<<arg1<<" is not super-entity of "<<arg2<<'\n';
+  else if (qp == 0) sout<<arg1<<" is same as "<<arg2<<'\n';
+  else sout<<arg1<<" is super-entity of "<<arg2<<" , max level found="<<qp<<'\n';
 //  sout<<" Trouve "<<qp<<std::endl;
   return IFSelect_RetVoid;
 }
@@ -578,7 +578,7 @@ static IFSelect_ReturnStatus fun14
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    NewInt            ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 1) { sout<<"Donner la valeur entiere pour IntParam"<<std::endl; return IFSelect_RetError; }
+  if (argc < 1) { sout<<"Donner la valeur entiere pour IntParam"<<'\n'; return IFSelect_RetError; }
   Handle(IFSelect_IntParam) intpar = new IFSelect_IntParam;
   if (argc >= 1)       intpar->SetValue(atoi(arg1));
   return pilot->RecordItem (intpar);
@@ -594,7 +594,7 @@ static IFSelect_ReturnStatus fun15
 //        ****    SetInt            ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 3)
-    { sout<<"Donner 2 arguments : nom Parametre et Valeur"<<std::endl; return IFSelect_RetError; }
+    { sout<<"Donner 2 arguments : nom Parametre et Valeur"<<'\n'; return IFSelect_RetError; }
   Standard_Integer val = atoi(arg2);
   DeclareAndCast(IFSelect_IntParam,par,WS->NamedItem(arg1));
   if (!WS->SetIntValue(par,val)) return IFSelect_RetFail;
@@ -609,7 +609,7 @@ static IFSelect_ReturnStatus fun16
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    NewText           ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 1) { sout<<"Donner la valeur texte pour TextParam"<<std::endl; return IFSelect_RetError; }
+  if (argc < 1) { sout<<"Donner la valeur texte pour TextParam"<<'\n'; return IFSelect_RetError; }
   Handle(TCollection_HAsciiString) textpar = new TCollection_HAsciiString();
   if (argc >= 1) textpar->AssignCat(arg1);
   return pilot->RecordItem (textpar);
@@ -625,7 +625,7 @@ static IFSelect_ReturnStatus fun17
 //        ****    SetText           ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 3)
-    { sout<<"Donner 2 arguments : nom Parametre et Valeur"<<std::endl; return IFSelect_RetError; }
+    { sout<<"Donner 2 arguments : nom Parametre et Valeur"<<'\n'; return IFSelect_RetError; }
   DeclareAndCast(TCollection_HAsciiString,par,WS->NamedItem(arg1));
   if (!WS->SetTextValue(par,arg2)) return IFSelect_RetFail;
   return IFSelect_RetDone;
@@ -639,7 +639,7 @@ static IFSelect_ReturnStatus fun19
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    DumpSel           ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Give 1 argument : Selection Name"<<std::endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Give 1 argument : Selection Name"<<'\n'; return IFSelect_RetError; }
   WS->DumpSelection (GetCasted(IFSelect_Selection,WS->NamedItem(arg1)));
   return IFSelect_RetVoid;
 }
@@ -656,7 +656,7 @@ static IFSelect_ReturnStatus fun20
   char mode = pilot->Arg(0)[0];  // givelist/makelist
   if (mode == 'g') mode = pilot->Arg(0)[4];  // l list  s short  p pointed
   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; }
+  if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<'\n'; return IFSelect_RetError; }
 
 //    MakeList : sur Pointed existante ou a creer
   Handle(IFSelect_SelectPointed) pnt;
@@ -665,10 +665,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"<<std::endl;
+      sout<<arg1<<":Already existing Selection for List, cleared then filled"<<'\n';
       pnt->Clear();
     } else if (!item.IsNull()) {
-      sout<<arg1<<":Already existing Item not for a List, command ignored"<<std::endl;
+      sout<<arg1<<":Already existing Item not for a List, command ignored"<<'\n';
       return IFSelect_RetFail;
     } else {
       pnt = new IFSelect_SelectPointed;
@@ -687,13 +687,13 @@ static IFSelect_ReturnStatus fun20
     sout<<iter.NbEntities()<<" Entities : ";
     for (iter.Start(); iter.More(); iter.Next())
       sout<<" +"<<WS->StartingNumber (iter.Value());
-    sout<<std::endl;
+    sout<<'\n';
   }
 
   if (!pnt.IsNull()) {
     pnt->SetList (result);
-    sout<<"List set to a SelectPointed : "<<pilot->Arg(1)<<std::endl;
-    sout<<"Later editable by command setlist"<<std::endl;
+    sout<<"List set to a SelectPointed : "<<pilot->Arg(1)<<'\n';
+    sout<<"Later editable by command setlist"<<'\n';
   }
 
   return IFSelect_RetVoid;
@@ -706,12 +706,12 @@ static IFSelect_ReturnStatus fun20c
   Standard_Integer argc = pilot->NbWords();
 //        ****    GiveCount         ****
   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; }
+  if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<'\n'; 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"<<std::endl;
+  sout<<pilot->CommandPart(1)<<" : List of "<<result->Length()<<" Entities"<<'\n';
   return IFSelect_RetVoid;
 }
 
@@ -722,14 +722,14 @@ static IFSelect_ReturnStatus funselsuite
   Standard_Integer argc = pilot->NbWords();
 //        ****    SelSuite         ****
   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; }
+  if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<'\n'; 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"<<std::endl;
+      sout<<pilot->Arg(i-1)<<" : not a SelectDeduct, no more can be added. Abandon"<<'\n';
       return IFSelect_RetError;
     }
   }
@@ -767,7 +767,7 @@ static IFSelect_ReturnStatus fun22
   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"<<std::endl;
+      <<" a : all data    g : graph+check  c : check  p : selectpointed"<<'\n';
     return (mode < 0 ? IFSelect_RetError : IFSelect_RetVoid);
   }
   WS->ClearData (mode);
@@ -782,7 +782,7 @@ static IFSelect_ReturnStatus fun24
 //        ****    Item Label         ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   TCollection_AsciiString label;
-  if (argc < 2) { sout<<" Give  label to search"<<std::endl;  return IFSelect_RetError;  }
+  if (argc < 2) { sout<<" Give  label to search"<<'\n';  return IFSelect_RetError;  }
   for (int i = 1; i < argc; i ++) {
     label.AssignCat(pilot->Arg(i));
     if (i < argc-1) label.AssignCat(" ");
@@ -790,14 +790,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" << std::endl;
-    if (mode == 1) sout <<" same head" << std::endl;
-    if (mode == 2) sout <<" search if present" << std::endl;
+    if (mode == 0) sout <<" exact" << '\n';
+    if (mode == 1) sout <<" same head" << '\n';
+    if (mode == 2) sout <<" search if present" << '\n';
     for (id = WS->NextIdentForLabel(label.ToCString(), 0,mode)  ; id != 0;
         id = WS->NextIdentForLabel(label.ToCString(),id,mode)) {
       sout<<" "<<id;  nbitems ++;
     }
-    sout<<" -- giving " << nbitems << " found" << std::endl;
+    sout<<" -- giving " << nbitems << " found" << '\n';
   }
   return IFSelect_RetVoid;
 }
@@ -810,7 +810,7 @@ static IFSelect_ReturnStatus fun25
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Save (Dump)       ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Donner nom du Fichier"<<std::endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner nom du Fichier"<<'\n'; return IFSelect_RetError; }
   IFSelect_SessionFile dumper(WS,arg1);
   if (!dumper.IsDone()) return IFSelect_RetFail;
   return IFSelect_RetDone;
@@ -824,12 +824,12 @@ static IFSelect_ReturnStatus fun26
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Restore (Dump)    ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Donner nom du Fichier"<<std::endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner nom du Fichier"<<'\n'; 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<<std::endl;
-  else                    sout << "-- Pas pu ouvrir Fichier "<<arg1<<std::endl;
+  else if (readstat >  0) sout << "-- Erreur Lecture Fichier "<<arg1<<'\n';
+  else                    sout << "-- Pas pu ouvrir Fichier "<<arg1<<'\n';
   return IFSelect_RetDone;
 }
 
@@ -865,28 +865,28 @@ static IFSelect_ReturnStatus fun27
     {
       aPatternNb = nb;
     }
-    sout << " List of parameters : " << aPatternNb << " items : " << std::endl;
+    sout << " List of parameters : " << aPatternNb << " items : " << '\n';
     for (i = 1; i <= nb; i ++) {
       if (argc == 3 && strncmp(li->Value(i)->String().ToCString(), arg2, aPatternLen) != 0)
       {
         continue;
       }
       sout<<li->Value(i)->String();
-      sout<<" : "<<Interface_Static::CVal(li->Value(i)->ToCString())<<std::endl;
+      sout<<" : "<<Interface_Static::CVal(li->Value(i)->ToCString())<<'\n';
     }
     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<<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;
+    if (argc > 2) sout<<"     FORMER STATUS of Static Parameter "<<arg1<<'\n';
+    else          sout<<"     ACTUAL STATUS of Static Parameter "<<arg1<<'\n';
+    if (!Interface_Static::IsPresent(arg1)) { sout<<" Parameter "<<arg1<<" undefined"<<'\n'; return IFSelect_RetError; }
+    if (!Interface_Static::IsSet(arg1)) sout<<" Parameter "<<arg1<<" not valued"<<'\n';
     else if (argc == 2) Interface_Static::Static (arg1) -> Print (sout);
-    else sout<<" Value : "<<Interface_Static::CVal(arg1)<<std::endl;
+    else sout<<" Value : "<<Interface_Static::CVal(arg1)<<'\n';
 
-    if (argc == 2) sout<<"To modify, param name_param new_val"<<std::endl;
+    if (argc == 2) sout<<"To modify, param name_param new_val"<<'\n';
     else {
       if (strlen(arg2) != 0)
       {
@@ -897,8 +897,8 @@ static IFSelect_ReturnStatus fun27
         sout<<" New demanded value : not valued";
       }
       if (Interface_Static::SetCVal (arg1,arg2))
-       {  sout<<"   OK"<<std::endl;  return IFSelect_RetDone;  }
-      else  {  sout <<" , refused"<<std::endl;  return IFSelect_RetError;  }
+       {  sout<<"   OK"<<'\n';  return IFSelect_RetDone;  }
+      else  {  sout <<" , refused"<<'\n';  return IFSelect_RetError;  }
     }
   }
   return IFSelect_RetVoid;
@@ -912,11 +912,11 @@ static IFSelect_ReturnStatus fun29
   Handle(TColStd_HSequenceOfHAsciiString) list = WS->SentFiles();
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (list.IsNull())
-    { sout<<"List of Sent Files not enabled"<<std::endl; return IFSelect_RetVoid; }
+    { sout<<"List of Sent Files not enabled"<<'\n'; return IFSelect_RetVoid; }
   Standard_Integer i, nb = list->Length();
-  sout<<"  Sent Files : "<<nb<<" : "<<std::endl;
+  sout<<"  Sent Files : "<<nb<<" : "<<'\n';
   for (i = 1; i <= nb; i ++)
-    sout<<list->Value(i)->ToCString()<<std::endl
+    sout<<list->Value(i)->ToCString()<<'\n'
   return IFSelect_RetVoid;
 }
 
@@ -929,9 +929,9 @@ static IFSelect_ReturnStatus fun30
 //        ****    FilePrefix        ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) {
-    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;
+    if (WS->FilePrefix().IsNull()) sout<<"Pas de prefixe defini"<<'\n';
+    else sout<<"Prefixe : "<<WS->FilePrefix()->ToCString()<<'\n';
+    sout<<"Pour changer :  filepref newprefix"<<'\n';
     return IFSelect_RetVoid;
   }
   WS->SetFilePrefix(arg1);
@@ -947,9 +947,9 @@ static IFSelect_ReturnStatus fun31
 //        ****    FileExtension     ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) {
-    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;
+    if (WS->FileExtension().IsNull()) sout<<"Pas d extension definie"<<'\n';
+    else sout<<"Extension : "<<WS->FileExtension()->ToCString()<<'\n';
+    sout<<"Pour changer :  fileext newext"<<'\n';
     return IFSelect_RetVoid;
   }
   WS->SetFileExtension(arg1);
@@ -965,12 +965,12 @@ static IFSelect_ReturnStatus fun32
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    FileRoot          ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Donner Dispatch et nom de Root"<<std::endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner Dispatch et nom de Root"<<'\n'; 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<<std::endl;
-    else sout<<"Racine pour "<<arg1<<" : "<<WS->FileRoot(disp)->ToCString()<<std::endl;
-    sout<<"Pour changer :  fileroot nomdisp newroot"<<std::endl;
+    if (WS->FileRoot(disp).IsNull()) sout<<"Pas de racine definie pour "<<arg1<<'\n';
+    else sout<<"Racine pour "<<arg1<<" : "<<WS->FileRoot(disp)->ToCString()<<'\n';
+    sout<<"Pour changer :  fileroot nomdisp newroot"<<'\n';
     return IFSelect_RetVoid;
   }
   if (!WS->SetFileRoot(disp,arg2)) return IFSelect_RetFail;
@@ -986,9 +986,9 @@ static IFSelect_ReturnStatus fun33
 //        ****    Default File Root     ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) {
-    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;
+    if (WS->DefaultFileRoot().IsNull()) sout<<"Pas de racine par defaut definie"<<'\n';
+    else sout<<"Racine par defaut : "<<WS->DefaultFileRoot()->ToCString()<<'\n';
+    sout<<"Pour changer :  filedef newdef"<<'\n';
     return IFSelect_RetVoid;
   }
   WS->SetDefaultFileRoot(arg1);
@@ -1002,18 +1002,18 @@ static IFSelect_ReturnStatus fun34
 //        ****    EvalFile          ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (!WS->HasModel()) 
-    {  sout<<"Pas de Modele charge, abandon"<<std::endl;  return IFSelect_RetFail; }
+    {  sout<<"Pas de Modele charge, abandon"<<'\n';  return IFSelect_RetFail; }
 
-  sout<<"Evaluation avec Memorisation des resultats"<<std::endl;
+  sout<<"Evaluation avec Memorisation des resultats"<<'\n';
   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 ..."<<std::endl; continue;  }
+      {  sout<<"Modele "<<i<<" Model non genere ..."<<'\n'; continue;  }
     TCollection_AsciiString name = WS->FileName(i);
     sout<<"Fichier n0 "<<i<<" Nb Entites : "<<mod->NbEntities()<<"  Nom: ";
-    sout<<name<<std::endl;
+    sout<<name<<'\n';
   }
   return IFSelect_RetDone;
 }
@@ -1034,13 +1034,13 @@ static IFSelect_ReturnStatus fun36
 //        ****    Split              ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   IFSelect_ReturnStatus stat = IFSelect_RetVoid;
-  if (argc < 2) sout<<"Split : derniere liste de dispatches definie"<<std::endl;
+  if (argc < 2) sout<<"Split : derniere liste de dispatches definie"<<'\n';
   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"<<std::endl;
+       sout<<"Pas un dispatch:"<<pilot->Arg(i)<<", Splitt abandonne"<<'\n';
        stat = IFSelect_RetError;
       }
       else WS->SetActive(disp,Standard_True);
@@ -1068,7 +1068,7 @@ static IFSelect_ReturnStatus fun37
   else {
     Message_Messenger::StreamBuffer sout = Message::SendInfo();
     if (argc<2) sout<<"Donner un Mode - ";
-    sout<<"Modes possibles : l  list, c compute, u undo, f forget"<<std::endl;
+    sout<<"Modes possibles : l  list, c compute, u undo, f forget"<<'\n';
     if (mode == '?') return IFSelect_RetDone;   else return IFSelect_RetError;
   }
   if (!WS->SetRemaining(numod)) return IFSelect_RetVoid;
@@ -1084,17 +1084,17 @@ static IFSelect_ReturnStatus fun38
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SetModelContent    ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 3) { sout<<"Donner nom selection et mode (k=keep,r=remove)"<<std::endl;  return IFSelect_RetError; }
+  if (argc < 3) { sout<<"Donner nom selection et mode (k=keep,r=remove)"<<'\n';  return IFSelect_RetError; }
   Standard_Boolean keepmode;
   DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
   if (sel.IsNull())
-    { sout<<"Pas de Selection de Nom : "<<arg1<<std::endl; return IFSelect_RetError; }
+    { sout<<"Pas de Selection de Nom : "<<arg1<<'\n'; 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)"<<std::endl;  return IFSelect_RetError; }
+  else { sout<<"Donner nom selection et mode (k=keep,r=remove)"<<'\n';  return IFSelect_RetError; }
   
-  if (WS->SetModelContent(sel,keepmode)) sout<<" Done"<<std::endl;
-  else sout<<" Result empty, ignored"<<std::endl;
+  if (WS->SetModelContent(sel,keepmode)) sout<<" Done"<<'\n';
+  else sout<<" Result empty, ignored"<<'\n';
   return IFSelect_RetDone;
 }
 
@@ -1115,29 +1115,29 @@ static IFSelect_ReturnStatus fun41
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Modifier           ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Donner Nom du Modifier"<<std::endl;  return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner Nom du Modifier"<<'\n';  return IFSelect_RetError; }
   DeclareAndCast(IFSelect_GeneralModifier,modif,WS->NamedItem(arg1));
   if (modif.IsNull())
-    { sout<<"Pas de Modifier de Nom : "<<arg1<<std::endl; return IFSelect_RetVoid; }
+    { sout<<"Pas de Modifier de Nom : "<<arg1<<'\n'; return IFSelect_RetVoid; }
   Handle(IFSelect_IntParam) low,up;
 
   Handle(IFSelect_Dispatch) disp = modif->Dispatch();
-  sout<<"Modifier : "<<arg1<<" Label : "<<modif->Label()<<std::endl;
+  sout<<"Modifier : "<<arg1<<" Label : "<<modif->Label()<<'\n';
   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" << std::endl;
+  if (disp.IsNull()) sout<<"  Applique a tous les Dispatchs" << '\n';
   else {
     sout << "  Dispatch : "<<disp->Label();
     if (WS->HasName(disp)) sout << " - Nom:"<<WS->Name(disp)->ToCString();
-    sout<<std::endl;
+    sout<<'\n';
   }
 
   Handle(IFSelect_Selection) sel = modif->Selection();
   if (!sel.IsNull()) sout<<"  Selection : "<< sel->Label();
   if (WS->HasName(sel)) sout<<" - Nom:"<< WS->Name(sel)->ToCString();
-  sout<<std::endl;
+  sout<<'\n';
   return IFSelect_RetVoid;
 }
 
@@ -1151,15 +1151,15 @@ static IFSelect_ReturnStatus fun42
 //        ****    ModifSel           ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) { sout<<"Donner Nom Modifier; + Nom Selection optionnel\n"
-                     <<"Selection pour Mettre une Selection, sinon Annule"<<std::endl; return IFSelect_RetError; }
+                     <<"Selection pour Mettre une Selection, sinon Annule"<<'\n'; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_GeneralModifier,modif,WS->NamedItem(arg1));
   if (modif.IsNull())
-    { sout<<"Pas un nom de Modifier : "<<arg1<<std::endl; return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Modifier : "<<arg1<<'\n'; 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<<std::endl;  return IFSelect_RetError;  }
+      { sout<<"Pas un nom de Selection : "<<arg2<<'\n';  return IFSelect_RetError;  }
   }
   if (!WS->SetItemSelection(modif,sel)) return IFSelect_RetFail;
   return IFSelect_RetDone;
@@ -1176,16 +1176,16 @@ static IFSelect_ReturnStatus fun43
   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"<<std::endl;
+                     <<" - Transformer : pas un Dispatch mais un Transformer"<<'\n';
                  return IFSelect_RetError;  }
   DeclareAndCast(IFSelect_GeneralModifier,modif,WS->NamedItem(arg1));
   if (modif.IsNull())
-    { sout<<"Pas un nom de Modifier : "<<arg1<<std::endl;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Modifier : "<<arg1<<'\n';  return IFSelect_RetError;  }
   Handle(Standard_Transient) item;
   if (arg2[0] != '\0') {
     item = WS->NamedItem(arg2);
     if (item.IsNull())
-      { sout<<"Pas un nom connu : "<<arg2<<std::endl;  return IFSelect_RetError;  }
+      { sout<<"Pas un nom connu : "<<arg2<<'\n';  return IFSelect_RetError;  }
   }
   else item = WS->ShareOut();
   if (!WS->SetAppliedModifier(modif,item)) return IFSelect_RetFail;
@@ -1200,10 +1200,10 @@ static IFSelect_ReturnStatus fun44
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    ResetApplied (modifier)    ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Designer un modifier"<<std::endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Designer un modifier"<<'\n'; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_GeneralModifier,modif,WS->NamedItem(arg1));
   if (modif.IsNull())
-    { sout<<"Pas un nom de Modifier : "<<arg1<<std::endl;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Modifier : "<<arg1<<'\n';  return IFSelect_RetError;  }
   if (!WS->ResetAppliedModifier(modif)) return IFSelect_RetFail;
   return IFSelect_RetDone;
 }
@@ -1218,14 +1218,14 @@ static IFSelect_ReturnStatus fun45
   const Standard_CString arg3 = pilot->Arg(3);
 //        ****    ModifMove         ****
   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; }
+  if (argc < 4) { sout<<"modifmove MF rang1 rang2, M pour Model F pour File"<<'\n'; 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"<<std::endl; return IFSelect_RetError; }
+  else { sout<<"preciser M pour Model, F pour File"<<'\n'; return IFSelect_RetError; }
   Standard_Integer before = atoi(arg2);
   Standard_Integer after  = atoi(arg3);
-  if (before == 0 || after == 0) { sout<<"Donner 2 Entiers Positifs"<<std::endl; return IFSelect_RetError; }
+  if (before == 0 || after == 0) { sout<<"Donner 2 Entiers Positifs"<<'\n'; return IFSelect_RetError; }
   if (!WS->ChangeModifierRank(formodel,before,after)) return IFSelect_RetFail;
   return IFSelect_RetDone;
 }
@@ -1239,13 +1239,13 @@ static IFSelect_ReturnStatus fun51
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    DispSel           ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 3) { sout<<"Donner Noms Dispatch et Selection Finale"<<std::endl; return IFSelect_RetError; }
+  if (argc < 3) { sout<<"Donner Noms Dispatch et Selection Finale"<<'\n'; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(arg1));
   if (disp.IsNull())
-    { sout<<"Pas un nom de Dispatch : "<<arg1<<std::endl;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Dispatch : "<<arg1<<'\n';  return IFSelect_RetError;  }
   DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg2));
   if (sel.IsNull())
-    { sout<<"Pas un nom de Selection : "<<arg2<<std::endl;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Selection : "<<arg2<<'\n';  return IFSelect_RetError;  }
   if (!WS->SetItemSelection(disp,sel)) return IFSelect_RetFail;
   return IFSelect_RetDone;
 }
@@ -1276,10 +1276,10 @@ static IFSelect_ReturnStatus fun_dispcount
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    DispCount         ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Donner Nom IntParam pour Count"<<std::endl;  return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner Nom IntParam pour Count"<<'\n';  return IFSelect_RetError; }
   DeclareAndCast(IFSelect_IntParam,par,WS->NamedItem(arg1));
   if (par.IsNull())
-    { sout<<"Pas un nom de IntParam : "<<arg1<<std::endl;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de IntParam : "<<arg1<<'\n';  return IFSelect_RetError;  }
   Handle(IFSelect_DispPerCount) disp = new IFSelect_DispPerCount;
   disp->SetCount (par);
   return pilot->RecordItem(disp);
@@ -1293,10 +1293,10 @@ static IFSelect_ReturnStatus fun_dispfiles
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    DispFiles         ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Donner Nom IntParam pour NbFiles"<<std::endl;  return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner Nom IntParam pour NbFiles"<<'\n';  return IFSelect_RetError; }
   DeclareAndCast(IFSelect_IntParam,par,WS->NamedItem(arg1));
   if (par.IsNull())
-    { sout<<"Pas un nom de IntParam : "<<arg1<<std::endl;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de IntParam : "<<arg1<<'\n';  return IFSelect_RetError;  }
   Handle(IFSelect_DispPerFiles) disp = new IFSelect_DispPerFiles;
   disp->SetCount (par);
   return pilot->RecordItem(disp);
@@ -1311,10 +1311,10 @@ static IFSelect_ReturnStatus fun_dispsign
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    DispFiles         ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Donner Nom Signature"<<std::endl;  return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner Nom Signature"<<'\n';  return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Signature,sig,WS->NamedItem(arg1));
   if (sig.IsNull())
-    { sout<<"Pas un nom de Signature : "<<arg1<<std::endl;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Signature : "<<arg1<<'\n';  return IFSelect_RetError;  }
   Handle(IFSelect_DispPerSignature) disp = new IFSelect_DispPerSignature;
   disp->SetSignCounter (new IFSelect_SignCounter(sig));
   return pilot->RecordItem(disp);
@@ -1329,18 +1329,18 @@ static IFSelect_ReturnStatus fun56
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Dispatch           ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Donner Nom du Dispatch"<<std::endl;  return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner Nom du Dispatch"<<'\n';  return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(arg1));
-  if (disp.IsNull()) { sout<<"Pas un dispatch : "<<arg1<<std::endl; return IFSelect_RetError;  }
+  if (disp.IsNull()) { sout<<"Pas un dispatch : "<<arg1<<'\n'; 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"<<std::endl;
-  else if (selname.IsNull()) sout<<"Selection Finale : #"<<WS->ItemIdent(sel)<<std::endl;
-  else sout<<"Selection Finale : "<<selname->ToCString()<<std::endl;
+  if (sel.IsNull())  sout<<"Pas de Selection Finale"<<'\n';
+  else if (selname.IsNull()) sout<<"Selection Finale : #"<<WS->ItemIdent(sel)<<'\n';
+  else sout<<"Selection Finale : "<<selname->ToCString()<<'\n';
   if (disp->HasRootName()) sout<<"-- Racine nom de fichier : "
-    <<disp->RootName()->ToCString()<<std::endl;
+    <<disp->RootName()->ToCString()<<'\n';
   return IFSelect_RetVoid;
 }
 
@@ -1352,7 +1352,7 @@ static IFSelect_ReturnStatus fun57
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Remove           ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Give Name to Remove !"<<std::endl;  return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Give Name to Remove !"<<'\n';  return IFSelect_RetError; }
   if (!WS->RemoveNamedItem(arg1)) return IFSelect_RetFail;
   return IFSelect_RetDone;
 }
@@ -1366,18 +1366,18 @@ static IFSelect_ReturnStatus fun58
 //        ****    EvalDisp          ****
   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"<<std::endl
-                   <<"See also : evaladisp  writedisp  xsplit"<<std::endl;
+                   <<"  0 brief  1 +forgotten ents  2 +duplicata  3 1+2"<<'\n'
+                   <<"See also : evaladisp  writedisp  xsplit"<<'\n';
                  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)<<std::endl; OK = Standard_False; }
+      { sout<<"Not a dispatch:"<<pilot->Arg(i)<<'\n'; OK = Standard_False; }
   }
   if (!OK) {
-    sout<<"Some of the parameters are not correct"<<std::endl;
+    sout<<"Some of the parameters are not correct"<<'\n';
     return IFSelect_RetError;
   }
 
@@ -1401,15 +1401,15 @@ static IFSelect_ReturnStatus fun_evaladisp
 //        ****    EvalADisp [GiveList]         ****
   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"<<std::endl
-                   <<"See also : writedisp"<<std::endl;
+                   <<"  0 brief  1 +forgotten ents  2 +duplicata  3 1+2"<<'\n'
+                   <<"See also : writedisp"<<'\n';
                  return IFSelect_RetVoid;  }
-  if (arg1[1] != '\0') { sout<<"first parameter : mode, must be a number between 0 and 3"<<std::endl; return IFSelect_RetError; }
+  if (arg1[1] != '\0') { sout<<"first parameter : mode, must be a number between 0 and 3"<<'\n'; 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)<<std::endl; return IFSelect_RetError; }
+    { sout<<"Not a dispatch:"<<pilot->Arg(2)<<'\n'; return IFSelect_RetError; }
   Handle(IFSelect_Selection) selsav = disp->FinalSelection();
   Handle(IFSelect_Selection) sel;
   if (argc > 3) {
@@ -1421,9 +1421,9 @@ static IFSelect_ReturnStatus fun_evaladisp
   }
 
   if (sel.IsNull() && selsav.IsNull())
-    { sout<<"No Selection nor GiveList defined"<<std::endl; return IFSelect_RetError; }
+    { sout<<"No Selection nor GiveList defined"<<'\n'; return IFSelect_RetError; }
   if (sel.IsNull() && !selsav.IsNull()) {
-    if (argc > 3) sout<<"GiveList is empty, hence computed from the Selection of the Dispatch"<<std::endl;
+    if (argc > 3) sout<<"GiveList is empty, hence computed from the Selection of the Dispatch"<<'\n';
     sel = selsav;
   }
   disp->SetFinalSelection(sel);
@@ -1446,19 +1446,19 @@ static IFSelect_ReturnStatus fun_writedisp
   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"<<std::endl;
+                   <<"See also : evaladisp"<<'\n';
                  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"<<std::endl;
+    sout<<"Empty Root Name or Extension"<<'\n';
     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)<<std::endl; return IFSelect_RetError; }
+    { sout<<"Not a dispatch:"<<pilot->Arg(2)<<'\n'; return IFSelect_RetError; }
   Handle(IFSelect_Selection) selsav = disp->FinalSelection();
   Handle(IFSelect_Selection) sel;
   if (argc > 3) {
@@ -1470,9 +1470,9 @@ static IFSelect_ReturnStatus fun_writedisp
   }
 
   if (sel.IsNull() && selsav.IsNull())
-    { sout<<"No Selection nor GiveList defined"<<std::endl; return IFSelect_RetError; }
+    { sout<<"No Selection nor GiveList defined"<<'\n'; return IFSelect_RetError; }
   if (sel.IsNull() && !selsav.IsNull()) {
-    if (argc > 3) sout<<"GiveList is empty, hence computed from the Selection of the Dispatch"<<std::endl;
+    if (argc > 3) sout<<"GiveList is empty, hence computed from the Selection of the Dispatch"<<'\n';
     sel = selsav;
   }
 
@@ -1501,7 +1501,7 @@ static IFSelect_ReturnStatus fun59
   Standard_Integer mode = 0;
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) sout << " -- mode par defaut 0\n";
-  else { mode = atoi(arg1); sout << " -- mode : " << mode << std::endl;  }
+  else { mode = atoi(arg1); sout << " -- mode : " << mode << '\n';  }
   WS->EvaluateComplete(mode);  return IFSelect_RetVoid;
 }
 
@@ -1526,23 +1526,23 @@ static IFSelect_ReturnStatus fun61
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    RunTransformer    ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Donner Nom de Transformer"<<std::endl; return IFSelect_RetError;  }
+  if (argc < 2) { sout<<"Donner Nom de Transformer"<<'\n'; 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"<<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 -4 : sout<<"Edition sur place, nouveau Protocole, erreur recalcul graphe"<<'\n'; break;
+    case -3 : sout<<"Erreur, Transformation ignoree"<<'\n'; break;
+    case -2 : sout<<"Erreur sur edition sur place, risque de corruption (verifier)"<<'\n'; break;
+    case -1 : sout<<"Erreur sur edition locale, risque de corruption (verifier)"<<'\n'; break;
     case  0 :
-      if   (tsf.IsNull()) sout<<"Erreur, pas un Transformer: "<<arg1<<std::endl;
-      else sout<<"Execution non faite"<<std::endl;
+      if   (tsf.IsNull()) sout<<"Erreur, pas un Transformer: "<<arg1<<'\n';
+      else sout<<"Execution non faite"<<'\n';
              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;
+    case  1 : sout<<"Transformation locale (graphe non touche)"<<'\n'; break;
+    case  2 : sout<<"Edition sur place (graphe recalcule)"<<'\n';  break;
+    case  3 : sout<<"Modele reconstruit"<<'\n'; break;
+    case  4 : sout<<"Edition sur place, nouveau Protocole"<<'\n';  break;
+    case  5 : sout<<"Nouveau Modele avec nouveau Protocole"<<'\n'; break;
     default : break;
   }
   return ((effect > 0) ? IFSelect_RetDone : IFSelect_RetFail);
@@ -1584,7 +1584,7 @@ static IFSelect_ReturnStatus fun6465
   }
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (modif.IsNull())
-    { sout<<"Pas un nom de Modifier : "<<arg1<<std::endl;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Modifier : "<<arg1<<'\n';  return IFSelect_RetError;  }
 
   Handle(TColStd_HSequenceOfTransient) list;
   Handle(IFSelect_SelectPointed) sp;
@@ -1598,19 +1598,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"<<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 -4 : sout<<"Edition sur place, nouveau Protocole, erreur recalcul graphe"<<'\n'; break;
+    case -3 : sout<<"Erreur, Transformation ignoree"<<'\n'; break;
+    case -2 : sout<<"Erreur sur edition sur place, risque de corruption (verifier)"<<'\n'; break;
+    case -1 : sout<<"Erreur sur edition locale, risque de corruption (verifier)"<<'\n'; break;
     case  0 :
-      if   (modif.IsNull()) sout<<"Erreur, pas un Modifier: "<<arg1<<std::endl;
-      else sout<<"Execution non faite"<<std::endl;
+      if   (modif.IsNull()) sout<<"Erreur, pas un Modifier: "<<arg1<<'\n';
+      else sout<<"Execution non faite"<<'\n';
              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;
+    case  1 : sout<<"Transformation locale (graphe non touche)"<<'\n'; break;
+    case  2 : sout<<"Edition sur place (graphe recalcule)"<<'\n';  break;
+    case  3 : sout<<"Modele reconstruit"<<'\n'; break;
+    case  4 : sout<<"Edition sur place, nouveau Protocole"<<'\n';  break;
+    case  5 : sout<<"Nouveau Modele avec nouveau Protocole"<<'\n'; break;
     default : break;
   }
   return ((effect > 0) ? IFSelect_RetDone : IFSelect_RetFail);
@@ -1625,7 +1625,7 @@ static IFSelect_ReturnStatus fun66
   if (argc >= 2) opt = pilot->Word(1).Value(1);
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (opt != 'f' && opt != 'l')
-    { sout<<"Donner option : f -> root-first  l -> root-last"<<std::endl; return IFSelect_RetError; }
+    { sout<<"Donner option : f -> root-first  l -> root-last"<<'\n'; return IFSelect_RetError; }
   return pilot->RecordItem(new IFSelect_ModifReorder(opt == 'l'));
 }
 
@@ -1637,12 +1637,12 @@ static IFSelect_ReturnStatus fun70
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    SelToggle         ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Donner Nom de Selection"<<std::endl; return IFSelect_RetError;  }
+  if (argc < 2) { sout<<"Donner Nom de Selection"<<'\n'; return IFSelect_RetError;  }
   DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
   if (!WS->ToggleSelectExtract(sel))
-    { 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;
+    { sout<<"Pas une SelectExtract : "<<arg1<<'\n'; return IFSelect_RetFail;  }
+  if (WS->IsReversedSelectExtract(sel)) sout<<arg1<<" a present Reversed"<<'\n';
+  else sout<<arg1<<" a present Directe"<<'\n';
   return IFSelect_RetDone;
 }
 
@@ -1655,13 +1655,13 @@ static IFSelect_ReturnStatus fun71
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SelInput          ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 3) { sout<<"Donner Noms Selections cible et input"<<std::endl; return IFSelect_RetError; }
+  if (argc < 3) { sout<<"Donner Noms Selections cible et input"<<'\n'; 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<<std::endl;  return IFSelect_RetError;  }
+    {  sout<<"Incorrect : "<<arg1<<","<<arg2<<'\n';  return IFSelect_RetError;  }
   if (!WS->SetInputSelection(sel,sou)) { 
-    sout<<"Nom incorrect ou Selection "<<arg1<<" ni Extract ni Deduct"<<std::endl;
+    sout<<"Nom incorrect ou Selection "<<arg1<<" ni Extract ni Deduct"<<'\n';
     return IFSelect_RetFail;
   }
   return IFSelect_RetDone;
@@ -1689,7 +1689,7 @@ static IFSelect_ReturnStatus fun73
     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>"<<std::endl;
+      <<"  until <n2> : Range Until <n2>"<<'\n';
     return IFSelect_RetVoid;
   }
 
@@ -1697,13 +1697,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>"<<std::endl; return IFSelect_RetError; }
+    if (argc < 3) { sout<<"Forme admise : from <i>"<<'\n'; 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>"<<std::endl; return IFSelect_RetError; }
+    if (argc < 3) { sout<<"Forme admise : until <i>"<<'\n'; return IFSelect_RetError; }
     up  = GetCasted(IFSelect_IntParam,WS->NamedItem(arg2));
     sel = new IFSelect_SelectRange;
     sel->SetUntil (up);
@@ -1749,15 +1749,15 @@ static IFSelect_ReturnStatus fun76
   Handle(IFSelect_Selection) sel = new IFSelect_SelectDiff;
   if (sel.IsNull()) return IFSelect_RetFail;
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 3) sout<<"Diff sans input : ne pas oublier de les definir (ctlmain, ctlsec)!"<<std::endl;
+  if (argc < 3) sout<<"Diff sans input : ne pas oublier de les definir (ctlmain, ctlsec)!"<<'\n';
   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)"<<std::endl;
+      sout<<"Echec ControlMain:"<<arg1<<" , a refaire (ctlmain)"<<'\n';
   if (argc >= 3)
     if (!WS->SetControl(sel,selsec,Standard_False))
-      sout<<"Echec ControlSecond:"<<arg2<<" , a refaire (ctlsec)"<<std::endl;
+      sout<<"Echec ControlSecond:"<<arg2<<" , a refaire (ctlsec)"<<'\n';
   return pilot->RecordItem (sel);
 }
 
@@ -1770,11 +1770,11 @@ static IFSelect_ReturnStatus fun77
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SelControlMain       ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 3) { sout<<"Donner Noms de Control et MainInput"<<std::endl; return IFSelect_RetError; }
+  if (argc < 3) { sout<<"Donner Noms de Control et MainInput"<<'\n'; 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"<<std::endl;
+  sout<<"Nom incorrect ou Selection "<<arg1<<" pas de type Control"<<'\n';
   return IFSelect_RetFail;
 }
 
@@ -1787,11 +1787,11 @@ static IFSelect_ReturnStatus fun78
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SelControlSecond       ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 3) { sout<<"Donner Noms de Control et SecondInput"<<std::endl; return IFSelect_RetError; }
+  if (argc < 3) { sout<<"Donner Noms de Control et SecondInput"<<'\n'; 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"<<std::endl;
+  sout<<"Nom incorrect ou Selection "<<arg1<<" pas de type Control"<<'\n';
   return IFSelect_RetFail;
 }
 
@@ -1812,11 +1812,11 @@ static IFSelect_ReturnStatus fun80
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SelCombAdd        ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 3) { sout<<"Donner n0 Combine et une Input"<<std::endl; return IFSelect_RetError; }
+  if (argc < 3) { sout<<"Donner n0 Combine et une Input"<<'\n'; 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"<<std::endl;
+  sout<<"Nom incorrect ou Selection "<<arg1<<" pas Combine"<<'\n';
   return IFSelect_RetFail;
 }
 
@@ -1829,11 +1829,11 @@ static IFSelect_ReturnStatus fun81
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SelCombRem        ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 3) { sout<<"Donner n0 Combine et RANG a supprimer"<<std::endl; return IFSelect_RetError; }
+  if (argc < 3) { sout<<"Donner n0 Combine et RANG a supprimer"<<'\n'; 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"<<std::endl;
+  sout<<"Nom incorrect ou Selection "<<arg1<<" ni Union ni Intersection"<<'\n';
   return IFSelect_RetFail;
 }
 
@@ -1845,7 +1845,7 @@ static IFSelect_ReturnStatus fun82
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    SelEntNumber      ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Donner Nom IntParam pour n0 Entite"<<std::endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner Nom IntParam pour n0 Entite"<<'\n'; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_IntParam,par,WS->NamedItem(arg1));
   Handle(IFSelect_SelectEntityNumber) sel = new IFSelect_SelectEntityNumber;
   sel->SetNumber(par);
@@ -1875,7 +1875,7 @@ static IFSelect_ReturnStatus fun85
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    SelTextType Exact ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Donner le TYPE a selectionner"<<std::endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner le TYPE a selectionner"<<'\n'; return IFSelect_RetError; }
   return pilot->RecordItem (new IFSelect_SelectSignature
                            (new IFSelect_SignType,arg1,Standard_True));
 }
@@ -1908,7 +1908,7 @@ static IFSelect_ReturnStatus fun89
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    SelTextType Contain **
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Donner le TYPE a selectionner"<<std::endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner le TYPE a selectionner"<<'\n'; return IFSelect_RetError; }
   return pilot->RecordItem (new IFSelect_SelectSignature
                            (new IFSelect_SignType,arg1,Standard_False));
 }
@@ -1923,7 +1923,7 @@ static IFSelect_ReturnStatus fun90
     (pilot->Session(),pilot->CommandPart(1));
     if (list.IsNull()) return IFSelect_RetFail;
     Message_Messenger::StreamBuffer sout = Message::SendInfo();
-    sout<<"SelectPointed : "<<list->Length()<<" entities"<<std::endl;
+    sout<<"SelectPointed : "<<list->Length()<<" entities"<<'\n';
     sp->AddList (list);
   }
   return pilot->RecordItem (sp);
@@ -1940,22 +1940,22 @@ static IFSelect_ReturnStatus fun91
   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"<<std::endl;
+       <<" 0: Clear  +nn ajout entite nn  -nn enleve nn  /nn toggle nn"<<'\n';
        return IFSelect_RetError;
   }
   DeclareAndCast(IFSelect_SelectPointed,sp,WS->NamedItem(arg1));
-  if (sp.IsNull()) { sout<<"Pas une SelectPointed:"<<arg1<<std::endl; return IFSelect_RetError; }
+  if (sp.IsNull()) { sout<<"Pas une SelectPointed:"<<arg1<<'\n'; 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 :"<<std::endl;
+    sout<<" SelectPointed : "<<arg1<<" : "<<nb<<" Items :"<<'\n';
     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);  }
     }
-    if (nb > 0) sout<<std::endl;
+    if (nb > 0) sout<<'\n';
     return IFSelect_RetDone;
   }
 
@@ -1963,28 +1963,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<<std::endl;
-      else {  sout<<"Clear SelectPointed"<<std::endl; sp->Clear(); }
+      if (!argi.IsEqual("0")) sout<<"Incorrect,ignore:"<<argi<<'\n';
+      else {  sout<<"Clear SelectPointed"<<'\n'; 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<<": " << std::endl
+      sout<<": " << '\n'
       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<<": " << std::endl
+      sout<<": " << '\n'
       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<<": " << std::endl
+      sout<<": " << '\n'
       model->Print (item, sout);
     } else {
-      sout<<"Ignore:"<<argi<<" , donner n0 PRECEDE de + ou - ou /"<<std::endl;
+      sout<<"Ignore:"<<argi<<" , donner n0 PRECEDE de + ou - ou /"<<'\n';
     }
   }
   return IFSelect_RetDone;
@@ -2008,7 +2008,7 @@ static IFSelect_ReturnStatus fun93
   Handle(IFSelect_WorkSession) WS = pilot->Session();
 //        ****    SelSignature        ****
   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; }
+  if (argc < 3) { sout<<"Give name of Signature or Counter, text + option exact(D) else contains"<<'\n'; return IFSelect_RetError; }
   Standard_Boolean exact = Standard_True;
   if (argc > 3) { if (pilot->Arg(3)[0] == 'c') exact = Standard_False; }
 
@@ -2018,7 +2018,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"<<std::endl; return IFSelect_RetError; }
+  else { sout<<arg1<<":neither Signature nor Counter"<<'\n'; return IFSelect_RetError; }
 
   return pilot->RecordItem(sel);
 }
@@ -2031,9 +2031,9 @@ static IFSelect_ReturnStatus fun94
   Handle(IFSelect_WorkSession) WS = pilot->Session();
 //        ****    SignCounter        ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Donner nom signature"<<std::endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner nom signature"<<'\n'; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Signature,sign,WS->NamedItem(arg1));
-  if (sign.IsNull()) { sout<<arg1<<":pas une signature"<<std::endl; return IFSelect_RetError; }
+  if (sign.IsNull()) { sout<<arg1<<":pas une signature"<<'\n'; return IFSelect_RetError; }
   Handle(IFSelect_SignCounter) cnt = new IFSelect_SignCounter (sign,Standard_True,Standard_True);
   return pilot->RecordItem(cnt);
 }
@@ -2046,9 +2046,9 @@ static IFSelect_ReturnStatus funbselected
   Handle(IFSelect_WorkSession) WS = pilot->Session();
 //        ****    NbSelected = GraphCounter        ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Donner nom selection (deduction) a appliquer"<<std::endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner nom selection (deduction) a appliquer"<<'\n'; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_SelectDeduct,applied,WS->GiveSelection(arg1));
-  if (applied.IsNull()) { sout<<arg1<<":pas une SelectDeduct"<<std::endl; return IFSelect_RetError; }
+  if (applied.IsNull()) { sout<<arg1<<":pas une SelectDeduct"<<'\n'; return IFSelect_RetError; }
   Handle(IFSelect_GraphCounter) cnt = new IFSelect_GraphCounter (Standard_True,Standard_True);
   cnt->SetApplied (applied);
   return pilot->RecordItem(cnt);
@@ -2063,7 +2063,7 @@ static IFSelect_ReturnStatus fun_editlist
 {
   Standard_Integer argc = pilot->NbWords();
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Give the name of an EditForm or an Editor"<<std::endl;
+  if (argc < 2) { sout<<"Give the name of an EditForm or an Editor"<<'\n';
                  return IFSelect_RetError;  }
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
@@ -2074,7 +2074,7 @@ static IFSelect_ReturnStatus fun_editlist
   DeclareAndCast(IFSelect_EditForm,edf,WS->NamedItem(arg1));
   Handle(IFSelect_Editor) edt;
   if (!edf.IsNull()) {
-    sout<<"Print EditForm "<<arg1<<std::endl;
+    sout<<"Print EditForm "<<arg1<<'\n';
     edt = edf->Editor();
     if (argc < 3) {
 
@@ -2083,14 +2083,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()<<std::endl;
-      sout<<std::endl<<" --  Names (short - complete) + Labels of Values"<<std::endl;
+      sout<<"Editor, Label : "<<edt->Label()<<'\n';
+      sout<<'\n'<<" --  Names (short - complete) + Labels of Values"<<'\n';
       edt->PrintNames(sout);
-      sout<<std::endl<<" --  Definitions  --"<<std::endl;
+      sout<<'\n'<<" --  Definitions  --"<<'\n';
       edt->PrintDefs (sout);
       if (!edf.IsNull()) {
        edf->PrintDefs(sout);
-       sout<<std::endl<<"To display values, add an option : o original  f final  m modified"<<std::endl;
+       sout<<'\n'<<"To display values, add an option : o original  f final  m modified"<<'\n';
       }
 
       return IFSelect_RetVoid;
@@ -2113,17 +2113,17 @@ static IFSelect_ReturnStatus fun_editvalue
 {
   Standard_Integer argc = pilot->NbWords();
   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;
+  if (argc < 3) { sout<<"Give the name of an EditForm + name of Value [+ newvalue or . to nullify]"<<'\n';
                  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<<std::endl; return IFSelect_RetError;  }
+    {  sout<<"Not an EditForm : "<<arg1<<'\n'; return IFSelect_RetError;  }
   Standard_Integer num = edf->NameNumber (arg2);
-  if (num == 0) sout<<"Unknown Value Name : "<<arg2<<std::endl;
-  if (num <  0) sout<<"Not Extracted Value Name : "<<arg2<<std::endl;
+  if (num == 0) sout<<"Unknown Value Name : "<<arg2<<'\n';
+  if (num <  0) sout<<"Not Extracted Value Name : "<<arg2<<'\n';
   if (num <= 0) return IFSelect_RetError;
 
   Standard_Boolean islist = edf->Editor()->IsList(num);
@@ -2134,19 +2134,19 @@ static IFSelect_ReturnStatus fun_editvalue
 
   if (islist) {
     listr = edf->EditedList(num);
-    if (listr.IsNull()) sout<<"(NULL LIST)"<<std::endl;
+    if (listr.IsNull()) sout<<"(NULL LIST)"<<'\n';
     else {
       Standard_Integer ilist,nblist = listr->Length();
-      sout<<"(List : "<<nblist<<" Items)"<<std::endl;
+      sout<<"(List : "<<nblist<<" Items)"<<'\n';
       for (ilist = 1; ilist <= nblist; ilist ++) {
        str = listr->Value(ilist);
-       sout<<"  ["<<ilist<<"]  "<< (str.IsNull() ? "(NULL)" : str->ToCString())<<std::endl;
+       sout<<"  ["<<ilist<<"]  "<< (str.IsNull() ? "(NULL)" : str->ToCString())<<'\n';
       }
     }
-    if (argc < 4) sout<<"To Edit, options by editval edit-form value-name ?"<<std::endl;
+    if (argc < 4) sout<<"To Edit, options by editval edit-form value-name ?"<<'\n';
   } else {
     str = edf->EditedValue (num);
-    sout<<(str.IsNull() ? "(NULL)" : str->ToCString())<<std::endl;
+    sout<<(str.IsNull() ? "(NULL)" : str->ToCString())<<'\n';
   }
   if (argc < 4) return IFSelect_RetVoid;
 
@@ -2157,10 +2157,10 @@ static IFSelect_ReturnStatus fun_editvalue
   const Standard_CString argval = pilot->Arg(numarg);
   if (islist) {
     if (argval[0] == '?') {
-      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;
+      sout<<"To Edit, options"<<'\n'<<" + val : add value at end (blanks allowed)"
+       <<'\n'<<" +nn text : insert val before item nn"<<'\n'
+       <<" nn text : replace item nn with a new value"<<'\n'
+       <<" -nn : remove item nn"<<'\n'<<" . : clear the list"<<'\n';
       return IFSelect_RetVoid;
     }
     Standard_Boolean stated = Standard_False;
@@ -2182,15 +2182,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"<<std::endl;
-    else sout<<"List Edition not done, option"<<argval<<std::endl;
+    if (stated) sout<<"List Edition done"<<'\n';
+    else sout<<"List Edition not done, option"<<argval<<'\n';
   } 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())<<std::endl;
+      sout<<"Now set to "<<(str.IsNull() ? "(NULL)" : str->ToCString())<<'\n';
     } else {
-      sout<<"Modify not done"<<std::endl;  return IFSelect_RetFail;
+      sout<<"Modify not done"<<'\n';  return IFSelect_RetFail;
     }
   }
   return IFSelect_RetDone;
@@ -2201,24 +2201,24 @@ static IFSelect_ReturnStatus fun_editclear
 {
   Standard_Integer argc = pilot->NbWords();
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Give the name of an EditForm [+ name of Value  else all]"<<std::endl;
+  if (argc < 2) { sout<<"Give the name of an EditForm [+ name of Value  else all]"<<'\n';
                  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<<std::endl; return IFSelect_RetError;  }
-  if (argc < 3) { edf->ClearEdit(); sout<<"All Modifications Cleared"<<std::endl; }
+    {  sout<<"Not an EditForm : "<<arg1<<'\n'; return IFSelect_RetError;  }
+  if (argc < 3) { edf->ClearEdit(); sout<<"All Modifications Cleared"<<'\n'; }
   else {
     Standard_Integer num = edf->NameNumber (arg2);
-    if (num == 0) sout<<"Unknown Value Name : "<<arg2<<std::endl;
-    if (num <  0) sout<<"Not Extracted Value Name : "<<arg2<<std::endl;
+    if (num == 0) sout<<"Unknown Value Name : "<<arg2<<'\n';
+    if (num <  0) sout<<"Not Extracted Value Name : "<<arg2<<'\n';
     if (num <= 0) return IFSelect_RetError;
     if (!edf->IsModified(num))
-      { sout<<"Value "<<arg2<<" was not modified"<<std::endl; return IFSelect_RetVoid; }
+      { sout<<"Value "<<arg2<<" was not modified"<<'\n'; return IFSelect_RetVoid; }
     edf->ClearEdit (num);
-    sout<<"Modification on Value "<<arg2<<" Cleared"<<std::endl;
+    sout<<"Modification on Value "<<arg2<<" Cleared"<<'\n';
   }
   return IFSelect_RetDone;
 }
@@ -2228,39 +2228,39 @@ static IFSelect_ReturnStatus fun_editapply
 {
   Standard_Integer argc = pilot->NbWords();
   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;
+  if (argc < 2) { sout<<"Give the name of an EditForm [+ option keep to re-apply edited values]"<<'\n';
                  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<<std::endl; return IFSelect_RetError;  }
+    {  sout<<"Not an EditForm : "<<arg1<<'\n'; 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"<<std::endl;
+    if (ent.IsNull()) sout<<"Applying modifications on loaded model"<<'\n';
     else {
       sout<<"Applying modifications on loaded entity : ";
       model->PrintLabel (ent, sout);
     }
   }
-  else sout<<"Applying modifications"<<std::endl;
+  else sout<<"Applying modifications"<<'\n';
 
   if (!edf->ApplyData (edf->Entity(),edf->Model())) {
-    sout<<"Modifications could not be applied"<<std::endl;
+    sout<<"Modifications could not be applied"<<'\n';
     return IFSelect_RetFail;
   }
-  sout<<"Modifications have been applied"<<std::endl;
+  sout<<"Modifications have been applied"<<'\n';
 
   Standard_Boolean stat = Standard_True;
   if (argc > 2 && arg2[0] == 'k') stat = Standard_False;
   if (stat) {
     edf->ClearEdit();
-    sout<<"Edited values are cleared"<<std::endl;
+    sout<<"Edited values are cleared"<<'\n';
   }
-  else sout<<"Edited values are kept for another loading/applying"<<std::endl;
+  else sout<<"Edited values are kept for another loading/applying"<<'\n';
 
   return IFSelect_RetDone;
 }
@@ -2270,33 +2270,33 @@ static IFSelect_ReturnStatus fun_editload
 {
   Standard_Integer argc = pilot->NbWords();
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Give the name of an EditForm [+ Entity-Ident]"<<std::endl;
+  if (argc < 2) { sout<<"Give the name of an EditForm [+ Entity-Ident]"<<'\n';
                  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<<std::endl; return IFSelect_RetError;  }
+    {  sout<<"Not an EditForm : "<<arg1<<'\n'; 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"<<std::endl;
+    sout<<"EditForm "<<arg1<<" : Loading Model"<<'\n';
     stat = edf->LoadModel(WS->Model());
   } else if (num <= 0) {
-    sout<<"Not an entity ident : "<<arg2<<std::endl;
+    sout<<"Not an entity ident : "<<arg2<<'\n';
     return IFSelect_RetError;
   } else {
-    sout<<"EditForm "<<arg1<<" : Loading Entity "<<arg2<<std::endl;
+    sout<<"EditForm "<<arg1<<" : Loading Entity "<<arg2<<'\n';
     stat = edf->LoadData (WS->StartingEntity(num),WS->Model());
   }
 
   if (!stat) {
-    sout<<"Loading not done"<<std::endl;
+    sout<<"Loading not done"<<'\n';
     return IFSelect_RetFail;
   }
-  sout<<"Loading done"<<std::endl;
+  sout<<"Loading done"<<'\n';
   return IFSelect_RetDone;
 }
 
@@ -2367,7 +2367,7 @@ Handle(IFSelect_Dispatch)  IFSelect_Functions::GiveDispatch
   if (!dc.IsNull()) {
     Standard_Integer nb = atoi( &(nam.ToCString())[paro]);
     if (nb <= 0) {
-      sout<<" DispPerCount, count is not positive"<<std::endl;
+      sout<<" DispPerCount, count is not positive"<<'\n';
       disp.Nullify();
       return disp;
     }
@@ -2382,7 +2382,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"<<std::endl;
+      sout<<" DispPerFiles, count is not positive"<<'\n';
       disp.Nullify();
       return disp;
     }
@@ -2397,14 +2397,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]<<std::endl;
+      sout<<"DispPerSignature "<<nam<<" , Signature not valid : "<<&(nam.ToCString())[paro]<<'\n';
       disp.Nullify();
       return disp;
     }
     if (mode) ds->SetSignCounter (new IFSelect_SignCounter(sg));
     return ds;
   }
-  sout<<"Dispatch : "<<name<<" , Parameter : "<<&(nam.ToCString())[paro]<<std::endl;
+  sout<<"Dispatch : "<<name<<" , Parameter : "<<&(nam.ToCString())[paro]<<'\n';
   return disp;
 }
 
index c98d4a1cc645c1137d51b6a560860b55f14bd6ea..608efe2637c3a522a5c1a97b7c9c26ebf7372e8d 100644 (file)
@@ -132,7 +132,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
    const Handle(Interface_Protocol)& protocol,
    Interface_CopyTool& TC)
 {
-  Message::SendInfo() << "** WorkSession : Copying split data before sending"<<std::endl;
+  Message::SendInfo() << "** WorkSession : Copying split data before sending"<<'\n';
   const Interface_Graph& G = eval.Graph();
   Interface_CheckIterator checks;
   theshareout = eval.ShareOut();
@@ -161,7 +161,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
   (const Handle(IFSelect_WorkLibrary)& WL,
    const Handle(Interface_Protocol)& protocol)
 {
-  Message::SendInfo() << "** WorkSession : Sending split data already copied"<<std::endl;
+  Message::SendInfo() << "** WorkSession : Sending split data already copied"<<'\n';
   Standard_Integer nb = NbFiles();
   Interface_CheckIterator checks;
   if (nb > 0) {
@@ -180,7 +180,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::SendInfo() << "  **  Sending File n0."<<i<<" has failed, abandon  **"<<std::endl;
+       Message::SendInfo() << "  **  Sending File n0."<<i<<" has failed, abandon  **"<<'\n';
        return checks;
       }
       AddSentFile (FileName(i).ToCString());
@@ -212,7 +212,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
   const Interface_Graph& G = eval.Graph();
   Interface_CheckIterator checks;
   Standard_Integer i = 0;
-  Message::SendInfo() << "** WorkSession : Copying then sending split data"<<std::endl;
+  Message::SendInfo() << "** WorkSession : Copying then sending split data"<<'\n';
   theshareout = eval.ShareOut();
   theremain = new TColStd_HArray1OfInteger(0,G.Size()); theremain->Init(0);
   for (eval.Evaluate(); eval.More(); eval.Next()) {
@@ -237,7 +237,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::SendInfo() << "  **  Sending File "<<filename<<" has failed, abandon  **"<<std::endl;
+      Message::SendInfo() << "  **  Sending File "<<filename<<" has failed, abandon  **"<<'\n';
       checks.SetName ("X-STEP WorkSession : Split Send (only Write)");
       return checks;
     }
@@ -258,7 +258,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
 {
   Interface_CheckIterator checks;
   checks.SetName ("X-STEP WorkSession : Send All");
-  Message::SendInfo() << "** WorkSession : Sending all data"<<std::endl;
+  Message::SendInfo() << "** WorkSession : Sending all data"<<'\n';
   const Handle(Interface_InterfaceModel)&  model = G.Model();
   if (model.IsNull() || protocol.IsNull() || WL.IsNull()) return checks;
 
@@ -297,7 +297,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
 {
   Interface_CheckIterator checks;
   checks.SetName ("X-STEP WorkSession : Send Selected");
-  Message::SendInfo() << "** WorkSession : Sending selected data"<<std::endl;
+  Message::SendInfo() << "** WorkSession : Sending selected data"<<'\n';
   const Handle(Interface_InterfaceModel)&  original = G.Model();
   if (original.IsNull() || protocol.IsNull() || WL.IsNull()) return checks;
   Handle(Interface_InterfaceModel) newmod  = original->NewEmptyModel();
index 0f60292faf1ae5e9a57980272de6911baf384e26..50710865744e156b072169c362b0d433a8dcee33 100644 (file)
@@ -136,12 +136,12 @@ static int deja = 0;
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
 
   SplitLine (headerline);
-  if (theline.Length() != 4) { sout<<"File Form Incorrect"<<std::endl; return Standard_False; }
+  if (theline.Length() != 4) { sout<<"File Form Incorrect"<<'\n'; 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"<<std::endl; return Standard_False; }
+    { sout<<"Lineno."<<thenl<<" : File Header Description Incorrect"<<'\n'; return Standard_False; }
 //   Value(3) definit la VERSION du format de fichier
   return Standard_True;
 }
@@ -421,12 +421,12 @@ static int deja = 0;
   thenames.Clear();
 //  ..  Donnees generales, controle
   if (!ReadLine()) return 1;
-  if (theline.Length() != 4) { sout<<"File Form Incorrect"<<std::endl; return 1; }
+  if (theline.Length() != 4) { sout<<"File Form Incorrect"<<'\n'; 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"<<std::endl; return 1; }
+    { sout<<"Lineno."<<thenl<<" : File Header Description Incorrect"<<'\n'; return 1; }
 //   Value(3) definit la VERSION du format de fichier
   if (!ReadLine()) return 1;
 
@@ -440,15 +440,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"<<std::endl; continue; }
+       { sout<<"Lineno."<<thenl<<" : ErrorHandle Description Incorrect"<<'\n'; 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)<<std::endl; continue; }
+      else { sout<<"Lineno."<<thenl<<" : ErrorHandle Incorrect : "<<theline.Value(2)<<'\n'; continue; }
       continue;
     }
-    else sout<<"Lineno."<<thenl<<" : Unknown General Parameter : "<<ungen<<" , ignored"<<std::endl;
+    else sout<<"Lineno."<<thenl<<" : Unknown General Parameter : "<<ungen<<" , ignored"<<'\n';
   }
 
 //  ..  IntParams
@@ -458,7 +458,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"<<std::endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : An Integer Parameter is badly defined"<<'\n'; continue; }
     Handle(IFSelect_IntParam) par = new IFSelect_IntParam;
     par->SetValue ( atoi(theline.Value(2).ToCString()) );
     AddItem (par);
@@ -470,7 +470,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"<<std::endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Text Parameter is badly defined"<<'\n'; continue; }
 //    Attention, un texte peut contenir des blancs ...  repartir de line(thenl)
     TCollection_AsciiString oneline = thelist.Value(thenl);
     Standard_Integer iw = 0, inc = 0;
@@ -490,7 +490,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"<<std::endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Selection is badly defined"<<'\n'; continue; }
 //  ..  Analyse de certains cas generaux
     Handle(IFSelect_IntParam) low,up;
     Standard_Integer firstown = 3;
@@ -514,12 +514,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"<<std::endl;
+      if (direct == 0) sout<<"Lineno."<<thenl<<" : A SelectExtract is badly defined"<<'\n';
       else  sxt->SetDirect( (direct > 0) );
     }
     DeclareAndCast(IFSelect_SelectAnyList,sli,item);
     if (!sli.IsNull()) {
-      if (numlist == 0) sout<<"Lineno."<<thenl<<" : A SelectAnyList is badly defined"<<std::endl;
+      if (numlist == 0) sout<<"Lineno."<<thenl<<" : A SelectAnyList is badly defined"<<'\n';
       else sli->SetRange(low,up);
     }
     AddItem(item);
@@ -531,29 +531,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"<<std::endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Selection Source List is badly defined"<<'\n'; continue; }
     DeclareAndCast(IFSelect_Selection,sel,ItemValue(1));
     if (sel.IsNull())
-      { sout<<"Lineno."<<thenl<<" : A Source List is not for a Selection"<<std::endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Source List is not for a Selection"<<'\n'; 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, following ignored"<<std::endl;
+       sout<<"Lineno."<<thenl<<" : SelectExtract, more than one source, following ignored"<<'\n';
       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, following ignored"<<std::endl;
+       sout<<"Lineno."<<thenl<<" : SelectDeduct, more than one source, following ignored"<<'\n';
       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, following ignored"<<std::endl;
+       sout<<"Lineno."<<thenl<<" : SelectControl, not two sources, following ignored"<<'\n';
       sct->SetMainInput   (GetCasted(IFSelect_Selection,ItemValue(3)));
       sct->SetSecondInput (GetCasted(IFSelect_Selection,ItemValue(4)));
     }
@@ -570,13 +570,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"<<std::endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Modifier is badly defined"<<'\n'; 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"<<std::endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Modifier has not been Recognized"<<'\n'; continue; }
     AddItem(modif,Standard_False);  // active plus tard
   }
 
@@ -586,13 +586,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"<<std::endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Transformer is badly defined"<<'\n'; 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"<<std::endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Transformer has not been Recognized"<<'\n'; continue; }
     AddItem(trf,Standard_False);  // active plus tard
   }
 
@@ -602,7 +602,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"<<std::endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Dispatch is badly defined"<<'\n'; continue; }
     DeclareAndCast(IFSelect_Selection,input,ItemValue(3));
     SetLastGeneral(3);
     Handle(Standard_Transient) item;   // a fournir ...
@@ -610,7 +610,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"<<std::endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Dispatch has not been Recognized"<<'\n'; continue; }
     AddItem(disp);
     thesess->SetItemSelection(disp,input);
   }
@@ -627,7 +627,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"<<std::endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : A File Root is badly defined"<<'\n'; continue; }
     DeclareAndCast(IFSelect_Dispatch,disp,ItemValue(1));
     thesess->SetFileRoot (disp,theline.Value(2).ToCString());
   }
@@ -648,12 +648,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"<<std::endl; continue; }
+       { sout<<"Lineno."<<thenl<<" : A General Modifier is badly defined"<<'\n'; 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"<<std::endl; continue; }
+       { sout<<"Lineno."<<thenl<<" : A General Modifier has not been Recognized"<<'\n'; continue; }
       thesess->SetItemSelection   (modif,input);
       if (!disp.IsNull()) thesess->SetAppliedModifier (modif,disp);
       else                thesess->SetAppliedModifier (modif,thesess->ShareOut());
@@ -670,7 +670,7 @@ static int deja = 0;
   if ( theline.Length() != 2 ||
       !theline.Value(1).IsEqual("!XSTEP") ||
       !theline.Value(2).IsEqual("END"))
-    { sout<<"End of File Incorrect, lineno"<<thenl<<std::endl;  return 1; }
+    { sout<<"End of File Incorrect, lineno"<<thenl<<'\n';  return 1; }
   return 0;
 }
 
@@ -726,7 +726,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"<<std::endl;
+  if (dumper.IsNull()) sout<<" -- Lineno."<<thenl<<" : an Item could not be read"<<'\n';
   return (!dumper.IsNull());    // IsNull -> echec
 }
 
@@ -745,7 +745,7 @@ static int deja = 0;
     else id = thesess->AddNamedItem(name.ToCString(),item,active);
   }
   else sout<<"Lineno."<<thenl<<" -- Name : "<<name
-    <<" : Item could not be defined" << std::endl;
+    <<" : Item could not be defined" << '\n';
   thenames.Bind(name,id);
 }
 
@@ -789,7 +789,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() << std::endl;  //sout<<Handle par
+       << " Type:" << par->DynamicType()->Name() << '\n';  //sout<<Handle par
     SendVoid();
     thedone = Standard_False;
     return;
@@ -872,7 +872,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 << std::endl;
+      << " lineno " << thenl << " param." << nm << '\n';
     id = 0;
   }
   return thesess->Item(id);
index acf782e10e11603b395d7320810de70f5774e954..e622437fb2ebfa6b215cde2bcde80a5ab7da06e0 100644 (file)
@@ -92,8 +92,8 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
   (const TCollection_AsciiString& command)
 {
   Standard_Integer lc = command.Length();
-  if (lc > 200) std::cout<<" Commande TRES LONGUE : "<<lc<<" caracteres :"<<std::endl
-    <<command.ToCString()<<std::endl;
+  if (lc > 200) std::cout<<" Commande TRES LONGUE : "<<lc<<" caracteres :"<<'\n'
+    <<command.ToCString()<<'\n';
   thecommand = command;
   if (thecommand.Value(lc) <= ' ')  {  thecommand.Remove(lc);  lc --;  }
   thenbwords = 0;
@@ -113,7 +113,7 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
       continue;
     }
     if (nc == 0) thewordeb.SetValue (thenbwords,i);
-    if (nc > MAXCARS) {  std::cout<<"Arg."<<thenbwords<<" > "<<MAXCARS<<" car.s, tronque"<<std::endl; continue;  }
+    if (nc > MAXCARS) {  std::cout<<"Arg."<<thenbwords<<" > "<<MAXCARS<<" car.s, tronque"<<'\n'; continue;  }
     unarg[nc] = val;  nc ++;
   }
   if (nc > 0) {
@@ -244,8 +244,8 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
   if (file != NULL && file[0] != '\0') {
     fic = OSD_OpenFile (file,"r");
     if (fic) lefic = 1;
-    else { std::cout<<" ...   Script File "<<file<<" not found"<<std::endl; return IFSelect_RetFail; }
-    std::cout << " ...   Reading Script File " << file << std::endl;
+    else { std::cout<<" ...   Script File "<<file<<" not found"<<'\n'; return IFSelect_RetFail; }
+    std::cout << " ...   Reading Script File " << file << '\n';
   }
   else fic = stdin;
   IFSelect_ReturnStatus stat = IFSelect_RetVoid;
@@ -266,11 +266,11 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
     stat = Execute(command);
     if (stat == IFSelect_RetStop) break;
     if ((stat == IFSelect_RetError || stat == IFSelect_RetFail) && lefic)
-      { std::cout << " ...   Error in Script File, abandon"<<std::endl;  break; }
+      { std::cout << " ...   Error in Script File, abandon"<<'\n';  break; }
   }
   if (!lefic) return IFSelect_RetStop;
   fclose(fic);
-  std::cout<<"End of Reading Script File " << file << std::endl;
+  std::cout<<"End of Reading Script File " << file << '\n';
   if (stat == IFSelect_RetError || stat == IFSelect_RetFail) return stat;
   return IFSelect_RetVoid;        // fin fichier : depiler
 }
@@ -296,17 +296,17 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
     if (!theobjrec.IsNull()) {
       thesession->RemoveItem(theobjrec);  //// depannage ?
       Standard_Integer addws = thesession->AddItem(theobjrec);
-      if (addws == 0) { std::cout<<"Could not add item to session, sorry"<<std::endl; return IFSelect_RetFail; }
+      if (addws == 0) { std::cout<<"Could not add item to session, sorry"<<'\n'; return IFSelect_RetFail; }
     }
 
     if (stat == IFSelect_RetVoid || stat == IFSelect_RetDone) {
       if (therecord) thecomlist.Append(thecommand);
     }
-    else if (stat == IFSelect_RetError) std::cout<<"Error in Command : "<<thecommand<<std::endl;
-    else if (stat == IFSelect_RetFail) std::cout << "Execution Failure for : " <<thecommand<<std::endl;
+    else if (stat == IFSelect_RetError) std::cout<<"Error in Command : "<<thecommand<<'\n';
+    else if (stat == IFSelect_RetFail) std::cout << "Execution Failure for : " <<thecommand<<'\n';
     return stat;
   }
-  std::cout << " Command : " << thewords(0) << " unknown" << std::endl;
+  std::cout << " Command : " << thewords(0) << " unknown" << '\n';
   return IFSelect_RetError;    // pas reconnu donc incorrect
 }
 
@@ -335,7 +335,7 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
 //   on demande un givelist
     Handle(TColStd_HSequenceOfTransient) list = thesession->GiveList (CommandPart(numword));
     if (list.IsNull()) {
-      std::cout<<"Nothing selected from : "<<CommandPart(numword)<<std::endl;
+      std::cout<<"Nothing selected from : "<<CommandPart(numword)<<'\n';
       return IFSelect_RetError;
     }
     counter->AddWithGraph (list,thesession->Graph());
@@ -349,7 +349,7 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
   (const Standard_CString val) const
 {
   Standard_Integer num = thesession->NumberFromLabel (val);
-  if (num < 0)  std::cout<<" Label:"<<val<<" ->"<<-num<<" ent.s, refus"<<std::endl;
+  if (num < 0)  std::cout<<" Label:"<<val<<" ->"<<-num<<" ent.s, refus"<<'\n';
   return num;
 }
 
@@ -372,7 +372,7 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
   switch (number) {
     case -1 :                                 //        ****     HELP-XSNEW
       modhelp = 1;
-      std::cout<<"  --  Commands candidate for  xsnew  --"<<std::endl;
+      std::cout<<"  --  Commands candidate for  xsnew  --"<<'\n';
 //  HELP : soit complet (par defaut)  soit limite a xsnew
       Standard_FALLTHROUGH
     case  0 : {                               //        ****     HELP
@@ -382,20 +382,20 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
        list = IFSelect_Activator::Commands(modhelp);
        Standard_Integer nbcom = 0;
        Standard_Integer nb = list->Length();
-       std::cout << " -- Liste des Commands Disponibles --"<<std::endl;
+       std::cout << " -- Liste des Commands Disponibles --"<<'\n';
        for (Standard_Integer i = 1; i <= nb; i ++) {
          const TCollection_AsciiString& uncom = list->Value(i);
          Standard_Integer loncom = uncom.Length();
          nbcom ++;
-         if (nbcom > MAXCOMPERLINE) { std::cout<<std::endl; nbcom = 1; }
+         if (nbcom > MAXCOMPERLINE) { std::cout<<'\n'; nbcom = 1; }
          std::cout<<" "<<uncom;
          if (nbcom == MAXCOMPERLINE) continue;
          for (Standard_Integer j = loncom; j < LENGTHFORCOM; j ++) std::cout<<" ";
        }
-       if (nbcom > 0) std::cout<<std::endl;
+       if (nbcom > 0) std::cout<<'\n';
        std::cout<<"\nhelp *  liste toutes les commandes avec un help sur chacune\n"
          <<"help <com> liste la ou les commande debutant par <com>"
-         <<" avec un help sur chacune"<<std::endl;
+         <<" avec un help sur chacune"<<'\n';
 
 //    Un Help particulier
       } else {
@@ -410,11 +410,11 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
              (list->Value(i).ToCString(),num,actor)) {
            if (IFSelect_Activator::Mode (list->Value(i).ToCString()) == 1)
              std::cout<<"[xsnew name] ";
-           std::cout << list->Value(i) << "    : " << actor->Help(num) << std::endl;
+           std::cout << list->Value(i) << "    : " << actor->Help(num) << '\n';
          }
        }
        if (nb == 0 && thenbwords > 1) std::cout<<" Command "<<Word(1)<<" unknown. "
-         << " help (without command) lists all the commands" << std::endl;
+         << " help (without command) lists all the commands" << '\n';
       }
       return IFSelect_RetVoid;
     }
@@ -426,51 +426,51 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
       if (argc < 2) { std::cout << "Donner une option :\n"
         <<"a : analyse une ligne  r : toggle record mode\n"
         <<"l : list recorded  c : clear  f nom : sauver dans fichier de nom"
-        << std::endl; return IFSelect_RetVoid; }
+        << '\n'; return IFSelect_RetVoid; }
       switch (arg1[0]) {
         case 'a' : {                          //        ****    command analyse
-         std::cout<<"Command n0 " << number <<" : "<< session->CommandLine()<<std::endl;
+         std::cout<<"Command n0 " << number <<" : "<< session->CommandLine()<<'\n';
          std::cout<<"Nb Words : " << argc-2 << " :\n";
          for (Standard_Integer i = 2; i < argc; i ++) {
-           std::cout << " Word." << i-1 << " : " << session->Word(i) <<std::endl;
+           std::cout << " Word." << i-1 << " : " << session->Word(i) <<'\n';
          }
          break;
        }
        case 'c' : session->Clear();  break;  //        ****    command clear
        case 'f' : {
-         if (argc < 3) { std::cout<<"Donner nom de fichier"<<std::endl; return IFSelect_RetError; }
+         if (argc < 3) { std::cout<<"Donner nom de fichier"<<'\n'; return IFSelect_RetError; }
          Standard_Integer nb = session->NbCommands();
-         if (nb == 0) { std::cout<<"Aucune commande enregistree"<<std::endl; break; }
-         std::cout << "Nb Commandes enregistrees : " << nb <<std::endl;
+         if (nb == 0) { std::cout<<"Aucune commande enregistree"<<'\n'; break; }
+         std::cout << "Nb Commandes enregistrees : " << nb <<'\n';
          std::ofstream fout(Word(2).ToCString(),std::ios::out);
          for (Standard_Integer i = 1; i <= nb; i ++)
-           fout<<session->Command(i)<<std::endl;
+           fout<<session->Command(i)<<'\n';
          break;
        }
        case 'l' : {                          //        ****    command list
-         if (session->RecordMode()) std::cout<<"  -- Record Mode Actif"<<std::endl;
-         else                       std::cout<<"  -- Record Mode Inactif"<<std::endl;
+         if (session->RecordMode()) std::cout<<"  -- Record Mode Actif"<<'\n';
+         else                       std::cout<<"  -- Record Mode Inactif"<<'\n';
          Standard_Integer nb = session->NbCommands();
-         std::cout << "Nb Commandes enregistrees : " << nb << " :"<<std::endl;
+         std::cout << "Nb Commandes enregistrees : " << nb << " :"<<'\n';
          for (Standard_Integer i = 1; i <= nb; i ++) {
-           std::cout<<"  "<<i<<"       "<<session->Command(i)<<std::endl;
+           std::cout<<"  "<<i<<"       "<<session->Command(i)<<'\n';
          }
          break;
        }
        case 'r' : {                          //        ****    command record
          Standard_Boolean mode = session->RecordMode();
-         if (mode) std::cout << " -- Record Mode a present Inactif" <<std::endl;
-         else      std::cout << " -- Record Mode a present Actif"   <<std::endl;
+         if (mode) std::cout << " -- Record Mode a present Inactif" <<'\n';
+         else      std::cout << " -- Record Mode a present Actif"   <<'\n';
          session->SetRecordMode(!mode);
          break;
        }
-       default  : std::cout << "Option de controle de commande non comprise"<<std::endl;
+       default  : std::cout << "Option de controle de commande non comprise"<<'\n';
       }
       return IFSelect_RetVoid;
     }
 
     case  4 : {                               //        ****     FILE
-      if (argc < 2) { std::cout<<"Donner nom de fichier"<<std::endl; return IFSelect_RetError; }
+      if (argc < 2) { std::cout<<"Donner nom de fichier"<<'\n'; return IFSelect_RetError; }
       return session->ReadScript
        (TCollection_AsciiString(session->Word(1)).ToCString());
 //          On recopie la string parce que Word(1) change tout le temps !
@@ -478,8 +478,8 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
 
     case  5 : {                               //        ****     XSTEP
       if (argc < 2) {
-       std::cout<<"xstep : prefixe neutre pour toute commande xstep-draw"<<std::endl
-         <<"xstep command args  equivaut a  command args"<<std::endl;
+       std::cout<<"xstep : prefixe neutre pour toute commande xstep-draw"<<'\n'
+         <<"xstep command args  equivaut a  command args"<<'\n';
        return Do(2,this);
       } else {
        RemoveWord(0);
@@ -488,15 +488,15 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
     }
     case  6 : {                               //        ****    XSNEW(variable)
       if (argc < 3) {
-       std::cout<<"xsnew nomvar command [args]   creates an item"<<std::endl
-         <<"  nomvar : name of item (must be a new name) in the session"<<std::endl;
+       std::cout<<"xsnew nomvar command [args]   creates an item"<<'\n'
+         <<"  nomvar : name of item (must be a new name) in the session"<<'\n';
        return Do (-1,this);
       } else {
 
        theobjrec.Nullify();
        TCollection_AsciiString name = Word(1);
 //  Le nom ne doit pas etre deja pris !
-         if (thesession.IsNull()) { std::cout<<"Command with a Name and no Session defined !"<<std::endl; return IFSelect_RetFail; }
+         if (thesession.IsNull()) { std::cout<<"Command with a Name and no Session defined !"<<'\n'; return IFSelect_RetFail; }
 //////    if (thesession->NameIdent(thewords(0).ToCString()) > 0)
 //////      { std::cout<<"Command with name:"<<thewords(0)<<", already taken"<<std::endl; return IFSelect_RetFail; }
        RemoveWord(0);  RemoveWord(0);
@@ -512,13 +512,13 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
            Standard_Integer addws =
              thesession->AddNamedItem(name.ToCString(),theobjrec);
            theobjrec.Nullify();
-           if (addws == 0) { std::cout<<"Could not add named item:"<<name<<", sorry"<<std::endl; return IFSelect_RetFail; }
+           if (addws == 0) { std::cout<<"Could not add named item:"<<name<<", sorry"<<'\n'; return IFSelect_RetFail; }
          }
-         else std::cout<<"Remark : xsnew with name:"<<name<<" and no result"<<std::endl;
+         else std::cout<<"Remark : xsnew with name:"<<name<<" and no result"<<'\n';
 
          return stat;
        }
-       std::cout << " Command : " << thewords(0) << " unknown" << std::endl;
+       std::cout << " Command : " << thewords(0) << " unknown" << '\n';
        return IFSelect_RetError;    // pas reconnu donc incorrect
       }
     }
index 4075df788c685f64cd0e49f403b9d42a91773f1e..453470001f654c185e73274c2fd5d99d4cc93fe0 100644 (file)
@@ -149,15 +149,15 @@ IFSelect_SignatureList::IFSelect_SignatureList
 {
   Standard_Integer nbtot = 0, nbsign = 0;
   NCollection_IndexedDataMap<TCollection_AsciiString, Standard_Integer>::Iterator iter(thedicount);
-  S << " Count "<<thename->ToCString()<<"\n -----      -----------"<<std::endl;
+  S << " Count "<<thename->ToCString()<<"\n -----      -----------"<<'\n';
   for (; iter.More(); iter.Next()) {
     Standard_Integer val = iter.Value();
-    S << Interface_MSG::Blanks(val,6) << val <<"       "<<iter.Key()<<std::endl;
+    S << Interface_MSG::Blanks(val,6) << val <<"       "<<iter.Key()<<'\n';
     nbtot += val;
     nbsign ++;
   }
-  if (thenbnuls > 0) S << thename->ToCString()<< " Nul : " << thenbnuls <<std::endl;
-  S << "    Nb Total:"<<nbtot<<"  for "<<nbsign<<" items"<<std::endl;
+  if (thenbnuls > 0) S << thename->ToCString()<< " Nul : " << thenbnuls <<'\n';
+  S << "    Nb Total:"<<nbtot<<"  for "<<nbsign<<" items"<<'\n';
 }
 
     void  IFSelect_SignatureList::PrintList
@@ -168,7 +168,7 @@ IFSelect_SignatureList::IFSelect_SignatureList
   if (mod == IFSelect_CountByItem)   {  PrintCount (S);  return;  }
   if (mod == IFSelect_CountSummary)  {  PrintSum   (S);  return;  }
   if (!HasEntities()) {
-    S <<" SignatureList "<<Name()<<" : PrintList, list not available"<<std::endl;
+    S <<" SignatureList "<<Name()<<" : PrintList, list not available"<<'\n';
     PrintCount(S);
     return;
   }
@@ -176,8 +176,8 @@ 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()<<std::endl;
-    if (list.IsNull())  {  S<<"  - (empty list)"<<std::endl; continue;  }
+    S<<Name()<<" : "<<iter.Key()<<'\n';
+    if (list.IsNull())  {  S<<"  - (empty list)"<<'\n'; continue;  }
     Standard_Integer nb = list->Length();
     S<<"  - Nb: "<<nb<<" : ";
     Standard_Integer nc = nb;  if (nb > 5 && mod == IFSelect_ShortByItem) nc = 5;
@@ -194,18 +194,18 @@ IFSelect_SignatureList::IFSelect_SignatureList
        {  S<<":";  model->PrintLabel(list->Value(i), S);  }
     }
     if (nc < nb) S<<"  .. etc";
-    S<<std::endl;
+    S<<'\n';
     nbtot += nb;
     nbsign ++;
   }
-  S <<" Nb Total:"<<nbtot<<"  for "<<nbsign<<" items"<<std::endl;
+  S <<" Nb Total:"<<nbtot<<"  for "<<nbsign<<" items"<<'\n';
 }
 
 
     void  IFSelect_SignatureList::PrintSum (Standard_OStream& S) const
 {
   NCollection_IndexedDataMap<TCollection_AsciiString, Standard_Integer>::Iterator iter(thedicount);
-  S << " Summary "<<thename->ToCString()<<"\n -----    -----------"<<std::endl;
+  S << " Summary "<<thename->ToCString()<<"\n -----    -----------"<<'\n';
   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();
@@ -231,18 +231,18 @@ IFSelect_SignatureList::IFSelect_SignatureList
     nbve += nbent;
     totval += (val*nbent);
   }
-  S << "    Nb Total:"<<nbtot<<"  for "<<nbsign<<" items"<<std::endl;
-  S << "    Highest count of entities : "<<maxent<<" on one item"<<std::endl;
+  S << "    Nb Total:"<<nbtot<<"  for "<<nbsign<<" items"<<'\n';
+  S << "    Highest count of entities : "<<maxent<<" on one item"<<'\n';
   if (nbval > 0) {
-    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;
+    S<<"    Summary on Integer Values"<<'\n';
+    S<<"    Nb Integer Items : "<<nbval<<'\n';
+    S<<"    For Nb Entities  : "<<nbve<<'\n';
+    S<<"    Cumulated Values : "<<totval<<'\n';
+    S <<"    Maximum Value    : "<<maxval<<'\n';
     Standard_Integer avg1, avg2;
     avg1 = totval/nbve;
     avg2 = ((totval - (avg1*nbve)) * 10) / nbve;
-    S <<"    Average Value    : "<<avg1<<" "<<avg2<<"/10"<<std::endl;
-    S <<"    Minimum Value    : "<<minval<<std::endl;
+    S <<"    Average Value    : "<<avg1<<" "<<avg2<<"/10"<<'\n';
+    S <<"    Minimum Value    : "<<minval<<'\n';
   }
 }
index cc35ac2ecf1e4db2f44d9003a0399eb465032e6d..f47627992032b3102a92257ff54897767d68e67c 100644 (file)
@@ -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<<std::endl;
+      sout<<"IFSelect_TransformStandard :  Messages from Modifier n0 "<<i<<" of "<<nb<<'\n';
       checklist.Print(sout,newmod,Standard_False);
     }
     if (!checklist.IsEmpty(Standard_True)) {
-      sout<<" --  Abandon TransformStandard  --"<<std::endl;
+      sout<<" --  Abandon TransformStandard  --"<<'\n';
       res = Standard_False;  break;
     }
   }
index 27730d18e61898f164fcad32291dfd1d3a9de05b..7618bda39c3ba34da29f0e41ac73ffe81c1d7aba 100644 (file)
@@ -207,7 +207,7 @@ IFSelect_ReturnStatus  IFSelect_WorkSession::ReadFile(const Standard_CString fil
     Message_Messenger::StreamBuffer sout = Message::SendInfo();
     sout<<"    ****    Interruption ReadFile par Exception :   ****\n";
     sout << anException.GetMessageString();
-    sout<<"\n    Abandon"<<std::endl;
+    sout<<"\n    Abandon"<<'\n';
     status = IFSelect_RetFail;
   }
   if (status != IFSelect_RetDone) return status;
@@ -240,7 +240,7 @@ IFSelect_ReturnStatus  IFSelect_WorkSession::ReadStream(const Standard_CString t
     Message_Messenger::StreamBuffer sout = Message::SendInfo();
     sout << "    ****    Interruption ReadFile par Exception :   ****\n";
     sout << anException.GetMessageString();
-    sout << "\n    Abandon" << std::endl;
+    sout << "\n    Abandon" << '\n';
     status = IFSelect_RetFail;
   }
   if (status != IFSelect_RetDone) return status;
@@ -1263,7 +1263,7 @@ Interface_EntityIterator IFSelect_WorkSession::EvalSelection
       Message_Messenger::StreamBuffer sout = Message::SendInfo();
       sout<<"    ****    Interruption EvalSelection par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<std::endl;
+      sout<<"\n    Abandon"<<'\n';
     }
     errhand = theerrhand;
     return iter;
@@ -1306,19 +1306,19 @@ Handle(TColStd_HSequenceOfTransient) IFSelect_WorkSession::SelectionResult
       Message_Messenger::StreamBuffer sout = Message::SendInfo();
       sout<<"    ****    Interruption SelectionResult par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<std::endl;
+      sout<<"\n    Abandon"<<'\n';
     }
     errhand = theerrhand;
     return res;
   }
 
   if (!IsLoaded()) {
-    std::cout<< " ***  Data for Evaluation not available  ***"<<std::endl;
+    std::cout<< " ***  Data for Evaluation not available  ***"<<'\n';
     return new TColStd_HSequenceOfTransient();
   }
 //  if (ItemIdent(sel) == 0)
   if (sel.IsNull())
-    {  std::cout << " Selection :  Unknown"<<std::endl;  return res;  } //std::cout<<Handle
+    {  std::cout << " Selection :  Unknown"<<'\n';  return res;  } //std::cout<<Handle
   return EvalSelection (sel).Content();
 }
 
@@ -1724,7 +1724,7 @@ Standard_Integer IFSelect_WorkSession::RunTransformer
 
   if (!checks.IsEmpty(Standard_False)) {
     Message_Messenger::StreamBuffer sout = Message::SendInfo();
-    sout<<"  **    RunTransformer has produced Check Messages :    **"<<std::endl;
+    sout<<"  **    RunTransformer has produced Check Messages :    **"<<'\n';
     checks.Print (sout,myModel,Standard_False);
   }
   thecheckdone = Standard_False;
@@ -2039,7 +2039,7 @@ void IFSelect_WorkSession::EvaluateFile ()
       Message_Messenger::StreamBuffer sout = Message::SendInfo();
       sout<<"    ****    Interruption EvaluateFile par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<std::endl;
+      sout<<"\n    Abandon"<<'\n';
       checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
     }
     errhand = theerrhand;
@@ -2051,7 +2051,7 @@ void IFSelect_WorkSession::EvaluateFile ()
   checks = thecopier->Copy (R,thelibrary,theprotocol);
   if (!checks.IsEmpty(Standard_False)) {
     Message_Messenger::StreamBuffer sout = Message::SendInfo();
-    sout<<"  **    EvaluateFile has produced Check Messages :    **"<<std::endl;
+    sout<<"  **    EvaluateFile has produced Check Messages :    **"<<'\n';
     checks.Print (sout,myModel,Standard_False);
   } 
   thecopier->SetRemaining (thegraph->CGraph());
@@ -2143,7 +2143,7 @@ Standard_Boolean IFSelect_WorkSession::SendSplit ()
       Message_Messenger::StreamBuffer sout = Message::SendInfo();
       sout<<"    ****    Interruption SendSplit par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<std::endl;
+      sout<<"\n    Abandon"<<'\n';
       checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
     }
     errhand = theerrhand;
@@ -2158,7 +2158,7 @@ Standard_Boolean IFSelect_WorkSession::SendSplit ()
   }
   if (!IsLoaded()) {
     Message_Messenger::StreamBuffer sout = Message::SendInfo();
-    sout<< " ***  Data for SendSplit not available  ***"<<std::endl;
+    sout<< " ***  Data for SendSplit not available  ***"<<'\n';
     checks.CCheck(0)->AddFail("Data not available");
     thecheckrun = checks;
     return Standard_False;
@@ -2199,10 +2199,10 @@ Standard_Boolean IFSelect_WorkSession::SendSplit ()
        filepart = FileExtension();
        if (!filepart.IsNull()) filnam.AssignCat (filepart->ToCString());
        IFSelect_ReturnStatus stat = SendSelected (filnam.ToCString(),sp);
-       if (stat != IFSelect_RetDone) std::cout<<"File "<<filnam<<" failed"<<std::endl;
+       if (stat != IFSelect_RetDone) std::cout<<"File "<<filnam<<" failed"<<'\n';
       }
     }
-    sout<<" .. Files Written : "<<nf<<std::endl;
+    sout<<" .. Files Written : "<<nf<<'\n';
   }
   thecheckrun = checks;
   return Standard_True;
@@ -2286,9 +2286,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"<<std::endl;  return Standard_False;
+      sout<<" No Remaining Data recorded"<<'\n';  return Standard_False;
     } else if (newmod == myModel) {
-      sout<<" Remaining causes all original data to be kept"<<std::endl;
+      sout<<" Remaining causes all original data to be kept"<<'\n';
       thecopier->SetRemaining (thegraph->CGraph());
       return Standard_False;
     } else {
@@ -2310,17 +2310,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"<<std::endl;  return Standard_True;
+      sout<<" - All entities are remaining, none yet sent"<<'\n';  return Standard_True;
     }
     Interface_EntityIterator iter = SentList(0);
     nb = iter.NbEntities();
     if (nb == 0) {
-      sout<<" - No recorded remaining entities"<<std::endl;  return Standard_True;
+      sout<<" - No recorded remaining entities"<<'\n';  return Standard_True;
     }
-    sout <<" --  Recorded Remaining (not yet sent) Entities  --"<<std::endl;
+    sout <<" --  Recorded Remaining (not yet sent) Entities  --"<<'\n';
     ListEntities (iter, 2, sout);
     sout << " -- Maximum Sending Count (i.e. duplication in files) "<<
-      MaxSendingCount() << std::endl;
+      MaxSendingCount() << '\n';
 
 /*
     sout<< " - Now, dispatches are deactivated"<<std::endl;
@@ -2366,7 +2366,7 @@ IFSelect_ReturnStatus IFSelect_WorkSession::SendAll
       Message_Messenger::StreamBuffer sout = Message::SendInfo();
       sout<<"    ****    Interruption SendAll par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<std::endl;
+      sout<<"\n    Abandon"<<'\n';
       errhand = theerrhand;
       checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
       thecheckrun = checks;
@@ -2416,7 +2416,7 @@ IFSelect_ReturnStatus IFSelect_WorkSession::SendSelected
       Message_Messenger::StreamBuffer sout = Message::SendInfo();
       sout<<"    ****    Interruption SendSelected par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<std::endl;
+      sout<<"\n    Abandon"<<'\n';
       checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
       errhand = theerrhand;
       thecheckrun = checks;
@@ -2861,30 +2861,30 @@ void IFSelect_WorkSession::TraceStatics
 {
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (use > 0) {
-    if (mode == 0)   sout<<"******************************************"<<std::endl;
+    if (mode == 0)   sout<<"******************************************"<<'\n';
     if        (use == 1) {
-      if (mode == 0) sout<<"*****      General  Parameters       *****"<<std::endl;
+      if (mode == 0) sout<<"*****      General  Parameters       *****"<<'\n';
     } else if (use == 2) {
-      if (mode == 0) sout<<"*****            Load  File          *****"<<std::endl;
+      if (mode == 0) sout<<"*****            Load  File          *****"<<'\n';
     } else if (use == 3) {
-      if (mode == 0) sout<<"*****            Write File          *****"<<std::endl;
+      if (mode == 0) sout<<"*****            Write File          *****"<<'\n';
     } else if (use == 4) {
-      if (mode == 0) sout<<"*****            Split File          *****"<<std::endl;
+      if (mode == 0) sout<<"*****            Split File          *****"<<'\n';
     } else if (use == 5) {
-      if (mode == 0) sout<<"*****        Transfer (Read)         *****"<<std::endl;
+      if (mode == 0) sout<<"*****        Transfer (Read)         *****"<<'\n';
     } else if (use == 6) {
-      if (mode == 0) sout<<"*****        Transfer (Write)        *****"<<std::endl;
+      if (mode == 0) sout<<"*****        Transfer (Write)        *****"<<'\n';
     }
-    if (mode == 0)   sout<<"******************************************"<<std::endl<<std::endl;
+    if (mode == 0)   sout<<"******************************************"<<'\n'<<'\n';
   }
 
 //    Echainements particuliers (use > 0)
   if (use == 5) {
     TraceStatics (-2,mode);
-    if (mode == 0) sout<<std::endl;
+    if (mode == 0) sout<<'\n';
   } else if (use == 4 || use == 6) {
     TraceStatics (-3,mode);
-    if (mode == 0) sout<<std::endl;
+    if (mode == 0) sout<<'\n';
   }
 
 //    Valeurs particulieres
@@ -2895,14 +2895,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()<<std::endl;
-      else sout << "Prefix       not Defined" << std::endl;
+      if (!str.IsNull()) sout << "Prefix        : "<<str->ToCString()<<'\n';
+      else sout << "Prefix       not Defined" << '\n';
       str = theshareout->DefaultRootName();
-      if (!str.IsNull()) sout << "Default Root  : "<<str->ToCString()<<std::endl;
-      else sout << "Default Root not Defined" << std::endl;
+      if (!str.IsNull()) sout << "Default Root  : "<<str->ToCString()<<'\n';
+      else sout << "Default Root not Defined" << '\n';
       str = theshareout->Extension();
-      if (!str.IsNull()) sout << "Extension     : "<<str->ToCString()<<std::endl;
-      else sout << "Extension    not defined" << std::endl;
+      if (!str.IsNull()) sout << "Extension     : "<<str->ToCString()<<'\n';
+      else sout << "Extension    not defined" << '\n';
     }
   }
 
@@ -2911,7 +2911,7 @@ void IFSelect_WorkSession::TraceStatics
 
 //    Fin
   if (use > 0) {
-    if (mode == 0)   sout<<"******************************************"<<std::endl<<std::endl;
+    if (mode == 0)   sout<<"******************************************"<<'\n'<<'\n';
   }
 }
 
@@ -2924,42 +2924,42 @@ void IFSelect_WorkSession::TraceStatics
 void IFSelect_WorkSession::DumpShare () const 
 {
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  sout<<"        **********  Definition ShareOut (Complete)  **********"<<std::endl;
+  sout<<"        **********  Definition ShareOut (Complete)  **********"<<'\n';
 
   Handle(TCollection_HAsciiString) str = theshareout->Prefix();
-  if (!str.IsNull()) sout << "Prefix       : " << str->ToCString() << std::endl;
-  else sout << "Prefix       not Defined" << std::endl;
+  if (!str.IsNull()) sout << "Prefix       : " << str->ToCString() << '\n';
+  else sout << "Prefix       not Defined" << '\n';
   str = theshareout->DefaultRootName();
-  if (!str.IsNull()) sout << "Default Root : " << str->ToCString() << std::endl;
-  else sout << "Default Root not Defined" << std::endl;
+  if (!str.IsNull()) sout << "Default Root : " << str->ToCString() << '\n';
+  else sout << "Default Root not Defined" << '\n';
   str = theshareout->Extension();
-  if (!str.IsNull()) sout << "Extension    : " << str->ToCString() << std::endl;
-  else sout << "Extension    not defined" << std::endl;
+  if (!str.IsNull()) sout << "Extension    : " << str->ToCString() << '\n';
+  else sout << "Extension    not defined" << '\n';
 
   Standard_Integer lr = theshareout->LastRun();
   Standard_Integer nb = theshareout->NbDispatches();
-  sout << "Nb Dispatches : " << nb <<" (Last Run : " << lr << ") : "<<std::endl;
+  sout << "Nb Dispatches : " << nb <<" (Last Run : " << lr << ") : "<<'\n';
   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() << std::endl;
+    sout << "   Label:" << disp->Label() << '\n';
     Handle(IFSelect_Selection) sel = disp->FinalSelection();
-    if (sel.IsNull()) sout << "   No Final Selection Defined" << std::endl;
+    if (sel.IsNull()) sout << "   No Final Selection Defined" << '\n';
     else if (HasName(sel)) sout << "   Final Selection : Name:"
-      << Name(sel)->ToCString() << "  Label:" << sel->Label() << std::endl;
-    else sout << "   Final Selection : " << sel->Label() << std::endl;
+      << Name(sel)->ToCString() << "  Label:" << sel->Label() << '\n';
+    else sout << "   Final Selection : " << sel->Label() << '\n';
     if (disp->HasRootName())
-      sout<<"   File Root Name : "<<disp->RootName()->ToCString()<<std::endl;
-    else sout<<"   No specific file root name (see Default Root)"<<std::endl;
+      sout<<"   File Root Name : "<<disp->RootName()->ToCString()<<'\n';
+    else sout<<"   No specific file root name (see Default Root)"<<'\n';
   }
   Standard_Integer nbm = theshareout->NbModifiers(Standard_True);
   if (nbm > 0) sout<<
-    "  ***   "<<nbm<<" active Model Modifiers : see ListModifiers   ***"<<std::endl;
+    "  ***   "<<nbm<<" active Model Modifiers : see ListModifiers   ***"<<'\n';
   Standard_Integer nbf = theshareout->NbModifiers(Standard_False);
   if (nbf > 0) sout<<
-    "  ***   "<<nbf<<" active File  Modifiers : see ListModifiers   ***"<<std::endl;
-  if (nbm+nbf == 0) sout<<"  ***   No active Modifiers   ***"<<std::endl;
+    "  ***   "<<nbf<<" active File  Modifiers : see ListModifiers   ***"<<'\n';
+  if (nbm+nbf == 0) sout<<"  ***   No active Modifiers   ***"<<'\n';
 }
 
 //  ####    ####    ####    ####    ####    ####    ####    ####    ####
@@ -2973,7 +2973,7 @@ void IFSelect_WorkSession::DumpShare () const
 void IFSelect_WorkSession::ListItems (const Standard_CString lab) const 
 {
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  sout<< "        **********  Items in Session  **********"<<std::endl;
+  sout<< "        **********  Items in Session  **********"<<'\n';
   Standard_Integer nb = MaxIdent();
   Handle(TCollection_HAsciiString) str;
   if (lab[0] != '\0') str = new TCollection_HAsciiString (lab);
@@ -2985,7 +2985,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()<<std::endl<<"    "<<label->ToCString()<<std::endl;
+    sout<<var->DynamicType()->Name()<<'\n'<<"    "<<label->ToCString()<<'\n';
   }
 }
 
@@ -3004,13 +3004,13 @@ void IFSelect_WorkSession::ListFinalModifiers
   Standard_Integer nb = theshareout->NbModifiers(formodel);
   sout<< "        **********  Modifiers in Session ";
   sout<<(formodel ? "(For Model)" : "(For File)");
-  sout<<": "<<nb<<"  **********"<<std::endl;
+  sout<<": "<<nb<<"  **********"<<'\n';
   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<<std::endl;
+    sout<<'\n';
   }
 }
 
@@ -3027,21 +3027,21 @@ void IFSelect_WorkSession::DumpSelection
 {
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (ItemIdent(sel) == 0) {
-    sout << "Selection :  Unknown"<<std::endl;  //sout<<Handle
+    sout << "Selection :  Unknown"<<'\n';  //sout<<Handle
     return;
   }
   sout << "        **********  Selection";
   if (HasName(sel)) sout << " , Name : " << Name(sel)->ToCString();
-  sout <<"  **********"<<std::endl;
-  sout<< "Label : " << sel->Label() << " . Input(s) : "<< std::endl;
+  sout <<"  **********"<<'\n';
+  sout<< "Label : " << sel->Label() << " . Input(s) : "<< '\n';
   Standard_Integer nb = 0;
   IFSelect_SelectionIterator iter; sel->FillIterator(iter);
   for (; iter.More(); iter.Next()) {
     nb ++; 
     const Handle(IFSelect_Selection)& newsel = iter.Value();
-    sout<<" -- "<<newsel->Label()<<std::endl;
+    sout<<" -- "<<newsel->Label()<<'\n';
   }
-  sout << " Nb Inputs:"<<nb<<std::endl;
+  sout << " Nb Inputs:"<<nb<<'\n';
 }
 
 
@@ -3093,7 +3093,7 @@ Handle(IFSelect_Selection) IFSelect_WorkSession::GiveSelection
     else if (!cnt.IsNull()) selsign =
       new IFSelect_SelectSignature (cnt,&nomsel[debsign],Standard_False);
     else {
-      std::cout<<selname<<" : neither Signature nor Counter"<<std::endl;
+      std::cout<<selname<<" : neither Signature nor Counter"<<'\n';
       return sel;
     }
 
@@ -3229,7 +3229,7 @@ Handle(TColStd_HSequenceOfTransient) IFSelect_WorkSession::GiveListFromList
 
   Handle(IFSelect_Selection) sel = GiveSelection (nomsel);
   if (sel.IsNull())  {
-    std::cout<<"Neither Entity Number/Label nor Selection :"<<nomsel<<std::endl;
+    std::cout<<"Neither Entity Number/Label nor Selection :"<<nomsel<<'\n';
     return list;
   }
 
@@ -3294,15 +3294,15 @@ void IFSelect_WorkSession::DumpModel
   (const Standard_Integer level, Standard_OStream& S)
 {
   if (!IsLoaded())
-    {  S << " ***  Data for List not available  ***"<<std::endl;  return;  }
+    {  S << " ***  Data for List not available  ***"<<'\n';  return;  }
   S << "\n        *****************************************************************\n";
   if (theloaded.Length() > 0)
-    S << "        ********  Loaded File : "<<theloaded.ToCString()<<Interface_MSG::Blanks(32-theloaded.Length())<<" ********"<<std::endl;
-  else S << "        ********  No name for Loaded File"<<std::endl;
+    S << "        ********  Loaded File : "<<theloaded.ToCString()<<Interface_MSG::Blanks(32-theloaded.Length())<<" ********"<<'\n';
+  else S << "        ********  No name for Loaded File"<<'\n';
   if (level == 0) {
     S <<"        ********  Short Dump of Header                           ********\n";
   S << "        *****************************************************************\n\n";
-    myModel->DumpHeader (S); S <<std::endl;
+    myModel->DumpHeader (S); S <<'\n';
   }
 
   Standard_Integer nbent = myModel->NbEntities();
@@ -3314,7 +3314,7 @@ void IFSelect_WorkSession::DumpModel
   }
   S << "        *****************************************************************\n"
     << "        ********  Model : "<<nbent<<" Entities, of which "<<nbr<<" Root(s)\n"
-    << "        *****************************************************************\n"<<std::endl;
+    << "        *****************************************************************\n"<<'\n';
 
   if (level <= 0) return;
   else if (level == 1) {
@@ -3330,8 +3330,8 @@ void IFSelect_WorkSession::DumpModel
     if (level == 7 || level == 10) mode = IFSelect_EntitiesByItem;
     PrintCheckList (S, ModelCheckList(),Standard_False, mode);
   } else {
-    if (level == 3) S << "        ********  Check Model (Fails)  ********"<<std::endl;
-    else            S << "        ********  Check Model (Complete)  ********"<<std::endl;
+    if (level == 3) S << "        ********  Check Model (Fails)  ********"<<'\n';
+    else            S << "        ********  Check Model (Complete)  ********"<<'\n';
     Interface_CheckTool CT (Graph());
     Interface_CheckIterator C;
     if (theerrhand) {
@@ -3344,7 +3344,7 @@ void IFSelect_WorkSession::DumpModel
        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"<<std::endl;
+       S <<"  -->  what could be determined is listed"<<'\n';
       }
     }
     else if (level == 3) C = CT.CheckList();
@@ -3359,11 +3359,11 @@ void IFSelect_WorkSession::DumpModel
       Message_Messenger::StreamBuffer sout = Message::SendInfo();
       sout<<"    ****    Interruption DumpModel par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<std::endl;
+      sout<<"\n    Abandon"<<'\n';
     }
 
   }
-  S <<std::endl<<"There are "<<nbent<<" Entities, of which "<<nbr<<" Root(s)"<<std::endl;
+  S <<'\n'<<"There are "<<nbent<<" Entities, of which "<<nbr<<" Root(s)"<<'\n';
 }
 
 //  ....        TraceDumpModel        ....  (Model + CheckList)
@@ -3396,12 +3396,12 @@ void IFSelect_WorkSession::DumpEntity
    Standard_OStream& S) const
 {
   if (!IsLoaded())
-    {  S << " ***  Data for List not available  ***"<<std::endl;  return;  }
+    {  S << " ***  Data for List not available  ***"<<'\n';  return;  }
   Standard_Integer num = myModel->Number(ent);
-  if (num == 0) { S <<" ***  Entity to Dump not in the Model  ***"<<std::endl; return; }
-  if (thelibrary.IsNull()) { S <<" ***  WorkLibrary not defined  ***"<<std::endl; return; }
+  if (num == 0) { S <<" ***  Entity to Dump not in the Model  ***"<<'\n'; return; }
+  if (thelibrary.IsNull()) { S <<" ***  WorkLibrary not defined  ***"<<'\n'; return; }
   S << "        ********  Dumping Entity n0 "<<num
-    <<" level:"<<level<<"  ********"<<std::endl;
+    <<" level:"<<level<<"  ********"<<'\n';
   thelibrary->DumpEntity (myModel,theprotocol,ent,S,level);
 }
 
@@ -3431,38 +3431,38 @@ void IFSelect_WorkSession::PrintEntityStatus
 {
   Standard_Integer i,nb;
   Standard_Integer num = StartingNumber(ent);
-  if (num == 0)  {  std::cout<<" --  PrintEntityStatus : unknown"<<std::endl;  return;  }
+  if (num == 0)  {  std::cout<<" --  PrintEntityStatus : unknown"<<'\n';  return;  }
 
   S <<"  Ent. n0/id:   ";
   myModel->Print (ent, S);
   Handle(TCollection_HAsciiString) hname = EntityName(ent);
   if (!hname.IsNull() && hname->Length() > 0) S <<"    Name:"<<hname->ToCString();
-  S <<std::endl;
+  S <<'\n';
   Handle(IFSelect_Signature) signtype = SignType();
-  if (signtype.IsNull()) S <<"  Type(CDL):"<<ent->DynamicType()->Name()<<std::endl;
-  else S <<"  Type:"<<signtype->Value (ent,myModel)<<std::endl;
+  if (signtype.IsNull()) S <<"  Type(CDL):"<<ent->DynamicType()->Name()<<'\n';
+  else S <<"  Type:"<<signtype->Value (ent,myModel)<<'\n';
   S <<"    Category : " <<CategoryName (ent)
-    <<"    Validity : " <<ValidityName (ent) << std::endl;
+    <<"    Validity : " <<ValidityName (ent) << '\n';
   Interface_CheckIterator chl = CheckOne (ent);
   chl.Print (S,myModel,Standard_False,Standard_False);
 
   Handle(TColStd_HSequenceOfTransient) list = Sharings(ent);
-  if (list.IsNull()) S <<"  Root"<<std::endl;
+  if (list.IsNull()) S <<"  Root"<<'\n';
   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 <<std::endl;
+    S <<'\n';
   }
   list = Shareds (ent);
-  if (list.IsNull()) S <<"  No sub-entity"<<std::endl;
+  if (list.IsNull()) S <<"  No sub-entity"<<'\n';
   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 <<std::endl;
+    S <<'\n';
   }
 }
 
@@ -3525,20 +3525,20 @@ void IFSelect_WorkSession::EvaluateSelection
     catch (Standard_Failure const& anException) {
       sout<<"    ****    Interruption EvaluateSelection par Exception    ****  Intitule\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<std::endl;
+      sout<<"\n    Abandon"<<'\n';
     }
     errhand = theerrhand;
     return;
   }
 
   if (!IsLoaded())
-    {  sout<< " ***  Data for Evaluation not available  ***"<<std::endl;  return;  }
+    {  sout<< " ***  Data for Evaluation not available  ***"<<'\n';  return;  }
   if (ItemIdent(sel) == 0)
-    {  sout << " Selection :  Unknown"<<std::endl;  return;  }  //sout<<Handle
+    {  sout << " Selection :  Unknown"<<'\n';  return;  }  //sout<<Handle
   Interface_EntityIterator iter = EvalSelection (sel);
   ListEntities (iter, 1, sout);
   sout << "****  (Unique) RootResult, Selection        : "
-    <<sel->Label()<<std::endl;
+    <<sel->Label()<<'\n';
 }
 
 
@@ -3563,7 +3563,7 @@ void IFSelect_WorkSession::EvaluateDispatch
     catch (Standard_Failure const& anException) {
       sout<<"    ****    Interruption EvaluateDispatch par Exception    ****  Intitule\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<std::endl;
+      sout<<"\n    Abandon"<<'\n';
     }
     errhand = theerrhand;
     return;
@@ -3571,12 +3571,12 @@ void IFSelect_WorkSession::EvaluateDispatch
 
   Standard_Integer numdisp = DispatchRank(disp);
   if (!IsLoaded())
-    {  sout<< " ***  Data for List not available  ***"<<std::endl;  return;  }
+    {  sout<< " ***  Data for List not available  ***"<<'\n';  return;  }
   if (theshareout->NbDispatches() < numdisp || numdisp <= 0)
-    { sout<<"Dispatch :  Unknown"<<std::endl; return; } //sout<<Handle
+    { sout<<"Dispatch :  Unknown"<<'\n'; return; } //sout<<Handle
   if (disp->FinalSelection().IsNull())
-    { sout<<"Dispatch  : No Final Selection"<<std::endl; return; }//sout<<Handle
-  sout<<" --- Dispatch Label : "<<disp->Label()<<std::endl
+    { sout<<"Dispatch  : No Final Selection"<<'\n'; return; }//sout<<Handle
+  sout<<" --- Dispatch Label : "<<disp->Label()<<'\n'
 
   IFSelect_ShareOutResult eval(disp,thegraph->Graph());
   eval.Evaluate();
@@ -3585,34 +3585,34 @@ void IFSelect_WorkSession::EvaluateDispatch
     eval.Packets (mode ? Standard_True : Standard_False);
   Standard_Integer nbpack = evres->NbPackets();
 
-  sout<<"Nb Packets produced : "<<nbpack<<" :"<<std::endl;
+  sout<<"Nb Packets produced : "<<nbpack<<" :"<<'\n';
   for (numpack = 1; numpack <= nbpack; numpack ++) {
-    sout<<"\n    ****    Packet n0 : "<<numpack<<" ****"<<std::endl;
-    if (!mode) std::cout<<"Root Entities :"<<std::endl;
+    sout<<"\n    ****    Packet n0 : "<<numpack<<" ****"<<'\n';
+    if (!mode) std::cout<<"Root Entities :"<<'\n';
     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<<std::endl;
+    sout<<'\n';
     if (evres->NbDuplicated(0,Standard_False) == 0)
-      sout<<"    ****    All the Model is taken into account    ****"<<std::endl;
+      sout<<"    ****    All the Model is taken into account    ****"<<'\n';
     else {
-      sout<<"    ****    Starting Entities not taken by this Dispatch    ****"<<std::endl;
+      sout<<"    ****    Starting Entities not taken by this Dispatch    ****"<<'\n';
       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"<<std::endl;
+    if (max < 2) sout<<" :   There are none"<<'\n';
     else {
       Standard_Integer newcount;
-      sout<<std::endl;
+      sout<<'\n';
       for (newcount = 2; newcount <= max; newcount ++) {
        if (evres->NbDuplicated(newcount,Standard_False) == 0) continue;
-       sout<<"    ****   Entities put in "<<newcount<<" packets    ****"<<std::endl;
+       sout<<"    ****   Entities put in "<<newcount<<" packets    ****"<<'\n';
        ListEntities (evres->Duplicated(newcount,Standard_False), 2, sout);
       }
     }
@@ -3641,52 +3641,52 @@ void IFSelect_WorkSession::EvaluateComplete
     catch (Standard_Failure const& anException) {
       sout<<"    ****    Interruption EvaluateComplete par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<std::endl;
+      sout<<"\n    Abandon"<<'\n';
     }
     errhand = theerrhand;
     return;
   }
 
   if (!IsLoaded())
-    {  sout<< " ***  Data for List not available  ***"<<std::endl;  return;  }
+    {  sout<< " ***  Data for List not available  ***"<<'\n';  return;  }
   IFSelect_ShareOutResult eval(theshareout,thegraph->Graph());
   eval.Evaluate();
   sout<<"\n********    Evaluation ShareOutResult (Complete)    ********\n";
-  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;
+  sout<<"    ****    List of Packets    ****  Count : "<<eval.NbPackets()<<'\n';
+  if (mode == 0) sout << " ** (for each one : Root Entities)  **"<<'\n';
+  else sout << " ** (for each one : Evaluated Content)  **"<<'\n';
 
   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<<" :"<<std::endl;
+  sout<<"Nb Packets produced : "<<nbpack<<" :"<<'\n';
   for (numpack = 1; numpack <= nbpack; numpack ++) {
-    sout<<"\n    ****    Packet n0 : "<<numpack<<" ****"<<std::endl;
-    if (!mode) std::cout<<"Root Entities :"<<std::endl;
+    sout<<"\n    ****    Packet n0 : "<<numpack<<" ****"<<'\n';
+    if (!mode) std::cout<<"Root Entities :"<<'\n';
     ListEntities (evres->Entities(numpack), (mode ? 2: -1), sout);
   }
   if (mode == 0) return;
   if (mode == 1 || mode == 3) {
-    sout<<std::endl;
+    sout<<'\n';
     if (evres->NbDuplicated(0,Standard_False) == 0)
-      sout<<"    ****    All the Model is taken into account    ****"<<std::endl;
+      sout<<"    ****    All the Model is taken into account    ****"<<'\n';
     else {
-      sout<<"    ****    Starting Entities Forgotten    ****"<<std::endl;
+      sout<<"    ****    Starting Entities Forgotten    ****"<<'\n';
       ListEntities (evres->Duplicated(0,Standard_False), 2, sout);
     }
   }
   if (mode >= 2) {
-    sout<<"    ****    Entites in more than one packet    ****"<<std::endl;
+    sout<<"    ****    Entites in more than one packet    ****"<<'\n';
     Standard_Integer max = evres->HighestDuplicationCount();
-    if (max < 2) sout<<" :   There are none"<<std::endl;
+    if (max < 2) sout<<" :   There are none"<<'\n';
     else {
       Standard_Integer newcount;
-      sout<<std::endl;
+      sout<<'\n';
       for (newcount = 2; newcount <= max; newcount ++) {
        if (evres->NbDuplicated(newcount,Standard_False) == 0) continue;
-       sout<<"    ****   Entities put in "<<newcount<<" packets    ****"<<std::endl;
+       sout<<"    ****   Entities put in "<<newcount<<" packets    ****"<<'\n';
        ListEntities (evres->Duplicated(newcount,Standard_False), 2, sout);
       }
     }
@@ -3707,9 +3707,9 @@ void IFSelect_WorkSession::ListEntities
 {
   int titre = 0;
   Standard_Integer mode = (mmode < 0 ? -mmode : mmode);
-  if (mmode >= 0) sout << " List of " << iter.NbEntities() << " Entities :"<<std::endl;
+  if (mmode >= 0) sout << " List of " << iter.NbEntities() << " Entities :"<<'\n';
   if (!IsLoaded())
-    {  sout<< " ***  Data for List not available  ***"<<std::endl;  return;  }
+    {  sout<< " ***  Data for List not available  ***"<<'\n';  return;  }
   Interface_ShareFlags tool(thegraph->Graph());
 
   try {
@@ -3717,9 +3717,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-----------          ----...."<<std::endl;
+       << "Number/Id.           Category Validity    Type\n-----------          ----...."<<'\n';
 //          123456789 123456789 123456  123456789 123456789 123456
-      if (!titre && mode == 0) sout<<"  Keys : R Root   ? Unknown   * Unloaded"<<std::endl;
+      if (!titre && mode == 0) sout<<"  Keys : R Root   ? Unknown   * Unloaded"<<'\n';
       if (!titre && mode == 2) sout<<"(";
       titre = 1;
       const Handle(Standard_Transient)& ent = iter.Value();
@@ -3734,14 +3734,14 @@ void IFSelect_WorkSession::ListEntities
        if (catnum > 0) sout<<"  "<<Interface_Category::Name (catnum);
        sout << "  (" << ValidityName (ent) << ")  ";
 
-       sout<<" Type:"<<myModel->TypeName (ent, Standard_False)<<std::endl;
+       sout<<" Type:"<<myModel->TypeName (ent, Standard_False)<<'\n';
       } else if (mode == 2) {
        newcount ++;
        if (newcount > 0) sout<<",";
        sout<<num;
       } else {
        newcount ++;  mods = 0; cnt ++;
-       if      (newcount >= 10) { sout << std::endl<<"["<<cnt<<"]:"; newcount = 1; }
+       if      (newcount >= 10) { sout << '\n'<<"["<<cnt<<"]:"; newcount = 1; }
        if (newcount > 0)  sout << "    ";
        myModel->Print (ent, sout, 0);
        if (!tool.IsShared(ent)) { if(mods == 0) sout<<"("; sout<<"R"; mods++; }
@@ -3750,12 +3750,12 @@ void IFSelect_WorkSession::ListEntities
        if (mods) { sout<<")"; newcount ++; }
       }
     }
-    if (mode == 0) sout<<std::endl;
-    if (mode == 2) sout<<")"<<std::endl;
+    if (mode == 0) sout<<'\n';
+    if (mode == 2) sout<<")"<<'\n';
   }
   catch (Standard_Failure const& anException) {
     sout<<"    ****    Interruption ListEntities par Exception :   ****\n";
     sout<<anException.GetMessageString();
-    sout<<"\n    Abandon"<<std::endl;
+    sout<<"\n    Abandon"<<'\n';
   }
 }
index 251b82445b5e6c99a725149b42e50229de3a6686..a948a5c889dc5e1ff44fd1648324b2c57ac1bbf7 100644 (file)
@@ -127,14 +127,14 @@ void  IGESAppli_ToolDrilledHole::OwnDump
   (const Handle(IGESAppli_DrilledHole)& ent, const IGESData_IGESDumper& /*dumper*/,
    Standard_OStream& S, const Standard_Integer /*level*/) const
 {
-  S << "IGESAppli_DrilledHole" << std::endl;
+  S << "IGESAppli_DrilledHole" << '\n';
 
-  S << "Number of property values : " << ent->NbPropertyValues() << std::endl;
+  S << "Number of property values : " << ent->NbPropertyValues() << '\n';
   S << "Drill  diameter size :" << ent->DrillDiaSize() << "  ";
-  S << "Finish diameter size : "  << ent->FinishDiaSize() << std::endl;
+  S << "Finish diameter size : "  << ent->FinishDiaSize() << '\n';
   S << "Plating indication flag : ";
   if (!ent->IsPlating())   S << "NO"  << "  -  ";
   else                     S << "YES  -  ";
   S << "Lower Numbered Layer  : " << ent->NbLowerLayer() << "  ";
-  S << "Higher Numbered Layer : " << ent->NbHigherLayer() << std::endl;
+  S << "Higher Numbered Layer : " << ent->NbHigherLayer() << '\n';
 }
index cc1477807c09327afbbdde54d5efbb35b3421083..170b330ad2d4f57249f090eec7e9670b3281c97a 100644 (file)
@@ -132,5 +132,5 @@ void  IGESAppli_ToolFiniteElement::OwnDump
   S << "Nodes : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbNodes(),ent->Node);
   S << "\nElement Name : " << ent->Name()->String();
-  S << std::endl;
+  S << '\n';
 }
index 783a2f89686b42ded5c58aac2ca6ee26d28a8c9c..bfba455d7836a5f722ce225896043ed98618e407 100644 (file)
@@ -322,6 +322,6 @@ void  IGESAppli_ToolFlow::OwnDump
   S << "\nContinuation Flow Associativities : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbContFlowAssociativities(),
                        ent->ContFlowAssociativity);
-  S << std::endl;
+  S << '\n';
 }
 
index a1bbd73f40f228ec471f45fb3421576f826baa55..4d98304012469cd461af6654b7d6efb12606d14d 100644 (file)
@@ -161,8 +161,8 @@ void  IGESAppli_ToolLineWidening::OwnDump
     S << "incorrect value\n";
 
   if (ent->ExtensionFlag() == 2)
-    S << "Extension Value : " << ent->ExtensionValue()  << std::endl;
+    S << "Extension Value : " << ent->ExtensionValue()  << '\n';
   else
-    S << "No Extension Value (Extension Flag != 2)" << std::endl;
+    S << "No Extension Value (Extension Flag != 2)" << '\n';
 }
 
index 45f7b52cc72df617585fab6b7d753facfdcb9296..d357908ee4a7110b0a0513973065c99a87c16c04 100644 (file)
@@ -138,5 +138,5 @@ void  IGESAppli_ToolNodalConstraint::OwnDump
   S << "\n";
   S << "Tabular Data Properties : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbCases(),ent->TabularData);
-  S << std::endl;
+  S << '\n';
 }
index 2528bb9b26c3ee0ffed4b235e7b8681f0bc2f421..c9075a1540a5e5588e586d2a275345dc3f62e6d1 100644 (file)
@@ -231,7 +231,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" << std::endl;
+      S << "  TO BE DONE" << '\n';
       break;
     case 5:
     case 6: {
@@ -239,7 +239,7 @@ void  IGESAppli_ToolNodalDisplAndRot::OwnDump
        {
          S << "[" << i << "]: ";
          dumper.Dump (ent->Note(i),S, 1);
-         S << std::endl;
+         S << '\n';
        }
       S << "Nodes :\n";
       S << "Node Identifiers :\n";
@@ -273,5 +273,5 @@ void  IGESAppli_ToolNodalDisplAndRot::OwnDump
       break;
     default: break;
     }
-  S << std::endl;
+  S << '\n';
 }
index 841ab972a93b47ff528d1766b9a7a74bfaf55f18..cb855bd63ae9636e42c722a141fbcb62bc791652 100644 (file)
@@ -118,5 +118,5 @@ void  IGESAppli_ToolNode::OwnDump
     dumper.Dump(ent->System(),S, level);
   else
     S << "Global Cartesian Coordinate System (default)";
-  S << std::endl;
+  S << '\n';
 }
index e8cc239b82efa6182670eb3763909928424a1e2f..fe02d892ae4e9564dc62387113d12cb99c63bbc7 100644 (file)
@@ -119,5 +119,5 @@ void  IGESAppli_ToolPWBArtworkStackup::OwnDump
   S << "\n";
   S << "Level Numbers : ";
   IGESData_DumpVals(S,level,1, ent->NbLevelNumbers(),ent->LevelNumber);
-  S << std::endl;
+  S << '\n';
 }
index ca35badc5a2dbb075552e49b56090317952ed2b3..46d81f14133e2d6f644a6821aecfe0f8e1247897 100644 (file)
@@ -121,5 +121,5 @@ void  IGESAppli_ToolPWBDrilledHole::OwnDump
     << "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;
+    << "Drilled Hole Function Code : " << ent->FunctionCode() << '\n';
 }
index e5a1536d821e1e3134a223f4198e0ecd87d10c52..2b2d2f1eb131632823d0411b43e564172c6328b4 100644 (file)
@@ -142,5 +142,5 @@ void  IGESAppli_ToolPartNumber::OwnDump
   S << "\n";
   S << "Internal Number or Name : ";
   IGESData_DumpString(S,ent->InternalNumber());
-  S << std::endl;
+  S << '\n';
 }
index 8912ed727078515afa7ec923ebf0b7da389758b2..3b449b4d7ae84f2fd5790debb186b696a4ac3565 100644 (file)
@@ -118,5 +118,5 @@ void  IGESAppli_ToolPinNumber::OwnDump
   S << "Number of Property Values : " << ent->NbPropertyValues() << "\n";
   S << "PinNumber : ";
   IGESData_DumpString(S,ent->PinNumberVal());
-  S << std::endl;
+  S << '\n';
 }
index a4e7cd01f262398a9b5dfe01bd9013de589c16f5..41b3b5f090de8d1f368e42e56b7eb38d871b85db 100644 (file)
@@ -302,6 +302,6 @@ void  IGESAppli_ToolPipingFlow::OwnDump
   S << "Continuation Flow Associativities : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbContFlowAssociativities(),
                        ent->ContFlowAssociativity);
-  S << std::endl;
+  S << '\n';
 }
 
index 789a313217c1815a965f772637220d6a3c1f4741..21809015033e1d65841c5187414afc030db08143 100644 (file)
@@ -123,5 +123,5 @@ void  IGESAppli_ToolReferenceDesignator::OwnDump
   S << "Number of Property Values : " << ent->NbPropertyValues() << "\n";
   S << "ReferenceDesignator : ";
   IGESData_DumpString(S,ent->RefDesignatorText());
-  S << std::endl;
+  S << '\n';
 }
index e974c4563b0bd957ede14e6eb5bd7b09858462db..8f2ade6fc64f3ee8e8b2637a91dfbfe6b21ffcb4 100644 (file)
@@ -132,5 +132,5 @@ void  IGESAppli_ToolRegionRestriction::OwnDump
     << "Electrical components restriction : "
     << ent->ElectricalComponentRestriction() << "\n"
     << "Electrical circuitary restriction : "
-    << ent->ElectricalCktRestriction()  << std::endl;
+    << ent->ElectricalCktRestriction()  << '\n';
 }
index 9c79ca3d88c85eae2e4c1febf653421c5e5cca16..de345949b9e9045495c2a6d22549a909dd277281 100644 (file)
@@ -115,5 +115,5 @@ void  IGESBasic_ToolAssocGroupType::OwnDump
     << "Type of attached associativity : " << ent->AssocType() << "\n"
     << "Name of attached associativity : ";
   IGESData_DumpString(S,ent->Name());
-  S << std::endl;
+  S << '\n';
 }
index 5a1483cfd79f65af2987b754d926bb80ec23dc5e..300deb35709d950aa404ab22e41ca49e30582b17 100644 (file)
@@ -93,5 +93,5 @@ void  IGESBasic_ToolExternalRefFile::OwnDump
   S << "IGESBasic_ExternalRefFile\n"
     << "External Reference File Identifier : ";
   IGESData_DumpString(S,ent->FileId());
-  S << std::endl;
+  S << '\n';
 }
index 88478bf2c6d6247f4498a15bafd1fd87be461582..93be454b34ac2fecd6cdc941aa9db36e8bbe9cc1 100644 (file)
@@ -149,5 +149,5 @@ void  IGESBasic_ToolExternalRefFileIndex::OwnDump
        dumper.Dump (ent->Entity(i),S, 1);
        S << "\n";
       }
-  S << std::endl;
+  S << '\n';
 }
index 6d1e20c7400b3528a985aa992c47b311a239b89b..b8eeaa8bb60f8ec35fe30a873fdb402edd3c812a 100644 (file)
@@ -104,5 +104,5 @@ void  IGESBasic_ToolExternalRefFileName::OwnDump
   S << "\n"
     << "External Reference Symbolic Name : ";
   IGESData_DumpString(S,ent->ReferenceName());
-  S << std::endl;
+  S << '\n';
 }
index ee24ab565ba979212753f5cae7532facf12898ca..002abc4fe5daadfc4956ecdf6c2c713727f587c5 100644 (file)
@@ -101,5 +101,5 @@ void  IGESBasic_ToolExternalRefLibName::OwnDump
   S << "\n"
     << "External Reference Symbolic Name : ";
   IGESData_DumpString(S,ent->ReferenceName());
-  S << std::endl;
+  S << '\n';
 }
index 1c0135ea154220bb300dbabb4066dd8767b6fcbc..244017c5d3ea3b1c861441aab03ac8154410e2b5 100644 (file)
@@ -93,5 +93,5 @@ void  IGESBasic_ToolExternalRefName::OwnDump
   S << "IGESBasic_ExternalRefName\n"
     << "External Reference Symbolic Name : ";
   IGESData_DumpString(S,ent->ReferenceName());
-  S << std::endl;
+  S << '\n';
 }
index 806b576b20136bb2e7c7a73f7ae62dc885b7d045..fd893336bc5127d44ae8d8514483cd9b2e992f79 100644 (file)
@@ -108,5 +108,5 @@ void  IGESBasic_ToolExternalReferenceFile::OwnDump
   S << "IGESBasic_ExternalReferenceFile\n"
     << "External Reference Names : ";
   IGESData_DumpStrings(S,level,1, ent->NbListEntries(),ent->Name);
-  S << std::endl;
+  S << '\n';
 }
index 3fa773db3b6cca42267f0abad9452f68c9ad69d7..8a4d46875f816808daedd953ae07ccbf5b861f56 100644 (file)
@@ -166,6 +166,6 @@ void IGESBasic_ToolGroup::OwnDump
   S << "IGESBasic_Group\n"
     << "Entries in the Group : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
-  S << std::endl;
+  S << '\n';
 }
 
index 2e05a72237bdd20273b853981835457e2bdbc3ba..e9fa4d03d1dada727fa131065409f826f0be1d28 100644 (file)
@@ -164,6 +164,6 @@ void  IGESBasic_ToolGroupWithoutBackP::OwnDump
   S << "IGESBasic_GroupWithoutBackP\n"
     << "Entries in the Group : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
-  S << std::endl;
+  S << '\n';
 }
 
index e0bcae04dd1cf0dd84dd3ef2f7bad5725d36743d..3139004b3a313aecc511a69bedb95e5049bd4898 100644 (file)
@@ -136,5 +136,5 @@ void  IGESBasic_ToolHierarchy::OwnDump
     << "Entity level : " << ent->NewEntityLevel() << "\n"
     << "Blank status : " << ent->NewBlankStatus() << "\n"
     << "Line weight  : " << ent->NewLineWeight() << "\n"
-    << "Color number : " << ent->NewColorNum() << std::endl;
+    << "Color number : " << ent->NewColorNum() << '\n';
 }
index cbcfd4d795f4aed8b6c67eeb05d5dee406ded8b0..33224058a3feb558a6ac61395b7d34ecd3232286 100644 (file)
@@ -107,5 +107,5 @@ void  IGESBasic_ToolName::OwnDump
     << "Number of property values : " << ent->NbPropertyValues() << "\n"
     << "Name : ";
   IGESData_DumpString(S,ent->Value());
-  S << std::endl;
+  S << '\n';
 }
index 1d04c4492582711a3b3547b0887fe27ee062bc2f..1bce018edeee2f1a0502947635cb6fdcfac25c88 100644 (file)
@@ -155,6 +155,6 @@ void  IGESBasic_ToolOrderedGroup::OwnDump
   S << "IGESBasic_OrderedGroup\n"
     << "Entries in the Group : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
-  S << std::endl;
+  S << '\n';
 }
 
index cd890e737c6a5fa6642607dca29b4d967821feec..da344e5df6c89d662195d3730db54b6efdb0af89 100644 (file)
@@ -156,6 +156,6 @@ void  IGESBasic_ToolOrderedGroupWithoutBackP::OwnDump
   S << "IGESBasic_OrderedGroupWithoutBackP\n"
     << "Entries in the Group : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
-  S << std::endl;
+  S << '\n';
 }
 
index a163f1171cb1c8cb00e23b58e464a50a93b2f0a1..760c2f26130e0d61a33df171e779450dd4b8591a 100644 (file)
@@ -184,5 +184,5 @@ void  IGESBasic_ToolSingleParent::OwnDump
   S << "\n"
     << "Children : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbChildren(),ent->Child);
-  S << std::endl;
+  S << '\n';
 }
index 04029a4ee9c8a8aeb55f4ba4adfb578f7c5db4ae..618776bbd1c5cd217a8d936e607852e1b1aa2cff 100644 (file)
@@ -164,5 +164,5 @@ void  IGESBasic_ToolSingularSubfigure::OwnDump
     << " Translation Data : ";
   IGESData_DumpXYZL(S,level, ent->Translation(), ent->Location());
   S << "  Scale Factors : " << ent->ScaleFactor() << "\n"
-    << std::endl;
+    << '\n';
 }
index 8588168c08d287cd4296b054ae5f711cb78a1ca7..8c76128a7210f43f595acbda0b0b0c77c583bd83 100644 (file)
@@ -149,5 +149,5 @@ void  IGESBasic_ToolSubfigureDef::OwnDump
   S << "\n"
     << "The Associated Entities : ";
   IGESData_DumpEntities(S,dumper,level,1,ent->NbEntities(),ent->AssociatedEntity);
-  S << std::endl;
+  S << '\n';
 }
index 93eb955eafaac4717ba9defc08125ff244fe4e2e..8c1a2f6f50f91fe82af9bbe5cd93b2df7babe35f 100644 (file)
@@ -240,7 +240,7 @@ void  IGESControl_Reader::PrintTransferInfo
       for(; aMapCountIter.More() && aMapListIter.More();
             aMapCountIter.Next(), aMapListIter.Next()) {
         Message_Messenger::StreamBuffer aSender = TF->SendInfo();
-        aSender << aMapCountIter.Value() << aMapCountIter.Key() << std::endl;
+        aSender << aMapCountIter.Value() << aMapCountIter.Key() << '\n';
         if (mode == IFSelect_ListByItem) {
           const Handle(TColStd_HSequenceOfInteger)& entityList = aMapListIter.Value();
           Standard_Integer length = entityList->Length();
@@ -260,7 +260,7 @@ void  IGESControl_Reader::PrintTransferInfo
               aSender << line;
             }
           }
-          aSender << std::endl;
+          aSender << '\n';
         }
       }
       break;
@@ -274,7 +274,7 @@ void  IGESControl_Reader::PrintTransferInfo
       NCollection_DataMap<TCollection_AsciiString, Standard_Integer>::Iterator aMapIter(aMapCountResult);
       for (; aMapIter.More(); aMapIter.Next())
       {
-        TF->SendInfo() << aMapIter.Key() << aMapIter.Value() << std::endl;
+        TF->SendInfo() << aMapIter.Key() << aMapIter.Value() << '\n';
       }
       break;
     }
@@ -304,7 +304,7 @@ void  IGESControl_Reader::PrintTransferInfo
       for(; aMapCountIter.More(); aMapCountIter.Next()) {
         char mess[80];
         sprintf(mess, aMapCountIter.Key().ToCString(), aMapCountIter.Value());
-        TF->SendInfo() << mess << std::endl; //dicoCountIter.Value() << dicoCountIter.Name() << std::endl;
+        TF->SendInfo() << mess << '\n'; //dicoCountIter.Value() << dicoCountIter.Name() << std::endl;
       }
       break;
     }
index 1b3efde211f8add57cfe1e90d8f6475d66e6c135..81a43d08d7a47dbb31a91d21d7affd7e20afc092 100644 (file)
@@ -54,5 +54,5 @@ IGESData_DefaultSpecific::IGESData_DefaultSpecific ()
     else {  S <<"      ["<<i<<"]=" << cont->ParamValue(i)->String();  }
     if ( i == (i%5)*5) S << "\n";
   }
-  S << std::endl;
+  S << '\n';
 }
index ec6c749a26e608af9a8f61b5f3fd1e99a9b9fec7..32426c4f14b2e3ed11e23b39abdbeb697fad0a57 100644 (file)
@@ -108,7 +108,7 @@ IGESData_IGESDumper::IGESData_IGESDumper
   if (own >= 1) {
     if (ent->HasShortLabel()) S <<"****    Label         :"<<ent->ShortLabel()->ToCString();
     if (ent->HasSubScriptNumber()) S <<"    SubScript:"<<ent->SubScriptNumber();
-    if (ent->HasShortLabel())  S <<std::endl;
+    if (ent->HasShortLabel())  S <<'\n';
 
     if (ent->HasTransf())
       {  S <<"**      Transf.Matrix :";  PrintDNum(ent->Transf(),S); S <<"\n"; }
@@ -140,13 +140,13 @@ IGESData_IGESDumper::IGESData_IGESDumper
     if (ent->LineWeightNumber() != 0) {
       S <<"**      LineWeight Num:"<<ent->LineWeightNumber();
       if (diratt > 0) S <<"    ->  Value:"<<ent->LineWeight();
-      S <<std::endl;
+      S <<'\n';
     }
     if (ent->DefColor() == IGESData_DefValue)
       {  S <<"**      Color Value   :"<<ent->RankColor();  }
     else if (ent->DefColor() == IGESData_DefReference)
       {  S <<"**      Color Ref     :";  PrintDNum (ent->Color(),S); }
-    S <<std::endl;
+    S <<'\n';
 
     if (own > 3) {
       S <<"****             Own Data             ****\n\n";
@@ -177,7 +177,7 @@ IGESData_IGESDumper::IGESData_IGESDumper
     }
   }
   if (iasuit) {  if (att <= 1) S << "\n";  }
-  S <<"\n****             End of Dump          ****\n"<<std::endl;
+  S <<"\n****             End of Dump          ****\n"<<'\n';
 }
 
 
@@ -190,8 +190,8 @@ IGESData_IGESDumper::IGESData_IGESDumper
   if (thelib.Select(ent,module,CN))
     module->OwnDump(CN,ent,*this,S,own);
   else if (themodel.IsNull())
-    S <<"  ****  Dump impossible. Type "<<ent->DynamicType()->Name()<<std::endl;
+    S <<"  ****  Dump impossible. Type "<<ent->DynamicType()->Name()<<'\n';
   else
     S <<"  ****  Dump Impossible, n0:id:"<<themodel->Number(ent)<<":D"
-      <<themodel->DNum(ent)<<" Type "<<ent->DynamicType()->Name()<<std::endl;
+      <<themodel->DNum(ent)<<" Type "<<ent->DynamicType()->Name()<<'\n';
 }
index 7f17a73e288d736a598db8ccf71deecee672846b..a11779ee411df974a19bd081298833337802b103 100644 (file)
@@ -77,11 +77,11 @@ void IGESData_IGESModel::DumpHeader
   (Standard_OStream& S, const Standard_Integer ) const
 {
   Standard_Integer ns = thestart->Length();
-  S <<"****    Dump of IGES Model , Start and Global Sections   ****"<<std::endl;
+  S <<"****    Dump of IGES Model , Start and Global Sections   ****"<<'\n';
   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()<<std::endl;
+      S <<"["<<(i<10 ? " ": "")<<i<<"]:"<<thestart->Value(i)->ToCString()<<'\n';
   }
   S << "\n****    Global Section    ****\n";
   char sep = theheader.Separator();
@@ -93,16 +93,16 @@ void IGESData_IGESModel::DumpHeader
   S <<"\n";
   Handle(TCollection_HAsciiString) str;
   str = theheader.SendName();
-  if (!str.IsNull()) S <<"[ 3]  Sender                : "<<str->ToCString()<<std::endl;
+  if (!str.IsNull()) S <<"[ 3]  Sender                : "<<str->ToCString()<<'\n';
   str = theheader.FileName();
-  if (!str.IsNull()) S <<"[ 4]  (recorded) File Name  : "<<str->ToCString()<<std::endl;
+  if (!str.IsNull()) S <<"[ 4]  (recorded) File Name  : "<<str->ToCString()<<'\n';
   str = theheader.SystemId();
-  if (!str.IsNull()) S <<"[ 5]  System Identification : "<<str->ToCString()<<std::endl;
+  if (!str.IsNull()) S <<"[ 5]  System Identification : "<<str->ToCString()<<'\n';
   str = theheader.InterfaceVersion();
-  if (!str.IsNull()) S <<"[ 6]  Interface Version     : "<<str->ToCString()<<std::endl;
-  S <<std::endl;
+  if (!str.IsNull()) S <<"[ 6]  Interface Version     : "<<str->ToCString()<<'\n';
+  S <<'\n';
   S << "[ 7]  Integer Bits          : " << theheader.IntegerBits()
-    << "          Features for Reals : " << std::endl;
+    << "          Features for Reals : " << '\n';
   S << "[ 8]  Single Max.Power(10)  : " << theheader.MaxPower10Single();
   S << "         [ 9]  Digits   : " << theheader.MaxDigitsSingle()<<"\n";
   S << "[10]  Double Max.Power(10)  : " << theheader.MaxPower10Double();
@@ -142,21 +142,21 @@ void IGESData_IGESModel::DumpHeader
   num = theheader.DraftingStandard();
   S << "\n[24]  Drafting Standard     : " << num;
   if (num > 0) S << "   -> Name : " << IGESData_BasicEditor::DraftingName(num);
-  S <<std::endl;
+  S <<'\n';
 
   if (theheader.HasLastChangeDate()) {
     str = theheader.LastChangeDate();
     S <<  "[25]  Last Change Date      : " << str->ToCString() 
-      <<"  i.e. "<<IGESData_GlobalSection::NewDateString(str,1)->ToCString()<<std::endl;
+      <<"  i.e. "<<IGESData_GlobalSection::NewDateString(str,1)->ToCString()<<'\n';
   }
-  else S <<"[25]  Last Change Date        not defined (version IGES < 5.1)" << std::endl;
+  else S <<"[25]  Last Change Date        not defined (version IGES < 5.1)" << '\n';
 
   if (theheader.HasApplicationProtocol()) {
     str = theheader.ApplicationProtocol();
-    S <<  "[26]  Application Protocol  : " << str->ToCString() <<std::endl;
+    S <<  "[26]  Application Protocol  : " << str->ToCString() <<'\n';
   }
 
-  S << " ****     End of Dump      ****"<<std::endl;
+  S << " ****     End of Dump      ****"<<'\n';
 }
 
 
index 3cedb50b36746027b4b0eb1216f0c07a25f00265..8f6d0c93ce2b9db3aa27a10b1d1f717af016902c 100644 (file)
@@ -127,7 +127,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<<"  --"<<std::endl;
+      sout << " --  IGESWriter : Erroneous Entity N0."<<i<<"  --"<<'\n';
       Handle(Interface_ReportEntity) rep = themodel->ReportEntity(i);
       if (!rep.IsNull()) cnt = GetCasted(IGESData_IGESEntity,rep->Content());
       if (cnt.IsNull())  cnt = ent;    // secours
@@ -146,7 +146,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()<<std::endl;
+      <<cnt->TypeNumber()<<"  Form "<<cnt->FormNumber()<<'\n';
 
     Associativities (cnt);
     Properties      (cnt);
@@ -492,12 +492,12 @@ Standard_Boolean IGESData_IGESWriter::Print (Standard_OStream& S) const
   Standard_Integer nbs = 1;
   if (thestar.IsNull()) {
     if (fnes) {
-      S << "                              ***  EUCLID/STRIM  DESKTOP CLIPBOARD  ***"<<std::endl;
+      S << "                              ***  EUCLID/STRIM  DESKTOP CLIPBOARD  ***"<<'\n';
       writefnes (S,"                                                                        S0000001");
     }
     else S <<"                                                                        S0000001";
 //      123456789 123456789 123456789 123456789 123456789 123456789 123456789 12
-    S << std::endl;
+    S << '\n';
   } else {
     nbs = thestar->Length();
     for (i = 1; i <= nbs; i ++) {
@@ -511,7 +511,7 @@ Standard_Boolean IGESData_IGESWriter::Print (Standard_OStream& S) const
       S << &blancs[line->Length()];
       if (fnes) writefnes (S,finlin);
       else S << finlin;
-      S << std::endl;
+      S << '\n';
     }
   }
 #ifdef PATIENCELOG
@@ -531,7 +531,7 @@ Standard_Boolean IGESData_IGESWriter::Print (Standard_OStream& S) const
     S << &blancs[line->Length()];
     if (fnes) writefnes (S,finlin);
     else S << finlin;
-    S << std::endl;
+    S << '\n';
     isGood = S.good();
   }
   if(!isGood)
@@ -591,7 +591,7 @@ Standard_Boolean IGESData_IGESWriter::Print (Standard_OStream& S) const
       S << &blancs[line->Length()];
       if (fnes) writefnes (S,finlin);
       else S << finlin;
-      S << std::endl;
+      S << '\n';
       isGood = S.good();
 #ifdef PATIENCELOG
       lignespatience --;
index 0af582ca1b22ed8314df9b6fd3d2586bb3c8a71c..aa89af547204d1b55381a71ed0bda68ae0ebb75b 100644 (file)
@@ -184,7 +184,7 @@ void  IGESDefs_ToolAssociativityDef::OwnDump
     << "Number Of Items per Entry :\n"
     << "Items :\n";
   IGESData_DumpVals(S,-level,1, ent->NbClassDefs(),ent->BackPointerReq);
-  S << std::endl;
+  S << '\n';
   if (level > 4)
     {
 // Warning : Item is a JAGGED Array
@@ -208,6 +208,6 @@ void  IGESDefs_ToolAssociativityDef::OwnDump
        S << "]\n";
       }
     }
-  S << std::endl;
+  S << '\n';
 }
 
index d6215e9e048169c8a46d2ae245a9cb298e9a2b58..92e441bbb5cc7447eb338c6003e65e9f63c2737b 100644 (file)
@@ -508,10 +508,10 @@ void IGESDefs_ToolAttributeDef::OwnDump
                       S << "  Attribute Value Pointer : ";
                       dumper.Dump (ent->AttributeTextDisplay(i,j),S, sublevel);
                    }
-                 S << std::endl;
+                 S << '\n';
                }
            }
        }
     }
-  S << std::endl;
+  S << '\n';
 }
index 2f9ca931984ea5205853506a226ce24a07b08852..d2003cb3f2d042a3c642349832f7a6aee40d37e4 100644 (file)
@@ -347,5 +347,5 @@ void  IGESDefs_ToolAttributeTable::OwnDump
            S << "\n";
          }
       }
-  S << std::endl;
+  S << '\n';
 }
index e3f4f141990ba197de475de314562475ff0e7538..417717db2c4fbfc9ce5871ed19b7b6216d9edea3 100644 (file)
@@ -256,7 +256,7 @@ void  IGESDefs_ToolGenericData::OwnDump
     << "Number of property values : " << ent->NbPropertyValues() << "\n"
     << "Property Name : ";
   IGESData_DumpString(S,ent->Name());
-  S << std::endl;
+  S << '\n';
   switch (level)
     {
     case 4:
@@ -292,5 +292,5 @@ void  IGESDefs_ToolGenericData::OwnDump
           }
       }
     }
-  S << std::endl;
+  S << '\n';
 }
index f3b942df64359d76b2ac6b25e79240e497f5726a..1debede15bd423958245bcfbff22c5d350f6ef65 100644 (file)
@@ -151,5 +151,5 @@ void  IGESDefs_ToolMacroDef::OwnDump
   IGESData_DumpStrings(S,level,1, ent->NbStatements(),ent->LanguageStatement);
   S << "END MACRO : ";
   IGESData_DumpString(S,ent->ENDMACRO());
-  S << std::endl;
+  S << '\n';
 }
index 39b183931c1a115b075848a9ac585ef470a88a74..937b624cf61fdf29dfc24494b82b8a1580239006 100644 (file)
@@ -236,19 +236,19 @@ void IGESDefs_ToolTabularData::OwnDump
   S << "\nNumber of values of independent variables : ";
   IGESData_DumpVals(S,level,1, nbIndeps,ent->NbValues);
 // ?? JAGGED ??
-  S << std::endl << "Values of the independent variable : ";
+  S << '\n' << "Values of the independent variable : ";
   if (level < 5) S << " [ask level > 4]";
   else {
     for (Standard_Integer ind = 1; ind <= nbIndeps; ind ++) {
-      S << std::endl << "[" << ind << "]:";
+      S << '\n' << "[" << ind << "]:";
       Standard_Integer nbi = ent->NbValues(ind);
       for (Standard_Integer iv = 1; iv <= nbi; iv ++)
        S << " " << ent->IndependentValue(ind,iv);
     }
   }
 //  IGESData_DumpVals(aSender,level,1, nbIndeps,ent->IndependentValue);
-  S << std::endl << "Values of the dependent variable : ";
+  S << '\n' << "Values of the dependent variable : ";
 //  IGESData_DumpVals(aSender,level,1, nbDeps,ent->DependentValue);
   S << "  TO BE DONE"
-    << std::endl;
+    << '\n';
 }
index e6811be80b473435928384fd2f247da2321822f3..5454d1a28bd77505e35b24af7bb7ab5b08c3fb51 100644 (file)
@@ -173,5 +173,5 @@ void  IGESDefs_ToolUnitsData::OwnDump
             << "     ScaleFactor: " << ent->ScaleFactor(i) << "\n";
        }
     }
-  S << std::endl;
+  S << '\n';
 }
index ffda8406188da91b782d04b113ba75adeffadaf2..bc702a4236f5bb9881a7fa7df93c47f17b5b7e28 100644 (file)
@@ -164,6 +164,6 @@ void  IGESDimen_ToolAngularDimension::OwnDump
   S << "\n"
     << "Second Leader Entity  : ";
   dumper.Dump(ent->SecondLeader(),S, sublevel);
-  S << std::endl;
+  S << '\n';
 }
 
index 705065f8b08dbbeaebae83f9dea1e2e2b450d74b..4caa09ce105cb9b7906b0b150413adb94a07fefe 100644 (file)
@@ -130,6 +130,6 @@ void  IGESDimen_ToolBasicDimension::OwnDump
   IGESData_DumpXY(S, ent->UpperRight());
   S << "\n  Upper left corner  : ";
   IGESData_DumpXY(S, ent->UpperLeft());
-  S << std::endl;
+  S << '\n';
 }
 
index b9beb41dd4e136f237aef1d155c60833c3ddd7f4..48283a72e7c67b32bf5fba8a74d5a785801b1f0f 100644 (file)
@@ -166,5 +166,5 @@ void  IGESDimen_ToolCenterLine::OwnDump
     << "Data Points :\n";
   IGESData_DumpListXYLZ(S,level,1, ent->NbPoints(),ent->Point,
                        ent->Location(), ent->ZDisplacement());
-  S << std::endl;
+  S << '\n';
 }
index 8de88a2e67ffdccf314ac4ceba42ee56d33f23c6..c01beb0d29ff21f7ef6c71a5b0fef0432ee10658 100644 (file)
@@ -174,5 +174,5 @@ void  IGESDimen_ToolCurveDimension::OwnDump
   S << "\n"
     << "Second Witness Entity : ";
   dumper.Dump(ent->SecondWitnessLine(),S, sublevel);
-  S << std::endl;
+  S << '\n';
 }
index 6a2ebf953da6ed866492c1173dff217e4cb77bb7..85118ecf75ec9d8a8562a6a0d962f69fe64a0dd4 100644 (file)
@@ -134,6 +134,6 @@ void  IGESDimen_ToolDiameterDimension::OwnDump
   S << "\n"
     << "Center Point : ";
   IGESData_DumpXYL(S,level, ent->Center(), ent->Location());
-  S << std::endl;
+  S << '\n';
 }
 
index d23936275369678d62bf5baa358e40c3b9ba57f7..2f7117632a4a97fbfff25c0fd11ec341ad528f9f 100644 (file)
@@ -348,5 +348,5 @@ void  IGESDimen_ToolDimensionDisplayData::OwnDump
          << ", Start Index : " << ent->StartIndex(i)
          << ", End Index : "   << ent->EndIndex(i) << "\n";
       }
-  S << std::endl;
+  S << '\n';
 }
index 195d146f8ac8a8405701f1b047e8198d324a12ae..16cda51253fe3f795ccbef953cbdda56ec1ae077 100644 (file)
@@ -161,6 +161,6 @@ void  IGESDimen_ToolDimensionTolerance::OwnDump
     << "Lower Tolerance          : " << ent->LowerTolerance() << "\n"
     << "Sign Suppression Flag    : " << ( ent->SignSuppressionFlag() ? "True" : "False" ) << "\n"
     << "Fraction Flag            : " << ent->FractionFlag() << "\n"
-    << "Precision                : " << ent->Precision() << std::endl;
+    << "Precision                : " << ent->Precision() << '\n';
 }
 
index 3ae37b44fa02b97d36f017e24fd14e88002a8e55..495121c38ef7ca9e1bc79d36f76a8412f7ee06f9 100644 (file)
@@ -159,5 +159,5 @@ void  IGESDimen_ToolDimensionUnits::OwnDump
     << "Fraction Flag   : " << ent->FractionFlag();
   if (ent->FractionFlag() == 0) S << " Decimal  , Precision   : ";
   else                          S << " Fraction , Denominator : ";
-  S << ent->PrecisionOrDenominator() << std::endl;
+  S << ent->PrecisionOrDenominator() << '\n';
 }
index 6ed01db491284c5aa16f33ba70b829e5b18e4cbf..965cf2c34e32d592ab186da79859d19e589160b1 100644 (file)
@@ -155,5 +155,5 @@ void  IGESDimen_ToolDimensionedGeometry::OwnDump
   S << "\n"
     << "Geometry Entities : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbGeometryEntities(),ent->GeometryEntity);
-  S << std::endl;
+  S << '\n';
 }
index 5dffe106fd3117d472bc6d4d6e13657501a6cbe9..84a49504149cbf89d553f679749f73165420780e 100644 (file)
@@ -159,5 +159,5 @@ void  IGESDimen_ToolFlagNote::OwnDump
   S << "\n"
     << "Number of Leaders : " << ent->NbLeaders() << "   Leaders : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbLeaders(),ent->Leader);
-  S << std::endl;
+  S << '\n';
 }
index ca2f17d19cff39f3e33cb3b3a654def964af913a..7f1f5acda05c3582bd943bf4649c5e812537b9bc 100644 (file)
@@ -138,6 +138,6 @@ void  IGESDimen_ToolGeneralLabel::OwnDump
     << "Number of Leaders : " << ent->NbLeaders() << "\n"
     << "Leaders : "; 
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbLeaders(),ent->Leader);
-  S << std::endl;
+  S << '\n';
 }
 
index 834f632d5c8bc9e831ae1d1b38b1ab449acdb0af..de8d667e2c33aaf02ec23c2d4b470c236d1c9dee 100644 (file)
@@ -379,5 +379,5 @@ void  IGESDimen_ToolGeneralNote::OwnDump
           S << "\n";
        }
     }
-  S << std::endl;
+  S << '\n';
 }
index 139969f747eb86cabab33c75bae58c6b3f82b2d7..b839176703c20c17be6f00539cd1a1773dd013cc 100644 (file)
@@ -179,5 +179,5 @@ void  IGESDimen_ToolGeneralSymbol::OwnDump
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbGeomEntities(),ent->GeomEntity);
   S << "\nLeader Arrows : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbLeaders(),ent->LeaderArrow);
-  S << std::endl;
+  S << '\n';
 }
index 47962c0c0dca0945df92ee66dcf6203b5f113e10..9c34de103f038aeb97f1113c1f24c407a70fda37 100644 (file)
@@ -151,5 +151,5 @@ void  IGESDimen_ToolLeaderArrow::OwnDump
   S << "\nSegment Tails : "; 
   IGESData_DumpListXYLZ(S,level,1, ent->NbSegments(),ent->SegmentTail,
                        ent->Location(), ent->ZDepth());
-  S << std::endl;
+  S << '\n';
 }
index 2f641358f06e969131cdf21894fdd61463f7c211..ae7363e3cc774dd140abaa8eb096cd22271424a9 100644 (file)
@@ -149,6 +149,6 @@ void  IGESDimen_ToolLinearDimension::OwnDump
   S << "\n"
     << "Second Witness Entity : ";
   dumper.Dump(ent->SecondWitness(),S, sublevel);
-  S << std::endl;
+  S << '\n';
 }
 
index be0ba61d96b52a1743f8c34dc182c7e5e67af405..99d4a9d6891f0f501f088794b3871297118a5014 100644 (file)
@@ -235,5 +235,5 @@ void  IGESDimen_ToolNewDimensionedGeometry::OwnDump
          << "Point : ";
        IGESData_DumpXYZL(S,level, ent->Point(i), ent->Location());
       }
-  S << std::endl;
+  S << '\n';
 }
index 3dbd10f733ee1e8fd2b14faaf3f9b0deb1d507cb..b57603e292177b5886cca9684bdde6dca59aa70a 100644 (file)
@@ -532,5 +532,5 @@ void  IGESDimen_ToolNewGeneralNote::OwnDump
           S << "\n";
        }
     }
-  else S << std::endl;
+  else S << '\n';
 }
index e3adab3419b22c4e39a999ec3af25adb7f61a1d0..9c1984dbb1f3cadd4ac2441724ff77039d784c98 100644 (file)
@@ -144,5 +144,5 @@ void IGESDimen_ToolRadiusDimension::OwnDump
       dumper.Dump(ent->Leader2(),S, sublevel);
       S << "\n";
     }
-  S << std::endl;
+  S << '\n';
 }
index 36eaf5f38c38c744ba873a0be6c9144fea728ea5..76db0817a4dbc7c3e0f7dcc3a37c87d71f40d36b 100644 (file)
@@ -164,5 +164,5 @@ void  IGESDimen_ToolSection::OwnDump
     << "Data Points : "; 
   IGESData_DumpListXYLZ(S,level,1, ent->NbPoints(),ent->Point,
                        ent->Location(), ent->ZDisplacement());
-  S << std::endl;
+  S << '\n';
 }
index 836ae655541b5c9ca2656aa01182cc5741960972..d2f18ace9f1ac805a1a7c25635f82e1a1ffb68fe 100644 (file)
@@ -165,5 +165,5 @@ void  IGESDimen_ToolWitnessLine::OwnDump
     << "Data Points : "; 
   IGESData_DumpListXYLZ(S,level,1, ent->NbPoints(),ent->Point,
                    ent->Location(), ent->ZDisplacement());
-  S << std::endl;
+  S << '\n';
 }
index d05977e652df1f9011d944af37ac1682ded0733c..f8de3a87dba1f3918dcaf72cd830e3d4ff7fb0c7 100644 (file)
@@ -177,5 +177,5 @@ void IGESDraw_ToolCircArraySubfigure::OwnDump
   else                       S << "Do\n";
   S << "The Do-Dont List : ";
   IGESData_DumpVals(S,level,1, ent->ListCount(),ent->ListPosition);
-  S << std::endl;
+  S << '\n';
 }
index e4422c96328f825ec9739627bae4130dcb534136..2cda5e47beb486de374663d9ff3eb044add4a132 100644 (file)
@@ -227,5 +227,5 @@ void IGESDraw_ToolConnectPoint::OwnDump
     << "Swap Flag : "        << ( ent->SwapFlag() ? "True" : "False" ) << "\n"
     << "Owner Subfigure Entity : ";
   dumper.Dump(ent->OwnerSubfigure(),S, tempSubLevel);
-  S << std::endl;
+  S << '\n';
 }
index 17a78651edfc1ebc40fa125cf3eafa49dc055a02..029102bfcda6b11ebc151eae978592a99856ec34 100644 (file)
@@ -290,5 +290,5 @@ void IGESDraw_ToolDrawing::OwnDump
     }
   S << "\nAnnotation Entities : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbAnnotations(),ent->Annotation);
-  S << std::endl;
+  S << '\n';
 }
index b8054e5586281eddb1737786a59789ff863ef6b1..cacf9eb685a387de1208bc2af4fc27cfe1b20324 100644 (file)
@@ -304,5 +304,5 @@ void IGESDraw_ToolDrawingWithRotation::OwnDump
     }
   S << "Annotation Entities : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbAnnotations(),ent->Annotation);
-  S << std::endl;
+  S << '\n';
 }
index e3365b3a94932dee40c171e02b3a668d1b1a0b6b..9e67230fe0cfb1763a2969a969d5d2bbaff137dc 100644 (file)
@@ -229,5 +229,5 @@ void IGESDraw_ToolLabelDisplay::OwnDump
          S << "\n";
        }
     }
-  S << std::endl;
+  S << '\n';
 }
index 3de40a511a8ff5252639d63d24c1c77894208bb0..cb659ead1b981b256f5b6bad920a764cecaa63f2 100644 (file)
@@ -241,5 +241,5 @@ void IGESDraw_ToolNetworkSubfigure::OwnDump
   dumper.Dump(ent->DesignatorTemplate(),S, sublevel);
   S << "\nConnect Points  : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbConnectPoints(),ent->ConnectPoint);
-  S << std::endl;
+  S << '\n';
 }
index f7ab2068dd4d520f1aa9ebf65080c38da0c46708..04bd7b06b60d01977ab613f40dc1f483e13f0081 100644 (file)
@@ -234,5 +234,5 @@ void IGESDraw_ToolNetworkSubfigureDef::OwnDump
   dumper.Dump(ent->DesignatorTemplate(),S, tempSubLevel);
   S << "\nConnect Point Entities       : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbPointEntities(),ent->PointEntity);
-  S << std::endl;
+  S << '\n';
 }
index a0b30b7a4757256fe009109a03af8ce1a2067608..ba8afcc04728f525b9f6e41a46b98651e70a0272 100644 (file)
@@ -194,5 +194,5 @@ void IGESDraw_ToolPerspectiveView::OwnDump
   }
   S << "Back Plane Distance  : " << ent->BackPlaneDistance()  << "  "
     << "Front Plane Distance : " << ent->FrontPlaneDistance() << "\n"
-    << std::endl;
+    << '\n';
 }
index 391ecf4063feeb1e719af2fb94af8ccde1afee15..65723e07f2758d57fde7592b4d26e282dd92df82 100644 (file)
@@ -178,5 +178,5 @@ void IGESDraw_ToolPlanar::OwnDump
   S << "\n"
     << "Array of Entities on the specified plane : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
-  S << std::endl;
+  S << '\n';
 }
index e964038531e8fc3bfa77833007c97e36427fda97..214d11dee696ba0eed53fa8aa0edacf000e4fe7e 100644 (file)
@@ -193,5 +193,5 @@ void IGESDraw_ToolRectArraySubfigure::OwnDump
   else                   S << "(0)Do  ";
   S << "Do-Dont List : ";
   IGESData_DumpVals(S,level,1, ent->ListCount(),ent->ListPosition);
-  S << std::endl;
+  S << '\n';
 }
index a45076a3363b2d0088c9c4d580597564c6ef68db..f135c15a6947f3ef67c4b9f23a3e5d4d76c71bd7 100644 (file)
@@ -328,5 +328,5 @@ void IGESDraw_ToolSegmentedViewsVisible::OwnDump
       }
       break;
     }
-  S << std::endl;
+  S << '\n';
 }
index e9fbd28a724a2f416ffa7694eb8200dba02ff5fd..f4f3c7c4b507333151af8cfb0fe4bf886db8caf7 100644 (file)
@@ -168,5 +168,5 @@ void IGESDraw_ToolView::OwnDump
   S << "Back Plane Of View Volume   : ";
   dumper.Dump(ent->BackPlane(),S, tempSubLevel);    S << "\n";
   S << "Front Plane Of View Volume  : ";
-  dumper.Dump(ent->FrontPlane(),S, tempSubLevel);   S << std::endl;
+  dumper.Dump(ent->FrontPlane(),S, tempSubLevel);   S << '\n';
 }
index 8480f21b94e5a296850211d1b46e53827ba205d2..1b1b6a63ac57381d0df328a6ad3d58a6fc5be4ce 100644 (file)
@@ -228,7 +228,7 @@ void IGESDraw_ToolViewsVisible::OwnDump
   S << "\n"
     << "Entities Displayed : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbDisplayedEntities(),ent->DisplayedEntity);
-  S << std::endl;
+  S << '\n';
 }
 
 Standard_Boolean  IGESDraw_ToolViewsVisible::OwnCorrect
index fdd813ca0c5accd82e240efce578e998f9f34ab2..eab8a2303504bc5c42cb51db132ac093e4441301 100644 (file)
@@ -362,7 +362,7 @@ void IGESDraw_ToolViewsVisibleWithAttr::OwnDump
       if (ent->IsColorDefinition(I)) {
        S << "Color Definition : ";
        dumper.Dump (ent->ColorDefinition(I),S, tempSubLevel);
-       S << std::endl;
+       S << '\n';
       }
       else S << "Color Value      : " << ent->ColorValue(I) << "\n";
 
@@ -371,7 +371,7 @@ void IGESDraw_ToolViewsVisibleWithAttr::OwnDump
   }
   S << "Displayed Entities : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbDisplayedEntities(),ent->DisplayedEntity);
-  S << std::endl;
+  S << '\n';
 }
 
 Standard_Boolean  IGESDraw_ToolViewsVisibleWithAttr::OwnCorrect
index 1c833e39f09a2d36458f9833088f7fc14fc0fe28..97f8fcb2b1e50b63a3a5e36019b1489f0c912536 100644 (file)
@@ -419,5 +419,5 @@ void IGESGeom_ToolBSplineCurve::OwnDump(const Handle(IGESGeom_BSplineCurve)& ent
     << "  Ending Parameter Value : " << ent->UMax() << "\n"
     << "Unit Normal : ";
   IGESData_DumpXYZL(S,level, ent->Normal(), ent->Location());
-  S << std::endl;
+  S << '\n';
 }
index f40f38050df90279f8549bc824718542eb4884cc..f10ea8a2678946791de0fa2c6661173f47d771da 100644 (file)
@@ -500,7 +500,7 @@ void IGESGeom_ToolBSplineSurface::OwnDump(const Handle(IGESGeom_BSplineSurface)&
   S << "\n"
     << "Control Points (Poles) : ";
 //IGESData_DumpRectXYZL(S,level,1, ent->NbPoles(),ent->Pole, ent->Location());
-  if (level < 5) {  S << " [ content : ask level > 4 ]" << std::endl; return;  }
+  if (level < 5) {  S << " [ content : ask level > 4 ]" << '\n'; return;  }
   gp_GTrsf loca = ent->Location();
   for (Standard_Integer JP = 0; JP <= indV; JP ++)
     for (Standard_Integer IP = 0; IP <= indU; IP ++) {
@@ -508,5 +508,5 @@ void IGESGeom_ToolBSplineSurface::OwnDump(const Handle(IGESGeom_BSplineSurface)&
       S <<"  -  ["<<IP<<","<<JP<<"]: ";
       IGESData_DumpXYZL(S,level,ent->Pole(IP,JP),loca);
     }
-  S << std::endl;
+  S << '\n';
 }
index 44dbde24823d8d5c657ebaab09908c85cfc1d62e..f9edf9f60aa4d9fa0ba8dba99704ca3a29264f2f 100644 (file)
@@ -461,5 +461,5 @@ void IGESGeom_ToolBoundary::OwnDump(const Handle(IGESGeom_Boundary)& ent,
   }
        S << "\n";
       }
-  S << std::endl;
+  S << '\n';
 }
index df639d7a4ebfb628c0c5e820e8a421c42d9dc86d..bc8a3388f816f58ce1c0381ca476c99704fc339b 100644 (file)
@@ -257,5 +257,5 @@ void IGESGeom_ToolBoundedSurface::OwnDump(const Handle(IGESGeom_BoundedSurface)&
   S << "\n"
     << "Boundary Entities     : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbBoundaries(),ent->Boundary);
-  S << std::endl;
+  S << '\n';
 }
index ee0128f141aa6c9cae6f4d3c2aebe0b287e715d2..099bbf14513aa04af1a8044b57bd7db7601ff6ab 100644 (file)
@@ -153,5 +153,5 @@ void IGESGeom_ToolCircularArc::OwnDump
   S << "\n";
   if (level <= 5) return;
   S << "  Normal Axis : ";  IGESData_DumpXYZL(S,level,ent->Axis(),ent->VectorLocation());
-  S << std::endl;
+  S << '\n';
 }
index 9dd04bcea2a3bfed5fd0e5bf307695558ad56967..c92e149efd366a3fa99f155e821cd7526caf3302 100644 (file)
@@ -122,5 +122,5 @@ void  IGESGeom_ToolCompositeCurve::OwnDump
   S << "IGESGeom_CompositeCurve\n"
     << "Curve Entities :\n";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbCurves(),ent->Curve);
-  S << std::endl;
+  S << '\n';
 }
index a0937765329ca3186cd1b60a087e9aa48bb7a17e..10f0ecc4367f0f2b7258ab0591258409b17ffb8a 100644 (file)
@@ -302,7 +302,7 @@ void IGESGeom_ToolConicArc::OwnDump(const Handle(IGESGeom_ConicArc)& ent,
     << "End   Point : ";
   IGESData_DumpXYLZ(S,level, ent->EndPoint(), ent->Location(), ent->ZPlane());
   S << "\n";
-  if (level <= 4) S <<" -- Computed Definition : ask level > 4" << std::endl;
+  if (level <= 4) S <<" -- Computed Definition : ask level > 4" << '\n';
   else {
     gp_Pnt Cen;  gp_Dir Ax;  Standard_Real Rmin,Rmax;
     ent->Definition (Cen,Ax,Rmin,Rmax);
@@ -319,6 +319,6 @@ void IGESGeom_ToolConicArc::OwnDump(const Handle(IGESGeom_ConicArc)& ent,
     else S << " Major Radius : " << Rmax << "  Minor Radius : " << Rmin <<"\n";
     
     S << "  Normal Axis : ";  IGESData_DumpXYZL(S,level,ent->Axis(),ent->VectorLocation());
-    S << std::endl;
+    S << '\n';
   }
 }
index 764079877cec6b26b96c1c2e1ae25e21fbc256ad..61c7f3e7992804ccc24111bac14e09f48fb1248b 100644 (file)
@@ -305,9 +305,9 @@ void IGESGeom_ToolCopiousData::OwnDump(const Handle(IGESGeom_CopiousData)& ent,
          S << " Transformed ("<< T.X() << "," << T.Y() << "," << T.Z() << ")";
        }
       }
-      S << std::endl;
+      S << '\n';
     }
   }
   else S << " [ for content, ask level > 4 ]";
-  S << std::endl;
+  S << '\n';
 }
index 686c948ff226d482251deda9bbf8d41cb5b5c638..b23886db3f9fb5f7d733de3fcbcad92aca2ad50e 100644 (file)
@@ -117,5 +117,5 @@ void IGESGeom_ToolDirection::OwnDump
   S << "IGESGeom_Direction\n\n"
     << "Value : ";
   IGESData_DumpXYZL(S,level, ent->Value(), ent->VectorLocation());
-  S << std::endl;
+  S << '\n';
 }
index e51d1f1e596a421ea0fd0732ad673d3ec2c7f975..8d5eb97a14630f92d18de98e909ccabc535f6e2f 100644 (file)
@@ -193,5 +193,5 @@ void IGESGeom_ToolFlash::OwnDump
     << " Rotation about reference entity : " << ent->Rotation() << "\n"
     << "Reference Entity         : ";
   dumper.Dump(ent->ReferenceEntity(),S, sublevel);
-  S << std::endl;
+  S << '\n';
 }
index 1076950c42c1c19be43e3f5ffb2622649edbefc0..10e769e30ea612f96e5680935ea0b3edd2a941b9 100644 (file)
@@ -120,5 +120,5 @@ void IGESGeom_ToolLine::OwnDump
   S << "\n"
        "End Point : ";
   IGESData_DumpXYZL(S,level, ent->EndPoint(), ent->Location());
-  S << std::endl;
+  S << '\n';
 }
index 2feae9f38b44efd545b40d33da128849a4a9470a..c8e29408e9986eec514ffa88e8d2e7d4bf512097 100644 (file)
@@ -369,5 +369,5 @@ void IGESGeom_ToolOffsetCurve::OwnDump(const Handle(IGESGeom_OffsetCurve)& ent,
     << "Normal Vector : ";
   IGESData_DumpXYZL(S,level, ent->NormalVector(), ent->VectorLocation());  S <<"\n";
   S << "Offset curve Parameters. Starting : " << ent->StartParameter() << "  "
-    << "Ending : " << ent->EndParameter()   << std::endl;
+    << "Ending : " << ent->EndParameter()   << '\n';
 }
index ed237e7882ab55d18484e507794748a67512d8ca..b3d3e17f453531656cc67cd362c56cdce401adca 100644 (file)
@@ -155,5 +155,5 @@ void IGESGeom_ToolOffsetSurface::OwnDump
     << "Offset Distance      : " << ent->Distance() << "  "
     << "Surface to be offset : ";
   dumper.Dump(ent->Surface(),S, sublevel);
-  S << std::endl;
+  S << '\n';
 }
index 6c39c7ae6f9faa7cccf85db9eb613c75eae25d7b..61eb351be58dab9bbe5a160fd8f1a637321aa352 100644 (file)
@@ -279,5 +279,5 @@ void IGESGeom_ToolPlane::OwnDump(const Handle(IGESGeom_Plane)& ent,
   S << "\n"
     << "Display Symbol Location : ";
   IGESData_DumpXYZL(S,level, ent->SymbolAttach(), ent->Location());
-  S << "  Size  : " << ent->SymbolSize() << std::endl;
+  S << "  Size  : " << ent->SymbolSize() << '\n';
 }
index 84b1fd8dadb398fc5f075d36ae292d750543fba2..7b35c6d8b2e0f2dfca20ebf8cf4579867a7192c6 100644 (file)
@@ -148,5 +148,5 @@ void IGESGeom_ToolPoint::OwnDump
   S << "\n"
     << " Display Symbol : ";
   dumper.Dump(ent->DisplaySymbol(),S, (level <= 4) ? 0 : 1);
-  S << std::endl;
+  S << '\n';
 }
index 0370e5468d04918ff10c589ae86f94a9437e349f..475ca353d7531937b50f46066819df0217f7a039 100644 (file)
@@ -339,7 +339,7 @@ void IGESGeom_ToolSplineCurve::OwnDump
     << "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 ]" << std::endl;
+    S << " [ also ask level > 4 for X-Y-Z Polynomials ]" << '\n';
     return;
   }
   S << "  --  Polynomial  Values  --\n";
@@ -363,5 +363,5 @@ void IGESGeom_ToolSplineCurve::OwnDump
     << " 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;
+    << " 3rd Der./3!           "<<DX<<"        "<<DY<<"        "<<DZ<<'\n';
 }
index 8f76654149cbb40d09f01c2dd97d38647830257b..928b3c45ebe872f2c5c7875f12958b5c740c4651 100644 (file)
@@ -361,5 +361,5 @@ void IGESGeom_ToolSplineSurface::OwnDump
            S << "\n";
           }
     }
-  else  S << std::endl;
+  else  S << '\n';
 }
index 341c8f55f72305a8afdf18138fba2f75520f5514..af9ddeb76b2c37c573fa016abce98a374cc5570d 100644 (file)
@@ -172,5 +172,5 @@ void IGESGeom_ToolSurfaceOfRevolution::OwnDump
   dumper.Dump(ent->Generatrix(),S, sublevel);
   S << "\n"
     << "Start Angle        : " << ent->StartAngle() << "  "
-    << "End Angle   : " << ent->EndAngle() << std::endl;
+    << "End Angle   : " << ent->EndAngle() << '\n';
 }
index 6991099c0afd8b2f600b26280212055e57fd78a1..bb7b9f67897e3423d9d7279272bdcc024fcf87f8 100644 (file)
@@ -140,5 +140,5 @@ void IGESGeom_ToolTabulatedCylinder::OwnDump
   S << "\n"
     << "Terminate Point : ";
   IGESData_DumpXYZL(S,level, ent->EndPoint(), ent->Location());
-  S << std::endl;
+  S << '\n';
 }
index f00df51ea51195c595671a087d02033c12259d57..d39c637e3f4715ad3334fdab183c2811e488fbd7 100644 (file)
@@ -222,11 +222,11 @@ void IGESGeom_ToolTransformationMatrix::OwnDump
     << ent->Data(3, 3) << ", " << ent->Data(3, 4) << "\n";
 
   switch (ent->FormNumber()) {
-    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;
+    case  0 : S << "-- Direct Orthogonal Matrix"      << '\n';  break;
+    case  1 : S << "-- Reverse Orthogonal Matrix"     << '\n';  break;
+    case 10 : S << "-- Cartesien Coordinate System"   << '\n';  break;
+    case 11 : S << "-- Cylindrical Coordinate System" << '\n';  break;
+    case 12 : S << "-- Spherical Coordinate System"   << '\n';  break;
+    default : S << "--  (Incorrect Form Number)"      << '\n';  break;
   }
 }
index 425d8b01d57e446b46cd8bbb1b2712370aeec861..875b548959d797859648ef9728f151e41faaee3e 100644 (file)
@@ -308,5 +308,5 @@ void IGESGeom_ToolTrimmedSurface::OwnDump(const Handle(IGESGeom_TrimmedSurface)&
   S << "\n"
     << "Inner Boundaries : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbInnerContours(),ent->InnerContour);
-  S << std::endl;
+  S << '\n';
 }
index 9cce88f585021c76af2fc088dba54b2e7593a6ad..5f709300ce998b974a636e08c351c06be6c8e313 100644 (file)
@@ -53,7 +53,7 @@ IGESGeom_TransformationMatrix::IGESGeom_TransformationMatrix ()    {  }
     void  IGESGeom_TransformationMatrix::SetFormNumber (const Standard_Integer fm)
 {
   if(theData.IsNull()) 
-    std::cout<<"Inavalid Transformation Data"<<std::endl;
+    std::cout<<"Inavalid Transformation Data"<<'\n';
   if ((fm < 0 || fm > 1) && (fm < 10 || fm > 12)) throw Standard_OutOfRange("IGESGeom_TransformationMatrix : SetFormNumber");
   InitTypeAndForm(124,fm);
 }
index d9d49dca18466cf90ced3d1988991578c0fc372a..c3f6ac3921b47d5f90753b4c5f2563e2ef69f299 100644 (file)
@@ -126,5 +126,5 @@ void IGESGraph_ToolColor::OwnDump
     << "Blue  (in % Of Full Intensity) : " << Blue  << "\n"
     << "Color Name : ";
   IGESData_DumpString(S,ent->ColorName());
-  S << std::endl;
+  S << '\n';
 }
index 4738adb9f6b2fd16b478c35c8b0e7ca653a2da20..9a4138d7aa530f704098e947b35e598dc7fb287b 100644 (file)
@@ -114,6 +114,6 @@ void IGESGraph_ToolDefinitionLevel::OwnDump
   S << "IGESGraph_DefinitionLevel\n"
     << "Level Numbers : ";
   IGESData_DumpVals(S,level,1, ent->NbPropertyValues(),ent->LevelNumber);
-  S << std::endl;
+  S << '\n';
 }
 
index bcbeb39eeb9234a773f60b7f9741e2f0af701754..4f0753a1f01a9834dff3b62eaa33fa5ca39cd679 100644 (file)
@@ -114,5 +114,5 @@ void IGESGraph_ToolDrawingSize::OwnDump
     << "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;
+    << '\n';
 }
index e8ec8ee021545f300b4d91440138df3529bf02cb..cb213454c3f211d2b82d21b8a2623c265948f80a 100644 (file)
@@ -226,5 +226,5 @@ void IGESGraph_ToolDrawingUnits::OwnDump
     << "  Units Name : ";
   IGESData_DumpString(S,ent->Unit());
   S << "  computed Value (in meters) : " << ent->UnitValue()
-    << std::endl;
+    << '\n';
 }
index 9e2be289d8b690918ec7a9c6cf06821e9a87a254..c5e6108724075b9cd9e8fbd68194a0d3efe1cae6 100644 (file)
@@ -109,5 +109,5 @@ void IGESGraph_ToolHighLight::OwnDump
   S << "IGESGraph_HighLight\n"
     << "No. of property values : " << ent->NbPropertyValues() << "\n"
     << "Highlight Status : " << ent->HighLightStatus() << "\n"
-    << std::endl;
+    << '\n';
 }
index 01840365f63f52bb8dad85048d4afc6ac54d5723..2ac00dc26039abf362cc0733edf5a5c0b3b155bc 100644 (file)
@@ -111,5 +111,5 @@ void IGESGraph_ToolIntercharacterSpacing::OwnDump
   S << "IGESGraph_IntercharacterSpacing\n"
     << "No. of property values : " << ent->NbPropertyValues() << "\n"
     << "Intercharacter space in % of text height : " << ent->ISpace() << "\n"
-    << std::endl;
+    << '\n';
 }
index e9fad05cb62f5ed56ffb36a7b63c7d7912b056a3..66fe9853bb709abd7ea4204112af7c9e3d017232 100644 (file)
@@ -140,6 +140,6 @@ void IGESGraph_ToolLineFontDefPattern::OwnDump
     for (Standard_Integer I = 1; I <= nb; I ++) {
       if (ent->IsVisible(I)) S << "  " << I;
     }
-    S << std::endl;
+    S << '\n';
   }
 }
index 9e3bf9f6071af0999338b1ab2c2f49dc69a2b330..aebd87edb7e51d0b98d1809931947de7d6e5725f 100644 (file)
@@ -126,6 +126,6 @@ void IGESGraph_ToolLineFontDefTemplate::OwnDump
   S << "\n"
     << "Length Between Successive Template Figure : " << ent->Distance()<< "\n"
     << "Scale Factor for Subfigure : " << ent->Scale() << "\n"
-    << std::endl;
+    << '\n';
 }
 
index 97c7e89edc5e24c457e0739dc7688855f0d85e4d..a1d8b8c5405aee5561ded0dbb8e5ede6ee530bbc 100644 (file)
@@ -108,5 +108,5 @@ void IGESGraph_ToolLineFontPredefined::OwnDump
   S << "IGESGraph_LineFontPredefined\n"
     << "No. of property values : " << ent->NbPropertyValues() << "\n"
     << "Line font pattern code : " << ent->LineFontPatternCode() << "\n"
-    << std::endl;
+    << '\n';
 }
index eb9ebe5da640f572a9634d133d6493c1d5c7d5bd..35f8855175e566adeba934da86b623bd5639ef2a 100644 (file)
@@ -151,5 +151,5 @@ void IGESGraph_ToolNominalSize::OwnDump
   S << "\n"
     << "Name of relevant engineering standard : ";
   IGESData_DumpString(S,ent->StandardName());
-  S << std::endl;
+  S << '\n';
 }
index abeafb6292a76600b8e9820ecc0f91d47117b644..5e24a1a5774ea0f1708c6e61cdbc403379767455 100644 (file)
@@ -112,5 +112,5 @@ void IGESGraph_ToolPick::OwnDump
     << "No. of property values : " << ent->NbPropertyValues() << "\n"
     << "Pick flag : " << ent->PickFlag()
     << (ent->PickFlag() == 0 ? " NO" : " YES" )
-    << std::endl;
+    << '\n';
 }
index 0b5ea92caa4f90a2966b0315666e3b672c1ea624..07ec1186cdacdaf0a86f8406d240afcea8c1df1b 100644 (file)
@@ -205,5 +205,5 @@ void IGESGraph_ToolTextDisplayTemplate::OwnDump
   else
     S << "Increments from coordinates : "; 
   IGESData_DumpXYZL(S,level, ent->StartingCorner(), ent->Location());
-  S << std::endl;
+  S << '\n';
 }
index a302090d4177a9b829365351ec0dd2decca4aca1..f3eea8264fc1b7bd1025f8ad2255d08331840991 100644 (file)
@@ -337,5 +337,5 @@ void IGESGraph_ToolTextFontDef::OwnDump
          }
        }
     }
-  S << std::endl;
+  S << '\n';
 }
index c316ecf0a091dd25a06dcbcb3397beaff6cb6ede..2bf36db5a443d66d0697aab9e56095dd00d68318 100644 (file)
@@ -170,5 +170,5 @@ void IGESGraph_ToolUniformRectGrid::OwnDump
   IGESData_DumpXY(S, ent->GridSpacing());  S << "\n";
   if (ent->IsFinite())
     S << "No. of points/lines in direction :  X : " << ent->NbPointsX()
-      << "  -  Y : " << ent->NbPointsY() << std::endl;
+      << "  -  Y : " << ent->NbPointsY() << '\n';
 }
index 48a60c95a76dc859fdc8ea24601d683e06ef39cb..5e57da119c48e402fd8f6342c52c649091a64aaf 100644 (file)
@@ -126,20 +126,20 @@ IGESSelect_Activator::IGESSelect_Activator()
          " l : liste resumee"<<
          " c : liste complete par item (mais pas pour remaining)\n"<<
          " r : idem + liste complete remaining\n"<<
-         "  sur tout le modele. Ajouter nom selection pour lister sur une partie"<<std::endl;
+         "  sur tout le modele. Ajouter nom selection pour lister sur une partie"<<'\n';
        return  (argc >= 0 ? IFSelect_RetError : IFSelect_RetVoid);
       }
       if (arg1[0] == 'l') {
        listmode = 0;  std::cout<<"Liste resumee";
       }
       else if (arg1[0] == 'c') {
-       listmode = 1;  std::cout<<"Liste complete par item (pas pour Remaining)"<<std::endl;
+       listmode = 1;  std::cout<<"Liste complete par item (pas pour Remaining)"<<'\n';
       }
       else if (arg1[0] == 'r') {
-       listmode = 2;  std::cout<<"Liste complete par item et pour Remaining"<<std::endl;
+       listmode = 2;  std::cout<<"Liste complete par item et pour Remaining"<<'\n';
       }
       else {
-       std::cout<<"Parametre de listage non compris"<<std::endl; return IFSelect_RetError;
+       std::cout<<"Parametre de listage non compris"<<'\n'; return IFSelect_RetError;
       }
 
       Handle(IGESSelect_ViewSorter) vs = new IGESSelect_ViewSorter;
@@ -149,7 +149,7 @@ IGESSelect_Activator::IGESSelect_Activator()
 //   on demande une selection
        DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg2));
        if (sel.IsNull()) {
-         std::cout<<"Pas une selection : "<<arg2<<std::endl;
+         std::cout<<"Pas une selection : "<<arg2<<'\n';
          return IFSelect_RetError;
        }
        vs->AddList (WS->SelectionResult(sel));
@@ -163,20 +163,20 @@ IGESSelect_Activator::IGESSelect_Activator()
       if (number == 5) std::cout<<" Views & Drawings";
       if (number == 6) std::cout<<" Drawings only (complete)";
       if (number == 7) std::cout<<" Single Views & Drawing Frames";
-      std::cout<<", on "<<vs->NbEntities()<<" ent.s, give "<<nb<<" Sets"<<std::endl;
+      std::cout<<", on "<<vs->NbEntities()<<" ent.s, give "<<nb<<" Sets"<<'\n';
 
       Interface_EntityIterator iter;
       for (Standard_Integer i = 1; i <= nb; i ++) {
        std::cout<<" --  Set n0 "<<i<<" Item=entity n0: "<<
          WS->Model()->Number(vs->SetItem(i,listdr))<<"  List:";
-        std::cout<<sets->NbEntities(i)<<" ent.s:"<<std::endl;
+        std::cout<<sets->NbEntities(i)<<" ent.s:"<<'\n';
        if (listmode == 0) continue;
        iter = sets->Entities(i);
        WS->ListEntities (iter, 0, std::cout);
       }
 
       std::cout <<" --  Remaining Entities (not yet sorted) :"
-       <<sets->NbDuplicated(0,Standard_False)<<std::endl;
+       <<sets->NbDuplicated(0,Standard_False)<<'\n';
       if (listmode < 2) return IFSelect_RetVoid;
       iter = sets->Duplicated(0,Standard_False);
       WS->ListEntities (iter, 0, std::cout);
@@ -186,7 +186,7 @@ IGESSelect_Activator::IGESSelect_Activator()
     case 10 : {   //        ****    IGESType (form Type/Form)
       if (argc < 2) {
        std::cout<<"Donner le n0 de type desire, + en option la forme\n"
-         <<"  Si pas de forme, prend toutes les formes du type demande"<<std::endl;
+         <<"  Si pas de forme, prend toutes les formes du type demande"<<'\n';
        return IFSelect_RetError;
       }
       char signature[20];
@@ -203,7 +203,7 @@ IGESSelect_Activator::IGESSelect_Activator()
 
     case 12 :  {  //        ****    IGES Name
       if (argc < 2) {
-        std::cout<<"Donner un Nom de TextParam pour IGESName"<<std::endl;
+        std::cout<<"Donner un Nom de TextParam pour IGESName"<<'\n';
         return IFSelect_RetError;
       }
       Handle(IGESSelect_SelectName) sel = new IGESSelect_SelectName;
@@ -218,12 +218,12 @@ IGESSelect_Activator::IGESSelect_Activator()
 
     case 14 : {   //        ****    IGES LevelNumber
       if (argc < 2) {
-        std::cout<<"Donner nom IntParam pour Level"<<std::endl;
+        std::cout<<"Donner nom IntParam pour Level"<<'\n';
         return IFSelect_RetError;
       }
       DeclareAndCast(IFSelect_IntParam,lev,WS->NamedItem(arg1));
       if (lev.IsNull()) {
-        std::cout<<arg1<<" : pas un IntParam (pour Level)"<<std::endl;
+        std::cout<<arg1<<" : pas un IntParam (pour Level)"<<'\n';
         return IFSelect_RetError;
       }
       Handle(IGESSelect_SelectLevelNumber) sel = new IGESSelect_SelectLevelNumber;
@@ -255,7 +255,7 @@ IGESSelect_Activator::IGESSelect_Activator()
       char prem = ' ';
       if (argc < 2) prem = '?';
       else if (argc == 5) {
-        std::cout<<"floatformat tout court donne les formes admises"<<std::endl;
+        std::cout<<"floatformat tout court donne les formes admises"<<'\n';
         return IFSelect_RetError;
       }
       else prem = arg1[0];
@@ -279,7 +279,7 @@ IGESSelect_Activator::IGESSelect_Activator()
       if (argc > 4) {
        Rmin = Atof(pilot->Word(4).ToCString());
        Rmax = Atof(pilot->Word(5).ToCString());
-       if (Rmin <= 0 || Rmax <= 0) { std::cout<<"intervalle : donner reels > 0"<<std::endl; return IFSelect_RetError; }
+       if (Rmin <= 0 || Rmax <= 0) { std::cout<<"intervalle : donner reels > 0"<<'\n'; return IFSelect_RetError; }
       }
       Handle(IGESSelect_FloatFormat) fm = new IGESSelect_FloatFormat;
       if (argc == 2) fm->SetDefault(digits);
@@ -295,17 +295,17 @@ IGESSelect_Activator::IGESSelect_Activator()
 
     case 41 : {   //        ****    SetGlobalParameter
       if (argc < 3) {
-        std::cout<<"Donner entier=n0 param a changer + nom TextParam pour la valeur"<<std::endl;
+        std::cout<<"Donner entier=n0 param a changer + nom TextParam pour la valeur"<<'\n';
         return IFSelect_RetError;
       }
       Standard_Integer numpar = atoi(arg1);
       if (numpar <= 0) {
-        std::cout<<"Pas un n0 de param global correct:"<<arg1<<std::endl;
+        std::cout<<"Pas un n0 de param global correct:"<<arg1<<'\n';
         return IFSelect_RetError;
       }
       DeclareAndCast(TCollection_HAsciiString,val,WS->NamedItem(arg2));
       if (val.IsNull()) {
-        std::cout<<"Pas un nom de TextParam:"<<arg2<<std::endl;
+        std::cout<<"Pas un nom de TextParam:"<<arg2<<'\n';
         return IFSelect_RetError;
       }
       Handle(IGESSelect_SetGlobalParameter) mod =
@@ -346,7 +346,7 @@ IGESSelect_Activator::IGESSelect_Activator()
     case 60 : {   //        ****    Spline To BSpline
       if (argc < 2) {
         std::cout<<"Pour SplineToBSpline, donner mode :\n"<<
-                       " n pour normal, t pour tryC2"<<std::endl;
+                       " n pour normal, t pour tryC2"<<'\n';
         return IFSelect_RetError;
       }
       Standard_Boolean tryC2;
@@ -355,7 +355,7 @@ IGESSelect_Activator::IGESSelect_Activator()
       else if (arg1[0] == 't' || arg1[0] == 'T')
         tryC2 = Standard_True;
       else {
-        std::cout<<" Mode incorrect : "<<arg1<<std::endl;
+        std::cout<<" Mode incorrect : "<<arg1<<'\n';
         return IFSelect_RetError;
       }
       Handle(IGESSelect_SplineToBSpline) conv =
index 0adf7e70c9caef5e2039e9b79391caa9b19241f0..59b0ac0b3a5c9143d4b97f17205f205192c9b7d3 100644 (file)
@@ -133,7 +133,7 @@ IGESSelect_CounterOfLevelNumber::IGESSelect_CounterOfLevelNumber
   (Standard_OStream& S) const
 {
   IFSelect_SignatureList::PrintCount (S);
-  S <<" Highest value : " << thehigh << std::endl;
+  S <<" Highest value : " << thehigh << '\n';
   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;
+    <<" <LEVEL LIST>\n, and in each Level value of their list"<<'\n';
 }
index 8524ef303f6626664175d9edbeee129ac9cc62b6..63d5e27a8bb19d4b2bae3923b2a862a2d2f47d19 100644 (file)
@@ -81,8 +81,8 @@ static  Handle(IGESData_FileProtocol) IGESProto;
   char* pname=(char*) name;
   Standard_Integer status = IGESFile_Read (pname,igesmod,prot);
 
-  if (status < 0) sout<<"File not found : "<<name<<std::endl;
-  if (status > 0) sout<<"Error when reading file : "<<name<<std::endl;
+  if (status < 0) sout<<"File not found : "<<name<<'\n';
+  if (status > 0) sout<<"Error when reading file : "<<name<<'\n';
   if (status == 0) model = igesmod;
   else             model.Nullify();
   return status;
@@ -103,7 +103,7 @@ static  Handle(IGESData_FileProtocol) IGESProto;
   if (aStream.get() == NULL)
   {
     ctx.CCheck(0)->AddFail("IGES File could not be created");
-    sout<<" - IGES File could not be created : " << ctx.FileName() << std::endl; return 0;
+    sout<<" - IGES File could not be created : " << ctx.FileName() << '\n'; return 0;
   }
   sout<<" IGES File Name : "<<ctx.FileName();
   IGESData_IGESWriter VW(igesmod);  
@@ -126,14 +126,14 @@ static  Handle(IGESData_FileProtocol) IGESProto;
   VW.SendModel(prot);            
   sout<<" Write ";
   if (themodefnes) VW.WriteMode() = 10;
-  Standard_Boolean status = VW.Print (*aStream);                sout<<" Done"<<std::endl;
+  Standard_Boolean status = VW.Print (*aStream);                sout<<" Done"<<'\n';
 
   errno = 0;
   aStream->flush();
   status = aStream->good() && status && !errno;
   aStream.reset();
   if(errno)
-    sout << strerror(errno) << std::endl;
+    sout << strerror(errno) << '\n';
 
   return status;
 }
@@ -168,13 +168,13 @@ static  Handle(IGESData_FileProtocol) IGESProto;
   Standard_Boolean iserr = model->IsRedefinedContent(num);
   Handle(Standard_Transient) con;
   if (iserr) con = model->ReportEntity(num)->Content();
-  if (entity.IsNull()) { S <<" Null"<<std::endl; return ;  }
+  if (entity.IsNull()) { S <<" Null"<<'\n'; 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)" << std::endl;
+    else S << "(undefined)" << '\n';
     igesent = GetCasted(IGESData_IGESEntity,con);
     con.Nullify();
     Handle(Interface_Check) check = model->ReportEntity(num)->Check();
@@ -191,6 +191,6 @@ static  Handle(IGESData_FileProtocol) IGESProto;
     dump.Dump(igesent,S,level,(level-1)/3);
   }
   catch (Standard_Failure const&) {
-    S << " **  Dump Interrupt **" << std::endl;
+    S << " **  Dump Interrupt **" << '\n';
   }
 }
index 25c5d3fa8112e51ec94baa6ccebff1c1453d4209..db7c8e356f773a806b1b292afe96e1b4fb3299b8 100644 (file)
@@ -195,5 +195,5 @@ void IGESSolid_ToolBlock::OwnDump
   IGESData_DumpXYZL(S,level, ent->XAxis(), ent->VectorLocation());
   S << "\nZAxis  : ";
   IGESData_DumpXYZL(S,level, ent->ZAxis(), ent->VectorLocation());
-  S << std::endl;
+  S << '\n';
 }
index 40ee593205cacf2b1aff718b42e1d75711589d03..6709dc7f67af3a7c5654b444614343ac860dc819 100644 (file)
@@ -178,5 +178,5 @@ void  IGESSolid_ToolConeFrustum::OwnDump
   IGESData_DumpXYZL(S,level, ent->FaceCenter(), ent->Location());
   S << "\nAxis : ";
   IGESData_DumpXYZL(S,level, ent->Axis(), ent->VectorLocation());
-  S << std::endl;
+  S << '\n';
 }
index d99e106cc22d340c0d4f78c9236a10cfe1ad7775..f0630206b67ead4a656965c52be8dbccf9e27f68 100644 (file)
@@ -155,7 +155,7 @@ void  IGESSolid_ToolConicalSurface::OwnDump
     {
       S << "Surface is Parametrised  -  Reference direction :\n";
       dumper.Dump(ent->ReferenceDir(),S, sublevel);
-      S << std::endl;
+      S << '\n';
     }
-  else S << "Surface is UnParametrised" << std::endl;
+  else S << "Surface is UnParametrised" << '\n';
 }
index 265083cba0d8ecf9bd4bd33655d85a021a40f300..81dbca1761b4504262b85f55859d601f2942d2be 100644 (file)
@@ -171,5 +171,5 @@ void  IGESSolid_ToolCylinder::OwnDump
   IGESData_DumpXYZL(S,level, ent->FaceCenter(), ent->Location());
   S << "\nAxis : ";
   IGESData_DumpXYZL(S,level, ent->Axis(), ent->VectorLocation());
-  S << std::endl;
+  S << '\n';
 }
index 13659a2466fca1797c036894bfa7e0b42bace3ee..4c869f2987d293eafbf40a66bc1f4b72941589b8 100644 (file)
@@ -147,7 +147,7 @@ void  IGESSolid_ToolCylindricalSurface::OwnDump
     {
       S << "Surface is Parametrised  -  Reference direction : ";
       dumper.Dump(ent->ReferenceDir(),S, sublevel);
-      S << std::endl;
+      S << '\n';
     }
-  else S << "Surface is UnParametrised" << std::endl;
+  else S << "Surface is UnParametrised" << '\n';
 }
index fabc1bfcdfa01101b6c8ea9d0d4c7e77fe2269f7..9756864691c9eceda94f60e8a17a12709173e8a2 100644 (file)
@@ -382,5 +382,5 @@ void IGESSolid_ToolEdgeList::OwnDump(const Handle(IGESSolid_EdgeList)& ent,
       default :
        break;
     }
-  S << std::endl;
+  S << '\n';
 }
index 03d495e21c03eb45eb3ef33b4df43ac8dc48fae2..94689e83c91da7fb06f68bb03579c7c4857e221b 100644 (file)
@@ -198,5 +198,5 @@ void  IGESSolid_ToolEllipsoid::OwnDump
   IGESData_DumpXYZL(S,level, ent->XAxis(), ent->VectorLocation());
   S << "\nZAxis  : ";
   IGESData_DumpXYZL(S,level, ent->ZAxis(), ent->VectorLocation());
-  S << std::endl;
+  S << '\n';
 }
index 427f8e9b2d26bdc8fc1a1939d5744ebd9a074cfb..3a8e6987fff24e7e2fd5b291e8c139966a968c3f 100644 (file)
@@ -256,6 +256,6 @@ void IGESSolid_ToolFace::OwnDump(const Handle(IGESSolid_Face)& ent,
   else                      S << "Outer loop is not present\n";
   S << "Loops : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbLoops(),ent->Loop);
-  S << std::endl;
+  S << '\n';
 }
 
index 1ab948d9b9d9ca99c7708948d3544bcc4e9f6c32..2e9c8f2cb8fbd5a2a4940919899033c61bccf828 100644 (file)
@@ -415,5 +415,5 @@ void IGESSolid_ToolLoop::OwnDump(const Handle(IGESSolid_Loop)& ent,
        }
       S << " ]";
     }
-  S << std::endl;
+  S << '\n';
 }
index 86bc360c0e9807de9cec35ffba3e598ed57639df..fba35d7ee220d0451f4fcea87e177f87198d2a6b 100644 (file)
@@ -217,7 +217,7 @@ void  IGESSolid_ToolManifoldSolid::OwnDump
     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 << std::endl;
+  S << '\n';
   if (level > 4)
     {
       S << "[\n";
@@ -236,6 +236,6 @@ void  IGESSolid_ToolManifoldSolid::OwnDump
        }
       S << " ]\n";
     }
-  S << std::endl;
+  S << '\n';
 }
 
index 10a7253c2f4d6b6d02b8a013fc232adc69677dc4..c372d3a9493e167c4b74cb801a137fb7e23ac8b6 100644 (file)
@@ -267,7 +267,7 @@ void IGESSolid_ToolPlaneSurface::OwnDump(const Handle(IGESSolid_PlaneSurface)& e
     {
       S << "Surface is Parametrised  -  Reference direction : ";
       dumper.Dump(ent->ReferenceDir(),S, sublevel);
-      S << std::endl;
+      S << '\n';
     }
-  else S << "Surface is UnParametrised" << std::endl;
+  else S << "Surface is UnParametrised" << '\n';
 }
index 3c8552e0b9973d30dd640bd3e0f6a10b2b282058..92c2e241e9b03d6cd70790c3a16a73e0648ca329 100644 (file)
@@ -205,5 +205,5 @@ void  IGESSolid_ToolRightAngularWedge::OwnDump
   IGESData_DumpXYZL(S,level, ent->XAxis(), ent->VectorLocation());
   S << "\nZAxis : ";
   IGESData_DumpXYZL(S,level, ent->ZAxis(), ent->VectorLocation());
-  S << std::endl;
+  S << '\n';
 }
index 2330610baa78e6db6bdf20ca65d08d12f47cf264..7820cbbfd32482937387817fe5cb00304af9efe2 100644 (file)
@@ -113,5 +113,5 @@ void  IGESSolid_ToolSelectedComponent::OwnDump
   dumper.Dump(ent->Component(),S, (level <= 4) ? 0 : 1);
   S << "Selected Point       : ";
   IGESData_DumpXYZL(S,level, ent->SelectPoint(), ent->Location());
-  S << std::endl;
+  S << '\n';
 }
index 598aff67432308722e520aa1ca4a01eb4c2b682c..66c4e4884bf7d5e89631e5385a988bc5e5a8dbeb 100644 (file)
@@ -247,5 +247,5 @@ void IGESSolid_ToolShell::OwnDump(const Handle(IGESSolid_Shell)& ent,
           else                     S << "False\n";
        }
     }
-  S << std::endl;
+  S << '\n';
 }
index a1e3c2d1129b709106bc0933e13ab42f1bc8b418..076a2633353a50067460013dac43d314dbe59b98 100644 (file)
@@ -159,5 +159,5 @@ void  IGESSolid_ToolSolidAssembly::OwnDump
   S << "\n"
     << "Matrices : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbItems(),ent->TransfMatrix);
-  S << std::endl;
+  S << '\n';
 }
index 627cbbf3725c80eece53f485f1d58830d0092a57..389aa57a7614fc024786054b3488db64ab464017 100644 (file)
@@ -92,5 +92,5 @@ void  IGESSolid_ToolSolidInstance::OwnDump
   S << "IGESSolid_SolidInstance\n"
     << "Solid entity : ";
   dumper.Dump(ent->Entity(),S, (level <= 4) ? 0 : 1);
-  S << std::endl;
+  S << '\n';
 }
index b661581a4e043b3bdd38506df1a6ecbf014cc006..3385c2a20aeb6e061b789bbe50fa9f833c549930 100644 (file)
@@ -142,5 +142,5 @@ void  IGESSolid_ToolSolidOfLinearExtrusion::OwnDump
     << "Extrusion length    : " << ent->ExtrusionLength() << "\n"
     << "Extrusion direction : ";
   IGESData_DumpXYZL(S,level, ent->ExtrusionDirection(), ent->VectorLocation());
-  S << std::endl;
+  S << '\n';
 }
index a04d77515311c1a0bbe4c17ca69241f0db7e1850..232686ed7f2d83aa811d4d5439487de3f07ccd19 100644 (file)
@@ -176,5 +176,5 @@ void  IGESSolid_ToolSolidOfRevolution::OwnDump
   IGESData_DumpXYZL(S,level, ent->AxisPoint(), ent->Location());
   S << "\nAxis direction : ";
   IGESData_DumpXYZL(S,level, ent->Axis(), ent->VectorLocation());
-  S << std::endl;
+  S << '\n';
 }
index 2fbe8c5de69f53b6889ee2aa01c1ed3fc0e7129d..d67ef5b31624d94e4423df7a78c834c2ab59c8ac 100644 (file)
@@ -125,5 +125,5 @@ void  IGESSolid_ToolSphere::OwnDump
     << "Radius : " << ent->Radius() << "\n"
     << "Center : ";
   IGESData_DumpXYZL(S,level, ent->Center(), ent->Location());
-  S << std::endl;
+  S << '\n';
 }
index e66c9cf1aa9bf870ec74cb62ce45110f0b5aa094..0da43d534a3c3f658a30fb8b344b300dcb02a81f 100644 (file)
@@ -155,7 +155,7 @@ void  IGESSolid_ToolSphericalSurface::OwnDump
       S << "\n"
         << "Reference direction : ";
       dumper.Dump(ent->ReferenceDir(),S, sublevel);
-      S << std::endl;
+      S << '\n';
     }
-  else S << "Surface is UnParametrised" << std::endl;
+  else S << "Surface is UnParametrised" << '\n';
 }
index e77dd3576dff3b060f5a7d7fc5332bbbef90290f..a0831995414f0c669f02c2cda2f47b72a932f788 100644 (file)
@@ -152,7 +152,7 @@ void  IGESSolid_ToolToroidalSurface::OwnDump
     {
       S << "Surface is Parametrised  -  Reference direction : ";
       dumper.Dump(ent->ReferenceDir(),S, sublevel);
-      S << std::endl;
+      S << '\n';
     }
-  else S << "Surface is UnParametrised" << std::endl;
+  else S << "Surface is UnParametrised" << '\n';
 }
index 5657abfe848e57234da2f5be51f1600cd6adff1c..44a05b6bae6a3fe87298bed8afd01c8fd79f2ff8 100644 (file)
@@ -167,5 +167,5 @@ void  IGESSolid_ToolTorus::OwnDump
   IGESData_DumpXYZL(S,level, ent->AxisPoint(), ent->Location());
   S << "\nAxis direction : ";
   IGESData_DumpXYZL(S,level, ent->Axis(), ent->VectorLocation());
-  S << std::endl;
+  S << '\n';
 }
index 7a49f50ea2890a1f7b8e4187e9cd6ba85023681b..5182a16377df390a222b995571430ebd0993c75a 100644 (file)
@@ -204,5 +204,5 @@ void IGESSolid_ToolVertexList::OwnDump(const Handle(IGESSolid_VertexList)& ent,
   S << "IGESSolid_VertexList\n"
     << "Vertices : ";
   IGESData_DumpListXYZL(S,level,1, ent->NbVertices(),ent->Vertex,ent->Location());
-  S << std::endl;
+  S << '\n';
 }
index 1f55f6008863a251e949638289caa251aea42e31..d1d1839fee92a57070572d91effe6b28e113fccd 100644 (file)
@@ -162,7 +162,7 @@ void IGESToBRep_CurveAndSurface::SetModel(const Handle(IGESData_IGESModel)& mode
   if (unitfactor != 1.)
     {
       if ( myTP->TraceLevel() > 2 )
-       myTP->Messenger()->SendInfo() << "UnitFactor = "<< unitfactor << std::endl;
+       myTP->Messenger()->SendInfo() << "UnitFactor = "<< unitfactor << '\n';
       myUnitFactor = unitfactor;
     }
   UpdateMinMaxTol();
index 20fb88e65ddac6b00fd5d8075bb13eac4bf5963f..4a5e50d20510f70135d414658967228227db3c28 100644 (file)
@@ -1244,7 +1244,7 @@ void IntAna_IntQuadQuad::Parameters (const Standard_Integer, //i,
                                     Standard_Real& , 
                                     Standard_Real& ) const
 {
-  std::cout << "IntAna_IntQuadQuad::Parameters(...) is not yet implemented" << std::endl;
+  std::cout << "IntAna_IntQuadQuad::Parameters(...) is not yet implemented" << '\n';
 }
 
 /*********************************************************************************
index 5fc58732b8c4be540067d04eff1162cd1d7bc784..f1d8783dbcbefa59332814955683d9db2675b5ef 100644 (file)
@@ -56,7 +56,7 @@ void IntAna2d_AnaIntersection::Perform(const gp_Circ2d& Circle,
    math_TrigonometricFunctionRoots Sol(pcc,p2sc,pc,ps,pcte,0.0,2.0*M_PI);
 
    if(!Sol.IsDone()) {
-     std::cout << "\n\nmath_TrigonometricFunctionRoots -> NotDone\n\n"<<std::endl;
+     std::cout << "\n\nmath_TrigonometricFunctionRoots -> NotDone\n\n"<<'\n';
      done=Standard_False;
      return;
    }
index 62e6b30c74e8fb83cb60fe5f4c32a8d1f14c0be4..3cdc76c4d69890fea6caa8b52603f339a6d7ebd8 100644 (file)
@@ -136,6 +136,6 @@ void IntCurveSurface_Intersection::Dump() const {
     for(i=1;i<=ni;i++) {   Segment(i).Dump(); }
   }
   else { 
-    std::cout<<" Intersection NotDone"<<std::endl;
+    std::cout<<" Intersection NotDone"<<'\n';
   }
 }
index 39c6d936f8a30ae30e7afe7a14d0306650c5b01d..44b78a87561f50b34d174cba5e47c3ed8d7594df 100644 (file)
@@ -60,8 +60,8 @@ void IntCurveSurface_IntersectionPoint::Values(gp_Pnt& P,
 }
 //================================================================================
 void IntCurveSurface_IntersectionPoint::Dump() const { 
-  std::cout<<"IntersectionPoint: P("<<myP.X()<<","<<myP.Y()<<","<<myP.Z()<<")"<<std::endl;
-  std::cout<<"                 : USurf("<<myUSurf<<")  VSurf("<<myVSurf<<")   UCurve("<<myUCurv<<")"<<std::endl;
+  std::cout<<"IntersectionPoint: P("<<myP.X()<<","<<myP.Y()<<","<<myP.Z()<<")"<<'\n';
+  std::cout<<"                 : USurf("<<myUSurf<<")  VSurf("<<myVSurf<<")   UCurve("<<myUCurv<<")"<<'\n';
   std::cout<<"                 : TransitionOnSurf ";
 
   switch(myTrOnCurv) { 
@@ -71,7 +71,7 @@ void IntCurveSurface_IntersectionPoint::Dump() const {
 
   default: std::cout<< " XXXXX ";
   }  
-  std::cout<<std::endl;
+  std::cout<<'\n';
 }
 
 
index 6fa466fe5bc488a1150475514cac9cb255ceaebc..340567984fe19f54a1a57ee0072023d05a841cde 100644 (file)
@@ -58,9 +58,9 @@ const IntCurveSurface_IntersectionPoint &
 }
 //================================================================================
 void IntCurveSurface_IntersectionSegment::Dump() const { 
-  std::cout<<"\nIntersectionSegment : "<<std::endl;
+  std::cout<<"\nIntersectionSegment : "<<'\n';
   myP1.Dump();
   myP2.Dump();
-  std::cout<<std::endl;
+  std::cout<<'\n';
 }
 
index 6c681d27da408f9a5de780d20f9e476e8bade69f..49047921c376720b08643cf144b4c597397a851f 100644 (file)
@@ -146,7 +146,7 @@ static void DumpTransition(const IntSurf_Transition& T)
 #include <Standard_Transient.hxx>
 
 void IntPatch_Point::Dump() const { 
-  std::cout<<"----------- IntPatch_Point : "<<std::endl;
+  std::cout<<"----------- IntPatch_Point : "<<'\n';
   Standard_Real u1,v1,u2,v2;
   pt.Parameters(u1,v1,u2,v2);
 
@@ -179,8 +179,8 @@ void IntPatch_Point::Dump() const {
       std::cout<<"\n-traline2  : ";   DumpTransition(traline2);
       std::cout<<"  -tra2  : ";      DumpTransition(tra2);
     }
-    std::cout<<std::endl;
+    std::cout<<'\n';
   }
   std::cout << "\nToler = " << Tolerance();
-  std::cout << std::endl;
+  std::cout << '\n';
 }
index ae06ac4987a343af23d7212a495e12402d363486..3875a3552e7eb5deb5951f2ae7b8304fdad7d5d1 100644 (file)
@@ -34,18 +34,18 @@ void IntPatch_Polygo::Dump () const
 {
   static int num=0;
   num++; 
-  std::cout<<"\n#------------- D u m p     B o x 2 d   ("<<num<<")"<<std::endl;
+  std::cout<<"\n#------------- D u m p     B o x 2 d   ("<<num<<")"<<'\n';
   Bounding().Dump();
-  std::cout<<"\n#-----------------------------------------------"<<std::endl;
+  std::cout<<"\n#-----------------------------------------------"<<'\n';
   
   const Standard_Integer nbs = NbSegments();
   std::cout<<"\npol2d "<<num<<" "<<nbs<<" ";
-  std::cout<<DeflectionOverEstimation()<<std::endl;
+  std::cout<<DeflectionOverEstimation()<<'\n';
   
   gp_Pnt2d P, PF;
   for(Standard_Integer i=1;i<=nbs;i++) {
     Segment(i,P,PF);
-    std::cout<<"pnt2d "<<num<<"  "<< P.X()<<" "<<P.Y()<<std::endl;
+    std::cout<<"pnt2d "<<num<<"  "<< P.X()<<" "<<P.Y()<<'\n';
   }
-  std::cout<<"pnt2d "<<num<<"  "<< PF.X()<<" "<<PF.Y()<<std::endl;
+  std::cout<<"pnt2d "<<num<<"  "<< PF.X()<<" "<<PF.Y()<<'\n';
 }
index 4e552fc0679c78e42311f91e8800e0e927351f2f..db92f3cab1ae84ef90ec8b58d52d069660b69d41 100644 (file)
@@ -364,7 +364,7 @@ void IntPatch_RLine::ComputeVertexParameters(const Standard_Real )
 
 void IntPatch_RLine::Dump(const Standard_Integer theMode) const
 { 
-  std::cout<<" ----------- D u m p    I n t P a t c h  _  R L i n e  -(begin)------"<<std::endl;
+  std::cout<<" ----------- D u m p    I n t P a t c h  _  R L i n e  -(begin)------"<<'\n';
   const Standard_Integer aNbPoints = NbPnts();
   const Standard_Integer aNbVertex = NbVertex();
 
@@ -392,7 +392,7 @@ void IntPatch_RLine::Dump(const Standard_Integer theMode) const
         std::cout<<"----> IntSurf_PntOn2S : "<<
                       polr <<", Pnt (" << Vertex(pol).Value().X() << "," <<
                                           Vertex(pol).Value().Y() << "," <<
-                                          Vertex(pol).Value().Z() <<")" <<std::endl;
+                                          Vertex(pol).Value().Z() <<")" <<'\n';
       }
     }
 
@@ -426,6 +426,6 @@ void IntPatch_RLine::Dump(const Standard_Integer theMode) const
 
     break;
   }
-  std::cout<<"\n--------------------------------------------------- (end) -------"<<std::endl;  
+  std::cout<<"\n--------------------------------------------------- (end) -------"<<'\n';  
 }
 
index b1b996ff92be2600a407305a9712dc3f8abbcbbb..392bff89a1439637f89d819e59960b248288065a 100644 (file)
@@ -591,7 +591,7 @@ void IntPatch_RstInt::PutVertexOnLine (const Handle(IntPatch_Line)& L,
        
        static int debug_polygon2d =0;
        if(debug_polygon2d) { 
-         std::cout<<" ***** Numero Restriction : "<<NumeroEdge<<" *****"<<std::endl;
+         std::cout<<" ***** Numero Restriction : "<<NumeroEdge<<" *****"<<'\n';
          PLin.Dump();
          Brise.Dump();
        }
index 7cdb93daafac8d797eee389435a3d81e6d563fa7..3bda4e4e14791698714d5d163a02168c4a91f80a 100644 (file)
@@ -990,7 +990,7 @@ const Handle(Adaptor2d_Curve2d)& IntPatch_WLine::GetArcOnS2() const  {
 
 void IntPatch_WLine::Dump(const Standard_Integer theMode) const
 { 
-  std::cout<<" ----------- D u m p    I n t P a t c h  _  W L i n e  -(begin)------"<<std::endl;
+  std::cout<<" ----------- D u m p    I n t P a t c h  _  W L i n e  -(begin)------"<<'\n';
   const Standard_Integer aNbPoints = NbPnts();
   const Standard_Integer aNbVertex = NbVertex();
 
@@ -1018,7 +1018,7 @@ void IntPatch_WLine::Dump(const Standard_Integer theMode) const
         std::cout<<"----> IntSurf_PntOn2S : "<<
                       polr <<", Pnt (" << Vertex(pol).Value().X() << "," <<
                                           Vertex(pol).Value().Y() << "," <<
-                                          Vertex(pol).Value().Z() <<")" <<std::endl;
+                                          Vertex(pol).Value().Z() <<")" <<'\n';
       }
     }
 
@@ -1052,6 +1052,6 @@ void IntPatch_WLine::Dump(const Standard_Integer theMode) const
 
     break;
   }
-  std::cout<<"\n--------------------------------------------------- (end) -------"<<std::endl;  
+  std::cout<<"\n--------------------------------------------------- (end) -------"<<'\n';  
 }
 
index 110509bec9010925a1a41dce3206a1b6e6581729..32756605eac27d7a21f0fa63d53a223061a83d87 100644 (file)
@@ -539,11 +539,11 @@ void Interface_CheckIterator::Print(Standard_OStream& S,
 //  mesnum = mesnum0;
 //    if (yamod) mesnum = (nm0 > 0 ? mesnum1 : mesnum2);
 
-    if (!titre)        S <<" **  " << Name() << "  **"<<std::endl;
+    if (!titre)        S <<" **  " << Name() << "  **"<<'\n';
     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"<<std::endl;
+    if      (num <  0) S <<" -- Global Check"<<'\n';
     else if (num == 0) S <<" -- Entity n0 ??:";
     else {
       if (yamod) { S <<" -- Entity (n0:id) "; model->Print (ent, S); }
@@ -551,10 +551,10 @@ void Interface_CheckIterator::Print(Standard_OStream& S,
 //      S<<" -- Entity n0 "<<num<<mesnum;
 //      if (yamod) model->PrintLabel(ent,S);
     }
-    if      (num >= 0 &&  entnul) S <<" (unknown Type)"<<std::endl;
+    if      (num >= 0 &&  entnul) S <<" (unknown Type)"<<'\n';
     else if (num >= 0 && !entnul) {
-      if (yamod) S <<"   Type:"<<model->TypeName(ent)<<std::endl;
-      else       S <<"   Type:"<<ent->DynamicType()->Name()<<std::endl;
+      if (yamod) S <<"   Type:"<<model->TypeName(ent)<<'\n';
+      else       S <<"   Type:"<<ent->DynamicType()->Name()<<'\n';
     }
 
     ach->Print (S, (failsonly ? 1 : 3));
index bbd022949087d61034f43cca4ffa9b96918a6835..f638cf3096603dd0b3a4e6563e65d0dfb6a3ae4f 100644 (file)
@@ -153,7 +153,7 @@ Standard_Integer  Interface_MSG::Read (Standard_IStream& S)
 {
   Standard_Integer nb = 0;
   if (thedic.IsEmpty()) return nb;
-  if (rootkey[0] != '\0') S<<"@@ ROOT:"<<rootkey<<std::endl;
+  if (rootkey[0] != '\0') S<<"@@ ROOT:"<<rootkey<<'\n';
   NCollection_DataMap<TCollection_AsciiString, Handle(TCollection_HAsciiString)>::Iterator iter(thedic);
   for (; iter.More(); iter.Next()) {
     if (!iter.Key().StartsWith(rootkey)) continue;
@@ -184,7 +184,7 @@ Standard_CString  Interface_MSG::Translated (const Standard_CString key)
     if (thedic.Find(key, str))
       return str->ToCString();
   }
-  if (theprint) std::cout<<" **  Interface_MSG:Translate ?? "<<key<<"  **"<<std::endl;
+  if (theprint) std::cout<<" **  Interface_MSG:Translate ?? "<<key<<"  **"<<'\n';
   if (therec) {
     if (thelist.IsBound(key)) {
       thelist.ChangeFind(key)++;
@@ -207,7 +207,7 @@ void  Interface_MSG::Record
     thedic.Bind(key,str);
     return;
   }
-  if (theprint) std::cout<<" **  Interface_MSG:Record ?? "<<key<<" ** "<<item<<"  **"<<std::endl;
+  if (theprint) std::cout<<" **  Interface_MSG:Record ?? "<<key<<" ** "<<item<<"  **"<<'\n';
   if (therec) {
     if (thedup.IsNull()) thedup = new TColStd_HSequenceOfHAsciiString();
     dup = new TCollection_HAsciiString(key);
@@ -243,13 +243,13 @@ void  Interface_MSG::PrintTrace (Standard_OStream& S)
     dup = thedup->Value(2*i-1);
     S<<"** DUP:"<<dup->ToCString();
     dup = thedup->Value(2*i);
-    S<<" ** "<<dup->ToCString()<<std::endl;
+    S<<" ** "<<dup->ToCString()<<'\n';
   }
 
   if (thelist.IsEmpty()) return;
   NCollection_DataMap<TCollection_AsciiString, Standard_Integer>::Iterator iter(thelist);
   for (; iter.More(); iter.Next()) {
-    S<<"** MSG(NB="<<iter.Value()<<"): "<<iter.Key()<<std::endl;
+    S<<"** MSG(NB="<<iter.Value()<<"): "<<iter.Key()<<'\n';
   }
 }
 
index 1720dc19f75956eede88bcd419e9096b8fc932c9..4779d1d447d95b0522278c75c471d8aec2a5c88d 100644 (file)
@@ -206,5 +206,5 @@ void  Interface_ShareTool::Print (const Interface_EntityIterator& iter, Standard
     S << " n0/id:"; 
     Model()->Print (ent, S);
   }
-  S <<std::endl;
+  S <<'\n';
 }
index 84082f7ae5f878259c6ac8cfb862214c3a2c38a9..25459fcd716a4cd96cfc1cbac25e28492df43e82 100644 (file)
@@ -87,10 +87,10 @@ void  Interface_Static::PrintStatic (Standard_OStream& S) const
   S <<"--- Static Value : "<<Name()<<"  Family:"<<Family();
   Print (S);
   if (!thewild.IsNull())
-    S <<" -- Attached to wild-card : "<<thewild->Name()<<std::endl;
+    S <<" -- Attached to wild-card : "<<thewild->Name()<<'\n';
   S <<"--- Actual status : "<<(theupdate ? "" : "original")<<"  Value : ";
 
-  if (thesatisf) S <<" -- Specific Function for Satisfies : "<<thesatisn.ToCString()<<std::endl;
+  if (thesatisf) S <<" -- Specific Function for Satisfies : "<<thesatisn.ToCString()<<'\n';
 }
 
 
index 4d5cce8cbc040f8e513a012d45acdc471faeaefd..d62a98dd9dcb5f3e01476047669a0cfbb51d5476 100644 (file)
@@ -259,15 +259,15 @@ Standard_Boolean Intf_Interference::Contains
 //----------------------------------------------------
 void Intf_Interference::Dump() const
 {
-  std::cout << "Mes SectionPoint :" << std::endl;
+  std::cout << "Mes SectionPoint :" << '\n';
   for (Standard_Integer p=1; p<=mySPoins.Length(); p++) {
     mySPoins(p).Dump(2);
   }
-  std::cout << "Mes SectionLine :" << std::endl;
+  std::cout << "Mes SectionLine :" << '\n';
   for (Standard_Integer l=1; l<=mySLines.Length(); l++) {
     mySLines(l).Dump(2);
   }
-  std::cout << "Mes TangentZone :" << std::endl;
+  std::cout << "Mes TangentZone :" << '\n';
   for (Standard_Integer t=1; t<=myTZones.Length(); t++) {
     myTZones(t).Dump(2);
   }
index 1af8df48912dd8ca4b19ab7417b165a1735f1cb9..fe71ed889c4642846ea29c2472c4211224756fc9 100644 (file)
@@ -180,8 +180,8 @@ void Intf_SectionLine::Dump
 {
   for (Standard_Integer id=0; id<Indent; id++) std::cout << " ";
   std::cout << "LS ";
-  if (IsClosed()) std::cout << "Closed :" << std::endl;
-  else std::cout << "Open :" << std::endl;
+  if (IsClosed()) std::cout << "Closed :" << '\n';
+  else std::cout << "Open :" << '\n';
   for (Standard_Integer p=1; p<=myPoints.Length(); p++) {
     myPoints.Value(p).Dump(Indent+2);
   }
index 950d5692bec2c8b372f96eebf83d1e173c890506..ad56dd9e9ee9f03871a92ed2f42288be1f1e2b3f 100644 (file)
@@ -312,7 +312,7 @@ void LDOM_XmlWriter::Write (Standard_OStream& theOStream, const LDOM_Node& theNo
   default:
 #ifndef _MSC_VER
       std::cerr << "Unrecognized node type = "
-        << (long)theNode.getNodeType() << std::endl
+        << (long)theNode.getNodeType() << '\n'
 #endif
   ; }
 }
index cf0829b849c96eb3d7705f7d9bb69d448417575d..7351df3b449ca70c0cfae243c3bf798d13d1d5da 100644 (file)
@@ -154,7 +154,7 @@ void LocOpe_SplitDrafts::Perform(const TopoDS_Face& F,
   }
 
   if (!FinS) {
-    std::cout << "LocOpe_SplitDrafts:!Fins throw Standard_ConstructionError()" << std::endl;
+    std::cout << "LocOpe_SplitDrafts:!Fins throw Standard_ConstructionError()" << '\n';
     throw Standard_ConstructionError();
   }    
 
@@ -647,7 +647,7 @@ void LocOpe_SplitDrafts::Perform(const TopoDS_Face& F,
          }
        }
        if (!itl.More()) {
-         std::cout << "LocOpe_SplitDrafts: betite probleme "<< std::endl;
+         std::cout << "LocOpe_SplitDrafts: betite probleme "<< '\n';
          return;
        }
 
@@ -1376,7 +1376,7 @@ static Standard_Boolean NewPlane(const TopoDS_Face& F,
       }
     }
   }
-  std::cout << "fin newplane return standard_false" << std::endl;
+  std::cout << "fin newplane return standard_false" << '\n';
   return Standard_False;
 }
 
@@ -1445,7 +1445,7 @@ static void MakeFace(TopoDS_Face& F,
        }
       }
       if (C2d.IsNull()) {
-       std::cout << "Ca merde violemment" << std::endl;
+       std::cout << "Ca merde violemment" << '\n';
       }
     }
   }
@@ -1535,7 +1535,7 @@ static void MakeFace(TopoDS_Face& F,
     B.Add(F,lwires.First());
   }
   else {
-    std::cout << "Not yet implemented : nbwire >= 2" << std::endl;
+    std::cout << "Not yet implemented : nbwire >= 2" << '\n';
   }
 
 }
index 72ed0729f5722307dbe701c35c8411f3e279c42d..e1ebd17712a4f62f0ebb2a2c4dadd5fb04b4a20e 100644 (file)
@@ -951,7 +951,7 @@ Standard_Boolean LocOpe_SplitShape::AddOpenWire(const TopoDS_Wire& W,
       }
       //MODIFICATION PIERRE SMEYERS : si pas de possibilite, on sort avec erreur
       else{
-        std::cout<<"erreur Spliter : pas de chainage du wire"<<std::endl;
+        std::cout<<"erreur Spliter : pas de chainage du wire"<<'\n';
         return Standard_False;
       }
       //fin MODIF.
@@ -1035,7 +1035,7 @@ Standard_Boolean LocOpe_SplitShape::AddOpenWire(const TopoDS_Wire& W,
         else {
           // Ce wire est ni dans newF2 ni dans newF1
           // Peut etre faut il construire une troisieme face
-          std::cout << "WARNING: LocOpe_SPlitShape : Ce wire est ni dans newF2 ni dans newF1" << std::endl;
+          std::cout << "WARNING: LocOpe_SPlitShape : Ce wire est ni dans newF2 ni dans newF1" << '\n';
         }
       }
     }
index ec530a0f6114a561a5153556e58a99e9728b41cb..9314dc0b95b4cce285ce571c22dae6b04597d366 100644 (file)
 /*********************************************************************************/
 void LocalAnalysis::Dump(const LocalAnalysis_SurfaceContinuity& surfconti, Standard_OStream& o)
 { if (!surfconti.IsDone()) 
-      { o<<"Problem in the computation "<<std::endl;
+      { o<<"Problem in the computation "<<'\n';
         if (surfconti.StatusError()==LocalAnalysis_NullFirstDerivative) 
-           o<<"one of the first derivatives is null" <<std::endl;
+           o<<"one of the first derivatives is null" <<'\n';
         else if(surfconti.StatusError()==LocalAnalysis_NullSecondDerivative)
-            o<<"one of the  second derivatives is null" <<std::endl
+            o<<"one of the  second derivatives is null" <<'\n'
         else if(surfconti.StatusError()==LocalAnalysis_NormalNotDefined) 
-            o<<"one (or both) normal is undefined" <<std::endl;
+            o<<"one (or both) normal is undefined" <<'\n';
         else if(surfconti.StatusError()==LocalAnalysis_CurvatureNotDefined) 
-            o<<"one of the mean curvatures is undefined" <<std::endl; } 
+            o<<"one of the mean curvatures is undefined" <<'\n'; } 
   else 
   switch(surfconti.ContinuityStatus())
     { case GeomAbs_C0 :{  if (surfconti.IsC0() )
-                             o<<" Continuity Status : C0 " <<std::endl;
-                          else o<<" Continuity Status : No C0 "<<std::endl
-                          o<<" C0Value = "<<surfconti.C0Value() <<std::endl;
+                             o<<" Continuity Status : C0 " <<'\n';
+                          else o<<" Continuity Status : No C0 "<<'\n'
+                          o<<" C0Value = "<<surfconti.C0Value() <<'\n';
                       } break; 
       case GeomAbs_C1 :{ if (surfconti.IsC1()) 
-                          o<<" Continuity Status : C1 " <<std::endl;
+                          o<<" Continuity Status : C1 " <<'\n';
                          else 
                            {if (surfconti.IsC0() ) 
-                               o<<" Continuity Status : C0 " <<std::endl;
-                             else o<<" Continuity Status : NoC0 "<<std::endl;
+                               o<<" Continuity Status : C0 " <<'\n';
+                             else o<<" Continuity Status : NoC0 "<<'\n';
                            }  
-                        o<<" C0Value = "<<surfconti.C0Value()<<std::endl;
-                        o<<" C1UAngle = "<<surfconti.C1UAngle()<<std::endl;
-                         o<<" C1URatio = "<<surfconti.C1URatio()<<std::endl
-                        o<<" C1VAngle = "<<surfconti.C1VAngle()<<std::endl;
-                         o<<" C1VRatio = "<<surfconti.C1VRatio()<<std::endl;
+                        o<<" C0Value = "<<surfconti.C0Value()<<'\n';
+                        o<<" C1UAngle = "<<surfconti.C1UAngle()<<'\n';
+                         o<<" C1URatio = "<<surfconti.C1URatio()<<'\n'
+                        o<<" C1VAngle = "<<surfconti.C1VAngle()<<'\n';
+                         o<<" C1VRatio = "<<surfconti.C1VRatio()<<'\n';
                          
                       } break;  
       case GeomAbs_C2 :{  if (surfconti.IsC2()) 
-                          o<<" Continuity Status : C2 " <<std::endl;
+                          o<<" Continuity Status : C2 " <<'\n';
                          else 
                            {if (surfconti.IsC1() )
-                                o<<" Continuity Status : C1 " <<std::endl;
+                                o<<" Continuity Status : C1 " <<'\n';
                             else
                               { if (surfconti.IsC0() )
-                                  o<<" Continuity Status : C0 " <<std::endl;
-                                else o<<" Continuity Status : NoC0 "<<std::endl;}
+                                  o<<" Continuity Status : C0 " <<'\n';
+                                else o<<" Continuity Status : NoC0 "<<'\n';}
                            } 
                          
-                        o<<" C0Value = "<<surfconti.C0Value()<<std::endl;
-                        o<<" C1UAngle = "<<surfconti.C1UAngle()<<std::endl;
-                        o<<" C1VAngle = "<<surfconti.C1VAngle()<<std::endl;
-                        o<<" C2UAngle = "<<surfconti.C2UAngle()<<std::endl;
-                        o<<" C2VAngle = "<<surfconti.C2VAngle()<<std::endl;
-                        o<<" C1URatio = "<<surfconti.C1URatio()<<std::endl;
-                        o<<" C1VRatio = "<<surfconti.C1VRatio()<<std::endl;
-                        o<<" C2URatio = "<<surfconti.C2URatio()<<std::endl;
-                        o<<" C2VRatio = "<<surfconti.C2VRatio()<<std::endl;
+                        o<<" C0Value = "<<surfconti.C0Value()<<'\n';
+                        o<<" C1UAngle = "<<surfconti.C1UAngle()<<'\n';
+                        o<<" C1VAngle = "<<surfconti.C1VAngle()<<'\n';
+                        o<<" C2UAngle = "<<surfconti.C2UAngle()<<'\n';
+                        o<<" C2VAngle = "<<surfconti.C2VAngle()<<'\n';
+                        o<<" C1URatio = "<<surfconti.C1URatio()<<'\n';
+                        o<<" C1VRatio = "<<surfconti.C1VRatio()<<'\n';
+                        o<<" C2URatio = "<<surfconti.C2URatio()<<'\n';
+                        o<<" C2VRatio = "<<surfconti.C2VRatio()<<'\n';
                       } break; 
       case GeomAbs_G1 :{ if (surfconti.IsG1()) 
-                          o<<" Continuity Status : G1 " <<std::endl;
+                          o<<" Continuity Status : G1 " <<'\n';
                           else 
                            {if (surfconti.IsC0() ) 
-                               o<<" Continuity Status : G0 " <<std::endl;
-                            else o<<" Continuity Status : NoG0 "<<std::endl;
+                               o<<" Continuity Status : G0 " <<'\n';
+                            else o<<" Continuity Status : NoG0 "<<'\n';
                            }  
-                        o<<" G0Value = "<<surfconti.C0Value()<<std::endl
-                        o<<" G1Angle = "<<surfconti.G1Angle()<<std::endl<<std::endl;
+                        o<<" G0Value = "<<surfconti.C0Value()<<'\n'
+                        o<<" G1Angle = "<<surfconti.G1Angle()<<'\n'<<'\n';
                       } break;
       case GeomAbs_G2 :{ if (surfconti.IsG2()) 
-                          o<<" Continuity Status : G2 " <<std::endl;
+                          o<<" Continuity Status : G2 " <<'\n';
                          else 
                            {if (surfconti.IsG1() )
-                                o<<" Continuity Status : G1 " <<std::endl;
+                                o<<" Continuity Status : G1 " <<'\n';
                             else
                               { if (surfconti.IsC0() )
-                                  o<<" Continuity Status : G0 " <<std::endl;
-                                else o<<" Continuity Status : NoG0 "<<std::endl;}
+                                  o<<" Continuity Status : G0 " <<'\n';
+                                else o<<" Continuity Status : NoG0 "<<'\n';}
                            } 
-                        o<<" G0Value = "<<surfconti.C0Value()<<std::endl
-                        o<<" G1Value = "<<surfconti.G1Angle()<<std::endl;
-                        o<<" G2CurvatureGap = "<<surfconti.G2CurvatureGap()<<std::endl;
+                        o<<" G0Value = "<<surfconti.C0Value()<<'\n'
+                        o<<" G1Value = "<<surfconti.G1Angle()<<'\n';
+                        o<<" G2CurvatureGap = "<<surfconti.G2CurvatureGap()<<'\n';
                        } break;  
 
       default         : {}
@@ -107,75 +107,75 @@ void LocalAnalysis::Dump(const LocalAnalysis_SurfaceContinuity& surfconti, Stand
 
 void LocalAnalysis::Dump(const LocalAnalysis_CurveContinuity& curvconti, Standard_OStream& o)
 { if (!curvconti.IsDone()) 
-      { o<<"Problem in the computation "<<std::endl;
+      { o<<"Problem in the computation "<<'\n';
         if (curvconti.StatusError()==LocalAnalysis_NullFirstDerivative) 
-           o<<"one (or both) first derivative is null" <<std::endl;
+           o<<"one (or both) first derivative is null" <<'\n';
         else if(curvconti.StatusError()==LocalAnalysis_NullSecondDerivative)
-            o<<"one (or both) second derivative is null" <<std::endl
+            o<<"one (or both) second derivative is null" <<'\n'
         else if(curvconti.StatusError()==LocalAnalysis_TangentNotDefined)
-             o<<"one (or both) tangent is undefined " <<std::endl
+             o<<"one (or both) tangent is undefined " <<'\n'
         else if(curvconti.StatusError()==LocalAnalysis_NormalNotDefined) 
-             o<<"one (or both) normal is undefined" <<std::endl;}  
+             o<<"one (or both) normal is undefined" <<'\n';}  
   else     
   switch(curvconti.ContinuityStatus())
     { case GeomAbs_C0 :{  if (curvconti.IsC0() )
-                             o<<" Continuity Status : C0 " <<std::endl;
-                          else o<<" Continuity Status : No C0 "<<std::endl
-                          o<<" C0Value = "<<curvconti.C0Value() <<std::endl;
+                             o<<" Continuity Status : C0 " <<'\n';
+                          else o<<" Continuity Status : No C0 "<<'\n'
+                          o<<" C0Value = "<<curvconti.C0Value() <<'\n';
                       } break; 
       case GeomAbs_C1 :{ if (curvconti.IsC1()) 
-                          o<<" Continuity Status : C1 " <<std::endl;
+                          o<<" Continuity Status : C1 " <<'\n';
                          else 
                            {if (curvconti.IsC0() ) 
-                               o<<" Continuity Status : C0 " <<std::endl;
-                             else o<<" Continuity Status : NoC0 "<<std::endl;
+                               o<<" Continuity Status : C0 " <<'\n';
+                             else o<<" Continuity Status : NoC0 "<<'\n';
                            }  
-                        o<<" C0Value = "<<curvconti.C0Value()<<std::endl;
-                        o<<" C1Angle = "<<curvconti.C1Angle()<<std::endl;
-                         o<<" C1Ratio = "<<curvconti.C1Ratio()<<std::endl;
+                        o<<" C0Value = "<<curvconti.C0Value()<<'\n';
+                        o<<" C1Angle = "<<curvconti.C1Angle()<<'\n';
+                         o<<" C1Ratio = "<<curvconti.C1Ratio()<<'\n';
                                
                       } break; 
       case GeomAbs_C2 :{ if (curvconti.IsC2()) 
-                          o<<" Continuity Status : C2 " <<std::endl;
+                          o<<" Continuity Status : C2 " <<'\n';
                          else 
                            {if (curvconti.IsC1() )
-                                o<<" Continuity Status : C1 " <<std::endl;
+                                o<<" Continuity Status : C1 " <<'\n';
                             else
                               { if (curvconti.IsC0() )
-                                  o<<" Continuity Status : C0 " <<std::endl;
-                                else o<<" Continuity Status : NoC0 "<<std::endl;}
+                                  o<<" Continuity Status : C0 " <<'\n';
+                                else o<<" Continuity Status : NoC0 "<<'\n';}
                            } 
-                        o<<" C0Value = "<<curvconti.C0Value()<<std::endl;
-                        o<<" C1Angle = "<<curvconti.C1Angle()<<std::endl;
-                        o<<" C2Angle = "<<curvconti.C2Angle()<<std::endl;
-                        o<<" C1Ratio = "<<curvconti.C1Ratio()<<std::endl;
-                        o<<" C2Ratio = "<<curvconti.C2Ratio()<<std::endl;
+                        o<<" C0Value = "<<curvconti.C0Value()<<'\n';
+                        o<<" C1Angle = "<<curvconti.C1Angle()<<'\n';
+                        o<<" C2Angle = "<<curvconti.C2Angle()<<'\n';
+                        o<<" C1Ratio = "<<curvconti.C1Ratio()<<'\n';
+                        o<<" C2Ratio = "<<curvconti.C2Ratio()<<'\n';
                       }break; 
                          
       case GeomAbs_G1 :{  if (curvconti.IsG1()) 
-                          o<<" Continuity Status : G1 " <<std::endl;
+                          o<<" Continuity Status : G1 " <<'\n';
                           else 
                            {if (curvconti.IsC0() ) 
-                               o<<" Continuity Status : G0 " <<std::endl;
-                            else o<<" Continuity Status : NoG0 "<<std::endl;
+                               o<<" Continuity Status : G0 " <<'\n';
+                            else o<<" Continuity Status : NoG0 "<<'\n';
                            }  
-                        o<<" G0Value = "<<curvconti.C0Value()<<std::endl
-                        o<<" G1Angle = "<<curvconti.G1Angle()<<std::endl;
+                        o<<" G0Value = "<<curvconti.C0Value()<<'\n'
+                        o<<" G1Angle = "<<curvconti.G1Angle()<<'\n';
                       } break;
       case GeomAbs_G2 :{ if (curvconti.IsG2()) 
-                          o<<" Continuity Status : G2 " <<std::endl;
+                          o<<" Continuity Status : G2 " <<'\n';
                          else 
                            {if (curvconti.IsG1() )
-                                o<<" Continuity Status : G1 " <<std::endl;
+                                o<<" Continuity Status : G1 " <<'\n';
                             else
                               { if (curvconti.IsC0() )
-                                  o<<" Continuity Status : G0 " <<std::endl;
-                                else o<<" Continuity Status : NoG0 "<<std::endl;}
+                                  o<<" Continuity Status : G0 " <<'\n';
+                                else o<<" Continuity Status : NoG0 "<<'\n';}
                            } 
-                        o<<" G0Value = "<<curvconti.C0Value()<<std::endl
-                        o<<" G1Angle = "<<curvconti.G1Angle()<<std::endl;
-                        o<<" G2Angle = "<<curvconti.G2Angle()<<std::endl;
-                        o<<" Relative curvature variation = "<<curvconti.G2CurvatureVariation()<<std::endl;
+                        o<<" G0Value = "<<curvconti.C0Value()<<'\n'
+                        o<<" G1Angle = "<<curvconti.G1Angle()<<'\n';
+                        o<<" G2Angle = "<<curvconti.G2Angle()<<'\n';
+                        o<<" Relative curvature variation = "<<curvconti.G2CurvatureVariation()<<'\n';
 
                       } break;  
 
index efb415598c15ad624984ce17e6b051d79f854322..6d03ab2ef8f4c73b911d32eb66cf5227c05ebc16 100644 (file)
@@ -176,19 +176,19 @@ void MAT_Bisector::Dump(const Standard_Integer ashift,
   Standard_Integer i;
 
   for(i=0; i<ashift; i++)std::cout<<"  ";
-  std::cout<<" BISECTOR : "<<thebisectornumber<<std::endl;
+  std::cout<<" BISECTOR : "<<thebisectornumber<<'\n';
   for(i=0; i<ashift; i++)std::cout<<"  ";
-  std::cout<<"   First edge     : "<<thefirstedge->EdgeNumber()<<std::endl;
+  std::cout<<"   First edge     : "<<thefirstedge->EdgeNumber()<<'\n';
   for(i=0; i<ashift; i++)std::cout<<"  ";
-  std::cout<<"   Second edge    : "<<thesecondedge->EdgeNumber()<<std::endl;
+  std::cout<<"   Second edge    : "<<thesecondedge->EdgeNumber()<<'\n';
   for(i=0; i<ashift; i++)std::cout<<"  ";
   if(alevel)
     {
       if(!thelistofbisectors->More())
        {
-         std::cout<<"   Bisectors List : "<<std::endl;
+         std::cout<<"   Bisectors List : "<<'\n';
          thelistofbisectors->Dump(ashift+1,1);
        }
     }
-  std::cout<<std::endl;
+  std::cout<<'\n';
 }
index acca65a98e6128fc2b95b0d8d103633bb0478d14..88dfbe9eef2cbf44fa7a5d49821454db90e9e491 100644 (file)
@@ -273,28 +273,28 @@ void MAT2d_Connexion::Dump (const Standard_Integer ,
 {
   Standard_Integer MyOffset = Offset;
   Indent (Offset);
-  std::cout<<"MAT2d_Connexion :"<<std::endl;
+  std::cout<<"MAT2d_Connexion :"<<'\n';
   MyOffset++;
   Indent (MyOffset);
-  std::cout <<"IndexFirstLine    :"<<lineA<<std::endl;
+  std::cout <<"IndexFirstLine    :"<<lineA<<'\n';
   Indent (MyOffset);
-  std::cout <<"IndexSecondLine   :"<<lineB<<std::endl;
+  std::cout <<"IndexSecondLine   :"<<lineB<<'\n';
   Indent (MyOffset);
-  std::cout <<"IndexItemOnFirst  :"<<itemA<<std::endl;
+  std::cout <<"IndexItemOnFirst  :"<<itemA<<'\n';
   Indent (MyOffset);
-  std::cout <<"IndexItemOnSecond :"<<itemB<<std::endl;
+  std::cout <<"IndexItemOnSecond :"<<itemB<<'\n';
   Indent (MyOffset);
-  std::cout <<"ParameterOnFirst  :"<<parameterOnA<<std::endl;
+  std::cout <<"ParameterOnFirst  :"<<parameterOnA<<'\n';
   Indent (MyOffset);
-  std::cout <<"ParameterOnSecond :"<<parameterOnB<<std::endl;
+  std::cout <<"ParameterOnSecond :"<<parameterOnB<<'\n';
   Indent (MyOffset);
-  std::cout <<"PointOnFirst      :"<<std::endl;
-  std::cout <<"  X = "<<pointA.X()<<std::endl;
-  std::cout <<"  Y = "<<pointA.Y()<<std::endl;
+  std::cout <<"PointOnFirst      :"<<'\n';
+  std::cout <<"  X = "<<pointA.X()<<'\n';
+  std::cout <<"  Y = "<<pointA.Y()<<'\n';
   Indent (MyOffset);
-  std::cout <<"PointOnSecond     :"<<std::endl;
-  std::cout <<"  X = "<<pointB.X()<<std::endl;
-  std::cout <<"  Y = "<<pointB.Y()<<std::endl;
+  std::cout <<"PointOnSecond     :"<<'\n';
+  std::cout <<"  X = "<<pointB.X()<<'\n';
+  std::cout <<"  Y = "<<pointB.Y()<<'\n';
   Indent (MyOffset);
-  std::cout <<"Distance          :"<<distance<<std::endl;
+  std::cout <<"Distance          :"<<distance<<'\n';
 }
index f6f0b7105e66633513927609c0c50843106254a8..cd5dc1d6444fe269c338bb893368cb32931c41fa 100644 (file)
@@ -38,7 +38,7 @@ Standard_EXPORT const char* MeshTest_DrawLinks(const char* theNameStr, void* the
     if (aMeshData.IsNull())
       return "Null mesh data structure";
     Standard_Integer nbLinks = aMeshData->NbLinks();
-    std::cout << "nblink=" << nbLinks << std::endl;
+    std::cout << "nblink=" << nbLinks << '\n';
     TCollection_AsciiString aName(theNameStr);
     for (Standard_Integer i = 1; i <= nbLinks; i++)
     {
@@ -79,7 +79,7 @@ Standard_EXPORT const char* MeshTest_DrawTriangles(const char* theNameStr, void*
     if (aMeshData.IsNull())
       return "Null mesh data structure";
     Standard_Integer nbElem = aMeshData->NbElements();
-    std::cout << "nbelem=" << nbElem << std::endl;
+    std::cout << "nbelem=" << nbElem << '\n';
     TCollection_AsciiString aName(theNameStr);
     for (Standard_Integer i = 1; i <= nbElem; i++)
     {
index 9215217e50112954a45d0101a77247332e765bbc..a62d00231247bb6ea4ea89671fb8de3508150118 100644 (file)
@@ -296,7 +296,7 @@ static Standard_Integer triarea (Draw_Interpretor& di, int n, const char ** a)
       TopLoc_Location aLoc;
       Handle(Poly_Triangulation) aPoly = BRep_Tool::Triangulation(aFace,aLoc);
       if (aPoly.IsNull()) {
-        std::cout << "face "<<i<<" has no triangulation"<<std::endl;
+        std::cout << "face "<<i<<" has no triangulation"<<'\n';
         continue;
       }
       for (int j = 1; j <= aPoly->NbTriangles(); j++)
index ee53f8187ac6c0cc02793a7ca1a117876c575543..8e4cab65fdeaff0c36ebd23239d87dcd5c15f753 100644 (file)
@@ -161,7 +161,7 @@ void Message_PrinterOStream::send (const TCollection_AsciiString& theString,
   {
     *aStream << theString;
   }
-  (*aStream) << std::endl;
+  (*aStream) << '\n';
 }
 
 //=======================================================================
index 9f606f7448bfda6d643d7682bcb6d11d9b8fec3f..9249e36cee3c24c500b308f1d9d95be1791c2d1f 100644 (file)
@@ -458,7 +458,7 @@ void Message_Report::dumpMessages (Standard_OStream& theOS, Message_Gravity theG
   const Message_ListOfAlert& anAlerts = theCompositeAlert->Alerts (theGravity);
   for (Message_ListOfAlert::Iterator anIt (anAlerts); anIt.More(); anIt.Next())
   {
-    theOS << anIt.Value()->GetMessageKey() << std::endl;
+    theOS << anIt.Value()->GetMessageKey() << '\n';
 
     Handle(Message_AlertExtended) anExtendedAlert = Handle(Message_AlertExtended)::DownCast (anIt.Value());
     if (anExtendedAlert.IsNull())
index fb7021f9350ca4483d09df1ebdefe076cfd83c0c..b89d6bc73c5e82e37dd6ddb1a454b053fa3367a5 100644 (file)
@@ -40,7 +40,7 @@ void MoniTool_Timer::Dump(Standard_OStream &ostr)
   Sprintf ( buff, "Elapsed:%6.1f sec, CPU User:%9.4f sec, CPU Sys:%9.4f sec, hits: %d",
                    elapsed, user, system, myCount );
     
-  ostr << buff << std::endl;
+  ostr << buff << '\n';
 }
 
 //=======================================================================
@@ -93,7 +93,7 @@ void MoniTool_Timer::DumpTimers (Standard_OStream &ostr)
 
   Standard_Integer NbTimers = dic.Extent();
 
-  ostr << "DUMP OF TIMERS:" << std::endl;
+  ostr << "DUMP OF TIMERS:" << '\n';
   Standard_CString *keys = new Standard_CString[NbTimers];
   Standard_Integer i=0;
   for( ; iter.More() && i < NbTimers; iter.Next()) {
@@ -115,7 +115,7 @@ void MoniTool_Timer::DumpTimers (Standard_OStream &ostr)
     //iter.Value()->Dump ( ostr );
     Timer(stmp)->Dump(ostr);
     keys[ntmp]=0;
-    if ( Timer(stmp)->IsRunning() ) std::cerr << "Warning: timer " << stmp << " is running" << std::endl;
+    if ( Timer(stmp)->IsRunning() ) std::cerr << "Warning: timer " << stmp << " is running" << '\n';
   }
   delete[] keys;
 }
@@ -194,12 +194,12 @@ void MoniTool_Timer::ComputeAmendments ()
   amAccess   += ( 0.5 * ( cpu3 - cpu1 ) ) / NBTESTS;
   amError     = Abs ( cpu1 + cpu3 - 2 * cpu2 ) / NBTESTS;
   
-  std::cout << "CPU 0: " << cpu0 << std::endl;
-  std::cout << "CPU 1: " << cpu1 << " INTERNAL: " << cput1 << std::endl;
-  std::cout << "CPU 2: " << cpu2 << " INTERNAL: " << cput2 << std::endl;
-  std::cout << "CPU 3: " << cpu3 << " INTERNAL: " << cput3 << std::endl;
+  std::cout << "CPU 0: " << cpu0 << '\n';
+  std::cout << "CPU 1: " << cpu1 << " INTERNAL: " << cput1 << '\n';
+  std::cout << "CPU 2: " << cpu2 << " INTERNAL: " << cput2 << '\n';
+  std::cout << "CPU 3: " << cpu3 << " INTERNAL: " << cput3 << '\n';
   std::cout << "Access: " << amAccess << ", External: " << amExternal << 
-          ", Internal: " << amInternal << ", Error: " << amError << std::endl;
+          ", Internal: " << amInternal << ", Error: " << amError << '\n';
   
 }
   
index f6e7b7534f1736ccd0e712b31095be944b7a61b7..d3e0aaf41fbf1247635246fc3f9891cce293fd1e 100644 (file)
@@ -232,12 +232,12 @@ static Standard_Boolean StaticPath(const Handle(TCollection_HAsciiString)& val)
 {
   S <<"--- Typed Value : "<<Name();
   if (thelabel.Length() > 0) S <<"  Label : "<<Label();
-  S <<std::endl<<"--- Type : "<<Definition()<<std::endl<<"--- Value : ";
+  S <<'\n'<<"--- Type : "<<Definition()<<'\n'<<"--- Value : ";
 
   PrintValue (S);
-  S <<std::endl;
+  S <<'\n';
 
-  if (thesatisf) S <<" -- Specific Function for Satisfies : "<<thesatisn.ToCString()<<std::endl;
+  if (thesatisf) S <<" -- Specific Function for Satisfies : "<<thesatisn.ToCString()<<'\n';
 }
 
 
index f1f61e8bcc57b817aa3c39703776dfdfa366f98c..5cefafae2dfdf73fd6d7e4e4774392ff2f302a5a 100644 (file)
@@ -368,7 +368,7 @@ Standard_Boolean OSD_MAllocHook::LogFileHandler::MakeReport
            << std::setw(10) << "NbLeftPeak "
            << std::setw(20) << "AllocSize "
            << std::setw(20) << "LeftSize "
-           << std::setw(20) << "PeakSize " << std::endl;
+           << std::setw(20) << "PeakSize " << '\n';
 
   Standard_Size aTotAlloc = 0;
   for (std::set<StorageInfo>::const_iterator it = aStMap.begin();
@@ -386,7 +386,7 @@ Standard_Boolean OSD_MAllocHook::LogFileHandler::MakeReport
              << std::setw(10) << aInfo.nbLeftPeak << ' '
              << std::setw(20) << aSizeAlloc << ' '
              << std::setw(20) << aSizeLeft << ' '
-             << std::setw(20) << aSizePeak << std::endl;
+             << std::setw(20) << aSizePeak << '\n';
 
     if (aTotAlloc + aSizeAlloc < aTotAlloc) // overflow ?
       aTotAlloc = SIZE_MAX;
@@ -406,7 +406,7 @@ Standard_Boolean OSD_MAllocHook::LogFileHandler::MakeReport
            << (aTotAlloc == SIZE_MAX ? '>' : ' ')
            << std::setw(20) << aTotAlloc << ' '
            << std::setw(20) << aTotalLeftSize << ' '
-           << std::setw(20) << aTotalPeakSize << std::endl;
+           << std::setw(20) << aTotalPeakSize << '\n';
 
   aRepFile.close();
   return Standard_True;
@@ -425,7 +425,7 @@ void OSD_MAllocHook::LogFileHandler::AllocEvent
   {
     myMutex.Lock();
     myLogFile << "alloc "<< std::setw(10) << theRequestNum
-              << std::setw(20) << theSize << std::endl;
+              << std::setw(20) << theSize << '\n';
     if (myBreakSize == theSize)
       place_for_breakpoint();
     myMutex.Unlock();
@@ -446,7 +446,7 @@ void OSD_MAllocHook::LogFileHandler::FreeEvent
   {
     myMutex.Lock();
     myLogFile << "free " << std::setw(20) << theRequestNum
-              << std::setw(20) << theSize << std::endl;
+              << std::setw(20) << theSize << '\n';
     myMutex.Unlock();
   }
 }
@@ -524,7 +524,7 @@ Standard_Boolean OSD_MAllocHook::CollectBySize::MakeReport(const char* theOutFil
            << std::setw(10) << "NbLeftPeak "
            << std::setw(20) << "AllocSize "
            << std::setw(20) << "LeftSize "
-           << std::setw(20) << "PeakSize " << std::endl;
+           << std::setw(20) << "PeakSize " << '\n';
 
   Standard_Size aTotAlloc = 0;
   for (int i = 0; i < MAX_ALLOC_SIZE; i++)
@@ -543,7 +543,7 @@ Standard_Boolean OSD_MAllocHook::CollectBySize::MakeReport(const char* theOutFil
                << std::setw(10) << myArray[i].nbLeftPeak << ' '
                << std::setw(20) << aSizeAlloc << ' '
                << std::setw(20) << aSizeLeft << ' '
-               << std::setw(20) << aSizePeak << std::endl;
+               << std::setw(20) << aSizePeak << '\n';
 
       if (aTotAlloc + aSizeAlloc < aTotAlloc) // overflow ?
         aTotAlloc = SIZE_MAX;
@@ -558,7 +558,7 @@ Standard_Boolean OSD_MAllocHook::CollectBySize::MakeReport(const char* theOutFil
            << (aTotAlloc == SIZE_MAX ? '>' : ' ')
            << std::setw(20) << aTotAlloc  << ' '
            << std::setw(20) << myTotalLeftSize  << ' '
-           << std::setw(20) << myTotalPeakSize << std::endl;
+           << std::setw(20) << myTotalPeakSize << '\n';
   aRepFile.close();
   return Standard_True;
 }
index 7da3f19004c1886e44590905327f2c79d5ee2e77..32a2e428aafeddc7252be7d132726263a5919630 100644 (file)
@@ -1089,7 +1089,7 @@ void OSD::SetSignal (OSD_SignalMode theSignalMode,
       sigemptyset(&anActOld2.sa_mask);
       retcode = sigaction (aSignalTypes[i], &anActOld, &anActOld2);
     }
-    Standard_ASSERT(retcode == 0, "sigaction() failed", std::cout << "OSD::SetSignal(): sigaction() failed for " << aSignalTypes[i] << std::endl);
+    Standard_ASSERT(retcode == 0, "sigaction() failed", std::cout << "OSD::SetSignal(): sigaction() failed for " << aSignalTypes[i] << '\n');
   }
 }
 
index 6ad8b2345116f4785be62135874b384c68db6fdc..21a8fc2f53915b716fb468ce09700256e40f1837 100644 (file)
@@ -51,9 +51,9 @@ Handle(Standard_Transient) Plugin::Load (const Standard_GUID& aGUID,
 
     if(!PluginResource->Find(theResource.ToCString())) {
       Standard_SStream aMsg; aMsg << "could not find the resource:";
-      aMsg << theResource.ToCString() << std::endl;
+      aMsg << theResource.ToCString() << '\n';
       if (theVerbose)
-        std::cout << "could not find the resource:" << theResource.ToCString() << std::endl;
+        std::cout << "could not find the resource:" << theResource.ToCString() << '\n';
       throw Plugin_Failure(aMsg.str().c_str());
     }
     
@@ -79,7 +79,7 @@ Handle(Standard_Transient) Plugin::Load (const Standard_GUID& aGUID,
       aMsg << "; reason:";
       aMsg << error.ToCString();
       if (theVerbose)
-        std::cout << "could not open: "  << PluginResource->Value(theResource.ToCString())<< " ; reason: "<< error.ToCString() << std::endl;
+        std::cout << "could not open: "  << PluginResource->Value(theResource.ToCString())<< " ; reason: "<< error.ToCString() << '\n';
       throw Plugin_Failure(aMsg.str().c_str());
     }
     f = theSharedLibrary.DlSymb("PLUGINFACTORY");
index d84265646a2fc3abf93487895e84e3f248c90fb6..1b669f3e821fbf90729a0c7d3fa749f8bb242158 100644 (file)
@@ -99,11 +99,11 @@ void Poly_CoherentNode::Dump(Standard_OStream& theStream) const
 {
   char buf[256];
   Sprintf (buf, "  X =%9.4f; Y =%9.4f; Z =%9.4f", X(), Y(), Z());
-  theStream << buf << std::endl;
+  theStream << buf << '\n';
   Poly_CoherentTriPtr::Iterator anIter(* myTriangles);
   for (; anIter.More(); anIter.Next()) {
     const Poly_CoherentTriangle& aTri = anIter.Value();
     Sprintf (buf, "      %5d %5d %5d", aTri.Node(0),aTri.Node(1),aTri.Node(2));
-    theStream << buf << std::endl;
+    theStream << buf << '\n';
   }
 }
index de4cf1f20a4bb7e890dd222548ca2ac3227fb1a6..17a8f20d55732eae7b71835c3b342f67c1dcccaa 100644 (file)
@@ -50,7 +50,7 @@ static gp_Pnt OnSurface_Value(const Standard_Real U,
     }
   }
   if ( Index == 0 ) {
-    std::cout << " Extrema non trouve pour U = " << U << std::endl;
+    std::cout << " Extrema non trouve pour U = " << U << '\n';
     return gp_Pnt(0.,0.,0.);
   }
   else {
index e84883a962f530c90139982fa13cff201361f3ec..bb1966975ef4a4792cd9868734919829f19fdfbf 100644 (file)
@@ -1491,7 +1491,7 @@ static Standard_Integer OCC670 (Draw_Interpretor& di, Standard_Integer argc, con
   }
   catch (Standard_Failure const& anException) {
     std::cout << "Caught successfully: ";
-    std::cout << anException << std::endl;
+    std::cout << anException << '\n';
   }
   return 0;
 }
@@ -2121,7 +2121,7 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
   {//==== Test Divide ByZero (Integer) ========================================
     try{
       OCC_CATCH_SIGNALS
-      std::cout << "(Integer) Divide By Zero..." << std::endl;
+      std::cout << "(Integer) Divide By Zero..." << '\n';
       di << "(Integer) Divide By Zero...";
       //std::cout.flush();
       di << "\n";
@@ -2154,7 +2154,7 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
   {//==== Test Divide ByZero (Real) ===========================================
     try{
       OCC_CATCH_SIGNALS
-      std::cout << "(Real) Divide By Zero..." << std::endl;
+      std::cout << "(Real) Divide By Zero..." << '\n';
       di << "(Real) Divide By Zero...";
       //std::cout.flush();
       di << "\n";
@@ -2183,7 +2183,7 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
   {//==== Test Overflow (Integer) =============================================
     try{
       OCC_CATCH_SIGNALS
-      std::cout << "(Integer) Overflow..." << std::endl;
+      std::cout << "(Integer) Overflow..." << '\n';
       di << "(Integer) Overflow...";
       //std::cout.flush();
       di << "\n";
@@ -2208,7 +2208,7 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
   {//==== Test Overflow (Real) ================================================ 
     try{
       OCC_CATCH_SIGNALS
-      std::cout << "(Real) Overflow..." << std::endl;
+      std::cout << "(Real) Overflow..." << '\n';
       di << "(Real) Overflow...";
       //std::cout.flush();
       di << "\n";
@@ -2240,7 +2240,7 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
   {//==== Test Underflow (Real) ===============================================
     try{
       OCC_CATCH_SIGNALS
-      std::cout << "(Real) Underflow" << std::endl; // to have message in log even if process crashed
+      std::cout << "(Real) Underflow" << '\n'; // to have message in log even if process crashed
       di << "(Real) Underflow";
       //std::cout.flush();
       di << "\n";
@@ -2273,7 +2273,7 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
   {//==== Test Invalid Operation (Real) ===============================================
     try{
       OCC_CATCH_SIGNALS
-      std::cout << "(Real) Invalid Operation..." << std::endl;
+      std::cout << "(Real) Invalid Operation..." << '\n';
       di << "(Real) Invalid Operation...";
       //std::cout.flush();
       di << "\n";
@@ -2297,7 +2297,7 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
   {//==== Test Access Violation ===============================================
     try {
       OCC_CATCH_SIGNALS
-      std::cout << "Segmentation Fault..." << std::endl;
+      std::cout << "Segmentation Fault..." << '\n';
       di << "Segmentation Fault...";
       //std::cout.flush();
       di << "\n";
@@ -2714,10 +2714,10 @@ static Standard_Integer OCC10138 (Draw_Interpretor& di, Standard_Integer argc, c
   Handle(TDataStd_RealArray) array;
   if (label1.FindAttribute(TDataStd_RealArray::GetID(), array) && 
       array->Lower() == LOWER && array->Upper() == UPPER)
-    std::cout<<"1: OK"<<std::endl;
+    std::cout<<"1: OK"<<'\n';
   else
   {
-    std::cout<<"1: Failed.."<<std::endl;
+    std::cout<<"1: Failed.."<<'\n';
     return 1;
   }
   doc->CommitCommand();
@@ -2731,11 +2731,11 @@ static Standard_Integer OCC10138 (Draw_Interpretor& di, Standard_Integer argc, c
   {  
     if (array->Value(i) != i)
     {
-      std::cout<<"2: Failed.."<<std::endl;
+      std::cout<<"2: Failed.."<<'\n';
       return 2;
     }
   }
-  std::cout<<"2: OK"<<std::endl;
+  std::cout<<"2: OK"<<'\n';
   doc->CommitCommand();
 
   //! 3. Re-init the array
@@ -2743,7 +2743,7 @@ static Standard_Integer OCC10138 (Draw_Interpretor& di, Standard_Integer argc, c
   array->Init(LOWER + 2, UPPER + 4);
   if (array->Lower() != LOWER + 2 && array->Upper() != UPPER + 4)
   {
-    std::cout<<"3: Failed.."<<std::endl;
+    std::cout<<"3: Failed.."<<'\n';
     return 3;
   }
   for (i = LOWER + 2; i <= UPPER + 4; i++)
@@ -2752,11 +2752,11 @@ static Standard_Integer OCC10138 (Draw_Interpretor& di, Standard_Integer argc, c
   {  
     if (array->Value(i) != i)
     {
-      std::cout<<"3: Failed.."<<std::endl;
+      std::cout<<"3: Failed.."<<'\n';
       return 3;
     }
   }
-  std::cout<<"3: OK"<<std::endl;
+  std::cout<<"3: OK"<<'\n';
   doc->CommitCommand();
 
   //! 4. Change array
@@ -2769,11 +2769,11 @@ static Standard_Integer OCC10138 (Draw_Interpretor& di, Standard_Integer argc, c
   {  
     if (array->Value(i) != i)
     {
-      std::cout<<"4: Failed.."<<std::endl;
+      std::cout<<"4: Failed.."<<'\n';
       return 4;
     }
   }
-  std::cout<<"4: OK"<<std::endl;
+  std::cout<<"4: OK"<<'\n';
   doc->CommitCommand();
 
   //! 5. Copy the array
@@ -2782,24 +2782,24 @@ static Standard_Integer OCC10138 (Draw_Interpretor& di, Standard_Integer argc, c
   copier.Perform();
   if (!copier.IsDone())
   {
-    std::cout<<"5: Failed.."<<std::endl;
+    std::cout<<"5: Failed.."<<'\n';
     return 5;
   }
   Handle(TDataStd_RealArray) array2;
   if (!label2.FindAttribute(TDataStd_RealArray::GetID(), array2))
   {
-    std::cout<<"5: Failed.."<<std::endl;
+    std::cout<<"5: Failed.."<<'\n';
     return 5;
   }
   for (i = LOWER + 5; i <= UPPER + 5; i++)
   {  
     if (array->Value(i) != i)
     {
-      std::cout<<"5: Failed.."<<std::endl;
+      std::cout<<"5: Failed.."<<'\n';
       return 5;
     }
   }
-  std::cout<<"5: OK"<<std::endl;
+  std::cout<<"5: OK"<<'\n';
   doc->CommitCommand();
 
   //! 6. Undo/Redo
@@ -2808,7 +2808,7 @@ static Standard_Integer OCC10138 (Draw_Interpretor& di, Standard_Integer argc, c
   if (!label1.FindAttribute(TDataStd_RealArray::GetID(), array) ||
       label2.FindAttribute(TDataStd_RealArray::GetID(), array2))
   {
-    std::cout<<"6.a: Failed.."<<std::endl;
+    std::cout<<"6.a: Failed.."<<'\n';
     return 6;
   }
   //! 6.b: undoes the 4th action: the array should be changed to (lower+2,upper+4)
@@ -2817,14 +2817,14 @@ static Standard_Integer OCC10138 (Draw_Interpretor& di, Standard_Integer argc, c
       array->Lower() != LOWER + 2 ||
       array->Upper() != UPPER + 4)
   {
-    std::cout<<"6.b: Failed.."<<std::endl;
+    std::cout<<"6.b: Failed.."<<'\n';
     return 6;
   }
   for (i = LOWER + 2; i <= UPPER + 4; i++)
   {
     if (array->Value(i) != i)
     {
-      std::cout<<"6.b: Failed.."<<std::endl;
+      std::cout<<"6.b: Failed.."<<'\n';
       return 6;
     }
   }
@@ -2834,14 +2834,14 @@ static Standard_Integer OCC10138 (Draw_Interpretor& di, Standard_Integer argc, c
       array->Lower() != LOWER ||
       array->Upper() != UPPER)
   {
-    std::cout<<"6.c: Failed.."<<std::endl;
+    std::cout<<"6.c: Failed.."<<'\n';
     return 6;
   }
   for (i = LOWER; i <= UPPER; i++)
   {
     if (array->Value(i) != i)
     {
-      std::cout<<"6.c: Failed.."<<std::endl;
+      std::cout<<"6.c: Failed.."<<'\n';
       return 6;
     }
   }
@@ -2852,25 +2852,25 @@ static Standard_Integer OCC10138 (Draw_Interpretor& di, Standard_Integer argc, c
       array->Lower() != LOWER ||
       array->Upper() != UPPER)
   {
-    std::cout<<"6.d: Failed.."<<std::endl;
+    std::cout<<"6.d: Failed.."<<'\n';
     return 6;
   }
   for (i = LOWER; i <= UPPER; i++)
   {
     if (array->Value(i) != i)
     {
-      std::cout<<"6.d: Failed.."<<std::endl;
+      std::cout<<"6.d: Failed.."<<'\n';
       return 6;
     }
   }
-  std::cout<<"6: OK"<<std::endl;
+  std::cout<<"6: OK"<<'\n';
 
   //! 7. Re-set the array
   doc->OpenCommand();
   array = TDataStd_RealArray::Set(label1, LOWER + 1, UPPER + 1);
   if (array->Lower() != LOWER + 1 && array->Upper() != UPPER + 1)
   {
-    std::cout<<"7: Failed.."<<std::endl;
+    std::cout<<"7: Failed.."<<'\n';
     return 7;
   }
   for (i = LOWER + 1; i <= UPPER + 1; i++)
@@ -2879,11 +2879,11 @@ static Standard_Integer OCC10138 (Draw_Interpretor& di, Standard_Integer argc, c
   {  
     if (array->Value(i) != i)
     {
-      std::cout<<"7: Failed.."<<std::endl;
+      std::cout<<"7: Failed.."<<'\n';
       return 7;
     }
   }
-  std::cout<<"7: OK"<<std::endl;
+  std::cout<<"7: OK"<<'\n';
   doc->CommitCommand();
 
   //! 8.Test of speed: set LOWER and UPPER equal to great integer number and 
@@ -2973,16 +2973,16 @@ static Standard_Integer OCC8797 (Draw_Interpretor& di, Standard_Integer argc, co
   GeomAdaptor_Curve adaptor_spline(spline);
   GCPnts_AbscissaPoint temp;
   l_abcissa=temp.Length(adaptor_spline);
-  std::cout<<"Length Spline(abcissa_Pnt): "<<l_abcissa<<std::endl;
+  std::cout<<"Length Spline(abcissa_Pnt): "<<l_abcissa<<'\n';
 
   //length!! 2.
   TopoDS_Edge edge = BRepBuilderAPI_MakeEdge (spline);
   GProp_GProps prop;
   BRepGProp::LinearProperties(edge,prop);
   l_gprop=prop.Mass();
-  std::cout<<"Length Spline(GProp_GProps): "<<l_gprop<<std::endl;
+  std::cout<<"Length Spline(GProp_GProps): "<<l_gprop<<'\n';
 
-  std::cout<<"Difference (abcissa_Pnt<->GProp_GProps): "<<l_gprop-l_abcissa<<std::endl;
+  std::cout<<"Difference (abcissa_Pnt<->GProp_GProps): "<<l_gprop-l_abcissa<<'\n';
 
   return 0;
 }
@@ -4806,7 +4806,7 @@ Standard_Integer OCC31189 (Draw_Interpretor& theDI, Standard_Integer /*argc*/, c
     // check that messages output to sender and directly to messenger do not intermix
     aSender << "Sender message 1: start ...";
     aMsgMgr->Send ("Direct message 1");
-    aSender << "... end" << std::endl; // endl should send the message
+    aSender << "... end" << '\n'; // endl should send the message
 
        // check that empty stream buffer does not produce output on destruction
        Message::SendInfo();
@@ -4815,7 +4815,7 @@ Standard_Integer OCC31189 (Draw_Interpretor& theDI, Standard_Integer /*argc*/, c
     aMsgMgr->Send ("Direct message 2");
 
        // check that empty stream buffer does produce empty line if std::endl is passed
-       Message::SendInfo() << std::endl;
+       Message::SendInfo() << '\n';
 
     // last message should be sent on destruction of a sender
        aSender << "Sender message 2";
index c6f3d91c0eed897a28eec3ffbeec685560048f09..212ef5ef078407556db8545559beff14a70034fa 100644 (file)
@@ -403,23 +403,23 @@ static Standard_Address GeomConvertTest (Standard_Address data)
 
   GeomConvert_ApproxSurface aGAS (info->surf, 1e-4, GeomAbs_C1, GeomAbs_C1, 9, 9, 100, 1);
   if (!aGAS.IsDone()) {
-    std::cout << "Error: ApproxSurface is not done!" << std::endl;
+    std::cout << "Error: ApproxSurface is not done!" << '\n';
     return 0;
   }
   const Handle(Geom_BSplineSurface)& aBSurf = aGAS.Surface();
   if (aBSurf.IsNull()) {
-    std::cout << "Error: BSplineSurface is not created!" << std::endl;
+    std::cout << "Error: BSplineSurface is not created!" << '\n';
     return 0;
   }
   std::cout << "Number of UPoles:" << aBSurf->NbUPoles();
   if (aBSurf->NbUPoles() == info->nbupoles)
   {
-    std::cout << ": OK" << std::endl;
+    std::cout << ": OK" << '\n';
     return data; // any non-null pointer
   }
   else
   {
-    std::cout << ": Error, must be " << info->nbupoles << std::endl;
+    std::cout << ": Error, must be " << info->nbupoles << '\n';
     return 0;
   }
 }
@@ -427,7 +427,7 @@ static Standard_Address GeomConvertTest (Standard_Address data)
 static Standard_Integer OCC23952sweep (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if (argc != 3) {
-    std::cout << "Error: invalid number of arguments" << std::endl;
+    std::cout << "Error: invalid number of arguments" << '\n';
     return 1;
   }
 
@@ -436,7 +436,7 @@ static Standard_Integer OCC23952sweep (Draw_Interpretor& di, Standard_Integer ar
   aStorage.surf = DrawTrSurf::GetSurface(argv[2]);
   if (aStorage.surf.IsNull())
   {
-    std::cout << "Error: " << argv[2] << " is not a DRAW surface!" << std::endl;
+    std::cout << "Error: " << argv[2] << " is not a DRAW surface!" << '\n';
     return 0;
   }
 
@@ -476,19 +476,19 @@ static Standard_Address GeomIntSSTest (Standard_Address data)
   GeomInt_IntSS anInter;
   anInter.Perform (info->surf1, info->surf2, Precision::Confusion(), Standard_True);
   if (!anInter.IsDone()) {
-    std::cout << "An intersection is not done!" << std::endl;
+    std::cout << "An intersection is not done!" << '\n';
     return 0;
   }
 
   std::cout << "Number of Lines:" << anInter.NbLines();
   if (anInter.NbLines() == info->nbsol)
   {
-    std::cout << ": OK" << std::endl;
+    std::cout << ": OK" << '\n';
     return data; // any non-null pointer
   }
   else
   {
-    std::cout << ": Error, must be " << info->nbsol << std::endl;
+    std::cout << ": Error, must be " << info->nbsol << '\n';
     return 0;
   }
 }
@@ -496,7 +496,7 @@ static Standard_Address GeomIntSSTest (Standard_Address data)
 static Standard_Integer OCC23952intersect (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if (argc != 4) {
-    std::cout << "Error: invalid number of arguments" << std::endl;
+    std::cout << "Error: invalid number of arguments" << '\n';
     return 1;
   }
 
@@ -506,7 +506,7 @@ static Standard_Integer OCC23952intersect (Draw_Interpretor& di, Standard_Intege
   aStorage.surf2 = DrawTrSurf::GetSurface(argv[3]);
   if (aStorage.surf1.IsNull() || aStorage.surf2.IsNull())
   {
-    std::cout << "Error: Either " << argv[2] << " or " << argv[3] << " is not a DRAW surface!" << std::endl;
+    std::cout << "Error: Either " << argv[2] << " or " << argv[3] << " is not a DRAW surface!" << '\n';
     return 0;
   }
 
@@ -1360,12 +1360,12 @@ static Standard_Integer OCC24137 (Draw_Interpretor& theDI, Standard_Integer theN
   const Standard_Integer aNbIts = (anArgIter < theNArg) ? Draw::Atoi (theArgv[anArgIter++]) : 100;
   if (aShapeF.IsNull() || aShapeF.ShapeType() != TopAbs_FACE)
     {
-      std::cout << "Error: " << aFaceName << " shape is null / not a face" << std::endl;
+      std::cout << "Error: " << aFaceName << " shape is null / not a face" << '\n';
       return 1;
     }
   if (aShapeV.IsNull() || aShapeV.ShapeType() != TopAbs_VERTEX)
     {
-      std::cout << "Error: " << aVertName << " shape is null / not a vertex" << std::endl;
+      std::cout << "Error: " << aVertName << " shape is null / not a vertex" << '\n';
       return 1;
     }
   const TopoDS_Face   aFace = TopoDS::Face   (aShapeF);
@@ -4434,7 +4434,7 @@ static Standard_Integer OCC24537(
     aF.open(argv[1]);
     if (!aF.is_open())
     {
-      std::cout << "cannot create file " << argv[1] << std::endl;
+      std::cout << "cannot create file " << argv[1] << '\n';
       return 1;
     }
   }
@@ -4646,7 +4646,7 @@ static Standard_Integer OCC24537(
     theDI << "Conversion was done OK";
   if (aF.is_open())
   {
-    std::cout << "the file " << argv[1] << " has been created" << std::endl;
+    std::cout << "the file " << argv[1] << " has been created" << '\n';
     aF.close();
   }
   return 0;
@@ -4891,7 +4891,7 @@ static Standard_Integer OCC27048(Draw_Interpretor& theDI, Standard_Integer theAr
 {
   if (theArgc != 5)
   {
-    std::cout << "Incorrect number of arguments. See usage:" << std::endl;
+    std::cout << "Incorrect number of arguments. See usage:" << '\n';
     theDI.PrintHelp(theArgv[0]);
     return 1;
   }
@@ -5053,7 +5053,7 @@ static Standard_Integer OCC27700 (Draw_Interpretor& /*theDI*/, Standard_Integer
   Handle(AIS_InteractiveContext) aContext = ViewerTest::GetAISContext();
   if (aContext.IsNull())
   {
-    std::cout << "Error: no view available, call 'vinit' before!" << std::endl;
+    std::cout << "Error: no view available, call 'vinit' before!" << '\n';
     return 1;
   }
   Handle(OCC27700_Text) aPresentation = new OCC27700_Text();
@@ -5302,16 +5302,16 @@ static Standard_Integer OCC30492(Draw_Interpretor& /*theDI*/,
   math_FRPR aFRPR(aFunc, Precision::Confusion());
   aFRPR.Perform(aFunc, aStartPnt);
   if (!aFRPR.IsDone())
-    std::cout << "OCC30492: Error: FRPR optimization is not done." << std::endl;
+    std::cout << "OCC30492: Error: FRPR optimization is not done." << '\n';
   else
-    std::cout << "OCC30492: OK: FRPR optimization is done." << std::endl;
+    std::cout << "OCC30492: OK: FRPR optimization is done." << '\n';
 
   math_BFGS aBFGS(1, Precision::Confusion());
   aBFGS.Perform(aFunc, aStartPnt);
   if (!aBFGS.IsDone())
-    std::cout << "OCC30492: Error: BFGS optimization is not done." << std::endl;
+    std::cout << "OCC30492: Error: BFGS optimization is not done." << '\n';
   else
-    std::cout << "OCC30492: OK: BFGS optimization is done." << std::endl;
+    std::cout << "OCC30492: OK: BFGS optimization is done." << '\n';
 
   return 0;
 }
index cd3769d07406c341265d4edffe830bbd2d098779..273daf6edf65cd9f9eaa0aafd9967741498d7e04 100644 (file)
@@ -1414,7 +1414,7 @@ static Standard_Integer OCC27021(Draw_Interpretor& theDI,
 {
   if (theNArg != 2)
   {
-    std::cout << "Use: " << theArgVal[0] << " shape" << std::endl;
+    std::cout << "Use: " << theArgVal[0] << " shape" << '\n';
     return 1;
   }
 
@@ -1546,7 +1546,7 @@ static Standard_Integer OCC26930(Draw_Interpretor& theDI,
 {
   if (theNArg != 5)
   {
-    std::cout << "Use: " << theArgVal[0] <<" surface curve start end" << std::endl;
+    std::cout << "Use: " << theArgVal[0] <<" surface curve start end" << '\n';
     return 1;
   }
 
@@ -1598,7 +1598,7 @@ static Standard_Integer OCC27466(Draw_Interpretor& theDI,
 {
   if (theNArg != 4)
   {
-    std::cout << "Use: " << theArgVal[0] << " face point start_pnt2d" << std::endl;
+    std::cout << "Use: " << theArgVal[0] << " face point start_pnt2d" << '\n';
     return 1;
   }
 
@@ -2373,7 +2373,7 @@ static Standard_Integer OCC28784(Draw_Interpretor&, Standard_Integer argc, const
 static Standard_Integer OCC28829 (Draw_Interpretor&, Standard_Integer, const char**)
 {
   // do something that causes FPE exception
-  std::cout << "sqrt(-1) = " << sqrt (-1.) << std::endl;
+  std::cout << "sqrt(-1) = " << sqrt (-1.) << '\n';
   return 0;
 }
 
@@ -2473,7 +2473,7 @@ static Standard_Integer OCC28131 (Draw_Interpretor&, Standard_Integer theNbArgs,
 {
   if (theNbArgs != 2)
   {
-    std::cerr << "Error: wrong number of arguments" << std::endl;
+    std::cerr << "Error: wrong number of arguments" << '\n';
     return 1;
   }
 
@@ -2629,7 +2629,7 @@ Standard_Boolean IsSameGuid (const Standard_GUID& aGuidNull, const Standard_GUID
     isSame = Standard_True;
   } else {
     aGuid2.ShallowDump(std::cout);
-    std::cout <<std::endl;
+    std::cout <<'\n';
   }
   return isSame;
 }
@@ -2829,7 +2829,7 @@ static Standard_Integer OCC29064 (Draw_Interpretor& theDI, Standard_Integer theA
 {
   if (theArgc < 2)
   {
-    std::cout << "Error: give argument indicating type of map (map, doublemap, datamap, indexedmap, indexeddatamap)" << std::endl;
+    std::cout << "Error: give argument indicating type of map (map, doublemap, datamap, indexedmap, indexeddatamap)" << '\n';
     return 1;
   }
 
@@ -2846,7 +2846,7 @@ static Standard_Integer OCC29064 (Draw_Interpretor& theDI, Standard_Integer theA
     AllocDummyArr<NCollection_IndexedDataMap<int, int> > (theDI, nbm1, nbm2);
   else
   {
-    std::cout << "Error: unrecognized argument " << theArgv[1] << std::endl;
+    std::cout << "Error: unrecognized argument " << theArgv[1] << '\n';
     return 1;
   }
   return 0;
@@ -3025,7 +3025,7 @@ static Standard_Integer OCC29311 (Draw_Interpretor& theDI, Standard_Integer theA
 {
   if (theArgc < 4)
   {
-    std::cerr << "Use: " << theArgv[0] << " shape counter_name nb_iterations" << std::endl;
+    std::cerr << "Use: " << theArgv[0] << " shape counter_name nb_iterations" << '\n';
     return 1;
   }
 
@@ -3268,7 +3268,7 @@ static Standard_Integer OCC29195(Draw_Interpretor&, Standard_Integer theArgC, co
   {
     std::cout << "\nOCC29195 [nbRep] doc1.cbf doc1.xml doc1.std outDoc1.cbf outDoc1.xml doc2.cbf doc2.xml doc2.std outDoc2.cbf outDoc2.xml ...], where:";
     std::cout << "\nnbRep - number repetitions of a thread function (by default - 50)";
-    std::cout << "\ndocN - names (5 in each group) of OCAF documents names (3 input files, 2 output)\n" << std::endl;
+    std::cout << "\ndocN - names (5 in each group) of OCAF documents names (3 input files, 2 output)\n" << '\n';
     return 1;
   }
   int iThread(0), off(0);
@@ -4277,9 +4277,9 @@ static Standard_Integer OCC33048(Draw_Interpretor&, Standard_Integer, const char
   }
 
   if (isOK)
-    std::cout << "OK: Kronrod points and weights are calculated successfully." << std::endl;
+    std::cout << "OK: Kronrod points and weights are calculated successfully." << '\n';
   else
-    std::cout << "Error: Problem occurred during calculation of Kronrod points and weights." << std::endl;
+    std::cout << "Error: Problem occurred during calculation of Kronrod points and weights." << '\n';
 
   return 0;
 }
index 699e105a3f18a3d79c443fb5a1cd69b12c0cc70b..c1f9fc8b87e37893bbed351c23462cba1be53d5b 100644 (file)
@@ -184,7 +184,7 @@ static Standard_Integer QABVH_ShapeSelect (Draw_Interpretor& theDI,
   TopoDS_Shape aShape = DBRep::Get (theArgv [2]);
   if (aShape.IsNull())
   {
-    std::cout << theArgv[2] << " does not exist" << std::endl;
+    std::cout << theArgv[2] << " does not exist" << '\n';
     return 1;
   }
 
@@ -192,7 +192,7 @@ static Standard_Integer QABVH_ShapeSelect (Draw_Interpretor& theDI,
   TopoDS_Shape aBShape = DBRep::Get (theArgv [3]);
   if (aBShape.IsNull())
   {
-    std::cout << theArgv[3] << " does not exist" << std::endl;
+    std::cout << theArgv[3] << " does not exist" << '\n';
     return 1;
   }
 
@@ -390,7 +390,7 @@ static Standard_Integer QABVH_PairSelect (Draw_Interpretor& theDI,
   aShape[0] = DBRep::Get (theArgv [2]);
   if (aShape[0].IsNull())
   {
-    std::cout << theArgv[2] << " does not exist" << std::endl;
+    std::cout << theArgv[2] << " does not exist" << '\n';
     return 1;
   }
 
@@ -398,7 +398,7 @@ static Standard_Integer QABVH_PairSelect (Draw_Interpretor& theDI,
   aShape[1] = DBRep::Get (theArgv [3]);
   if (aShape[1].IsNull())
   {
-    std::cout << theArgv[3] << " does not exist" << std::endl;
+    std::cout << theArgv[3] << " does not exist" << '\n';
     return 1;
   }
 
@@ -614,7 +614,7 @@ static Standard_Integer QABVH_PairDistance (Draw_Interpretor& theDI,
   aShape[0] = DBRep::Get (theArgv [1]);
   if (aShape[0].IsNull())
   {
-    std::cout << theArgv[1] << " does not exist" << std::endl;
+    std::cout << theArgv[1] << " does not exist" << '\n';
     return 1;
   }
 
@@ -622,7 +622,7 @@ static Standard_Integer QABVH_PairDistance (Draw_Interpretor& theDI,
   aShape[1] = DBRep::Get (theArgv [2]);
   if (aShape[1].IsNull())
   {
-    std::cout << theArgv[2] << " does not exist" << std::endl;
+    std::cout << theArgv[2] << " does not exist" << '\n';
     return 1;
   }
 
@@ -680,7 +680,7 @@ static Standard_Integer QABVH_PairDistance (Draw_Interpretor& theDI,
   aDistTool.SetBVHSets (aTriangleBoxSet[0].get(), aTriangleBoxSet[1].get());
   Standard_Real aSqDist = aDistTool.ComputeDistance();
   if (!aDistTool.IsDone())
-    std::cout << "Not Done" << std::endl;
+    std::cout << "Not Done" << '\n';
   else
     theDI << "Distance " << sqrt (aSqDist) << "\n";
 
@@ -784,7 +784,7 @@ static Standard_Integer QABVH_DistanceField (Draw_Interpretor& theDI,
   aShape = DBRep::Get (theArgv [1]);
   if (aShape.IsNull())
   {
-    std::cout << theArgv[1] << " does not exist" << std::endl;
+    std::cout << theArgv[1] << " does not exist" << '\n';
     return 1;
   }
 
@@ -807,7 +807,7 @@ static Standard_Integer QABVH_DistanceField (Draw_Interpretor& theDI,
       for (Standard_Integer iZ = 0; iZ < aDField.DimensionZ(); ++iZ)
       {
         Standard_Real aDist = aDField.Voxel (iX, iY, iZ);
-        std::cout << "(" << iX << ", " << iY << ", " << iZ << "): " << aDist << std::endl;
+        std::cout << "(" << iX << ", " << iY << ", " << iZ << "): " << aDist << '\n';
       }
     }
   }
index 2b78847b6d545031704246e38375b6f2fa0385b9..ae59f2957691d4abc5718ad1fd682d4b177ebab8 100644 (file)
@@ -79,7 +79,7 @@ TopoDS_Shape QADNaming::CurrentShape (const Standard_CString  LabelName,
   TDF_Label Label; 
   Standard_Boolean Found =  DDF::AddLabel (DF, LabelName, Label);
   if (!Found) {
-    std::cout <<"no labels"<<std::endl;
+    std::cout <<"no labels"<<'\n';
     return S;
   }
   if (Found) { 
@@ -87,7 +87,7 @@ TopoDS_Shape QADNaming::CurrentShape (const Standard_CString  LabelName,
     Label.FindAttribute(TNaming_NamedShape::GetID(),NS);
     S =  TNaming_Tool::CurrentShape(NS);
     if (S.IsNull())
-      std::cout <<"current shape from "<< LabelName <<" is deleted"<<std::endl;
+      std::cout <<"current shape from "<< LabelName <<" is deleted"<<'\n';
     return S;
   }
   return S;
@@ -131,12 +131,12 @@ Standard_Boolean QADNaming::Entry(const Standard_Address theArguments,
   const char** arg = (const char**)theArguments;
   Handle(TDF_Data) DF;
   if (!DDF::GetDF(arg[1],DF)) {
-    std::cout<<"Wrong df"<<std::endl;
+    std::cout<<"Wrong df"<<'\n';
     return Standard_False;
   }
   DDF::AddLabel(DF,arg[2],theLabel);
   if (!theLabel.IsNull()) return Standard_True;
-  std::cout<<"Wrong entry"<<std::endl;
+  std::cout<<"Wrong entry"<<'\n';
   return Standard_False;
 }
 
index a0d0888136e0336ae0bfec710e664193534ffb6f..15b42659b61452d3eef2929570a8cf8e9ed4e301 100644 (file)
@@ -47,7 +47,7 @@ static Standard_Integer QATestExtremaSS (Draw_Interpretor& theInterpretor,
   if (theArgNb < 3
    || theArgNb > 4)
   {
-    std::cerr << "Usage: type help " << theArgs[0] << std::endl;
+    std::cerr << "Usage: type help " << theArgs[0] << '\n';
     return 1;
   }
 
index 4803ec82b1b942f494d8b482b93987b6c214ad61..d1d9064889776ef13c964433a50be38b4731538b 100644 (file)
@@ -741,7 +741,7 @@ static void CompDoubleMap (Draw_Interpretor& theDI,
   printAllMeters(theDI);
   if (iFail1 || iFail2)
     std::cout << "Warning : N map failed " << iFail1 << " times, T map - " << 
-      iFail2 << std::endl;
+      iFail2 << '\n';
 }
 
 // ===================== Test perform of IndexedMap type ==========================
index 1b169297118149f8fb9cb6e7a8caae78d07aea8b..b68ab595b07e96b2b0736f80c84c22dcb5f1a052 100644 (file)
@@ -464,10 +464,10 @@ void TestForwardIterator ()
   it2 = it; // assignment
   it2 = it++; // postfix increment
   if (it2 == it || ! (it2 != it))
-    std::cout << "Failed " << typeid(it).name() << " equality check" << std::endl;
+    std::cout << "Failed " << typeid(it).name() << " equality check" << '\n';
   it2 = ++it; // prefix increment
   if (it2 != it || ! (it2 == it))
-    std::cout << "Failed " << typeid(it).name() << " equality check" << std::endl;
+    std::cout << "Failed " << typeid(it).name() << " equality check" << '\n';
 
   typename CollectionType::iterator::value_type t = *it;
   *it2 = t;
@@ -479,10 +479,10 @@ void TestForwardIterator ()
   cit2 = cit; // assignment
   cit2 = cit++; // postfix increment
   if (cit2 == cit || ! (cit2 != cit))
-    std::cout << "Failed " << typeid(cit).name() << " equality check" << std::endl;
+    std::cout << "Failed " << typeid(cit).name() << " equality check" << '\n';
   cit2 = ++cit; // prefix increment
   if (cit2 != it || ! (cit2 == cit))
-    std::cout << "Failed " << typeid(cit).name() << " equality check" << std::endl;
+    std::cout << "Failed " << typeid(cit).name() << " equality check" << '\n';
 
   typename CollectionType::const_iterator::value_type ct = *cit;
   ct = *cit;
@@ -508,10 +508,10 @@ void TestBidirIterator ()
   typename CollectionType::iterator it = aCollec->end(); // copy construction
   typename CollectionType::iterator it2 = it--; // postfix decrement
   if (it2 == it || ! (it2 != it))
-    std::cout << "Failed " << typeid(it).name() << " equality check" << std::endl;
+    std::cout << "Failed " << typeid(it).name() << " equality check" << '\n';
   it2 = --it; // prefix decrement
   if (it2 != it || ! (it2 == it))
-    std::cout << "Failed " << typeid(it).name() << " equality check" << std::endl;
+    std::cout << "Failed " << typeid(it).name() << " equality check" << '\n';
 
   delete aCollec;
 }
@@ -531,20 +531,20 @@ void TestRandomIterator ()
   typename CollectionType::iterator it = aCollec->begin(); // copy construction
   typename CollectionType::iterator it2 = it + 5;
   if ((it2 - it) != 5)
-    std::cout << "Failed " << typeid(it).name() << " arithmetics" << std::endl;
+    std::cout << "Failed " << typeid(it).name() << " arithmetics" << '\n';
   if (it2 < it || it2 <= it || ! (it2 > it) || ! (it2 >= it))
-    std::cout << "Failed " << typeid(it).name() << " comparison" << std::endl;
+    std::cout << "Failed " << typeid(it).name() << " comparison" << '\n';
   it += 5;
   if (it2 != it)
-    std::cout << "Failed " << typeid(it).name() << " arithmetics" << std::endl;
+    std::cout << "Failed " << typeid(it).name() << " arithmetics" << '\n';
   it2 = it - 5;
   if ((it2 - it) != -5)
-    std::cout << "Failed " << typeid(it).name() << " arithmetics" << std::endl;
+    std::cout << "Failed " << typeid(it).name() << " arithmetics" << '\n';
   if (it2 > it || it2 >= it || ! (it2 < it) || ! (it2 <= it))
-    std::cout << "Failed " << typeid(it).name() << " comparison" << std::endl;
+    std::cout << "Failed " << typeid(it).name() << " comparison" << '\n';
   it -= 5;
   if (it2 != it)
-    std::cout << "Failed " << typeid(it).name() << " arithmetics" << std::endl;
+    std::cout << "Failed " << typeid(it).name() << " arithmetics" << '\n';
 
   typename CollectionType::value_type t = it[5]; // offset dereference
   *it = t;
@@ -564,35 +564,35 @@ static Standard_Integer QANListStlIterator (Draw_Interpretor&, Standard_Integer,
   // run-time tests
   Standard_Boolean aResult = TestIteration<NCollection_List<int>, std::list<int> >();
   std::cout << "NCollection_List<int> Iteration:                " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestIteration<NCollection_List<double>, std::list<double> >();
   std::cout << "NCollection_List<double> Iteration:             " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestMinMax<NCollection_List<int>, std::list<int> >();
   std::cout << "NCollection_List<int> Min-Max:                  " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestMinMax<NCollection_List<double>, std::list<double> >();
   std::cout << "NCollection_List<double> Min-Max:               " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestReplace<NCollection_List<int>, std::list<int> >();
   std::cout << "NCollection_List<int> Replace:                  " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestReplace<NCollection_List<double>, std::list<double> >();
   std::cout << "NCollection_List<double> Replace:               " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestParallel< NCollection_List<int>, std::list<int> >();
   std::cout << "NCollection_List<int> Parallel:                 " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestParallel<NCollection_List<double>, std::list<double> >();
   std::cout << "NCollection_List<double> Parallel:              " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   return 0;
 }
@@ -609,11 +609,11 @@ static Standard_Integer QANMapStlIterator (Draw_Interpretor&, Standard_Integer,
   // run-time tests
   Standard_Boolean aResult = TestMapIteration<NCollection_Map<Standard_Integer>, Standard_Integer>();
   std::cout << "NCollection_Map<int> Iteration:                 " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestMapIteration<NCollection_Map<Standard_Real>, Standard_Real>();
   std::cout << "NCollection_Map<double> Iteration:              " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   return 0;
 }
@@ -631,11 +631,11 @@ static Standard_Integer QANIndexedMapStlIterator (Draw_Interpretor&, Standard_In
   // run-time tests
   Standard_Boolean aResult = TestMapIteration<NCollection_IndexedMap<Standard_Integer>, Standard_Integer>();
   std::cout << "NCollection_IndexedMap<int> Iteration:          " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestMapIteration<NCollection_IndexedMap<Standard_Real>, Standard_Real>();
   std::cout << "NCollection_IndexedMap<double> Iteration:       " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   return 0;
 }
@@ -653,19 +653,19 @@ static Standard_Integer QANDataMapStlIterator (Draw_Interpretor&, Standard_Integ
   // run-time tests
   Standard_Boolean aResult = TestMapIteration<NCollection_DataMap<Standard_Integer, Standard_Integer>, Standard_Integer>();
   std::cout << "NCollection_DataMap<int> Iteration:             " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestMapIteration<NCollection_DataMap<Standard_Real, Standard_Real>, Standard_Real>();
   std::cout << "NCollection_DataMap<double> Iteration:          " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestDataMapParallel<NCollection_DataMap<Standard_Integer, Standard_Integer>, Standard_Integer>();
   std::cout << "NCollection_DataMap<int> Parallel:              " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestDataMapParallel<NCollection_DataMap<Standard_Real, Standard_Real>, Standard_Real>();
   std::cout << "NCollection_DataMap<double> Parallel:           " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   return 0;
 }
@@ -683,19 +683,19 @@ static Standard_Integer QANIndexedDataMapStlIterator (Draw_Interpretor&, Standar
   // run-time tests
   Standard_Boolean aResult = TestMapIteration<NCollection_IndexedDataMap<Standard_Integer, Standard_Integer>, Standard_Integer>();
   std::cout << "NCollection_IndexedDataMap<int> Iteration:      " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestMapIteration<NCollection_IndexedDataMap<Standard_Real, Standard_Real>, Standard_Real>();
   std::cout << "NCollection_IndexedDataMap<double> Iteration:   " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestDataMapParallel<NCollection_IndexedDataMap<Standard_Integer, Standard_Integer>, Standard_Integer>();
   std::cout << "NCollection_IndexedDataMap<int> Parallel:       " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestDataMapParallel<NCollection_IndexedDataMap<Standard_Real, Standard_Real>, Standard_Real>();
   std::cout << "NCollection_IndexedDataMap<double> Parallel:    " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   return 0;
 }
@@ -713,43 +713,43 @@ static Standard_Integer QANSequenceStlIterator (Draw_Interpretor&, Standard_Inte
   // run-time tests
   Standard_Boolean aResult = TestIteration<NCollection_Sequence<int>, std::list<int> >();
   std::cout << "NCollection_Sequence<int> Iteration:            " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestIteration<NCollection_Sequence<double>, std::list<double> >();
   std::cout << "NCollection_Sequence<double> Iteration:         " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestMinMax<NCollection_Sequence<int>, std::list<int> >();
   std::cout << "NCollection_Sequence<int> Min-Max:              " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestMinMax<NCollection_Sequence<double>, std::list<double> >();
   std::cout << "NCollection_Sequence<double> Min-Max:           " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestReplace<NCollection_Sequence<int>, std::list<int> >();
   std::cout << "NCollection_Sequence<int> Replace:              " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestReplace<NCollection_Sequence<double>, std::list<double> >();
   std::cout << "NCollection_Sequence<double> Replace:           " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestReverse<NCollection_Sequence<int>, std::list<int> >();
   std::cout << "NCollection_Sequence<int> Reverse:              " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestReverse<NCollection_Sequence<double>, std::list<double> >();
   std::cout << "NCollection_Sequence<double> Reverse:           " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestParallel<NCollection_Sequence<int>, std::list<int> >();
   std::cout << "NCollection_Sequence<int> Parallel:             " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestParallel<NCollection_Sequence<double>, std::list<double> >();
   std::cout << "NCollection_Sequence<double> Parallel:          " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   return 0;
 }
@@ -768,51 +768,51 @@ static Standard_Integer QANVectorStlIterator (Draw_Interpretor&, Standard_Intege
   // run-time tests
   Standard_Boolean aResult = TestIteration<NCollection_Vector<int>, std::vector<int> >();
   std::cout << "NCollection_Vector<int> Iteration:              " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestIteration<NCollection_Vector<double>, std::vector<double> >();
   std::cout << "NCollection_Vector<double> Iteration:           " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestMinMax<NCollection_Vector<int>, std::vector<int> >();
   std::cout << "NCollection_Vector<int> Min-Max:                " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestMinMax<NCollection_Vector<double>, std::vector<double> >();
   std::cout << "NCollection_Vector<double> Min-Max:             " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestReplace<NCollection_Vector<int>, std::vector<int> >();
   std::cout << "NCollection_Vector<int> Replace:                " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestReplace<NCollection_Vector<double>, std::vector<double> >();
   std::cout << "NCollection_Vector<double> Replace:             " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestReverse<NCollection_Vector<int>, std::vector<int> >();
   std::cout << "NCollection_Vector<int> Reverse:                " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestReverse<NCollection_Vector<double>, std::vector<double> >();
   std::cout << "NCollection_Vector<double> Reverse:             " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestSort<NCollection_Vector<int>, std::vector<int> >();
   std::cout << "NCollection_Vector<int> Sort:                   " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestSort<NCollection_Vector<double>, std::vector<double> >();
   std::cout << "NCollection_Vector<double> Sort:                " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestParallel<NCollection_Vector<int>, std::vector<int> >();
   std::cout << "NCollection_Vector<int> Parallel:               " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestParallel<NCollection_Vector<double>, std::vector<double> >();
   std::cout << "NCollection_Vector<double> Parallel:            " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   {
     // Test case for a corner case described in a bug #0027941
@@ -833,7 +833,7 @@ static Standard_Integer QANVectorStlIterator (Draw_Interpretor&, Standard_Intege
     NCollection_Vector<int>::iterator aShift = aBegin + THE_INCREMENT;
     aResult = (aShift == anEnd);
     std::cout << "NCollection_Vector<int> Offset:                 " <<
-      (aResult ? "SUCCESS" : "FAIL") << std::endl;
+      (aResult ? "SUCCESS" : "FAIL") << '\n';
 
     std::stable_sort (aVector.begin(), aVector.end());
   }
@@ -855,51 +855,51 @@ static Standard_Integer QANArray1StlIterator (Draw_Interpretor&, Standard_Intege
   // run-time tests
   Standard_Boolean aResult = TestIteration<NCollection_Array1<int>, std::vector<int> >();
   std::cout << "NCollection_Array1<int> Iteration:              " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestIteration<NCollection_Array1<double>, std::vector<double> >();
   std::cout << "NCollection_Array1<double> Iteration:           " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestMinMax<NCollection_Array1<int>, std::vector<int> >();
   std::cout << "NCollection_Array1<int> Min-Max:                " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestMinMax<NCollection_Array1<double>, std::vector<double> >();
   std::cout << "NCollection_Array1<double> Min-Max:             " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestReplace<NCollection_Array1<int>, std::vector<int> >();
   std::cout << "NCollection_Array1<int> Replace:                " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestReplace<NCollection_Array1<double>, std::vector<double> >();
   std::cout << "NCollection_Array1<double> Replace:             " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestReverse<NCollection_Array1<int>, std::vector<int> >();
   std::cout << "NCollection_Array1<int> Reverse:                " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestReverse<NCollection_Array1<double>, std::vector<double> >();
   std::cout << "NCollection_Array1<double> Reverse:             " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestSort<NCollection_Array1<int>, std::vector<int> >();
   std::cout << "NCollection_Array1<int> Sort:                   " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestSort<NCollection_Array1<double>, std::vector<double> >();
   std::cout << "NCollection_Array1<double> Sort:                " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestParallel<NCollection_Array1<int>, std::vector<int> >();
   std::cout << "NCollection_Array1<int> Parallel:               " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   aResult = TestParallel<NCollection_Array1<double>, std::vector<double> >();
   std::cout << "NCollection_Array1<double> Parallel:            " <<
-    (aResult ? "SUCCESS" : "FAIL") << std::endl;
+    (aResult ? "SUCCESS" : "FAIL") << '\n';
 
   return 0;
 }
index 40cc1f261a17e6f11a5b14d37bdd3c72061e475d..c8b6afca1926db6584231732ef307b322dc5f610 100644 (file)
@@ -876,14 +876,14 @@ static Standard_Integer QANColTestVector (Draw_Interpretor&, Standard_Integer, c
 
   aVec.Append(5);
   if (aVec(0) != 5)
-    std::cout << "Error: wrong value in original vector!" << std::endl;
+    std::cout << "Error: wrong value in original vector!" << '\n';
   aVec2.Append(5);
   if (aVec2(0) != 5)
-    std::cout << "Error: wrong value in copy-constructed vector!" << std::endl;
+    std::cout << "Error: wrong value in copy-constructed vector!" << '\n';
   aVec3.Append(5);
   if (aVec3(0) != 5)
-    std::cout << "Error: wrong value in copied vector!" << std::endl;
-  std::cout << "Test OK" << std::endl;
+    std::cout << "Error: wrong value in copied vector!" << '\n';
+  std::cout << "Test OK" << '\n';
 
   return 0;
 }
@@ -933,7 +933,7 @@ static bool CheckArrayByValue(NCollection_Array1<double> theArray)
   {
     if (theArray.Value(i) != i + 113.)
     {
-      std::cout << "Error at item " << i << ": value = " << theArray.Value(i) << ", expected " << i + 113. << std::endl;
+      std::cout << "Error at item " << i << ": value = " << theArray.Value(i) << ", expected " << i + 113. << '\n';
       return false;
     }
   }
index e773d624d6f9e0ec16f88e743c6744ab6ad14105..86f0dfc72377161ae9571f6d17d2b61162b4ca37 100644 (file)
@@ -79,7 +79,7 @@ Resource_Manager::Resource_Manager (const TCollection_AsciiString& theName,
   }
   else if (myVerbose)
   {
-    std::cout << "Resource Manager Warning: aDefaultsDirectory is empty." << std::endl;
+    std::cout << "Resource Manager Warning: aDefaultsDirectory is empty." << '\n';
   }
 
   if (!theUserDefaultsDirectory.IsEmpty())
@@ -97,7 +97,7 @@ Resource_Manager::Resource_Manager (const TCollection_AsciiString& theName,
   }
   else if (myVerbose)
   {
-    std::cout << "Resource Manager Warning: anUserDefaultsDirectory is empty." << std::endl;
+    std::cout << "Resource Manager Warning: anUserDefaultsDirectory is empty." << '\n';
   }
 }
 
@@ -120,12 +120,12 @@ Resource_Manager::Resource_Manager(const Standard_CString aName,
   if (!aPath.IsEmpty())
     Load(aPath,myRefMap);
   else if (myVerbose)
-    std::cout << "Resource Manager Warning: Environment variable \"CSF_" << aName << "Defaults\" not set." << std::endl;
+    std::cout << "Resource Manager Warning: Environment variable \"CSF_" << aName << "Defaults\" not set." << '\n';
 
   if (!aUserPath.IsEmpty())
     Load(aUserPath,myRefMap);
   else if (myVerbose)
-    std::cout << "Resource Manager Warning: Environment variable \"CSF_" << aName << "UserDefaults\" not set." << std::endl;
+    std::cout << "Resource Manager Warning: Environment variable \"CSF_" << aName << "UserDefaults\" not set." << '\n';
 }
 
 // =======================================================================
@@ -154,7 +154,7 @@ void Resource_Manager::Load(const TCollection_AsciiString& thePath,
   if (File.Failed()) {
     if (myVerbose)
       std::cout << "Resource Manager Warning: Cannot read file \"" << FileName
-          << "\". File not found or permission denied." << std::endl;
+          << "\". File not found or permission denied." << '\n';
     return;
   }
   Standard_Integer LineNumber = 1;
@@ -171,7 +171,7 @@ void Resource_Manager::Load(const TCollection_AsciiString& thePath,
     case Resource_KOL_Error:
       if (myVerbose)
        std::cout << "Resource Manager: Syntax error at line "
-         << LineNumber << " in file : " << FileName << std::endl;
+         << LineNumber << " in file : " << FileName << '\n';
       break;
     }
     LineNumber++;
@@ -179,7 +179,7 @@ void Resource_Manager::Load(const TCollection_AsciiString& thePath,
   File.Close();
   if (myVerbose)
     std::cout << "Resource Manager: " << ((&aMap == &myUserMap) ? "User" : "Reference")
-         << " file \"" << FileName << "\" loaded" << std::endl;
+         << " file \"" << FileName << "\" loaded" << '\n';
 }
 
 static Resource_KindOfLine WhatKindOfLine(OSD_File& aFile,
@@ -237,7 +237,7 @@ static Resource_KindOfLine WhatKindOfLine(OSD_File& aFile,
     aToken2 = Line;
   }
   if (Debug)
-    std::cout << "'\t Value = '" << aToken2 << "'" << std::endl << std::flush;
+    std::cout << "'\t Value = '" << aToken2 << "'" << '\n' << std::flush;
   return Resource_KOL_Resource;
 }
 
@@ -279,7 +279,7 @@ Standard_Boolean Resource_Manager::Save() const
   if (dir.IsEmpty()) {
     if (myVerbose)
       std::cout << "Resource Manager Warning: environment variable \""
-          << anEnvVar << "\" not set.  Cannot save resources." << std::endl ;
+          << anEnvVar << "\" not set.  Cannot save resources." << '\n' ;
     return Standard_False;
   }
 
@@ -301,7 +301,7 @@ Standard_Boolean Resource_Manager::Save() const
     if (!aStatus) {
       if (myVerbose)
         std::cout << "Resource Manager: Error opening or creating directory \"" << aFilePath
-             << "\". Permission denied. Cannot save resources." << std::endl;
+             << "\". Permission denied. Cannot save resources." << '\n';
       return Standard_False;
     }
   }
@@ -330,7 +330,7 @@ Standard_Boolean Resource_Manager::Save() const
   if (!aStatus) {
     if (myVerbose)
       std::cout << "Resource Manager: Error opening or creating file \"" << aFilePath
-           << "\". Permission denied. Cannot save resources." << std::endl;
+           << "\". Permission denied. Cannot save resources." << '\n';
     return Standard_False;
   }
 
@@ -360,12 +360,12 @@ Standard_Boolean Resource_Manager::Save() const
       Line = KeyArray(Index) + ":\t" + Value + "\n";
 
       if (Debug)
-        std::cout << "Line = '" << Line << "'" << std::endl;
+        std::cout << "Line = '" << Line << "'" << '\n';
 
       File.Write(Line, Line.Length());
     }
     if (myVerbose)
-      std::cout << "Resource Manager: Resources saved in file " << aFilePath << std::endl;
+      std::cout << "Resource Manager: Resources saved in file " << aFilePath << '\n';
   }
   File.Close();
   return Standard_True;
index 413b6f4f19058899947a9340786c0b9ebe133eb3..2dac8d9b99bb2bf48c3f9f6df0bb8f2a339e8ab8 100644 (file)
@@ -590,7 +590,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)<<std::endl;
+      sout<<" -- Actor : Ent.n0 "<<TP->Model()->Number(PD)<<" -> Shared Ent.no"<<TP->Model()->Number(NAUO)<<'\n';
 #endif
     Handle(Transfer_Binder) binder;
     Message_ProgressRange aRange = PS.Next();
@@ -814,7 +814,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity(
   Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
   #ifdef TRANSLOG
   if (TP->TraceLevel() > 2) 
-    sout<<" -- Actor : case  ShapeRepr. NbItems="<<nb<<std::endl;
+    sout<<" -- Actor : case  ShapeRepr. NbItems="<<nb<<'\n';
   #endif
   
     // Compute unit conversion factors and geometric Accuracy
@@ -868,7 +868,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity(
     Message_ProgressRange aRange = aPS.Next();
     #ifdef TRANSLOG
     if (TP->TraceLevel() > 2) 
-      sout<<" -- Actor, shape_representation.item n0. "<<i<<std::endl;
+      sout<<" -- Actor, shape_representation.item n0. "<<i<<'\n';
     #endif
     Handle(StepRepr_RepresentationItem) anitem = sr->ItemsValue(i);
     if(anitem.IsNull())
@@ -1363,7 +1363,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::OldWay
 
 #ifdef TRANSLOG
   if (TP->TraceLevel() > 2) 
-    sout<<" -- Actor : case  shape_definition_representation."<<std::endl;
+    sout<<" -- Actor : case  shape_definition_representation."<<'\n';
 #endif
   Handle(Transfer_Binder) binder = TP->Find(rep);
   {
@@ -1414,7 +1414,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::OldWay
 //      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)<<std::endl;
+      sout<<" -- Actor : Ent.n0 "<<TP->Model()->Number(start)<<" -> Shared Ent.no"<<TP->Model()->Number(anitem)<<'\n';
 #endif
 
     if (!TP->IsBound(anitem)) binder = TP->Transferring(anitem, aRange);
@@ -1456,7 +1456,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity
   OSD_Timer chrono;
   if (TP->TraceLevel() > 2) 
     sout << "Begin transfer STEP -> CASCADE, Type "
-         << start->DynamicType()->Name() << std::endl;
+         << start->DynamicType()->Name() << '\n';
   chrono.Start();
 #endif
   Handle(StepData_StepModel) aStepModel = Handle(StepData_StepModel)::DownCast(TP->Model());
@@ -1568,7 +1568,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity
 #ifdef TRANSLOG
   chrono.Stop();
   if (TP->TraceLevel() > 2) 
-    sout<<"End transfer STEP -> CASCADE :" << (found ? "OK" : " : no result")<<std::endl;
+    sout<<"End transfer STEP -> CASCADE :" << (found ? "OK" : " : no result")<<'\n';
   if (TP->TraceLevel() > 2) 
     chrono.Show();
 #endif
@@ -1771,7 +1771,7 @@ Handle(Transfer_Binder) STEPControl_ActorRead::TransferShape(
 #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()<<std::endl;
+    sout<<" -- Actor : Transfer Ent.n0 "<<TP->Model()->Number(start)<<"  Type "<<start->DynamicType()->Name()<<'\n';
 #endif
   
   Handle(TransferBRep_ShapeBinder) shbinder;
@@ -1928,7 +1928,7 @@ void STEPControl_ActorRead::PrepareUnits(const Handle(StepRepr_Representation)&
   // Assign uncertainty
 #ifdef TRANSLOG
   if (TP->TraceLevel() > 1) 
-    TP->Messenger()->SendInfo() <<"  Cc1ToTopoDS : Length Unit = "<<myUnit.LengthFactor()<<"  Tolerance CASCADE = "<<myPrecision<<std::endl;
+    TP->Messenger()->SendInfo() <<"  Cc1ToTopoDS : Length Unit = "<<myUnit.LengthFactor()<<"  Tolerance CASCADE = "<<myPrecision<<'\n';
 #endif
 }
 
index a35346360d9660a19bfb87a9cb4b6e6b3a8e8580..f6911013dee792557a6383f50e5d96715d3b8fc3 100644 (file)
@@ -121,7 +121,7 @@ IFSelect_ReturnStatus STEPControl_Reader::ReadFile(const Standard_CString filena
     Message_Messenger::StreamBuffer sout = Message::SendInfo();
     sout << "    ****    Interruption ReadFile par Exception :   ****\n";
     sout << anException.GetMessageString();
-    sout << "\n    Abandon" << std::endl;
+    sout << "\n    Abandon" << '\n';
     status = IFSelect_RetFail;
   }
   if (status != IFSelect_RetDone) return status;
@@ -157,7 +157,7 @@ IFSelect_ReturnStatus STEPControl_Reader::ReadFile(const Standard_CString filena
     Message_Messenger::StreamBuffer sout = Message::SendInfo();
     sout << "    ****    Interruption ReadFile par Exception :   ****\n";
     sout << anException.GetMessageString();
-    sout << "\n    Abandon" << std::endl;
+    sout << "\n    Abandon" << '\n';
     status = IFSelect_RetFail;
   }
   if (status != IFSelect_RetDone) return status;
@@ -193,7 +193,7 @@ IFSelect_ReturnStatus STEPControl_Reader::ReadStream(const Standard_CString theN
     Message_Messenger::StreamBuffer sout = Message::SendInfo();
     sout << "    ****    Interruption ReadFile par Exception :   ****\n";
     sout << anException.GetMessageString();
-    sout << "\n    Abandon" << std::endl;
+    sout << "\n    Abandon" << '\n';
     status = IFSelect_RetFail;
   }
   if (status != IFSelect_RetDone) return status;
@@ -230,7 +230,7 @@ IFSelect_ReturnStatus STEPControl_Reader::ReadStream(const Standard_CString theN
     Message_Messenger::StreamBuffer sout = Message::SendInfo();
     sout << "    ****    Interruption ReadFile par Exception :   ****\n";
     sout << anException.GetMessageString();
-    sout << "\n    Abandon" << std::endl;
+    sout << "\n    Abandon" << '\n';
     status = IFSelect_RetFail;
   }
   if (status != IFSelect_RetDone) return status;
index 75fc4d189f9ea56eb434936a8f6f9e23ac024c7b..31766464c1a111ed634f3a946334e3f42627d037 100644 (file)
@@ -163,7 +163,7 @@ static void PrintSubAssembly(Standard_OStream &os,
   //for ( Standard_Integer j=0; j < level; j++ ) os << "\t";
   os << "SDR: " <<Model->StringLabel(cmp->GetSDR())->ToCString()<<"\t";
   
-  os << "Product: "<<GetProductName(cmp->GetSDR())<<std::endl;
+  os << "Product: "<<GetProductName(cmp->GetSDR())<<'\n';
   for ( Standard_Integer i = 1; i <= cmp->GetList()->Length(); i++) {
     for ( Standard_Integer j=0; j < level+1; j++ ) os << "\t";
     os << "NAUO :"<<Model->StringLabel(cmp->GetList()->Value(i)->GetNAUO())->ToCString()<<";\t";
@@ -183,7 +183,7 @@ void STEPSelections_AssemblyExplorer::Dump(Standard_OStream &os) const
 {
   Handle(Interface_InterfaceModel) model = myGraph.Model();
   for(Standard_Integer i = 1 ; i <=myRoots.Length(); i++) {
-    os<<"Assembly N: "<<i<<std::endl<<std::endl;
+    os<<"Assembly N: "<<i<<'\n'<<'\n';
     PrintSubAssembly(os,myRoots.Value(i),model,0);
   }
 }
index 1745e7448882313104e93cd3d58c7bca8e45a793..5926b2a0903abf6d2d1a47e9e9b0b166fd608550 100644 (file)
@@ -139,7 +139,7 @@ TopoDS_Shape ShapeBuild_ReShape::Apply (const TopoDS_Shape& shape,
       return S;
     }
   }
-  std::cout<<"BRepTools_ReShape::Apply NOT YET IMPLEMENTED"<<std::endl;
+  std::cout<<"BRepTools_ReShape::Apply NOT YET IMPLEMENTED"<<'\n';
   return shape;
 }
 
index 3fc6c189d99b680169eb8299dbaced6028891dee..e1b4bc8ffcaf1b12480182792a411a03b8a4165d 100644 (file)
@@ -160,9 +160,9 @@ void Standard_ErrorHandler::Abort (const Handle(Standard_Failure)& theError)
 
   //==== Check if can do the "longjmp" =======================================
   if(anActive == NULL) {
-    std::cerr << "*** Abort *** an exception was raised, but no catch was found." << std::endl;
+    std::cerr << "*** Abort *** an exception was raised, but no catch was found." << '\n';
     if (!theError.IsNull())
-      std::cerr << "\t... The exception is:" << theError->GetMessageString() << std::endl;
+      std::cerr << "\t... The exception is:" << theError->GetMessageString() << '\n';
     exit(1);
   }
 
index 09b69deb7a91330852131a175daccf75934fcdd0..f7deb78c73f93a84aa4e69660215227c1236b372 100644 (file)
@@ -90,7 +90,7 @@ Handle(StdObjMgt_Persistent) StdLDrivers_DocumentRetrievalDriver::read (
     myReaderStatus = PCDM_RS_OpenError;
 
     Standard_SStream aMsg;
-    aMsg << anException << std::endl;
+    aMsg << anException << '\n';
     throw Standard_Failure(aMsg.str().c_str());
   }
   
@@ -113,7 +113,7 @@ Handle(StdObjMgt_Persistent) StdLDrivers_DocumentRetrievalDriver::read (
     myReaderStatus = PCDM_RS_NoDocument;
 
     Standard_SStream aMsg;
-    aMsg << "could not find any document in this file" << std::endl;
+    aMsg << "could not find any document in this file" << '\n';
     throw Standard_Failure(aMsg.str().c_str());
   }
 
@@ -159,7 +159,7 @@ Handle(StdObjMgt_Persistent) StdLDrivers_DocumentRetrievalDriver::read (
       {
         aMsg << anUnknownTypes(i);
         if (i < anUnknownTypes.Length()) aMsg << ",";
-        else                             aMsg << std::endl;
+        else                             aMsg << '\n';
       }
 
       throw Standard_Failure(aMsg.str().c_str());
@@ -252,37 +252,37 @@ void StdLDrivers_DocumentRetrievalDriver::raiseOnStorageError (Storage_Error the
   case Storage_VSNotOpen:
   case Storage_VSAlreadyOpen:
     myReaderStatus = PCDM_RS_OpenError;
-    aMsg << "Stream Open Error" << std::endl;
+    aMsg << "Stream Open Error" << '\n';
     throw Standard_Failure(aMsg.str().c_str());
 
   case Storage_VSModeError:
     myReaderStatus = PCDM_RS_WrongStreamMode;
-    aMsg << "Stream is opened with a wrong mode for operation" << std::endl;
+    aMsg << "Stream is opened with a wrong mode for operation" << '\n';
     throw Standard_Failure(aMsg.str().c_str());
 
   case Storage_VSSectionNotFound:
     myReaderStatus = PCDM_RS_FormatFailure;
-    aMsg << "Section is not found" << std::endl;
+    aMsg << "Section is not found" << '\n';
     throw Standard_Failure(aMsg.str().c_str());
 
   case Storage_VSFormatError:
     myReaderStatus = PCDM_RS_FormatFailure;
-    aMsg << "Wrong format error" << std::endl;
+    aMsg << "Wrong format error" << '\n';
     throw Standard_Failure(aMsg.str().c_str());
 
   case Storage_VSUnknownType:
     myReaderStatus = PCDM_RS_TypeFailure;
-    aMsg << "Try to read an unknown type" << std::endl;
+    aMsg << "Try to read an unknown type" << '\n';
     throw Standard_Failure(aMsg.str().c_str());
 
   case Storage_VSTypeMismatch:
     myReaderStatus = PCDM_RS_TypeFailure;
-    aMsg << "Try to read a wrong primitive type" << std::endl;
+    aMsg << "Try to read a wrong primitive type" << '\n';
     throw Standard_Failure(aMsg.str().c_str());
 
   default:
     myReaderStatus = PCDM_RS_DriverFailure;
-    aMsg << "Retrieval Driver Failure" << std::endl;
+    aMsg << "Retrieval Driver Failure" << '\n';
     throw Standard_Failure(aMsg.str().c_str());
   }
 }
index a3533c8034de1d9bc614edd83f970b4101304557..337f8f880f1b3454343418cf1ce881e30af2ed3f 100644 (file)
@@ -62,18 +62,18 @@ Standard_Boolean  StepData_StepDumper::Dump
        TColStd_SequenceOfAsciiString listypes;
        if (!module->ComplexType(CN,listypes))
          S << "(Complex Type : ask level > 0) cdl = "
-           << ent->DynamicType()->Name() << " (...);" << std::endl;
+           << ent->DynamicType()->Name() << " (...);" << '\n';
        else {
          Standard_Integer n = listypes.Length();
          for (i = 1; i <= n; i ++) S << listypes.Value(i) << " (...)";
-         S << std::endl;
+         S << '\n';
        }
       }
-      else S << module->StepType(CN)  << " (...);" << std::endl;
+      else S << module->StepType(CN)  << " (...);" << '\n';
     }
     else S << "(Unrecognized Type for protocol) cdl = "
-        << ent->DynamicType()->Name() << " (...);" << std::endl;
-    if (nlab > 0) S << "/*   Ident in file for "<<num<<" : #"<<nlab<<"   */"<<std::endl;
+        << ent->DynamicType()->Name() << " (...);" << '\n';
+    if (nlab > 0) S << "/*   Ident in file for "<<num<<" : #"<<nlab<<"   */"<<'\n';
   }
 
   else if (level == 1) {
@@ -144,24 +144,24 @@ Standard_Boolean  StepData_StepDumper::Dump
       S <<" (no ident): ";
       for (i = 1; i <= nb; i ++)
        {  if (ids.Value(i) >=  0) continue;    S <<" #"<<i;      }
-      S <<std::endl;
+      S <<'\n';
     }
     if (nbq > 0) {
       S <<" (ident = num): ";
       for (i = 1; i <= nb; i ++)  {  if (ids.Value(i) == i) S <<" #"<<i;  }
-      S <<std::endl;
+      S <<'\n';
     }
     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  ..."<<std::endl;
+      S <<" (proper ident):  num:#ident  num:#ident  ..."<<'\n';
       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 <<std::endl; }
+       if (nbl+nbr0 > 79) { nbl  = nbc;  S <<'\n'; }
        else               { nbl += nbr0; for (; nbr0 > 0; nbr0 --) S << " "; }
        S <<unid;
        nbr0 = nbr;
@@ -173,9 +173,9 @@ Standard_Boolean  StepData_StepDumper::Dump
 //     S<<"  "<<i<<" ->#"<<ids.Value(i);
 //     nbl ++; if (nbl > 5) {  nbl = nbr = 0;  S<<std::endl;  }
       }
-      if (nbl > 0) S <<std::endl;
+      if (nbl > 0) S <<'\n';
     }
-    if (nbi > 0) S <<"In dump, iii:#jjj means : entity rank iii has step ident #jjj"<<std::endl;
+    if (nbi > 0) S <<"In dump, iii:#jjj means : entity rank iii has step ident #jjj"<<'\n';
 //    S<<" --   Dumping data, entity "<<num<<"  level "<<level<<" :"<<std::endl;
   }
   if (level > 0) 
index 49145ed10f26be0a80657a2ef56e32c0664a1c53..369768c14b8bf3c1d63ea9614abec0b44bf0a289 100644 (file)
@@ -404,7 +404,7 @@ void StepData_StepReaderData::SetRecord(const Standard_Integer num,
             sout << "  ***  Incorrect record " << num << " (on " << NbRecords()
                  << " -> " << num * 100 / NbRecords() << " % in File)  ***";
             if (prev > 0) sout << "  Ident #" << theidents(prev);
-            sout << "\n" << errm << std::endl;
+            sout << "\n" << errm << '\n';
             thecheck->AddWarning(errm.ToCString(), "Complex Type incorrect : ");
           }
           break;
@@ -1801,7 +1801,7 @@ void StepData_StepReaderData::SetEntityNumbers(const Standard_Boolean withmap)
         Standard_Integer numsub = FP.EntityNumber();
         if (numsub > thelastn) {
           Message::SendInfo()
-            << "Bad Sub.N0, Record " << num << " Param " << na << ":$" << numsub << std::endl;
+            << "Bad Sub.N0, Record " << num << " Param " << na << ":$" << numsub << '\n';
           continue;
         }
         FP.SetEntityNumber(subn(numsub));
@@ -1826,7 +1826,7 @@ void StepData_StepReaderData::SetEntityNumbers(const Standard_Boolean withmap)
           //  ...  Et sortir message un peu plus complet
           sout << "*** ERR StepReaderData *** Entite #" << ident
                << "\n    Type:" << RecordType(num)
-               << "  Param.n0 " << na << ": #" << id << " Not found" << std::endl;
+               << "  Param.n0 " << na << ": #" << id << " Not found" << '\n';
         }      // FIN  Mapping
       }        // FIN  Traitement Reference
     }          // FIN  Boucle Parametres
@@ -1893,7 +1893,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 << std::endl;
+            sout << "StepReaderData : SetEntityNumbers, " << ligne << '\n';
           }
           if (indm(indmap) > 0) indm(indmap) = -indm(indmap);  // Pas pour Map
       //  Cas Normal pour la Map
@@ -2087,7 +2087,7 @@ void StepData_StepReaderData::SetEntityNumbers(const Standard_Boolean withmap)
           sout << "*** ERR StepReaderData *** Entite " << nument
                << ", a " << (nr * 100) / nbseq << "% de DATA : #" << ident
                << "\n    Type:" << RecordType(num)
-               << "  Param.n0 " << na << ": #" << id << " Not found" << std::endl;
+               << "  Param.n0 " << na << ": #" << id << " Not found" << '\n';
 
           FP.SetEntityNumber(0);  // -> Reference non resolue
         }
index 9ece1b80b8d5ff3ab06ca1f08b83d2ad2340f4d0..b90dd2b8da299fe469b7a90e4d055019a1ddd537 100644 (file)
@@ -183,7 +183,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() << std::endl;
+      if (!ent.IsNull()) sout << ent->DynamicType()->Name() << '\n';
       for (Standard_Integer nf = 1; nf <= nbmess; nf++)
       {
         sout << ach->CWarning(nf) << "\n";
@@ -193,7 +193,7 @@ void StepData_StepReaderTool::BeginRead
       Handle(Interface_Check) mch = model->GlobalCheck();
       Standard_Integer nbmess = ach->NbFails();
       sout << " Fails on Reading Header Entity N0." << i << ":";
-      if (!ent.IsNull()) sout << ent->DynamicType()->Name() << std::endl;
+      if (!ent.IsNull()) sout << ent->DynamicType()->Name() << '\n';
       for (Standard_Integer nf = 1; nf <= nbmess; nf++)
       {
         sout << ach->CFail(nf) << "\n";
index 26319a7c43e364d9ee7f302cb7dd17121aec78af..f0aa5e0a119d459fe6ec5ebc6c5a9599088eac10 100644 (file)
@@ -52,7 +52,7 @@ void StepFile_Interrupt(Standard_CString theErrorMessage, const Standard_Boolean
     return;
 
   Message_Messenger::StreamBuffer sout = theIsFail ? Message::SendFail() : Message::SendTrace();
-  sout << "**** ERR StepFile : " << theErrorMessage << "    ****" << std::endl;
+  sout << "**** ERR StepFile : " << theErrorMessage << "    ****" << '\n';
 }
 
 static Standard_Integer StepFile_Read (const char* theName,
index e4d1a3cf74e0124f603ba66ff59b67b47744b478..bf6eb1a25e16a8e5f7d8a3dd6e6528d190cb3350 100644 (file)
@@ -60,41 +60,41 @@ IFSelect_ReturnStatus  StepSelect_Activator::Do
 
     case  1 : {   //        ****    StepSchema
       if (argc < 2) {
-        std::cout<<"Identify an entity"<<std::endl;
+        std::cout<<"Identify an entity"<<'\n';
         return IFSelect_RetError;
       }
       Standard_Integer num = pilot->Number(arg1);
       if (num <= 0) {
-        std::cout<<"Not an entity : "<<arg2<<std::endl;
+        std::cout<<"Not an entity : "<<arg2<<'\n';
         return IFSelect_RetError;
       }
       Handle(Standard_Transient) ent = pilot->Session()->StartingEntity(num);
       DeclareAndCast(StepData_UndefinedEntity,und,ent);
       if (!und.IsNull()) {
-       std::cout<<"Entity "<<arg2<<" : No Binding known"<<std::endl;
+       std::cout<<"Entity "<<arg2<<" : No Binding known"<<'\n';
        return IFSelect_RetVoid;
       }
       DeclareAndCast(StepData_Simple,sim,ent);
       if (!sim.IsNull()) {
-       std::cout<<"Entity "<<arg2<<" : Late Binding"<<std::endl;
-       std::cout<<"Simple Type : "<<sim->StepType()<<std::endl;
+       std::cout<<"Entity "<<arg2<<" : Late Binding"<<'\n';
+       std::cout<<"Simple Type : "<<sim->StepType()<<'\n';
        return IFSelect_RetVoid;
       }
       DeclareAndCast(StepData_Plex,plx,ent);
       if (!plx.IsNull()) {
-       std::cout<<"Entity "<<arg2<<" : Late Binding"<<std::endl;
-       std::cout<<"Complex Type"<<std::endl;
+       std::cout<<"Entity "<<arg2<<" : Late Binding"<<'\n';
+       std::cout<<"Complex Type"<<'\n';
       }
 //       reste Early Binding
-      std::cout<<"Entity "<<arg2<<" : Early Binding"<<std::endl;
-      std::cout<<"CDL Type : "<<ent->DynamicType()->Name()<<std::endl;
+      std::cout<<"Entity "<<arg2<<" : Early Binding"<<'\n';
+      std::cout<<"CDL Type : "<<ent->DynamicType()->Name()<<'\n';
       return IFSelect_RetVoid;
     }
 
     case 40 : {   //        ****    FloatFormat
       char prem = ' ';
       if (argc < 2) prem = '?';
-      else if (argc == 5) { std::cout<<"floatformat tout court donne les formes admises"<<std::endl; return IFSelect_RetError; }
+      else if (argc == 5) { std::cout<<"floatformat tout court donne les formes admises"<<'\n'; return IFSelect_RetError; }
       else prem = arg1[0];
       Standard_Boolean zerosup=Standard_False;
       Standard_Integer digits = 0;
@@ -116,7 +116,7 @@ IFSelect_ReturnStatus  StepSelect_Activator::Do
       if (argc > 4) {
        Rmin = Atof(pilot->Word(4).ToCString());
        Rmax = Atof(pilot->Word(5).ToCString());
-       if (Rmin <= 0 || Rmax <= 0) { std::cout<<"intervalle : donner reels > 0"<<std::endl; return IFSelect_RetError; }
+       if (Rmin <= 0 || Rmax <= 0) { std::cout<<"intervalle : donner reels > 0"<<'\n'; return IFSelect_RetError; }
       }
       Handle(StepSelect_FloatFormat) fm = new StepSelect_FloatFormat;
       if (argc == 2) fm->SetDefault(digits);
index 777ac6bf9adec52a9a4d9b722bc1299d2ee8cd3d..78831a813de4dd7cebbc66c1885effc417f11673 100644 (file)
@@ -90,7 +90,7 @@ Standard_Boolean  StepSelect_WorkLibrary::WriteFile
 
   if (aStream.get() == NULL) {
     ctx.CCheck(0)->AddFail("Step File could not be created");
-    sout<<" Step File could not be created : " << ctx.FileName() << std::endl; return 0;
+    sout<<" Step File could not be created : " << ctx.FileName() << '\n'; return 0;
   }
   sout << " Step File Name : "<<ctx.FileName();
   StepData_StepWriter SW(stepmodel);
@@ -116,14 +116,14 @@ Standard_Boolean  StepSelect_WorkLibrary::WriteFile
     ctx.CCheck(chl.Number())->GetMessages(chl.Value());
   sout<<" Write ";
   Standard_Boolean isGood = SW.Print (*aStream);                 
-  sout<<" Done"<<std::endl;
+  sout<<" Done"<<'\n';
       
   errno = 0;
   aStream->flush();
   isGood = aStream->good() && isGood && !errno;
   aStream.reset();
   if(errno)
-    sout << strerror(errno) << std::endl;
+    sout << strerror(errno) << '\n';
   return isGood;  
 }
 
@@ -152,14 +152,14 @@ void  StepSelect_WorkLibrary::DumpEntity
   Handle(Standard_Transient) ent, con;  ent = entity;
   S <<" --- (STEP) Entity ";  model->Print(entity, S);
   if (iserr) con = model->ReportEntity(nument)->Content();
-  if (entity.IsNull()) {  S <<" Null"<<std::endl; return;  }
+  if (entity.IsNull()) {  S <<" Null"<<'\n'; return;  }
 
 //  On attaque le dump : d abord cas de l Erreur
-  S << " Type cdl : " << entity->DynamicType()->Name() << std::endl;
+  S << " Type cdl : " << entity->DynamicType()->Name() << '\n';
   if (iserr)
-    S <<" ***  NOT WELL LOADED : CONTENT FROM FILE  ***"<<std::endl;
+    S <<" ***  NOT WELL LOADED : CONTENT FROM FILE  ***"<<'\n';
   else if (model->IsUnknownEntity(nument))
-    S <<" ***  UNKNOWN TYPE  ***"<<std::endl;
+    S <<" ***  UNKNOWN TYPE  ***"<<'\n';
 
   StepData_StepDumper dump(GetCasted(StepData_StepModel,model),
                            GetCasted(StepData_Protocol,protocol),thelabmode);
index b72f07e98ea48aa0cb66b19b683cfda5ef41453a..eee8f6db759e06acd20f130ab70e6bd45b0c233f 100644 (file)
@@ -58,7 +58,7 @@ void StepShape_OrientedClosedShell::SetCfsFaces(const Handle(StepShape_HArray1Of
 {
        // WARNING : the field is redefined.
        // field set up forbidden.
-       std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
+       std::cout << "Field is redefined, SetUp Forbidden" << '\n';
 }
 
 Handle(StepShape_HArray1OfFace) StepShape_OrientedClosedShell::CfsFaces() const
index e1ae5d86fe6cfaa488dd2bf30ec6f6f99b5870cf..d8526d57da1e381a6f93fea753c04b27f1e82c68 100644 (file)
@@ -62,7 +62,7 @@ void StepShape_OrientedEdge::SetEdgeStart(const Handle(StepShape_Vertex)& /*aEdg
 {
        // WARNING : the field is redefined.
        // field set up forbidden.
-       std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
+       std::cout << "Field is redefined, SetUp Forbidden" << '\n';
 }
 
 Handle(StepShape_Vertex) StepShape_OrientedEdge::EdgeStart() const
@@ -83,7 +83,7 @@ void StepShape_OrientedEdge::SetEdgeEnd(const Handle(StepShape_Vertex)& /*aEdgeE
 {
        // WARNING : the field is redefined.
        // field set up forbidden.
-       std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
+       std::cout << "Field is redefined, SetUp Forbidden" << '\n';
 }
 
 Handle(StepShape_Vertex) StepShape_OrientedEdge::EdgeEnd() const
index bc1531b47760690c5e865d18c62c1a98c2c9a899..556903fb922f2bbbda5c9604e58cf4f984d8cbe2 100644 (file)
@@ -58,7 +58,7 @@ void StepShape_OrientedFace::SetBounds(const Handle(StepShape_HArray1OfFaceBound
 {
        // WARNING : the field is redefined.
        // field set up forbidden.
-       std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
+       std::cout << "Field is redefined, SetUp Forbidden" << '\n';
 }
 
 Handle(StepShape_HArray1OfFaceBound) StepShape_OrientedFace::Bounds() const
index 0b1431c9928770e19069d8440983b4c1d54cfa18..65c56db5ade9e79de35d1a02cf2a0f3f5c58d71d 100644 (file)
@@ -58,7 +58,7 @@ void StepShape_OrientedOpenShell::SetCfsFaces(const Handle(StepShape_HArray1OfFa
 {
        // WARNING : the field is redefined.
        // field set up forbidden.
-       std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
+       std::cout << "Field is redefined, SetUp Forbidden" << '\n';
 }
 
 Handle(StepShape_HArray1OfFace) StepShape_OrientedOpenShell::CfsFaces() const
index 924858818cf5ed1405d5b27e8c293a9c4db87996..d54c46bc85b576826d15db92fff0ceb65d60df1f 100644 (file)
@@ -60,7 +60,7 @@ void StepShape_OrientedPath::SetEdgeList(const Handle(StepShape_HArray1OfOriente
 {
        // WARNING : the field is redefined.
        // field set up forbidden.
-       std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
+       std::cout << "Field is redefined, SetUp Forbidden" << '\n';
 }
 
 Handle(StepShape_HArray1OfOrientedEdge) StepShape_OrientedPath::EdgeList() const
index 49991f88a1496a03af4a0c62a055917f918b5bd9..1da3a1e1499779d32ad7e6fb697cb3bf2cbf83f6 100644 (file)
@@ -159,16 +159,16 @@ void StepToTopoDS_Builder::Init(const Handle(StepShape_ManifoldSolidBrep)& theMa
   // Get Statistics :
   if (theTP->TraceLevel() > 2)
   {
-    sout << "Geometric Statistics : " << std::endl;
-    sout << "   Surface Continuity : - C0 : " << aTool.C0Surf() << std::endl;
-    sout << "                        - C1 : " << aTool.C1Surf() << std::endl;
-    sout << "                        - C2 : " << aTool.C2Surf() << std::endl;
-    sout << "   Curve Continuity :   - C0 : " << aTool.C0Cur3() << std::endl;
-    sout << "                        - C1 : " << aTool.C1Cur3() << std::endl;
-    sout << "                        - C2 : " << aTool.C2Cur3() << std::endl;
-    sout << "   PCurve Continuity :  - C0 : " << aTool.C0Cur2() << std::endl;
-    sout << "                        - C1 : " << aTool.C1Cur2() << std::endl;
-    sout << "                        - C2 : " << aTool.C2Cur2() << std::endl;
+    sout << "Geometric Statistics : " << '\n';
+    sout << "   Surface Continuity : - C0 : " << aTool.C0Surf() << '\n';
+    sout << "                        - C1 : " << aTool.C1Surf() << '\n';
+    sout << "                        - C2 : " << aTool.C2Surf() << '\n';
+    sout << "   Curve Continuity :   - C0 : " << aTool.C0Cur3() << '\n';
+    sout << "                        - C1 : " << aTool.C1Cur3() << '\n';
+    sout << "                        - C2 : " << aTool.C2Cur3() << '\n';
+    sout << "   PCurve Continuity :  - C0 : " << aTool.C0Cur2() << '\n';
+    sout << "                        - C1 : " << aTool.C1Cur2() << '\n';
+    sout << "                        - C2 : " << aTool.C2Cur2() << '\n';
   }
 
   ResetPreci (aStepModel, aSolid, MaxTol());
@@ -249,16 +249,16 @@ void StepToTopoDS_Builder::Init(const Handle(StepShape_BrepWithVoids)& theBRepWi
   // Get Statistics :
   if (theTP->TraceLevel() > 2)
   {
-    sout << "Geometric Statistics : " << std::endl;
-    sout << "   Surface Continuity : - C0 : " << aTool.C0Surf() << std::endl;
-    sout << "                        - C1 : " << aTool.C1Surf() << std::endl;
-    sout << "                        - C2 : " << aTool.C2Surf() << std::endl;
-    sout << "   Curve Continuity :   - C0 : " << aTool.C0Cur3() << std::endl;
-    sout << "                        - C1 : " << aTool.C1Cur3() << std::endl;
-    sout << "                        - C2 : " << aTool.C2Cur3() << std::endl;
-    sout << "   PCurve Continuity :  - C0 : " << aTool.C0Cur2() << std::endl;
-    sout << "                        - C1 : " << aTool.C1Cur2() << std::endl;
-    sout << "                        - C2 : " << aTool.C2Cur2() << std::endl;
+    sout << "Geometric Statistics : " << '\n';
+    sout << "   Surface Continuity : - C0 : " << aTool.C0Surf() << '\n';
+    sout << "                        - C1 : " << aTool.C1Surf() << '\n';
+    sout << "                        - C2 : " << aTool.C2Surf() << '\n';
+    sout << "   Curve Continuity :   - C0 : " << aTool.C0Cur3() << '\n';
+    sout << "                        - C1 : " << aTool.C1Cur3() << '\n';
+    sout << "                        - C2 : " << aTool.C2Cur3() << '\n';
+    sout << "   PCurve Continuity :  - C0 : " << aTool.C0Cur2() << '\n';
+    sout << "                        - C1 : " << aTool.C1Cur2() << '\n';
+    sout << "                        - C2 : " << aTool.C2Cur2() << '\n';
   }
 
 //:S4136  ShapeFix::SameParameter (S,Standard_False);
@@ -452,16 +452,16 @@ void StepToTopoDS_Builder::Init
   
   if ( TP->TraceLevel() > 2 )
   {
-    sout << "Geometric Statistics : " << 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;
+    sout << "Geometric Statistics : " << '\n';
+    sout << "   Surface Continuity : - C0 : " << myTool.C0Surf() << '\n';
+    sout << "                        - C1 : " << myTool.C1Surf() << '\n';
+    sout << "                        - C2 : " << myTool.C2Surf() << '\n';
+    sout << "   Curve Continuity :   - C0 : " << myTool.C0Cur3() << '\n';
+    sout << "                        - C1 : " << myTool.C1Cur3() << '\n';
+    sout << "                        - C2 : " << myTool.C2Cur3() << '\n';
+    sout << "   PCurve Continuity :  - C0 : " << myTool.C0Cur2() << '\n';
+    sout << "                        - C1 : " << myTool.C1Cur2() << '\n';
+    sout << "                        - C2 : " << myTool.C2Cur2() << '\n';
   }
 
 //:S4136  ShapeFix::SameParameter (S,Standard_False);
@@ -705,7 +705,7 @@ void StepToTopoDS_Builder::Init
         catch (Standard_Failure const& anException) {
           Message_Messenger::StreamBuffer sout = TP->Messenger()->SendInfo();
           sout << "StepToTopoDS, GeometricSet, elem " << i << " of " << nbElem << ": exception ";
-          sout << anException.GetMessageString() << std::endl;
+          sout << anException.GetMessageString() << '\n';
         }
         if (!aGeomCrv.IsNull()) {
           BRepBuilderAPI_MakeEdge anEdge(aGeomCrv, aGeomCrv->FirstParameter(), aGeomCrv->LastParameter());
index 558e2418cd662557a9bef48b83786be1a69d0395..b6f17ad5669deccaeb501ffbb0b9fd643f2d58dd 100644 (file)
@@ -280,7 +280,7 @@ const TCollection_ExtendedString& TCollection_HExtendedString::String() const
 //---------------------------------------------------------------------
 void TCollection_HExtendedString::Print(Standard_OStream& S) const
 {
-  S << "begin class HExtendedString "<<std::endl;
+  S << "begin class HExtendedString "<<'\n';
   myString.Print(S);
 }
 
index 201a44ee13f43e0c0bbaa6d6a77a6f623e1f6cfd..0db778f7efe0c9169dab2c42fbad8aac65008ce1 100644 (file)
@@ -392,7 +392,7 @@ Standard_OStream& TDF_Attribute::Dump(Standard_OStream& anOS) const
   //
   pStr=toto;
   ID().ToCString(pStr);
-  anOS<<";\tID = "<<toto<<std::endl;
+  anOS<<";\tID = "<<toto<<'\n';
   return anOS;
 }
 
index afbd2dae757d9033cf57aae70de614afea1e724d..367a20de4b84b36f033175523ad894d25cd3cbfb 100644 (file)
@@ -480,9 +480,9 @@ void TDF_Data::RegisterLabel(const TDF_Label& aLabel)
 
 Standard_OStream& TDF_Data::Dump(Standard_OStream& anOS) const
 {
-  anOS<<"Dump of a TDF_Data."<<std::endl;
+  anOS<<"Dump of a TDF_Data."<<'\n';
   anOS<<"Current transaction: "<<myTransaction;
-  anOS<<"; Current tick: "<<myTime<<";"<<std::endl;
+  anOS<<"; Current tick: "<<myTime<<";"<<'\n';
   return anOS;
 }
 
index 7504d8df19253161fc96bae24e72371d525b0816..761cf7cb6f4a5cb1e66121571d42174dc35c4fae 100644 (file)
@@ -54,27 +54,27 @@ void TDF_DataSet::Clear()
 
 Standard_OStream& TDF_DataSet::Dump(Standard_OStream& anOS) const
 {
-  anOS<<"\t\t=====< TDF_DataSet dump >====="<<std::endl;
-  anOS<<"Root Labels :"<<std::endl<<"============="<<std::endl;
+  anOS<<"\t\t=====< TDF_DataSet dump >====="<<'\n';
+  anOS<<"Root Labels :"<<'\n'<<"============="<<'\n';
   for (TDF_ListIteratorOfLabelList itr1(myRootLabels);
        itr1.More(); itr1.Next()) {
     itr1.Value().EntryDump(anOS);
     anOS<<" | ";
   }
-  anOS<<std::endl<<"Labels :"<<std::endl<<"========"<<std::endl;
+  anOS<<'\n'<<"Labels :"<<'\n'<<"========"<<'\n';
   for (TDF_MapIteratorOfLabelMap itr2(myLabelMap);
        itr2.More(); itr2.Next()) {
     itr2.Key().EntryDump(anOS);
     anOS<<" | ";
   }
-  anOS<<std::endl<<"Attributes :"<<std::endl<<"============"<<std::endl<<std::endl;
+  anOS<<'\n'<<"Attributes :"<<'\n'<<"============"<<'\n'<<'\n';
   for (TDF_MapIteratorOfAttributeMap itr3(myAttributeMap);
        itr3.More(); itr3.Next()) {
     itr3.Key()->Label().EntryDump(anOS);
     anOS<<" \t";
     itr3.Key()->Dump(anOS);
-    anOS<<std::endl;
+    anOS<<'\n';
   }
-  anOS<<std::endl;
+  anOS<<'\n';
   return anOS;
 }
index 60d5b7c79bb536c273b2291f8f4b99397f666369..0ac4e657c26b012f7c3fbb271784ab562cd564f8 100644 (file)
@@ -209,15 +209,15 @@ void TDF_Delta::Labels(TDF_LabelList& aLabelList) const
 
 void TDF_Delta::Dump(Standard_OStream& OS) const
 {
-  OS<<"DELTA available from time \t#"<<myBeginTime<<" to time \t#"<<myEndTime<<std::endl;
+  OS<<"DELTA available from time \t#"<<myBeginTime<<" to time \t#"<<myEndTime<<'\n';
   Standard_Integer n = 0;
 //  for (TDF_ListIteratorOfAttributeDeltaList itr(myAttDeltaList);
   TDF_ListIteratorOfAttributeDeltaList itr(myAttDeltaList) ;
   for ( ; itr.More(); itr.Next()) ++n;
-  OS<<"Nb Attribute Delta(s): "<<n<<std::endl;
+  OS<<"Nb Attribute Delta(s): "<<n<<'\n';
   for (itr.Initialize(myAttDeltaList); itr.More(); itr.Next()) {
     const Handle(TDF_AttributeDelta)& attDelta = itr.Value();
-    OS<<"| "; attDelta->Dump(OS); OS<<std::endl;
+    OS<<"| "; attDelta->Dump(OS); OS<<'\n';
   }
 }
 
index abe3fee551ce1df1dbd77bf02657df9b83eee8f7..b3d5d0db721c71a13a93b690ee9b1d9296619bb0 100644 (file)
@@ -151,11 +151,11 @@ void TDF_IDFilter::Dump(Standard_OStream& anOS) const
   if (myIgnore) anOS<<"ignores"; else anOS<<"keeps  "; anOS<<" all IDs";
   TDF_MapIteratorOfIDMap itr(myIDMap);
   if (itr.More()) {
-    anOS<<" BUT:"<<std::endl;
+    anOS<<" BUT:"<<'\n';
     for (; itr.More(); itr.Next()) {
       const Standard_GUID& guid = itr.Key();
       guid.ShallowDump(anOS);
-      anOS<<std::endl;
+      anOS<<'\n';
     }
   }
 }
index 7431ae949066cb41fa13ff99d6b1b15c4d46e444..ee4ed89ebcfd8fb2789d3455627b1e8b14e8a481 100644 (file)
@@ -373,7 +373,7 @@ void TDF_Label::InternalDump
     if (AttributesModified()) anOS<<"HAS attributes"; else anOS<<"NO attribute"; anOS<<" modified; ";
     if (HasAttribute()) {
       Standard_Integer nba = NbAttributes();
-      anOS<<"has "<<nba<<" attribute"; if (nba > 1) anOS<<"s"; anOS<<"."<<std::endl;
+      anOS<<"has "<<nba<<" attribute"; if (nba > 1) anOS<<"s"; anOS<<"."<<'\n';
       for (TDF_AttributeIterator itr(myLabelNode); itr.More(); itr.Next()) {
         // CLE
         // const Handle(TDF_Attribute)& att = itr.Value();
@@ -384,7 +384,7 @@ void TDF_Label::InternalDump
       }
     }
     else {
-      anOS<<" has no attribute"<<std::endl;
+      anOS<<" has no attribute"<<'\n';
     }
   }
 }
index 7f9b6588b8da6ab1978b0fb77982909108857a7e..4d06da1365f8198d9afee30fb67b31b266beeb7b 100644 (file)
@@ -262,14 +262,14 @@ Standard_OStream& TDF_RelocationTable::Dump
   if (mySelfRelocate) anOS<<"IS"; else anOS<<"NOT";
   anOS<<" self relocate ";
   if (myAfterRelocate) anOS<<"WITH"; else anOS<<"WITHOUT";
-  anOS<<" after relocate"<<std::endl;
+  anOS<<" after relocate"<<'\n';
   anOS<<"Nb labels="<<myLabelTable.Extent();
   anOS<<"  Nb attributes="<<myAttributeTable.Extent();
-  anOS<<"  Nb transients="<<myTransientTable.Extent()<<std::endl;
+  anOS<<"  Nb transients="<<myTransientTable.Extent()<<'\n';
 
   Standard_Integer nb = 0;
   if (dumpLabels) {
-    anOS<<"Label Table:"<<std::endl;
+    anOS<<"Label Table:"<<'\n';
     for (TDF_DataMapIteratorOfLabelDataMap itr(myLabelTable);
         itr.More(); itr.Next()) {
       ++nb;
@@ -279,12 +279,12 @@ Standard_OStream& TDF_RelocationTable::Dump
       itr.Value().EntryDump(anOS);
       anOS<<"| ";
     }
-    std::cout<<std::endl;
+    std::cout<<'\n';
   }
 
   nb = 0;
   if (dumpAttributes) {
-    anOS<<"Attribute Table:"<<std::endl;
+    anOS<<"Attribute Table:"<<'\n';
     for (TDF_DataMapIteratorOfAttributeDataMap itr(myAttributeTable);
         itr.More(); itr.Next()) {
       ++nb;
@@ -293,12 +293,12 @@ Standard_OStream& TDF_RelocationTable::Dump
       anOS<<"<=>";
       itr.Value()->Dump(anOS);
       anOS<<"| ";
-      anOS<<std::endl;
+      anOS<<'\n';
     }
   }
   
   if (dumpTransients) {
-    anOS<<"Transient Table:"<<myTransientTable.Extent()<<" transient(s) in table."<<std::endl;
+    anOS<<"Transient Table:"<<myTransientTable.Extent()<<" transient(s) in table."<<'\n';
   }
 
   return anOS;
index 954b540d957b4e1d9a95d4144ae438cc1e9205f8..552fa3a7567fd05a2d8379cb5e2ccf21792e1894 100644 (file)
@@ -645,9 +645,9 @@ void TDF_Tool::ExtendedDeepDump
   TDF_Tool_ExtendedDeepDump(anOS,aLabel,aFilter,map);
 
   anOS<<map.Extent()<<" attribute"; if (map.Extent()>1) anOS<<"s";
-  anOS<<" referenced by the label structure."<<std::endl;
+  anOS<<" referenced by the label structure."<<'\n';
 
-  anOS<<std::endl<<"Extended dump of filtered attribute(s):"<<std::endl;
+  anOS<<'\n'<<"Extended dump of filtered attribute(s):"<<'\n';
   Standard_Integer nba = 0;
   TCollection_AsciiString entry;
   Standard_Integer i ;
@@ -657,18 +657,18 @@ void TDF_Tool::ExtendedDeepDump
       ++nba;
       anOS<<"# "<<i;
       if (att->Label().IsNull()) {
-       anOS<<" (no label)"<<std::endl;
+       anOS<<" (no label)"<<'\n';
       }
       else {
        TDF_Tool::Entry(att->Label(),entry);
-       anOS<<" (label: "<<entry<<")"<<std::endl;
+       anOS<<" (label: "<<entry<<")"<<'\n';
       }
-      att->ExtendedDump(anOS,aFilter,map); anOS<<std::endl;
+      att->ExtendedDump(anOS,aFilter,map); anOS<<'\n';
     }
   }
-  anOS<<std::endl<<nba<<" attribute";
+  anOS<<'\n'<<nba<<" attribute";
   if (nba>1) anOS<<"s";
-  anOS<<" dumped between "<<--i<<std::endl;
+  anOS<<" dumped between "<<--i<<'\n';
 }
 
 
index 226ce3a8d5bd2eaa4ade49e492545858e7836878..0f458290a7a14da5471c4ea980f3332fbedf0296 100644 (file)
@@ -197,7 +197,7 @@ Standard_OStream& TDataStd_AsciiString::Dump(Standard_OStream& theOS) const
   anOS << " Name=|"<<myString<<"|";
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
-  anOS << sguid << "|" <<std::endl;
+  anOS << sguid << "|" <<'\n';
   return anOS;
 }
 
index 3f509acef15e092789270f04a8fe02c44a16dfad..3e8feed36e90f5e33e1506c9cd122834a19c3e72 100644 (file)
@@ -318,7 +318,7 @@ Standard_OStream& TDataStd_BooleanArray::Dump (Standard_OStream& anOS) const
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
   anOS << sguid;
-  anOS <<std::endl;
+  anOS <<'\n';
   return anOS;
 }
 
index 949bf061d208c687fa35a02326bb40274f6611ca..268fef20c1fe19b6178d54bd6a3f759cbb221463 100644 (file)
@@ -304,7 +304,7 @@ Standard_OStream& TDataStd_BooleanList::Dump (Standard_OStream& anOS) const
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
   anOS << sguid;
-  anOS << std::endl;
+  anOS << '\n';
   return anOS;
 }
 
index e8d3cf0e1a012e224c53ed80393767a92add1c9f..e5568d985ccd509e7a0af6a9c5890e12bdbc974c 100644 (file)
@@ -293,7 +293,7 @@ Standard_OStream& TDataStd_ByteArray::Dump (Standard_OStream& anOS) const
   anOS << "\nByteArray: ";
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
-  anOS << sguid << std::endl;
+  anOS << sguid << '\n';
   return anOS;
 }
 
index a9e565723f6e71d28458b27b5f5efe283813a99f..e793426265e85d3d51f128205c9a7ec6d4619c5c 100644 (file)
@@ -313,13 +313,13 @@ Standard_OStream& TDataStd_ExtStringArray::Dump (Standard_OStream& anOS) const
     lower = myValue->Lower();
     upper = myValue->Upper();
     for(i = lower; i<=upper; i++)
-      anOS << "\t" <<myValue->Value(i)<<std::endl;
+      anOS << "\t" <<myValue->Value(i)<<'\n';
   }
   anOS << " Delta is " << (myIsDelta ? "ON":"OFF");
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
   anOS << sguid;
-  anOS << std::endl;
+  anOS << '\n';
   return anOS;
 }
 
index 2caab46df15e4bb3ec4377f351d99aa830358b3c..dce0e593c639b2c4d0fce64228dc0cae36d5db65 100644 (file)
@@ -364,7 +364,7 @@ Standard_OStream& TDataStd_ExtStringList::Dump (Standard_OStream& anOS) const
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
   anOS << sguid;
-  anOS << std::endl;
+  anOS << '\n';
   return anOS;
 }
 
index ef1f71bd5014e5c2ddb3bf62ea2c40f4b3d899fe..269f24f231655a5ad46fc5d78719cd1e598a058a 100644 (file)
@@ -218,7 +218,7 @@ Standard_OStream& TDataStd_IntPackedMap::Dump(Standard_OStream& theOS) const
   Standard_OStream& anOS = TDF_Attribute::Dump( theOS );
   anOS << "IntPackedMap size = " << Extent();
   anOS << " Delta is " << (myIsDelta ? "ON":"OFF");
-  anOS << std::endl;
+  anOS << '\n';
   return anOS;
 }
 
index d827b1e604397d2a77215f1ba1f0d08b63c47afe..018db22bf0342d63d26c88f24c451bc916b9229b 100644 (file)
@@ -317,7 +317,7 @@ Standard_OStream& TDataStd_IntegerArray::Dump (Standard_OStream& anOS) const
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
   anOS << sguid;
-  anOS << std::endl;
+  anOS << '\n';
 
   // anOS <<"\nAttribute fields: ";
   //  anOS << TDF_Attribute::Dump(anOS);
index 6702826dda1975da33c07377d6df459715f82ab0..f28d1e79ab49d98f027e5b77a83d5c114b043c75 100644 (file)
@@ -360,7 +360,7 @@ Standard_OStream& TDataStd_IntegerList::Dump (Standard_OStream& anOS) const
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
   anOS << sguid;
-  anOS << std::endl;
+  anOS << '\n';
   return anOS;
 }
 
index 4c6a96afb1e1d09b98777d9cdd96949393fd133d..f3fd3766cda0c5e66231fd4f307ad29dee1357e0 100644 (file)
@@ -126,6 +126,6 @@ Standard_OStream& TDataStd_Name::Dump (Standard_OStream& anOS) const
   anOS << " Name=|"<<myString<<"|";
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
-  anOS << sguid << std::endl;
+  anOS << sguid << '\n';
   return anOS;
 }
index 90bf7b32f960103ab965b6f63d85e4865d618640..eebc4463b4075a046983992256b04a19fd1e7dc6 100644 (file)
@@ -317,7 +317,7 @@ Standard_OStream& TDataStd_RealArray::Dump (Standard_OStream& anOS) const
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
   anOS << sguid;
-  anOS << std::endl;
+  anOS << '\n';
   return anOS;
 }
 
index e7eb8a70a086d6fc46e9faa33b6a0465d988f78e..e902eb27eccf5abe0f3dde57a88c7f0e4b26f5d8 100644 (file)
@@ -358,7 +358,7 @@ Standard_OStream& TDataStd_RealList::Dump (Standard_OStream& anOS) const
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
   anOS << sguid;
-  anOS << std::endl;
+  anOS << '\n';
   return anOS;
 }
 
index 2d94dd66c7d587dc88b54764848eccba56b76556..0266c6cfb4d21d9336f311361192af6ee233e7ad 100644 (file)
@@ -329,7 +329,7 @@ Standard_OStream& TDataStd_ReferenceArray::Dump (Standard_OStream& anOS) const
   anOS << "\nReferenceArray: ";
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
-  anOS << sguid << std::endl;
+  anOS << sguid << '\n';
   return anOS;
 }
 
index 1787685dda8392bf186eadb3250401260e11f26c..f5c33de09871b6d404c8bdd2e3cf93713dba5f60 100644 (file)
@@ -381,7 +381,7 @@ Standard_OStream& TDataStd_ReferenceList::Dump (Standard_OStream& anOS) const
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
   anOS << sguid;
-  anOS << std::endl;
+  anOS << '\n';
   return anOS;
 }
 
index 7f40a930eda9d442e6e1d89d266ae481ac5e6bcb..7e542d9672c7d98220fa26f7d98007e3ad1707b8 100644 (file)
@@ -687,7 +687,7 @@ Standard_OStream& TDataStd_TreeNode::Dump (Standard_OStream& anOS) const
     anOS<<"  Last=";
     if (!myLast->Label().IsNull()) myLast->Label().EntryDump(anOS);
   }
-  anOS<<std::endl;
+  anOS<<'\n';
   return anOS;
 }
 
index f59f862ffd792334d7e488d668650e2c3d8c619e..9a4c0519d9b032bdca977efbe2b88d60827dbf9d 100644 (file)
@@ -189,7 +189,7 @@ void TDocStd_MultiTransactionManager::DumpTransaction(Standard_OStream& anOS) co
 {
   Standard_Integer i;
   if(myDocuments.Length() == 0)
-    anOS << "Manager is empty" << std::endl;
+    anOS << "Manager is empty" << '\n';
   else {
     if(myDocuments.Length() == 1)
       anOS << "There is one document ( ";
@@ -200,14 +200,14 @@ void TDocStd_MultiTransactionManager::DumpTransaction(Standard_OStream& anOS) co
       anOS << "\"" << aDoc.get();
       anOS << "\" ";
     }
-    anOS << ") in the manager "  << std::endl;
+    anOS << ") in the manager "  << '\n';
 
     if(myIsNestedTransactionMode)
-      anOS << "Nested transaction mode is on" << std::endl;
+      anOS << "Nested transaction mode is on" << '\n';
     else
-      anOS << "Nested transaction mode is off" << std::endl;
+      anOS << "Nested transaction mode is off" << '\n';
 
-    anOS << " " << std::endl;
+    anOS << " " << '\n';
   }
 
   for (i = myUndos.Length(); i > 0; i--) {
@@ -215,16 +215,16 @@ void TDocStd_MultiTransactionManager::DumpTransaction(Standard_OStream& anOS) co
     anOS<<" Undo: ";
     delta->Dump(anOS);
     if (i == 1) {
-      anOS<<"  < Last action"<<std::endl;
+      anOS<<"  < Last action"<<'\n';
     } else {
-      anOS<<std::endl;
+      anOS<<'\n';
     }
   }
   for (i = 1; i <= myRedos.Length(); i++) {
     Handle(TDocStd_ApplicationDelta) delta = myRedos.Value(i);
     anOS<<" Redo: ";
     delta->Dump(anOS);
-    anOS<<std::endl;
+    anOS<<'\n';
   }
 }
 
index 872b9e0273246449eba2d23a545e5e8f12443ac4..e5ac0d3549380b16a40381e134ba2e2f23757057 100644 (file)
@@ -287,7 +287,7 @@ void TFunction_Iterator::SetStatus(const TDF_Label& func,
 //=======================================================================
 Standard_OStream& TFunction_Iterator::Dump (Standard_OStream& anOS) const
 {  
-  anOS << "Functions:" << std::endl ;
+  anOS << "Functions:" << '\n' ;
 
   if (myCurrent.IsEmpty())
     return anOS;
@@ -338,7 +338,7 @@ Standard_OStream& TFunction_Iterator::Dump (Standard_OStream& anOS) const
 
     fIterator.Next();
     
-    anOS << std::endl;
+    anOS << '\n';
   }
 
   // Recover the status of functions
index 3808968cb2050f504dc07e07a609e238f77133b0..c65a63deff3c7004b9408bcdcac74811131aab2b 100644 (file)
@@ -297,24 +297,24 @@ Standard_OStream& TFunction_Logbook::Dump(Standard_OStream& stream) const
   TDF_MapIteratorOfLabelMap itr;
   TCollection_AsciiString as;
   
-  stream<<"Done = "<<isDone<<std::endl;
-  stream<<"Touched labels: "<<std::endl;
+  stream<<"Done = "<<isDone<<'\n';
+  stream<<"Touched labels: "<<'\n';
   for (itr.Initialize(myTouched); itr.More(); itr.Next())
   {
     TDF_Tool::Entry(itr.Key(), as);
-    stream<<as<<std::endl;
+    stream<<as<<'\n';
   }
-  stream<<"Impacted labels: "<<std::endl;
+  stream<<"Impacted labels: "<<'\n';
   for (itr.Initialize(myImpacted); itr.More(); itr.Next())
   {
     TDF_Tool::Entry(itr.Key(), as);
-    stream<<as<<std::endl;
+    stream<<as<<'\n';
   }  
-  stream<<"Valid labels: "<<std::endl;
+  stream<<"Valid labels: "<<'\n';
   for (itr.Initialize(myValid); itr.More(); itr.Next())
   {
     TDF_Tool::Entry(itr.Key(), as);
-    stream<<as<<std::endl;
+    stream<<as<<'\n';
   }  
 
   return stream;
index 9051d0d615f761636c496590ef948e69b61d117c..ffa88579f79beaeec78baeb7a28638142174c4b2 100644 (file)
@@ -102,7 +102,7 @@ static void SubstituteShape(const TopoDS_Shape& oldShape,
                            TNaming_DataMapOfShapePtrRefShape& amap) 
 {
   if (oldShape.IsSame(newShape)) {
-    std::cout <<"import_tool::Substitute : oldShape IsSame newShape"<<std::endl;
+    std::cout <<"import_tool::Substitute : oldShape IsSame newShape"<<'\n';
   }
 
   if (!amap.IsBound(oldShape)) {
index 439203507172085b3b3c16f05df2159c021b0150..426355c6bef1645e365b428ce918b2ce9c4beb93 100644 (file)
@@ -1742,12 +1742,12 @@ Handle(TNaming_NamedShape) TNaming_Naming::Name (const TDF_Label&       F,
        theName.ContextLabel(aNamedShape->Label());
        if (Geom) return aNamedShape;
        if(aNamedShape.IsNull()) {
-       std::cout <<" %%% WARNING: TNaming_Naming::Name:  FAILED"<<std::endl;
+       std::cout <<" %%% WARNING: TNaming_Naming::Name:  FAILED"<<'\n';
        return BuildNS (F,S, TNaming_UNKNOWN);
       }
 
         if (!Geom && TestSolution(MDF, aNamedShape,S)) return aNamedShape;
-       std::cout <<" %%% WARNING: TNaming_Naming::Name:  FAILED"<<std::endl;
+       std::cout <<" %%% WARNING: TNaming_Naming::Name:  FAILED"<<'\n';
 
        // Naming n is  unsatisfactory
        return BuildNS (F,S, TNaming_UNKNOWN);
@@ -1849,7 +1849,7 @@ Handle(TNaming_NamedShape) TNaming_Naming::Name (const TDF_Label&       F,
     if (!Geom && TestSolution(MDF,NS,S)) return NS; 
   }
   
-      std::cout <<" %%% WARNING: TNaming_Naming::Name:  FAILED"<<std::endl;
+      std::cout <<" %%% WARNING: TNaming_Naming::Name:  FAILED"<<'\n';
 
   // Naming n is not satisfactory
   return BuildNS (F,S, TNaming_UNKNOWN); 
index b8037de747fae99aec95208c746d54cc8d8f9db4..c9fd93a1e13aec619b0ad9bd1c2ea5a6748637a4 100644 (file)
@@ -118,11 +118,11 @@ void TNaming_Translator::DumpMap(const Standard_Boolean isWrite) const
 
   if (!myMap.Extent()) return;
   else 
-    std::cout <<"TNaming_Translator:: IndexedDataMap Extent = "<< myMap.Extent() << std::endl;
+    std::cout <<"TNaming_Translator:: IndexedDataMap Extent = "<< myMap.Extent() << '\n';
   
   for (Standard_Integer i=1; i <= myMap.Extent(); i++)
     {
-      std::cout <<"TNaming_Translator::DumpMap:  Index = "<< i << " Type = "<< (myMap.FindKey(i))->DynamicType() << std::endl;
+      std::cout <<"TNaming_Translator::DumpMap:  Index = "<< i << " Type = "<< (myMap.FindKey(i))->DynamicType() << '\n';
       Handle(Standard_Type) T = (myMap.FindKey(i))->DynamicType();
       if((T == STANDARD_TYPE (BRep_TVertex)) ||(T == STANDARD_TYPE (BRep_TEdge)) ||
         T == STANDARD_TYPE (BRep_TFace)|| T == STANDARD_TYPE (TopoDS_TWire)||
@@ -143,14 +143,14 @@ void TNaming_Translator::DumpMap(const Standard_Boolean isWrite) const
          if(isWrite) {
            const Handle(TopLoc_Datum3D) key = Handle(TopLoc_Datum3D)::DownCast(myMap.FindKey(i));
            const Handle(TopLoc_Datum3D) Item = Handle(TopLoc_Datum3D)::DownCast(myMap.FindFromIndex(i));
-           std::cout << "TNaming_Translator::DumpMap: Location_Key_name  = "<< keyname.Cat(i).ToCString()<< std::endl;
+           std::cout << "TNaming_Translator::DumpMap: Location_Key_name  = "<< keyname.Cat(i).ToCString()<< '\n';
            key->ShallowDump(std::cout);
-           std::cout << "TNaming_Translator::DumpMap: Location_Item_name = "<< itemname.Cat(i).ToCString()<< std::endl;
+           std::cout << "TNaming_Translator::DumpMap: Location_Item_name = "<< itemname.Cat(i).ToCString()<< '\n';
            Item->ShallowDump(std::cout);
          }                                                    
        }
       else {
-       std::cout <<"TNaming_Translator::DumpMap: Unexpected Type >> Idex = "<< i << " Type = "<<(myMap.FindKey(i))->DynamicType()<< std::endl;
+       std::cout <<"TNaming_Translator::DumpMap: Unexpected Type >> Idex = "<< i << " Type = "<<(myMap.FindKey(i))->DynamicType()<< '\n';
        continue;
       }
     }
index c52a581bfcf532e982b6aa0df4971fab622703fd..4e4ec9e39c8cf07ff75dcad36a23556334df4c82 100644 (file)
@@ -155,14 +155,14 @@ void  TNaming_UsedShapes::Paste(const Handle(TDF_Attribute)&,
 
 Standard_OStream& TNaming_UsedShapes::Dump(Standard_OStream& anOS) const
 {
-  anOS<<"The content of UsedShapes attribute:"<<std::endl;
+  anOS<<"The content of UsedShapes attribute:"<<'\n';
   TNaming_DataMapIteratorOfDataMapOfShapePtrRefShape itr(myMap);
   for (; itr.More(); itr.Next()) {
     if (itr.Key().IsNull())
     {
       anOS << "Empty Shape at label =";
       itr.Value()->Label().EntryDump(anOS);
-      anOS << std::endl;
+      anOS << '\n';
       continue;
     }
     anOS << "  ";
@@ -171,7 +171,7 @@ Standard_OStream& TNaming_UsedShapes::Dump(Standard_OStream& anOS) const
     itr.Value()->Label().EntryDump(anOS);
     anOS << " Key_TShape   = " <<itr.Key().TShape()->This();
     anOS << " Value_TShape = " <<itr.Value()->Shape().TShape()->This();    
-    anOS<<std::endl;
+    anOS<<'\n';
   }
   return anOS;
 }
index c03a605916660f7f9d2e61b82549ab1c4e1be81d..146aedd0689f8e732bbfad734a3f284e477d311d 100644 (file)
@@ -77,6 +77,6 @@ void TObj_Persistence::DumpTypes (Standard_OStream &theOs)
   TObj_DataMapOfStringPointer::Iterator it ( getMapOfTypes() );
   for ( ; it.More(); it.Next() )
   {
-    theOs << it.Key() << std::endl;
+    theOs << it.Key() << '\n';
   }
 }
index 4c1e1fc0ef134263df7e57525ed3acd33958463e..2b54381aa93d6a543bb2a8200be7baf637112b71 100644 (file)
@@ -58,7 +58,7 @@ void TopLoc_Datum3D::DumpJson (Standard_OStream& theOStream, Standard_Integer th
 
 void  TopLoc_Datum3D::ShallowDump(Standard_OStream& S) const 
 {
-  S << " TopLoc_Datum3D " << (void*)this << std::endl;
+  S << " TopLoc_Datum3D " << (void*)this << '\n';
   Standard_Integer i;
   gp_Trsf T = myTrsf;
   for (i = 1; i<=3; i++) {
@@ -68,6 +68,6 @@ void  TopLoc_Datum3D::ShallowDump(Standard_OStream& S) const
     S<<","<<std::setw(10)<<T.Value(i,4);
     S<<")\n";
   }
-  S << std::endl;
+  S << '\n';
 }
     
index 29ec3bee28803e9bb05c0d9e5fb1ea9b32dcb109..82c03f51f63cfd86ed2bdeca23a861c358dad86d 100644 (file)
@@ -216,10 +216,10 @@ void TopLoc_Location::ShallowDump(Standard_OStream& S) const
 {
   S << "TopLoc_Location : ";
   TopLoc_SListOfItemLocation items  = myItems;
-  if (items.IsEmpty()) S << "Identity"<<std::endl;
+  if (items.IsEmpty()) S << "Identity"<<'\n';
   while (items.More()) {
     S<<"\n";
-    S << "       Exponent : " << items.Value().myPower <<std::endl;
+    S << "       Exponent : " << items.Value().myPower <<'\n';
     items.Value().myDatum->ShallowDump(S);
     items.Next();
   }
index 5d82c1632b5d572ea20c693c209ea779bd47f2f4..f8482d0e3a356bf25e50e1f5c215313466c3d571 100644 (file)
@@ -338,7 +338,7 @@ static Standard_Boolean FUN_findTOOF(const TopOpeBRepDS_PDataStructure pDS,
 
 Standard_EXPORT Standard_Boolean GLOBAL_btcx = Standard_False;
 Standard_EXPORT void debtcxmess(Standard_Integer f1,Standard_Integer f2,Standard_Integer il)
-{std::cout<<"f1,f2,il : "<<f1<<","<<f2<<","<<il<<std::endl;std::cout.flush();}
+{std::cout<<"f1,f2,il : "<<f1<<","<<f2<<","<<il<<'\n';std::cout.flush();}
 
 //=======================================================================
 //function : ProcessLine
index de7a06ee780ab17bb76f5e9f6f7eca00c30eeda8..8af6643cc6a6e5b74d92427af30d8b376bddcaa2 100644 (file)
@@ -85,5 +85,5 @@ void TopOpeBRepBuild_GIter::Dump(Standard_OStream& OS) const
   if ( !More()) return;
   TopAbs_State s1,s2; Current(s1,s2);
   Standard_Boolean b = MYGTOPO.Value(s1,s2);
-  TopOpeBRepBuild_GTopo::DumpSSB(OS,s1,s2,b); OS<<std::endl;
+  TopOpeBRepBuild_GTopo::DumpSSB(OS,s1,s2,b); OS<<'\n';
 }
index a6b6b75750728e65f015aff7772e8498ab5478bf..ea84890ca0d5a3f4d96c12183dfda87d9da2037f 100644 (file)
@@ -165,18 +165,18 @@ void TopOpeBRepBuild_GTool::Dump(Standard_OStream& OS)
   TopOpeBRepBuild_GTopo g;
 
   g = TopOpeBRepBuild_GTool::GFusUnsh(TopAbs_FACE,TopAbs_FACE);
-  g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<std::endl;
+  g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<'\n';
 
   g = TopOpeBRepBuild_GTool::GFusSame(TopAbs_FACE,TopAbs_FACE);
-  g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<std::endl;
+  g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<'\n';
 
   g = TopOpeBRepBuild_GTool::GFusDiff(TopAbs_FACE,TopAbs_FACE);
-  g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<std::endl;
+  g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<'\n';
   
   g = TopOpeBRepBuild_GTool::GCutDiff(TopAbs_FACE,TopAbs_EDGE);
-  g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<std::endl;
+  g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<'\n';
 
   g = g.CopyPermuted();
-  g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<std::endl;
+  g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<'\n';
 
 }
index 86488cf2ac82b0aca561bf7c2917f67cf0c70f9c..19e85079f3456059a2547adbf4dfd1998ad8e0ab 100644 (file)
@@ -298,31 +298,31 @@ void TopOpeBRepBuild_GTopo::Dump(Standard_OStream& OS,
   DumpType(OS);
   OS<<" "; TopOpeBRepDS::Print(myConfig1,OS);
   OS<<" "; TopOpeBRepDS::Print(myConfig2,OS);
-  OS<<std::endl;
+  OS<<'\n';
 
-  if (myReverseForce) OS<<"reverse value : "<<myReverseValue<<std::endl;
+  if (myReverseForce) OS<<"reverse value : "<<myReverseValue<<'\n';
 
   if(s) OS<<s;
   OS<<"\\ I N O";
-  OS<<std::endl;
+  OS<<'\n';
 
   if(s) OS<<s;
   OS<<"I ";
   DumpVal(OS,TopAbs_IN,TopAbs_IN); OS<<" ";
   DumpVal(OS,TopAbs_IN,TopAbs_ON); OS<<" ";
-  DumpVal(OS,TopAbs_IN,TopAbs_OUT); OS<<std::endl;
+  DumpVal(OS,TopAbs_IN,TopAbs_OUT); OS<<'\n';
 
   if(s) OS<<s;
   OS<<"N ";
   DumpVal(OS,TopAbs_ON,TopAbs_IN); OS<<" ";
   DumpVal(OS,TopAbs_ON,TopAbs_ON); OS<<" ";
-  DumpVal(OS,TopAbs_ON,TopAbs_OUT); OS<<std::endl;
+  DumpVal(OS,TopAbs_ON,TopAbs_OUT); OS<<'\n';
 
   if(s) OS<<s;
   OS<<"O ";
   DumpVal(OS,TopAbs_OUT,TopAbs_IN); OS<<" ";
   DumpVal(OS,TopAbs_OUT,TopAbs_ON); OS<<" ";
-  DumpVal(OS,TopAbs_OUT,TopAbs_OUT); OS<<std::endl;
+  DumpVal(OS,TopAbs_OUT,TopAbs_OUT); OS<<'\n';
 }
 
 //=======================================================================
index a83222487e6f21fe05b01e45c71df0faa1d00f95..e6d396cdd25984b2d11ee217c261c3ddf3852dc6 100644 (file)
@@ -295,7 +295,7 @@ void TopOpeBRepBuild_Builder::GdumpSAMDOM(const TopTools_ListOfShape& L,
                                           const Standard_Address astr) const 
 {
   TopOpeBRepDS_Dumper Dumper(myDataStructure);
-  std::cout<<Dumper.SPrintShapeRefOri(L,(char*)astr)<<std::endl;
+  std::cout<<Dumper.SPrintShapeRefOri(L,(char*)astr)<<'\n';
   std::cout.flush();
 }
 
index f41a9ee587c4baec45c7f01a363b30e9c84ab34b..deefcbeaeaa7a79d1f08b81be662769bcb101c63 100644 (file)
@@ -1865,7 +1865,7 @@ static void LocalKPisdisjanalyse(const TopAbs_State Stsol1, const TopAbs_State
     break;
   }
   default: {
-    std::cout << "Warning: given operation is unknown"   << std::endl;
+    std::cout << "Warning: given operation is unknown"   << '\n';
     break;
   }
   } //end switch
@@ -2051,7 +2051,7 @@ static Standard_Boolean disjPerformFuse(const TopTools_IndexedMapOfShape& theMap
       Standard_Integer ires=RESUNDEF, icla1=SHEUNDEF, icla2=SHEUNDEF;
       LocalKPisdisjanalyse(stsol1, stsol2, TopOpeBRepBuild_KPart_Operation_Fuse, ires, icla1, icla2);
       if (ires == RESUNDEF || icla1 == SHEUNDEF || icla2 == SHEUNDEF || ires == RESNULL) {
-       std::cout << "Warning: disjPerformFuse: can not determine solid's states"  << std::endl;
+       std::cout << "Warning: disjPerformFuse: can not determine solid's states"  << '\n';
        continue;
       }
       if(ires == RESSHAPE12)
@@ -2067,7 +2067,7 @@ static Standard_Boolean disjPerformFuse(const TopTools_IndexedMapOfShape& theMap
       }
     } //end while(j)
     if(acheckiterator > aMaxNumberOfIterations) {
-      std::cout << "disjPerformFuse: programming error"  << std::endl;
+      std::cout << "disjPerformFuse: programming error"  << '\n';
       return Standard_False;
     }
     theMapOfResult.Add(acurrentsolid);
@@ -2115,7 +2115,7 @@ static Standard_Boolean disjPerformCommon(const TopTools_IndexedMapOfShape& theM
 
       LocalKPisdisjanalyse(stsol1, stsol2, TopOpeBRepBuild_KPart_Operation_Common, ires, icla1, icla2);
       if (ires == RESUNDEF || icla1 == SHEUNDEF || icla2 == SHEUNDEF) {
-       std::cout << "Warning: disjPerformCommon: can not determine solid's states"  << std::endl;
+       std::cout << "Warning: disjPerformCommon: can not determine solid's states"  << '\n';
        continue;
       }      
       switch (ires) {
@@ -2192,7 +2192,7 @@ static Standard_Boolean disjPerformCut(const TopTools_IndexedMapOfShape& theMapO
 
       LocalKPisdisjanalyse(stsol1, stsol2, TopOpeBRepBuild_KPart_Operation_Cut12, ires, icla1, icla2);
       if (ires == RESUNDEF || icla1 == SHEUNDEF || icla2 == SHEUNDEF) {
-       std::cout << "Warning: disjPerformCut: can not determine solid's states"  << std::endl;
+       std::cout << "Warning: disjPerformCut: can not determine solid's states"  << '\n';
        continue;
       }
       switch (ires) {
index 1f48dcfef7244c309b83fc02aaaa15bd0ffb02f6..4d84ba6279e29099ff4f631b73ce19d05d9b831a 100644 (file)
@@ -416,8 +416,8 @@ Standard_Boolean CheckEdgeParameter(const Handle(TopOpeBRepDS_HDataStructure)& m
 //=======================================================================
 Standard_OStream& TopOpeBRepDS_Check::PrintIntg(Standard_OStream& OS)
 {
-  OS<<std::endl<<std::endl<<"************************************************"<<std::endl;
-  OS<<"state of the DS : (only the tested elements)"<<std::endl<<std::endl;
+  OS<<'\n'<<'\n'<<"************************************************"<<'\n';
+  OS<<"state of the DS : (only the tested elements)"<<'\n'<<'\n';
   
   //Display of the geometry
   PrintMap(myMapSurfaceStatus, "Surface", OS);
@@ -449,7 +449,7 @@ Standard_OStream& TopOpeBRepDS_Check::PrintIntg(Standard_OStream& OS)
   PrintMap(MapFace, "Face",   OS);
   PrintMap(MapSolid, "Solid",  OS);
   
-  OS<<std::endl<<std::endl;
+  OS<<'\n'<<'\n';
   return OS;
 }
 
@@ -469,9 +469,9 @@ Standard_OStream& TopOpeBRepDS_Check::PrintMap(TopOpeBRepDS_DataMapOfCheckStatus
     OS<<" "<<eltstr<<"\t(/"<<MapStat.Extent()<<")\tnumber ";
     
     PrintElts(MapStat, TopOpeBRepDS_OK,  b, OS);
-    if(!b) OS<<" = OK"<<std::endl;
+    if(!b) OS<<" = OK"<<'\n';
     PrintElts(MapStat, TopOpeBRepDS_NOK, b, OS);
-    if(!b) OS<<" = NOK"<<std::endl;
+    if(!b) OS<<" = NOK"<<'\n';
   }    
   return OS;
 }
@@ -553,7 +553,7 @@ Standard_OStream& TopOpeBRepDS_Check::PrintShape
     return OS;
   }
   if(!myMapShapeStatus.IsBound(index)) {
-    OS<<"NO CHECK HAS PROCESSING"<<std::endl;
+    OS<<"NO CHECK HAS PROCESSING"<<'\n';
     return OS;
   }
   OS<<" ";
index 26f6ed3a31099a2379af740215b5e46bc998261e..5fbba2e872be0e497d6d10ae2978f28363570116 100644 (file)
@@ -300,7 +300,7 @@ Standard_EXPORT void FDSCNX_Dump(const Handle(TopOpeBRepDS_HDataStructure)& HDS,
     {
       std::cout<<"tsee f "<<BDS.Shape(ils.Value())<<";";
     }
-    std::cout<<"tsee e "<<is<<";### edge "<<is<<" connexity"<<std::endl;
+    std::cout<<"tsee e "<<is<<";### edge "<<is<<" connexity"<<'\n';
   }
   else if (ts == TopAbs_FACE)
   {
@@ -324,7 +324,7 @@ Standard_EXPORT void FDSCNX_Dump(const Handle(TopOpeBRepDS_HDataStructure)& HDS,
       {
         std::cout<<"tsee f "<<BDS.Shape(ilf.Value())<<";";
       }
-      std::cout<<"tsee e "<<ie<<";### face "<<is<<" connexity"<<std::endl;
+      std::cout<<"tsee e "<<ie<<";### face "<<is<<" connexity"<<'\n';
     }
   }
 }
index b66dab54088f05521cba9d8108fd52d8b6e355bb..e36765d41e9bff99103c4b8859fb9a5428317b58 100644 (file)
@@ -57,5 +57,5 @@ Standard_EXPORT void FUN_tool_trace(const Standard_Integer Index)
 }
 Standard_EXPORT void FUN_tool_trace(const gp_Pnt2d p2d)
 {
-  std::cout<<" = ("<<p2d.X()<<" "<<p2d.Y()<<")"<<std::endl;
+  std::cout<<" = ("<<p2d.X()<<" "<<p2d.Y()<<")"<<'\n';
 }
index ff70e5db945835b9cd100d5124c489013eeccd96..4838632a613233a7a93adbcd4041ca776ab5acdf 100644 (file)
@@ -250,7 +250,7 @@ void  TopTools_LocationSet::Read(Standard_IStream& IS, const Message_ProgressRan
 
   IS >> buffer;
   if (strcmp(buffer,"Locations")) {
-    std::cout << "Not a location table "<<std::endl;
+    std::cout << "Not a location table "<<'\n';
     return;
   }
 
index d37542d54ce88f29876326d84b19e5fdebc2db1f..b998e72bf517fe10d7331a57b73e24495d94800c 100644 (file)
@@ -631,7 +631,7 @@ void  TopTools_ShapeSet::Read(Standard_IStream& IS, const Message_ProgressRange&
     
   } while (!IS.fail());
   if (IS.fail()) {
-    std::cout << "File was not written with this version of the topology"<<std::endl;
+    std::cout << "File was not written with this version of the topology"<<'\n';
     IS.imbue (anOldLocale);
     return;
   }
@@ -645,7 +645,7 @@ void  TopTools_ShapeSet::Read(Standard_IStream& IS, const Message_ProgressRange&
   myLocations.Read(IS, aPS.Next(10));
 
   if (aPS.UserBreak()) {
-    std::cout << "Interrupted by the user"<<std::endl;
+    std::cout << "Interrupted by the user"<<'\n';
     // on remet le LC_NUMERIC a la precedente valeur
     IS.imbue (anOldLocale);
     return;
@@ -657,7 +657,7 @@ void  TopTools_ShapeSet::Read(Standard_IStream& IS, const Message_ProgressRange&
   ReadGeometry(IS, aPS.Next(75));
 
   if (aPS.UserBreak()) {
-    std::cout << "Interrupted by the user"<<std::endl;
+    std::cout << "Interrupted by the user"<<'\n';
     IS.imbue(anOldLocale);
     return;
   }
@@ -669,7 +669,7 @@ void  TopTools_ShapeSet::Read(Standard_IStream& IS, const Message_ProgressRange&
   char buffer[255];
   IS >> buffer;
   if (strcmp(buffer,"TShapes")) {
-    std::cout << "Not a TShape table"<<std::endl;
+    std::cout << "Not a TShape table"<<'\n';
     // on remet le LC_NUMERIC a la precedente valeur
     IS.imbue (anOldLocale);
     return;
@@ -723,7 +723,7 @@ void  TopTools_ShapeSet::Read(Standard_IStream& IS, const Message_ProgressRange&
   IS.imbue (anOldLocale);
 
   if (aPS.UserBreak())
-    std::cout << "Interrupted by the user" << std::endl;
+    std::cout << "Interrupted by the user" << '\n';
 }
 
 //=======================================================================
index f8b74f08f10a8db6046a54ae6d23fa336d7325f3..6dd0475988721787dc1cfe291896fdaebd402420 100644 (file)
@@ -61,11 +61,11 @@ void  Transfer_FinderProcess::PrintStats (const Standard_Integer mode, Standard_
 {
   S<<"\n*******************************************************************\n";
   if (mode == 1) {    //  Statistiques de base
-    S<< "********                 Basic Statistics                  ********"<<std::endl;
+    S<< "********                 Basic Statistics                  ********"<<'\n';
 
     Standard_Integer nbr = 0, nbe = 0, nbw = 0;
     Standard_Integer i, max = NbMapped(), nbroots = NbRoots();
-    S<< "****        Nb Final Results    : "<< nbroots <<std::endl;
+    S<< "****        Nb Final Results    : "<< nbroots <<'\n';
 
     for (i = 1; i <= max; i ++) {
       const Handle(Transfer_Binder)& binder = MapItem(i);
@@ -87,5 +87,5 @@ void  Transfer_FinderProcess::PrintStats (const Standard_Integer mode, Standard_
       S<<"****                Warnings on : "<<Interface_MSG::Blanks(nbw,4)<<nbw<<" Entities\n";
     S<<"*******************************************************************";
   }
-  S<<std::endl;
+  S<<'\n';
 }
index 0cc4e32e88085da95046f27a405db1a6678366e0..f39c68001939b75cf62f39b995368b1d00aae031 100644 (file)
@@ -397,7 +397,7 @@ void  Transfer_ProcessForFinder::SendMsg(const Handle(Transfer_Finder)& start,
     aSender << amsg.Value();
     if (amsg.IsEdited() && thetrace > 2)
       aSender << " [from: " << amsg.Original() << "]";
-    aSender << std::endl;
+    aSender << '\n';
   }
 }
 
@@ -422,7 +422,7 @@ void Transfer_ProcessForFinder::AddFail(const Handle(Transfer_Finder)& start,
     Message_Messenger::StreamBuffer aSender = themessenger->SendFail();
     aSender << "    --> Fail : " << mess;
     if (orig[0] != '\0' && thetrace > 2) aSender << " [from: " << orig << "]";
-    aSender << std::endl;
+    aSender << '\n';
   }
 }
 
@@ -470,7 +470,7 @@ void Transfer_ProcessForFinder::AddWarning(const Handle(Transfer_Finder)& start,
     Message_Messenger::StreamBuffer aSender = themessenger->SendWarning();
     aSender << "    --> Warning : " << mess;
     if (orig[0] != '\0' && thetrace > 2) aSender << " [from: " << orig << "]";
-    aSender << std::endl;
+    aSender << '\n';
   }
 }
 
@@ -775,7 +775,7 @@ Handle(Transfer_Binder) Transfer_ProcessForFinder::Transferring(const Handle(Tra
       case Transfer_StatusInitial:
         break;
       case Transfer_StatusDone:
-        aSender << " .. and Transfer done" << std::endl;
+        aSender << " .. and Transfer done" << '\n';
         return former;
       case Transfer_StatusRun:
         former->SetStatusExec(Transfer_StatusLoop);
@@ -783,7 +783,7 @@ Handle(Transfer_Binder) Transfer_ProcessForFinder::Transferring(const Handle(Tra
       case Transfer_StatusError:
         if (thetrace)
         {
-          aSender << "                  *** Transfer in Error Status  :" << std::endl;
+          aSender << "                  *** Transfer in Error Status  :" << '\n';
           StartTrace(former, start, thelevel, 0);
         }
         else StartTrace(former, start, thelevel, 4);
@@ -791,7 +791,7 @@ Handle(Transfer_Binder) Transfer_ProcessForFinder::Transferring(const Handle(Tra
       case Transfer_StatusLoop:
         if (thetrace)
         {
-          aSender << "                  *** Transfer  Head of Dead Loop  :" << std::endl;
+          aSender << "                  *** Transfer  Head of Dead Loop  :" << '\n';
           StartTrace(former, start, thelevel, 0);
         }
         else StartTrace(former, start, thelevel, 4);
@@ -822,7 +822,7 @@ Handle(Transfer_Binder) Transfer_ProcessForFinder::Transferring(const Handle(Tra
     {
       if (binder.IsNull())
       {
-        aSender << "                  *** Dead Loop with no Result" << std::endl;
+        aSender << "                  *** Dead Loop with no Result" << '\n';
         if (thetrace) StartTrace(binder, start, thelevel - 1, 0);
         binder = new Transfer_VoidBinder;
         Bind(start, binder);  newbind = Standard_True;
@@ -831,7 +831,7 @@ Handle(Transfer_Binder) Transfer_ProcessForFinder::Transferring(const Handle(Tra
       {
         if (thetrace)
         {
-          aSender << "                  *** Dead Loop : Finding head of Loop :" << std::endl;
+          aSender << "                  *** Dead Loop : Finding head of Loop :" << '\n';
           StartTrace(binder, start, thelevel - 1, 0);
         }
         else StartTrace(binder, start, thelevel - 1, 4);
@@ -842,7 +842,7 @@ Handle(Transfer_Binder) Transfer_ProcessForFinder::Transferring(const Handle(Tra
       {
         if (thetrace)
         {
-          aSender << "                  *** Dead Loop : Actor in Loop :" << std::endl;
+          aSender << "                  *** Dead Loop : Actor in Loop :" << '\n';
           StartTrace(binder, start, thelevel - 1, 0);
         }
       }
@@ -853,14 +853,14 @@ Handle(Transfer_Binder) Transfer_ProcessForFinder::Transferring(const Handle(Tra
     {
       if (binder.IsNull())
       {
-        aSender << "                  *** Exception Raised with no Result" << std::endl;
+        aSender << "                  *** Exception Raised with no Result" << '\n';
         binder = new Transfer_VoidBinder;
         Bind(start, binder);  newbind = Standard_True;
       }
       binder->AddFail("Transfer stopped by exception raising");
       if (thetrace)
       {
-        aSender << "    *** Raised : " << anException.GetMessageString() << std::endl;
+        aSender << "    *** Raised : " << anException.GetMessageString() << '\n';
         StartTrace(binder, start, thelevel - 1, 4);
       }
       thelevel = oldlev;
@@ -1023,7 +1023,7 @@ void Transfer_ProcessForFinder::StartTrace(const Handle(Transfer_Binder)& binder
       aSender << "\n  ---  No Result recorded";
     }
   }
-  aSender << std::endl;
+  aSender << '\n';
 }
 
 //=======================================================================
index 4611b276424a87a71227a32cce267d424cd92a97..450e5682342bf6c773679b9f9723a2cfd2eb5c0c 100644 (file)
@@ -403,7 +403,7 @@ void  Transfer_ProcessForTransient::SendMsg(const Handle(Standard_Transient)& st
     aSender << amsg.Value();
     if (amsg.IsEdited() && thetrace > 2)
       aSender << " [from: " << amsg.Original() << "]";
-    aSender << std::endl;
+    aSender << '\n';
   }
 }
 
@@ -428,7 +428,7 @@ void Transfer_ProcessForTransient::AddFail(const Handle(Standard_Transient)& sta
     Message_Messenger::StreamBuffer aSender = themessenger->SendFail();
     aSender << "    --> Fail : " << mess;
     if (orig[0] != '\0' && thetrace > 2) aSender << " [from: " << orig << "]";
-    aSender << std::endl;
+    aSender << '\n';
   }
 }
 
@@ -476,7 +476,7 @@ void Transfer_ProcessForTransient::AddWarning(const Handle(Standard_Transient)&
     Message_Messenger::StreamBuffer aSender = themessenger->SendWarning();
     aSender << "    --> Warning : " << mess;
     if (orig[0] != '\0' && thetrace > 2) aSender << " [from: " << orig << "]";
-    aSender << std::endl;
+    aSender << '\n';
   }
 }
 
@@ -781,7 +781,7 @@ Handle(Transfer_Binder) Transfer_ProcessForTransient::Transferring(const Handle(
       case Transfer_StatusInitial:
         break;
       case Transfer_StatusDone:
-        aSender << " .. and Transfer done" << std::endl;
+        aSender << " .. and Transfer done" << '\n';
         return former;
       case Transfer_StatusRun:
         former->SetStatusExec(Transfer_StatusLoop);
@@ -789,7 +789,7 @@ Handle(Transfer_Binder) Transfer_ProcessForTransient::Transferring(const Handle(
       case Transfer_StatusError:
         if (thetrace)
         {
-          aSender << "                  *** Transfer in Error Status  :" << std::endl;
+          aSender << "                  *** Transfer in Error Status  :" << '\n';
           StartTrace(former, start, thelevel, 0);
         }
         else StartTrace(former, start, thelevel, 4);
@@ -797,7 +797,7 @@ Handle(Transfer_Binder) Transfer_ProcessForTransient::Transferring(const Handle(
       case Transfer_StatusLoop:
         if (thetrace)
         {
-          aSender << "                  *** Transfer  Head of Dead Loop  :" << std::endl;
+          aSender << "                  *** Transfer  Head of Dead Loop  :" << '\n';
           StartTrace(former, start, thelevel, 0);
         }
         else StartTrace(former, start, thelevel, 4);
@@ -825,7 +825,7 @@ Handle(Transfer_Binder) Transfer_ProcessForTransient::Transferring(const Handle(
     {
       if (binder.IsNull())
       {
-        aSender << "                  *** Dead Loop with no Result" << std::endl;
+        aSender << "                  *** Dead Loop with no Result" << '\n';
         if (thetrace) StartTrace(binder, start, thelevel - 1, 0);
         binder = new Transfer_VoidBinder;
         Bind(start, binder);  newbind = Standard_True;
@@ -834,7 +834,7 @@ Handle(Transfer_Binder) Transfer_ProcessForTransient::Transferring(const Handle(
       {
         if (thetrace)
         {
-          aSender << "                  *** Dead Loop : Finding head of Loop :" << std::endl;
+          aSender << "                  *** Dead Loop : Finding head of Loop :" << '\n';
           StartTrace(binder, start, thelevel - 1, 0);
         }
         else StartTrace(binder, start, thelevel - 1, 4);
@@ -845,7 +845,7 @@ Handle(Transfer_Binder) Transfer_ProcessForTransient::Transferring(const Handle(
       {
         if (thetrace)
         {
-          aSender << "                  *** Dead Loop : Actor in Loop :" << std::endl;
+          aSender << "                  *** Dead Loop : Actor in Loop :" << '\n';
           StartTrace(binder, start, thelevel - 1, 0);
         }
       }
@@ -856,14 +856,14 @@ Handle(Transfer_Binder) Transfer_ProcessForTransient::Transferring(const Handle(
     {
       if (binder.IsNull())
       {
-        aSender << "                  *** Exception Raised with no Result" << std::endl;
+        aSender << "                  *** Exception Raised with no Result" << '\n';
         binder = new Transfer_VoidBinder;
         Bind(start, binder);  newbind = Standard_True;
       }
       binder->AddFail("Transfer stopped by exception raising");
       if (thetrace)
       {
-        aSender << "    *** Raised : " << anException.GetMessageString() << std::endl;
+        aSender << "    *** Raised : " << anException.GetMessageString() << '\n';
         StartTrace(binder, start, thelevel - 1, 4);
       }
       thelevel = oldlev;
@@ -1020,7 +1020,7 @@ void Transfer_ProcessForTransient::StartTrace(const Handle(Transfer_Binder)& bin
       aSender << "\n  ---  No Result recorded";
     }
   }
-  aSender << std::endl;
+  aSender << '\n';
 }
 
 //=======================================================================
index 1950dd4d745ab2a3c532fcfc4dfdcbecf730c60a..6ce273bac7dee858b70dfec26fec1de72601d8cc 100644 (file)
@@ -235,16 +235,16 @@ void Transfer_TransientProcess::PrintStats(const Standard_Integer /*mode*/,
 {
   S<<"\n*******************************************************************\n";
 //  if (mode == 1) {    //  Statistiques de base
-    S<< "********                 Basic Statistics                  ********"<<std::endl;
+    S<< "********                 Basic Statistics                  ********"<<'\n';
 
     Handle(Interface_InterfaceModel) model = Model();
-    if (model.IsNull())      S<<"****        Model unknown"<<std::endl;
+    if (model.IsNull())      S<<"****        Model unknown"<<'\n';
     else
-      S<<"****        Nb Entities         : "<<model->NbEntities()<<std::endl;
+      S<<"****        Nb Entities         : "<<model->NbEntities()<<'\n';
 
     Standard_Integer nbr = 0, nbe = 0, nbw = 0;
     Standard_Integer i, max = NbMapped(), nbroots = NbRoots();
-    S<< "****        Nb Final Results    : "<<nbroots<<std::endl;
+    S<< "****        Nb Final Results    : "<<nbroots<<'\n';
 
     for (i = 1; i <= max; i ++) {
       const Handle(Transfer_Binder)& binder = MapItem(i);
@@ -266,7 +266,7 @@ void Transfer_TransientProcess::PrintStats(const Standard_Integer /*mode*/,
       S<<"****                Warnings on : "<<Interface_MSG::Blanks(nbw,4)<<nbw<<" Entities\n";
     S<<"*******************************************************************";
 //  }
-  S<<std::endl;
+  S<<'\n';
 }
 
 
index 81d56534a5020c46f3cb66ee01d0a72196d80f96..adff4c645b663870574f2fecb40bc8359be944c1 100644 (file)
@@ -153,7 +153,7 @@ TransferBRep_Reader::TransferBRep_Reader ()
     Message_Messenger::StreamBuffer sout = theProc->Messenger()->SendInfo();
     sout<<"--  Transfer(Read) : ";  
     theModel->Print (ent, sout);
-    sout<<std::endl;
+    sout<<'\n';
   }
   TP.Transfer(ent, theProgress);
   theProc->SetRoot(ent);
@@ -172,7 +172,7 @@ TransferBRep_Reader::TransferBRep_Reader ()
   Message_Messenger::StreamBuffer sout = theProc->Messenger()->SendInfo();
 
   if (theProc->TraceLevel() > 1) 
-    sout<<"--  Transfer(Read-List) : "<<nb<<" Items"<<std::endl;
+    sout<<"--  Transfer(Read-List) : "<<nb<<" Items"<<'\n';
   Message_ProgressScope aPS(theProgress, NULL, nb);
   for (i = 1; i <= nb && aPS.More(); i++) {
     Message_ProgressRange aRange = aPS.Next();
@@ -183,7 +183,7 @@ TransferBRep_Reader::TransferBRep_Reader ()
     {
       sout<<"--  Transfer(Read-List), Item "<<i<<" : ";
       theModel->Print (ent, sout);
-      sout<<std::endl;
+      sout<<'\n';
     }
     TP.Transfer (ent, aRange);
     theProc->SetRoot(ent);
index 11e9849165d101179a4a72abb8b115dad0b4a1ab..9edf5005b873097ed99a5a4822580704b32f7299 100644 (file)
@@ -183,25 +183,25 @@ void Units_Dimensions::Dump(const Standard_Integer ashift) const
 {
   int i;
   for(i=0; i<ashift; i++)std::cout<<"  ";
-  std::cout<<" with the physical dimensions : "<<std::endl;
+  std::cout<<" with the physical dimensions : "<<'\n';
   for(i=0; i<ashift; i++)std::cout<<"  ";
-  std::cout<<"         mass                      : "<<themass<<std::endl;
+  std::cout<<"         mass                      : "<<themass<<'\n';
   for(i=0; i<ashift; i++)std::cout<<"  ";
-  std::cout<<"         length                    : "<<thelength<<std::endl;
+  std::cout<<"         length                    : "<<thelength<<'\n';
   for(i=0; i<ashift; i++)std::cout<<"  ";
-  std::cout<<"         time                      : "<<thetime<<std::endl;
+  std::cout<<"         time                      : "<<thetime<<'\n';
   for(i=0; i<ashift; i++)std::cout<<"  ";
-  std::cout<<"         electric current          : "<<theelectriccurrent<<std::endl;
+  std::cout<<"         electric current          : "<<theelectriccurrent<<'\n';
   for(i=0; i<ashift; i++)std::cout<<"  ";
-  std::cout<<"         thermodynamic temperature : "<<thethermodynamictemperature<<std::endl;
+  std::cout<<"         thermodynamic temperature : "<<thethermodynamictemperature<<'\n';
   for(i=0; i<ashift; i++)std::cout<<"  ";
-  std::cout<<"         amount of substance       : "<<theamountofsubstance<<std::endl;
+  std::cout<<"         amount of substance       : "<<theamountofsubstance<<'\n';
   for(i=0; i<ashift; i++)std::cout<<"  ";
-  std::cout<<"         luminous intensity        : "<<theluminousintensity<<std::endl;
+  std::cout<<"         luminous intensity        : "<<theluminousintensity<<'\n';
   for(i=0; i<ashift; i++)std::cout<<"  ";
-  std::cout<<"         plane angle               : "<<theplaneangle<<std::endl;
+  std::cout<<"         plane angle               : "<<theplaneangle<<'\n';
   for(i=0; i<ashift; i++)std::cout<<"  ";
-  std::cout<<"         solid angle               : "<<thesolidangle<<std::endl;
+  std::cout<<"         solid angle               : "<<thesolidangle<<'\n';
 }
 
 //=======================================================================
index 3e52746ddcd25f603bef9056b2815c06d4b5682b..8fba2546923389671bfb25b97758b3e9d31fcbaf 100644 (file)
@@ -81,7 +81,7 @@ void Units_Measurement::Convert(const Standard_CString aunit)
   Handle(Units_Token) oldtoken = thetoken;
   Units_UnitSentence newunit(aunit);
   if(!newunit.IsDone()) {
-    std::cout<<"Units_Measurement: can not convert - incorrect unit => result is not correct"<<std::endl;
+    std::cout<<"Units_Measurement: can not convert - incorrect unit => result is not correct"<<'\n';
     return;
   }
   Handle(Units_Token) newtoken=newunit.Evaluate();
@@ -274,7 +274,7 @@ Standard_Boolean Units_Measurement::HasToken() const
 
 void Units_Measurement::Dump() const
 {
-  std::cout<<" Measurement : "<<themeasurement<<std::endl;
+  std::cout<<" Measurement : "<<themeasurement<<'\n';
   thetoken->Dump(1,1);
 }
 
index 8250f2ba2c19c65045a8cda4b6c6902eaf67407c..3cd4a7a3f354332ed1ab9250477a890b705ccc2e 100644 (file)
@@ -39,9 +39,9 @@ void Units_Quantity::Dump(const Standard_Integer ashift,
                          const Standard_Integer alevel) const
 {
   Standard_Integer index;
-  std::cout<<std::endl;
+  std::cout<<'\n';
   for(int i=0; i<ashift; i++)std::cout<<"  ";
-  std::cout<<Name()<<std::endl;
+  std::cout<<Name()<<'\n';
 //  thedimensions->Dump(ashift+1);
   if(alevel > 0)
     {
index 0a2e150c9e22141799e20ee251a000a811f10900..c7b392585b70c7bfdd385af51140197298e7d7a7 100644 (file)
@@ -88,5 +88,5 @@ void Units_ShiftedToken::Dump(const Standard_Integer ashift,
 {
   Units_Token::Dump(ashift,alevel);
   for(int i=0; i<ashift; i++)std::cout<<"  ";
-  std::cout<<"  move  : "<<themove<<std::endl;
+  std::cout<<"  move  : "<<themove<<'\n';
 }
index b6192e7805c7a52b2b8734fb902b4702c830fdfe..653a257f0fb006ad500822a2a92774b1661bb619 100644 (file)
@@ -111,6 +111,6 @@ void Units_ShiftedUnit::Dump(const Standard_Integer ,
       if(index != 1) std::cout << " or " ;
       std::cout<<"\""<<string.ToCString()<<"\"";
     }
-  std::cout<< "                Name:  " <<Name().ToCString()<<"                (= *" << thevalue << " SI + " << themove << ")"<<std::endl;
+  std::cout<< "                Name:  " <<Name().ToCString()<<"                (= *" << thevalue << " SI + " << themove << ")"<<'\n';
 }
 
index 2f3aa04cbe7b860e6987c16dda3003d50909b783..d41017b0311c6188e0f59bfd1aa59fa551551e76 100644 (file)
@@ -176,7 +176,7 @@ void Units_Token::Update(const Standard_CString amean)
 {
   TCollection_AsciiString string = Mean();
   if(string.Search(amean) != -1)
-    std::cout<<Word()<<" encountered twice with the same signification : "<<amean<<std::endl;
+    std::cout<<Word()<<" encountered twice with the same signification : "<<amean<<'\n';
   string = string + amean;
   themean = string;
 }
@@ -363,13 +363,13 @@ void Units_Token::Dump(const Standard_Integer ashift,
   TCollection_AsciiString mean = Mean();
 
   for(i=0; i<ashift; i++)std::cout<<"  ";
-  std::cout << "Units_Token::Dump of " << this << std::endl;
+  std::cout << "Units_Token::Dump of " << this << '\n';
   for(i=0; i<ashift; i++)std::cout<<"  ";
-  std::cout<<word.ToCString()<<std::endl;
+  std::cout<<word.ToCString()<<'\n';
   for(i=0; i<ashift; i++)std::cout<<"  ";
-  std::cout<<"  value : "<<thevalue<<std::endl;
+  std::cout<<"  value : "<<thevalue<<'\n';
   for(i=0; i<ashift; i++)std::cout<<"  ";
-  std::cout<<"  mean  : "<<mean.ToCString()<<std::endl;
+  std::cout<<"  mean  : "<<mean.ToCString()<<'\n';
   if(alevel)thedimensions->Dump(ashift);
 }
 
index b36352edfd23bea69934ebf8c3cea36d7befb049..c1fb85967e2d1d36a5bd691d1518472b16f7491e 100644 (file)
@@ -127,7 +127,7 @@ void Units_Unit::Dump(const Standard_Integer /*ashift*/,
       if(index != 1) std::cout << " or " ;
       std::cout<<"\""<<string.ToCString()<<"\"";
     }
-  std::cout<< "                Name:  " <<Name().ToCString()<<"                (= " << thevalue << " SI)" <<std::endl;
+  std::cout<< "                Name:  " <<Name().ToCString()<<"                (= " << thevalue << " SI)" <<'\n';
 }
 
 //=======================================================================
index 05268f9a1e18ba0e20e9e3b3689405df464e07c6..e5d704592080f9051ec3a114de2699b5d7c2fdf8 100644 (file)
@@ -349,6 +349,6 @@ TCollection_AsciiString Units_UnitsDictionary::ActiveUnit(const Standard_CString
     }
   }
 
-  std::cout<<" La grandeur physique "<<aquantity<<" n'existe pas."<<std::endl;
+  std::cout<<" La grandeur physique "<<aquantity<<" n'existe pas."<<'\n';
   return "";
 }
index 48bd1541d3b317a78287a63df8f18bd38fbba4a0..ea3824576ba3dfc11fb5532d75de300737bf1b0d 100644 (file)
@@ -100,7 +100,7 @@ void Units_UnitsSystem::Specify(const Standard_CString aquantity,const Standard_
 
   Units_UnitSentence unitsentence(aunit);
   if(!unitsentence.IsDone()) {
-    std::cout<<"Units_UnitsSystem::Specify : incorrect unit"<<std::endl;
+    std::cout<<"Units_UnitsSystem::Specify : incorrect unit"<<'\n';
     return;
   }
   Handle(Units_Token) token = unitsentence.Evaluate();
@@ -130,7 +130,7 @@ void Units_UnitsSystem::Specify(const Standard_CString aquantity,const Standard_
   
 //  Units_NoSuchType_Raise_if(quantity.IsNull(),aquantity);
   if( quantity.IsNull() ) {
-    std::cout<<"Warning: in Units_UnitsSystem : Units_NoSuchType '" << aquantity << "'" << std::endl;
+    std::cout<<"Warning: in Units_UnitsSystem : Units_NoSuchType '" << aquantity << "'" << '\n';
     return;
   }
   
@@ -289,7 +289,7 @@ Standard_Real Units_UnitsSystem::ConvertValueToUserSystem
 {
   Units_UnitSentence unitsentence(aunit);
   if(!unitsentence.IsDone()) {
-    std::cout<<"Units_UnitsSystem::ConvertValueToUserSystem : incorrect unit => return 0"<<std::endl;
+    std::cout<<"Units_UnitsSystem::ConvertValueToUserSystem : incorrect unit => return 0"<<'\n';
     return 0.;
   }
   return ConvertSIValueToUserSystem(aquantity,avalue*(unitsentence.Evaluate())->Value());
@@ -403,11 +403,11 @@ void Units_UnitsSystem::Dump() const
   Handle(Standard_Transient) transient = This();
   Handle(Units_UnitsSystem) unitssystem = Handle(Units_UnitsSystem)::DownCast (transient);
   Units_Explorer explorer(unitssystem);
-  std::cout<<" UNITSSYSTEM : "<<std::endl;
+  std::cout<<" UNITSSYSTEM : "<<'\n';
   for(; explorer.MoreQuantity(); explorer.NextQuantity()) {
-    std::cout<<explorer.Quantity()<<std::endl;
+    std::cout<<explorer.Quantity()<<'\n';
     for(; explorer.MoreUnit(); explorer.NextUnit())
-      std::cout<<"  "<<explorer.Unit()<<std::endl;
+      std::cout<<"  "<<explorer.Unit()<<'\n';
   }
 }
 
index a8619da14425ac1261b791b84a74b884e34e6633..09d13413378f46b28b819a236c8dad5af913414a 100644 (file)
@@ -116,7 +116,7 @@ ViewerTest_CommandOptionKey ViewerTest_CmdParser::AddOption (const std::string&
 //===============================================================================================
 void ViewerTest_CmdParser::PrintHelp() const
 {
-  std::cout << myDescription << std::endl;
+  std::cout << myDescription << '\n';
   std::vector<CommandOption>::const_iterator anIt = myOptionStorage.begin();
   for (++anIt; anIt != myOptionStorage.end(); ++anIt)
   {
@@ -135,7 +135,7 @@ void ViewerTest_CmdParser::PrintHelp() const
     }
     std::cout << " : " << aCommandOption.Description;
   }
-  std::cout << std::endl;
+  std::cout << '\n';
 }
 
 //===============================================================================================
index a28963a606b1f16a3acfb5a35ac68f325891ebc5..6b88aa437f4ec7e0e86e145e6661d138f2ebee43 100644 (file)
@@ -4675,7 +4675,7 @@ static Standard_Integer VListConnected (Draw_Interpretor& /*di*/,
     {
       std::cout << " connected to " << aMap.Find1 (aConnected->ConnectedTo());
     }
-    std::cout << std::endl;
+    std::cout << '\n';
     
     ++aCounter;
   }
@@ -5481,23 +5481,23 @@ static Standard_Integer VPolygonOffset(Draw_Interpretor& /*di*/,
     if (anInterObj->HasPolygonOffsets())
     {
       anInterObj->PolygonOffsets(aMode, aFactor, aUnits);
-      std::cout << "Current polygon offset parameters for " << argv[1] << ":" << std::endl;
-      std::cout << "\tMode: "   << aMode   << std::endl;
-      std::cout << "\tFactor: " << aFactor << std::endl;
-      std::cout << "\tUnits: "  << aUnits  << std::endl;
+      std::cout << "Current polygon offset parameters for " << argv[1] << ":" << '\n';
+      std::cout << "\tMode: "   << aMode   << '\n';
+      std::cout << "\tFactor: " << aFactor << '\n';
+      std::cout << "\tUnits: "  << aUnits  << '\n';
       return 0;
     }
     else
     {
-      std::cout << "Specific polygon offset parameters are not set for " << argv[1] << std::endl;
+      std::cout << "Specific polygon offset parameters are not set for " << argv[1] << '\n';
     }
   }
 
-  std::cout << "Default polygon offset parameters:" << std::endl;
+  std::cout << "Default polygon offset parameters:" << '\n';
   aContext->DefaultDrawer()->ShadingAspect()->Aspect()->PolygonOffsets(aMode, aFactor, aUnits);
-  std::cout << "\tMode: "   << aMode   << std::endl;
-  std::cout << "\tFactor: " << aFactor << std::endl;
-  std::cout << "\tUnits: "  << aUnits  << std::endl;
+  std::cout << "\tMode: "   << aMode   << '\n';
+  std::cout << "\tFactor: " << aFactor << '\n';
+  std::cout << "\tUnits: "  << aUnits  << '\n';
 
   return 0;
 }
index d700adce803dae7ba38b9e8d77a0db929e36e944..7a68808c2212e75d21a8a8899fc6d8faa5eb0e38 100644 (file)
@@ -5868,7 +5868,7 @@ static int VReadPixel (Draw_Interpretor& theDI,
   Standard_CString aWarnLog = theDI.Result();
   if (aWarnLog != NULL && aWarnLog[0] != '\0')
   {
-    std::cout << aWarnLog << std::endl;
+    std::cout << aWarnLog << '\n';
   }
   theDI.Reset();
 
@@ -13829,7 +13829,7 @@ static int VColorDiff (Draw_Interpretor& theDI, Standard_Integer  theNbArgs, con
 {
   if (theNbArgs != 7)
   {
-    std::cerr << "Error: command syntax is incorrect, see help" << std::endl;
+    std::cerr << "Error: command syntax is incorrect, see help" << '\n';
     return 1;
   }
 
index bfba8b13be91155db842600a299921622e44bc5f..c9e1a8333fec0405ae87e7c28ebe230f248ec98c 100644 (file)
@@ -162,7 +162,7 @@ void VrmlConverter_WFDeflectionRestrictedFace::Add
          }
        }
        else {
-         std::cout << "Cannot evaluate curve on surface"<<std::endl;
+         std::cout << "Cannot evaluate curve on surface"<<'\n';
        }
       }
       else {
index efa73c447d0abdf0602c972f52bd432dcb46fc08..3d1fdef2347b06d40265b7bba53e38997fb016cb 100644 (file)
@@ -449,7 +449,7 @@ Standard_OStream& XCAFDoc_GraphNode::Dump (Standard_OStream& anOS) const
     for (; i <= NbFathers(); i++) {
       if ( !myFathers(i)->Label().IsNull() ) 
        myFathers(i)->Label().EntryDump(anOS);
-      anOS<<std::endl;
+      anOS<<'\n';
     }
   }
   i = 1;
@@ -458,7 +458,7 @@ Standard_OStream& XCAFDoc_GraphNode::Dump (Standard_OStream& anOS) const
     for (; i <= NbChildren(); i++) {
       if ( !myChildren(i)->Label().IsNull() )
        myChildren(i)->Label().EntryDump(anOS);
-      anOS<<std::endl;
+      anOS<<'\n';
     }
   }
 //  anOS<<std::endl;
index 536dbff14cab20038089277d796828d66fb33663..d62db526ed00e48a1a252da0988d22d4d2dd9492 100644 (file)
@@ -138,7 +138,7 @@ Standard_OStream& XCAFDoc_LengthUnit::Dump(Standard_OStream& theOS) const
   anOS << " UnitScaleValue=|" << myUnitScaleValue << "|";
   Standard_Character aSGUID[Standard_GUID_SIZE_ALLOC];
   ID().ToCString(aSGUID);
-  anOS << aSGUID << "|" << std::endl;
+  anOS << aSGUID << "|" << '\n';
   return anOS;
 }
 
index 78f66ed244ac278cb2caecaf0526f9ea6770f63c..fba1adbcbdad1f481873600a8dfc908157e651d5 100644 (file)
@@ -1339,7 +1339,7 @@ static void DumpAssembly(Standard_OStream& theDumpLog,
       theDumpLog<<", "<< *(void**)&S.Location();
     theDumpLog<<") ";
   }
-  theDumpLog<<std::endl;
+  theDumpLog<<'\n';
   
   Handle(TDataStd_TreeNode) Node;
   TDF_ChildIterator NodeIterator(L);
@@ -1347,7 +1347,7 @@ static void DumpAssembly(Standard_OStream& theDumpLog,
     DumpAssembly(theDumpLog, NodeIterator.Value(), level+1, deep);
   }
   if(level == 0)
-    theDumpLog<<std::endl;
+    theDumpLog<<'\n';
 }
 
 //=======================================================================
@@ -1362,7 +1362,7 @@ Standard_OStream& XCAFDoc_ShapeTool::Dump(Standard_OStream& theDumpLog, const St
   TDF_LabelSequence SeqLabels;
   GetShapes( SeqLabels);
 
-  if (SeqLabels.Length()>0) theDumpLog<<std::endl;
+  if (SeqLabels.Length()>0) theDumpLog<<'\n';
   Standard_Integer i;
   for (i=1; i<=SeqLabels.Length(); i++) {
     DumpAssembly(theDumpLog, SeqLabels.Value(i), level, deep);
@@ -1370,10 +1370,10 @@ Standard_OStream& XCAFDoc_ShapeTool::Dump(Standard_OStream& theDumpLog, const St
 
   SeqLabels.Clear();
   GetFreeShapes(SeqLabels);
-  theDumpLog<<std::endl<<"Free Shapes: "<<SeqLabels.Length()<<std::endl;
+  theDumpLog<<'\n'<<"Free Shapes: "<<SeqLabels.Length()<<'\n';
   for (i = 1; i<=SeqLabels.Length(); i++) {
     DumpShape(theDumpLog, SeqLabels.Value(i), level, deep);
-    theDumpLog<<std::endl;
+    theDumpLog<<'\n';
   }
   return theDumpLog;
 }
index 49d6c2685b3db12c14ff33e8606efd7c57d48994..d8510fb81208aac5b4c991225d0ad08b6d32fd8b 100644 (file)
@@ -1395,11 +1395,11 @@ static Standard_Integer XDumpAssemblyTree(Draw_Interpretor& di,
         }
         aSS << anIt.Value();
       }
-      aSS << std::endl;
+      aSS << '\n';
     }
     else
     {
-      aSS << theItem.ToString() << std::endl;
+      aSS << theItem.ToString() << '\n';
     }
     return Standard_True;
   });
@@ -1513,7 +1513,7 @@ static Standard_Integer XDumpAssemblyGraph(Draw_Interpretor& di,
           aSS << " " << anIt1.Key();
         }
       }
-      aSS << std::endl;
+      aSS << '\n';
 
       return Standard_True;
     }
@@ -1596,7 +1596,7 @@ static Standard_Integer XDumpNomenclature(Draw_Interpretor& di,
       }
 
       aSS << theNode << " " << graphNodeTypename(aNodeType) << " " << aNodeEntry << " "
-          << theGraph->NbOccurrences(theNode) << std::endl;
+          << theGraph->NbOccurrences(theNode) << '\n';
 
       return Standard_True;
     }
@@ -1679,7 +1679,7 @@ static Standard_Integer testDoc (Draw_Interpretor&,
 {
   if( argc < 2 )
   {
-    std::cout<<"Invalid numbers of arguments should be: XTestDoc shape"<<std::endl;
+    std::cout<<"Invalid numbers of arguments should be: XTestDoc shape"<<'\n';
     return 1;
   }
   TopoDS_Shape shape = DBRep::Get(argv[1]);
index 70f3aac0099ecc887b60a47ab24f4c9f742f8965..92b948f9609488e00aaf03ae6ec7f4d5e1a230d4 100644 (file)
@@ -1187,7 +1187,7 @@ static Standard_Integer addClippingPlane(Draw_Interpretor& di, Standard_Integer
   gp_Pln aPlane;
   Handle(Geom_Plane) aSurf = Handle(Geom_Plane)::DownCast(DrawTrSurf::GetSurface(argv[2]));
   if (aSurf.IsNull()) {
-    std::cout << argv[2] << " is not a plane" << std::endl;
+    std::cout << argv[2] << " is not a plane" << '\n';
     return 1;
   }
   aPlane = aSurf->Pln();
index f2e84fb20c8c9b3c22202297b02aff7821eb6f8d..4254d19c16b738c28eba5bc90868aa23c7d9a0f9 100644 (file)
@@ -62,13 +62,13 @@ static IFSelect_ReturnStatus XSControl_tpdraw
   const Standard_CString arg3 = pilot->Arg(3);
   const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (TP.IsNull()) { sout<<"No Transfer Read"<<std::endl; return IFSelect_RetError;}
+  if (TP.IsNull()) { sout<<"No Transfer Read"<<'\n'; return IFSelect_RetError;}
   //        ****    tpdraw        ****
   if (argc < 2) {
-    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<<"Donner [mode facultatif : item ou root] , NUMERO , nom DRAW facultatif"<<'\n';
+    sout<<"  mode si present : item ou root, sinon n0 d entite modele"<<'\n';
     sout<<"  NUMERO entier : d entite, d item transfert ou de root transfert\n"
-      <<  "    ou * pour dire tous"<<std::endl;
+      <<  "    ou * pour dire tous"<<'\n';
     return IFSelect_RetError;
   }
   Standard_Integer mode = 0, num=0;
@@ -76,7 +76,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 *"<<std::endl; return IFSelect_RetError; }
+    if (argc < 2) { sout<<"Donner au moins un NUMERO ou *"<<'\n'; return IFSelect_RetError; }
     if (arg1[0] == '*') tout = Standard_True;
     else num = IFSelect_Functions::GiveEntityNumber(XSControl::Session(pilot),arg1);
   } else {
@@ -94,7 +94,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"<<std::endl;
+      sout<<"Pas de modele, preciser n0 d item de transfert"<<'\n';
       return IFSelect_RetError;
     }
   }
@@ -103,14 +103,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<<std::endl;
+    sout<<", listage de 1 a "<<max<<'\n';
   }
   else if (num <= 0 || num > max) {
-    sout<<" - Num="<<num<<" hors limite (de 1 a "<<max<<")"<<std::endl;
+    sout<<" - Num="<<num<<" hors limite (de 1 a "<<max<<")"<<'\n';
     return IFSelect_RetError;
   } else {
     n1 = n2 = num;  nbvar = -1;  // nbvar : 1ere shape simple = pas de n0
-    sout<<", n0 "<<num<<std::endl;
+    sout<<", n0 "<<num<<'\n';
   }
 
   for (i = n1; i <= n2; i ++) {
@@ -133,11 +133,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"<<std::endl;
+      if (!tout) sout<<"Entite n0 "<<num<<" : non repertoriee"<<'\n';
       continue;
     }
     if (!binder->HasResult()) {
-      if (!tout) sout<<"Entite n0 "<<num<<" : pas de resultat"<<std::endl;
+      if (!tout) sout<<"Entite n0 "<<num<<" : pas de resultat"<<'\n';
       continue;
     }
     sh = TransferBRep::ShapeResult (binder);
@@ -145,7 +145,7 @@ static IFSelect_ReturnStatus XSControl_tpdraw
     if (!sh.IsNull()) {
       //sh = shb->Result();
       nbvar ++;
-      if (sh.IsNull()) { sout<<" (no Shape recorded)"<<std::endl; continue; }
+      if (sh.IsNull()) { sout<<" (no Shape recorded)"<<'\n'; continue; }
       if (tout) sout<<"[ "<<i<<" ]:";
       if (num == 0) sout<<" pas dans le modele";
       else sout<<" ent.n0 "<<num;
@@ -159,7 +159,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<<std::endl;
+      sout<<" -> 1 DRAW Shape: "<<nomvar<<'\n';
       XSControl::Vars(pilot)->SetShape(nomvar,sh);
       continue;
     }
@@ -173,26 +173,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)"<<std::endl; continue; }
+       if (sh.IsNull()) { sout<<" (no Shape recorded)"<<'\n'; 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<<std::endl;
+      sout<<'\n';
       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"<<std::endl;
+       sout<<"Entite n0 "<<num<<" : pas de resultat"<<'\n';
        continue;
       }
       DeclareAndCast(Geom_Geometry,geom,resu);
       sout<<"Entite n0 "<<num<<" : resultat "<<resu->DynamicType()->Name();
-      if (geom.IsNull()) { sout<<std::endl; continue; }
+      if (geom.IsNull()) { sout<<'\n'; continue; }
       nbvar ++;
       if (nbvar == 0) {
        if      (argc > 3 && mode  > 0) sprintf (nomvar,"%s",arg3);
@@ -205,15 +205,15 @@ static IFSelect_ReturnStatus XSControl_tpdraw
       }
       char* nomv = nomvar;
       XSControl::Vars(pilot)->Set (nomv,geom);
-      sout<<" -> DRAW Geom : "<<nomvar<<std::endl;
+      sout<<" -> DRAW Geom : "<<nomvar<<'\n';
       continue;
     }
 
     if (sh.IsNull() && trb.IsNull())
-      if (!tout) sout<<"Entite n0 "<<num<<" : resultat pas une Shape mais "<<binder->ResultTypeName()<<std::endl;
+      if (!tout) sout<<"Entite n0 "<<num<<" : resultat pas une Shape mais "<<binder->ResultTypeName()<<'\n';
   }
 
-  if (sh.IsNull()) sout<<" (No Shape)"<<std::endl;
+  if (sh.IsNull()) sout<<" (No Shape)"<<'\n';
   return IFSelect_RetDone;
 }
 
@@ -228,20 +228,20 @@ static IFSelect_ReturnStatus XSControl_tpcompound
   const Standard_CString arg1 = pilot->Arg(1);
   const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (TP.IsNull()) { sout<<"No Transfer Read"<<std::endl; return IFSelect_RetError;}
+  if (TP.IsNull()) { sout<<"No Transfer Read"<<'\n'; return IFSelect_RetError;}
   //        ****    tpcompound        ****
-  if (argc < 2) { sout<<"Give a NAME for the Compound  + optional givelist, else roots are taken"<<std::endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Give a NAME for the Compound  + optional givelist, else roots are taken"<<'\n'; 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)<<std::endl; return IFSelect_RetError; }
+    if (lise.IsNull()) { sout<<"Not a valid entity list : "<<pilot->CommandPart(2)<<'\n'; return IFSelect_RetError; }
     list = TransferBRep::Shapes (TP,lise);
     sout<<lise->Length()<<" Entities, ";
   }
-  if (list.IsNull()) { sout<<"No Shape listed"<<std::endl; return IFSelect_RetError; }
+  if (list.IsNull()) { sout<<"No Shape listed"<<'\n'; return IFSelect_RetError; }
   Standard_Integer nb = list->Length();
-  sout<<nb<<" Shape(s) listed"<<std::endl;
+  sout<<nb<<" Shape(s) listed"<<'\n';
   TopoDS_Compound C;
   BRep_Builder B;
   B.MakeCompound(C);
@@ -271,14 +271,14 @@ static IFSelect_ReturnStatus XSControl_traccess
   TCollection_AsciiString nomsh, noms;
   const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (TR.IsNull()) { sout<<" manque init"<<std::endl; return IFSelect_RetError; }
+  if (TR.IsNull()) { sout<<" manque init"<<'\n'; return IFSelect_RetError; }
   const Handle(Interface_InterfaceModel) &mdl = TR->Model();
-  if (mdl.IsNull()) { sout<<" modele absent"<<std::endl; return IFSelect_RetError; }
+  if (mdl.IsNull()) { sout<<" modele absent"<<'\n'; 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"<<std::endl;
+  if (cassave) sout<<" save shapes -> current directory"<<'\n';
 
   if (num == 0 || cascomp) {
     TopoDS_Compound C;        // pour cas compound
@@ -286,11 +286,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()<<std::endl;
+    sout<<" TOUS RESULTATS par ShapeResultList, soit "<<list->Length()<<'\n';
     for (Standard_Integer i = 1, nb = list->Length(); i <= nb; ++i)
     {
       noms = nomsh + "_" + i;
-      if      ( (i%1000) == 0) sout<<"("<<i<<")"<<std::endl;
+      if      ( (i%1000) == 0) sout<<"("<<i<<")"<<'\n';
       else if ( (i%100)  == 0) sout<<"*";
       else if ( (i%10)   == 0) sout<<"0";
       else                     sout<<".";
@@ -299,18 +299,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<<std::endl;
+    sout<<'\n';
     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<<std::endl; return IFSelect_RetError; }
+    if (num < 1 || num > mdl->NbEntities()) { sout<<" incorrect:"<<arg1<<'\n'; return IFSelect_RetError; }
     TopoDS_Shape sh = TR->ShapeResult(mdl->Value(num));
-    if (sh.IsNull()) { sout<<" Pas de resultat pour "<<arg1<<std::endl; return IFSelect_RetError; }
+    if (sh.IsNull()) { sout<<" Pas de resultat pour "<<arg1<<'\n'; 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"<<std::endl;
+    else sout<<"Option non comprise"<<'\n';
   }
   return IFSelect_RetDone;
 }
@@ -348,13 +348,13 @@ static IFSelect_ReturnStatus XSControl_fromshape
   //        ****    fromshape (tread)         ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc < 2) {
-    sout<<"Give name of a DRAW Shape"<<std::endl;
+    sout<<"Give name of a DRAW Shape"<<'\n';
     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<<std::endl;
+    sout<<"Not a DRAW Shape:"<<arg1<<'\n';
     return IFSelect_RetError;
   }
   Standard_Boolean yena = Standard_False;
@@ -385,7 +385,7 @@ static IFSelect_ReturnStatus XSControl_fromshape
       if (TP.IsNull()) {
         if ( silent )
           sout << "Shape "<<arg1<<" : ";
-        sout<<"no map"<<std::endl;
+        sout<<"no map"<<'\n';
       }
       else {
        TopoDS_Shape S0 = Shape;
@@ -420,7 +420,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<<std::endl<<"Subshapes imported from entities:";
+        sout<<'\n'<<"Subshapes imported from entities:";
         TopoDS_Iterator Iter(Shape);
         for (; Iter.More(); Iter.Next()) {
           const TopoDS_Shape& subsh = Iter.Value();
@@ -439,9 +439,9 @@ 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() << std::endl;
+      if ( silent ) sout << " in file " << XSControl::Session(pilot)->LoadedFile() << '\n';
     }
-    if ( ! silent ) sout<<std::endl;
+    if ( ! silent ) sout<<'\n';
   }
 
   //   ET EN EXPORT ?
@@ -456,7 +456,7 @@ static IFSelect_ReturnStatus XSControl_fromshape
       sout<<"Shape "<<arg1<<": exported to entity ";
       XSControl::Session(pilot)->Model()->Print (ent, sout);
       if ( silent ) sout << " in file " << XSControl::Session(pilot)->LoadedFile();
-      sout<<std::endl;
+      sout<<'\n';
     }
     // abv 31.08.00: treat case of split shape (several results)
     // it is supposed that results are of the same type and lie in one-level comp
@@ -475,7 +475,7 @@ static IFSelect_ReturnStatus XSControl_fromshape
          }
          if (nb > 0) {
            if ( silent ) sout << " in file " << XSControl::Session(pilot)->LoadedFile();
-           sout<<std::endl;
+           sout<<'\n';
          }
        }
 /*     else {
@@ -499,7 +499,7 @@ static IFSelect_ReturnStatus XSControl_fromshape
       }
     }
   }
-  if (!yena) sout<<"No transfer (either import or export) recorded"<<std::endl;
+  if (!yena) sout<<"No transfer (either import or export) recorded"<<'\n';
 
   return IFSelect_RetVoid;
 }
@@ -518,27 +518,27 @@ static IFSelect_ReturnStatus XSControl_trconnexentities
   Handle(Transfer_TransientProcess) TP;
   if (!TR.IsNull()) TP = TR->TransientProcess();
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (TP.IsNull()) { sout<<"no transfer map"<<std::endl; return IFSelect_RetVoid; }
+  if (TP.IsNull()) { sout<<"no transfer map"<<'\n'; return IFSelect_RetVoid; }
   if (argc < 2) { 
-    sout<<"Give name of a DRAW Shape + optional shape type v-e-w-f(D)-s"<<std::endl
+    sout<<"Give name of a DRAW Shape + optional shape type v-e-w-f(D)-s"<<'\n'
     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<<std::endl; return IFSelect_RetError; }
+  if (Shape.IsNull()) { sout<<"Not a DRAW Shape:"<<arg1<<'\n'; 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 :"<<std::endl;
+  sout<<nb<<" Entities produced Connected Shapes :"<<'\n';
   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<<")"<<std::endl;
+  sout<<")"<<'\n';
   return IFSelect_RetDone;
 }
   
@@ -556,7 +556,7 @@ static IFSelect_ReturnStatus XSControl_trimport
   Standard_Integer argc = pilot->NbWords();
   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"<<std::endl;
+    sout<<"Give : filename or . for current model;  varname or . to take fileroot\n  GiveList, * for all transferrable roots"<<'\n';
     return IFSelect_RetError;
   }
   const Standard_CString arg1 = pilot->Arg(1);
@@ -568,9 +568,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<<std::endl;
-  else        sout<<" Model taken from the session : "<<fnom<<std::endl;
-  sout<<" -- Names of variables BREP-DRAW prefixed by : "<<rnom<<std::endl;
+  if (modfic) sout<<" File to read : "<<fnom<<'\n';
+  else        sout<<" Model taken from the session : "<<fnom<<'\n';
+  sout<<" -- Names of variables BREP-DRAW prefixed by : "<<rnom<<'\n';
 
   //  keep the current command, because sub-commands will be called
   TCollection_AsciiString compart = pilot->CommandPart (3);
@@ -582,9 +582,9 @@ static IFSelect_ReturnStatus XSControl_trimport
     comload.AssignCat(arg1);
     IFSelect_ReturnStatus status = pilot->Execute(comload);
     if (status != IFSelect_RetDone)
-      { sout<<"Abandon import"<<std::endl; return status; }
+      { sout<<"Abandon import"<<'\n'; return status; }
   } else {
-    sout<<"Currently Loaded Model"<<std::endl;
+    sout<<"Currently Loaded Model"<<'\n';
   }
 
   //  Selecting Entities
@@ -597,21 +597,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"<<std::endl; return IFSelect_RetError; }
+  if (list.IsNull()) { sout<<"No list defined. Abandon"<<'\n'; return IFSelect_RetError; }
   Standard_Integer nbl = list->Length();
-  sout<<"Nb entities selected : "<<nbl<<std::endl;
+  sout<<"Nb entities selected : "<<nbl<<'\n';
 
   //  Starting Transfer
 
   WS->InitTransferReader (0);
   const Handle(XSControl_TransferReader) &TR = WS->TransferReader();
-  if (TR.IsNull()) { sout<<" init not done or failed"<<std::endl; return IFSelect_RetError; }
+  if (TR.IsNull()) { sout<<" init not done or failed"<<'\n'; return IFSelect_RetError; }
 
   TR->BeginTransfer();
 
   //  Transferring
   Standard_Integer nbt = TR->TransferList(list);
-  sout<<"Nb Entities Selected : "<<nbl<<" have given "<<nbt<<" results"<<std::endl;
+  sout<<"Nb Entities Selected : "<<nbl<<" have given "<<nbt<<" results"<<'\n';
 
   //  Filling VARS. one compound (trimpcomp) or one shape per ent (trimport)
   Standard_Boolean iscomp = (pilot->Arg(0)[5] == 'c');
@@ -621,7 +621,7 @@ static IFSelect_ReturnStatus XSControl_trimport
   BRep_Builder B;
   B.MakeCompound (C);
   Handle(Interface_InterfaceModel)  mdl = TR->Model();
-  if (mdl.IsNull()) { sout<<" modele absent"<<std::endl; return IFSelect_RetError; }
+  if (mdl.IsNull()) { sout<<" modele absent"<<'\n'; return IFSelect_RetError; }
   for (Standard_Integer il= 1; il <= nbl; il ++) {
     Handle(Standard_Transient) ent = list->Value(il);
     sh = TR->ShapeResult(ent);
@@ -634,15 +634,15 @@ static IFSelect_ReturnStatus XSControl_trimport
       XSControl::Vars(pilot)->SetShape(nomsh,sh);
     }
   }
-  if (nbs == 0) sout<<"No Shape produced"<<std::endl;
+  if (nbs == 0) sout<<"No Shape produced"<<'\n';
   else if (nbs == 1) {
-    sout<<"One Shape produced, named "<<rnom.ToCString()<<std::endl;
+    sout<<"One Shape produced, named "<<rnom.ToCString()<<'\n';
     XSControl::Vars(pilot)->SetShape(rnom.ToCString(),sh);
   } else if (iscomp) {
-    sout<<"One compound made of "<<nbs<<" Shapes, named "<<rnom.ToCString()<<std::endl;
+    sout<<"One compound made of "<<nbs<<" Shapes, named "<<rnom.ToCString()<<'\n';
     XSControl::Vars(pilot)->SetShape(rnom.ToCString(),C);
   } else {  // several individual shapes
-    sout<<nbs<<" Shapes, named "<<rnom.ToCString()<<"_1 to "<<rnom.ToCString()<<"_"<<nbs<<std::endl;
+    sout<<nbs<<" Shapes, named "<<rnom.ToCString()<<"_1 to "<<rnom.ToCString()<<"_"<<nbs<<'\n';
   }
 
   return IFSelect_RetDone;
@@ -660,17 +660,17 @@ static IFSelect_ReturnStatus XSControl_twrite
   //        ****    twrite         ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   Handle(XSControl_TransferWriter) TW = XSControl::Session(pilot)->TransferWriter();
-  if (argc < 2) { sout<<" donner nom de shape draw"<<std::endl; return IFSelect_RetError; }
-  sout<<"Attention, on alimente le modele courant ..."<<std::endl;
+  if (argc < 2) { sout<<" donner nom de shape draw"<<'\n'; return IFSelect_RetError; }
+  sout<<"Attention, on alimente le modele courant ..."<<'\n';
 
   // 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<<std::endl; continue; }
+    if (Shape.IsNull()) { sout<<"pas un nom de shape draw:"<<arg1<<'\n'; continue; }
     sout<<"Pour Shape : "<<ai;
     Standard_Integer stat = TW->TransferWriteShape (XSControl::Session(pilot)->Model(),Shape);
-    sout<<" Transfer Write Status = "<<stat<<std::endl;
+    sout<<" Transfer Write Status = "<<stat<<'\n';
   }
   pilot->Session()->ComputeGraph();
   // Transient ? (Geom) : ignore
@@ -752,7 +752,7 @@ Standard_Integer  XSControl_FuncShape::MoreShapes
   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"<<std::endl;return 0; }
+    if (TP.IsNull()) { sout<<"last transfer : unknown"<<'\n';return 0; }
     Handle(TopTools_HSequenceOfShape) li = TransferBRep::Shapes(TP,(name[1] == '\0'));
     if (li.IsNull()) return 0;
     list->Append (li);
@@ -785,12 +785,12 @@ Standard_Integer  XSControl_FuncShape::MoreShapes
       list->Append(Shape);
       nbsh ++;
     }
-    sout<<"  -> taken "<<nbsh<<" Shapes"<<std::endl;
+    sout<<"  -> taken "<<nbsh<<" Shapes"<<'\n';
     return nbsh;
   }
   const char* a1 = (const char *)name;
   TopoDS_Shape Shape = session->Vars()->GetShape(a1);
-  if (Shape.IsNull()) { sout<<"not a shape draw:"<<a1<<std::endl; return 0; }
+  if (Shape.IsNull()) { sout<<"not a shape draw:"<<a1<<'\n'; return 0; }
   list->Append(Shape);
   return 1;
 }
index 970529952c453ef77b1b534139d669d0bc6fa770..463bb2e49850385f546cd046231707644941cefe 100644 (file)
@@ -47,7 +47,7 @@ static IFSelect_ReturnStatus XSControl_xinit(const Handle(IFSelect_SessionPilot)
   if (argc > 1) return (XSControl::Session(pilot)->SelectNorm(arg1) ?
                        IFSelect_RetDone : IFSelect_RetFail);
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  sout<<"Selected Norm:"<<XSControl::Session(pilot)->SelectedNorm()<<std::endl;
+  sout<<"Selected Norm:"<<XSControl::Session(pilot)->SelectedNorm()<<'\n';
   return IFSelect_RetVoid;
 }
 
@@ -64,22 +64,22 @@ static IFSelect_ReturnStatus XSControl_xnorm(const Handle(IFSelect_SessionPilot)
   Handle(XSControl_Controller) control = WS->NormAdaptor();
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (argc == 1)
-    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;
+    sout<<"Current Norm. xnorm newnorm to change"<<'\n';
+  else sout<<"Current Norm :"<<'\n';
+  if (control.IsNull()) sout<<"no norm currently defined"<<'\n';
   else
-    sout<<"  Long  Name (complete) : "<<control->Name(Standard_False)<<std::endl
-      <<  "  Short name (resource) : "<<control->Name(Standard_True)<<std::endl;
+    sout<<"  Long  Name (complete) : "<<control->Name(Standard_False)<<'\n'
+      <<  "  Short name (resource) : "<<control->Name(Standard_True)<<'\n';
   if (argc == 1) return IFSelect_RetVoid;
 
   control = XSControl_Controller::Recorded(arg1);
   if (control.IsNull()) {
-    sout<<" No norm named : "<<arg1<<std::endl;
+    sout<<" No norm named : "<<arg1<<'\n';
     return IFSelect_RetError;
   }
 
   WS->SetController(control);
-  sout<<"new norm : "<<control->Name()<<std::endl;
+  sout<<"new norm : "<<control->Name()<<'\n';
   return IFSelect_RetDone;
 }
 
@@ -92,7 +92,7 @@ static IFSelect_ReturnStatus XSControl_newmodel(const Handle(IFSelect_SessionPil
   //        ****    newmodel        ****
   if (!XSControl::Session(pilot)->NewModel().IsNull()) return IFSelect_RetDone;
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  sout<<"No new Model produced"<<std::endl;
+  sout<<"No new Model produced"<<'\n';
   return IFSelect_RetDone;
 }
 
@@ -107,8 +107,8 @@ static IFSelect_ReturnStatus XSControl_tpclear(const Handle(IFSelect_SessionPilo
   const Handle(Transfer_FinderProcess)    &FP = XSControl::Session(pilot)->TransferWriter()->FinderProcess();
   const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
   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; }
+  if (modew) { if(!FP.IsNull()) FP->Clear(); else sout<<"No Transfer Write"<<'\n'; }
+  else       { if(!TP.IsNull()) TP->Clear(); else sout<<"No Transfer Read"<<'\n'; }
   return IFSelect_RetDone;
 }
 
@@ -123,7 +123,7 @@ static IFSelect_ReturnStatus XSControl_tpstat(const Handle(IFSelect_SessionPilot
   //const Standard_CString arg2 = pilot->Arg(2);
   const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (TP.IsNull()) { sout<<"No Transfer Read"<<std::endl; return IFSelect_RetError;}
+  if (TP.IsNull()) { sout<<"No Transfer Read"<<'\n'; return IFSelect_RetError;}
   //        ****    tpstat        ****
 
   Standard_Integer mod1 = -1;
@@ -162,7 +162,7 @@ static IFSelect_ReturnStatus XSControl_tpstat(const Handle(IFSelect_SessionPilot
     }
   }
   //  A present help eventuel
-  if (mod1 < -1) sout<<"Unknown Mode"<<std::endl;
+  if (mod1 < -1) sout<<"Unknown Mode"<<'\n';
   if (mod1 < 0) {
     sout<<"Modes available :\n"
       <<"g : general    c : checks (count)  C (list)\n"
@@ -175,7 +175,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"<<std::endl;
+      <<"  n select : n applied on a selection   idem for  s b t r l"<<'\n';
     if (mod1 < -1) return IFSelect_RetError;
     return IFSelect_RetVoid;
   }
@@ -188,7 +188,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"<<std::endl;
+  else sout<<"TransferRead : not defined"<<'\n';
   return IFSelect_RetVoid;
 }
 
@@ -203,16 +203,16 @@ static IFSelect_ReturnStatus XSControl_tpent(const Handle(IFSelect_SessionPilot)
   const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
   //        ****    tpent        ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (TP.IsNull()) { sout<<"No Transfer Read"<<std::endl; return IFSelect_RetError;}
+  if (TP.IsNull()) { sout<<"No Transfer Read"<<'\n'; 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)"<<std::endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Give ENTITY NUMBER (IN MODEL TransferProcess)"<<'\n'; return IFSelect_RetError; }
   Standard_Integer num = atoi(arg1);
-  if (num <= 0 || num > model->NbEntities()) { sout<<"Number not in [1 - "<<model->NbEntities()<<"]"<<std::endl; return IFSelect_RetError; }
+  if (num <= 0 || num > model->NbEntities()) { sout<<"Number not in [1 - "<<model->NbEntities()<<"]"<<'\n'; 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"<<std::endl;
+  if (index == 0) sout<<"Entity "<<num<<"  not recorded in transfer"<<'\n';
   else XSControl::Session(pilot)->PrintTransferStatus (index,Standard_False,sout);
   return IFSelect_RetVoid;
 }
@@ -227,7 +227,7 @@ static IFSelect_ReturnStatus XSControl_tpitem(const Handle(IFSelect_SessionPilot
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    tpitem/tproot/twitem/twroot        ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  if (argc < 2) { sout<<"Give ITEM NUMBER (in TransferProcess)"<<std::endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Give ITEM NUMBER (in TransferProcess)"<<'\n'; return IFSelect_RetError; }
   Standard_Integer num = atoi(arg1);
   if (pilot->Word(0).Value(3) == 'r') num = -num;
   Standard_Boolean modew = Standard_False;
@@ -237,7 +237,7 @@ static IFSelect_ReturnStatus XSControl_tpitem(const Handle(IFSelect_SessionPilot
   Handle(Standard_Transient) ent;
   if (!XSControl::Session(pilot)->PrintTransferStatus(num,modew,sout))
   {
-    sout<<" - Num="<<num<<" incorrect"<<std::endl;
+    sout<<" - Num="<<num<<" incorrect"<<'\n';
   }
   return IFSelect_RetVoid;
 }
@@ -259,21 +259,21 @@ static IFSelect_ReturnStatus XSControl_trecord(const Handle(IFSelect_SessionPilo
   Handle(Standard_Transient) ent;
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (mdl.IsNull() || TR.IsNull() || TP.IsNull())
-    { sout<<" init not done"<<std::endl; return IFSelect_RetError; }
+    { sout<<" init not done"<<'\n'; return IFSelect_RetError; }
   if (!tous) num = atoi(arg1);
   //    Enregistrer les racines
   if (tous) {
     Standard_Integer nb = TP->NbRoots();
-    sout<<" Recording "<<nb<<" Roots"<<std::endl;
+    sout<<" Recording "<<nb<<" Roots"<<'\n';
     for (Standard_Integer i = 1; i <= nb; i ++) {
       ent = TP->Root(i);
-      if (TR->RecordResult (ent)) sout<<" Root n0."<<i<<std::endl;
-      else sout<<" Root n0."<<i<<" not recorded"<<std::endl;
+      if (TR->RecordResult (ent)) sout<<" Root n0."<<i<<'\n';
+      else sout<<" Root n0."<<i<<" not recorded"<<'\n';
     }
   } else {
-    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;
+    if (num < 1 ||  num > mdl->NbEntities()) sout<<"incorrect number:"<<num<<'\n';
+    else if (TR->RecordResult(mdl->Value(num))) sout<<" Entity n0."<<num<<'\n';
+    else sout<<" Entity n0."<<num<<" not recorded"<<'\n';
   }
   return IFSelect_RetDone;
 }
@@ -289,26 +289,26 @@ static IFSelect_ReturnStatus XSControl_trstat(const Handle(IFSelect_SessionPilot
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
 //        ****    trstat : TransferReader        ****
   const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
-  if (TR.IsNull()) { sout<<" init not done"<<std::endl; return IFSelect_RetError; }
+  if (TR.IsNull()) { sout<<" init not done"<<'\n'; return IFSelect_RetError; }
   Handle(Interface_InterfaceModel)  mdl = TR->Model();
-  if (mdl.IsNull()) { sout<<" No model"<<std::endl; return IFSelect_RetError; }
-  sout<<" Statistics : FileName : "<<TR->FileName()<<std::endl;
+  if (mdl.IsNull()) { sout<<" No model"<<'\n'; return IFSelect_RetError; }
+  sout<<" Statistics : FileName : "<<TR->FileName()<<'\n';
   if (argc == 1) {
     // stats generales
     TR->PrintStats (sout, 10, 0);
   } else {
     // stats unitaires
     Standard_Integer num = atoi(arg1);
-    if (num < 1 || num > mdl->NbEntities()) { sout<<" incorrect number:"<<arg1<<std::endl; return IFSelect_RetError; }
+    if (num < 1 || num > mdl->NbEntities()) { sout<<" incorrect number:"<<arg1<<'\n'; return IFSelect_RetError; }
     Handle(Standard_Transient) ent = mdl->Value(num);
-    if (!TR->IsRecorded(ent)) { sout<<" Entity "<<num<<" not recorded"<<std::endl; return IFSelect_RetError; }
+    if (!TR->IsRecorded(ent)) { sout<<" Entity "<<num<<" not recorded"<<'\n'; 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<<std::endl;
-    if (RM.IsNull()) { sout<<" no other info"<<std::endl; return IFSelect_RetVoid; }
+    sout<<'\n';
+    if (RM.IsNull()) { sout<<" no other info"<<'\n'; return IFSelect_RetVoid; }
     Interface_CheckIterator chl = RM->CheckList(Standard_False);
     pilot->Session()->PrintCheckList (sout, chl, Standard_False, IFSelect_EntitiesByItem);
   }
@@ -330,7 +330,7 @@ static IFSelect_ReturnStatus XSControl_trbegin(const Handle(IFSelect_SessionPilo
     TR = XSControl::Session(pilot)->TransferReader();
     if (TR.IsNull()) {
       Message_Messenger::StreamBuffer sout = Message::SendInfo();
-      sout<<" init not done or failed"<<std::endl;
+      sout<<" init not done or failed"<<'\n';
       return IFSelect_RetError;
     }
   }
@@ -349,21 +349,21 @@ static IFSelect_ReturnStatus XSControl_tread(const Handle(IFSelect_SessionPilot)
   //        ****    tread : TransferReader        ****
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
-  if (TR.IsNull()) { sout<<" init not done"<<std::endl; return IFSelect_RetError; }
+  if (TR.IsNull()) { sout<<" init not done"<<'\n'; return IFSelect_RetError; }
   const Handle(Interface_InterfaceModel) &mdl = TR->Model();
-  if (mdl.IsNull()) { sout<<" No model"<<std::endl; return IFSelect_RetError; }
+  if (mdl.IsNull()) { sout<<" No model"<<'\n'; 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"<<std::endl; return IFSelect_RetError; }
+    if (sel.IsNull()) { sout<<"Select Roots absent"<<'\n'; return IFSelect_RetError; }
     Handle(TColStd_HSequenceOfTransient) list = pilot->Session()->GiveList(sel);
-    sout<<" Transferring all roots i.e. : "<<TR->TransferList(list)<<std::endl;
+    sout<<" Transferring all roots i.e. : "<<TR->TransferList(list)<<'\n';
   } else {
     Handle(TColStd_HSequenceOfTransient) list =
       IFSelect_Functions::GiveList(pilot->Session(),pilot->CommandPart(1));
-    sout<<" Transfer of "<<list->Length()<<" entities"<<std::endl;
+    sout<<" Transfer of "<<list->Length()<<" entities"<<'\n';
     Standard_Integer nb = TR->TransferList(list);
-    sout<<" Gives "<<nb<<" results"<<std::endl;
+    sout<<" Gives "<<nb<<" results"<<'\n';
   }
   return IFSelect_RetDone;
 }
@@ -377,8 +377,8 @@ static IFSelect_ReturnStatus XSControl_trtp(const Handle(IFSelect_SessionPilot)&
   //        ****    TReader -> TProcess         ****
   const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
   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;
+  if (TR.IsNull()) sout<<" No TransferReader"<<'\n';
+  else if (TR->TransientProcess().IsNull()) sout<<" Transfer Reader without Process"<<'\n';
   return IFSelect_RetVoid;
 }
 
@@ -407,17 +407,17 @@ static IFSelect_ReturnStatus XSControl_twmode(const Handle(IFSelect_SessionPilot
   Standard_Integer modemin,modemax;
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
   if (control->ModeWriteBounds (modemin,modemax)) {
-    sout<<"Write Mode : allowed values  "<<modemin<<" to "<<modemax<<std::endl;
+    sout<<"Write Mode : allowed values  "<<modemin<<" to "<<modemax<<'\n';
     for (Standard_Integer modd = modemin; modd <= modemax; modd ++) {
-      sout<<modd<<"    : "<<control->ModeWriteHelp (modd)<<std::endl;
+      sout<<modd<<"    : "<<control->ModeWriteHelp (modd)<<'\n';
     }
   }
-  sout<<"Write Mode : actual = "<<TW->TransferMode()<<std::endl;
+  sout<<"Write Mode : actual = "<<TW->TransferMode()<<'\n';
   if (argc <= 1) return IFSelect_RetVoid;
   Standard_Integer mod = atoi(arg1);
-  sout<<"New value -> "<<arg1<<std::endl;
+  sout<<"New value -> "<<arg1<<'\n';
   TW->SetTransferMode(mod);
-  if (!control->IsModeWrite (mod)) sout<<"Warning : this new value is not supported"<<std::endl;
+  if (!control->IsModeWrite (mod)) sout<<"Warning : this new value is not supported"<<'\n';
   return IFSelect_RetDone;
 }
 
@@ -439,7 +439,7 @@ static IFSelect_ReturnStatus XSControl_twstat(const Handle(IFSelect_SessionPilot
     //    XSControl_TransferWriter::PrintStatsProcess (FP,mod1,mod2);
     FP->PrintStats (1,sout);
   }
-  else sout<<"TransferWrite: not defined"<<std::endl;
+  else sout<<"TransferWrite: not defined"<<'\n';
   return IFSelect_RetVoid;
 }
 
index 4d55b92b6ea15091b5fef2e182edf2fba64ddf5a..b24ccaedfbfe43f7218dbdd6f5dab6a143009436 100644 (file)
@@ -795,7 +795,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                     ******"<<std::endl;
+    sout << "******           Transferring one Entity                     ******"<<'\n';
     if (!lab.IsNull())
       sout<<"******    N0 in file : "<<Interface_MSG::Blanks(num,5)<<num
          <<"      Ident : "<<lab->ToCString()
@@ -852,7 +852,7 @@ Standard_Integer XSControl_TransferReader::TransferList
   if (level > 0) {
     Message_Messenger::StreamBuffer sout = myTP->Messenger()->SendInfo();
     sout<<"\n*******************************************************************\n";
-    sout << "******           Transferring a list of "<<Interface_MSG::Blanks(nb,5)<<" Entities       ******"<<std::endl;
+    sout << "******           Transferring a list of "<<Interface_MSG::Blanks(nb,5)<<" Entities       ******"<<'\n';
     sout<<"\n*******************************************************************\n";
 
     Handle(IFSelect_SignatureList) sl = new IFSelect_SignatureList;
@@ -910,7 +910,7 @@ Standard_Integer XSControl_TransferReader::TransferRoots(const Interface_Graph&
     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        ******"<<std::endl;
+    sout << "******           Transferring the "<<Interface_MSG::Blanks(nb,5)<<" Root Entities        ******"<<'\n';
     sout<<"\n*******************************************************************\n";
     Handle(IFSelect_SignatureList) sl = new IFSelect_SignatureList;
     for (roots.Start(); roots.More(); roots.Next())
@@ -969,16 +969,16 @@ void XSControl_TransferReader::PrintStats (Standard_OStream& sout,
 {
   //  A ameliorer ... !
   sout<<"\n*******************************************************************\n";
-  sout << "******        Statistics on Transfer (Read)                  ******"<<std::endl;
+  sout << "******        Statistics on Transfer (Read)                  ******"<<'\n';
   sout<<"\n*******************************************************************\n";
-  if (what > 10)  {  sout<<" ***  Not yet implemented"<<std::endl;  return;  }
+  if (what > 10)  {  sout<<" ***  Not yet implemented"<<'\n';  return;  }
   if (what < 10)  {
-    sout << "******        Data recorded on Last Transfer                 ******"<<std::endl;
+    sout << "******        Data recorded on Last Transfer                 ******"<<'\n';
     PrintStatsProcess (myTP,what,mode);
   }
   //  reste  what = 10 : on liste les racines des final results
-  sout << "******        Final Results                                  ******"<<std::endl;
-  if (myModel.IsNull())  {  sout<<"****    Model unknown"<<std::endl;  return;  }
+  sout << "******        Final Results                                  ******"<<'\n';
+  if (myModel.IsNull())  {  sout<<"****    Model unknown"<<'\n';  return;  }
   Handle(TColStd_HSequenceOfTransient) list = RecordedList();
   Standard_Integer i, nb = list->Length();
   Handle(IFSelect_SignatureList) counter;
@@ -1001,7 +1001,7 @@ void XSControl_TransferReader::PrintStats (Standard_OStream& sout,
   }
   if (!counter.IsNull()) counter->PrintList (sout, myModel, pcm);
 
-  sout<<std::endl;
+  sout<<'\n';
 }
 
 
@@ -1115,9 +1115,9 @@ static void PrintPercent(const Handle(Message_Messenger)& sout, const Standard_C
   if (nb <= 0 || nl == 0) return;
   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;
+  if      (nb == nl)       aSender<<"100 %"<<'\n';
+  else if (nb*100/nl == 0) aSender<<"< 1 %"<<'\n';
+  else            aSender<<(nb*100/nl < 10 ? "  " : " ")<<nb*100/nl<<" %"<<'\n';
 }
 
 
@@ -1152,7 +1152,7 @@ void XSControl_TransferReader::PrintStatsOnList(const Handle(Transfer_TransientP
   if (what == 0) {  TP->PrintStats(0,sout);  return;  }
 
   sout<<"\n*******************************************************************\n";
-  sout << "******        Statistics on Transfer Process (Read)          ******"<<std::endl;
+  sout << "******        Statistics on Transfer Process (Read)          ******"<<'\n';
   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";
@@ -1190,10 +1190,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()<<std::endl;
-    sout  <<"****        Nb Items (Transfer) : "<<nb<<std::endl;
+    sout  <<"****        Entities in Model   : "<<model->NbEntities()<<'\n';
+    sout  <<"****        Nb Items (Transfer) : "<<nb<<'\n';
     if (!nolist)
-      sout<<"****        Nb Items (Listed)   : "<<nl<<std::endl;
+      sout<<"****        Nb Items (Listed)   : "<<nl<<'\n';
 
     for (itrp.Start(); itrp.More(); itrp.Next()) {
       nbi ++;
@@ -1205,7 +1205,7 @@ void XSControl_TransferReader::PrintStatsOnList(const Handle(Transfer_TransientP
        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)"<<std::endl;
+         sout<<"   "<<model->TypeName(ent,Standard_False)<<"  (not recorded)"<<'\n';
          continue;
        }
       }
@@ -1226,7 +1226,7 @@ void XSControl_TransferReader::PrintStatsOnList(const Handle(Transfer_TransientP
        sout<<"["<<Interface_MSG::Blanks (i,4)<<i<<" ]:";
        model->Print (ent, sout);
        sout<<"   "<<model->TypeName(ent,Standard_False);
-       sout<<" Result:"<<mess<<std::endl;
+       sout<<" Result:"<<mess<<'\n';
        if (mode == 1) continue;
 
        const Handle(Interface_Check)& ch = binder->Check();
@@ -1234,11 +1234,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)<<std::endl;
+         for (newi = 1; newi <= newnbw; newi ++) sout<<ch->CWarning(newi)<<'\n';
        }
        if (newnbf > 0) {
          sout<<" - Fails : "<<newnbf<<":\n";
-         for (newi = 1; newi <= newnbf; newi ++) sout<<ch->CFail(newi)<<std::endl;
+         for (newi = 1; newi <= newnbf; newi ++) sout<<ch->CFail(newi)<<'\n';
        }
        continue;
       }
@@ -1265,10 +1265,10 @@ void XSControl_TransferReader::PrintStatsOnList(const Handle(Transfer_TransientP
       //    Fin de l iteration
     }
     if (!counter.IsNull()) counter->PrintList (sout, model, pcm);
-    else sout<<std::endl;
+    else sout<<'\n';
     //    Pourcentages
     if (mode != 3 && nbi > 0) {
-      sout << "******        Percentages according Transfer Status          ******"<<std::endl;
+      sout << "******        Percentages according Transfer Status          ******"<<'\n';
       PrintPercent (TP->Messenger(),"Result          ",nbr+nbrw,nl);
       PrintPercent (TP->Messenger(),"Result + FAIL   ",nbrf,nl);
       PrintPercent (TP->Messenger(),"FAIL, no Result ",nbf,nl);
index ec6871d8f7e809bc1a71ecf00b3bac24e069068e..07366fc328f9e0a4c96bf29f18ffe8b380d3e4db 100644 (file)
@@ -53,12 +53,12 @@ void XSControl_TransferWriter::PrintStats (const Standard_Integer , const Standa
   Message_Messenger::StreamBuffer sout = myTransferWriter->Messenger()->SendInfo();
 //  A ameliorer ... !
   sout<<"\n*******************************************************************\n";
-  sout << "******        Statistics on Transfer (Write)                 ******"<<std::endl;
+  sout << "******        Statistics on Transfer (Write)                 ******"<<'\n';
   sout<<"\n*******************************************************************\n";
   sout << "******        Transfer Mode = "<<myTransferMode;
   Standard_CString modehelp = myController->ModeWriteHelp (myTransferMode);
   if (modehelp && modehelp[0] != 0) sout<<"  I.E.  "<<modehelp;
-  sout<<"       ******"<<std::endl;
+  sout<<"       ******"<<'\n';
 }
 
 
@@ -101,14 +101,14 @@ IFSelect_ReturnStatus XSControl_TransferWriter::TransferWriteTransient
     OCC_CATCH_SIGNALS
     PrintStats(myTransferMode);
     sout << "******        Transferring Transient, CDL Type = ";
-    sout<<obj->DynamicType()->Name()<<"   ******"<<std::endl;
+    sout<<obj->DynamicType()->Name()<<"   ******"<<'\n';
     status = myController->TransferWriteTransient
       (obj,myTransferWriter,model, myTransferMode, theProgress);
   }
   catch(Standard_Failure const& anException) {
     sout<<"****  ****  TransferWriteShape, EXCEPTION : ";
     sout<<anException.GetMessageString(); 
-    sout<<std::endl;
+    sout<<'\n';
     status = IFSelect_RetFail;
   }
   return status;
@@ -160,14 +160,14 @@ IFSelect_ReturnStatus XSControl_TransferWriter::TransferWriteShape
     OCC_CATCH_SIGNALS
     PrintStats(myTransferMode);
     sout << "******        Transferring Shape, ShapeType = " << aShape.ShapeType();
-    sout<<"                      ******"<<std::endl;
+    sout<<"                      ******"<<'\n';
     status = myController->TransferWriteShape
       (aShape,myTransferWriter, theModel, myTransferMode, theProgress);
   }
   catch(Standard_Failure const& anException) {
     sout<<"****  ****  TransferWriteShape, EXCEPTION : "; 
     sout<<anException.GetMessageString(); 
-    sout<<std::endl;
+    sout<<'\n';
     status = IFSelect_RetFail;
   }
   return status;
index 304ec8110d14b2bb870a86de122c65ec5d45c1ce..6717ef876e2b2ddee10f68dd6ffc2cad4c878b0d 100644 (file)
@@ -54,7 +54,7 @@ static const Standard_ExtString   voidext = { 0 };
     void  XSControl_Utils::TraceLine (const Standard_CString line) const
 {
   Message_Messenger::StreamBuffer sout = Message::SendInfo();
-  sout<<line<<std::endl;
+  sout<<line<<'\n';
 }
 
     void  XSControl_Utils::TraceLines (const Handle(Standard_Transient)& lines) const
@@ -65,14 +65,14 @@ static const Standard_ExtString   voidext = { 0 };
   if (!linha.IsNull()) {
     nb = linha->Length();
     for (i = 1; i <= nb; i ++)
-      if (!linha->Value(i).IsNull()) sout<<linha->Value(i)->ToCString()<<std::endl;
+      if (!linha->Value(i).IsNull()) sout<<linha->Value(i)->ToCString()<<'\n';
     return;
   }
   DeclareAndCast(TColStd_HSequenceOfAsciiString,lina,lines);
   if (!lina.IsNull()) {
     nb = lina->Length();
     for (i = 1; i <= nb; i ++)
-      sout<<lina->Value(i).ToCString()<<std::endl;
+      sout<<lina->Value(i).ToCString()<<'\n';
     return;
   }
   DeclareAndCast(TColStd_HSequenceOfHExtendedString,linhe,lines);
@@ -80,14 +80,14 @@ static const Standard_ExtString   voidext = { 0 };
     nb = linhe->Length();
     for (i = 1; i <= nb; i ++)
       if (!linhe->Value(i).IsNull())
-       sout << linhe->Value(i)->String() << std::endl;
+       sout << linhe->Value(i)->String() << '\n';
     return;
   }
   DeclareAndCast(TColStd_HSequenceOfExtendedString,linee,lines);
   if (!linee.IsNull()) {
     nb = linee->Length();
     for (i = 1; i <= nb; i ++)
-      sout << linee->Value(i) << std::endl;
+      sout << linee->Value(i) << '\n';
     return;
   }
   DeclareAndCast(TCollection_HAsciiString,lin1a,lines);
index 07ff5ce3ebc35cbe38b929c942ba8836ae8ecf4f..cbebdc1caaedd3cf57e804f88b5f83b21859544c 100644 (file)
@@ -200,16 +200,16 @@ Standard_Boolean  XSControl_WorkSession::PrintTransferStatus(const Standard_Inte
     {
       S<<"  ** Transfer Root n0."<<ne;
     }
-    S<<std::endl;
+    S<<'\n';
     ent = FP->FindTransient(finder);
-    S<<" -> Type "<<finder->DynamicType()->Name()<<std::endl;
+    S<<" -> Type "<<finder->DynamicType()->Name()<<'\n';
     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<<std::endl;
+      S<<'\n';
     }
   }
 
@@ -217,8 +217,8 @@ Standard_Boolean  XSControl_WorkSession::PrintTransferStatus(const Standard_Inte
   else {
     if (TP.IsNull()) return Standard_False;
     Handle(Interface_InterfaceModel) model = TP->Model();
-    if (model.IsNull()) std::cout<<"No Model"<<std::endl;
-    else if (model != Model()) std::cout<<"Model different from the session"<<std::endl;
+    if (model.IsNull()) std::cout<<"No Model"<<'\n';
+    else if (model != Model()) std::cout<<"Model different from the session"<<'\n';
     if (num == 0) return Standard_False;
 
     Standard_Integer  ne=0, nr=0, max = TP->NbMapped() ,maxr = TP->NbRoots();
@@ -239,10 +239,10 @@ Standard_Boolean  XSControl_WorkSession::PrintTransferStatus(const Standard_Inte
     {
       S<<"  ** Transfer Root n0."<<ne;
     }
-    S<<std::endl;
+    S<<'\n';
     if (!model.IsNull())  {  S<<" In Model, Entity ";  model->Print(ent, S); }
     binder = TP->MapItem (ne);
-    S<<std::endl;
+    S<<'\n';
     TP->StartTrace (binder,ent,0,0);
 
   }
@@ -253,11 +253,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)<<std::endl;
+      for (i = 1; i <= nbw; i ++) S<<ch->CWarning(i)<<'\n';
     }
     if (nbf > 0) {
       S<<" - Fails : "<<nbf<<" :\n";
-      for (i = 1; i <= nbf; i ++) S<<ch->CFail(i)<<std::endl;
+      for (i = 1; i <= nbf; i ++) S<<ch->CFail(i)<<'\n';
     }
   }
   return Standard_True;
index 79fe1e8d1174cdb980c209905ab995ad2f7325a2..b38f8c86a7015ab9427c41d96d1d2ec27b29d527 100644 (file)
@@ -212,9 +212,9 @@ void XSDRAW::LoadDraw (Draw_Interpretor& theCommands)
     void  XSDRAW::SetController (const Handle(XSControl_Controller)& control)
 {
   if (thepilot.IsNull()) XSDRAW::LoadSession();
-  if (control.IsNull()) std::cout<<"XSTEP Controller not defined"<<std::endl;
+  if (control.IsNull()) std::cout<<"XSTEP Controller not defined"<<'\n';
   else if (!Session().IsNull()) Session()->SetController (control);
-  else std::cout<<"XSTEP Session badly or not defined"<<std::endl;
+  else std::cout<<"XSTEP Session badly or not defined"<<'\n';
 }
 
 
index 4b8263c4ba91b09d5ca6139e03f0eaa506c40ced..296d9e020ba8e9bd04ccd39812f20dc50eb5163a 100644 (file)
@@ -58,7 +58,7 @@ void WriteShape(const TopoDS_Shape& shape,
   char fname[110];
   sprintf(fname, "Shape_%d", number);
   std::ofstream f(fname, std::ios::out | std::ios::binary);
-  std::cout << "Output file name : " << fname << std::endl;
+  std::cout << "Output file name : " << fname << '\n';
   f << "DBRep_DrawableShape\n";
 
   BRepTools::Write(shape, f);
@@ -304,9 +304,9 @@ static Standard_Integer igesbrep(Draw_Interpretor& theDI,
 
     else if (modepri == 3)
     {  // One Entity
-      std::cout << "Only One Entity" << std::endl;
-      std::cout << "spline_continuity (read) : " << Interface_Static::IVal("read.iges.bspline.continuity") << " (0 : no modif, 1 : C1, 2 : C2)" << std::endl;
-      std::cout << "  To modify : command  param read.iges.bspline.continuity" << std::endl;
+      std::cout << "Only One Entity" << '\n';
+      std::cout << "spline_continuity (read) : " << Interface_Static::IVal("read.iges.bspline.continuity") << " (0 : no modif, 1 : C1, 2 : C2)" << '\n';
+      std::cout << "  To modify : command  param read.iges.bspline.continuity" << '\n';
       std::cout << " give the number of the Entity : " << std::flush;
       nent = GiveEntityNumber(aWS, "");
 
@@ -395,7 +395,7 @@ static Standard_Integer igesbrep(Draw_Interpretor& theDI,
       {
         std::cout << "Name of Selection :" << std::flush;
         list = XSDRAW::Session()->GiveList("");
-        if (list.IsNull()) { std::cout << "No list defined" << std::endl; continue; }
+        if (list.IsNull()) { std::cout << "No list defined" << '\n'; continue; }
       }
 
       Standard_Integer nbl = list->Length();
index 603dec6edf9eda7225c930a10c363227660ca563..cef9ca77ee01dc06398598fef408d19f92c512d0 100644 (file)
@@ -33,7 +33,7 @@ XSDRAWSTL_DataSource::XSDRAWSTL_DataSource (const Handle(Poly_Triangulation)& aM
   {
     const Standard_Integer aNbNodes = myMesh->NbNodes();
     myNodeCoords = new TColStd_HArray2OfReal (1, aNbNodes, 1, 3);
-    std::cout << "Nodes : " << aNbNodes << std::endl;
+    std::cout << "Nodes : " << aNbNodes << '\n';
 
     for (Standard_Integer i = 1; i <= aNbNodes; i++)
     {
@@ -49,7 +49,7 @@ XSDRAWSTL_DataSource::XSDRAWSTL_DataSource (const Handle(Poly_Triangulation)& aM
     myElemNormals = new TColStd_HArray2OfReal(1, aNbTris, 1, 3);
     myElemNodes = new TColStd_HArray2OfInteger(1, aNbTris, 1, 3);
 
-    std::cout << "Elements : " << aNbTris << std::endl;
+    std::cout << "Elements : " << aNbTris << '\n';
 
     for (Standard_Integer i = 1; i <= aNbTris; i++)
     {
@@ -83,7 +83,7 @@ XSDRAWSTL_DataSource::XSDRAWSTL_DataSource (const Handle(Poly_Triangulation)& aM
       myElemNormals->SetValue (i, 3, aN.Z());
     }
   }
-  std::cout << "Construction is finished" << std::endl;
+  std::cout << "Construction is finished" << '\n';
 }
 
 //================================================================
index 80a4e15727463aa2f8e17c31bc8fb09bc4c3cad9..0427bef07c939ea8ba3033f6775bd2301846b93b 100644 (file)
@@ -211,7 +211,7 @@ void XmlLDrivers_DocumentRetrievalDriver::Read (Standard_IStream&              t
   if (aParser.parse(theIStream, Standard_False, aWithoutRoot))
   {
     TCollection_AsciiString aData;
-    std::cout << aParser.GetError(aData) << ": " << aData << std::endl;
+    std::cout << aParser.GetError(aData) << ": " << aData << '\n';
     myReaderStatus = PCDM_RS_FormatFailure;
     return;
   }
index 88eecc5a2eaf8f6012ddf1fa436622b39f242ea2..ebd44f5f0ac8555651e1fa4e04b3b7eb308d84f9 100644 (file)
@@ -159,8 +159,8 @@ void math_BissecNewton::Dump(Standard_OStream& o) const {
   o << "math_BissecNewton ";
   if(Done) {
     o << " Status = Done \n";
-    o << " The Root  is: " << x << std::endl;
-    o << " The value at this Root is: " << f << std::endl;
+    o << " The Root  is: " << x << '\n';
+    o << " The value at this Root is: " << f << '\n';
   }
   else {
     o << " Status = not Done \n";
index 39e0c8a623160057c5eb898c297db3bbc655ee75..57dee77e54771b7814b430b6bb4742a61ae45930 100644 (file)
@@ -240,10 +240,10 @@ Standard_Boolean math_BracketMinimum::LimitAndMayBeSwap
        o << "math_BracketMinimum ";
        if(Done) {
          o << " Status = Done \n";
-        o << " The bracketed triplet is: " << std::endl;
-        o << Ax << ", " << Bx << ", " << Cx << std::endl;
-        o << " The corresponding function values are: "<< std::endl;
-        o << FAx << ", " << FBx << ", " << FCx << std::endl;
+        o << " The bracketed triplet is: " << '\n';
+        o << Ax << ", " << Bx << ", " << Cx << '\n';
+        o << " The corresponding function values are: "<< '\n';
+        o << FAx << ", " << FBx << ", " << FCx << '\n';
        }
        else {
          o << " Status = not Done \n";
index 29e9a6be0a4df945b2802ffa8eb6f2bd0c29256d..9d1ec6b2e1ba4822377ed38c0606bdb95a421c71 100644 (file)
@@ -107,9 +107,9 @@ math_BracketedRoot::math_BracketedRoot (math_Function& F,
        o << "math_BracketedRoot ";
        if(Done) {
          o << " Status = Done \n";
-        o << " Number of iterations = " << NbIter << std::endl;
-        o << " The Root is: " << TheRoot << std::endl;
-        o << " The value at the root is: " << TheError << std::endl;
+        o << " Number of iterations = " << NbIter << '\n';
+        o << " The Root is: " << TheRoot << '\n';
+        o << " The value at the root is: " << TheError << '\n';
        }
        else {
          o << " Status = not Done \n";
index b5c680b7f1a40984dcef45b6b968f540cbecb330..a9d58012915ee98b7d850dd40ac6b106e2f460c3 100644 (file)
@@ -221,8 +221,8 @@ void math_FunctionAllRoots::Dump(Standard_OStream& o) const {
   o<< "math_FunctionAllRoots ";
   if(done) {
     o<< " Status = Done \n";
-    o << " Number of null intervals = " << pdeb.Length() << std::endl;
-    o << " Number of points where the function is null: " << piso.Length() << std::endl;
+    o << " Number of null intervals = " << pdeb.Length() << '\n';
+    o << " Number of points where the function is null: " << piso.Length() << '\n';
   }
   else {
     o<< " Status = not Done \n";
index 397f06de7876e832dc5440b0125b8729f16624a1..9f229bd43a1c3d49e4a4cfcd1d3507a4b5a654cc 100644 (file)
@@ -114,9 +114,9 @@ class math_MyFunctionSetWithDerivatives : public math_FunctionSetWithDerivatives
        o<< "math_FunctionRoot ";
        if(Done) {
          o<< " Status = Done \n";
-        o << " Number of iterations = " << NbIter << std::endl;
-        o << " The Root is: " << TheRoot << std::endl;
-        o << "The value at the root is: " << TheError << std::endl;
+        o << " Number of iterations = " << NbIter << '\n';
+        o << " The Root is: " << TheRoot << '\n';
+        o << "The value at the root is: " << TheError << '\n';
        }
        else {
          o<< " Status = not Done \n";
index 0f9b9ee8aa03f9c4040da2ccad24b0d08bd74a8c..e9561519edad0c80c743c912bf07268f68c312a9 100644 (file)
@@ -1080,9 +1080,9 @@ void math_FunctionRoots::Dump(Standard_OStream& o) const
   o << "math_FunctionRoots ";
   if(Done) {
     o << " Status = Done \n";
-    o << " Number of solutions = " << Sol.Length() << std::endl;
+    o << " Number of solutions = " << Sol.Length() << '\n';
     for (Standard_Integer i = 1; i <= Sol.Length(); i++) {
-      o << " Solution Number " << i << "= " << Sol.Value(i) << std::endl;
+      o << " Solution Number " << i << "= " << Sol.Value(i) << '\n';
     }
   }
   else {
index 7760db66f866e6714119cfc95c99e958f16db812..c2132e382a93875edaefc7ed1be21a282a2107eb 100644 (file)
@@ -107,7 +107,7 @@ void math_Gauss::Dump(Standard_OStream& o) const {
        o << "math_Gauss ";
        if(Done) {
          o<< " Status = Done \n";
-        o << " Determinant of A = " << D << std::endl;
+        o << " Determinant of A = " << D << '\n';
        }
        else {
          o << " Status = not Done \n";
index e076b4b1fa64d4e74fc0acbccfdfbbfc73bd6cfa..53ac034ea68618fdbf8b981a848d0e89aa123b8e 100644 (file)
@@ -47,7 +47,7 @@ void math_Jacobi::Dump(Standard_OStream& o) const {
   o <<"math_Jacobi ";
    if (Done) {
      o << " Status = Done \n";
-     o << " The eigenvalues vector is: " << EigenValues << std::endl;
+     o << " The eigenvalues vector is: " << EigenValues << '\n';
    }
    else {
      o << "Status = not Done \n";
index 89ae93f952c2543ad9289322232c990829b68d45..2939e3866b3d01ef6378c85ba34ac5253301f2e1 100644 (file)
@@ -257,13 +257,13 @@ void math_NewtonMinimum::Perform(math_MultipleVarFunctionWithHessian& F,
 void math_NewtonMinimum::Dump(Standard_OStream& o) const 
 {
   o<< "math_Newton Optimisation: ";
-  o << " Done   ="  << Done << std::endl
-  o << " Status = " << (Standard_Integer)TheStatus << std::endl;
-  o << " Location Vector = " << Location() << std::endl;
-  o << " Minimum value = "<< Minimum()<< std::endl;
-  o << " Previous value = "<< PreviousMinimum << std::endl;
-  o << " Number of iterations = " <<NbIterations() << std::endl;
-  o << " Convexity = " << Convex << std::endl;
-  o << " Eigen Value = " << MinEigenValue << std::endl;
+  o << " Done   ="  << Done << '\n'
+  o << " Status = " << (Standard_Integer)TheStatus << '\n';
+  o << " Location Vector = " << Location() << '\n';
+  o << " Minimum value = "<< Minimum()<< '\n';
+  o << " Previous value = "<< PreviousMinimum << '\n';
+  o << " Number of iterations = " <<NbIterations() << '\n';
+  o << " Convexity = " << Convex << '\n';
+  o << " Eigen Value = " << MinEigenValue << '\n';
 }
 
index f4d4c69e5ed53f91ef675e5bf8c9a69a8359c7c8..ce9bb5b2cea27976b6810121bdbea8e6c8ae9f71 100644 (file)
@@ -234,8 +234,8 @@ void math_Uzawa::Dump(Standard_OStream& o) const {
   o << "math_Uzawa";
   if(Done) {
     o << " Status = Done \n";
-    o << " Number of iterations = " << NbIter << std::endl;
-    o << " The solution vector is: " << Resul << std::endl;
+    o << " Number of iterations = " << NbIter << '\n';
+    o << " The solution vector is: " << Resul << '\n';
   }
   else {
     o << " Status = not Done \n";