0030895: Coding Rules - specify std namespace explicitly for std::cout and streams
authortiv <tiv@opencascade.com>
Fri, 2 Aug 2019 07:32:16 +0000 (10:32 +0300)
committerbugmaster <bugmaster@opencascade.com>
Fri, 16 Aug 2019 09:16:38 +0000 (12:16 +0300)
"endl" manipulator for Message_Messenger is renamed to "Message_EndLine".

The following entities from std namespace are now used
with std:: explicitly specified (from Standard_Stream.hxx):
std::istream,std::ostream,std::ofstream,std::ifstream,std::fstream,
std::filebuf,std::streambuf,std::streampos,std::ios,std::cout,std::cerr,
std::cin,std::endl,std::ends,std::flush,std::setw,std::setprecision,
std::hex,std::dec.

972 files changed:
samples/mfc/occtdemo/GeomConstraints/GeomConstraints_Presentation.cpp
samples/mfc/standard/01_Geometry/src/GeoAlgo_Sol.cxx
samples/mfc/standard/01_Geometry/src/GeomSources.cpp
samples/mfc/standard/01_Geometry/src/GeometryDoc.cpp
samples/mfc/standard/02_Modeling/src/ModelingDoc.cpp
samples/mfc/standard/03_Viewer2d/src/Viewer2dDoc.cpp
samples/mfc/standard/04_Viewer3d/src/TexturesExt_Presentation.cpp
samples/mfc/standard/04_Viewer3d/src/Viewer3dDoc.cpp
samples/mfc/standard/06_Ocaf/src/OcafDoc.cpp
samples/mfc/standard/06_Ocaf/src/TOcafFunction_CutDriver.cxx
samples/mfc/standard/07_Triangulation/src/Tesselate_Presentation.cpp
samples/mfc/standard/07_Triangulation/src/TriangulationDoc.cpp
samples/mfc/standard/09_Animation/src/AnimationDoc.cpp
samples/mfc/standard/09_Animation/src/Fonc.cxx
samples/mfc/standard/10_Convert/src/WNT/OCCDemoDoc.cpp
samples/mfc/standard/Common/ImportExport/ImportExport.cpp
samples/mfc/standard/Common/User_Cylinder.cxx
samples/mfc/standard/Common/Winmain.cpp
samples/ocafsamples/TDataStd_Sample.cxx
samples/ocafsamples/TNaming_Sample.cxx
samples/ocafsamples/TPrsStd_Sample.cxx
samples/qt/FuncDemo/src/mainwindow.cpp
samples/qt/Interface/src/Translate.cxx
samples/xaml/MainPage.xaml.cpp
src/AIS/AIS_OffsetDimension.cxx
src/AdvApp2Var/AdvApp2Var_ApproxAFunc2Var.cxx
src/AdvApp2Var/AdvApp2Var_Context.cxx
src/AdvApprox/AdvApprox_ApproxAFunction.cxx
src/AdvApprox/AdvApprox_SimpleApprox.cxx
src/AppBlend/AppBlend_AppSurf.gxx
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_ComputeLine.gxx
src/Approx/Approx_Curve3d.cxx
src/Approx/Approx_CurvilinearParameter.cxx
src/Approx/Approx_MCurvesToBSpCurve.cxx
src/Approx/Approx_SameParameter.cxx
src/Approx/Approx_SweepApproximation.cxx
src/ApproxInt/ApproxInt_KnotTools.cxx
src/ApproxInt/ApproxInt_PrmPrmSvSurfaces.gxx
src/BOPTest/BOPTest_CheckCommands.cxx
src/BOPTools/BOPTools_AlgoTools.cxx
src/BRepAlgo/BRepAlgo_BooleanOperation.cxx
src/BRepAlgo/BRepAlgo_Loop.cxx
src/BRepAlgo/BRepAlgo_NormalProjection.cxx
src/BRepAlgo/BRepAlgo_Tool.cxx
src/BRepBlend/BRepBlend_AppFuncRoot.cxx
src/BRepBlend/BRepBlend_RstRstLineBuilder.cxx
src/BRepBlend/BRepBlend_SurfRstConstRad.cxx
src/BRepBlend/BRepBlend_SurfRstEvolRad.cxx
src/BRepBlend/BRepBlend_SurfRstLineBuilder.cxx
src/BRepBuilderAPI/BRepBuilderAPI_FastSewing.cxx
src/BRepBuilderAPI/BRepBuilderAPI_Sewing.cxx
src/BRepCheck/BRepCheck_Analyzer.cxx
src/BRepCheck/BRepCheck_Edge.cxx
src/BRepCheck/BRepCheck_Shell.cxx
src/BRepCheck/BRepCheck_Wire.cxx
src/BRepClass3d/BRepClass3d_SClassifier.cxx
src/BRepClass3d/BRepClass3d_SolidExplorer.cxx
src/BRepExtrema/BRepExtrema_DistShapeShape.cxx
src/BRepFeat/BRepFeat_Form.cxx
src/BRepFeat/BRepFeat_MakeCylindricalHole.cxx
src/BRepFeat/BRepFeat_MakeDPrism.cxx
src/BRepFeat/BRepFeat_MakeLinearForm.cxx
src/BRepFeat/BRepFeat_MakePipe.cxx
src/BRepFeat/BRepFeat_MakePrism.cxx
src/BRepFeat/BRepFeat_MakeRevol.cxx
src/BRepFeat/BRepFeat_MakeRevolutionForm.cxx
src/BRepFeat/BRepFeat_RibSlot.cxx
src/BRepFeat/BRepFeat_trace.cxx
src/BRepFill/BRepFill.cxx
src/BRepFill/BRepFill_ApproxSeewing.cxx
src/BRepFill/BRepFill_Draft.cxx
src/BRepFill/BRepFill_Evolved.cxx
src/BRepFill/BRepFill_Filling.cxx
src/BRepFill/BRepFill_LocationLaw.cxx
src/BRepFill/BRepFill_MultiLine.cxx
src/BRepFill/BRepFill_OffsetWire.cxx
src/BRepFill/BRepFill_SectionPlacement.cxx
src/BRepFill/BRepFill_ShapeLaw.cxx
src/BRepFill/BRepFill_Sweep.cxx
src/BRepFill/BRepFill_TrimEdgeTool.cxx
src/BRepFill/BRepFill_TrimSurfaceTool.cxx
src/BRepGProp/BRepGProp.cxx
src/BRepGProp/BRepGProp_TFunction.cxx
src/BRepGProp/BRepGProp_VinertGK.cxx
src/BRepLib/BRepLib.cxx
src/BRepLib/BRepLib_MakeWire.cxx
src/BRepMesh/BRepMesh_DataStructureOfDelaun.cxx
src/BRepOffset/BRepOffset_Analyse.cxx
src/BRepOffset/BRepOffset_Inter2d.cxx
src/BRepOffset/BRepOffset_MakeOffset.cxx
src/BRepOffset/BRepOffset_MakeOffset_1.cxx
src/BRepOffset/BRepOffset_Offset.cxx
src/BRepOffset/BRepOffset_Tool.cxx
src/BRepOffsetAPI/BRepOffsetAPI_MakeOffset.cxx
src/BRepOffsetAPI/BRepOffsetAPI_MiddlePath.cxx
src/BRepSweep/BRepSweep_Translation.cxx
src/BRepTest/BRepTest_BasicCommands.cxx
src/BRepTest/BRepTest_ChamferCommands.cxx
src/BRepTest/BRepTest_CheckCommands.cxx
src/BRepTest/BRepTest_CurveCommands.cxx
src/BRepTest/BRepTest_DraftAngleCommands.cxx
src/BRepTest/BRepTest_ExtremaCommands.cxx
src/BRepTest/BRepTest_FeatureCommands.cxx
src/BRepTest/BRepTest_FilletCommands.cxx
src/BRepTest/BRepTest_FillingCommands.cxx
src/BRepTest/BRepTest_GPropCommands.cxx
src/BRepTest/BRepTest_OtherCommands.cxx
src/BRepTest/BRepTest_SurfaceCommands.cxx
src/BRepTest/BRepTest_SweepCommands.cxx
src/BRepTest/BRepTest_TopologyCommands.cxx
src/BRepTools/BRepTools.cxx
src/BRepTools/BRepTools_Debug.cxx
src/BRepTools/BRepTools_Quilt.cxx
src/BRepTools/BRepTools_ReShape.cxx
src/BRepTools/BRepTools_ShapeSet.cxx
src/BRepTopAdaptor/BRepTopAdaptor_FClass2d.cxx
src/BRepTopAdaptor/BRepTopAdaptor_Tool.cxx
src/BSplCLib/BSplCLib.cxx
src/BSplSLib/BSplSLib.cxx
src/BiTgte/BiTgte_Blend.cxx
src/BinDrivers/BinDrivers.cxx
src/BinLDrivers/BinLDrivers.cxx
src/BinLDrivers/BinLDrivers_DocumentRetrievalDriver.cxx
src/BinMDataStd/BinMDataStd_IntegerArrayDriver.cxx
src/BinMNaming/BinMNaming_NamingDriver.cxx
src/BinMXCAFDoc/BinMXCAFDoc_LocationDriver.cxx
src/BinTObjDrivers/BinTObjDrivers.cxx
src/BinTools/BinTools.cxx
src/BinTools/BinTools_Curve2dSet.cxx
src/BinTools/BinTools_CurveSet.cxx
src/BinTools/BinTools_LocationSet.cxx
src/BinTools/BinTools_ShapeSet.cxx
src/BinTools/BinTools_SurfaceSet.cxx
src/BinXCAFDrivers/BinXCAFDrivers.cxx
src/Bisector/Bisector_BisecAna.cxx
src/Bisector/Bisector_BisecCC.cxx
src/Bisector/Bisector_BisecPC.cxx
src/Bisector/Bisector_PointOnBis.cxx
src/Blend/Blend_CSWalking_3.gxx
src/Blend/Blend_CSWalking_4.gxx
src/Blend/Blend_Walking_3.gxx
src/Blend/Blend_Walking_4.gxx
src/BlendFunc/BlendFunc_ChAsymInv.cxx
src/BlendFunc/BlendFunc_ConstRad.cxx
src/BlendFunc/BlendFunc_ConstRadInv.cxx
src/BlendFunc/BlendFunc_EvolRad.cxx
src/Bnd/Bnd_BoundSortBox2d.cxx
src/Bnd/Bnd_Box.cxx
src/Bnd/Bnd_Box2d.cxx
src/CDF/CDF_Application.cxx
src/CDM/CDM_Document.cxx
src/CDM/CDM_MetaData.cxx
src/ChFi2d/ChFi2d_FilletAlgo.cxx
src/ChFi3d/ChFi3d.cxx
src/ChFi3d/ChFi3d_Builder.cxx
src/ChFi3d/ChFi3d_Builder_0.cxx
src/ChFi3d/ChFi3d_Builder_1.cxx
src/ChFi3d/ChFi3d_Builder_2.cxx
src/ChFi3d/ChFi3d_Builder_6.cxx
src/ChFi3d/ChFi3d_Builder_C1.cxx
src/ChFi3d/ChFi3d_Builder_C2.cxx
src/ChFi3d/ChFi3d_Builder_CnCrn.cxx
src/ChFi3d/ChFi3d_Builder_SpKP.cxx
src/ChFi3d/ChFi3d_ChBuilder.cxx
src/ChFi3d/ChFi3d_ChBuilder_C3.cxx
src/ChFi3d/ChFi3d_FilBuilder.cxx
src/ChFi3d/ChFi3d_FilBuilder_C3.cxx
src/ChFiDS/ChFiDS_Spine.cxx
src/ChFiKPart/ChFiKPart_ComputeData_ChAsymPlnCon.cxx
src/ChFiKPart/ChFiKPart_ComputeData_ChAsymPlnCyl.cxx
src/ChFiKPart/ChFiKPart_ComputeData_ChPlnCon.cxx
src/ChFiKPart/ChFiKPart_ComputeData_ChPlnCyl.cxx
src/ChFiKPart/ChFiKPart_ComputeData_FilPlnCon.cxx
src/ChFiKPart/ChFiKPart_ComputeData_FilPlnCyl.cxx
src/ChFiKPart/ChFiKPart_ComputeData_Sphere.cxx
src/Contap/Contap_Contour.cxx
src/Contap/Contap_HContTool.cxx
src/Convert/Convert_CompBezierCurvesToBSplineCurve.cxx
src/DBRep/DBRep.cxx
src/DBRep/DBRep_Debug.cxx
src/DBRep/DBRep_DrawableShape.cxx
src/DBRep/DBRep_IsoBuilder.cxx
src/DDF/DDF.cxx
src/DDF/DDF_BasicCommands.cxx
src/DDF/DDF_Browser.cxx
src/DDF/DDF_BrowserCommands.cxx
src/DDF/DDF_Data.cxx
src/DDF/DDF_DataCommands.cxx
src/DDF/DDF_IOStream.cxx
src/DDF/DDF_IOStream.hxx
src/DDataStd/DDataStd_BasicCommands.cxx
src/DDataStd/DDataStd_ConstraintCommands.cxx
src/DDataStd/DDataStd_DrawDisplayCommands.cxx
src/DDataStd/DDataStd_DrawPresentation.cxx
src/DDataStd/DDataStd_NameCommands.cxx
src/DDataStd/DDataStd_TreeBrowser.cxx
src/DDataStd/DDataStd_TreeCommands.cxx
src/DDocStd/DDocStd.cxx
src/DDocStd/DDocStd_ApplicationCommands.cxx
src/DDocStd/DDocStd_DocumentCommands.cxx
src/DDocStd/DDocStd_DrawDocument.cxx
src/DDocStd/DDocStd_MTMCommands.cxx
src/DNaming/DNaming.cxx
src/DNaming/DNaming_BasicCommands.cxx
src/DNaming/DNaming_BooleanOperationDriver.cxx
src/DNaming/DNaming_CylinderDriver.cxx
src/DNaming/DNaming_FilletDriver.cxx
src/DNaming/DNaming_Line3DDriver.cxx
src/DNaming/DNaming_ModelingCommands.cxx
src/DNaming/DNaming_PointDriver.cxx
src/DNaming/DNaming_PrismDriver.cxx
src/DNaming/DNaming_RevolutionDriver.cxx
src/DNaming/DNaming_SelectionCommands.cxx
src/DNaming/DNaming_SelectionDriver.cxx
src/DNaming/DNaming_SphereDriver.cxx
src/DNaming/DNaming_TransformationDriver.cxx
src/DPrsStd/DPrsStd.cxx
src/DPrsStd/DPrsStd_AISPresentationCommands.cxx
src/Draft/Draft_Modification_1.cxx
src/Draw/Draw.cxx
src/Draw/Draw_Appli.hxx
src/Draw/Draw_BasicCommands.cxx
src/Draw/Draw_Debug.cxx
src/Draw/Draw_GraphicCommands.cxx
src/Draw/Draw_Interpretor.cxx
src/Draw/Draw_PloadCommands.cxx
src/Draw/Draw_ProgressIndicator.cxx
src/Draw/Draw_Segment2D.cxx
src/Draw/Draw_VariableCommands.cxx
src/Draw/Draw_Viewer.cxx
src/Draw/Draw_Viewer.hxx
src/Draw/Draw_Window.cxx
src/DrawDim/DrawDim_PlanarDiameter.cxx
src/DrawDim/DrawDim_PlanarDistance.cxx
src/DrawDim/DrawDim_PlanarRadius.cxx
src/DrawDim/DrawDim_Radius.cxx
src/DrawTrSurf/DrawTrSurf.cxx
src/DrawTrSurf/DrawTrSurf_Debug.cxx
src/DrawTrSurf/DrawTrSurf_Point.cxx
src/DsgPrs/DsgPrs_OffsetPresentation.cxx
src/Extrema/Extrema_FuncExtCS.cxx
src/Extrema/Extrema_FuncExtSS.cxx
src/FEmTool/FEmTool_Assembly.cxx
src/FEmTool/FEmTool_ProfileMatrix.cxx
src/FSD/FSD_CmpFile.cxx
src/FSD/FSD_FStream.hxx
src/FSD/FSD_File.cxx
src/FairCurve/FairCurve_Batten.cxx
src/FairCurve/FairCurve_Energy.cxx
src/FairCurve/FairCurve_MinimalVariation.cxx
src/Geom/Geom_OsculatingSurface.cxx
src/Geom2dConvert/Geom2dConvert_ApproxCurve.cxx
src/Geom2dGcc/Geom2dGcc_FunctionTanCuPnt.cxx
src/Geom2dHatch/Geom2dHatch_Elements.cxx
src/Geom2dHatch/Geom2dHatch_Hatcher.cxx
src/GeomConvert/GeomConvert_ApproxCurve.cxx
src/GeomConvert/GeomConvert_ApproxSurface.cxx
src/GeomFill/GeomFill_CircularBlendFunc.cxx
src/GeomFill/GeomFill_ConstantBiNormal.cxx
src/GeomFill/GeomFill_ConstrainedFilling.cxx
src/GeomFill/GeomFill_CorrectedFrenet.cxx
src/GeomFill/GeomFill_Darboux.cxx
src/GeomFill/GeomFill_Frenet.cxx
src/GeomFill/GeomFill_FunctionGuide.cxx
src/GeomFill/GeomFill_GuideTrihedronAC.cxx
src/GeomFill/GeomFill_GuideTrihedronPlan.cxx
src/GeomFill/GeomFill_LocationGuide.cxx
src/GeomFill/GeomFill_NSections.cxx
src/GeomFill/GeomFill_Pipe.cxx
src/GeomFill/GeomFill_Sweep.cxx
src/GeomFill/GeomFill_SweepSectionGenerator.cxx
src/GeomLib/GeomLib.cxx
src/GeomLib/GeomLib_CheckCurveOnSurface.cxx
src/GeomPlate/GeomPlate_BuildPlateSurface.cxx
src/GeomPlate/GeomPlate_CurveConstraint.cxx
src/GeomPlate/GeomPlate_MakeApprox.cxx
src/GeomToIGES/GeomToIGES_GeomCurve.cxx
src/GeomToStep/GeomToStep_MakeBoundedCurve.cxx
src/GeomToStep/GeomToStep_MakeConic.cxx
src/GeomToStep/GeomToStep_MakeCurve.cxx
src/GeomToStep/GeomToStep_MakeSurface.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_ConstraintCommands.cxx
src/GeometryTest/GeometryTest_ContinuityCommands.cxx
src/GeometryTest/GeometryTest_CurveCommands.cxx
src/GeometryTest/GeometryTest_CurveTanCommands.cxx
src/GeometryTest/GeometryTest_TestProjCommands.cxx
src/GeomliteTest/GeomliteTest_API2dCommands.cxx
src/GeomliteTest/GeomliteTest_ApproxCommands.cxx
src/GeomliteTest/GeomliteTest_CurveCommands.cxx
src/GeomliteTest/GeomliteTest_SurfaceCommands.cxx
src/HLRAlgo/HLRAlgo_PolyData.cxx
src/HLRAlgo/HLRAlgo_PolyInternalData.cxx
src/HLRBRep/HLRBRep_CurveTool.lxx
src/HLRBRep/HLRBRep_Data.cxx
src/HLRBRep/HLRBRep_Hider.cxx
src/HLRBRep/HLRBRep_InternalAlgo.cxx
src/HLRBRep/HLRBRep_PolyAlgo.cxx
src/HLRTest/HLRTest.cxx
src/HLRTest/HLRTest_DrawablePolyEdgeTool.cxx
src/HLRTest/HLRTest_OutLiner.cxx
src/HLRTest/HLRTest_Projector.cxx
src/HLRTopoBRep/HLRTopoBRep_DSFiller.cxx
src/HLRTopoBRep/HLRTopoBRep_FaceIsoLiner.cxx
src/HatchGen/HatchGen_Domain.cxx
src/HatchGen/HatchGen_PointOnElement.cxx
src/HatchGen/HatchGen_PointOnHatching.cxx
src/IFGraph/IFGraph_SCRoots.cxx
src/IFSelect/IFSelect_Activator.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_ShareOutResult.cxx
src/IFSelect/IFSelect_SignatureList.cxx
src/IFSelect/IFSelect_TransformStandard.cxx
src/IFSelect/IFSelect_WorkSession.cxx
src/IGESAppli/IGESAppli_ToolDrilledHole.cxx
src/IGESAppli/IGESAppli_ToolElementResults.cxx
src/IGESAppli/IGESAppli_ToolFiniteElement.cxx
src/IGESAppli/IGESAppli_ToolFlow.cxx
src/IGESAppli/IGESAppli_ToolFlowLineSpec.cxx
src/IGESAppli/IGESAppli_ToolLevelFunction.cxx
src/IGESAppli/IGESAppli_ToolLevelToPWBLayerMap.cxx
src/IGESAppli/IGESAppli_ToolLineWidening.cxx
src/IGESAppli/IGESAppli_ToolNodalConstraint.cxx
src/IGESAppli/IGESAppli_ToolNodalDisplAndRot.cxx
src/IGESAppli/IGESAppli_ToolNodalResults.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/IGESCAFControl/IGESCAFControl_Reader.cxx
src/IGESCAFControl/IGESCAFControl_Writer.cxx
src/IGESControl/IGESControl_IGESBoundary.cxx
src/IGESControl/IGESControl_Reader.cxx
src/IGESControl/IGESControl_Writer.cxx
src/IGESData/IGESData.cxx
src/IGESData/IGESData_BasicEditor.cxx
src/IGESData/IGESData_DefaultSpecific.cxx
src/IGESData/IGESData_IGESDumper.cxx
src/IGESData/IGESData_IGESModel.cxx
src/IGESData/IGESData_IGESWriter.cxx
src/IGESData/IGESData_ReadWriteModule.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_ToolOrdinateDimension.cxx
src/IGESDimen/IGESDimen_ToolPointDimension.cxx
src/IGESDimen/IGESDimen_ToolRadiusDimension.cxx
src/IGESDimen/IGESDimen_ToolSection.cxx
src/IGESDimen/IGESDimen_ToolSectionedArea.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_ToolCurveOnSurface.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_ToolRuledSurface.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_SelectName.cxx
src/IGESSelect/IGESSelect_SplineToBSpline.cxx
src/IGESSelect/IGESSelect_WorkLibrary.cxx
src/IGESSolid/IGESSolid_ToolBlock.cxx
src/IGESSolid/IGESSolid_ToolBooleanTree.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.cxx
src/IGESToBRep/IGESToBRep_BasicCurve.cxx
src/IGESToBRep/IGESToBRep_BasicSurface.cxx
src/IGESToBRep/IGESToBRep_CurveAndSurface.cxx
src/IGESToBRep/IGESToBRep_TopoSurface.cxx
src/IVtkDraw/IVtkDraw_Interactor.cxx
src/IntAna/IntAna_Curve.cxx
src/IntAna/IntAna_IntLinTorus.cxx
src/IntAna/IntAna_IntQuadQuad.cxx
src/IntAna2d/IntAna2d_AnaIntersection_5.cxx
src/IntAna2d/IntAna2d_AnaIntersection_8.cxx
src/IntAna2d/IntAna2d_Outils.cxx
src/IntCurve/IntCurve_IConicTool.cxx
src/IntCurve/IntCurve_IntConicConic.cxx
src/IntCurve/IntCurve_IntConicConic_1.cxx
src/IntCurve/IntCurve_Polygon2dGen.gxx
src/IntCurve/IntCurve_ProjectOnPConicTool.cxx
src/IntCurveSurface/IntCurveSurface_Inter.gxx
src/IntCurveSurface/IntCurveSurface_Intersection.cxx
src/IntCurveSurface/IntCurveSurface_IntersectionPoint.cxx
src/IntCurveSurface/IntCurveSurface_IntersectionSegment.cxx
src/IntCurveSurface/IntCurveSurface_Polygon.gxx
src/IntCurveSurface/IntCurveSurface_PolygonTool.gxx
src/IntPatch/IntPatch_ALine.cxx
src/IntPatch/IntPatch_ImpPrmIntersection.cxx
src/IntPatch/IntPatch_InterferencePolyhedron.cxx
src/IntPatch/IntPatch_Intersection.cxx
src/IntPatch/IntPatch_LineConstructor.cxx
src/IntPatch/IntPatch_Point.cxx
src/IntPatch/IntPatch_PolyArc.cxx
src/IntPatch/IntPatch_Polygo.cxx
src/IntPatch/IntPatch_Polyhedron.cxx
src/IntPatch/IntPatch_PrmPrmIntersection.cxx
src/IntPatch/IntPatch_RLine.cxx
src/IntPatch/IntPatch_RstInt.cxx
src/IntPatch/IntPatch_SpecialPoints.cxx
src/IntPatch/IntPatch_WLine.cxx
src/IntPolyh/IntPolyh_SectionLine.cxx
src/IntRes2d/IntRes2d_Intersection.cxx
src/IntRes2d/IntRes2d_Transition.cxx
src/IntRes2d/IntRes2d_Transition.lxx
src/IntStart/IntStart_SearchOnBoundaries.gxx
src/IntTools/IntTools_FaceFace.cxx
src/IntWalk/IntWalk_IWLine.lxx
src/IntWalk/IntWalk_IWalking_2.gxx
src/IntWalk/IntWalk_PWalking.cxx
src/Interface/Interface_Check.cxx
src/Interface/Interface_CheckIterator.cxx
src/Interface/Interface_FileReaderData.cxx
src/Interface/Interface_FloatWriter.hxx
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/Intf/Intf_SectionPoint.cxx
src/Intf/Intf_TangentZone.cxx
src/LDOM/LDOMBasicString.cxx
src/LDOM/LDOMParser.cxx
src/LDOM/LDOMParser.hxx
src/LDOM/LDOM_BasicNode.cxx
src/LDOM/LDOM_MemManager.cxx
src/LDOM/LDOM_OSStream.hxx
src/LDOM/LDOM_XmlReader.cxx
src/LDOM/LDOM_XmlReader.hxx
src/LDOM/LDOM_XmlWriter.cxx
src/LocOpe/LocOpe_BuildShape.cxx
src/LocOpe/LocOpe_DPrism.cxx
src/LocOpe/LocOpe_FindEdges.cxx
src/LocOpe/LocOpe_Generator.cxx
src/LocOpe/LocOpe_SplitDrafts.cxx
src/LocOpe/LocOpe_SplitShape.cxx
src/LocOpe/LocOpe_Spliter.cxx
src/LocOpe/LocOpe_WiresOnShape.cxx
src/LocalAnalysis/LocalAnalysis.cxx
src/MAT/MAT_Bisector.cxx
src/MAT/MAT_Graph.cxx
src/MAT2d/MAT2d_Circuit.cxx
src/MAT2d/MAT2d_Connexion.cxx
src/MAT2d/MAT2d_Mat2d.cxx
src/MAT2d/MAT2d_Tool2d.cxx
src/MeshTest/MeshTest_CheckTopology.cxx
src/MeshTest/MeshTest_Debug.cxx
src/MeshTest/MeshTest_PluginCommands.cxx
src/MeshVS/MeshVS_Mesh.cxx
src/Message/Message.hxx
src/Message/Message_Messenger.hxx
src/Message/Message_PrinterOStream.cxx
src/Message/Message_PrinterOStream.hxx
src/MoniTool/MoniTool_Timer.cxx
src/MoniTool/MoniTool_TypedValue.cxx
src/NCollection/NCollection_BaseMap.cxx
src/NCollection/NCollection_UBTreeFiller.hxx
src/OSD/OSD_Path.cxx
src/OSD/OSD_Timer.cxx
src/OSD/OSD_signal.cxx
src/OpenGl/OpenGl_View_Raytrace.cxx
src/PCDM/PCDM_ReadWriter_1.cxx
src/PLib/PLib.cxx
src/Plugin/Plugin.cxx
src/Poly/Poly.cxx
src/Poly/Poly_CoherentNode.cxx
src/Poly/Poly_MakeLoops.cxx
src/ProjLib/ProjLib_CompProjectedCurve.cxx
src/ProjLib/ProjLib_ComputeApprox.cxx
src/ProjLib/ProjLib_ComputeApproxOnPolarSurface.cxx
src/ProjLib/ProjLib_PrjFunc.cxx
src/ProjLib/ProjLib_ProjectOnSurface.cxx
src/QABugs/QABugs_1.cxx
src/QABugs/QABugs_10.cxx
src/QABugs/QABugs_11.cxx
src/QABugs/QABugs_13.cxx
src/QABugs/QABugs_14.cxx
src/QABugs/QABugs_17.cxx
src/QABugs/QABugs_19.cxx
src/QABugs/QABugs_20.cxx
src/QABugs/QABugs_3.cxx
src/QABugs/QABugs_6.cxx
src/QADNaming/QADNaming.cxx
src/QADNaming/QADNaming_BasicCommands.cxx
src/QADNaming/QADNaming_SelectionCommands.cxx
src/QADNaming/QADNaming_ToolsCommands.cxx
src/QANCollection/QANCollection_Perf.cxx
src/QANCollection/QANCollection_Test.cxx
src/Quantity/Quantity_Color.cxx
src/RWHeaderSection/RWHeaderSection_ReadWriteModule.cxx
src/RWStepAP214/RWStepAP214_ReadWriteModule.cxx
src/RWStepGeom/RWStepGeom_RWBSplineCurveWithKnots.cxx
src/RWStepGeom/RWStepGeom_RWBSplineSurfaceWithKnots.cxx
src/RWStepGeom/RWStepGeom_RWRationalBSplineCurve.cxx
src/RWStepGeom/RWStepGeom_RWRationalBSplineSurface.cxx
src/RWStepGeom/RWStepGeom_RWToroidalSurface.cxx
src/RWStepShape/RWStepShape_RWEdgeCurve.cxx
src/RWStepShape/RWStepShape_RWEdgeLoop.cxx
src/RWStepShape/RWStepShape_RWFaceBound.cxx
src/RWStl/RWStl_Reader.cxx
src/Resource/Resource_Manager.cxx
src/STEPCAFControl/STEPCAFControl_Reader.cxx
src/STEPCAFControl/STEPCAFControl_Writer.cxx
src/STEPConstruct/STEPConstruct.cxx
src/STEPConstruct/STEPConstruct_Assembly.cxx
src/STEPConstruct/STEPConstruct_Styles.cxx
src/STEPConstruct/STEPConstruct_UnitContext.cxx
src/STEPConstruct/STEPConstruct_ValidationProps.cxx
src/STEPControl/STEPControl_ActorRead.cxx
src/STEPControl/STEPControl_ActorWrite.cxx
src/STEPControl/STEPControl_Reader.cxx
src/STEPSelections/STEPSelections_AssemblyExplorer.cxx
src/SWDRAW/SWDRAW_ShapeAnalysis.cxx
src/SWDRAW/SWDRAW_ShapeExtend.cxx
src/SWDRAW/SWDRAW_ShapeFix.cxx
src/SWDRAW/SWDRAW_ShapeUpgrade.cxx
src/ShapeAnalysis/ShapeAnalysis_CheckSmallFace.cxx
src/ShapeAnalysis/ShapeAnalysis_Curve.cxx
src/ShapeAnalysis/ShapeAnalysis_Surface.cxx
src/ShapeAnalysis/ShapeAnalysis_WireOrder.cxx
src/ShapeBuild/ShapeBuild_Edge.cxx
src/ShapeBuild/ShapeBuild_ReShape.cxx
src/ShapeConstruct/ShapeConstruct.cxx
src/ShapeConstruct/ShapeConstruct_Curve.cxx
src/ShapeConstruct/ShapeConstruct_ProjectCurveOnSurface.cxx
src/ShapeCustom/ShapeCustom_BSplineRestriction.cxx
src/ShapeCustom/ShapeCustom_Curve.cxx
src/ShapeCustom/ShapeCustom_Surface.cxx
src/ShapeExtend/ShapeExtend_ComplexCurve.cxx
src/ShapeExtend/ShapeExtend_CompositeSurface.cxx
src/ShapeExtend/ShapeExtend_MsgRegistrator.cxx
src/ShapeFix/ShapeFix.cxx
src/ShapeFix/ShapeFix_ComposeShell.cxx
src/ShapeFix/ShapeFix_Edge.cxx
src/ShapeFix/ShapeFix_EdgeProjAux.cxx
src/ShapeFix/ShapeFix_Face.cxx
src/ShapeFix/ShapeFix_FaceConnect.cxx
src/ShapeFix/ShapeFix_FixSmallFace.cxx
src/ShapeFix/ShapeFix_IntersectionTool.cxx
src/ShapeFix/ShapeFix_Solid.cxx
src/ShapeFix/ShapeFix_Wire.cxx
src/ShapeFix/ShapeFix_WireSegment.cxx
src/ShapeFix/ShapeFix_Wire_1.cxx
src/ShapeFix/ShapeFix_Wireframe.cxx
src/ShapeProcess/ShapeProcess.cxx
src/ShapeProcess/ShapeProcess_Context.cxx
src/ShapeProcess/ShapeProcess_OperLibrary.cxx
src/ShapeProcess/ShapeProcess_ShapeContext.cxx
src/ShapeUpgrade/ShapeUpgrade_ClosedFaceDivide.cxx
src/ShapeUpgrade/ShapeUpgrade_ConvertCurve2dToBezier.cxx
src/ShapeUpgrade/ShapeUpgrade_ConvertCurve3dToBezier.cxx
src/ShapeUpgrade/ShapeUpgrade_ConvertSurfaceToBezierBasis.cxx
src/ShapeUpgrade/ShapeUpgrade_FixSmallBezierCurves.cxx
src/ShapeUpgrade/ShapeUpgrade_SplitCurve.cxx
src/ShapeUpgrade/ShapeUpgrade_SplitCurve2d.cxx
src/ShapeUpgrade/ShapeUpgrade_SplitCurve2dContinuity.cxx
src/ShapeUpgrade/ShapeUpgrade_SplitCurve3d.cxx
src/ShapeUpgrade/ShapeUpgrade_SplitCurve3dContinuity.cxx
src/ShapeUpgrade/ShapeUpgrade_SplitSurface.cxx
src/ShapeUpgrade/ShapeUpgrade_SplitSurfaceContinuity.cxx
src/ShapeUpgrade/ShapeUpgrade_UnifySameDomain.cxx
src/ShapeUpgrade/ShapeUpgrade_WireDivide.cxx
src/Standard/Standard_ErrorHandler.cxx
src/Standard/Standard_GUID.cxx
src/Standard/Standard_Real.cxx
src/Standard/Standard_Type.cxx
src/StdDrivers/StdDrivers.cxx
src/StdLDrivers/StdLDrivers.cxx
src/StdLDrivers/StdLDrivers_DocumentRetrievalDriver.cxx
src/StdPrs/StdPrs_WFDeflectionRestrictedFace.cxx
src/StdSelect/StdSelect_BRepSelectionTool.cxx
src/StepAP209/StepAP209_Construct.cxx
src/StepBasic/StepBasic_SiUnit.cxx
src/StepData/StepData_HeaderTool.cxx
src/StepData/StepData_StepDumper.cxx
src/StepData/StepData_StepModel.cxx
src/StepData/StepData_StepReaderData.cxx
src/StepData/StepData_StepReaderTool.cxx
src/StepData/StepData_StepWriter.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/StepToGeom/StepToGeom.cxx
src/StepToGeom/StepToGeom_MakeBSplineCurve.pxx
src/StepToTopoDS/StepToTopoDS_Builder.cxx
src/StepToTopoDS/StepToTopoDS_GeometricTool.cxx
src/StepToTopoDS/StepToTopoDS_TranslateCompositeCurve.cxx
src/StepToTopoDS/StepToTopoDS_TranslateEdge.cxx
src/StepToTopoDS/StepToTopoDS_TranslateEdgeLoop.cxx
src/StepToTopoDS/StepToTopoDS_TranslateFace.cxx
src/StepToTopoDS/StepToTopoDS_TranslateShell.cxx
src/Storage/Storage_Schema.cxx
src/TCollection/TCollection_AsciiString.cxx
src/TCollection/TCollection_BasicMap.cxx
src/TCollection/TCollection_HExtendedString.cxx
src/TDF/TDF_Attribute.cxx
src/TDF/TDF_ChildIterator.hxx
src/TDF/TDF_CopyLabel.cxx
src/TDF/TDF_Data.cxx
src/TDF/TDF_DataSet.cxx
src/TDF/TDF_Delta.cxx
src/TDF/TDF_DeltaOnForget.cxx
src/TDF/TDF_DeltaOnResume.cxx
src/TDF/TDF_IDFilter.cxx
src/TDF/TDF_Label.cxx
src/TDF/TDF_RelocationTable.cxx
src/TDF/TDF_Tool.cxx
src/TDF/TDF_Transaction.cxx
src/TDataStd/TDataStd_AsciiString.cxx
src/TDataStd/TDataStd_BooleanArray.cxx
src/TDataStd/TDataStd_BooleanList.cxx
src/TDataStd/TDataStd_ByteArray.cxx
src/TDataStd/TDataStd_DeltaOnModificationOfByteArray.cxx
src/TDataStd/TDataStd_DeltaOnModificationOfExtStringArray.cxx
src/TDataStd/TDataStd_DeltaOnModificationOfIntArray.cxx
src/TDataStd/TDataStd_DeltaOnModificationOfIntPackedMap.cxx
src/TDataStd/TDataStd_DeltaOnModificationOfRealArray.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_Application.cxx
src/TDocStd/TDocStd_Application.hxx
src/TDocStd/TDocStd_Document.cxx
src/TDocStd/TDocStd_MultiTransactionManager.cxx
src/TFunction/TFunction_Iterator.cxx
src/TFunction/TFunction_Logbook.cxx
src/TNaming/TNaming.cxx
src/TNaming/TNaming_CopyShape.cxx
src/TNaming/TNaming_Identifier.cxx
src/TNaming/TNaming_Localizer.cxx
src/TNaming/TNaming_Name.cxx
src/TNaming/TNaming_NamedShape.cxx
src/TNaming/TNaming_Naming.cxx
src/TNaming/TNaming_NamingTool.cxx
src/TNaming/TNaming_Selector.cxx
src/TNaming/TNaming_ShapesSet.cxx
src/TNaming/TNaming_Tool.cxx
src/TNaming/TNaming_TranslateTool.cxx
src/TNaming/TNaming_Translator.cxx
src/TNaming/TNaming_UsedShapes.cxx
src/TObj/TObj_Persistence.cxx
src/TPrsStd/TPrsStd_ConstraintTools.cxx
src/TPrsStd/TPrsStd_DriverTable.cxx
src/TopClass/TopClass_Classifier3d.gxx
src/TopClass/TopClass_SolidClassifier.gxx
src/TopCnx/TopCnx_EdgeFaceTransition.cxx
src/TopLoc/TopLoc_Datum3D.cxx
src/TopLoc/TopLoc_Location.cxx
src/TopOpeBRep/TopOpeBRep_DSFiller.cxx
src/TopOpeBRep/TopOpeBRep_EdgesFiller.cxx
src/TopOpeBRep/TopOpeBRep_EdgesIntersector.cxx
src/TopOpeBRep/TopOpeBRep_FFDumper.cxx
src/TopOpeBRep/TopOpeBRep_FaceEdgeFiller_DEB.cxx
src/TopOpeBRep/TopOpeBRep_FaceEdgeIntersector.cxx
src/TopOpeBRep/TopOpeBRep_FacesFiller.cxx
src/TopOpeBRep/TopOpeBRep_FacesFiller_1.cxx
src/TopOpeBRep/TopOpeBRep_FacesIntersector.cxx
src/TopOpeBRep/TopOpeBRep_Hctxee2d.cxx
src/TopOpeBRep/TopOpeBRep_Hctxff2d.cxx
src/TopOpeBRep/TopOpeBRep_LineInter.cxx
src/TopOpeBRep/TopOpeBRep_Point2d.cxx
src/TopOpeBRep/TopOpeBRep_ProcessGR.cxx
src/TopOpeBRep/TopOpeBRep_ProcessSectionEdges.cxx
src/TopOpeBRep/TopOpeBRep_ShapeIntersector.cxx
src/TopOpeBRep/TopOpeBRep_ShapeIntersector2d.cxx
src/TopOpeBRep/TopOpeBRep_ShapeScanner.cxx
src/TopOpeBRep/TopOpeBRep_VPointInter.cxx
src/TopOpeBRep/TopOpeBRep_mergePDS.cxx
src/TopOpeBRep/TopOpeBRep_trace.cxx
src/TopOpeBRep/TopOpeBRep_traceALWL.cxx
src/TopOpeBRep/TopOpeBRep_traceSIFF.cxx
src/TopOpeBRep/TopOpeBRep_traceSIFF.hxx
src/TopOpeBRep/TopOpeBRep_vpr.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Area1dBuilder.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Area2dBuilder.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_BuildEdges.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_BuildFaces.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Builder.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_BuilderON.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_BuilderON2d.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_CompositeClassifier.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_End.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_FREGU.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_FaceBuilder.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_FuseFace.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_GIter.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_GTool.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_GTopo.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Grid.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_GridEE.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_GridFF.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_GridSS.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Griddump.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_KPart.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Merge.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Pave.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_PaveClassifier.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_PaveSet.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_SREGU.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Section.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_ShapeSet.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_ShellFaceClassifier.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_ShellFaceSet.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_Tools.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_WireEdgeSet.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_fctwes.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_ffsfs.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_ffwesk.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_keep.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_kpkole.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_makeedges.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_makefaces.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_makesolids.cxx
src/TopOpeBRepBuild/TopOpeBRepBuild_trace.cxx
src/TopOpeBRepDS/TopOpeBRepDS_Check.cxx
src/TopOpeBRepDS/TopOpeBRepDS_DRAW.cxx
src/TopOpeBRepDS/TopOpeBRepDS_HDataStructure.cxx
src/TopOpeBRepDS/TopOpeBRepDS_TKI.cxx
src/TopOpeBRepDS/TopOpeBRepDS_connex.cxx
src/TopOpeBRepTool/TopOpeBRepTool_2d.cxx
src/TopOpeBRepTool/TopOpeBRepTool_BoxSort.cxx
src/TopOpeBRepTool/TopOpeBRepTool_CLASSI.cxx
src/TopOpeBRepTool/TopOpeBRepTool_CORRISO.cxx
src/TopOpeBRepTool/TopOpeBRepTool_CurveTool.cxx
src/TopOpeBRepTool/TopOpeBRepTool_DRAW.cxx
src/TopOpeBRepTool/TopOpeBRepTool_FuseEdges.cxx
src/TopOpeBRepTool/TopOpeBRepTool_GEOMETRY.cxx
src/TopOpeBRepTool/TopOpeBRepTool_HBoxTool.cxx
src/TopOpeBRepTool/TopOpeBRepTool_PURGE.cxx
src/TopOpeBRepTool/TopOpeBRepTool_REGUS.cxx
src/TopOpeBRepTool/TopOpeBRepTool_REGUW.cxx
src/TopOpeBRepTool/TopOpeBRepTool_RegularizeW.cxx
src/TopOpeBRepTool/TopOpeBRepTool_STATE.cxx
src/TopOpeBRepTool/TopOpeBRepTool_ShapeClassifier.cxx
src/TopOpeBRepTool/TopOpeBRepTool_ShapeTool.cxx
src/TopOpeBRepTool/TopOpeBRepTool_TOOL.cxx
src/TopOpeBRepTool/TopOpeBRepTool_box.cxx
src/TopOpeBRepTool/TopOpeBRepTool_faulty.cxx
src/TopTools/TopTools_LocationSet.cxx
src/TopTools/TopTools_ShapeSet.cxx
src/TopoDSToStep/TopoDSToStep_Builder.cxx
src/TopoDSToStep/TopoDSToStep_MakeBrepWithVoids.cxx
src/TopoDSToStep/TopoDSToStep_MakeStepEdge.cxx
src/TopoDSToStep/TopoDSToStep_MakeStepFace.cxx
src/TopoDSToStep/TopoDSToStep_MakeStepWire.cxx
src/TopoDSToStep/TopoDSToStep_Tool.cxx
src/TopoDSToStep/TopoDSToStep_WireframeBuilder.cxx
src/Transfer/Transfer_FinderProcess.cxx
src/Transfer/Transfer_TransferProcess.gxx
src/Transfer/Transfer_TransientProcess.cxx
src/TransferBRep/TransferBRep_Reader.cxx
src/Units/Units.cxx
src/Units/Units_Dimensions.cxx
src/Units/Units_Explorer.cxx
src/Units/Units_Lexicon.lxx
src/Units/Units_Measurement.cxx
src/Units/Units_Quantity.cxx
src/Units/Units_Sentence.cxx
src/Units/Units_Sentence.lxx
src/Units/Units_ShiftedToken.cxx
src/Units/Units_ShiftedUnit.cxx
src/Units/Units_Token.cxx
src/Units/Units_Unit.cxx
src/Units/Units_UnitSentence.cxx
src/Units/Units_UnitsDictionary.cxx
src/Units/Units_UnitsDictionary.lxx
src/Units/Units_UnitsLexicon.lxx
src/Units/Units_UnitsSystem.cxx
src/UnitsAPI/UnitsAPI.cxx
src/UnitsMethods/UnitsMethods.cxx
src/ViewerTest/ViewerTest.cxx
src/ViewerTest/ViewerTest_ObjectCommands.cxx
src/ViewerTest/ViewerTest_ViewerCommands.cxx
src/VrmlAPI/VrmlAPI_Writer.cxx
src/VrmlConverter/VrmlConverter_Curve.cxx
src/VrmlConverter/VrmlConverter_DeflectionCurve.cxx
src/VrmlConverter/VrmlConverter_Projector.cxx
src/VrmlConverter/VrmlConverter_ShadedShape.cxx
src/VrmlConverter/VrmlConverter_WFDeflectionRestrictedFace.cxx
src/VrmlConverter/VrmlConverter_WFDeflectionShape.cxx
src/VrmlConverter/VrmlConverter_WFRestrictedFace.cxx
src/VrmlConverter/VrmlConverter_WFShape.cxx
src/VrmlData/VrmlData_Group.cxx
src/VrmlData/VrmlData_Scene.cxx
src/VrmlData/VrmlData_Scene.hxx
src/XCAFDoc/XCAFDoc_GraphNode.cxx
src/XCAFDoc/XCAFDoc_ShapeTool.cxx
src/XCAFDoc/XCAFDoc_ShapeTool.hxx
src/XCAFPrs/XCAFPrs.cxx
src/XCAFPrs/XCAFPrs_Driver.cxx
src/XDEDRAW/XDEDRAW.cxx
src/XDEDRAW/XDEDRAW_Props.cxx
src/XDEDRAW/XDEDRAW_Views.cxx
src/XSAlgo/XSAlgo_AlgoContainer.cxx
src/XSControl/XSControl_FuncShape.cxx
src/XSControl/XSControl_Functions.cxx
src/XSControl/XSControl_Reader.hxx
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/XSDRAWSTEP/XSDRAWSTEP.cxx
src/XSDRAWSTLVRML/XSDRAWSTLVRML.cxx
src/XSDRAWSTLVRML/XSDRAWSTLVRML_DataSource.cxx
src/XmlDrivers/XmlDrivers.cxx
src/XmlLDrivers/XmlLDrivers.cxx
src/XmlLDrivers/XmlLDrivers_DocumentRetrievalDriver.cxx
src/XmlLDrivers/XmlLDrivers_DocumentStorageDriver.cxx
src/XmlMDF/XmlMDF.cxx
src/XmlMDataStd/XmlMDataStd_ByteArrayDriver.cxx
src/XmlMDataXtd/XmlMDataXtd_TriangulationDriver.cxx
src/XmlMNaming/XmlMNaming_NamedShapeDriver.cxx
src/XmlMNaming/XmlMNaming_NamingDriver.cxx
src/XmlMXCAFDoc/XmlMXCAFDoc_LocationDriver.cxx
src/XmlTObjDrivers/XmlTObjDrivers.cxx
src/XmlXCAFDrivers/XmlXCAFDrivers.cxx
src/math/math_BissecNewton.cxx
src/math/math_BracketMinimum.cxx
src/math/math_BracketedRoot.cxx
src/math/math_DirectPolynomialRoots.cxx
src/math/math_FunctionAllRoots.cxx
src/math/math_FunctionRoot.cxx
src/math/math_FunctionRoots.cxx
src/math/math_FunctionSetRoot.cxx
src/math/math_Gauss.cxx
src/math/math_GlobOptMin.cxx
src/math/math_Jacobi.cxx
src/math/math_NewtonMinimum.cxx
src/math/math_TrigonometricFunctionRoots.cxx
src/math/math_Uzawa.cxx
tools/DFBrowser/DFBrowser_DumpView.cxx
tools/ToolsDraw/ToolsDraw.cxx

index b3dc894..00f2224 100755 (executable)
@@ -596,8 +596,8 @@ void GeomConstraints_Presentation::sample3()
   aFileName += "\\points.dat";
 
   // open file
-  ifstream aFile;
-  aFile.open(aFileName.ToCString(), ios::failbit);
+  std::ifstream aFile;
+  aFile.open(aFileName.ToCString(), std::ios::failbit);
   if(!aFile)
   {
     aFileName += " was not found.  The sample can not be shown.";
index a7e3552..e29b870 100755 (executable)
@@ -80,7 +80,7 @@ void GeoAlgo_Sol::Build(const TColgp_SequenceOfXYZ& seqOfXYZ)
 
   //Filling plate
   Plate_Plate myPlate;
-  cout<<"  * Nunber of points  = "<< nbPnt << endl;
+  std::cout<<"  * Nunber of points  = "<< nbPnt << std::endl;
   for (i=1; i<= nbPnt; i++) {
     gp_Pnt ptProj(seqOfXYZ.Value(i).X(), seqOfXYZ.Value(i).Y(), 0. );
     gp_Vec aVec( ptProj, seqOfXYZ.Value(i));
@@ -90,7 +90,7 @@ void GeoAlgo_Sol::Build(const TColgp_SequenceOfXYZ& seqOfXYZ)
   }
   myPlate.SolveTI(2, 1.);// resolution 
   if (!myPlate.IsDone()) {
-    cout<<" plate computation has failed"<< endl;
+    std::cout<<" plate computation has failed"<< std::endl;
     myIsDone=Standard_False;
   }
 
@@ -144,11 +144,11 @@ Handle(Geom_BSplineSurface) GeoAlgo_Sol::Read(const Standard_CString aGroundName
   Standard_Integer nbPnt=0;
 
   // Read points from the file
-  filebuf fic;
-  istream in(&fic);
+  std::filebuf fic;
+  std::istream in(&fic);
 
-  if (!fic.open(aGroundName,ios::in)){
-    cout << " impossible to open a file : "<<aGroundName<<endl;
+  if (!fic.open(aGroundName,std::ios::in)){
+    std::cout << " impossible to open a file : "<<aGroundName<<std::endl;
     myIsDone = Standard_False;
     return 0;
   }
index b5daf19..562812f 100755 (executable)
@@ -1217,7 +1217,7 @@ Standard_Real ang = D1.Angle(D2);                \n\
   Handle(ISession_Direction) aDirection2 = new ISession_Direction(gp_Pnt(0,0,0),D2,3);
   aDoc->GetAISContext()->Display(aDirection2, Standard_False);
 
-  cout<<" D1.Angle(D2) : "<<ang<<endl;
+  std::cout<<" D1.Angle(D2) : "<<ang<<std::endl;
 
   TCollection_AsciiString Message2 (ang);
   TCollection_AsciiString Message3 (ang/M_PI/180);
index c7bfa42..16933e4 100755 (executable)
@@ -1081,9 +1081,9 @@ void CGeometryDoc::OnCreateSol()
     SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
     CString filename = dlg.GetPathName();
 
-    filebuf fic;
-    istream in(&fic);  
-    if (!fic.open (filename, ios::in))
+    std::filebuf fic;
+    std::istream in(&fic);  
+    if (!fic.open (filename, std::ios::in))
       MessageBoxW (AfxGetApp()->m_pMainWnd->m_hWnd, L"Error : Unable to open file", L"CasCade Error", MB_ICONERROR);
 
     TColgp_SequenceOfXYZ seqOfXYZ;
@@ -1162,7 +1162,7 @@ void CGeometryDoc::OnSimplify()
 
   std::filebuf aFileBuf;
   std::istream aStream (&aFileBuf);
-  if (!aFileBuf.open (initfile, ios::in))
+  if (!aFileBuf.open (initfile, std::ios::in))
   {
     initfile += L" was not found. The sample can not be shown.";
     myCResultDialog.SetText (initfile);
index a5f195a..4481c82 100755 (executable)
@@ -4949,9 +4949,9 @@ void CModelingDoc::InputEvent(const Standard_Integer /*x*/,
                                ((OCC_MainFrame*)AfxGetMainWnd())->SetStatusMessage("Building the tangent surface...");
                                SetCursor(AfxGetApp()->LoadStandardCursor(IDC_WAIT));
                                CString filename = dlg.GetPathName();
-                               filebuf fic;
-                               istream in(&fic);  
-                               if (!fic.open(filename, ios::in))
+                               std::filebuf fic;
+                               std::istream in(&fic);  
+                               if (!fic.open(filename, std::ios::in))
                                        MessageBoxW (AfxGetApp()->m_pMainWnd->m_hWnd, L"Error : Unable to open file", L"CasCade Error", MB_ICONERROR);
                                Standard_Real x,y,z;
                                BRep_Builder B;
index 9524025..fd99f3d 100755 (executable)
@@ -233,7 +233,7 @@ void CViewer2dDoc::OnBUTTONTestFace()
 
     std::filebuf aFileBuf;
     std::istream aStream (&aFileBuf);
-    if (!aFileBuf.open (dlg.GetPathName(), ios::in))
+    if (!aFileBuf.open (dlg.GetPathName(), std::ios::in))
     {
       AfxMessageBox (L"The shape must be not a null Face");
       return;
index b542673..c0badcc 100755 (executable)
@@ -164,7 +164,7 @@ Standard_Boolean TexturesExt_Presentation::loadShape(TopoDS_Shape& aShape,
 
   std::filebuf aFileBuf;
   std::istream aStream (&aFileBuf);
-  if (!aFileBuf.open (initfile, ios::in))
+  if (!aFileBuf.open (initfile, std::ios::in))
   {
     initfile += L" was not found. The sample can not be shown.";
     getDocument()->UpdateResultMessageDlg ("Textured Shape", initfile);
index aebda0d..03b667f 100755 (executable)
@@ -936,7 +936,7 @@ void CViewer3dDoc::DoSample()
     catch (Standard_Failure const& anException)
     {
       Standard_SStream aSStream;
-      aSStream << "An exception was caught: " << anException << ends;
+      aSStream << "An exception was caught: " << anException << std::ends;
       CString aMsg = aSStream.str().c_str();
       AfxMessageBox (aMsg);
     }
index ee5cd6a..4b84cba 100755 (executable)
@@ -925,7 +925,7 @@ void COcafDoc::OnFileSaveAs()
        CWaitCursor aWaitCursor;
        CString CSPath = dlg.GetPathName();
 
-       cout << "Save As " << CSPath << endl;
+       std::cout << "Save As " << CSPath << std::endl;
        PathName=CSPath;
         const wchar_t* SPath = CSPath;
        TCollection_ExtendedString TPath (SPath);
index caff060..d7220ad 100755 (executable)
@@ -76,7 +76,7 @@ Standard_Boolean TOcafFunction_CutDriver::MustExecute(const Handle(TFunction_Log
 */
   TCollection_AsciiString aEntry;
   TDF_Tool::Entry(Label(), aEntry);
-  cout << "Entry: "<<aEntry.ToCString()<<endl;
+  std::cout << "Entry: "<<aEntry.ToCString()<<std::endl;
   Label().FindChild(1).FindAttribute(TDF_Reference::GetID(),OriginalRef);
   if (log->IsModified(OriginalRef->Get()))   return Standard_True; // Original shape.
 
index f895793..77eeb4c 100755 (executable)
@@ -425,7 +425,7 @@ void Tesselate_Presentation::sample(const Standard_CString aFileName)
 
   std::filebuf aFileBuf;
   std::istream aStream (&aFileBuf);
-  if (!aFileBuf.open (initfile, ios::in))
+  if (!aFileBuf.open (initfile, std::ios::in))
   {
     initfile += L" was not found. The sample can not be shown.";
     GetDocument()->PocessTextInDialog ("Compute the triangulation on a shape", initfile);
index 609a8aa..4b7f534 100755 (executable)
@@ -349,7 +349,7 @@ void CTriangulationDoc::DoSample()
     catch (Standard_Failure const& anException)
     {
       Standard_SStream aSStream;
-      aSStream << "An exception was caught: " << anException << ends;
+      aSStream << "An exception was caught: " << anException << std::ends;
       CString aMsg = aSStream.str().c_str();
 //      aSStream.rdbuf()->freeze(0);   // allow deletion of dynamic array
       AfxMessageBox (aMsg);
index 8aba336..2d35a31 100755 (executable)
@@ -83,35 +83,35 @@ CAnimationDoc::CAnimationDoc()
   std::filebuf aFileBuf;
   std::istream aStream (&aFileBuf);
   CString aPathCrankArm = aDataDirPath + "\\CrankArm.rle";
-  if (aFileBuf.open (aPathCrankArm, ios::in))
+  if (aFileBuf.open (aPathCrankArm, std::ios::in))
   {
     BRepTools::Read (CrankArm, aStream, B);
     aFileBuf.close();
   }
 
   CString aPathCylinderHead = aDataDirPath + "\\CylinderHead.rle";
-  if (aFileBuf.open (aPathCylinderHead, ios::in))
+  if (aFileBuf.open (aPathCylinderHead, std::ios::in))
   {
     BRepTools::Read (CylinderHead, aStream, B);
     aFileBuf.close();
   }
 
   CString aPathPropeller = aDataDirPath + "\\Propeller.rle";
-  if (aFileBuf.open (aPathPropeller, ios::in))
+  if (aFileBuf.open (aPathPropeller, std::ios::in))
   {
     BRepTools::Read (Propeller, aStream, B);
     aFileBuf.close();
   }
 
   CString aPathPiston = aDataDirPath + "\\Piston.rle";
-  if (aFileBuf.open (aPathPiston, ios::in))
+  if (aFileBuf.open (aPathPiston, std::ios::in))
   {
     BRepTools::Read (Piston, aStream, B);
     aFileBuf.close();
   }
 
   CString aPathEngineBlock = aDataDirPath + "\\EngineBlock.rle";
-  if (aFileBuf.open (aPathEngineBlock, ios::in))
+  if (aFileBuf.open (aPathEngineBlock, std::ios::in))
   {
     BRepTools::Read (EngineBlock, aStream, B);
     aFileBuf.close();
index 5199c86..e003e51 100755 (executable)
@@ -49,7 +49,7 @@ Handle(TColStd_HArray2OfReal) ReadRegularGrid(CString FileName,
   if (fp) 
     {
       fscanf_s(fp, "%d %d", &R2, &C2);
-      cout << "Reading Grid : ( " << R2 << " , " << C2 << " )." << endl;
+      std::cout << "Reading Grid : ( " << R2 << " , " << C2 << " )." << std::endl;
       
       H = new TColStd_HArray2OfReal(C1, C2, R1, R2);
       
@@ -83,14 +83,14 @@ Handle(TColStd_HArray2OfReal) ReadRegularGrid(CString FileName,
            }
        }
       
-      cout << "Deltax = " << Deltax << endl;
-      cout << "Deltay = " << Deltay << endl;
+      std::cout << "Deltax = " << Deltax << std::endl;
+      std::cout << "Deltay = " << Deltay << std::endl;
       
       fclose(fp);
     } 
   else 
     {
-      cout << "cannot open file : " << FileName << endl;
+      std::cout << "cannot open file : " << FileName << std::endl;
     }
   return H;
 }
index 4565605..6aa31de 100755 (executable)
@@ -153,7 +153,7 @@ void COCCDemoDoc::DoSample()
     catch (Standard_Failure const& anException)
     {
       Standard_SStream aSStream;
-      aSStream << "An exception was caught: " << anException << ends;
+      aSStream << "An exception was caught: " << anException << std::ends;
       CString aMsg = aSStream.str().c_str();
       AfxMessageBox (aMsg);
     }
index c55dd5b..cd260c9 100755 (executable)
@@ -156,7 +156,7 @@ Standard_Boolean CImportExport::ReadBREP(CString      aFileName,
 
   std::filebuf aFileBuf;
   std::istream aStream (&aFileBuf);
-  if (!aFileBuf.open (aFileName, ios::in))
+  if (!aFileBuf.open (aFileName, std::ios::in))
   {
     return Standard_False;
   }
@@ -230,7 +230,7 @@ Standard_Boolean CImportExport::SaveBREP (CString             aFileName,
 {
   std::filebuf aFileBuf;
   std::ostream aStream (&aFileBuf);
-  if (!aFileBuf.open (aFileName, ios::out))
+  if (!aFileBuf.open (aFileName, std::ios::out))
   {
     return Standard_False;
   }
@@ -811,7 +811,7 @@ Standard_Boolean CImportExport::SaveVRML(const Standard_CString&
     } // iterator of shapes
 
     // Call VRML writer
-    ofstream writer(aFileName);
+    std::ofstream writer(aFileName);
     writer<<scene;
     writer.close();
 
index 11ff4d4..da29861 100755 (executable)
@@ -129,7 +129,7 @@ case 6: //color
     // This triangulation is computed with the deflection myDeflection.
 
 #ifdef DEBUG
-    cout <<"Deflection = " << myDeflection << "\n" << endl;
+    std::cout <<"Deflection = " << myDeflection << "\n" << std::endl;
 #endif
 
     Standard_Integer NumFace;
@@ -145,7 +145,7 @@ case 6: //color
       TopLoc_Location myLocation = myFace.Location();
 
 #ifdef DEBUG
-      cout << "J\'explore actuellement la face " << NumFace << "\n" << endl;
+      std::cout << "J\'explore actuellement la face " << NumFace << "\n" << std::endl;
 #endif
       Handle(Poly_Triangulation) myT = BRep_Tool::Triangulation(myFace, myLocation);
       // Returns the Triangulation of the face. It is a null handle if there is no triangulation.
@@ -153,7 +153,7 @@ case 6: //color
       if (myT.IsNull())
       {
 #ifdef DEBUG
-        // cout << "Triangulation of the face "<< i <<" is null \n"<< endl;
+        // std::cout << "Triangulation of the face "<< i <<" is null \n"<< std::endl;
 #endif
         return;
       }
@@ -200,7 +200,7 @@ case 6: //color
       TopLoc_Location myLocation = myFace.Location();
 
 #ifdef DEBUG
-      cout << "J\'explore actuellement la face " << NumFace << "\n" << endl;
+      std::cout << "J\'explore actuellement la face " << NumFace << "\n" << std::endl;
 #endif
       Handle(Poly_Triangulation) myT = BRep_Tool::Triangulation(myFace, myLocation);
       // Returns the Triangulation of the face. It is a null handle if there is no triangulation.
@@ -208,7 +208,7 @@ case 6: //color
       if (myT.IsNull())
       {
 #ifdef DEBUG
-        //cout << "Triangulation of the face "<< i <<" is null \n"<< endl;
+        //std::cout << "Triangulation of the face "<< i <<" is null \n"<< std::endl;
 #endif
         return;
       }
@@ -255,7 +255,7 @@ case 6: //color
       for (nt = 1; nt <= nnn; nt++)
       {
 #ifdef DEBUG
-        cout << "On traite actuellement le triangle : "<< nt <<"\n";
+        std::cout << "On traite actuellement le triangle : "<< nt <<"\n";
 #endif
         if (myFace.Orientation() == TopAbs_REVERSED) // si la face est "reversed"
           triangles(nt).Get(n1,n3,n2); // le triangle est n1,n3,n2
index fd1576d..09479a3 100755 (executable)
@@ -50,7 +50,7 @@ int AFXAPI AfxWinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
 //  int i = setvbuf( stdout, NULL, _IONBF, 0 );
 //  filebuf ff(hCrt);
 //  cout = &ff;
-  cout<<"This Debug Window is defined in WinMain.cpp and will disappear in release mode"<<endl;
+  std::cout<<"This Debug Window is defined in WinMain.cpp and will disappear in release mode"<<std::endl;
 
 #endif //  DISPLAYCONSOLE  // By Matra
 
index a14da2a..714fd70 100644 (file)
@@ -354,7 +354,7 @@ static void Sample()
 
   Standard_Boolean isverified =  constraint->Verified();
   if( !isverified ) {
-   cout << "Constraint is not valid"   << endl;
+   std::cout << "Constraint is not valid"   << std::endl;
   }
 
 
index 0a0c077..fbfcfbd 100644 (file)
@@ -308,7 +308,7 @@ void Sample()
   BRepAlgo_Cut mkCUT (OBJECT, TOOL);
 
   if (!mkCUT.IsDone()) {
-    cout << "CUT: Algorithm failed" << endl;
+    std::cout << "CUT: Algorithm failed" << std::endl;
     return; 
   } else 
     {
@@ -318,7 +318,7 @@ void Sample()
 
       if (!BRepAlgo::IsValid(Larg, mkCUT.Shape(), Standard_True, Standard_False)) {
 
-       cout << "CUT: Result is not valid" << endl;
+       std::cout << "CUT: Result is not valid" << std::endl;
        return;
       } else 
        {
index 2f6d320..a94a4ab 100644 (file)
@@ -101,9 +101,9 @@ static void Sample()
   Handle(TPrsStd_NamedShapeDriver) driver;
 
   if( table->FindDriver(driverguid,  driver) ) 
-    cout << "Driver was found " << endl;
+    std::cout << "Driver was found " << std::endl;
   else 
-    cout << "Driver wasn't found" << endl;
+    std::cout << "Driver wasn't found" << std::endl;
 
   // Driver can be used to build AIS_InteractiveObject for presenting the given label
 
index 3f8e1d6..f7f5694 100644 (file)
@@ -214,7 +214,7 @@ void MainWindow::compute()
     }
 
     aTimer.Show(seconds, minutes, hours, CPUTime);
-    cout << "Execution of "<<graph->getNbThreads()<< " threads took          " << hours << " hours, " << minutes << " minutes, " << seconds << " seconds" << endl;
+    std::cout << "Execution of "<<graph->getNbThreads()<< " threads took          " << hours << " hours, " << minutes << " minutes, " << seconds << " seconds" << std::endl;
 
     // Redraw the nodes (change their colour).            
     redrawGraph();
index 13eec9b..54f6b16 100755 (executable)
@@ -340,7 +340,7 @@ TranslateDlg* Translate::getDialog( const int format, const bool import )
                filter.append( "\t" );
        }
 
-  cout << filter.toLatin1().constData() << endl;
+  std::cout << filter.toLatin1().constData() << std::endl;
   QStringList filters = filter.split( "\t" );
   myDlg->setNameFilters ( filters );
 
index 9915da5..c27ed6d 100644 (file)
@@ -273,7 +273,7 @@ Standard_Boolean MainPage::SaveBREP(const wchar_t* theFilePath, const TopoDS_Sha
   std::filebuf aFileBuf;
   std::ostream aStream(&aFileBuf);
 
-  if (!aFileBuf.open(theFilePath, ios::out)) {
+  if (!aFileBuf.open(theFilePath, std::ios::out)) {
     Output_TextBlock->Text += L"Error: cannot open file for export (brep)\n";
     return Standard_False;
   }
@@ -291,7 +291,7 @@ Standard_Boolean MainPage::SaveIGES(const wchar_t* theFilePath, const TopoDS_Sha
   std::filebuf aFileBuf;
   std::ostream aStream(&aFileBuf);
 
-  if (!aFileBuf.open(theFilePath, ios::out)) {
+  if (!aFileBuf.open(theFilePath, std::ios::out)) {
     Output_TextBlock->Text += L"Error: cannot open file for export (iges)\n";
     return Standard_False;
   }
@@ -319,7 +319,7 @@ Standard_Boolean MainPage::SaveSTEP(const wchar_t* theFilePath, const TopoDS_Sha
   std::filebuf aFileBuf;
   std::ostream aStream(&aFileBuf);
 
-  if (!aFileBuf.open(theFilePath, ios::out)) {
+  if (!aFileBuf.open(theFilePath, std::ios::out)) {
     Output_TextBlock->Text += L"Error: cannot open file for export (step)\n";
     return Standard_False;
   }
index dd9f864..de74f89 100644 (file)
@@ -79,7 +79,7 @@ mySAttach(0.,0.,0.)
   myArrowSize = fabs (myVal/10.0);
   if (myArrowSize > 30.) myArrowSize = 30.;
   if (myArrowSize < 15.) myArrowSize = 15.;
-  //cout<<"AIS_OffsetDimension::AIS_OffsetDimension " <<  myArrowSize << " myArrowSize"<<endl;
+  //std::cout<<"AIS_OffsetDimension::AIS_OffsetDimension " <<  myArrowSize << " myArrowSize"<<std::endl;
 }
 
 //=======================================================================
@@ -95,7 +95,7 @@ void AIS_OffsetDimension::Compute(const Handle(PrsMgr_PresentationManager3d)&,
   myArrowSize = fabs (myVal/10.0);
   if (myArrowSize > 30.) myArrowSize = 30.;
   if (myArrowSize < 15.) myArrowSize = 15.;
-  //cout<<"AIS_OffsetDimension::AIS_OffsetDimension " <<  myArrowSize << " myArrowSize"<<endl;
+  //std::cout<<"AIS_OffsetDimension::AIS_OffsetDimension " <<  myArrowSize << " myArrowSize"<<std::endl;
   
   BRepAdaptor_Surface surf1(TopoDS::Face(myFShape));
   BRepAdaptor_Surface surf2(TopoDS::Face(mySShape));
@@ -163,7 +163,7 @@ void AIS_OffsetDimension::ComputeSelection(const Handle(SelectMgr_Selection)& aS
   myArrowSize = fabs (myVal/10.0);
   if (myArrowSize > 30.) myArrowSize = 30.;
   if (myArrowSize < 15.) myArrowSize = 15.;
-  //cout<<"AIS_OffsetDimension::AIS_OffsetDimension " <<  myArrowSize << " myArrowSize"<<endl;
+  //std::cout<<"AIS_OffsetDimension::AIS_OffsetDimension " <<  myArrowSize << " myArrowSize"<<std::endl;
   gp_Pnt myTFAttach = myFAttach.Transformed (myRelativePos);
   gp_Pnt myTSAttach = mySAttach.Transformed (myRelativePos);
   gp_Dir myTDirAttach = myDirAttach.Transformed (myRelativePos);
@@ -325,7 +325,7 @@ void AIS_OffsetDimension::ComputeTwoAxesOffset(const Handle(Prs3d_Presentation)&
 
   Handle(Prs3d_DimensionAspect) la = myDrawer->DimensionAspect();
   Handle(Prs3d_ArrowAspect) arr = la->ArrowAspect();
-  //cout<<"AIS_OffsetDimension::AIS_OffsetDimension " <<  myArrowSize << " myArrowSize"<<endl;
+  //std::cout<<"AIS_OffsetDimension::AIS_OffsetDimension " <<  myArrowSize << " myArrowSize"<<std::endl;
   arr->SetLength(myArrowSize);
   arr = la->ArrowAspect();
   arr->SetLength(myArrowSize);
@@ -431,7 +431,7 @@ void AIS_OffsetDimension::ComputeTwoFacesOffset(const Handle(Prs3d_Presentation)
   
   Handle(Prs3d_DimensionAspect) la = myDrawer->DimensionAspect();
   Handle(Prs3d_ArrowAspect) arr = la->ArrowAspect();
-  //cout<<"AIS_OffsetDimension::AIS_OffsetDimension " <<  myArrowSize << " myArrowSize"<<endl;
+  //std::cout<<"AIS_OffsetDimension::AIS_OffsetDimension " <<  myArrowSize << " myArrowSize"<<std::endl;
   arr->SetLength(myArrowSize);
   arr = la->ArrowAspect();
   arr->SetLength(myArrowSize);
index 109b9d4..6cdb96d 100644 (file)
@@ -1054,44 +1054,44 @@ Standard_Real
 void AdvApp2Var_ApproxAFunc2Var::Dump(Standard_OStream& o) const 
 {
   Standard_Integer iesp=1,NbKU,NbKV,ik;
-  o<<endl;
-  if (!myHasResult) { o<<"No result"<<endl; }
+  o<<std::endl;
+  if (!myHasResult) { o<<"No result"<<std::endl; }
   else {
     o<<"There is a result";
     if (myDone) {
-      o<<" within the requested tolerance "<<my3DTolerances->Value(iesp)<<endl;
+      o<<" within the requested tolerance "<<my3DTolerances->Value(iesp)<<std::endl;
     }
     else if (my3DMaxError->Value(iesp)>my3DTolerances->Value(iesp)) {
-      o<<" WITHOUT the requested tolerance "<<my3DTolerances->Value(iesp)<<endl;
+      o<<" WITHOUT the requested tolerance "<<my3DTolerances->Value(iesp)<<std::endl;
     }
     else {
-      o<<" WITHOUT the requested continuities "<<endl;
+      o<<" WITHOUT the requested continuities "<<std::endl;
     }
-    o<<endl;
-    o<<"Result max error :"<<my3DMaxError->Value(iesp)<<endl;
-    o<<"Result average error :"<<my3DAverageError->Value(iesp)<<endl;
-    o<<"Result max error on U frontiers :"<<my3DUFrontError->Value(iesp)<<endl;
-    o<<"Result max error on V frontiers :"<<my3DVFrontError->Value(iesp)<<endl;
-    o<<endl;
+    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<<"Degree of Bezier patches in U : "<<myDegreeInU
-      <<"  in V : "<<myDegreeInV<<endl;
-    o<<endl;
+      <<"  in V : "<<myDegreeInV<<std::endl;
+    o<<std::endl;
     Handle(Geom_BSplineSurface) S
       = Handle(Geom_BSplineSurface)::DownCast(mySurfaces->Value(iesp));
     o<<"Number of poles in U : "<<S->NbUPoles()
-      <<"  in V : "<<S->NbVPoles()<<endl;
-    o<<endl;
+      <<"  in V : "<<S->NbVPoles()<<std::endl;
+    o<<std::endl;
     NbKU = S->NbUKnots();
     NbKV = S->NbVKnots();
-    o<<"Number of knots in U : "<<NbKU<<endl;
+    o<<"Number of knots in U : "<<NbKU<<std::endl;
     for (ik=1;ik<=NbKU;ik++) {
-      o<<"   "<<ik<<" : "<<S->UKnot(ik)<<"   mult : "<<S->UMultiplicity(ik)<<endl;
+      o<<"   "<<ik<<" : "<<S->UKnot(ik)<<"   mult : "<<S->UMultiplicity(ik)<<std::endl;
     }
-    o<<endl;
-    o<<"Number of knots in V : "<<NbKV<<endl;
+    o<<std::endl;
+    o<<"Number of knots in V : "<<NbKV<<std::endl;
     for (ik=1;ik<=NbKV;ik++) {
-      o<<"   "<<ik<<" : "<<S->VKnot(ik)<<"   mult : "<<S->VMultiplicity(ik)<<endl;
+      o<<"   "<<ik<<" : "<<S->VKnot(ik)<<"   mult : "<<S->VMultiplicity(ik)<<std::endl;
     }
-    o<<endl;
+    o<<std::endl;
   }
 }
index a5fe953..9ae1db2 100644 (file)
@@ -46,7 +46,7 @@ static Standard_Boolean lesparam(const Standard_Integer iordre,
   else {
     nbpnts = 50;
 #ifdef OCCT_DEBUG
-    cout << "F(U, V) : Not enough points of discretization" << endl; 
+    std::cout << "F(U, V) : Not enough points of discretization" << std::endl; 
 #endif
   }
 
index 33d45ff..3327ffe 100644 (file)
@@ -89,10 +89,10 @@ static void  MAPDBN(const Standard_Integer dimension,
 
  
    if ( (Diff-Der).Norm() > eps * (Der.Norm()+1) ) {
-     cout << " Debug Ft au parametre t+ = " << t << endl;
-     cout << " Positionement sur la derive "<< OrdreDer 
-          << " : " << Der << endl;
-     cout << " Erreur estime : " << (Der-Diff) << endl;
+     std::cout << " Debug Ft au parametre t+ = " << t << std::endl;
+     std::cout << " Positionement sur la derive "<< OrdreDer 
+          << " : " << Der << std::endl;
+     std::cout << " Erreur estime : " << (Der-Diff) << std::endl;
    }
 
   // Verif a la fin
@@ -112,10 +112,10 @@ static void  MAPDBN(const Standard_Integer dimension,
 
  
    if ( (Diff-Der).Norm() > eps * (Der.Norm()+1) ) {
-     cout << " Debug Ft au parametre t- = " << t << endl;
-     cout << " Positionement sur la derive "<< OrdreDer 
-        << " : " << Der << endl;
-     cout << " Erreur estime : " << (Der-Diff) << endl;
+     std::cout << " Debug Ft au parametre t- = " << t << std::endl;
+     std::cout << " Positionement sur la derive "<< OrdreDer 
+        << " : " << Der << std::endl;
+     std::cout << " Erreur estime : " << (Der-Diff) << std::endl;
    }
  }
 }
@@ -1092,25 +1092,25 @@ Standard_Real  AdvApprox_ApproxAFunction::AverageError(
 void  AdvApprox_ApproxAFunction::Dump(Standard_OStream& o) const 
 {
   Standard_Integer ii;
-  o << "Dump of ApproxAFunction" << endl;
+  o << "Dump of ApproxAFunction" << std::endl;
   if (myNumSubSpaces[0] > 0) {
-    o << "Error(s) 1d = " << endl;
+    o << "Error(s) 1d = " << std::endl;
     for (ii=1; ii <= myNumSubSpaces[0]; ii++) {
-      o << "   " << MaxError(1, ii) << endl;
+      o << "   " << MaxError(1, ii) << std::endl;
     }
   }
 
   if (myNumSubSpaces[1] > 0) {
-    o << "Error(s) 2d = " << endl;
+    o << "Error(s) 2d = " << std::endl;
     for (ii=1; ii <= myNumSubSpaces[1]; ii++) {
-      o << "   " << MaxError(2, ii) << endl;
+      o << "   " << MaxError(2, ii) << std::endl;
     }
   }
 
   if (myNumSubSpaces[2] > 0) {
-    o << "Error(s) 3d = " << endl;
+    o << "Error(s) 3d = " << std::endl;
     for (ii=1; ii <= myNumSubSpaces[2]; ii++) {
-      o << "   " << MaxError(3, ii) << endl;
+      o << "   " << MaxError(3, ii) << std::endl;
     }
   }
 }
index 2ca97c3..7bf1be3 100644 (file)
@@ -232,7 +232,7 @@ void AdvApprox_SimpleApprox::Perform(const TColStd_Array1OfInteger& LocalDimensi
     }
   }
 //  for (i=0; i<(WorkDegree+1)*TotalDimension; i++)
-//    cout << "  Coeff(" << i << ") = " << Coeff(i) << endl;
+//    std::cout << "  Coeff(" << i << ") = " << Coeff(i) << std::endl;
   // the computing of NewDegree
   TColStd_Array1OfReal JacCoeff(0, myTotalDimension*(myWorkDegree+1)-1);
  
@@ -380,9 +380,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 " << endl;
+  o << "Dump of SimpleApprox " << std::endl;
   for (ii=1; ii <= myTotalNumSS; ii++) {
-    o << "Error   " << MaxError(ii) << endl;
+    o << "Error   " << MaxError(ii) << std::endl;
   }
 }
 
index 174a4e6..591a063 100644 (file)
@@ -391,8 +391,8 @@ void AppBlend_AppSurf::InternalPerform(const Handle(TheLine)& Lin,
       mytol2d = Max(TheTol2d, mytol2d);
     }
 #ifdef OCCT_DEBUG
-    cout << " Tolerances obtenues  --> 3d : "<< mytol3d << endl;
-    cout << "                      --> 2d : "<< mytol2d << endl;
+    std::cout << " Tolerances obtenues  --> 3d : "<< mytol3d << std::endl;
+    std::cout << "                      --> 2d : "<< mytol2d << std::endl;
 #endif
     multC = theapprox.SplineValue();
   }  
@@ -436,8 +436,8 @@ void AppBlend_AppSurf::InternalPerform(const Handle(TheLine)& Lin,
       theapprox.Perform(multL);
       theapprox.Error(mytol3d,mytol2d);
 #ifdef OCCT_DEBUG
-      cout << " Tolerances obtenues  --> 3d : "<< mytol3d << endl;
-      cout << "                      --> 2d : "<< mytol2d << endl;
+      std::cout << " Tolerances obtenues  --> 3d : "<< mytol3d << std::endl;
+      std::cout << "                      --> 2d : "<< mytol2d << std::endl;
 #endif    
       tol3dreached = mytol3d;
       tol2dreached = mytol2d;
@@ -498,8 +498,8 @@ void AppBlend_AppSurf::InternalPerform(const Handle(TheLine)& Lin,
       mytol3d = Variation.MaxError();
       mytol2d = 0.;
 #ifdef OCCT_DEBUG
-      cout << " Tolerances obtenues  --> 3d : "<< mytol3d << endl;
-      cout << "                      --> 2d : "<< mytol2d << endl;
+      std::cout << " Tolerances obtenues  --> 3d : "<< mytol3d << std::endl;
+      std::cout << "                      --> 2d : "<< mytol2d << std::endl;
 #endif    
       tol3dreached = mytol3d;
       tol2dreached = mytol2d;
@@ -827,8 +827,8 @@ void AppBlend_AppSurf::Perform(const Handle(TheLine)& Lin,
 //  modified by EAP Thu Jan  3 15:45:27 2002 ___END___
   }
 #ifdef OCCT_DEBUG
-  cout << "   Tolerances obtenues  --> 3d : "<< mytol3d << endl;
-  cout << "                        --> 2d : "<< mytol2d << endl;
+  std::cout << "   Tolerances obtenues  --> 3d : "<< mytol3d << std::endl;
+  std::cout << "                        --> 2d : "<< mytol2d << std::endl;
 #endif
   tol3dreached = mytol3d;
   tol2dreached = mytol2d;
@@ -852,8 +852,8 @@ void AppBlend_AppSurf::Perform(const Handle(TheLine)& Lin,
                              tabVKnots->ChangeArray1()
                              );
 #ifdef OCCT_DEBUG
-      cout << "Warning: AppBlend_AppSurf::Perform(), bad length of aParamSeq: " <<
-       aParamSeq.Length() << " instead of " << tabVKnots->Length() << endl;
+      std::cout << "Warning: AppBlend_AppSurf::Perform(), bad length of aParamSeq: " <<
+       aParamSeq.Length() << " instead of " << tabVKnots->Length() << std::endl;
 #endif
     }
     else
index cd8e328..f8715cd 100644 (file)
@@ -97,8 +97,8 @@ AppDef_MultiPointConstraint AppDef_MultiLine::Value (const Standard_Integer Inde
 
 void AppDef_MultiLine::Dump(Standard_OStream& o) const
 {
-  o << "AppDef_MultiLine dump:" << endl;
+  o << "AppDef_MultiLine dump:" << std::endl;
 //  AppDef_MultiPointConstraint MP = tabMult->Value(1);
-  o << "It contains " <<  tabMult->Length() << " MultiPointConstraint"<< endl;
-//  o << MP->NbPoints() << " 3d and " << MP->NbPoints2d() << endl;
+  o << "It contains " <<  tabMult->Length() << " MultiPointConstraint"<< std::endl;
+//  o << MP->NbPoints() << " 3d and " << MP->NbPoints2d() << std::endl;
 }
index c379531..a5f8530 100644 (file)
@@ -319,5 +319,5 @@ Standard_Boolean AppDef_MultiPointConstraint::IsCurvaturePoint() const
 
 void AppDef_MultiPointConstraint::Dump(Standard_OStream& o) const
 {
-  o << "AppDef_MultiPointConstraint dump:" << endl;
+  o << "AppDef_MultiPointConstraint dump:" << std::endl;
 }
index 842f587..25b86f3 100644 (file)
@@ -582,11 +582,11 @@ void AppDef_Variational::Approximate()
         {
           for (jp3d=1;jp3d<=myNbP3d;jp3d++)
           {
-            //                       cout << "\n Poles(ipole,1)" << PolesPtr->Value(ipole,index);
+            //                       std::cout << "\n Poles(ipole,1)" << PolesPtr->Value(ipole,index);
             P3d.SetX(PolesPtr->Value(ipole,index++));
-            //                       cout << "\n Poles(ipole,1)" << PolesPtr->Value(ipole,index);
+            //                       std::cout << "\n Poles(ipole,1)" << PolesPtr->Value(ipole,index);
             P3d.SetY(PolesPtr->Value(ipole,index++));
-            //                       cout << "\n Poles(ipole,1)" << PolesPtr->Value(ipole,index);
+            //                       std::cout << "\n Poles(ipole,1)" << PolesPtr->Value(ipole,index);
             P3d.SetZ(PolesPtr->Value(ipole,index++)); 
             TabP3d.SetValue(jp3d,P3d);
           } 
@@ -897,32 +897,32 @@ Standard_Integer AppDef_Variational::NbIterations() const
 //
 void AppDef_Variational::Dump(Standard_OStream& o) const 
 {
-  o << " \nVariational Smoothing " << endl;
-  o << " Number of multipoints                   "  << myNbPoints << endl;
-  o << " Number of 2d par multipoint "  << myNbP2d << endl;
-  o << " Nombre of 3d par multipoint "  << myNbP3d << endl;
-  o << " Number of PassagePoint      "  << myNbPassPoints << endl;
-  o << " Number of TangencyPoints    "  << myNbTangPoints << endl;
-  o << " Number of CurvaturePoints   "  << myNbCurvPoints << endl;
-  o << " \nTolerance " << o.setf(ios::scientific) << setprecision(3) << setw(9) << myTolerance;
-  if ( WithMinMax()) { o << "  as Max Error." << endl;}
-  else { o << "  as size Error." << endl;}
+  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 << " \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;}
   o << "CriteriumWeights : " << myPercent[0] << " , " 
-    << myPercent[1] << " , " << myPercent[2] << endl;
+    << myPercent[1] << " , " << myPercent[2] << std::endl;
 
   if (myIsDone ) {
-    o << " MaxError             " << setprecision(3) << setw(9) << myMaxError << endl;
-    o << " Index of  MaxError   " << myMaxErrorIndex << endl;
-    o << " Average Error        " << setprecision(3) << setw(9) << myAverageError << endl;
-    o << " Quadratic Error      " << setprecision(3) << setw(9) << myCriterium[0] << endl;
-    o << " Tension Criterium    " << setprecision(3) << setw(9) << myCriterium[1] << endl;
-    o << " Flexion  Criterium   " << setprecision(3) << setw(9) << myCriterium[2] << endl;
-    o << " Jerk  Criterium      " << setprecision(3) << setw(9) << myCriterium[3] << endl;
-    o << " NbSegments           "  << myKnots->Length()-1 << endl;
+    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;
   }
   else
-  { if (myIsOverConstr) o << "The probleme is overconstraint " << endl;
-  else o << " Erreur dans l''approximation" << endl;
+  { if (myIsOverConstr) o << "The probleme is overconstraint " << std::endl;
+  else o << " Erreur dans l''approximation" << std::endl;
   }   
 }
 //
@@ -2539,7 +2539,7 @@ void AppDef_Variational::Adjusting(
                                    TColStd_Array1OfReal& Ecarts) 
 {
 
-  //  cout << "=========== Adjusting =============" << endl;
+  //  std::cout << "=========== Adjusting =============" << std::endl;
 
   /* Initialized data */
 
index e626a61..52e06ce 100644 (file)
@@ -286,24 +286,24 @@ void AppParCurves_MultiBSpCurve::D2 (const Standard_Integer CuIndex,
 
 void AppParCurves_MultiBSpCurve::Dump(Standard_OStream& o) const
 {
-  o << "AppParCurves_MultiBSpCurve dump:" << endl;
-  o << " It contains " << NbCurves() << " BSpline curves "<< endl;
-  o << " The poles are: " << endl;
+  o << "AppParCurves_MultiBSpCurve dump:" << std::endl;
+  o << " It contains " << NbCurves() << " BSpline curves "<< std::endl;
+  o << " The poles are: " << std::endl;
 /*  for (Standard_Integer i = 1; i <= NbCurves(); i++) {
-    o << " Curve No. " << i << endl;
+    o << " Curve No. " << i << std::endl;
     if (Dimension(i) == 3) {
       for (Standard_Integer j = 1; j <= tabPoint->Length(); j++) {
-       o << " Pole No. " << j << ": " << endl;
-       o << " Pole x = " << (tabPoint->Value(j)->Point(i)).X() << endl;
-       o << " Pole y = " << (tabPoint->Value(j)->Point(i)).Y() << endl;
-       o << " Pole z = " << (tabPoint->Value(j)->Point(i)).Z() << endl;
+       o << " Pole No. " << j << ": " << std::endl;
+       o << " Pole x = " << (tabPoint->Value(j)->Point(i)).X() << std::endl;
+       o << " Pole y = " << (tabPoint->Value(j)->Point(i)).Y() << std::endl;
+       o << " Pole z = " << (tabPoint->Value(j)->Point(i)).Z() << std::endl;
       }
     }
     else {
       for (Standard_Integer j = 1; j <= tabPoint->Length(); j++) {
-       o << " Pole No. " << j << ": " << endl;
-       o << " Pole x = " << (tabPoint->Value(j)->Point2d(i)).X() << endl;
-       o << " Pole y = " << (tabPoint->Value(j)->Point2d(i)).Y() << endl;
+       o << " Pole No. " << j << ": " << std::endl;
+       o << " Pole x = " << (tabPoint->Value(j)->Point2d(i)).X() << std::endl;
+       o << " Pole y = " << (tabPoint->Value(j)->Point2d(i)).Y() << std::endl;
       }
     }
   }
index 7eaac94..8228a96 100644 (file)
@@ -286,24 +286,24 @@ void AppParCurves_MultiCurve::D2 (const Standard_Integer CuIndex,
 
 void AppParCurves_MultiCurve::Dump(Standard_OStream& o) const
 {
-  o << "AppParCurves_MultiCurve dump:" << endl;
-  o << " It contains " << NbCurves() << " Bezier curves of degree " << tabPoint->Length()-1 << endl;
-  o << " The poles are: " << endl;
+  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;
 /*  for (Standard_Integer i = 1; i <= NbCurves(); i++) {
-    o << " Curve No. " << i << endl;
+    o << " Curve No. " << i << std::endl;
     if (Dimension(i) == 3) {
       for (Standard_Integer j = 1; j <= tabPoint->Length(); j++) {
-       o << " Pole No. " << j << ": " << endl;
-       o << " Pole x = " << (tabPoint->Value(j)->Point(i)).X() << endl;
-       o << " Pole y = " << (tabPoint->Value(j)->Point(i)).Y() << endl;
-       o << " Pole z = " << (tabPoint->Value(j)->Point(i)).Z() << endl;
+       o << " Pole No. " << j << ": " << std::endl;
+       o << " Pole x = " << (tabPoint->Value(j)->Point(i)).X() << std::endl;
+       o << " Pole y = " << (tabPoint->Value(j)->Point(i)).Y() << std::endl;
+       o << " Pole z = " << (tabPoint->Value(j)->Point(i)).Z() << std::endl;
       }
     }
     else {
       for (Standard_Integer j = 1; j <= tabPoint->Length(); j++) {
-       o << " Pole No. " << j << ": " << endl;
-       o << " Pole x = " << (tabPoint->Value(j)->Point2d(i)).X() << endl;
-       o << " Pole y = " << (tabPoint->Value(j)->Point2d(i)).Y() << endl;
+       o << " Pole No. " << j << ": " << std::endl;
+       o << " Pole x = " << (tabPoint->Value(j)->Point2d(i)).X() << std::endl;
+       o << " Pole y = " << (tabPoint->Value(j)->Point2d(i)).Y() << std::endl;
       }
     }
   }
index 44c48ba..3779d75 100644 (file)
@@ -169,20 +169,20 @@ const gp_Pnt2d& AppParCurves_MultiPoint::Point2d (const Standard_Integer Index)
 
 void AppParCurves_MultiPoint::Dump(Standard_OStream& o) const
 {
-  o << "AppParCurves_MultiPoint dump:" << endl;
+  o << "AppParCurves_MultiPoint dump:" << std::endl;
   const Standard_Integer  aNbPnts3D = NbPoints(),
                           aNbPnts2D = NbPoints2d();
-  o << "It contains " << aNbPnts3D << " 3d points and " << aNbPnts2D <<" 2d points." << endl;
+  o << "It contains " << aNbPnts3D << " 3d points and " << aNbPnts2D <<" 2d points." << std::endl;
   
   if(aNbPnts3D > 0)
   {
     for(Standard_Integer i = tabPoint->Lower(); i <= tabPoint->Upper(); i++)
     {
-      o << "3D-Point #" << i << endl;
+      o << "3D-Point #" << i << std::endl;
 
-      o << " Pole x = " << (tabPoint->Value(i)/*->Point(j)*/).X() << endl;
-      o << " Pole y = " << (tabPoint->Value(i)/*->Point(j)*/).Y() << endl;
-      o << " Pole z = " << (tabPoint->Value(i)/*->Point(j)*/).Z() << endl;
+      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;
     }
   }
   
@@ -190,10 +190,10 @@ void AppParCurves_MultiPoint::Dump(Standard_OStream& o) const
   {
     for(Standard_Integer i = tabPoint2d->Lower(); i <= tabPoint2d->Upper(); i++)
     {
-      o << "2D-Point #" << i << endl;
+      o << "2D-Point #" << i << std::endl;
 
-      o << " Pole x = " << (tabPoint2d->Value(i)/*->Point2d(j)*/).X() << endl;
-      o << " Pole y = " << (tabPoint2d->Value(i)/*->Point2d(j)*/).Y() << endl;
+      o << " Pole x = " << (tabPoint2d->Value(i)/*->Point2d(j)*/).X() << std::endl;
+      o << " Pole y = " << (tabPoint2d->Value(i)/*->Point2d(j)*/).Y() << std::endl;
     }
   }
 }
index bd4f80a..6a61758 100644 (file)
@@ -64,20 +64,20 @@ static void DUMP(const MultiLine& Line)
   TColgp_Array1OfPnt tabP(1, mynbP3d);
   TColgp_Array1OfPnt2d tabP2d(1, mynbP2d);
   
-  cout <<"DUMP de la MultiLine entre "<<firstP <<" et "<<lastP<<": "<<endl;
+  std::cout <<"DUMP de la MultiLine entre "<<firstP <<" et "<<lastP<<": "<<std::endl;
   for (i = firstP; i <= lastP; i++) {
     if (nbP3d != 0 && nbP2d != 0) LineTool::Value(Line, i, tabP, tabP2d);
     else if (nbP2d != 0)          LineTool::Value(Line, i, tabP2d);
     else if (nbP3d != 0)          LineTool::Value(Line, i, tabP);
     
-    cout << "point "<<i<<":"<< endl;
+    std::cout << "point "<<i<<":"<< std::endl;
     for (j = 1; j <= nbP3d; j++) {
       P1 = tabP(j);
-      cout <<P1.X()<<" "<<P1.Y()<<" "<<P1.Z()<<endl;
+      std::cout <<P1.X()<<" "<<P1.Y()<<" "<<P1.Z()<<std::endl;
     }
     for (j = 1; j <= nbP2d; j++) {
       P12d = tabP2d(j);
-      cout <<P12d.X()<<" "<<P12d.Y()<<endl;
+      std::cout <<P12d.X()<<" "<<P12d.Y()<<std::endl;
     }
   }
 
@@ -197,7 +197,7 @@ static Standard_Boolean CheckMultiCurve(const AppParCurves_MultiCurve& theMultiC
       if (ScalProd < MinScalProd)
       {
 #ifdef DRAW
-        cout<<"ScalProd("<<indp-2<<","<<indp-1<<")-("<<indp-1<<","<<indp<<") = "<<ScalProd<<endl;
+        std::cout<<"ScalProd("<<indp-2<<","<<indp-1<<")-("<<indp-1<<","<<indp<<") = "<<ScalProd<<std::endl;
 #endif
         LoopFound = Standard_True;
         break;
@@ -329,7 +329,7 @@ static Standard_Boolean CheckMultiCurve(const AppParCurves_MultiCurve& theMultiC
       if (ScalProd < MinScalProd)
       {
 #ifdef DRAW
-        cout<<"ScalProd("<<k-2<<","<<k-1<<")-("<<k-1<<","<<k<<") = "<<ScalProd<<endl;
+        std::cout<<"ScalProd("<<k-2<<","<<k-1<<")-("<<k-1<<","<<k<<") = "<<ScalProd<<std::endl;
 #endif
         LoopFound = Standard_True;
         break;
@@ -1486,7 +1486,7 @@ Standard_Boolean  Approx_ComputeLine::ComputeCurve(const MultiLine& Line,
 
 #ifdef OCCT_DEBUG
     if (!Parallel) {
-      if (mydebug) cout <<"droite mais tangentes pas vraiment paralleles!!"<< endl;
+      if (mydebug) std::cout <<"droite mais tangentes pas vraiment paralleles!!"<< std::endl;
     }
 #endif
     AppParCurves_MultiCurve mySCU(mydegremin+1);
index e837ede..9f3d944 100644 (file)
@@ -174,8 +174,8 @@ Approx_Curve3d::Approx_Curve3d(const Handle(Adaptor3d_HCurve)& Curve,
 
  void Approx_Curve3d::Dump(Standard_OStream& o) const
 {
-  o << "******* Dump of ApproxCurve *******" << endl;
-  o << "*******Degree     " << Curve()->Degree() << endl;
-  o << "*******NbSegments " << Curve()->NbKnots() - 1 << endl;
-  o << "*******Error      " << MaxError() << endl;
+  o << "******* Dump of ApproxCurve *******" << std::endl;
+  o << "*******Degree     " << Curve()->Degree() << std::endl;
+  o << "*******NbSegments " << Curve()->NbKnots() - 1 << std::endl;
+  o << "*******Error      " << MaxError() << std::endl;
 }
index be46c18..7bc2787 100644 (file)
@@ -197,11 +197,11 @@ Approx_CurvilinearParameter::Approx_CurvilinearParameter(const Handle(Adaptor3d_
 #ifdef OCCT_DEBUG_CHRONO
   ResultChron(chr_total, t_total);
 
-  cout<<" total reparametrization time = "<<t_total<<endl;
-  cout<<"initialization time = "<<t_init<<endl;
-  cout<<"approximation time = "<<t_approx<<endl;
-  cout<<"total time for uparam computation = "<<t_uparam<<endl;
-  cout<<"number uparam calles = "<<uparam_count<<endl;
+  std::cout<<" total reparametrization time = "<<t_total<<std::endl;
+  std::cout<<"initialization time = "<<t_init<<std::endl;
+  std::cout<<"approximation time = "<<t_approx<<std::endl;
+  std::cout<<"total time for uparam computation = "<<t_uparam<<std::endl;
+  std::cout<<"number uparam calles = "<<uparam_count<<std::endl;
 #endif
 }
 
@@ -358,11 +358,11 @@ Approx_CurvilinearParameter::Approx_CurvilinearParameter(const Handle(Adaptor2d_
 #ifdef OCCT_DEBUG_CHRONO
   ResultChron(chr_total, t_total);
 
-  cout<<" total reparametrization time = "<<t_total<<endl;
-  cout<<"initialization time = "<<t_init<<endl;
-  cout<<"approximation time = "<<t_approx<<endl;
-  cout<<"total time for uparam computation = "<<t_uparam<<endl;
-  cout<<"number uparam calles = "<<uparam_count<<endl;
+  std::cout<<" total reparametrization time = "<<t_total<<std::endl;
+  std::cout<<"initialization time = "<<t_init<<std::endl;
+  std::cout<<"approximation time = "<<t_approx<<std::endl;
+  std::cout<<"total time for uparam computation = "<<t_uparam<<std::endl;
+  std::cout<<"number uparam calles = "<<uparam_count<<std::endl;
 #endif
 }
 
@@ -531,11 +531,11 @@ Approx_CurvilinearParameter::Approx_CurvilinearParameter(const Handle(Adaptor2d_
 #ifdef OCCT_DEBUG_CHRONO
   ResultChron(chr_total, t_total);
 
-  cout<<" total reparametrization time = "<<t_total<<endl;
-  cout<<"initialization time = "<<t_init<<endl;
-  cout<<"approximation time = "<<t_approx<<endl;
-  cout<<"total time for uparam computation = "<<t_uparam<<endl;
-  cout<<"number uparam calles = "<<uparam_count<<endl;
+  std::cout<<" total reparametrization time = "<<t_total<<std::endl;
+  std::cout<<"initialization time = "<<t_init<<std::endl;
+  std::cout<<"approximation time = "<<t_approx<<std::endl;
+  std::cout<<"total time for uparam computation = "<<t_uparam<<std::endl;
+  std::cout<<"number uparam calles = "<<uparam_count<<std::endl;
 #endif
 }
 
@@ -628,12 +628,12 @@ Approx_CurvilinearParameter::Approx_CurvilinearParameter(const Handle(Adaptor2d_
 
 void Approx_CurvilinearParameter::Dump(Standard_OStream& o) const
 {
-  o << "Dump of Approx_CurvilinearParameter" << endl;
+  o << "Dump of Approx_CurvilinearParameter" << std::endl;
   if (myCase==2 || myCase==3) 
-    o << "myMaxError2d1 = " << myMaxError2d1 << endl;
+    o << "myMaxError2d1 = " << myMaxError2d1 << std::endl;
   if (myCase==3) 
-    o << "myMaxError2d2 = " << myMaxError2d2 << endl;
-  o << "myMaxError3d = " << myMaxError3d << endl;
+    o << "myMaxError2d2 = " << myMaxError2d2 << std::endl;
+  o << "myMaxError3d = " << myMaxError3d << std::endl;
 }
 
 //=======================================================================
@@ -665,7 +665,7 @@ void Approx_CurvilinearParameter::ToleranceComputation(const Handle(Adaptor2d_HC
   TolW = Tol / (4.*Max_dS_dw);
 
 #ifdef OCCT_DEBUG
-  cout << "TolV = " << TolV << endl;
-  cout << "TolW = " << TolW << endl;
+  std::cout << "TolV = " << TolV << std::endl;
+  std::cout << "TolW = " << TolW << std::endl;
 #endif
 }
index 2714269..ab324f7 100644 (file)
@@ -36,17 +36,17 @@ static void DEBUG(const AppParCurves_MultiCurve& MC) {
   TColgp_Array1OfPnt2d Poles2d(1, nbpoles);
 
   for (i = 1; i <= nbcu; i++) {
-    cout << " Curve No. " << i << endl;
+    std::cout << " Curve No. " << i << std::endl;
     if (MC.Dimension(i) == 3) {
       MC.Curve(i, Poles);
       for (j = 1; j <= nbpoles; j++) {
-       cout<< " Pole = " << Poles(j).X() <<" "<<Poles(j).Y()<<" "<<Poles(j).Z()<< endl;
+       std::cout<< " Pole = " << Poles(j).X() <<" "<<Poles(j).Y()<<" "<<Poles(j).Z()<< std::endl;
       }
     }
     else {
       MC.Curve(i, Poles2d);
       for (j = 1; j <= nbpoles; j++) {
-       cout<< " Pole = " << Poles2d(j).X() <<" "<<Poles2d(j).Y()<< endl;
+       std::cout<< " Pole = " << Poles2d(j).X() <<" "<<Poles2d(j).Y()<< std::endl;
       }
     }
   }
index 3ad64ad..f5b080c 100644 (file)
@@ -542,7 +542,7 @@ void Approx_SameParameter::Build(const Standard_Real Tolerance)
       {
         //Projector
 #ifdef OCCT_DEBUG
-        cout << "Projection not done" << endl;
+        std::cout << "Projection not done" << std::endl;
 #endif
       }
     }
@@ -558,7 +558,7 @@ void Approx_SameParameter::Build(const Standard_Real Tolerance)
     // If not already SameP and tangent to mill, abandon.
     mySameParameter = Standard_False;
 #ifdef OCCT_DEBUG
-    cout<<"SameParameter problem  : zero tangent to extremities"<<endl;
+    std::cout<<"SameParameter problem  : zero tangent to extremities"<<std::endl;
 #endif
     return;
   }
@@ -653,7 +653,7 @@ void Approx_SameParameter::Build(const Standard_Real Tolerance)
         }
         else {
 #ifdef OCCT_DEBUG
-          cout << "Projection not done" << endl;
+          std::cout << "Projection not done" << std::endl;
 #endif
         }
       }
@@ -687,7 +687,7 @@ void Approx_SameParameter::Build(const Standard_Real Tolerance)
     if (Precision::IsInfinite(algtol)) {
       mySameParameter = Standard_False;
 #ifdef OCCT_DEBUG
-      cout<<"SameParameter problem  : function of interpolation of parametration at mills !!"<<endl;
+      std::cout<<"SameParameter problem  : function of interpolation of parametration at mills !!"<<std::endl;
 #endif
       return;
     }
@@ -778,7 +778,7 @@ void Approx_SameParameter::Build(const Standard_Real Tolerance)
         }
         else {
 #ifdef OCCT_DEBUG
-          cout << "Projection not done" << endl;
+          std::cout << "Projection not done" << std::endl;
 #endif
         }
       }
index c252c31..27304cd 100644 (file)
@@ -737,19 +737,19 @@ Standard_Real Approx_SweepApproximation::TolCurveOnSurf(const Standard_Integer I
 
  void Approx_SweepApproximation::Dump(Standard_OStream& o) const
 {
-  o << "Dump of SweepApproximation" << endl;
+  o << "Dump of SweepApproximation" << std::endl;
   if (done) { 
-    o << "Error 3d = " << MaxErrorOnSurf() << endl;
+    o << "Error 3d = " << MaxErrorOnSurf() << std::endl;
 
     if (Num2DSS>0) {
       o << "Error 2d = ";
       for (Standard_Integer ii=1; ii<=Num2DSS; ii++) 
        {  o << Max2dError(ii);
-          if (ii < Num2DSS) o << " , " << endl;
+          if (ii < Num2DSS) o << " , " << std::endl;
         }
-      cout << endl;
+      std::cout << std::endl;
     }
-    o <<  tabVKnots->Length()-1 <<" Segment(s) of degree " << vdeg << endl;
+    o <<  tabVKnots->Length()-1 <<" Segment(s) of degree " << vdeg << std::endl;
   }
-  else cout << " Not Done " << endl;
+  else std::cout << " Not Done " << std::endl;
 }
index b8bf254..a8f892c 100644 (file)
@@ -170,10 +170,10 @@ void ApproxInt_KnotTools::ComputeKnotInds(const NCollection_LocalArray<Standard_
   }
 
 #ifdef APPROXINT_KNOTTOOLS_DEBUG
-  cout << "Discrete curvature array is" << endl;
+  std::cout << "Discrete curvature array is" << std::endl;
   for(i = aCurv.Lower(); i <= aCurv.Upper(); ++i)
   {
-    cout << i << " " << aCurv(i) << endl;
+    std::cout << i << " " << aCurv(i) << std::endl;
   }
 #endif
 
@@ -219,11 +219,11 @@ void ApproxInt_KnotTools::ComputeKnotInds(const NCollection_LocalArray<Standard_
 
 #if defined(APPROXINT_KNOTTOOLS_DEBUG)
   {
-    cout << "Feature indices new: " << endl;
+    std::cout << "Feature indices new: " << std::endl;
     i;
     for(i = theInds.Lower(); i <= theInds.Upper();  ++i)
     {
-      cout << i << " : " << theInds(i) << endl;
+      std::cout << i << " : " << theInds(i) << std::endl;
     }
   }
 #endif
@@ -608,10 +608,10 @@ void ApproxInt_KnotTools::BuildKnots(const TColgp_Array1OfPnt& thePntsXYZ,
   ComputeKnotInds(aCoords, aDim, thePars, aKnots);
 
 #if defined(APPROXINT_KNOTTOOLS_DEBUG)
-    cout << "Draft knot sequence: " << endl;
+    std::cout << "Draft knot sequence: " << std::endl;
     for(i = aKnots.Lower(); i <= aKnots.Upper();  ++i)
     {
-      cout << i << " : " << aKnots(i) << endl;
+      std::cout << i << " : " << aKnots(i) << std::endl;
     }
 #endif
 
@@ -619,10 +619,10 @@ void ApproxInt_KnotTools::BuildKnots(const TColgp_Array1OfPnt& thePntsXYZ,
   FilterKnots(aKnots, theMinNbPnts, theKnots);
 
 #if defined(APPROXINT_KNOTTOOLS_DEBUG)
-    cout << "Result knot sequence: " << endl;
+    std::cout << "Result knot sequence: " << std::endl;
     for(i = theKnots.Lower(); i <= theKnots.Upper();  ++i)
     {
-      cout << i << " : " << theKnots(i) << endl;
+      std::cout << i << " : " << theKnots(i) << std::endl;
     }
 #endif
 
index c4534f9..9d41e91 100644 (file)
@@ -21,7 +21,7 @@
 #include <math_FunctionSetRoot.hxx>
 #include <Precision.hxx>
 
-#define Debug(expr)  cout<<" expr :"<<expr;
+#define Debug(expr)  std::cout<<" expr :"<<expr;
 #define MySurf1 MyIntersectionOn2S.Function().AuxillarSurface1()
 #define MySurf2 MyIntersectionOn2S.Function().AuxillarSurface2()
 
index a1da966..83ccd18 100644 (file)
@@ -255,9 +255,8 @@ Standard_Integer bopcheck (Draw_Interpretor& di,
   //
   const BOPDS_MapOfPair& aMPK=aDS.Interferences();
   //~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-  using namespace std;
-  vector <BOPTest_Interf> aVec;
-  vector <BOPTest_Interf>::iterator aIt;
+  std::vector <BOPTest_Interf> aVec;
+  std::vector <BOPTest_Interf>::iterator aIt;
   BOPTest_Interf aBInterf;
   //
   aItMPK.Initialize(aMPK);
@@ -281,7 +280,7 @@ Standard_Integer bopcheck (Draw_Interpretor& di,
     aVec.push_back(aBInterf);
   }
   //
-  sort( aVec.begin(), aVec.end(), less<BOPTest_Interf>());
+  sort( aVec.begin(), aVec.end(), std::less<BOPTest_Interf>());
   //
   iCnt=0;
   for (aIt=aVec.begin(); aIt!=aVec.end(); aIt++) {
index b65d4aa..a2724df 100644 (file)
@@ -988,7 +988,7 @@ Standard_Boolean BOPTools_AlgoTools::GetFaceOff
                            aDN1, aDBF, theContext, aProjPL, aDt3D);
   if (!bIsComputed) {
 #ifdef OCCT_DEBUG
-    cout << "BOPTools_AlgoTools::GetFaceOff(): incorrect computation of bi-normal direction." << endl;
+    std::cout << "BOPTools_AlgoTools::GetFaceOff(): incorrect computation of bi-normal direction." << std::endl;
 #endif
   }
   //
@@ -1006,7 +1006,7 @@ Standard_Boolean BOPTools_AlgoTools::GetFaceOff
                              aDBF2, theContext, aProjPL, aDt3D);
     if (!bIsComputed) {
 #ifdef OCCT_DEBUG
-      cout << "BOPTools_AlgoTools::GetFaceOff(): incorrect computation of bi-normal direction." << endl;
+      std::cout << "BOPTools_AlgoTools::GetFaceOff(): incorrect computation of bi-normal direction." << std::endl;
 #endif
     }
     //Angle
index 76e3087..f2af2dd 100644 (file)
@@ -149,7 +149,7 @@ BRepAlgo_BooleanOperation::~BRepAlgo_BooleanOperation()
   }
   myBuilderCanWork = (esp || tede) ;
 #ifdef OCCT_DEBUG
-  if (!esp) cout<<"BRepAlgo_BooleanOperation(DEB) some edges not SameParameter"<<endl;
+  if (!esp) std::cout<<"BRepAlgo_BooleanOperation(DEB) some edges not SameParameter"<<std::endl;
 #endif  
   if (!myBuilderCanWork) return;
   
@@ -241,8 +241,8 @@ BRepAlgo_BooleanOperation::~BRepAlgo_BooleanOperation()
       Vertex2.Append(Ex.Current()); nbv2++;
     }
 
-    //-- cout<<"Solids1: "<<nbs1<<"  Faces1: "<<nbf1<<" Edges1:"<<nbe1<<" Vtx1:"<<nbv1<<endl;
-    //-- cout<<"Solids2: "<<nbs2<<"  Faces2: "<<nbf2<<" Edges2:"<<nbe2<<" Vtx2:"<<nbv2<<endl;
+    //-- std::cout<<"Solids1: "<<nbs1<<"  Faces1: "<<nbf1<<" Edges1:"<<nbe1<<" Vtx1:"<<nbv1<<std::endl;
+    //-- std::cout<<"Solids2: "<<nbs2<<"  Faces2: "<<nbf2<<" Edges2:"<<nbe2<<" Vtx2:"<<nbv2<<std::endl;
 
     //== 
 
@@ -253,14 +253,14 @@ BRepAlgo_BooleanOperation::~BRepAlgo_BooleanOperation()
 //    Standard_Boolean Correct = Standard_True;
     if(    (nbs1 && nbs2==0 && St1==TopAbs_OUT && St2==TopAbs_IN) 
        ||  (nbs2 && nbs1==0 && St2==TopAbs_OUT && St1==TopAbs_IN)) { 
-      //-- cout<<"*****  Invalid Operation : Cut of a Solid by a Non Solid "<<endl;
+      //-- std::cout<<"*****  Invalid Operation : Cut of a Solid by a Non Solid "<<std::endl;
       Done();
       return;
     }
 
     if(    (nbs1 && nbs2==0 && St1==TopAbs_OUT && St2==TopAbs_OUT) 
        ||  (nbs2 && nbs1==0 && St2==TopAbs_OUT && St1==TopAbs_OUT)) { 
-      //-- cout<<"*****  Invalid Operation : Fusion of a Solid and a Non Solid "<<endl;
+      //-- std::cout<<"*****  Invalid Operation : Fusion of a Solid and a Non Solid "<<std::endl;
       Done();
       return;
     }
@@ -268,7 +268,7 @@ BRepAlgo_BooleanOperation::~BRepAlgo_BooleanOperation()
 
     if(    (nbs1>0 && nbs2>0) 
        &&  (nbe1 || nbe2 || nbf1 || nbf2 || nbv1 || nbv2)) { 
-      //-- cout<<"***** Not Yet Implemented : Compound of solid and non Solid"<<endl;
+      //-- std::cout<<"***** Not Yet Implemented : Compound of solid and non Solid"<<std::endl;
       Done();
       return;
     }
index 4805007..14713f5 100644 (file)
@@ -198,7 +198,7 @@ static TopoDS_Vertex  UpdateClosedEdge(const TopoDS_Edge&         E,
     if (!VB[0].IsSame(VB[1])) {
 #ifdef OCCT_DEBUG_ALGO
       if (AffichLoop)
-       cout <<"Two different vertices on the closing vertex"<<endl;
+       std::cout <<"Two different vertices on the closing vertex"<<std::endl;
 #endif
     }
     else {
@@ -314,7 +314,7 @@ static Standard_Boolean  SelectEdge(const TopoDS_Face&    F,
 #ifdef OCCT_DEBUG_ALGO  
   if (AffichLoop) {
     if ( LE.Extent() > 2) {
-      cout <<"vertex on more than 2 edges in a face."<<endl;
+      std::cout <<"vertex on more than 2 edges in a face."<<std::endl;
     }
   }
 #endif
@@ -512,7 +512,7 @@ void BRepAlgo_Loop::Perform()
 
 #ifdef OCCT_DEBUG_ALGO
   if (AffichLoop) {
-    cout <<"NewLoop"<<endl;
+    std::cout <<"NewLoop"<<std::endl;
     NbLoops++;
 #ifdef DRAW
     sprintf(name,"FLoop_%d",NbLoops);
@@ -582,7 +582,7 @@ void BRepAlgo_Loop::Perform()
 
 #ifdef DRAW
   if (AffichLoop) {
-    cout <<"NewLoop"<<endl;
+    std::cout <<"NewLoop"<<std::endl;
     Standard_Integer NbEdges = 1;
     TopTools_MapOfShape Done;
     for (Standard_Integer iV = 1; iV <= MVE.Extent(); iV++) {
@@ -685,9 +685,9 @@ void BRepAlgo_Loop::Perform()
     }
 #ifdef OCCT_DEBUG_ALGO
     else {
-      cout <<"BRepAlgo_Loop: Open Wire"<<endl;
+      std::cout <<"BRepAlgo_Loop: Open Wire"<<std::endl;
       if (AffichLoop)
-        cout << "OpenWire is : NW_"<<NbLoops<<"_"<<NbWires<<endl;
+        std::cout << "OpenWire is : NW_"<<NbLoops<<"_"<<NbWires<<std::endl;
       }
 #endif
 #ifdef DRAW
index 434ebf4..69cf292 100644 (file)
@@ -292,8 +292,8 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
       for(k = 1; k <= Projector.NbCurves(); k++){
        if(Projector.IsSinglePnt(k, P2d)){
 #ifdef OCCT_DEBUG
-         cout << "Projection of edge "<<i<<" on face "<<j;
-         cout << " is punctual"<<endl<<endl;
+         std::cout << "Projection of edge "<<i<<" on face "<<j;
+         std::cout << " is punctual"<<std::endl<<std::endl;
 #endif
          Projector.GetSurface()->D0(P2d.X(), P2d.Y(), P);
          prj = BRepLib_MakeVertex(P).Shape();
@@ -310,8 +310,8 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
          /**************************************************************/
          if (Projector.IsUIso(k, UIso)) {
 #ifdef OCCT_DEBUG
-           cout << "Projection of edge "<<i<<" on face "<<j;
-           cout << " is U-isoparametric"<<endl<<endl;
+           std::cout << "Projection of edge "<<i<<" on face "<<j;
+           std::cout << " is U-isoparametric"<<std::endl<<std::endl;
 #endif
            Projector.D0(Udeb, Pdeb);
            Projector.D0(Ufin, Pfin);
@@ -327,8 +327,8 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
          }
          else if (Projector.IsVIso(k, VIso)) {
 #ifdef OCCT_DEBUG
-           cout << "Projection of edge "<<i<<" on face "<<j;
-           cout << " is V-isoparametric"<<endl<<endl;
+           std::cout << "Projection of edge "<<i<<" on face "<<j;
+           std::cout << " is V-isoparametric"<<std::endl<<std::endl;
 #endif
            Projector.D0(Udeb, Pdeb);
            Projector.D0(Ufin, Pfin);
@@ -370,12 +370,12 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
            ResultChron(chr_approx,t_approx);
            approx_count++;
            
-           cout<<"Approximation.IsDone = "<<appr.IsDone()<<endl;
+           std::cout<<"Approximation.IsDone = "<<appr.IsDone()<<std::endl;
            if(!Only2d)
-             cout<<"MaxError3d = "<<appr.MaxError3d()<<endl<<endl;
+             std::cout<<"MaxError3d = "<<appr.MaxError3d()<<std::endl<<std::endl;
            if(!Only3d) {
-             cout<<"MaxError2dU = "<<appr.MaxError2dU()<<endl;
-             cout<<"MaxError2dV = "<<appr.MaxError2dV()<<endl<<endl;
+             std::cout<<"MaxError2dU = "<<appr.MaxError2dU()<<std::endl;
+             std::cout<<"MaxError2dV = "<<appr.MaxError2dV()<<std::endl<<std::endl;
            }
 #endif
 
@@ -440,8 +440,8 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
               }
              if (Degenerated) {
 #ifdef OCCT_DEBUG
-                 cout << "Projection of edge "<<i<<" on face "<<j;
-                 cout << " is degenerated "<<endl<<endl;
+                 std::cout << "Projection of edge "<<i<<" on face "<<j;
+                 std::cout << " is degenerated "<<std::endl<<std::endl;
 #endif
                TopoDS_Vertex VV;
                BB.MakeVertex(VV);
@@ -511,7 +511,7 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
             }
             else {
 #ifdef OCCT_DEBUG
-                 cout << " BooleanOperations : no solution " << endl;
+                 std::cout << " BooleanOperations : no solution " << std::endl;
 #endif
 
              BRepTopAdaptor_FClass2d classifier(TopoDS::Face(Faces->Value(j)),
@@ -557,13 +557,13 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
 #ifdef OCCT_DEBUG_CHRONO
   ResultChron(chr_total,t_total);
   
-  cout<<"Build - Total time  : "<<t_total<<" includes:" <<endl;
-  cout<<"- Projection           : "<<t_init<<endl;
-  cout<<"  -- Initial point search : "<<t_init_point<<endl;
-  cout<<"  -- DichoBound search : "<<t_dicho_bound<<endl;
-  cout<<"- Approximation        : "<<t_approx<<endl;
-  cout<<"- Boolean operation    : "<<t_booltool<<endl;
-  cout<<"- Rest of time         : "<<t_total-(t_init + t_approx + t_booltool )<<endl<<endl;
+  std::cout<<"Build - Total time  : "<<t_total<<" includes:" <<std::endl;
+  std::cout<<"- Projection           : "<<t_init<<std::endl;
+  std::cout<<"  -- Initial point search : "<<t_init_point<<std::endl;
+  std::cout<<"  -- DichoBound search : "<<t_dicho_bound<<std::endl;
+  std::cout<<"- Approximation        : "<<t_approx<<std::endl;
+  std::cout<<"- Boolean operation    : "<<t_booltool<<std::endl;
+  std::cout<<"- Rest of time         : "<<t_total-(t_init + t_approx + t_booltool )<<std::endl<<std::endl;
   if (init_count != 0)
     t_init /= init_count;
   if (init_point_count != 0)
@@ -575,13 +575,13 @@ void BRepAlgo_NormalProjection::SetDefaultParams()
   if (booltool_count != 0)
     t_booltool /= booltool_count;
   
-  cout<<"Unitary average time  : "<<endl;
-  cout<<"- Projection          : "<<t_init<<endl;
-  cout<<"  -- Initial point search: "<<t_init_point<<endl;
-  cout<<"  -- DichoBound search : "<<t_dicho_bound<<endl;
-  cout<<"- Approximation       : "<<t_approx<<endl;
-  cout<<"- Boolean operation   :"<<t_booltool<<endl;
-  cout<<endl<<"Number of initial point computations is "<<init_point_count<<endl<<endl;
+  std::cout<<"Unitary average time  : "<<std::endl;
+  std::cout<<"- Projection          : "<<t_init<<std::endl;
+  std::cout<<"  -- Initial point search: "<<t_init_point<<std::endl;
+  std::cout<<"  -- DichoBound search : "<<t_dicho_bound<<std::endl;
+  std::cout<<"- Approximation       : "<<t_approx<<std::endl;
+  std::cout<<"- Boolean operation   :"<<t_booltool<<std::endl;
+  std::cout<<std::endl<<"Number of initial point computations is "<<init_point_count<<std::endl<<std::endl;
 #endif
 }
 
index f838eac..26da903 100644 (file)
@@ -91,7 +91,7 @@ TopoDS_Shape BRepAlgo_Tool::Deboucle3D(const TopoDS_Shape& S,
       if (NbSub == 0)
         {
 #ifdef OCCT_DEBUG
-        cout << "No subhape in shape!" << endl;
+        std::cout << "No subhape in shape!" << std::endl;
 #endif
         SS = TopoDS_Shape();
         }
index 8a97359..46c703d 100644 (file)
@@ -331,7 +331,7 @@ Standard_Boolean BRepBlend_AppFuncRoot::SearchPoint(Blend_AppFunction& Func,
   
   if (!rsnld.IsDone()) {
 # ifdef BREPBLEND_DEB
-    cout << "AppFunc : RNLD Not done en t = " <<  Param  << endl;
+    std::cout << "AppFunc : RNLD Not done en t = " <<  Param  << std::endl;
 # endif 
     return Standard_False;
   }
@@ -343,8 +343,8 @@ Standard_Boolean BRepBlend_AppFuncRoot::SearchPoint(Blend_AppFunction& Func,
   // (4) Insertion of the point if the calculation seems long.
   if ((!Trouve)&&(rsnld.NbIterations()>3)) {
 #ifdef OCCT_DEBUG
-    cout << "Evaluation in t = " <<  Param << "given" << endl;
-    rsnld.Dump(cout);
+    std::cout << "Evaluation in t = " <<  Param << "given" << std::endl;
+    rsnld.Dump(std::cout);
 #endif
     myLine->InsertBefore(Index+1, Pnt);
   }
index a291aa3..db9ee1b 100644 (file)
@@ -101,28 +101,28 @@ static void tracederiv(Blend_RstRstFunction& Func,
   Standard_Real param2 = BP2.Parameter();
   Standard_Real scal = 1./ (param1 - param2);
 
-  cout<<endl;
-  cout<<"control of derivatives at point : "<<param1<<endl;
+  std::cout<<std::endl;
+  std::cout<<"control of derivatives at point : "<<param1<<std::endl;
 
   for(i = 1; i <= hp; i++){
-    cout<<endl;
-    cout<<"point : "<<i<<endl;
-    cout<<"dx calculated : "<<TDP1(i).X()<<endl;
-    cout<<"dx estimated  : "<<scal*(TP1(i).X()-TP2(i).X())<<endl;
-    cout<<"dy calculated : "<<TDP1(i).Y()<<endl;
-    cout<<"dy estimated  : "<<scal*(TP1(i).Y()-TP2(i).Y())<<endl;
-    cout<<"dz calculated : "<<TDP1(i).Z()<<endl;
-    cout<<"dz estimated  : "<<scal*(TP1(i).Z()-TP2(i).Z())<<endl;
-    cout<<"dw calculated : "<<TDW1(i)<<endl;
-    cout<<"dw estimated  : "<<scal*(TW1(i)-TW2(i))<<endl;
+    std::cout<<std::endl;
+    std::cout<<"point : "<<i<<std::endl;
+    std::cout<<"dx calculated : "<<TDP1(i).X()<<std::endl;
+    std::cout<<"dx estimated  : "<<scal*(TP1(i).X()-TP2(i).X())<<std::endl;
+    std::cout<<"dy calculated : "<<TDP1(i).Y()<<std::endl;
+    std::cout<<"dy estimated  : "<<scal*(TP1(i).Y()-TP2(i).Y())<<std::endl;
+    std::cout<<"dz calculated : "<<TDP1(i).Z()<<std::endl;
+    std::cout<<"dz estimated  : "<<scal*(TP1(i).Z()-TP2(i).Z())<<std::endl;
+    std::cout<<"dw calculated : "<<TDW1(i)<<std::endl;
+    std::cout<<"dw estimated  : "<<scal*(TW1(i)-TW2(i))<<std::endl;
   }
   for(i = 1; i <= hp2d; i++){
-    cout<<endl;
-    cout<<"point 2d : "<<i<<endl;
-    cout<<"dx calculated : "<<TDP2d1(i).X()<<endl;
-    cout<<"dx estimated  : "<<scal*(TP2d1(i).X()-TP2d2(i).X())<<endl;
-    cout<<"dy calculated : "<<TDP2d1(i).Y()<<endl;
-    cout<<"dy estimated  : "<<scal*(TP2d1(i).Y()-TP2d2(i).Y())<<endl;
+    std::cout<<std::endl;
+    std::cout<<"point 2d : "<<i<<std::endl;
+    std::cout<<"dx calculated : "<<TDP2d1(i).X()<<std::endl;
+    std::cout<<"dx estimated  : "<<scal*(TP2d1(i).X()-TP2d2(i).X())<<std::endl;
+    std::cout<<"dy calculated : "<<TDP2d1(i).Y()<<std::endl;
+    std::cout<<"dy estimated  : "<<scal*(TP2d1(i).Y()-TP2d2(i).Y())<<std::endl;
   }
 }
 #endif
@@ -825,7 +825,7 @@ void BRepBlend_RstRstLineBuilder::InternalPerform(Blend_RstRstFunction&   Func,
       else{
        // reframing failed. Leave with PointsConfondus
 #ifdef OCCT_DEBUG
-       cout<<"reframing failed"<<endl;
+       std::cout<<"reframing failed"<<std::endl;
 #endif
        State = Blend_SamePoints;
       }
@@ -880,7 +880,7 @@ void BRepBlend_RstRstLineBuilder::InternalPerform(Blend_RstRstFunction&   Func,
 #ifdef OCCT_DEBUG
          if (line->NbPoints()>=2) {
            // Show that there is a stop during processing 
-           cout<<"No more advancement in the processing"<<endl;
+           std::cout<<"No more advancement in the processing"<<std::endl;
          }
 #endif
        }
@@ -988,7 +988,7 @@ void BRepBlend_RstRstLineBuilder::InternalPerform(Blend_RstRstFunction&   Func,
       {
        // Stop
 #ifdef OCCT_DEBUG
-       cout << " Mixed points in the processing" << endl;
+       std::cout << " Mixed points in the processing" << std::endl;
 #endif
        Extrst1.SetValue(previousP.PointOnC1(),
                         previousP.ParameterOnC1(),
@@ -1039,7 +1039,7 @@ Standard_Boolean BRepBlend_RstRstLineBuilder::Recadre1(Blend_RstRstFunction&
   rsnld.Perform(Finv, Solinv, infb, supb);
   if (!rsnld.IsDone()) {
 #ifdef OCCT_DEBUG
-    cout << "RSNLD not done "<< endl << endl;
+    std::cout << "RSNLD not done "<< std::endl << std::endl;
 #endif
     return Standard_False;
   }
@@ -1121,7 +1121,7 @@ Standard_Boolean BRepBlend_RstRstLineBuilder::Recadre2(Blend_RstRstFunction&
   rsnld.Perform(Finv, Solinv, infb, supb);
   if (!rsnld.IsDone()) {
 #ifdef OCCT_DEBUG
-    cout << "RSNLD not done "<< endl << endl;
+    std::cout << "RSNLD not done "<< std::endl << std::endl;
 #endif
     return Standard_False;
   }
@@ -1207,7 +1207,7 @@ Standard_Boolean BRepBlend_RstRstLineBuilder::Recadre1(Blend_CurvPointFuncInv&
   rsnld.Perform(FinvP, Solinv, infb, supb);
   if (!rsnld.IsDone()) {
 #ifdef OCCT_DEBUG
-    cout << "RSNLD not done "<< endl << endl;
+    std::cout << "RSNLD not done "<< std::endl << std::endl;
 #endif
     return Standard_False;
   }
@@ -1275,7 +1275,7 @@ Standard_Boolean BRepBlend_RstRstLineBuilder::Recadre2(Blend_CurvPointFuncInv&
   rsnld.Perform(FinvP, Solinv, infb, supb);
   if (!rsnld.IsDone()) {
 #ifdef OCCT_DEBUG
-    cout << "RSNLD not done "<< endl << endl;
+    std::cout << "RSNLD not done "<< std::endl << std::endl;
 #endif
     return Standard_False;
   }
index cdca3bd..c80e52d 100644 (file)
@@ -921,7 +921,7 @@ Standard_Boolean BRepBlend_SurfRstConstRad::Section
   if (norm < Eps)  {
     norm = 1; // Not enough, but it is not necessary to stop
 #ifdef OCCT_DEBUG
-    cout << " SurfRstConstRad : Singular Surface " << endl;
+    std::cout << " SurfRstConstRad : Singular Surface " << std::endl;
 #endif
   }  
   
index 1658d7c..e91a0b5 100644 (file)
@@ -934,7 +934,7 @@ TColStd_Array1OfReal& DWeigths)
   if (norm < Eps)  {
     norm = 1; // Not enough, but it is not necessary to stop
 #ifdef OCCT_DEBUG
-    cout << " SurfRstEvolRad : Surface single " << endl;
+    std::cout << " SurfRstEvolRad : Surface single " << std::endl;
 #endif
   }
   
index 40adf8d..5fc64d8 100644 (file)
@@ -96,28 +96,28 @@ static void tracederiv(Blend_SurfRstFunction& Func,
   Standard_Real param2 = BP2.Parameter();
   Standard_Real scal = 1./(param1-param2);
 
-  cout<<endl;
-  cout<<"control derivatives at point : "<<param1<<endl;
+  std::cout<<std::endl;
+  std::cout<<"control derivatives at point : "<<param1<<std::endl;
 
   for(i = 1; i <= hp; i++){
-    cout<<endl;
-    cout<<"point : "<<i<<endl;
-    cout<<"dx calculated : "<<TDP1(i).X()<<endl;
-    cout<<"dx estimated  : "<<scal*(TP1(i).X()-TP2(i).X())<<endl;
-    cout<<"dy calculated : "<<TDP1(i).Y()<<endl;
-    cout<<"dy estimated  : "<<scal*(TP1(i).Y()-TP2(i).Y())<<endl;
-    cout<<"dz calculated : "<<TDP1(i).Z()<<endl;
-    cout<<"dz estimated  : "<<scal*(TP1(i).Z()-TP2(i).Z())<<endl;
-    cout<<"dw calculated : "<<TDW1(i)<<endl;
-    cout<<"dw estimated  : "<<scal*(TW1(i)-TW2(i))<<endl;
+    std::cout<<std::endl;
+    std::cout<<"point : "<<i<<std::endl;
+    std::cout<<"dx calculated : "<<TDP1(i).X()<<std::endl;
+    std::cout<<"dx estimated  : "<<scal*(TP1(i).X()-TP2(i).X())<<std::endl;
+    std::cout<<"dy calculated : "<<TDP1(i).Y()<<std::endl;
+    std::cout<<"dy estimated  : "<<scal*(TP1(i).Y()-TP2(i).Y())<<std::endl;
+    std::cout<<"dz calculated : "<<TDP1(i).Z()<<std::endl;
+    std::cout<<"dz estimated  : "<<scal*(TP1(i).Z()-TP2(i).Z())<<std::endl;
+    std::cout<<"dw calculated : "<<TDW1(i)<<std::endl;
+    std::cout<<"dw estimated  : "<<scal*(TW1(i)-TW2(i))<<std::endl;
   }
   for(i = 1; i <= hp2d; i++){
-    cout<<endl;
-    cout<<"point 2d : "<<i<<endl;
-    cout<<"dx calculated : "<<TDP2d1(i).X()<<endl;
-    cout<<"dx estimated  : "<<scal*(TP2d1(i).X()-TP2d2(i).X())<<endl;
-    cout<<"dy calculated : "<<TDP2d1(i).Y()<<endl;
-    cout<<"dy estimated  : "<<scal*(TP2d1(i).Y()-TP2d2(i).Y())<<endl;
+    std::cout<<std::endl;
+    std::cout<<"point 2d : "<<i<<std::endl;
+    std::cout<<"dx calculated : "<<TDP2d1(i).X()<<std::endl;
+    std::cout<<"dx estimated  : "<<scal*(TP2d1(i).X()-TP2d2(i).X())<<std::endl;
+    std::cout<<"dy calculated : "<<TDP2d1(i).Y()<<std::endl;
+    std::cout<<"dy estimated  : "<<scal*(TP2d1(i).Y()-TP2d2(i).Y())<<std::endl;
   }
 }
 #endif
@@ -717,7 +717,7 @@ void BRepBlend_SurfRstLineBuilder::InternalPerform(Blend_SurfRstFunction&  Func,
       else{
        // Failed reframing. Leave with PointsConfondus
 #ifdef OCCT_DEBUG
-       cout<<"SurfRstLineBuilder : failed reframing"<<endl;
+       std::cout<<"SurfRstLineBuilder : failed reframing"<<std::endl;
 #endif
        State = Blend_SamePoints;
       }
@@ -772,7 +772,7 @@ void BRepBlend_SurfRstLineBuilder::InternalPerform(Blend_SurfRstFunction&  Func,
          if (line->NbPoints()>=2) {
            // Indicate that one stops during the processing
 #ifdef OCCT_DEBUG
-           cout<<"SurfRstLineBuilder : No advancement in the processing"<<endl;
+           std::cout<<"SurfRstLineBuilder : No advancement in the processing"<<std::endl;
 #endif
          }
        }
@@ -878,7 +878,7 @@ void BRepBlend_SurfRstLineBuilder::InternalPerform(Blend_SurfRstFunction&  Func,
       {
        // Stop
 #ifdef OCCT_DEBUG
-       cout << "SurfRstLineBuilder Points mixed in the processing" << endl;
+       std::cout << "SurfRstLineBuilder Points mixed in the processing" << std::endl;
 #endif
        previousP.ParametersOnS(U,V);
        Exts.SetValue(previousP.PointOnS(),U,V,
@@ -951,7 +951,7 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::Recadre(Blend_SurfCurvFuncInv&
 
   if (!rsnld.IsDone()) {
 #ifdef OCCT_DEBUG
-    cout << "SurfRstLineBuilder : RSNLD not done "<< endl << endl;
+    std::cout << "SurfRstLineBuilder : RSNLD not done "<< std::endl << std::endl;
 #endif
   }
   else {
@@ -990,7 +990,7 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::Recadre(Blend_SurfCurvFuncInv&
 
     if (!aRsnld.IsDone()) {
 #ifdef OCCT_DEBUG
-      cout << "SurfRstLineBuilder : RSNLD not done "<< endl << endl;
+      std::cout << "SurfRstLineBuilder : RSNLD not done "<< std::endl << std::endl;
 #endif
     }
     else {
@@ -1051,7 +1051,7 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::Recadre(Blend_SurfRstFunction&
   rsnld.Perform(Finv,Solinv,infb,supb);
   if (!rsnld.IsDone()) {
 #ifdef OCCT_DEBUG
-    cout << "SurfRstLineBuilder :RSNLD not done "<< endl;
+    std::cout << "SurfRstLineBuilder :RSNLD not done "<< std::endl;
 #endif
     return Standard_False;
   }
@@ -1135,7 +1135,7 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::Recadre(Blend_SurfPointFuncInv&
   rsnld.Perform(FinvP,Solinv,infb,supb);
   if (!rsnld.IsDone()) {
 #ifdef OCCT_DEBUG
-    cout << "SurfRstLineBuilder :RSNLD not done "<< endl;
+    std::cout << "SurfRstLineBuilder :RSNLD not done "<< std::endl;
 #endif
     return Standard_False;
   }
index 2f05c1a..8f6ab8a 100644 (file)
@@ -330,7 +330,7 @@ void BRepBuilderAPI_FastSewing::Perform(void)
   {
     SetStatus(FS_Exception);
 #ifdef OCCT_DEBUG
-    //Standard_Failure::Caught()->Print(cout);
+    //Standard_Failure::Caught()->Print(std::cout);
 #endif
     return;
   }
index 24114ff..aa9fb08 100644 (file)
@@ -145,8 +145,8 @@ Handle(Geom2d_Curve) BRepBuilderAPI_Sewing::SameRange(const Handle(Geom2d_Curve)
   }
   catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    cout << "Exception in BRepBuilderAPI_Sewing::SameRange: ";
-    anException.Print(cout); cout << endl;
+    std::cout << "Exception in BRepBuilderAPI_Sewing::SameRange: ";
+    anException.Print(std::cout); std::cout << std::endl;
 #endif
     (void)anException;
   }
@@ -318,8 +318,8 @@ void BRepBuilderAPI_Sewing::SameParameter(const TopoDS_Edge& edge) const
   }
   catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    cout << "Exception in BRepBuilderAPI_Sewing::SameParameter: ";
-    anException.Print(cout); cout << endl;
+    std::cout << "Exception in BRepBuilderAPI_Sewing::SameParameter: ";
+    anException.Print(std::cout); std::cout << std::endl;
 #endif
     (void)anException;
   }
@@ -1827,7 +1827,7 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
   if (myAnalysis)
   {
 #ifdef OCCT_DEBUG
-    cout << "Begin face analysis..." << endl;
+    std::cout << "Begin face analysis..." << std::endl;
     chr_local.Reset();
     chr_local.Start();
 #endif
@@ -1838,7 +1838,7 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
 #ifdef OCCT_DEBUG
     chr_local.Stop();
     chr_local.Show(t_analysis);
-    cout << "Face analysis finished after " << t_analysis << " s" << endl;
+    std::cout << "Face analysis finished after " << t_analysis << " s" << std::endl;
 #endif
   }
 
@@ -1851,7 +1851,7 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
     {
 
 #ifdef OCCT_DEBUG
-      cout << "Begin vertices assembling..." << endl;
+      std::cout << "Begin vertices assembling..." << std::endl;
       chr_local.Reset();
       chr_local.Start();
 #endif
@@ -1862,12 +1862,12 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
 #ifdef OCCT_DEBUG
       chr_local.Stop();
       chr_local.Show(t_assembling);
-      cout << "Vertices assembling finished after " << t_assembling << " s" << endl;
+      std::cout << "Vertices assembling finished after " << t_assembling << " s" << std::endl;
 #endif
       if (myCutting)
       {
 #ifdef OCCT_DEBUG
-        cout << "Begin cutting..." << endl;
+        std::cout << "Begin cutting..." << std::endl;
         chr_local.Reset();
         chr_local.Start();
 #endif
@@ -1878,11 +1878,11 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
 #ifdef OCCT_DEBUG
         chr_local.Stop();
         chr_local.Show(t_cutting);
-        cout << "Cutting finished after " << t_cutting << " s" << endl;
+        std::cout << "Cutting finished after " << t_cutting << " s" << std::endl;
 #endif
       }
 #ifdef OCCT_DEBUG
-      cout << "Begin merging..." << endl;
+      std::cout << "Begin merging..." << std::endl;
       chr_local.Reset();
       chr_local.Start();
 #endif
@@ -1893,7 +1893,7 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
 #ifdef OCCT_DEBUG
       chr_local.Stop();
       chr_local.Show(t_merging);
-      cout << "Merging finished after " << t_merging << " s" << endl;
+      std::cout << "Merging finished after " << t_merging << " s" << std::endl;
 #endif
     }
     else
@@ -1910,7 +1910,7 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
     {
 
 #ifdef OCCT_DEBUG
-      cout << "Creating sewed shape..." << endl;
+      std::cout << "Creating sewed shape..." << std::endl;
 #endif
       // examine the multiple edges if any and process sameparameter for edges if necessary
       EdgeProcessing (thePI);
@@ -1933,7 +1933,7 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
         return;
       }
 #ifdef OCCT_DEBUG
-      cout << "Sewed shape created" << endl;
+      std::cout << "Sewed shape created" << std::endl;
 #endif
     }
 
@@ -1948,12 +1948,12 @@ void BRepBuilderAPI_Sewing::Perform(const Handle(Message_ProgressIndicator)& the
 #ifdef OCCT_DEBUG
   chr_total.Stop();
   chr_total.Show(t_total);
-  cout << "Sewing finished!" << endl;
-  cout << " analysis time   : " << t_analysis << " s" << endl;
-  cout << " assembling time : " << t_assembling << " s" << endl;
-  cout << " cutting time    : " << t_cutting << " s" << endl;
-  cout << " merging time    : " << t_merging << " s" << endl;
-  cout << "Total time       : " << t_total << " s" << endl;
+  std::cout << "Sewing finished!" << std::endl;
+  std::cout << " analysis time   : " << t_analysis << " s" << std::endl;
+  std::cout << " assembling time : " << t_assembling << " s" << std::endl;
+  std::cout << " cutting time    : " << t_cutting << " s" << std::endl;
+  std::cout << " merging time    : " << t_merging << " s" << std::endl;
+  std::cout << "Total time       : " << t_total << " s" << std::endl;
 #endif
 }
 
@@ -2205,23 +2205,23 @@ void BRepBuilderAPI_Sewing::Dump() const
       mapVertices.Add(V2);
     }
   }
-  cout << " " << endl;
-  cout << "                        Informations                        " << endl;
-  cout << " ===========================================================" << endl;
-  cout << " " << endl;
-  cout << " Number of input shapes      : " << myOldShapes.Extent() << endl;
-  cout << " Number of actual shapes     : " << myNbShapes << endl;
-  cout << " Number of Bounds            : " << NbBounds << endl;
-  cout << " Number of Sections          : " << NbSections << endl;
-  cout << " Number of Edges             : " << mapEdges.Extent() << endl;
-  cout << " Number of Vertices          : " << myNbVertices << endl;
-  cout << " Number of Nodes             : " << mapVertices.Extent() << endl;
-  cout << " Number of Free Edges        : " << myFreeEdges.Extent() << endl;
-  cout << " Number of Contigous Edges   : " << myContigousEdges.Extent() << endl;
-  cout << " Number of Multiple Edges    : " << myMultipleEdges.Extent() << endl;
-  cout << " Number of Degenerated Edges : " << myDegenerated.Extent() << endl;
-  cout << " ===========================================================" << endl;
-  cout << " " << endl;
+  std::cout << " " << std::endl;
+  std::cout << "                        Informations                        " << 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;
 }
 
 //=======================================================================
@@ -2297,7 +2297,7 @@ void BRepBuilderAPI_Sewing::FaceAnalysis(const Handle(Message_ProgressIndicator)
            Handle(Geom_Curve) c3d = BRep_Tool::Curve(edge,first,last);
            if (c3d.IsNull()) {
 #ifdef OCCT_DEBUG
-             cout << "Warning: Possibly small edge can be sewed: No 3D curve" << endl;
+             std::cout << "Warning: Possibly small edge can be sewed: No 3D curve" << std::endl;
 #endif
            }
            else {
@@ -2318,8 +2318,8 @@ void BRepBuilderAPI_Sewing::FaceAnalysis(const Handle(Message_ProgressIndicator)
              }
              catch (Standard_Failure) {
 #ifdef OCCT_DEBUG
-               cout << "Warning: Possibly small edge can be sewed: ";
-               Standard_Failure::Caught()->Print(cout); cout << endl;
+               std::cout << "Warning: Possibly small edge can be sewed: ";
+               Standard_Failure::Caught()->Print(std::cout); std::cout << std::endl;
 #endif
              }*/
            }
@@ -2377,7 +2377,7 @@ void BRepBuilderAPI_Sewing::FaceAnalysis(const Handle(Message_ProgressIndicator)
          // Replace small edge
          if (isSmall) {
 #ifdef OCCT_DEBUG
-           cout << "Warning: Small edge made degenerated by FaceAnalysis" << endl;
+           std::cout << "Warning: Small edge made degenerated by FaceAnalysis" << std::endl;
 #endif
            nbSmall++;
            // Create new degenerated edge
@@ -2414,7 +2414,7 @@ void BRepBuilderAPI_Sewing::FaceAnalysis(const Handle(Message_ProgressIndicator)
       // Remove small face
       if (nbSmall == nbEdges) {
 #ifdef OCCT_DEBUG
-       cout << "Warning: Small face removed by FaceAnalysis" << endl;
+       std::cout << "Warning: Small face removed by FaceAnalysis" << std::endl;
 #endif
        myLittleFace.Add(face);
        myReShape->Remove(face);
@@ -2801,7 +2801,7 @@ static Standard_Boolean GlueVertices(TopTools_IndexedDataMapOfShapeShape& aVerte
   }
   Standard_Integer nbNodes = NodeVertices.Extent();
 #ifdef OCCT_DEBUG
-  cout << "Glueing " << nbNodes << " nodes..." << endl;
+  std::cout << "Glueing " << nbNodes << " nodes..." << std::endl;
 #endif
   // Merge nearest nodes
   TopTools_IndexedDataMapOfShapeShape NodeNearestNode;
@@ -2962,7 +2962,7 @@ void BRepBuilderAPI_Sewing::VerticesAssembling(const Handle(Message_ProgressIndi
     // Glue vertices
     if (nbVert) {
 #ifdef OCCT_DEBUG
-      cout << "Assemble " << nbVert << " vertices on faces..." << endl;
+      std::cout << "Assemble " << nbVert << " vertices on faces..." << std::endl;
 #endif
       while (GlueVertices(myVertexNode,myNodeSections,myBoundFaces,myTolerance, thePI));
     }
@@ -2971,7 +2971,7 @@ void BRepBuilderAPI_Sewing::VerticesAssembling(const Handle(Message_ProgressIndi
     aPS.Next();
     if (nbVertFree) {
 #ifdef OCCT_DEBUG
-      cout << "Assemble " << nbVertFree << " vertices on floating edges..." << endl;
+      std::cout << "Assemble " << nbVertFree << " vertices on floating edges..." << std::endl;
 #endif
       while (GlueVertices(myVertexNodeFree,myNodeSections,myBoundFaces,myTolerance, thePI));
     }
@@ -3737,8 +3737,8 @@ void BRepBuilderAPI_Sewing::Cutting(const Handle(Message_ProgressIndicator)& the
     }
   }
 #ifdef OCCT_DEBUG
-  cout << "From " << nbBounds << " bounds " << myBoundSections.Extent()
-    << " were cut into " << mySectionBound.Extent() << " sections" << endl;
+  std::cout << "From " << nbBounds << " bounds " << myBoundSections.Extent()
+    << " were cut into " << mySectionBound.Extent() << " sections" << std::endl;
 #endif
 }
 
@@ -4364,8 +4364,8 @@ void BRepBuilderAPI_Sewing::ProjectPointsOnCurve(const TColgp_Array1OfPnt& arrPn
     }
     catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-      cout << "Exception in BRepBuilderAPI_Sewing::ProjectPointsOnCurve: ";
-      anException.Print(cout); cout << endl;
+      std::cout << "Exception in BRepBuilderAPI_Sewing::ProjectPointsOnCurve: ";
+      anException.Print(std::cout); std::cout << std::endl;
 #endif
       (void)anException;
       worktol = MinTolerance();
@@ -4704,8 +4704,8 @@ void BRepBuilderAPI_Sewing::CreateSections(const TopoDS_Shape& section,
       //}
       /*catch (Standard_Failure) {
       #ifdef OCCT_DEBUG
-      cout << "Exception in CreateSections: segment [" << par1 << "," << par2 << "]: ";
-      Standard_Failure::Caught()->Print(cout); cout << endl;
+      std::cout << "Exception in CreateSections: segment [" << par1 << "," << par2 << "]: ";
+      Standard_Failure::Caught()->Print(std::cout); std::cout << std::endl;
       #endif
       Handle(Geom2d_TrimmedCurve) c2dT = new Geom2d_TrimmedCurve(c2dNew,Max(first2d,par1),Min(par2,last2d));
       c2dNew = c2dT;
@@ -4746,7 +4746,7 @@ void BRepBuilderAPI_Sewing::SameParameterShape()
     }
     catch (Standard_Failure const&) {
 #ifdef OCCT_DEBUG
-      cout << "Fail: BRepBuilderAPI_Sewing::SameParameterShape exception in BRepLib::SameParameter" << endl;
+      std::cout << "Fail: BRepBuilderAPI_Sewing::SameParameterShape exception in BRepLib::SameParameter" << std::endl;
 #endif
       continue;
     }
index a10ce07..a4aee46 100644 (file)
@@ -135,9 +135,9 @@ void BRepCheck_Analyzer::Perform(const TopoDS_Shape& S)
       }
       catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-        cout<<"BRepCheck_Analyzer : ";
-        anException.Print(cout);  
-        cout<<endl;
+        std::cout<<"BRepCheck_Analyzer : ";
+        anException.Print(std::cout);  
+        std::cout<<std::endl;
 #endif
         (void)anException;
         if ( ! myMap(S).IsNull() )
@@ -164,9 +164,9 @@ void BRepCheck_Analyzer::Perform(const TopoDS_Shape& S)
         }
         catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-          cout<<"BRepCheck_Analyzer : ";
-          anException.Print(cout);  
-          cout<<endl;
+          std::cout<<"BRepCheck_Analyzer : ";
+          anException.Print(std::cout);  
+          std::cout<<std::endl;
 #endif
           (void)anException;
           if ( ! myMap(S).IsNull() )
@@ -202,9 +202,9 @@ void BRepCheck_Analyzer::Perform(const TopoDS_Shape& S)
         }
         catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-          cout<<"BRepCheck_Analyzer : ";
-          anException.Print(cout);  
-          cout<<endl;
+          std::cout<<"BRepCheck_Analyzer : ";
+          anException.Print(std::cout);  
+          std::cout<<std::endl;
 #endif
           (void)anException;
           if ( ! myMap(S).IsNull() )
@@ -262,9 +262,9 @@ void BRepCheck_Analyzer::Perform(const TopoDS_Shape& S)
         }
         catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-          cout<<"BRepCheck_Analyzer : ";
-          anException.Print(cout);  
-          cout<<endl;
+          std::cout<<"BRepCheck_Analyzer : ";
+          anException.Print(std::cout);  
+          std::cout<<std::endl;
 #endif
           (void)anException;
           if ( ! myMap(S).IsNull() )
@@ -315,9 +315,9 @@ void BRepCheck_Analyzer::Perform(const TopoDS_Shape& S)
         }
         catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-          cout<<"BRepCheck_Analyzer : ";
-          anException.Print(cout);  
-          cout<<endl;
+          std::cout<<"BRepCheck_Analyzer : ";
+          anException.Print(std::cout);  
+          std::cout<<std::endl;
 #endif
           (void)anException;
           if ( ! myMap(S).IsNull() )
@@ -362,9 +362,9 @@ void BRepCheck_Analyzer::Perform(const TopoDS_Shape& S)
       }
       catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-        cout<<"BRepCheck_Analyzer : ";
-        anException.Print(cout);  
-        cout<<endl;
+        std::cout<<"BRepCheck_Analyzer : ";
+        anException.Print(std::cout);  
+        std::cout<<std::endl;
 #endif
         (void)anException;
         if ( ! myMap(S).IsNull() )
@@ -403,9 +403,9 @@ void BRepCheck_Analyzer::Perform(const TopoDS_Shape& S)
             }
           catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-              cout<<"BRepCheck_Analyzer : ";
-              anException.Print(cout);  
-              cout<<endl;
+              std::cout<<"BRepCheck_Analyzer : ";
+              anException.Print(std::cout);  
+              std::cout<<std::endl;
 #endif
               (void)anException;
               if ( ! myMap(S).IsNull() )
index 9bc292a..84f7679 100644 (file)
@@ -920,10 +920,10 @@ void PrintProblematicPoint(const gp_Pnt& problematic_point,
   const Standard_Real Error,
   const Standard_Real Tol)
 {
-  cout << " **** probleme de SameParameter au point :" << endl;
-  cout << "         " << problematic_point.Coord(1) << " " 
-    << problematic_point.Coord(2) << " " << problematic_point.Coord(3) << endl ;
-  cout << "   Erreur detectee :" << Error << " Tolerance :" << Tol << endl;
+  std::cout << " **** probleme de SameParameter au point :" << std::endl;
+  std::cout << "         " << problematic_point.Coord(1) << " " 
+    << problematic_point.Coord(2) << " " << problematic_point.Coord(3) << std::endl ;
+  std::cout << "   Erreur detectee :" << Error << " Tolerance :" << Tol << std::endl;
 }
 #else
 void PrintProblematicPoint(const gp_Pnt&,
index 35028cd..e50a0b7 100644 (file)
@@ -477,11 +477,11 @@ BRepCheck_Status BRepCheck_Shell::Orientation(const Standard_Boolean Update)
   if (BRepCheck_Trace(0) > 1) {
     TopTools_DataMapIteratorOfDataMapOfShapeInteger itt(MapOfShapeOrientation);
     Standard_Integer upper = MapOfShapeOrientation.NbBuckets();
-    cout << "La map shape Orientation :" << endl;
+    std::cout << "La map shape Orientation :" << std::endl;
     for (; itt.More(); itt.Next()) {
       PrintShape(itt.Key(), upper);
     }
-    cout << endl;
+    std::cout << std::endl;
   }
 #endif
 
@@ -666,7 +666,7 @@ BRepCheck_Status BRepCheck_Shell::Orientation(const Standard_Boolean Update)
 
 #ifdef OCCT_DEBUG
   if (BRepCheck_Trace(0) > 3) {
-    cout << "Fref : " ;
+    std::cout << "Fref : " ;
     PrintShape(Fref, MapOfShapeOrientation.NbBuckets());
   }
 #endif
@@ -709,7 +709,7 @@ BRepCheck_Status BRepCheck_Shell::Orientation(const Standard_Boolean Update)
 
 #ifdef OCCT_DEBUG
   if (BRepCheck_Trace(0) > 3) {
-    cout << "    Fcur : " ;
+    std::cout << "    Fcur : " ;
     PrintShape(Fcur, MapOfShapeOrientation.NbBuckets());
   }
 #endif
@@ -731,8 +731,8 @@ BRepCheck_Status BRepCheck_Shell::Orientation(const Standard_Boolean Update)
   if (BRepCheck_Trace(0) > 3) {
     orf = (TopAbs_Orientation)MapOfShapeOrientation.Find(Fcur);
     Fcur.Orientation(orf);
-    cout << "    Error : this face has been already examined " << endl;
-    cout << "    Imposible to return it ";
+    std::cout << "    Error : this face has been already examined " << std::endl;
+    std::cout << "    Imposible to return it ";
     PrintShape(Fcur, MapOfShapeOrientation.NbBuckets());
   }
 #endif
@@ -746,7 +746,7 @@ BRepCheck_Status BRepCheck_Shell::Orientation(const Standard_Boolean Update)
   if (BRepCheck_Trace(0) > 3) {
     orf = (TopAbs_Orientation)MapOfShapeOrientation.Find(Fcur);
     Fcur.Orientation(orf);
-    cout << "    Resulting Fcur is returned : " ;
+    std::cout << "    Resulting Fcur is returned : " ;
     PrintShape(Fcur, MapOfShapeOrientation.NbBuckets());
   }
 #endif
index 06706a7..062a49d 100644 (file)
@@ -380,13 +380,13 @@ Standard_Boolean IsDistanceIn3DTolerance (const gp_Pnt& thePnt_f,
     return Standard_True;
 
 #ifdef OCCT_DEBUG
-  cout << endl;
-  cout << "--------Function IsDistanceIn3DTolerance(...)----------"                                                                                            << endl;
-  cout << "--- BRepCheck Wire: Closed3d -> Error"                                                                                                                                                                      << endl;
-  cout << "--- Dist (" << Dist << ") > Tol3d (" << aTol3d << ")"                                                                                                       << endl;
-  cout << "Pnt1(" << thePnt_f.X() << "; " << thePnt_f.Y() << "; " << thePnt_f.Z() << ")"       << endl;
-  cout << "Pnt2(" << thePnt_l.X() << "; " << thePnt_l.Y() << "; " << thePnt_l.Z() << ")"       << endl;
-  cout << "------------------------------------------------------"                                                                                             << endl;
+  std::cout << std::endl;
+  std::cout << "--------Function IsDistanceIn3DTolerance(...)----------"                                                                                               << std::endl;
+  std::cout << "--- BRepCheck Wire: Closed3d -> Error"                                                                                                                                                                 << std::endl;
+  std::cout << "--- Dist (" << Dist << ") > Tol3d (" << aTol3d << ")"                                                                                                  << std::endl;
+  std::cout << "Pnt1(" << thePnt_f.X() << "; " << thePnt_f.Y() << "; " << thePnt_f.Z() << ")"  << std::endl;
+  std::cout << "Pnt2(" << thePnt_l.X() << "; " << thePnt_l.Y() << "; " << thePnt_l.Z() << ")"  << std::endl;
+  std::cout << "------------------------------------------------------"                                                                                                << std::endl;
 #endif
 
   return Standard_False;
@@ -418,19 +418,19 @@ Standard_Boolean IsDistanceIn2DTolerance (const BRepAdaptor_Surface& aFaceSurfac
 #ifdef OCCT_DEBUG
   if(PrintWarnings)
     {
-    cout << endl;
-    cout << "--------Function IsDistanceIn2DTolerance(...)----------"                                                          << endl;
-    cout << "--- BRepCheck Wire: Not closed in 2D"                                                                                                                               << endl;
-    cout << "*****************************************************"                                                                    << endl;
-    cout << "*dumin = " << dumin << "; dumax = " << dumax                                                                                                              << endl;
-    cout << "* dvmin = " << dvmin << "; dvmax = " << dvmax                                                                                                     << endl;
-    cout << "* (dumin > dumax) or (dvmin > dvmax)."                                                                                                                                    << endl;
-    cout << "*****************************************************"                                                                    << endl;
-    cout << endl;
-    cout << "UFirst = "  << aFaceSurface.FirstUParameter();
-    cout << "; ULast = " << aFaceSurface.LastUParameter()                                                                                                              << endl;
-    cout << "VFirst = " << aFaceSurface.FirstVParameter();
-    cout << "; VLast = " << aFaceSurface.LastVParameter()                                                                                                              << endl;
+    std::cout << std::endl;
+    std::cout << "--------Function IsDistanceIn2DTolerance(...)----------"                                                             << std::endl;
+    std::cout << "--- BRepCheck Wire: Not closed in 2D"                                                                                                                                  << std::endl;
+    std::cout << "*****************************************************"                                                                       << std::endl;
+    std::cout << "*dumin = " << dumin << "; dumax = " << dumax                                                                                                         << std::endl;
+    std::cout << "* dvmin = " << dvmin << "; dvmax = " << dvmax                                                                                                        << std::endl;
+    std::cout << "* (dumin > dumax) or (dvmin > dvmax)."                                                                                                                                       << std::endl;
+    std::cout << "*****************************************************"                                                                       << std::endl;
+    std::cout << std::endl;
+    std::cout << "UFirst = "  << aFaceSurface.FirstUParameter();
+    std::cout << "; ULast = " << aFaceSurface.LastUParameter()                                                                                                         << std::endl;
+    std::cout << "VFirst = " << aFaceSurface.FirstVParameter();
+    std::cout << "; VLast = " << aFaceSurface.LastVParameter()                                                                                                         << std::endl;
     }
 #endif
   dumax = aFaceSurface.UResolution(aTol3d);
@@ -454,9 +454,9 @@ Standard_Boolean IsDistanceIn2DTolerance (const BRepAdaptor_Surface& aFaceSurfac
 #ifdef OCCT_DEBUG
   if(PrintWarnings)
     {
-    cout << "aTol3d = " << aTol3d <<"; URes = " << dumax << "; VRes = " << dvmax               << endl;
-    cout << "thePnt(" << thePnt.X() << "; " << thePnt.Y() << ")"                                                                               << endl;
-    cout << "thePntRef(" << thePntRef.X() << "; " << thePntRef.Y() << ")"                                              << endl;
+    std::cout << "aTol3d = " << aTol3d <<"; URes = " << dumax << "; VRes = " << dvmax          << std::endl;
+    std::cout << "thePnt(" << thePnt.X() << "; " << thePnt.Y() << ")"                                                                          << std::endl;
+    std::cout << "thePntRef(" << thePntRef.X() << "; " << thePntRef.Y() << ")"                                         << std::endl;
     }
 #endif
 
@@ -465,8 +465,8 @@ Standard_Boolean IsDistanceIn2DTolerance (const BRepAdaptor_Surface& aFaceSurfac
 #ifdef OCCT_DEBUG
   if((aTol2d <= 0.0) && (PrintWarnings))
     {
-    cout<<"BRepCheck_Wire : UResolution and VResolution = 0.0 (Face too small ?)"<<endl;
-    cout.flush();
+    std::cout<<"BRepCheck_Wire : UResolution and VResolution = 0.0 (Face too small ?)"<<std::endl;
+    std::cout.flush();
     }
 #endif
 
@@ -478,15 +478,15 @@ Standard_Boolean IsDistanceIn2DTolerance (const BRepAdaptor_Surface& aFaceSurfac
 #ifdef OCCT_DEBUG
   if(PrintWarnings)
     {
-    cout << endl;
-    cout << "--------Function IsDistanceIn2DTolerance(...)----------"                                                  << endl;
-    cout << "--- BRepCheck Wire: Not closed in 2d"                                                                                                                     << endl;
-    cout << "*****************************************************"                                                            << endl;
-    cout << "* Dist = " << Dist        << " > Tol2d = " <<     aTol2d                                                                                          << endl;
-    cout << "*****************************************************"                                                            << endl;
-    cout << "aTol3d = " << aTol3d <<"; URes = " << dumax << "; VRes = " << dvmax       << endl;
-    cout << "thePnt(" << thePnt.X() << "; " << thePnt.Y() << ")"                                                                       << endl;
-    cout << "thePntRef(" << thePntRef.X() << "; " << thePntRef.Y() << ")"                                      << endl;
+    std::cout << std::endl;
+    std::cout << "--------Function IsDistanceIn2DTolerance(...)----------"                                                     << std::endl;
+    std::cout << "--- BRepCheck Wire: Not closed in 2d"                                                                                                                        << std::endl;
+    std::cout << "*****************************************************"                                                               << std::endl;
+    std::cout << "* Dist = " << Dist   << " > Tol2d = " <<     aTol2d                                                                                          << std::endl;
+    std::cout << "*****************************************************"                                                               << std::endl;
+    std::cout << "aTol3d = " << aTol3d <<"; URes = " << dumax << "; VRes = " << dvmax  << std::endl;
+    std::cout << "thePnt(" << thePnt.X() << "; " << thePnt.Y() << ")"                                                                  << std::endl;
+    std::cout << "thePntRef(" << thePntRef.X() << "; " << thePntRef.Y() << ")"                                 << std::endl;
     }
 #endif
 
@@ -1071,7 +1071,7 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
            delete [] tabDom;
 #ifdef OCCT_DEBUG
            static Standard_Integer numpoint=0;
-           cout<<"point p"<<++numpoint<<" "<<P3d.X()<<" "<<P3d.Y()<<" "<<P3d.Z()<<endl;cout.flush();
+           std::cout<<"point p"<<++numpoint<<" "<<P3d.X()<<" "<<P3d.Y()<<" "<<P3d.Z()<<std::endl;std::cout.flush();
 #endif
            return(BRepCheck_SelfIntersectingWire);
          }
@@ -1103,7 +1103,7 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
        else {
          delete [] tabDom;
 #ifdef OCCT_DEBUG
-         cout<<"BRepCheck_NoCurveOnSurface or BRepCheck_InvalidRange"<<endl;cout.flush();
+         std::cout<<"BRepCheck_NoCurveOnSurface or BRepCheck_InvalidRange"<<std::endl;std::cout.flush();
 #endif
          if(tabCur(j).IsNull()) {
            return(BRepCheck_NoCurveOnSurface);
@@ -1225,8 +1225,8 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
            //-- the point of intersection with vertex (if exists)
            if (localok == Standard_False && !CommonVertices.IsEmpty()) {
 #ifdef OCCT_DEBUG
-             cout << "\n------------------------------------------------------\n" <<endl;
-             cout << "\n--- BRepCheck Wire: AutoIntersection Phase1 -> Erreur \n" <<endl;
+             std::cout << "\n------------------------------------------------------\n" <<std::endl;
+             std::cout << "\n--- BRepCheck Wire: AutoIntersection Phase1 -> Erreur \n" <<std::endl;
              
 #endif
              Standard_Real distauvtxleplusproche,VParaOnEdge1,VParaOnEdge2;
@@ -1356,8 +1356,8 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
                }
 #ifdef OCCT_DEBUG
              static Standard_Integer numpoint1=0;
-             cout<<"point p"<<++numpoint1<<" "<<P3d.X()<<" "<<P3d.Y()<<" "<<P3d.Z()<<endl;
-             cout.flush();
+             std::cout<<"point p"<<++numpoint1<<" "<<P3d.X()<<" "<<P3d.Y()<<" "<<P3d.Z()<<std::endl;
+             std::cout.flush();
 #endif
              delete [] tabDom;
              return(BRepCheck_SelfIntersectingWire);
@@ -1490,8 +1490,8 @@ BRepCheck_Status BRepCheck_Wire::SelfIntersect(const TopoDS_Face& F,
              }
 #ifdef OCCT_DEBUG
              static Standard_Integer numpoint1=0;
-             cout<<"point p"<<++numpoint1<<" "<<P3d.X()<<" "<<P3d.Y()<<" "<<P3d.Z()<<endl;
-             cout.flush();
+             std::cout<<"point p"<<++numpoint1<<" "<<P3d.X()<<" "<<P3d.Y()<<" "<<P3d.Z()<<std::endl;
+             std::cout.flush();
 #endif
              delete [] tabDom;
              return(BRepCheck_SelfIntersectingWire);
index d342f18..0f4c554 100644 (file)
@@ -443,7 +443,7 @@ void BRepClass3d_SClassifier::Perform(BRepClass3d_SolidExplorer& SolidExplorer,
                       if (tran == IntCurveSurface_Tangent)
                       {
 #ifdef OCCT_DEBUG
-                        cout<<"*Problem ds BRepClass3d_SClassifier.cxx"<<endl;
+                        std::cout<<"*Problem ds BRepClass3d_SClassifier.cxx"<<std::endl;
 #endif
                         continue; // ignore this point
                       }
index ae47f52..6f2eea8 100644 (file)
@@ -655,7 +655,7 @@ Standard_Integer BRepClass3d_SolidExplorer::OtherSegment(const gp_Pnt& P,
       _Par=0.0;
       myReject=Standard_True;
 #ifdef OCCT_DEBUG
-      cout<<"\nWARNING : BRepClass3d_SolidExplorer.cxx  (Solid without face)"<<endl;
+      std::cout<<"\nWARNING : BRepClass3d_SolidExplorer.cxx  (Solid without face)"<<std::endl;
 #endif  
       return 0;
     }
@@ -853,7 +853,7 @@ void BRepClass3d_SolidExplorer::InitShape(const TopoDS_Shape& S)
   
 #ifdef OCCT_DEBUG
   if(myReject) { 
-    cout<<"\nWARNING : BRepClass3d_SolidExplorer.cxx  (Solid without face)"<<endl;
+    std::cout<<"\nWARNING : BRepClass3d_SolidExplorer.cxx  (Solid without face)"<<std::endl;
   }
 #endif
 
index f54f28b..f70215b 100644 (file)
@@ -533,18 +533,18 @@ void BRepExtrema_DistShapeShape::Dump(Standard_OStream& o) const
   Standard_Integer i;
   Standard_Real r1,r2;
   
-  o<< "the distance  value is :  " << Value()<<endl;
-  o<< "the number of solutions is :"<<NbSolution()<<endl;
-  o<<endl;
+  o<< "the distance  value is :  " << Value()<<std::endl;
+  o<< "the number of solutions is :"<<NbSolution()<<std::endl;
+  o<<std::endl;
   for (i=1;i<=NbSolution();i++)
   {
-    o<<"solution number "<<i<<": "<< endl;
-    o<<"the type of the solution on the first shape is " <<Standard_Integer( SupportTypeShape1(i)) <<endl; 
-    o<<"the type of the solution on the second shape is "<<Standard_Integer( SupportTypeShape2(i))<< endl;
-    o<< "the coordinates of  the point on the first shape are: "<<endl; 
-    o<<"X=" <<PointOnShape1(i).X()<<" Y=" <<PointOnShape1(i).Y()<<" Z="<<PointOnShape1(i).Z()<<endl;
-    o<< "the coordinates of  the point on the second shape are: "<<endl; 
-    o<<"X="<< PointOnShape2(i).X()<< " Y="<<PointOnShape2(i).Y()<<" Z="<< PointOnShape2(i).Z()<<endl;
+    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;
     
     switch (SupportTypeShape1(i))
     {
@@ -552,11 +552,11 @@ void BRepExtrema_DistShapeShape::Dump(Standard_OStream& o) const
         break;
       case BRepExtrema_IsOnEdge:
         ParOnEdgeS1(i,r1);
-        o << "parameter on the first edge :  t= " << r1 << endl;
+        o << "parameter on the first edge :  t= " << r1 << std::endl;
         break;
       case BRepExtrema_IsInFace:
         ParOnFaceS1(i,r1,r2);
-        o << "parameters on the first face :  u= " << r1 << " v=" <<  r2 << endl;
+        o << "parameters on the first face :  u= " << r1 << " v=" <<  r2 << std::endl;
         break;
     }
     switch (SupportTypeShape2(i))
@@ -565,13 +565,13 @@ void BRepExtrema_DistShapeShape::Dump(Standard_OStream& o) const
         break;
       case BRepExtrema_IsOnEdge:
         ParOnEdgeS2(i,r1);
-        o << "parameter on the second edge : t=" << r1 << endl;
+        o << "parameter on the second edge : t=" << r1 << std::endl;
         break;
       case BRepExtrema_IsInFace:
         ParOnFaceS2(i,r1,r2);
-        o << "parameters on the second face : u= " << r1 << " v=" <<  r2 << endl;
+        o << "parameters on the second face : u= " << r1 << " v=" <<  r2 << std::endl;
         break;
     }
-    o<<endl;
+    o<<std::endl;
   } 
 }
index bfea093..b30dc8d 100644 (file)
@@ -74,13 +74,13 @@ static void Descendants(const TopoDS_Shape&,
 
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_Form::GlobalPerform ()" << endl;
+  if (trc) std::cout << "BRepFeat_Form::GlobalPerform ()" << std::endl;
 #endif
 
   if (!mySbOK || !myGSOK || !mySFOK || !mySUOK || !myGFOK || 
       !mySkOK || !myPSOK) {
 #ifdef OCCT_DEBUG
-    if (trc) cout << " Fields not initialized in BRepFeat_Form" << endl;
+    if (trc) std::cout << " Fields not initialized in BRepFeat_Form" << std::endl;
 #endif
     myStatusError = BRepFeat_NotInitialized;
     NotDone();
@@ -94,7 +94,7 @@ static void Descendants(const TopoDS_Shape&,
 
   if(myJustFeat && !myFuse) {
 #ifdef OCCT_DEBUG
-    if (trc) cout << " Invalid option : myJustFeat + Cut" << endl;
+    if (trc) std::cout << " Invalid option : myJustFeat + Cut" << std::endl;
 #endif
     myStatusError = BRepFeat_InvOption;
     NotDone();
@@ -124,7 +124,7 @@ static void Descendants(const TopoDS_Shape&,
       if (!exp.More()) {
         FromInShape = Standard_False;
 #ifdef OCCT_DEBUG
-        if (trc) cout << " From not in Shape" << endl;
+        if (trc) std::cout << " From not in Shape" << std::endl;
 #endif
         break;
       }
@@ -143,7 +143,7 @@ static void Descendants(const TopoDS_Shape&,
       if (!exp.More()) {
         UntilInShape = Standard_False;
 #ifdef OCCT_DEBUG
-        if (trc) cout << " Until not in Shape" << endl;
+        if (trc) std::cout << " Until not in Shape" << std::endl;
 #endif
         break;
       }
@@ -292,7 +292,7 @@ static void Descendants(const TopoDS_Shape&,
 
   if (theOpe == 1) {
 #ifdef OCCT_DEBUG
-    if (trc) cout << " Gluer" << endl;
+    if (trc) std::cout << " Gluer" << std::endl;
 #endif
     Standard_Boolean Collage = Standard_True;  
     // cut by FFrom && FUntil
@@ -499,7 +499,7 @@ static void Descendants(const TopoDS_Shape&,
 
   if (theOpe == 1) {
 #ifdef OCCT_DEBUG
-    if (trc) cout << " still Gluer" << endl;
+    if (trc) std::cout << " still Gluer" << std::endl;
 #endif
     theGlue.Perform();
     if (theGlue.IsDone()) {
@@ -510,7 +510,7 @@ static void Descendants(const TopoDS_Shape&,
         myNewEdges = theGlue.Edges();
         myTgtEdges = theGlue.TgtEdges();
 #ifdef OCCT_DEBUG
-          if (trc) cout << " Gluer result" << endl;
+          if (trc) std::cout << " Gluer result" << std::endl;
 #endif
         Done();
         myShape = theGlue.ResultingShape();
@@ -531,7 +531,7 @@ static void Descendants(const TopoDS_Shape&,
 
   if (theOpe == 2 && ChangeOpe && myJustGluer) {
 #ifdef OCCT_DEBUG
-    if (trc) cout << " Gluer failure" << endl;
+    if (trc) std::cout << " Gluer failure" << std::endl;
 #endif
     myJustGluer = Standard_False;
     theOpe = 0;
@@ -543,12 +543,12 @@ static void Descendants(const TopoDS_Shape&,
 
   if (theOpe == 2) {
 #ifdef OCCT_DEBUG
-    if (trc) cout << " No Gluer" << endl;
+    if (trc) std::cout << " No Gluer" << std::endl;
 #endif
     TopoDS_Shape theGShape = myGShape;
     if (ChangeOpe) {
 #ifdef OCCT_DEBUG
-      if (trc) cout << " Passage to topological operations" << endl;
+      if (trc) std::cout << " Passage to topological operations" << std::endl;
 #endif
     }    
 
@@ -946,7 +946,7 @@ static void Descendants(const TopoDS_Shape&,
 // Case when no part of the tool is preserved
         if (!KeepParts) {
 #ifdef OCCT_DEBUG
-          if (trc) cout << " No parts of tool kept" << endl;
+          if (trc) std::cout << " No parts of tool kept" << std::endl;
 #endif
           myStatusError = BRepFeat_NoParts;
           NotDone();
@@ -1170,7 +1170,7 @@ Standard_Boolean BRepFeat_Form::TransformShapeFU(const Standard_Integer flag)
   TopExp_Explorer exp(shapefu, TopAbs_FACE);
   if (!exp.More()) { // no faces... It is necessary to return an error
 #ifdef OCCT_DEBUG
-    if (trc) cout << " BRepFeat_Form::TransformShapeFU : invalid Shape" << endl;
+    if (trc) std::cout << " BRepFeat_Form::TransformShapeFU : invalid Shape" << std::endl;
 #endif
     return Trf;
   }
@@ -1228,8 +1228,8 @@ Standard_Boolean BRepFeat_Form::TransformShapeFU(const Standard_Integer flag)
   }
 #ifdef OCCT_DEBUG
   if (trc) {
-    if (Trf && (flag == 0)) cout << " TransformShapeFU From" << endl;
-    if (Trf && (flag == 1)) cout << " TransformShapeFU Until" << endl;
+    if (Trf && (flag == 0)) std::cout << " TransformShapeFU From" << std::endl;
+    if (Trf && (flag == 1)) std::cout << " TransformShapeFU Until" << std::endl;
   }
 #endif
   return Trf;
index d2b3682..025dbfe 100644 (file)
@@ -100,7 +100,7 @@ void BRepFeat_MakeCylindricalHole::Perform(const Standard_Real Radius)
   myBotFace = theCylinder.BottomFace();
   myValidate = Standard_False;
 
-//  BRepTools::Dump(theTool,cout);
+//  BRepTools::Dump(theTool,std::cout);
   Standard_Boolean Fuse = Standard_False;
   //
   AddTool(theTool);
@@ -524,7 +524,7 @@ void BRepFeat_MakeCylindricalHole::PerformBlind(const Standard_Real Radius,
   myTopFace = theCylinder.TopFace();
   myBotFace.Nullify();
 
-  //  BRepTools::Dump(theTool,cout);
+  //  BRepTools::Dump(theTool,std::cout);
   Standard_Boolean Fuse = Standard_False;
   //myBuilder.Perform(theTool,theList,Fuse);
   //myBuilder.BuildPartsOfTool();
index 84f9ba1..4d9e8ac 100644 (file)
@@ -99,7 +99,7 @@ void BRepFeat_MakeDPrism::Init(const TopoDS_Shape&    Sbase,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeDPrism::Init" << endl;
+  if (trc) std::cout << "BRepFeat_MakeDPrism::Init" << std::endl;
 #endif
   mySkface = Skface;
   SketchFaceValid();
@@ -144,11 +144,11 @@ void BRepFeat_MakeDPrism::Init(const TopoDS_Shape&    Sbase,
   myAngle = Angle;
 #ifdef OCCT_DEBUG
   if (trc) {
-    if (myJustFeat)  cout << " Just Feature" << endl;
-    if (myFuse)  cout << " Fuse" << endl;
-    if (!myFuse)  cout << " Cut" << endl;
-    if (!myModify) cout << " Modify = 0" << endl;
-    //    cout <<" Angle = " << myAngle << endl;
+    if (myJustFeat)  std::cout << " Just Feature" << std::endl;
+    if (myFuse)  std::cout << " Fuse" << std::endl;
+    if (!myFuse)  std::cout << " Cut" << std::endl;
+    if (!myModify) std::cout << " Modify = 0" << std::endl;
+    //    std::cout <<" Angle = " << myAngle << std::endl;
   }
 #endif 
 }
@@ -164,7 +164,7 @@ void BRepFeat_MakeDPrism::Add(const TopoDS_Edge& E,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeDPrism::Add(Edge,face)" << endl;
+  if (trc) std::cout << "BRepFeat_MakeDPrism::Add(Edge,face)" << std::endl;
 #endif
   TopExp_Explorer exp;
   for (exp.Init(mySbase,TopAbs_FACE);exp.More();exp.Next()) {
@@ -210,7 +210,7 @@ void BRepFeat_MakeDPrism::Perform(const Standard_Real Height)
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeDPrism::Perform(Height)" << endl;
+  if (trc) std::cout << "BRepFeat_MakeDPrism::Perform(Height)" << std::endl;
 #endif
   mySFrom.Nullify();
   ShapeFromValid();
@@ -281,7 +281,7 @@ void BRepFeat_MakeDPrism::Perform(const TopoDS_Shape& Until)
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeDPrism::Perform(Until)" << endl;
+  if (trc) std::cout << "BRepFeat_MakeDPrism::Perform(Until)" << std::endl;
 #endif
   if (Until.IsNull()) {
     throw Standard_ConstructionError();
@@ -403,7 +403,7 @@ void BRepFeat_MakeDPrism::Perform(const TopoDS_Shape& From,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeDPrism::Perform(From,Until)" << endl;
+  if (trc) std::cout << "BRepFeat_MakeDPrism::Perform(From,Until)" << std::endl;
 #endif
   if (From.IsNull() || Until.IsNull()) {
     throw Standard_ConstructionError();
@@ -574,7 +574,7 @@ void BRepFeat_MakeDPrism::PerformUntilEnd()
 {  
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeDPrism::PerformUntilEnd()" << endl;
+  if (trc) std::cout << "BRepFeat_MakeDPrism::PerformUntilEnd()" << std::endl;
 #endif 
   myPerfSelection = BRepFeat_SelectionSh;
   PerfSelectionValid();
@@ -608,7 +608,7 @@ void BRepFeat_MakeDPrism::PerformFromEnd(const TopoDS_Shape& Until)
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeDPrism::PerformFromEnd(From,Until)" << endl;
+  if (trc) std::cout << "BRepFeat_MakeDPrism::PerformFromEnd(From,Until)" << std::endl;
 #endif
   if (Until.IsNull()) {
     throw Standard_ConstructionError();
@@ -754,7 +754,7 @@ void BRepFeat_MakeDPrism::PerformThruAll()
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeDPrism::PerformThruAll()" << endl;
+  if (trc) std::cout << "BRepFeat_MakeDPrism::PerformThruAll()" << std::endl;
 #endif
   mySUntil.Nullify();
   ShapeUntilValid();
@@ -806,7 +806,7 @@ void BRepFeat_MakeDPrism::PerformUntilHeight(const TopoDS_Shape& Until,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeDPrism::PerformUntilHeight(Until,Height)" << endl;
+  if (trc) std::cout << "BRepFeat_MakeDPrism::PerformUntilHeight(Until,Height)" << std::endl;
 #endif
   if (Until.IsNull()) {
     Perform(Height);
@@ -924,7 +924,7 @@ void BRepFeat_MakeDPrism::BossEdges (const Standard_Integer signature)
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeDPrism::BossEdges (integer)" << endl;
+  if (trc) std::cout << "BRepFeat_MakeDPrism::BossEdges (integer)" << std::endl;
 #endif
   TopTools_ListOfShape theLastShape;
   theLastShape.Clear();
@@ -1073,7 +1073,7 @@ static Standard_Real HeightMax(const TopoDS_Shape& theSbase,  // shape initial
   //  Standard_Real par = Max(  Max( abs(c[1] - c[0]), abs(c[3] - c[2]) ), abs(c[5] - c[4]) );
   //#endif
 #ifdef OCCT_DEBUG
-  cout << "Height = > " <<  par  << endl;
+  std::cout << "Height = > " <<  par  << std::endl;
 #endif
   return par;
 }
index 8c7468d..b87a882 100644 (file)
@@ -109,7 +109,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeLinearForm::Init" << endl;
+  if (trc) std::cout << "BRepFeat_MakeLinearForm::Init" << std::endl;
 #endif
   Standard_Boolean RevolRib = Standard_False;
   Done();
@@ -146,8 +146,8 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
     myFuse   = Standard_True;
 #ifdef OCCT_DEBUG
   if (trc) {
-    if (myFuse)  cout << " Fuse" << endl;
-    if (!myFuse)  cout << " Cut" << endl;
+    if (myFuse)  std::cout << " Fuse" << std::endl;
+    if (!myFuse)  std::cout << " Cut" << std::endl;
   }
 #endif
 
@@ -177,7 +177,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
     Standard_Real ang = myDir1.Angle(myDir);
     if(ang != M_PI) {
 #ifdef OCCT_DEBUG
-      if (trc) cout << " Directions must be opposite" << endl;
+      if (trc) std::cout << " Directions must be opposite" << std::endl;
 #endif
       myStatusError = BRepFeat_BadDirect;
       NotDone();
@@ -188,7 +188,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
 
 // Rib is centre in the middle of translation
 #ifdef OCCT_DEBUG
-    if (trc)  cout << " Rib is centre" << endl;
+    if (trc)  std::cout << " Rib is centre" << std::endl;
 #endif
     const gp_Vec& DirTranslation = (Direc + Direc1) * 0.5;
     gp_Trsf T;
@@ -251,7 +251,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
  
   if(!Data) {
 #ifdef OCCT_DEBUG
-    if (trc) cout << " No Extreme faces" << endl;
+    if (trc) std::cout << " No Extreme faces" << std::endl;
 #endif
     myStatusError = BRepFeat_NoExtFace;
     NotDone();
@@ -277,7 +277,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
 
   if(Sliding) {    // sliding
 #ifdef OCCT_DEBUG
-    if (trc) cout << " Sliding" << endl;
+    if (trc) std::cout << " Sliding" << std::endl;
 #endif
     Sliding = Standard_False;
     Handle(Geom_Surface) s = BRep_Tool::Surface(FirstFace);
@@ -353,7 +353,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
 // ---case of sliding : construction of the profile face 
   if(Sliding) {
 #ifdef OCCT_DEBUG
-    if (trc) cout << " still Sliding" << endl;
+    if (trc) std::cout << " still Sliding" << std::endl;
 #endif
     TopoDS_Face Prof;
     Standard_Boolean ProfileOK;
@@ -365,8 +365,8 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
 #ifdef OCCT_DEBUG
       if (trc)
       {
-        cout << "Not computable" << endl;
-        cout << "Face profile not computable" << endl;
+        std::cout << "Not computable" << std::endl;
+        std::cout << "Face profile not computable" << std::endl;
       }
 #endif
       myStatusError = BRepFeat_NoFaceProf;
@@ -382,7 +382,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
 // Control if there is everything required to have the material at the proper side
     if(falseside == Standard_False) {
 #ifdef OCCT_DEBUG
-      cout << "Verify plane and wire orientation" << endl;
+      std::cout << "Verify plane and wire orientation" << std::endl;
 #endif
       myStatusError = BRepFeat_FalseSide;
       NotDone();
@@ -683,8 +683,8 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
   if(!Sliding) {
 #ifdef OCCT_DEBUG
     if (trc) {
-      if (Modify) cout << " Sliding failure" << endl;
-      cout << " no Sliding" << endl;
+      if (Modify) std::cout << " Sliding failure" << std::endl;
+      std::cout << " no Sliding" << std::endl;
     }
 #endif
     TopoDS_Face Prof;
@@ -698,8 +698,8 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
 #ifdef OCCT_DEBUG
       if (trc)
       {
-        cout << "Not computable" << endl;
-        cout << " Face profile not computable" << endl;
+        std::cout << "Not computable" << std::endl;
+        std::cout << " Face profile not computable" << std::endl;
       }
 #endif
       myStatusError = BRepFeat_NoFaceProf;
@@ -715,7 +715,7 @@ void BRepFeat_MakeLinearForm::Init(const TopoDS_Shape& Sbase,
 // Control if there is everything required to have the material at the proper side
     if(falseside == Standard_False) {
 #ifdef OCCT_DEBUG
-      cout << "Verify plane and wire orientation" << endl;
+      std::cout << "Verify plane and wire orientation" << std::endl;
 #endif
       myStatusError = BRepFeat_FalseSide;
       NotDone();
@@ -763,7 +763,7 @@ void BRepFeat_MakeLinearForm::Add(const TopoDS_Edge& E,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeLinearForm::Add" << endl;
+  if (trc) std::cout << "BRepFeat_MakeLinearForm::Add" << std::endl;
 #endif
   if(mySlface.IsEmpty()) {
     TopExp_Explorer exp;
@@ -803,11 +803,11 @@ void BRepFeat_MakeLinearForm::Perform()
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeLinearForm::Perform()" << endl;
+  if (trc) std::cout << "BRepFeat_MakeLinearForm::Perform()" << std::endl;
 #endif
   if(mySbase.IsNull() || mySkface.IsNull() || myPbase.IsNull()) {
 #ifdef OCCT_DEBUG
-    if (trc) cout << " Fields not initialized" << endl;
+    if (trc) std::cout << " Fields not initialized" << std::endl;
 #endif
     myStatusError = BRepFeat_NotInitialized;
     NotDone();
@@ -846,7 +846,7 @@ void BRepFeat_MakeLinearForm::Perform()
     const TopoDS_Edge& e = TopoDS::Edge(exx.Current());
     if(!myMap.IsBound(e)) {
 #ifdef OCCT_DEBUG
-      if (trc) cout << " Sliding face not in Base shape" << endl;
+      if (trc) std::cout << " Sliding face not in Base shape" << std::endl;
 #endif
       myStatusError = BRepFeat_IncSlidFace;
       NotDone();
@@ -861,8 +861,8 @@ void BRepFeat_MakeLinearForm::Perform()
 #ifdef OCCT_DEBUG
     if (trc)
     {
-      cout << "The case is not computable" << endl;
-      cout << " Glued faces not empty and Until shape not null" << endl;
+      std::cout << "The case is not computable" << std::endl;
+      std::cout << " Glued faces not empty and Until shape not null" << std::endl;
     }
 #endif
     myStatusError = BRepFeat_InvShape;
@@ -922,7 +922,7 @@ void BRepFeat_MakeLinearForm::Perform()
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEATRIB();
-  if (trc) cout << "BRepFeat_MakeLinearForm::Propagate" << endl;
+  if (trc) std::cout << "BRepFeat_MakeLinearForm::Propagate" << std::endl;
 #endif
   gp_Pnt Firstpoint = Firstpnt;
   gp_Pnt Lastpoint = Lastpnt;
@@ -1181,7 +1181,7 @@ static void SetGluedFaces(const TopTools_DataMapOfShapeListOfShape& theSlmap,
        const TopTools_ListOfShape& gfac = thePrism.Shapes(it.Value());
        if (gfac.Extent() != 1) {
 #ifdef OCCT_DEBUG
-         cout << "Pb SetGluedFace" << endl;
+         std::cout << "Pb SetGluedFace" << std::endl;
 #endif
        }
        theMap.Bind(gfac.First(),fac);
index fb64dda..7434e2c 100644 (file)
@@ -68,7 +68,7 @@ void BRepFeat_MakePipe::Init(const TopoDS_Shape& Sbase,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakePipe::Init" << endl;
+  if (trc) std::cout << "BRepFeat_MakePipe::Init" << std::endl;
 #endif
   mySbase  = Sbase;
   BasisShapeValid();
@@ -111,10 +111,10 @@ void BRepFeat_MakePipe::Init(const TopoDS_Shape& Sbase,
   }
 #ifdef OCCT_DEBUG
   if (trc) {
-    if (myJustFeat)  cout << " Just Feature" << endl;
-    if (myFuse)  cout << " Fuse" << endl;
-    if (!myFuse)  cout << " Cut" << endl;
-    if (!myModify) cout << " Modify = 0" << endl;
+    if (myJustFeat)  std::cout << " Just Feature" << std::endl;
+    if (myFuse)  std::cout << " Fuse" << std::endl;
+    if (!myFuse)  std::cout << " Cut" << std::endl;
+    if (!myModify) std::cout << " Modify = 0" << std::endl;
   }
 #endif 
 }
@@ -130,7 +130,7 @@ void BRepFeat_MakePipe::Add(const TopoDS_Edge& E,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakePipe::Add(Edge,face)" << endl;
+  if (trc) std::cout << "BRepFeat_MakePipe::Add(Edge,face)" << std::endl;
 #endif
   TopExp_Explorer exp;
   for (exp.Init(mySbase,TopAbs_FACE);exp.More();exp.Next()) {
@@ -176,7 +176,7 @@ void BRepFeat_MakePipe::Perform()
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakePipe::Perform()" << endl;
+  if (trc) std::cout << "BRepFeat_MakePipe::Perform()" << std::endl;
 #endif
   mySFrom.Nullify();
   ShapeFromValid();
@@ -232,7 +232,7 @@ void BRepFeat_MakePipe::Perform(const TopoDS_Shape& Until)
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakePipe::Perform(Until)" << endl;
+  if (trc) std::cout << "BRepFeat_MakePipe::Perform(Until)" << std::endl;
 #endif
   if (Until.IsNull()) {
     throw Standard_ConstructionError();
@@ -276,7 +276,7 @@ void BRepFeat_MakePipe::Perform(const TopoDS_Shape& From,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakePipe::Perform(From,Until)" << endl;
+  if (trc) std::cout << "BRepFeat_MakePipe::Perform(From,Until)" << std::endl;
 #endif
   if (From.IsNull() || Until.IsNull()) {
     throw Standard_ConstructionError();
index 6594631..6d50d91 100644 (file)
@@ -98,7 +98,7 @@ void BRepFeat_MakePrism::Init(const TopoDS_Shape& Sbase,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakePrism::Init" << endl;
+  if (trc) std::cout << "BRepFeat_MakePrism::Init" << std::endl;
 #endif
   mySkface = Skface;
   SketchFaceValid();
@@ -144,10 +144,10 @@ void BRepFeat_MakePrism::Init(const TopoDS_Shape& Sbase,
   }
 #ifdef OCCT_DEBUG
   if (trc) {
-    if (myJustFeat)  cout << " Just Feature" << endl;
-    if (myFuse)  cout << " Fuse" << endl;
-    if (!myFuse)  cout << " Cut" << endl;
-    if (!myModify) cout << " Modify = 0" << endl;
+    if (myJustFeat)  std::cout << " Just Feature" << std::endl;
+    if (myFuse)  std::cout << " Fuse" << std::endl;
+    if (!myFuse)  std::cout << " Cut" << std::endl;
+    if (!myModify) std::cout << " Modify = 0" << std::endl;
   }
 #endif 
 }
@@ -163,7 +163,7 @@ void BRepFeat_MakePrism::Add(const TopoDS_Edge& E,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakePrism::Add(Edge,face)" << endl;
+  if (trc) std::cout << "BRepFeat_MakePrism::Add(Edge,face)" << std::endl;
 #endif
   TopExp_Explorer exp;
   for (exp.Init(mySbase,TopAbs_FACE);exp.More();exp.Next()) {
@@ -210,7 +210,7 @@ void BRepFeat_MakePrism::Perform(const Standard_Real Length)
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakePrism::Perform(Length)" << endl;
+  if (trc) std::cout << "BRepFeat_MakePrism::Perform(Length)" << std::endl;
 #endif
   mySFrom.Nullify();
   ShapeFromValid();
@@ -310,7 +310,7 @@ void BRepFeat_MakePrism::Perform(const TopoDS_Shape& Until)
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakePrism::Perform(Until)" << endl;
+  if (trc) std::cout << "BRepFeat_MakePrism::Perform(Until)" << std::endl;
 #endif
   if (Until.IsNull()) {
     throw Standard_ConstructionError();
@@ -407,7 +407,7 @@ void BRepFeat_MakePrism::Perform(const TopoDS_Shape& From,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakePrism::Perform(From,Until)" << endl;
+  if (trc) std::cout << "BRepFeat_MakePrism::Perform(From,Until)" << std::endl;
 #endif
   if (From.IsNull() || Until.IsNull()) {
     throw Standard_ConstructionError();
@@ -587,7 +587,7 @@ void BRepFeat_MakePrism::PerformUntilEnd()
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakePrism::PerformUntilEnd()" << endl;
+  if (trc) std::cout << "BRepFeat_MakePrism::PerformUntilEnd()" << std::endl;
 #endif
   myPerfSelection = BRepFeat_SelectionSh;
   PerfSelectionValid();
@@ -632,7 +632,7 @@ void BRepFeat_MakePrism::PerformFromEnd(const TopoDS_Shape& Until)
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakePrism::PerformFromEnd(From,Until)" << endl;
+  if (trc) std::cout << "BRepFeat_MakePrism::PerformFromEnd(From,Until)" << std::endl;
 #endif
   if (Until.IsNull()) {
     throw Standard_ConstructionError();
@@ -764,7 +764,7 @@ void BRepFeat_MakePrism::PerformThruAll()
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakePrism::PerformThruAll()" << endl;
+  if (trc) std::cout << "BRepFeat_MakePrism::PerformThruAll()" << std::endl;
 #endif
   mySUntil.Nullify();
   ShapeUntilValid();
@@ -815,7 +815,7 @@ void BRepFeat_MakePrism::PerformUntilHeight(const TopoDS_Shape& Until,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakePrism::PerformUntilHeight(Until,Length)" << endl;
+  if (trc) std::cout << "BRepFeat_MakePrism::PerformUntilHeight(Until,Length)" << std::endl;
 #endif
   if (Until.IsNull()) {
     Perform(Length);
index da07f85..1f93310 100644 (file)
@@ -104,7 +104,7 @@ void BRepFeat_MakeRevol::Init(const TopoDS_Shape& Sbase,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeRevol::Init" << endl;
+  if (trc) std::cout << "BRepFeat_MakeRevol::Init" << std::endl;
 #endif
   myAxis   = Axis;
   myPbase  = Pbase;
@@ -148,10 +148,10 @@ void BRepFeat_MakeRevol::Init(const TopoDS_Shape& Sbase,
   }
 #ifdef OCCT_DEBUG
   if (trc) {
-    if (myJustFeat)  cout << " Just Feature" << endl;
-    if (myFuse)  cout << " Fuse" << endl;
-    if (!myFuse)  cout << " Cut" << endl;
-    if (!myModify) cout << " Modify = 0" << endl;
+    if (myJustFeat)  std::cout << " Just Feature" << std::endl;
+    if (myFuse)  std::cout << " Fuse" << std::endl;
+    if (!myFuse)  std::cout << " Cut" << std::endl;
+    if (!myModify) std::cout << " Modify = 0" << std::endl;
   }
 #endif 
 }
@@ -167,7 +167,7 @@ void BRepFeat_MakeRevol::Add(const TopoDS_Edge& E,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeRevol::Add(Edge,face)" << endl;
+  if (trc) std::cout << "BRepFeat_MakeRevol::Add(Edge,face)" << std::endl;
 #endif
   TopExp_Explorer exp;
   for (exp.Init(mySbase,TopAbs_FACE);exp.More();exp.Next()) {
@@ -213,7 +213,7 @@ void BRepFeat_MakeRevol::Perform(const Standard_Real Angle)
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeRevol::Perform(Angle)" << endl;
+  if (trc) std::cout << "BRepFeat_MakeRevol::Perform(Angle)" << std::endl;
 #endif
   mySFrom.Nullify();
   ShapeFromValid();
@@ -329,7 +329,7 @@ void BRepFeat_MakeRevol::Perform(const TopoDS_Shape& Until)
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeRevol::Perform(Until)" << endl;
+  if (trc) std::cout << "BRepFeat_MakeRevol::Perform(Until)" << std::endl;
 #endif
   Standard_Real Angle = 0.;
   Standard_Boolean TourComplet = Standard_False;
@@ -360,7 +360,7 @@ void BRepFeat_MakeRevol::Perform(const TopoDS_Shape& Until)
   if(!TourComplet) {
     Angle = 2.*M_PI- 3*M_PI/180.;
 #ifdef OCCT_DEBUG
-    if (trc) cout << " No complete Revolution" << endl;
+    if (trc) std::cout << " No complete Revolution" << std::endl;
 #endif
   }
   theRevol.Perform(myPbase, myAxis, Angle);
@@ -449,7 +449,7 @@ void BRepFeat_MakeRevol::Perform(const TopoDS_Shape& From,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeRevol::Perform(From,Until)" << endl;
+  if (trc) std::cout << "BRepFeat_MakeRevol::Perform(From,Until)" << std::endl;
 #endif
   if (From.IsNull() || Until.IsNull()) {
     throw Standard_ConstructionError();
@@ -601,7 +601,7 @@ void BRepFeat_MakeRevol::PerformThruAll()
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeRevol::PerformThruAll()" << endl;
+  if (trc) std::cout << "BRepFeat_MakeRevol::PerformThruAll()" << std::endl;
 #endif
   Perform(2.*M_PI);
 }
@@ -616,7 +616,7 @@ void BRepFeat_MakeRevol::PerformUntilAngle(const TopoDS_Shape& Until,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeRevol::PerformUntilAngle(Until,Angle)" << endl;
+  if (trc) std::cout << "BRepFeat_MakeRevol::PerformUntilAngle(Until,Angle)" << std::endl;
 #endif
   if (Until.IsNull()) {
     Perform(Angle);
@@ -790,7 +790,7 @@ static void VerifGluedFaces(const TopoDS_Face& theSkface,
     if (!GluedFaces) {
 #ifdef OCCT_DEBUG
       Standard_Boolean trc = BRepFeat_GettraceFEAT();
-      if (trc) cout << " Intersection Revol/skface : no gluing" << endl;
+      if (trc) std::cout << " Intersection Revol/skface : no gluing" << std::endl;
 #endif
       theMap.Clear();
     }
index 83bb715..0d6bbb5 100644 (file)
@@ -125,7 +125,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
 { 
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeRevolutionForm::Init" << endl;
+  if (trc) std::cout << "BRepFeat_MakeRevolutionForm::Init" << std::endl;
 #endif
   Standard_Boolean RevolRib = Standard_True;
   Done();
@@ -174,7 +174,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
     GeomAPI_ProjectPointOnCurve proj2(p2, Line);
     if(proj1.NbPoints() < 1 || proj2.NbPoints() < 1) {
 #ifdef OCCT_DEBUG
-      if (trc) cout << " No projection points" << endl;
+      if (trc) std::cout << " No projection points" << std::endl;
 #endif
       myStatusError = BRepFeat_NoProjPt;
       NotDone();
@@ -208,8 +208,8 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
     myFuse   = Standard_True;
 #ifdef OCCT_DEBUG
   if (trc) {
-    if (myFuse)  cout << " Fuse" << endl;
-    if (!myFuse)  cout << " Cut" << endl;
+    if (myFuse)  std::cout << " Fuse" << std::endl;
+    if (!myFuse)  std::cout << " Cut" << std::endl;
   }
 #endif
 
@@ -294,7 +294,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
   
   if(!Data) {
 #ifdef OCCT_DEBUG
-    if (trc) cout << " No Extreme faces" << endl;
+    if (trc) std::cout << " No Extreme faces" << std::endl;
 #endif
     myStatusError = BRepFeat_NoExtFace;
     NotDone();
@@ -320,7 +320,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
   
   if(Sliding) {    // sliding
 #ifdef OCCT_DEBUG
-    if (trc) cout << " Sliding" << endl;
+    if (trc) std::cout << " Sliding" << std::endl;
 #endif
     Handle(Geom_Surface) s = BRep_Tool::Surface(FirstFace);
     if (s->DynamicType() == 
@@ -360,7 +360,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
     GeomAPI_ProjectPointOnCurve proj(myFirstPnt, Line);
     if(proj.NbPoints() < 1) {
 #ifdef OCCT_DEBUG
-      if (trc) cout << " No First Point projection" << endl;
+      if (trc) std::cout << " No First Point projection" << std::endl;
 #endif
       myStatusError = BRepFeat_NoProjPt;
       NotDone();
@@ -372,7 +372,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
     GeomAPI_ProjectPointOnCurve proj1(myLastPnt, Line);
     if(proj.NbPoints() < 1) {
 #ifdef OCCT_DEBUG
-      if (trc) cout << " No Last Point projection" << endl;
+      if (trc) std::cout << " No Last Point projection" << std::endl;
 #endif
       myStatusError = BRepFeat_NoProjPt;
       NotDone();
@@ -474,7 +474,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
 // ---case of sliding : construction of the face profile
   if(Sliding) {
 #ifdef OCCT_DEBUG
-    if (trc) cout << " still Sliding" << endl;
+    if (trc) std::cout << " still Sliding" << std::endl;
 #endif
     TopoDS_Face Prof;
     Standard_Boolean ProfileOK;
@@ -486,8 +486,8 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
 #ifdef OCCT_DEBUG
       if (trc)
       {
-        cout << "Not computable" << endl;
-        cout << "Face profile not computable" << endl;
+        std::cout << "Not computable" << std::endl;
+        std::cout << "Face profile not computable" << std::endl;
       }
 #endif
       myStatusError = BRepFeat_NoFaceProf;
@@ -503,7 +503,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
 // Control if there is everything required to have the material at the proper side
     if(falseside == Standard_False) {
 #ifdef OCCT_DEBUG
-      cout << " Verify plane and wire orientation" << endl;
+      std::cout << " Verify plane and wire orientation" << std::endl;
 #endif
       myStatusError = BRepFeat_FalseSide;
       NotDone();
@@ -800,8 +800,8 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
   if(!Sliding) {
 #ifdef OCCT_DEBUG
     if (trc) {
-      if (Modify) cout << " Sliding failure" << endl;
-      cout << " no Sliding" << endl;
+      if (Modify) std::cout << " Sliding failure" << std::endl;
+      std::cout << " no Sliding" << std::endl;
     }
 #endif
     TopExp_Explorer explo1(BndFace, TopAbs_WIRE);
@@ -891,7 +891,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
     
     if(!BRepAlgo::IsValid(NewBndFace)) {
 #ifdef OCCT_DEBUG
-      cout << "Invalid new bounding face" << endl;
+      std::cout << "Invalid new bounding face" << std::endl;
 #endif
       myStatusError = BRepFeat_InvShape;
       NotDone();
@@ -912,8 +912,8 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
 #ifdef OCCT_DEBUG
       if (trc)
       {
-        cout << "Not computable" << endl;
-        cout << " Face profile not computable" << endl;
+        std::cout << "Not computable" << std::endl;
+        std::cout << " Face profile not computable" << std::endl;
       }
 #endif
       myStatusError = BRepFeat_NoFaceProf;
@@ -929,7 +929,7 @@ void BRepFeat_MakeRevolutionForm::Init(const TopoDS_Shape& Sbase,
 // Control if there is everything required to have the material at the proper side
     if(falseside == Standard_False) {
 #ifdef OCCT_DEBUG
-      cout << " Verify plane and wire orientation" << endl;
+      std::cout << " Verify plane and wire orientation" << std::endl;
 #endif
       myStatusError = BRepFeat_FalseSide;
       NotDone();
@@ -978,7 +978,7 @@ void BRepFeat_MakeRevolutionForm::Add(const TopoDS_Edge& E,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeRevolutionForm::Add" << endl;
+  if (trc) std::cout << "BRepFeat_MakeRevolutionForm::Add" << std::endl;
 #endif 
   if(mySlface.IsEmpty()) {
     TopExp_Explorer exp;
@@ -1018,11 +1018,11 @@ void BRepFeat_MakeRevolutionForm::Perform()
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_MakeRevolutionForm::Perform()" << endl;
+  if (trc) std::cout << "BRepFeat_MakeRevolutionForm::Perform()" << std::endl;
 #endif
   if(mySbase.IsNull() || mySkface.IsNull() || myPbase.IsNull()) {
 #ifdef OCCT_DEBUG
-    if (trc) cout << " Fields not initialized" << endl;
+    if (trc) std::cout << " Fields not initialized" << std::endl;
 #endif
     myStatusError = BRepFeat_NotInitialized;
     NotDone();
@@ -1124,7 +1124,7 @@ void BRepFeat_MakeRevolutionForm::Perform()
   if(!ASI1.IsDone() || !ASI2.IsDone() ||
      ASI1.NbPoints(1) != 1 || ASI2.NbPoints(1) != 1) {
 #ifdef OCCT_DEBUG
-    if (trc) cout << " Intersection failure" << endl;
+    if (trc) std::cout << " Intersection failure" << std::endl;
 #endif
     myStatusError = BRepFeat_BadIntersect;
     NotDone();
@@ -1217,7 +1217,7 @@ void BRepFeat_MakeRevolutionForm::Perform()
     const TopoDS_Edge& e = TopoDS::Edge(exx.Current());
     if(!myMap.IsBound(e)) {
 #ifdef OCCT_DEBUG
-      if (trc) cout << " Sliding face not in Base shape" << endl;
+      if (trc) std::cout << " Sliding face not in Base shape" << std::endl;
 #endif
       myStatusError = BRepFeat_IncSlidFace;
       NotDone();
@@ -1231,8 +1231,8 @@ void BRepFeat_MakeRevolutionForm::Perform()
 #ifdef OCCT_DEBUG
     if (trc)
     {
-      cout << "The case is not computable" << endl;
-      cout << " Glued faces not empty and Until shape not null" << endl;
+      std::cout << "The case is not computable" << std::endl;
+      std::cout << " Glued faces not empty and Until shape not null" << std::endl;
     }
 #endif
     myStatusError = BRepFeat_InvShape;
@@ -1258,7 +1258,7 @@ Standard_Boolean BRepFeat_MakeRevolutionForm::Propagate(TopTools_ListOfShape& Sl
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEATRIB();
-  if (trc) cout << "BRepFeat_MakeRevolutionForm::Propagate" << endl;
+  if (trc) std::cout << "BRepFeat_MakeRevolutionForm::Propagate" << std::endl;
 #endif
   gp_Pnt Firstpoint = Firstpnt;
   gp_Pnt Lastpoint = Lastpnt;
@@ -1703,7 +1703,7 @@ static void SetGluedFaces(const TopTools_DataMapOfShapeListOfShape& theSlmap,
        const TopTools_ListOfShape& gfac = thePrism.Shapes(it.Value());
        if (gfac.Extent() != 1) {
 #ifdef OCCT_DEBUG
-         cout << "Pb SetGluedFace" << endl;
+         std::cout << "Pb SetGluedFace" << std::endl;
 #endif
        }
        TopTools_DataMapIteratorOfDataMapOfShapeListOfShape iterm(SlidingMap);
index 0ac9d16..6e6e735 100644 (file)
@@ -95,13 +95,13 @@ void BRepFeat_RibSlot::LFPerform()
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_RibSlot::LFPerform()" << endl;
+  if (trc) std::cout << "BRepFeat_RibSlot::LFPerform()" << std::endl;
 #endif
   if (mySbase.IsNull() || myPbase.IsNull() || mySkface.IsNull() 
       || myGShape.IsNull() || myLFMap.IsEmpty()) {
 #ifdef OCCT_DEBUG
-    cout << "Topological reconstruction is impossible" << endl;
-    if (trc) cout << " Fields not initialized" << endl;
+    std::cout << "Topological reconstruction is impossible" << std::endl;
+    if (trc) std::cout << " Fields not initialized" << std::endl;
 #endif
     myStatusError = BRepFeat_NotInitialized;
     NotDone();
@@ -175,7 +175,7 @@ void BRepFeat_RibSlot::LFPerform()
         (!Collage)) {
       theOpe = 2;
 #ifdef OCCT_DEBUG
-      cout << "Passage to topological operations" << endl;
+      std::cout << "Passage to topological operations" << std::endl;
 #endif
     }
   }
@@ -196,7 +196,7 @@ void BRepFeat_RibSlot::LFPerform()
     else {
       theOpe = 2;
 #ifdef OCCT_DEBUG
-      cout << "Passage to topologic operation" << endl;
+      std::cout << "Passage to topologic operation" << std::endl;
 #endif
     }
   }
@@ -264,7 +264,7 @@ const TopTools_ListOfShape& BRepFeat_RibSlot::Modified
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_RibSlot::Modified" << endl;
+  if (trc) std::cout << "BRepFeat_RibSlot::Modified" << std::endl;
 #endif
   if (myMap.IsBound(F)) {
     static TopTools_ListOfShape list;
@@ -290,7 +290,7 @@ const TopTools_ListOfShape& BRepFeat_RibSlot::Generated
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_RibSlot::Generated" << endl;
+  if (trc) std::cout << "BRepFeat_RibSlot::Generated" << std::endl;
 #endif
   if(S.ShapeType() != TopAbs_FACE) {
     myGenerated.Clear();
@@ -441,7 +441,7 @@ gp_Pnt BRepFeat_RibSlot::CheckPoint(const TopoDS_Edge& e,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEATRIB();
-  if (trc) cout << "BRepFeat_RibSlot::CheckPoint" << endl;
+  if (trc) std::cout << "BRepFeat_RibSlot::CheckPoint" << std::endl;
 #endif
 // Vector product : normal to plane X direction Wire
 // -> gives the material side
@@ -474,7 +474,7 @@ gp_Dir BRepFeat_RibSlot::Normal(const TopoDS_Face& F,const gp_Pnt& P)
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEATRIB();
-  if (trc) cout << "BRepFeat_RibSlot::Normal" << endl;
+  if (trc) std::cout << "BRepFeat_RibSlot::Normal" << std::endl;
 #endif 
   Standard_Real U, V;
   gp_Pnt pt;
@@ -561,7 +561,7 @@ void BRepFeat_RibSlot::EdgeExtention(TopoDS_Edge& e,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_RibSlot::EdgeExtention" << endl;
+  if (trc) std::cout << "BRepFeat_RibSlot::EdgeExtention" << std::endl;
 #endif
   Standard_Real f, l;
   Handle(Geom_Curve) cu = BRep_Tool::Curve(e, f, l);
@@ -624,7 +624,7 @@ TopoDS_Face BRepFeat_RibSlot::ChoiceOfFaces(TopTools_ListOfShape& faces,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEATRIB();
-  if (trc) cout << "BRepFeat_RibSlot::ChoiceOfFaces" << endl;
+  if (trc) std::cout << "BRepFeat_RibSlot::ChoiceOfFaces" << std::endl;
 #endif
   TopoDS_Face FFF;
 
@@ -682,7 +682,7 @@ Standard_Real BRepFeat_RibSlot::HeightMax(const TopoDS_Shape& theSbase,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEATRIB();
-  if (trc) cout << "BRepFeat_RibSlot::HeightMax" << endl;
+  if (trc) std::cout << "BRepFeat_RibSlot::HeightMax" << std::endl;
 #endif
   Bnd_Box Box;
   BRepBndLib::Add(theSbase,Box);
@@ -724,7 +724,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_RibSlot::ExtremeFaces" << endl;
+  if (trc) std::cout << "BRepFeat_RibSlot::ExtremeFaces" << std::endl;
 #endif
   Standard_Boolean Data = Standard_True;
   FirstFace.Nullify();
@@ -752,7 +752,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
 // ---the wire includes only one edge
   if(NumberOfEdges == 1) {
 #ifdef OCCT_DEBUG
-    if (trc) cout << " One Edge" << endl;
+    if (trc) std::cout << " One Edge" << std::endl;
 #endif
     exp.ReInit();
     Standard_Real f, l;//, f1, l1, temp;
@@ -898,7 +898,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
 
 //--- FirstFace or LastFace was not found
 #ifdef OCCT_DEBUG
-    if (trc) cout << " FirstFace or LastFace null" << endl;
+    if (trc) std::cout << " FirstFace or LastFace null" << std::endl;
 #endif
     LocOpe_CSIntersector ASI(mySbase);
     TColGeom_SequenceOfCurve scur;
@@ -940,7 +940,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
     }
     else {
 #ifdef OCCT_DEBUG
-      if (trc) cout << " Less than 2 intersection points" << endl;
+      if (trc) std::cout << " Less than 2 intersection points" << std::endl;
 #endif
       Data = Standard_False;
       return Data;
@@ -960,13 +960,13 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
 
     if(FirstFace.IsNull() || LastFace.IsNull()) {
 #ifdef OCCT_DEBUG
-      if (trc) cout << " First or Last Faces still null" << endl;
+      if (trc) std::cout << " First or Last Faces still null" << std::endl;
 #endif
       Data = Standard_False;
     }
     else {
 #ifdef OCCT_DEBUG
-      if (trc) cout << " FirstFace and LastFace OK" << endl;
+      if (trc) std::cout << " FirstFace and LastFace OK" << std::endl;
 #endif
       Data = Standard_True;
     }
@@ -976,7 +976,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
 // ---The wire consists of several edges
   else {
 #ifdef OCCT_DEBUG
-    if (trc) cout << " Multiple Edges" << endl;
+    if (trc) std::cout << " Multiple Edges" << std::endl;
 #endif
     BRepTools_WireExplorer ex(myWire);
     for(; ex.More(); ex.Next()) {
@@ -1156,7 +1156,7 @@ Standard_Boolean BRepFeat_RibSlot::ExtremeFaces(const Standard_Boolean RevolRib,
     }
     else {
 #ifdef OCCT_DEBUG
-      if (trc) cout << " First or Last not OK" << endl;
+      if (trc) std::cout << " First or Last not OK" << std::endl;
 #endif
       return Standard_False;
     }
@@ -1183,7 +1183,7 @@ void BRepFeat_RibSlot::PtOnEdgeVertex(const Standard_Boolean RevolRib,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEATRIB();
-  if (trc) cout << "BRepFeat_RibSlot::PtOnEdgeVertex" << endl;
+  if (trc) std::cout << "BRepFeat_RibSlot::PtOnEdgeVertex" << std::endl;
 #endif
   Standard_Boolean TestOK;
 //  PtOnEdge = Standard_False;
@@ -1258,7 +1258,7 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_RibSlot::SlidingProfile" << endl;
+  if (trc) std::cout << "BRepFeat_RibSlot::SlidingProfile" << std::endl;
 #endif
   Standard_Boolean ProfileOK = Standard_True;
 // --case of sliding : construction of the wire of the profile
@@ -1375,7 +1375,7 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
     
     if(BndEdge1.IsNull() || BndEdge2.IsNull())  {
 #ifdef OCCT_DEBUG
-      if (trc) cout << " Null bounding edge" << endl;
+      if (trc) std::cout << " Null bounding edge" << std::endl;
 #endif
       ProfileOK = Standard_False;
       return ProfileOK;
@@ -1504,7 +1504,7 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
     
   if (!BRepAlgo::IsValid(fac)) {
 #ifdef OCCT_DEBUG
-    if (trc) cout << " Invalid Face" << endl;
+    if (trc) std::cout << " Invalid Face" << std::endl;
 #endif
     ProfileOK = Standard_False;
     return ProfileOK;
@@ -1538,7 +1538,7 @@ Standard_Boolean BRepFeat_RibSlot::SlidingProfile(TopoDS_Face& Prof,
   
   if (!BRepAlgo::IsValid(Prof)) {
 #ifdef OCCT_DEBUG
-    if (trc) cout << " Invalid Face Profile" << endl;
+    if (trc) std::cout << " Invalid Face Profile" << std::endl;
 #endif
     ProfileOK = Standard_False;
     return ProfileOK;    
@@ -1570,7 +1570,7 @@ Standard_Boolean BRepFeat_RibSlot::NoSlidingProfile(TopoDS_Face& Prof,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = BRepFeat_GettraceFEAT();
-  if (trc) cout << "BRepFeat_RibSlot::NoSlidingProfile" << endl;
+  if (trc) std::cout << "BRepFeat_RibSlot::NoSlidingProfile" << std::endl;
 #endif
   Standard_Boolean ProfileOK = Standard_True;
 
@@ -1707,7 +1707,7 @@ Standard_Boolean BRepFeat_RibSlot::NoSlidingProfile(TopoDS_Face& Prof,
     
     if(BndEdge1.IsNull() || BndEdge2.IsNull())  {
 #ifdef OCCT_DEBUG
-      if (trc) cout << " Null bounding edge" << endl;
+      if (trc) std::cout << " Null bounding edge" << std::endl;
 #endif
       ProfileOK = Standard_False;
       return ProfileOK;
@@ -2197,7 +2197,7 @@ Standard_Boolean BRepFeat_RibSlot::NoSlidingProfile(TopoDS_Face& Prof,
   
   if (!BRepAlgo::IsValid(fac)) {
 #ifdef OCCT_DEBUG
-    if (trc) cout << " Invalid Face" << endl;
+    if (trc) std::cout << " Invalid Face" << std::endl;
 #endif
     ProfileOK = Standard_False;
     return ProfileOK;
@@ -2227,7 +2227,7 @@ Standard_Boolean BRepFeat_RibSlot::NoSlidingProfile(TopoDS_Face& Prof,
 
   if (!BRepAlgo::IsValid(Prof)) {
 #ifdef OCCT_DEBUG
-    if (trc) cout << " Invalid Face Profile" << endl;
+    if (trc) std::cout << " Invalid Face Profile" << std::endl;
 #endif
     ProfileOK = Standard_False;
     return ProfileOK;
index 9d87de7..c5c9f83 100644 (file)
@@ -53,7 +53,7 @@ Standard_EXPORT void BRepFeat_SetcontextCHRONO(const Standard_Boolean b)
 { BRepFeat_contextCHRONO = b; }
 Standard_EXPORT Standard_Boolean BRepFeat_GetcontextCHRONO() {
   Standard_Boolean b = BRepFeat_contextCHRONO;
-  if (b) cout<<"context (BRepFeat) CHRONO actif"<<endl;
+  if (b) std::cout<<"context (BRepFeat) CHRONO actif"<<std::endl;
   return b;
 }
 
index 0155338..afef930 100644 (file)
@@ -861,7 +861,7 @@ void BRepFill::SearchOrigin(TopoDS_Wire & W,
   } 
 #ifdef OCCT_DEBUG
   else {
-    cout << "BRepFill::SearchOrigine : Echec Distance" << endl;
+    std::cout << "BRepFill::SearchOrigine : Echec Distance" << std::endl;
   }
 #endif
 
index abf0e4a..fd80370 100644 (file)
@@ -99,9 +99,9 @@ void BRepFill_ApproxSeewing::Perform(const BRepFill_MultiLine& ML)
 
 #ifdef DUMP_ML
   i = 1;
-  cout << "--Point " << i << endl;
-  cout << "P3d:    " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << endl;
-  cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << endl;
+  std::cout << "--Point " << i << std::endl;
+  std::cout << "P3d:    " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << std::endl;
+  std::cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << std::endl;
 #endif
 
   
@@ -116,9 +116,9 @@ void BRepFill_ApproxSeewing::Perform(const BRepFill_MultiLine& ML)
     AppDef_MultiPointConstraint MPC( 1, 2);
     ML.Value3dOnF1OnF2(U,P3d,PF1,PF2);
 #ifdef DUMP_ML
-    cout << "--Point " << i << endl;
-    cout << "P3d:    " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << endl;
-    cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << endl;
+    std::cout << "--Point " << i << std::endl;
+    std::cout << "P3d:    " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << std::endl;
+    std::cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << std::endl;
 #endif
     MPC.SetPoint  (1, P3d);
     MPC.SetPoint2d(2, PF1);
@@ -130,9 +130,9 @@ void BRepFill_ApproxSeewing::Perform(const BRepFill_MultiLine& ML)
   ML.Value3dOnF1OnF2(U2,P3d,PF1,PF2);
 #ifdef DUMP_ML
   i = NbPoints;
-  cout << "--Point " << i << endl;
-  cout << "P3d:    " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << endl;
-  cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << endl;
+  std::cout << "--Point " << i << std::endl;
+  std::cout << "P3d:    " << P3d.X() << " " << P3d.Y() << " " << P3d.Z() << std::endl;
+  std::cout << "P2d1;2: " << PF1.X() << " " << PF1.Y() << " ; " << PF2.X() << " " << PF2.Y() << std::endl;
 #endif
   MPE.SetPoint  (1, P3d);
   MPE.SetPoint2d(2, PF1);
@@ -146,7 +146,7 @@ void BRepFill_ApproxSeewing::Perform(const BRepFill_MultiLine& ML)
   
   if ( NbCurves == 0) {
 #ifdef OCCT_DEBUG
-    cout << " TrimSurfaceTool : Approx echoue, on met les polygones" << endl;
+    std::cout << " TrimSurfaceTool : Approx echoue, on met les polygones" << std::endl;
 #endif
 
     TColStd_Array1OfReal    Knots(1,NbPoints);
index 5e274f0..6024733 100644 (file)
@@ -263,14 +263,14 @@ static Standard_Boolean GoodOrientation(const Bnd_Box& B,
        }
        else {
 #ifdef OCCT_DEBUG
-         cout << "Error in MakeWire" << endl;
+         std::cout << "Error in MakeWire" << std::endl;
 #endif 
          throw Standard_ConstructionError("BRepFill_Draft");
        }
       }
       else {
 #ifdef OCCT_DEBUG
-         cout << "No Free Borders !" << endl;
+         std::cout << "No Free Borders !" << std::endl;
 #endif 
          throw Standard_ConstructionError("BRepFill_Draft");
       }
@@ -899,7 +899,7 @@ static Standard_Boolean GoodOrientation(const Bnd_Box& B,
     }    
   }
 #ifdef OCCT_DEBUG
-  else cout << "Draft : No assembly !" << endl;
+  else std::cout << "Draft : No assembly !" << std::endl;
 #endif
   return Ok;
 }
index f106567..dadd060 100644 (file)
@@ -747,7 +747,7 @@ void BRepFill_Evolved::ElementaryPerform (const TopoDS_Face&              Sp,
 
 #ifdef DRAW
   if (AffichEdge) {
-    cout << " End Construction of geometric primitives"<<endl;
+    std::cout << " End Construction of geometric primitives"<<std::endl;
   }
 #endif
 
@@ -1056,7 +1056,7 @@ void BRepFill_Evolved::ElementaryPerform (const TopoDS_Face&              Sp,
 
 #ifdef DRAW
   if (AffichEdge) {
-    cout << " End of Construction of edges and vertices on bissectrices"<<endl;
+    std::cout << " End of Construction of edges and vertices on bissectrices"<<std::endl;
   }
 #endif
 
@@ -1169,7 +1169,7 @@ void BRepFill_Evolved::ElementaryPerform (const TopoDS_Face&              Sp,
 
 #ifdef DRAW
   if (AffichEdge) {
-    cout <<" End Construction of parallel edges "<<endl;
+    std::cout <<" End Construction of parallel edges "<<std::endl;
   }
 #endif
 
@@ -1240,7 +1240,7 @@ void BRepFill_Evolved::ElementaryPerform (const TopoDS_Face&              Sp,
 
 #ifdef DRAW  
   if (AffichEdge) {      
-    cout <<" End of construction of an elementary volevo."<<endl;          
+    std::cout <<" End of construction of an elementary volevo."<<std::endl;        
     char name[100];
     sprintf(name,"VEVO_%d",++NbVEVOS); 
     DBRep::Set(name,myShape);
@@ -2598,8 +2598,8 @@ void TrimFace(const TopoDS_Face&              Face,
   Standard_Integer NB = TheEdges.Length();
   if ( AffichEdge) {
     char name[100];
-    cout << " TrimFace " << ++NbTRIMFACES;
-    cout << " : " << NB << " edges within the restriction" << endl;
+    std::cout << " TrimFace " << ++NbTRIMFACES;
+    std::cout << " : " << NB << " edges within the restriction" << std::endl;
     for ( Standard_Integer j = 1; j <= NB; j++) {
       sprintf(name,"TRIMEDGE_%d_%d",NbTRIMFACES,j);
       DBRep::Set(name,TopoDS::Edge(TheEdges.Value(j)));
index 5fe70c8..79f4006 100644 (file)
@@ -673,7 +673,7 @@ void BRepFill_Filling::Build()
     {
       GeomPlate_MakeApprox Approx( GPlate, myTol3d, myMaxSegments, myMaxDeg, dmax, 0 ); //?????????????
       //GeomConvert_ApproxSurface Approx( GPlate, myTol3d, GeomAbs_C1, GeomAbs_C1, myMaxDeg, myMaxDeg, myMaxSegments, 1 );
-      //Approx.Dump( cout );
+      //Approx.Dump( std::cout );
       Surface = Approx.Surface();
     }
 
index e26044d..6d98735 100644 (file)
@@ -183,13 +183,13 @@ void BRepFill_LocationLaw::BiNormalIsMain()
 
 #ifdef OCCT_DEBUG
       if (N2.Dot(T1) > 1.e-9) {
-       cout << "Inprecision in TransformInCompatibleLaw" << endl;
-        cout << "--- T1.R(N2) = " << N2.Dot(T1) << endl;
+       std::cout << "Inprecision in TransformInCompatibleLaw" << std::endl;
+        std::cout << "--- T1.R(N2) = " << N2.Dot(T1) << std::endl;
        gp_Vec tt;
        tt = T1;
        tt.Rotate(axe, alpha);
-       cout << "--- T1.R(T2) = " << tt.Dot(T1) << endl;
-       cout << "--- R(N2).R(T2) = " << N2.Dot(tt) << endl;
+       std::cout << "--- T1.R(T2) = " << tt.Dot(T1) << std::endl;
+       std::cout << "--- R(N2).R(T2) = " << N2.Dot(tt) << std::endl;
       }      
 #endif
       Angle = N2.AngleWithRef(N1, T1);
@@ -620,8 +620,8 @@ void BRepFill_LocationLaw::CurvilinearBounds(const Standard_Integer Index,
   else {
     W.Nullify();
 #ifdef OCCT_DEBUG
-    cout << "BRepFill_LocationLaw::D0 : Attention position out of limits" 
-         << endl;
+    std::cout << "BRepFill_LocationLaw::D0 : Attention position out of limits" 
+         << std::endl;
 #endif
   }
 }
index da087a4..1d6b140 100644 (file)
@@ -612,8 +612,8 @@ static gp_Pnt2d ValueOnFace(const Standard_Real        U,
       }
       else {
 #ifdef OCCT_DEBUG
-        cout << "MultiLine : D1 = D2 and the Curve is not a circle" << endl;
-        cout << "  ---> ValueOnFace failed at parameter U = " << U << endl;
+        std::cout << "MultiLine : D1 = D2 and the Curve is not a circle" << std::endl;
+        std::cout << "  ---> ValueOnFace failed at parameter U = " << U << std::endl;
 #endif
         throw Standard_ConstructionError("BRepFill_MultiLine: ValueOnFace");
       }
@@ -665,8 +665,8 @@ static gp_Pnt2d ValueOnFace(const Standard_Real        U,
 
     if ( !Intersector.IsDone()) {
 #ifdef OCCT_DEBUG
-      cout << "Intersector not done" << endl;
-      cout << "  ---> ValueonFace failed at parameter U = " << U << endl;
+      std::cout << "Intersector not done" << std::endl;
+      std::cout << "  ---> ValueonFace failed at parameter U = " << U << std::endl;
 #endif
       return gp_Pnt2d(0.,0.);
     }
@@ -685,8 +685,8 @@ static gp_Pnt2d ValueOnFace(const Standard_Real        U,
       }
       else {
 #ifdef OCCT_DEBUG
-        cout << "Intersector done, but no points found" << endl;
-        cout << "  ---> ValueonFace failed at parameter U = " << U << endl;
+        std::cout << "Intersector done, but no points found" << std::endl;
+        std::cout << "  ---> ValueonFace failed at parameter U = " << U << std::endl;
 #endif
         if (Abs(Dist - PL.Y()) < Abs(Dist - PF.Y()))
           VV = TheV.LastParameter();
index 279c3d3..1e313fe 100644 (file)
@@ -521,7 +521,7 @@ void BRepFill_OffsetWire::Perform (const Standard_Real Offset,
     if(!BadEdges.IsEmpty())
     {
       // Modification of myWorkSpine;
-      //cout << "Modification of myWorkSpine : " << BadEdges.Extent() << endl;
+      //std::cout << "Modification of myWorkSpine : " << BadEdges.Extent() << std::endl;
       BRepTools_Substitution aSubst;
       TopTools_ListIteratorOfListOfShape it(BadEdges);
       TopTools_ListOfShape aL;
@@ -548,7 +548,7 @@ void BRepFill_OffsetWire::Perform (const Standard_Real Offset,
         Standard_Integer NPnts = Points.Length();
         if(NPnts > 2)
         {
-          //cout << NPnts << " points " << endl;
+          //std::cout << NPnts << " points " << std::endl;
           TopoDS_Vertex FV = Vf;
           TopoDS_Vertex LV;
           TopoDS_Edge newE;
@@ -566,7 +566,7 @@ void BRepFill_OffsetWire::Perform (const Standard_Real Offset,
         }
         else
         {
-          //cout << " 2 points " << endl;
+          //std::cout << " 2 points " << std::endl;
           TopoDS_Edge newE = BRepLib_MakeEdge(Vf, Vl);
           aL.Append(newE);
         }
@@ -642,9 +642,9 @@ void BRepFill_OffsetWire::Perform (const Standard_Real Offset,
   }
   catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    cout<<"An exception was caught in BRepFill_OffsetWire::Perform : ";
-    anException.Print(cout);
-    cout<<endl;
+    std::cout<<"An exception was caught in BRepFill_OffsetWire::Perform : ";
+    anException.Print(std::cout);
+    std::cout<<std::endl;
 #endif
     (void)anException;
     myShape.Nullify();
@@ -831,7 +831,7 @@ void BRepFill_OffsetWire::PerformWithBiLo
 #ifdef OCCT_DEBUG
 #ifdef DRAW
   if (AffichEdge) {
-    cout << " End Construction of geometric primitives "<<endl;
+    std::cout << " End Construction of geometric primitives "<<std::endl;
   }
 #endif
 #endif
@@ -1019,7 +1019,7 @@ void BRepFill_OffsetWire::PerformWithBiLo
 #ifdef OCCT_DEBUG
 #ifdef DRAW
   if (AffichEdge) {
-    cout << " End Construction of vertices on offsets"<<endl;
+    std::cout << " End Construction of vertices on offsets"<<std::endl;
   }
 #endif
 #endif
@@ -1469,7 +1469,7 @@ void BRepFill_OffsetWire::MakeWires()
 
       if (!End) {
         if (MVE.FindFromKey(CV).Extent() > 2) {
-          //cout <<"vertex on more that 2 edges in a face."<<endl;
+          //std::cout <<"vertex on more that 2 edges in a face."<<std::endl;
         }
         for ( itl.Initialize(MVE.FindFromKey(CV)); itl.More(); itl.Next()) {
           if (itl.Value().IsSame(CE)) {
@@ -2521,7 +2521,7 @@ static void CheckBadEdges(const TopoDS_Face& Spine, const Standard_Real Offset,
 
 
         if (aMap.Contains(SE)) {
-          //cout << "Edge is treated second time" << endl;
+          //std::cout << "Edge is treated second time" << std::endl;
           continue;
         }
 
index 6a71f99..9335334 100644 (file)
@@ -300,8 +300,8 @@ BRepFill_SectionPlacement(const Handle(BRepFill_LocationLaw)& Law,
   if (myDebug) {
     gp_Pnt P_Path;
     P_Path = adpPath->Value(theParam);
-    cout << "Point on Path" << P_Path.X() << ", " 
-      <<  P_Path.Y() << ", " << P_Path.Z() << ", " << endl; 
+    std::cout << "Point on Path" << P_Path.X() << ", " 
+      <<  P_Path.Y() << ", " << P_Path.Z() << ", " << std::endl; 
   }
 #endif
   
index fbe040b..03aeebc 100644 (file)
@@ -179,7 +179,7 @@ void BRepFill_ShapeLaw::Init(const Standard_Boolean Build)
     }
   }
 
-//  cout << "new law" << endl;
+//  std::cout << "new law" << std::endl;
 
   //  Is the law closed by U ?
   uclosed = W.Closed();
@@ -372,8 +372,8 @@ void BRepFill_ShapeLaw::Init(const Standard_Boolean Build)
                                   Standard_True, Standard_False, 20);
 #ifdef OCCT_DEBUG
        if (!Bof) 
-         cout << "BRepFill_ShapeLaw::ConcatenedLaw INCOMPLET !!!" 
-         << endl;
+         std::cout << "BRepFill_ShapeLaw::ConcatenedLaw INCOMPLET !!!" 
+         << std::endl;
 #endif
       }
       Composite = Concat.BSplineCurve();
index 7b110d0..1f2553b 100644 (file)
@@ -347,7 +347,7 @@ static Standard_Boolean SameParameter(TopoDS_Edge&    E,
   if(sp.IsDone() && !sp.IsSameParameter()) Pcurv = sp.Curve2d();
   else if(!sp.IsDone() && !sp.IsSameParameter()){
 #ifdef OCCT_DEBUG
-    cout<<"echec SameParameter"<<endl;
+    std::cout<<"echec SameParameter"<<std::endl;
 #endif  
     return Standard_False;
   }
@@ -355,8 +355,8 @@ static Standard_Boolean SameParameter(TopoDS_Edge&    E,
   ResTol = sp.TolReached();
   if(ResTol > tolreached ){
 #ifdef OCCT_DEBUG
-    cout<<"SameParameter : Tolerance not reached!"<<endl;
-    cout<<"tol visee : "<<tol3d<<" tol obtained : "<<ResTol<<endl;
+    std::cout<<"SameParameter : Tolerance not reached!"<<std::endl;
+    std::cout<<"tol visee : "<<tol3d<<" tol obtained : "<<ResTol<<std::endl;
 #endif  
     return Standard_False;
   }
@@ -647,7 +647,7 @@ static void BuildFace(const Handle(Geom_Surface)& S,
     if (MkF.Error() != BRepLib_FaceDone) {
 #ifdef OCCT_DEBUG
       BRepLib_FaceError Err = MkF.Error();
-      cout << "Planar Face Error :" <<   Err << endl;
+      std::cout << "Planar Face Error :" <<   Err << std::endl;
 #endif
     }
     else {
@@ -1110,13 +1110,13 @@ static Standard_Boolean Filling(const TopoDS_Shape& EF,
                                  8, 8, 2*NbInt, 0);
     if (!App.HasResult()) {
 #ifdef OCCT_DEBUG
-      cout << "Filling_Approx : Pas de resultat" << endl;
+      std::cout << "Filling_Approx : Pas de resultat" << std::endl;
 #endif      
       return Standard_False;
     }
 #ifdef OCCT_DEBUG
-    cout <<  "Filling_Approx Error 3d = " << 
-      App.MaxError() << endl;
+    std::cout <<  "Filling_Approx Error 3d = " << 
+      App.MaxError() << std::endl;
 #endif
     Surf = App.Surface();
     Tol3d = App.MaxError();  
@@ -1331,7 +1331,7 @@ static void SetCommonEdgeInFace(BRepTools_Substitution& aSubstitute,
     }
   }
 #ifdef OCCT_DEBUG
-  if (!done) cout << "Substitution of Edge failed" << endl;
+  if (!done) std::cout << "Substitution of Edge failed" << std::endl;
 #endif  
 }
 */
@@ -1884,7 +1884,7 @@ BRepFill_Sweep::BRepFill_Sweep(const Handle(BRepFill_SectionLaw)& Section,
 
 #ifdef OCCT_DEBUG
   if (!issame) 
-    cout<<"Sweep Warning : Edge not SameRange in the limits"<<endl;
+    std::cout<<"Sweep Warning : Edge not SameRange in the limits"<<std::endl;
 #endif
 }
 
@@ -2564,7 +2564,7 @@ BRepFill_Sweep::BRepFill_Sweep(const Handle(BRepFill_SectionLaw)& Section,
       }
       if (Degenerated(isec, ipath)) { 
 #ifdef OCCT_DEBUG
-       cout << "Sweep : Degenerated case" << endl;
+       std::cout << "Sweep : Degenerated case" << std::endl;
 #endif
        hasdegen = Standard_True;
         // Particular construction of edges
@@ -3223,7 +3223,7 @@ TopoDS_Shape BRepFill_Sweep::Tape(const Standard_Integer Index) const
 
     if (t1.Angle(t2) < myAngMin) {
 #ifdef OCCT_DEBUG
-      cout << "BRepFill_Sweep::PerformCorner : This is not a corner !" << endl;
+      std::cout << "BRepFill_Sweep::PerformCorner : This is not a corner !" << std::endl;
 #endif
       return;
     }
@@ -3333,7 +3333,7 @@ TopoDS_Shape BRepFill_Sweep::Tape(const Standard_Integer Index) const
   else if ((TheTransition == BRepFill_Right) ||
           aTrim.HasSection() ) { 
 #ifdef OCCT_DEBUG
-    cout << "Fail of TrimCorner" << endl;
+    std::cout << "Fail of TrimCorner" << std::endl;
 #endif
     return; // Nothing is touched
   }
@@ -3411,7 +3411,7 @@ TopoDS_Shape BRepFill_Sweep::Tape(const Standard_Integer Index) const
        }
       }
 #ifdef OCCT_DEBUG
-      else cout << "PerformCorner : Unsymmetry of free border" << endl;
+      else std::cout << "PerformCorner : Unsymmetry of free border" << std::endl;
 #endif
     }
   }
index f5f7d05..4d3e564 100644 (file)
@@ -442,7 +442,7 @@ void BRepFill_TrimEdgeTool::IntersectWith(const TopoDS_Edge& Edge1,
     (Points2.Length() == 0 && Params.Length() == 0) ) ) {
 
 #ifdef OCCT_DEBUG
-      cout << "BRepFill_TrimEdgeTool: incoherent intersection. Try with a greater tolerance" << endl;
+      std::cout << "BRepFill_TrimEdgeTool: incoherent intersection. Try with a greater tolerance" << std::endl;
 #endif
 
       Params.Clear();
@@ -456,16 +456,16 @@ void BRepFill_TrimEdgeTool::IntersectWith(const TopoDS_Edge& Edge1,
   }
 
 #ifdef OCCT_DEBUG
-  if(SeanceDeRattrapage != 0) cout << "SeanceDeRattrapage = " << SeanceDeRattrapage << endl;
+  if(SeanceDeRattrapage != 0) std::cout << "SeanceDeRattrapage = " << SeanceDeRattrapage << std::endl;
   if(SeanceDeRattrapage == nn) { 
-    cout << "BRepFill_TrimEdgeTool: incoherent intersection" << endl;
+    std::cout << "BRepFill_TrimEdgeTool: incoherent intersection" << std::endl;
   }
 #endif
 
 
   if(Params.Length() == 0 && Points2.Length() == 1) {
 
-    //cout << "Params.Length() == 0 && Points2.Length() == 1" << endl;
+    //std::cout << "Params.Length() == 0 && Points2.Length() == 1" << std::endl;
     Standard_Real dmin, dmax = 0.25*myOffset*myOffset;
     Standard_Real tBis = Points2(1).X();
     gp_Pnt2d PBis = myBis.Value(tBis);
@@ -492,7 +492,7 @@ void BRepFill_TrimEdgeTool::IntersectWith(const TopoDS_Edge& Edge1,
   }
   else if(Params.Length() == 1 && Points2.Length() == 0) {
 
-    //cout << "Params.Length() == 1 && Points2.Length() == 0" << endl;
+    //std::cout << "Params.Length() == 1 && Points2.Length() == 0" << std::endl;
     Standard_Real dmin, dmax = 0.25*myOffset*myOffset;
     Standard_Real tBis = Params(1).X();
     gp_Pnt2d PBis = myBis.Value(tBis);
@@ -529,7 +529,7 @@ void BRepFill_TrimEdgeTool::IntersectWith(const TopoDS_Edge& Edge1,
   Standard_Integer NbPoints = Params.Length();
 
   if(NbPoints == 1 && Points2.Length() == 1) {
-    //cout << "NbPoints == 1 && Points2.Length() == 1" << endl;
+    //std::cout << "NbPoints == 1 && Points2.Length() == 1" << std::endl;
     for ( i = 1; i <= NbPoints; i++) {
       PSeq = Params(i);
       PSeq.SetZ((Points2.Value(i)).Y());
@@ -546,11 +546,11 @@ void BRepFill_TrimEdgeTool::IntersectWith(const TopoDS_Edge& Edge1,
 
     if ( P1xP2x > Tol ) {
 #ifdef OCCT_DEBUG
-      cout << "BRepFill_TrimEdgeTool: no same parameter on the bissectrice" << endl;
+      std::cout << "BRepFill_TrimEdgeTool: no same parameter on the bissectrice" << std::endl;
 #endif
       if(P1xP2x>TolInit) { 
 #ifdef OCCT_DEBUG
-        cout << "BRepFill_TrimEdgeTool: Continue somehow" << endl;
+        std::cout << "BRepFill_TrimEdgeTool: Continue somehow" << std::endl;
 #endif 
         i++;
       }
@@ -690,7 +690,7 @@ void BRepFill_TrimEdgeTool::AddOrConfuse(const Standard_Boolean  Start,
 
   if (ToProj) {
 #ifdef OCCT_DEBUG
-    cout << " project extremity bissectrice on parallel."<<endl;
+    std::cout << " project extremity bissectrice on parallel."<<std::endl;
 #endif
 
     // Project point on parallels and add in Params
@@ -704,25 +704,25 @@ void BRepFill_TrimEdgeTool::AddOrConfuse(const Standard_Boolean  Start,
 
     if (Projector1.NbPoints() == 0) {
 #ifdef OCCT_DEBUG
-      cout << "Failed projection in BRepFill_TrimEdgeTool::AddOrConfuse"<<endl;
+      std::cout << "Failed projection in BRepFill_TrimEdgeTool::AddOrConfuse"<<std::endl;
 #endif
       return;
     }
     if (!Projector1.NearestPoint().IsEqual(PBis,Tol)) {
 #ifdef OCCT_DEBUG
-      cout <<"Incorrect solution in BRepFill_TrimEdgeTool::AddOrConfuse"<<endl;
+      std::cout <<"Incorrect solution in BRepFill_TrimEdgeTool::AddOrConfuse"<<std::endl;
 #endif
       return;
     }
     if (Projector2.NbPoints() == 0) {
 #ifdef OCCT_DEBUG
-      cout << "Failed projection in BRepFill_TrimEdgeTool::AddOrConfuse"<<endl;
+      std::cout << "Failed projection in BRepFill_TrimEdgeTool::AddOrConfuse"<<std::endl;
 #endif
       return;
     }
     if (!Projector2.NearestPoint().IsEqual(PBis,Tol)) {
 #ifdef OCCT_DEBUG
-      cout <<" Mauvaisesolution dans BRepFill_TrimEdgeTool::AddOrConfuse"<<endl;
+      std::cout <<" Mauvaisesolution dans BRepFill_TrimEdgeTool::AddOrConfuse"<<std::endl;
 #endif
       return;
     }
index 025d27c..7921d87 100644 (file)
@@ -103,7 +103,7 @@ myFace1(Face1),
 #ifdef OCCT_DEBUG
   if ( Affich) {
     NBCALL++;
-    cout << " ---------->TrimSurfaceTool : NBCALL = " << NBCALL << endl;
+    std::cout << " ---------->TrimSurfaceTool : NBCALL = " << NBCALL << std::endl;
 #ifdef DRAW
     char name[256];
 
@@ -279,8 +279,8 @@ static void EvalParameters(const TopoDS_Edge&          Edge,
 
     if (NbSegments > 0) {
 #ifdef OCCT_DEBUG
-      cout << " IntersectWith : " << NbSegments  
-        << " Segments of intersection" << endl;
+      std::cout << " IntersectWith : " << NbSegments  
+        << " Segments of intersection" << std::endl;
 #endif
       IntRes2d_IntersectionSegment Seg;
       for ( Standard_Integer i = 1; i <= NbSegments; i++) {
@@ -305,7 +305,7 @@ static void EvalParameters(const TopoDS_Edge&          Edge,
       P1 = Seq.Value(i);
       P2 = Seq.Value(i+1);
       if ( P2.X()-P1.X() < Tol ) {
-        //     cout<<"REMOVE "<<P1.X()<<endl;
+        //     std::cout<<"REMOVE "<<P1.X()<<std::endl;
         Seq.Remove(i--);
         NbPoints--;
       }
@@ -432,7 +432,7 @@ void BRepFill_TrimSurfaceTool::IntersectWith
     PSeq = Points(i);
     PSeq.SetZ((Points2.Value(i)).Y());
     Points.SetValue(i,PSeq);
-    //    cout<<"BisPar "<<PSeq.X()<<endl;
+    //    std::cout<<"BisPar "<<PSeq.X()<<std::endl;
   }
 }
 
@@ -488,9 +488,9 @@ Standard_Real BRepFill_TrimSurfaceTool::ProjOn(const gp_Pnt2d& Point,
 #ifdef OCCT_DEBUG
   Standard_Real Dist = Projector.LowerDistance();
   if ( Dist > Precision::Confusion() ) {
-    cout << " *** WARNING  TrimSurfaceTool:  *** " << endl;
-    cout << "      --> the point is not on the edge" <<endl;
-    cout << "          distance  = " << Dist << endl;
+    std::cout << " *** WARNING  TrimSurfaceTool:  *** " << std::endl;
+    std::cout << "      --> the point is not on the edge" <<std::endl;
+    std::cout << "          distance  = " << Dist << std::endl;
   }
 #endif
 
index 64ee561..1e99842 100644 (file)
@@ -186,12 +186,12 @@ static Standard_Real surfaceProperties(const TopoDS_Shape& S, GProp_GProps& Prop
       }
       Props.Add(G);
 #ifdef OCCT_DEBUG
-      if(AffichEps) cout<<"\n"<<i<<":\tEpsArea = "<< G.GetEpsilon();
+      if(AffichEps) std::cout<<"\n"<<i<<":\tEpsArea = "<< G.GetEpsilon();
 #endif
     }
   }
 #ifdef OCCT_DEBUG
-  if(AffichEps) cout<<"\n-----------------\n"<<iErrorMax<<":\tMaxError = "<<ErrorMax<<"\n";
+  if(AffichEps) std::cout<<"\n-----------------\n"<<iErrorMax<<":\tMaxError = "<<ErrorMax<<"\n";
 #endif
   return ErrorMax;
 }
@@ -300,13 +300,13 @@ static Standard_Real volumeProperties(const TopoDS_Shape& S, GProp_GProps& Props
         }
         Props.Add(G);
 #ifdef OCCT_DEBUG
-        if(AffichEps) cout<<"\n"<<i<<":\tEpsVolume = "<< G.GetEpsilon();
+        if(AffichEps) std::cout<<"\n"<<i<<":\tEpsVolume = "<< G.GetEpsilon();
 #endif
       }
     }
   }
 #ifdef OCCT_DEBUG
-  if(AffichEps) cout<<"\n-----------------\n"<<iErrorMax<<":\tMaxError = "<<ErrorMax<<"\n";
+  if(AffichEps) std::cout<<"\n-----------------\n"<<iErrorMax<<":\tMaxError = "<<ErrorMax<<"\n";
 #endif
   return ErrorMax;
 }
@@ -367,7 +367,7 @@ Standard_Real BRepGProp::VolumeProperties(const TopoDS_Shape& S, GProp_GProps& P
     }
   } else ErrorMax = volumeProperties(S,Props,Eps,SkipShared, Standard_False);
 #ifdef OCCT_DEBUG
-  if(AffichEps) cout<<"\n\n==================="<<iErrorMax<<":\tMaxEpsVolume = "<<ErrorMax<<"\n";
+  if(AffichEps) std::cout<<"\n\n==================="<<iErrorMax<<":\tMaxEpsVolume = "<<ErrorMax<<"\n";
 #endif
   return ErrorMax;
 } 
index f544b0f..a1f9350 100644 (file)
@@ -149,7 +149,7 @@ Standard_Boolean BRepGProp_TFunction::Value(const Standard_Real X,
 
     F         += anIntegral.Value();
     aLocalErr += anIntegral.AbsolutError();
-    //cout << " TFunction : " << anIntegral.NbIterReached() << " " << anIntegral.AbsolutError() << endl;
+    //std::cout << " TFunction : " << anIntegral.NbIterReached() << " " << anIntegral.AbsolutError() << std::endl;
   }
 
   F            *= aCoeff;
index a792352..388d674 100644 (file)
@@ -403,7 +403,7 @@ Standard_Real BRepGProp_VinertGK::PrivatePerform
       Standard_Real err1 = 0.;
       while (i < iU) {
 
-        //cout << "-------------- Span " << i << " nbp: " << aNbPnts << endl;
+        //std::cout << "-------------- Span " << i << " nbp: " << aNbPnts << std::endl;
         Standard_Real aT1 = aTKnots->Value(i++);
         Standard_Real aT2 = aTKnots->Value(i);
 
@@ -422,9 +422,9 @@ Standard_Real BRepGProp_VinertGK::PrivatePerform
 
         aLocalValue(k)      += anIntegral.Value();
         err1 = aTFunc.AbsolutError()*(aT2 - aT1); 
-        //cout << "Errors: " << anIntegral.NbIterReached() << " " << anIntegral.AbsolutError() << " " << err1 << endl;
+        //std::cout << "Errors: " << anIntegral.NbIterReached() << " " << anIntegral.AbsolutError() << " " << err1 << std::endl;
         aLocalTolReached(k) += anIntegral.AbsolutError() + err1; 
-        //cout << "--- Errors: " << anIntegral.NbIterReached() << " " << anIntegral.AbsolutError() << " " << err1 << endl;
+        //std::cout << "--- Errors: " << anIntegral.NbIterReached() << " " << anIntegral.AbsolutError() << " " << err1 << std::endl;
       }
 
       aValue(k)      += aLocalValue(k);
index e475daf..b8b4ed8 100644 (file)
@@ -2233,9 +2233,9 @@ static void EncodeRegularity(const TopoDS_Shape&        theShape,
   }
   catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: Exception in BRepLib::EncodeRegularity(): ";
-    anException.Print(cout);
-    cout << endl;
+    std::cout << "Warning: Exception in BRepLib::EncodeRegularity(): ";
+    anException.Print(std::cout);
+    std::cout << std::endl;
 #endif
     (void)anException;
   }
@@ -2300,7 +2300,7 @@ void BRepLib::EncodeRegularity(TopoDS_Edge& E,
     catch(Standard_Failure const&)
     {
 #ifdef OCCT_DEBUG
-      cout << "Failure: Exception in BRepLib::EncodeRegularity" << endl;
+      std::cout << "Failure: Exception in BRepLib::EncodeRegularity" << std::endl;
 #endif
     }
   }
@@ -2351,7 +2351,7 @@ Standard_Boolean BRepLib::
       if(!aSLP.IsNormalDefined())
       {
 #ifdef OCCT_DEBUG
-        cout << "BRepLib::EnsureNormalConsistency(): Cannot find normal!" << endl;
+        std::cout << "BRepLib::EnsureNormalConsistency(): Cannot find normal!" << std::endl;
 #endif
       }
       else
index 949e4b8..6733de3 100644 (file)
@@ -357,7 +357,7 @@ void  BRepLib_MakeWire::Add(const TopoDS_Edge& E, Standard_Boolean IsCheckGeomet
       else if (V2.IsSame(myVertex)) VRef = V1;
       else {
 #ifdef OCCT_DEBUG
-       cout << "MakeWire : There is a PROBLEM !!" << endl;
+       std::cout << "MakeWire : There is a PROBLEM !!" << std::endl;
 #endif
        myError = BRepLib_NonManifoldWire;
       }
@@ -366,7 +366,7 @@ void  BRepLib_MakeWire::Add(const TopoDS_Edge& E, Standard_Boolean IsCheckGeomet
        // Particular case: it is required to control the orientation
 #ifdef OCCT_DEBUG
        if (!VF.IsSame(myVertex))
-         cout << "MakeWire : There is a PROBLEM !!" << endl;
+         std::cout << "MakeWire : There is a PROBLEM !!" << std::endl;
 #endif
        
       }
@@ -375,7 +375,7 @@ void  BRepLib_MakeWire::Add(const TopoDS_Edge& E, Standard_Boolean IsCheckGeomet
        else if (VL.IsSame(myVertex)) VL = VRef;
        else {
 #ifdef OCCT_DEBUG
-         cout << "MakeWire : Y A UN PROBLEME !!" << endl;
+         std::cout << "MakeWire : Y A UN PROBLEME !!" << std::endl;
 #endif
          myError = BRepLib_NonManifoldWire;
        }
index 4906412..7a49413 100644 (file)
@@ -472,14 +472,14 @@ void BRepMesh_DataStructureOfDelaun::Statistics(Standard_OStream& theStream) con
 {
   theStream << " Map of nodes : \n";
   myNodes->Statistics(theStream);
-  theStream << "\n Deleted nodes : " << myNodes->GetListOfDelNodes().Extent() << endl;
+  theStream << "\n Deleted nodes : " << myNodes->GetListOfDelNodes().Extent() << std::endl;
 
   theStream << "\n\n Map of Links : \n";
   myLinks.Statistics(theStream);
-  theStream << "\n Deleted links : " << myDelLinks.Extent() << endl;
+  theStream << "\n Deleted links : " << myDelLinks.Extent() << std::endl;
 
   theStream << "\n\n Map of elements : \n";
-  theStream << "\n Elements : " << myElements.Size() << endl;
+  theStream << "\n Elements : " << myElements.Size() << std::endl;
 }
 
 //=======================================================================
index 070c38a..4e99763 100644 (file)
@@ -190,7 +190,7 @@ void BRepOffset_Analyse::Perform (const TopoDS_Shape& S,
       }
       else {  
 #ifdef OCCT_DEBUG
-       cout <<"edge shared by more than two faces"<<endl;
+       std::cout <<"edge shared by more than two faces"<<std::endl;
 #endif 
       }
     }
@@ -577,7 +577,7 @@ BRepOffset_Type DefineConnectType(const TopoDS_Edge&     E,
     else  {                   
       //Mixed not finished!
 #ifdef OCCT_DEBUG
-      cout <<" faces locally mixed"<<endl;
+      std::cout <<" faces locally mixed"<<std::endl;
 #endif
       return BRepOffset_Convex;
     }
index 8d4d0c8..ad0e625 100644 (file)
@@ -347,7 +347,7 @@ static void EdgeInter(const TopoDS_Face&              F,
           if (Precision::IsInfinite(aT1) || Precision::IsInfinite(aT2))
             {
 #ifdef OCCT_DEBUG
-              cout << "Inter2d : Solution rejected due to infinite parameter"<<endl;
+              std::cout << "Inter2d : Solution rejected due to infinite parameter"<<std::endl;
 #endif
               continue;
             }
@@ -370,22 +370,22 @@ static void EdgeInter(const TopoDS_Face&              F,
 #ifdef OCCT_DEBUG
           if (aT1 < f[1]-Tol  || aT1 > l[1]+Tol)
             {
-              cout << "out of limit"<<endl;
-              cout<<"aT1 = "<<aT1<<", f[1] = "<<f[1]<<", l[1] = "<<l[1]<<endl;
+              std::cout << "out of limit"<<std::endl;
+              std::cout<<"aT1 = "<<aT1<<", f[1] = "<<f[1]<<", l[1] = "<<l[1]<<std::endl;
             }
           if (aT2 < f[2]-Tol  || aT2 > l[2]+Tol)
             {
-              cout << "out of limit"<<endl;
-              cout<<"aT2 = "<<aT2<<", f[2] = "<<f[2]<<", l[2] = "<<l[2]<<endl;
+              std::cout << "out of limit"<<std::endl;
+              std::cout<<"aT2 = "<<aT2<<", f[2] = "<<f[2]<<", l[2] = "<<l[2]<<std::endl;
             }
           Standard_Real MilTol2 = 1000*Tol*Tol;
           if (P1.SquareDistance(P) >  MilTol2 || P2.SquareDistance(P) > MilTol2 || P1.Distance(P2) > 2.*Tol)
             {
-              cout << "Inter2d : Solution rejected "<<endl;
-              cout<<"P  = "<<P.X()<<" "<<P.Y()<<" "<<P.Z()<<endl;
-              cout<<"P1 = "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z()<<endl;
-              cout<<"P2 = "<<P2.X()<<" "<<P2.Y()<<" "<<P2.Z()<<endl;
-              cout<<"MaxDist = "<<dist1<<endl;
+              std::cout << "Inter2d : Solution rejected "<<std::endl;
+              std::cout<<"P  = "<<P.X()<<" "<<P.Y()<<" "<<P.Z()<<std::endl;
+              std::cout<<"P1 = "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z()<<std::endl;
+              std::cout<<"P2 = "<<P2.X()<<" "<<P2.Y()<<" "<<P2.Z()<<std::endl;
+              std::cout<<"MaxDist = "<<dist1<<std::endl;
             }
 #endif
           //define the orientation of a new vertex
@@ -405,7 +405,7 @@ static void EdgeInter(const TopoDS_Face&              F,
               Standard_Real CrossProd = V2or ^ V1;
 #ifdef OCCT_DEBUG
               if (Abs(CrossProd) <= gp::Resolution())
-                cout<<endl<<"CrossProd = "<<CrossProd<<endl;
+                std::cout<<std::endl<<"CrossProd = "<<CrossProd<<std::endl;
 #endif
               if (CrossProd > 0.)
                 OO1 = TopAbs_FORWARD;
@@ -489,7 +489,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) cout <<"Doubles removed in EdgeInter."<<endl;
+            if (AffichPurge) std::cout <<"Doubles removed in EdgeInter."<<std::endl;
             Purge = Standard_True;
             break;
           }
@@ -616,7 +616,7 @@ static void RefEdgeInter(const TopoDS_Face&              F,
       if (Precision::IsInfinite(aT1) || Precision::IsInfinite(aT2))
         {
 #ifdef OCCT_DEBUG
-          cout << "Inter2d : Solution rejected due to infinite parameter"<<endl;
+          std::cout << "Inter2d : Solution rejected due to infinite parameter"<<std::endl;
 #endif
           continue;
         }
@@ -639,22 +639,22 @@ static void RefEdgeInter(const TopoDS_Face&              F,
 #ifdef OCCT_DEBUG
       if (aT1 < f[1]-Tol  || aT1 > l[1]+Tol)
         {
-          cout << "out of limit"<<endl;
-          cout<<"aT1 = "<<aT1<<", f[1] = "<<f[1]<<", l[1] = "<<l[1]<<endl;
+          std::cout << "out of limit"<<std::endl;
+          std::cout<<"aT1 = "<<aT1<<", f[1] = "<<f[1]<<", l[1] = "<<l[1]<<std::endl;
         }
       if (aT2 < f[2]-Tol  || aT2 > l[2]+Tol)
         {
-          cout << "out of limit"<<endl;
-          cout<<"aT2 = "<<aT2<<", f[2] = "<<f[2]<<", l[2] = "<<l[2]<<endl;
+          std::cout << "out of limit"<<std::endl;
+          std::cout<<"aT2 = "<<aT2<<", f[2] = "<<f[2]<<", l[2] = "<<l[2]<<std::endl;
         }
       Standard_Real MilTol2 = 1000*Tol*Tol;
       if (P1.SquareDistance(P) >  MilTol2 || P2.SquareDistance(P) > MilTol2 || P1.Distance(P2) > 2.*Tol)
         {
-          cout << "Inter2d : Solution rejected"<<endl;
-          cout<<"P  = "<<P.X()<<" "<<P.Y()<<" "<<P.Z()<<endl;
-          cout<<"P1 = "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z()<<endl;
-          cout<<"P2 = "<<P2.X()<<" "<<P2.Y()<<" "<<P2.Z()<<endl;
-          cout<<"MaxDist = "<<dist1<<endl;
+          std::cout << "Inter2d : Solution rejected"<<std::endl;
+          std::cout<<"P  = "<<P.X()<<" "<<P.Y()<<" "<<P.Z()<<std::endl;
+          std::cout<<"P1 = "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z()<<std::endl;
+          std::cout<<"P2 = "<<P2.X()<<" "<<P2.Y()<<" "<<P2.Z()<<std::endl;
+          std::cout<<"MaxDist = "<<dist1<<std::endl;
         }
 #endif
       //define the orientation of a new vertex
@@ -674,7 +674,7 @@ static void RefEdgeInter(const TopoDS_Face&              F,
           Standard_Real CrossProd = V2or ^ V1;
 #ifdef OCCT_DEBUG
           if (Abs(CrossProd) <= gp::Resolution())
-            cout<<endl<<"CrossProd = "<<CrossProd<<endl;
+            std::cout<<std::endl<<"CrossProd = "<<CrossProd<<std::endl;
 #endif
           if (CrossProd > 0.)
             OO1 = TopAbs_FORWARD;
@@ -746,7 +746,7 @@ static void RefEdgeInter(const TopoDS_Face&              F,
           if (P1.IsEqual(P2,10*Tol)) {
             LV1.Remove(it1LV1);
             LV2.Remove(it1LV2);
-            if (AffichPurge) cout <<"Doubles removed in EdgeInter."<<endl;
+            if (AffichPurge) std::cout <<"Doubles removed in EdgeInter."<<std::endl;
             Purge = Standard_True;
             break;
           }
@@ -762,7 +762,7 @@ static void RefEdgeInter(const TopoDS_Face&              F,
     //---------------------------------
 ////-----------------------------------------------------
     if(LV1.Extent() > 1) {
-      //cout << "IFV - RefEdgeInter: remove vertex" << endl;
+      //std::cout << "IFV - RefEdgeInter: remove vertex" << std::endl;
       Standard_Real dmin = RealLast();
       TopoDS_Vertex Vmin;
       for (it1LV1.Initialize(LV1); it1LV1.More(); it1LV1.Next()) {
@@ -1135,7 +1135,7 @@ void BRepOffset_Inter2d::ExtentEdge(const TopoDS_Edge& E,TopoDS_Edge& NE, const
                     f = Projector.LowerDistanceParameter();
 #ifdef OCCT_DEBUG
                   else
-                    cout<<"ProjectPointOnCurve not done"<<endl;
+                    std::cout<<"ProjectPointOnCurve not done"<<std::endl;
 #endif
                 }
               if (!Precision::IsInfinite(LastParOnPC))
@@ -1148,7 +1148,7 @@ void BRepOffset_Inter2d::ExtentEdge(const TopoDS_Edge& E,TopoDS_Edge& NE, const
                     l = Projector.LowerDistanceParameter();
 #ifdef OCCT_DEBUG
                   else
-                    cout<<"ProjectPointOnCurve not done"<<endl;
+                    std::cout<<"ProjectPointOnCurve not done"<<std::endl;
 #endif
                 }
             }
index e9e565d..834e635 100644 (file)
@@ -159,7 +159,7 @@ static void DEBVerticesControl (const TopTools_IndexedMapOfShape& NewEdges,
       for (it1LE.Initialize(AsDes->Descendant(NE)); it1LE.More(); it1LE.Next()) {
         if (AsDes->Ascendant(it1LE.Value()).Extent() < 3) {
           LVP.Append(it1LE.Value());
-          cout <<"Vertex on at least 3 edges."<<endl;
+          std::cout <<"Vertex on at least 3 edges."<<std::endl;
 #ifdef DRAW
           if (AffichInt2d) {
             sprintf (name,"VP_%d",NVP++);
@@ -168,7 +168,7 @@ static void DEBVerticesControl (const TopTools_IndexedMapOfShape& NewEdges,
 #endif
         }
         else if (AsDes->Ascendant(it1LE.Value()).Extent() > 3) {
-          cout <<"Vertex on more than 3 edges."<<endl;
+          std::cout <<"Vertex on more than 3 edges."<<std::endl;
 #ifdef DRAW
           if (AffichInt2d) {
             sprintf (name,"VM_%d",NVM++);
@@ -235,7 +235,7 @@ static void DEBVerticesControl (const TopTools_IndexedMapOfShape& NewEdges,
       j++;
     }
     i++;
-    cout <<" distmin between VP : "<<distmin<<endl;
+    std::cout <<" distmin between VP : "<<distmin<<std::endl;
   }
 }  
 #endif
@@ -953,14 +953,14 @@ void BRepOffset_MakeOffset::MakeThickSolid()
 #ifdef OCCT_DEBUG
       if(YaResult == 0)
         {
-        cout << "OffsetShape does not contain a FACES." << endl;
+        std::cout << "OffsetShape does not contain a FACES." << std::endl;
         }
 #endif
       }
 #ifdef OCCT_DEBUG
     else
       {
-      cout << "OffsetShape is null!" << endl;
+      std::cout << "OffsetShape is null!" << std::endl;
       }
 #endif
 
@@ -1089,7 +1089,7 @@ void BRepOffset_MakeOffset::BuildOffsetByInter()
 {
 #ifdef OCCT_DEBUG
   if ( ChronBuild) {
-    cout << " CONSTRUCTION OF OFFSETS :" << endl;
+    std::cout << " CONSTRUCTION OF OFFSETS :" << std::endl;
     Clock.Reset();
     Clock.Start();
   }
@@ -1445,7 +1445,7 @@ void BRepOffset_MakeOffset::BuildOffsetByArc()
 {
 #ifdef OCCT_DEBUG
   if ( ChronBuild) {
-    cout << " CONSTRUCTION OF OFFSETS :" << endl;
+    std::cout << " CONSTRUCTION OF OFFSETS :" << std::endl;
     Clock.Reset();
     Clock.Start();
   }
@@ -1654,7 +1654,7 @@ void BRepOffset_MakeOffset::SelfInter(TopTools_MapOfShape& /*Modif*/)
 {
 #ifdef OCCT_DEBUG
   if ( ChronBuild) {
-    cout << " AUTODEBOUCLAGE:" << endl;
+    std::cout << " AUTODEBOUCLAGE:" << std::endl;
     Clock.Reset();
     Clock.Start();
   }    
@@ -2290,7 +2290,7 @@ void BRepOffset_MakeOffset::Intersection3D(BRepOffset_Inter3d& Inter)
 {
 #ifdef OCCT_DEBUG
   if (ChronBuild) {
-    cout << " INTERSECTION 3D:" << endl;
+    std::cout << " INTERSECTION 3D:" << std::endl;
     Clock.Reset();
     Clock.Start();  
   }
@@ -2350,7 +2350,7 @@ void BRepOffset_MakeOffset::Intersection2D(const TopTools_IndexedMapOfShape& Mod
 {
 #ifdef OCCT_DEBUG
   if (ChronBuild) {
-    cout << " INTERSECTION 2D:" << endl;
+    std::cout << " INTERSECTION 2D:" << std::endl;
     Clock.Reset();
     Clock.Start();  
   }
@@ -2390,7 +2390,7 @@ void BRepOffset_MakeOffset::MakeLoops(TopTools_IndexedMapOfShape& Modif)
 {
 #ifdef OCCT_DEBUG
   if (ChronBuild) {
-     cout << " DEBOUCLAGE 2D:" << endl;
+     std::cout << " DEBOUCLAGE 2D:" << std::endl;
      Clock.Reset();
      Clock.Start(); 
   }
@@ -2438,7 +2438,7 @@ void BRepOffset_MakeOffset::MakeFaces(TopTools_IndexedMapOfShape& /*Modif*/)
 {
 #ifdef OCCT_DEBUG
   if (ChronBuild) {  
-    cout << " RECONSTRUCTION OF FACES:" << endl;
+    std::cout << " RECONSTRUCTION OF FACES:" << std::endl;
     Clock.Reset();
     Clock.Start();
   }
@@ -2946,7 +2946,7 @@ void BRepOffset_MakeOffset::MakeShells ()
 {
 #ifdef OCCT_DEBUG
   if (ChronBuild) {  
-    cout << " RECONSTRUCTION OF SHELLS:" << endl;
+    std::cout << " RECONSTRUCTION OF SHELLS:" << std::endl;
     Clock.Reset();
     Clock.Start();
   }
@@ -3200,7 +3200,7 @@ void BRepOffset_MakeOffset::EncodeRegularity ()
 {
 #ifdef OCCT_DEBUG
   if (ChronBuild) {  
-    cout << " CODING OF REGULARITIES:" << endl;
+    std::cout << " CODING OF REGULARITIES:" << std::endl;
     Clock.Reset();
     Clock.Start();
   }
@@ -3227,7 +3227,7 @@ void BRepOffset_MakeOffset::EncodeRegularity ()
     
     if (LofOF.Extent() != 2) {
 #ifdef OCCT_DEBUG_VERB
-    cout << " Edge shared by " << LofOF.Extent() << " Faces" << endl;
+    std::cout << " Edge shared by " << LofOF.Extent() << " Faces" << std::endl;
 #endif
       continue;
     }
index cda7b25..6157856 100644 (file)
@@ -871,7 +871,7 @@ void BuildSplitsOfFaces(const TopTools_ListOfShape& theLF,
     BRepAlgoAPI_Check aChecker(aCE);
     if (!aChecker.IsValid())
     {
-      cout << "Offset_i_c Error: set of edges to build faces is self-intersecting\n";
+      std::cout << "Offset_i_c Error: set of edges to build faces is self-intersecting\n";
     }
 #endif
     // build splits
index d6325b4..656ecc4 100644 (file)
@@ -941,7 +941,7 @@ void BRepOffset_Offset::Init(const TopoDS_Face&                  Face,
            P2d = C2d->Value(l); TheSurf->D0(P2d.X(),P2d.Y(),P2);         
            Standard_Real Tol = BRep_Tool::Tolerance(V1); 
            if (!P1.IsEqual(P2,Tol)) {
-             cout <<"BRepOffset_Offset : E degenerated -> OE not degenerated"<<endl; 
+             std::cout <<"BRepOffset_Offset : E degenerated -> OE not degenerated"<<std::endl; 
            }
 #endif   
             */
@@ -1241,7 +1241,7 @@ void BRepOffset_Offset::Init(const TopoDS_Edge&     Path,
 #ifdef OCCT_DEBUG
     // si firstedge n est pas nul, il faut que les vertex soient partages
     if ( !VVf.IsSame(V1f) && !VVf.IsSame(V2f) ) {
-      cout << "Attention Vertex non partages !!!!!!" << endl;
+      std::cout << "Attention Vertex non partages !!!!!!" << std::endl;
     }    
 #endif
     if ( !VVf.IsSame(V1f) && !VVf.IsSame(V2f) ) {
@@ -1305,7 +1305,7 @@ void BRepOffset_Offset::Init(const TopoDS_Edge&     Path,
 #ifdef OCCT_DEBUG
       // si lastedge n est pas nul, il faut que les vertex soient partages
       if ( !VVf.IsSame(V1l) && !VVf.IsSame(V2l) ) {
-       cout << "Attention Vertex non partages !!!!!!" << endl;
+       std::cout << "Attention Vertex non partages !!!!!!" << std::endl;
       }    
 #endif
       if ( !VVf.IsSame(V1l) && !VVf.IsSame(V2l) ) {
index 8551979..b04f5fb 100644 (file)
@@ -1754,7 +1754,7 @@ void BRepOffset_Tool::Inter3D(const TopoDS_Face& F1,
         BRepLib::SameParameter(anEdge, aSameParTol, Standard_True);
         Standard_Real EdgeTol = BRep_Tool::Tolerance(anEdge);
 #ifdef OCCT_DEBUG
-        cout<<"Tolerance of glued E =      "<<EdgeTol<<endl;
+        std::cout<<"Tolerance of glued E =      "<<EdgeTol<<std::endl;
 #endif
         if (EdgeTol > 1.e-2)
           continue;
@@ -1764,7 +1764,7 @@ void BRepOffset_Tool::Inter3D(const TopoDS_Face& F1,
           ReconstructPCurves(anEdge);
           BRepLib::SameParameter(anEdge, aSameParTol, Standard_True);
 #ifdef OCCT_DEBUG
-          cout<<"After projection tol of E = "<<BRep_Tool::Tolerance(anEdge)<<endl;
+          std::cout<<"After projection tol of E = "<<BRep_Tool::Tolerance(anEdge)<<std::endl;
 #endif
         }
         
@@ -2087,16 +2087,16 @@ static Standard_Boolean  ProjectVertexOnEdge(TopoDS_Vertex&     V,
   if (AffichExtent) {
     Standard_Real Dist = P.Distance(C.Value(U));
     if (Dist > TolConf) {
-      cout << " ProjectVertexOnEdge :distance vertex edge :"<<Dist<<endl;
+      std::cout << " ProjectVertexOnEdge :distance vertex edge :"<<Dist<<std::endl;
     }
     if (U < f - Precision::Confusion() || 
        U > l + Precision::Confusion()) {
-      cout << " ProjectVertexOnEdge : hors borne :"<<endl;
-      cout << " f = "<<f<<" l ="<<l<< " U ="<<U<<endl;
+      std::cout << " ProjectVertexOnEdge : hors borne :"<<std::endl;
+      std::cout << " f = "<<f<<" l ="<<l<< " U ="<<U<<std::endl;
     }
   }
   if (!found) {
-    cout <<"BRepOffset_Tool::ProjectVertexOnEdge Parameter no found"<<endl;
+    std::cout <<"BRepOffset_Tool::ProjectVertexOnEdge Parameter no found"<<std::endl;
     if (Abs(f) < Precision::Infinite() && 
        Abs(l) < Precision::Infinite()) {
 #ifdef DRAW
@@ -2187,7 +2187,7 @@ void BRepOffset_Tool::Inter2d (const TopoDS_Face&    F,
 //                                                 F,fl2[0],fl2[1]);
 #ifdef OCCT_DEBUG
        if (C1.IsNull() || C2.IsNull()) {
-         cout <<"Inter2d : Pas de pcurve"<<endl;
+         std::cout <<"Inter2d : Pas de pcurve"<<std::endl;
 #ifdef DRAW
          DBRep::Set("E1",E1); 
          DBRep::Set("E2",E2);
@@ -2304,11 +2304,11 @@ void BRepOffset_Tool::Inter2d (const TopoDS_Face&    F,
            Standard_Real U2on1 = IntP1.ParamOnSecond();
            Standard_Real U2on2 = IntP2.ParamOnSecond();
 #ifdef OCCT_DEBUG
-           cout << " BRepOffset_Tool::Inter2d SEGMENT d intersection" << endl;
-           cout << "     ===> Parametres sur Curve1 : ";
-           cout << U1on1 << " " << U1on2 << endl;
-           cout << "     ===> Parametres sur Curve2 : ";
-           cout << U2on1 << " " << U2on2 << endl;
+           std::cout << " BRepOffset_Tool::Inter2d SEGMENT d intersection" << std::endl;
+           std::cout << "     ===> Parametres sur Curve1 : ";
+           std::cout << U1on1 << " " << U1on2 << std::endl;
+           std::cout << "     ===> Parametres sur Curve2 : ";
+           std::cout << U2on1 << " " << U2on2 << std::endl;
 #endif
            U1 = (U1on1 + U1on2)/2.;
            U2 = (U2on1 + U2on2)/2.;
@@ -2363,7 +2363,7 @@ void BRepOffset_Tool::Inter2d (const TopoDS_Face&    F,
 
 #ifdef OCCT_DEBUG
   if (!YaSol) {
-    cout <<"Inter2d : Pas de solution"<<endl;
+    std::cout <<"Inter2d : Pas de solution"<<std::endl;
 #ifdef DRAW
     DBRep::Set("E1",E1); 
     DBRep::Set("E2",E2);
index 419912e..df157f5 100644 (file)
@@ -356,9 +356,9 @@ void BRepOffsetAPI_MakeOffset::Perform(const Standard_Real Offset,
   }
   catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    cout<<"An exception was caught in BRepOffsetAPI_MakeOffset::Perform : ";
-    anException.Print(cout); 
-    cout<<endl;
+    std::cout<<"An exception was caught in BRepOffsetAPI_MakeOffset::Perform : ";
+    anException.Print(std::cout); 
+    std::cout<<std::endl;
 #endif
     (void)anException;
     NotDone();
index 9bb864c..305c6ff 100644 (file)
@@ -989,7 +989,7 @@ void BRepOffsetAPI_MiddlePath::Build()
       Interpol.Perform();
       if (!Interpol.IsDone())
       {
-        cout<<endl<<"Interpolation failed"<<endl;
+        std::cout<<std::endl<<"Interpolation failed"<<std::endl;
       }
       Handle(Geom_Curve) InterCurve (Interpol.Curve());
       MidEdges(i) = BRepLib_MakeEdge(InterCurve);
index 289e12f..c1e8da2 100644 (file)
@@ -544,7 +544,7 @@ Standard_Boolean  BRepSweep_Translation::HasShape
 //     const Handle(BRep_CurveRepresentation)& cr = itcr.Value();
 //     if (cr->IsCurveOnSurface() && 
 //         cr->IsCurveOnClosedSurface() )      {
-//       cout<<"sewing edge"<<endl;
+//       std::cout<<"sewing edge"<<std::endl;
 //       return Standard_False;
 //     }
 //     itcr.Next();
index c128542..eb913e1 100644 (file)
@@ -222,7 +222,7 @@ static Standard_Integer deform(Draw_Interpretor& di,Standard_Integer n,const cha
   //    TopoDS_Shape S = DBRep::Get(a[i]);
   TopoDS_Shape S = DBRep::Get(a[2]);    
   if (S.IsNull()) {
-    //cout << a[2] << " is not a valid shape" << endl;
+    //std::cout << a[2] << " is not a valid shape" << std::endl;
     di << a[2] << " is not a valid shape\n";
   }
   else {
@@ -268,9 +268,9 @@ static Standard_Integer tcopy(Draw_Interpretor& di,Standard_Integer n,const char
   }
 
   if (n < 3 || (n - iFirst) % 2) {
-    cout << "Use: " << a[0] << " [-n(ogeom)] [-m(esh)] shape1 copy1 [shape2 copy2 [...]]" << endl;
-    cout << "Option -n forbids copying of geometry (it will be shared)" << endl;
-    cout << "Option -m forces copying of mesh (disabled by default)" << endl;
+    std::cout << "Use: " << a[0] << " [-n(ogeom)] [-m(esh)] shape1 copy1 [shape2 copy2 [...]]" << std::endl;
+    std::cout << "Option -n forbids copying of geometry (it will be shared)" << std::endl;
+    std::cout << "Option -m forces copying of mesh (disabled by default)" << std::endl;
     return 1;
   }
 
@@ -297,7 +297,7 @@ static Standard_Integer nurbsconvert(Draw_Interpretor& di,Standard_Integer n,con
   for (Standard_Integer i=0; i<(n-1)/2; i++) {
     TopoDS_Shape S = DBRep::Get(a[2*i+2]);
     if (S.IsNull()) {
-      //cout << a[2*i+2] << " is not a valid shape" << endl;
+      //std::cout << a[2*i+2] << " is not a valid shape" << std::endl;
       di << a[2*i+2] << " is not a valid shape\n";
     }
     else {
@@ -899,7 +899,7 @@ static Standard_Integer findplane(Draw_Interpretor& di,Standard_Integer n,const
   BRepBuilderAPI_FindPlane a_plane_finder(S,
                                   tolerance) ;
   if (a_plane_finder.Found()) {
-    //cout << " a plane is found "   ;
+    //std::cout << " a plane is found "   ;
     di << " a plane is found \n";
     const Handle(Geom_Geometry)& aSurf = a_plane_finder.Plane(); // to avoid ambiguity
     DrawTrSurf::Set(a[2],aSurf) ;
@@ -916,7 +916,7 @@ static Standard_Integer precision(Draw_Interpretor& di,Standard_Integer n,const
   n--;
 
   if ( n == 0) {
-    //cout << " Current Precision = " << BRepBuilderAPI::Precision() << endl;
+    //std::cout << " Current Precision = " << BRepBuilderAPI::Precision() << std::endl;
     di << " Current Precision = " << BRepBuilderAPI::Precision() << "\n";
   }
   else {
@@ -941,7 +941,7 @@ static Standard_Integer reperageshape(Draw_Interpretor& di, Standard_Integer nar
   const char *id1 = a[1];
   TopoDS_Shape TheShape1 = DBRep::Get(id1);
   
-  //cout << "Pick positions with button "<<endl;
+  //std::cout << "Pick positions with button "<<std::endl;
   di << "Pick positions with button \n";
   Standard_Integer id,X,Y,b;
   gp_Trsf T;
@@ -963,7 +963,7 @@ static Standard_Integer reperageshape(Draw_Interpretor& di, Standard_Integer nar
   
   Inter.Perform(Axe,-RealLast(),RealLast());
   
-  //cout<<"\n --> ";
+  //std::cout<<"\n --> ";
   di <<"\n --> ";
   if(Inter.NbPnt()) { 
     for(Standard_Integer i=1; i<=Inter.NbPnt(); i++) { 
@@ -974,7 +974,7 @@ static Standard_Integer reperageshape(Draw_Interpretor& di, Standard_Integer nar
          ExF.Next(),numface++) { 
        TopoDS_Face Face=TopoDS::Face(ExF.Current());
        if(Face.IsEqual(Inter.Face(i))) { 
-         //cout<<" "<<a[1]<<"_"<<numface;
+         //std::cout<<" "<<a[1]<<"_"<<numface;
          di<<" "<<a[1]<<"_"<<numface;
          continue;       
        }
@@ -982,7 +982,7 @@ static Standard_Integer reperageshape(Draw_Interpretor& di, Standard_Integer nar
       const gp_Pnt& P = Inter.Pnt(i);
       Standard_Real PMin = Inter.WParameter(i);
       if(details) { 
-       //cout<<" w:"<<PMin<<endl;
+       //std::cout<<" w:"<<PMin<<std::endl;
        di<<" w:"<<PMin<< "\n";
       }
       if(Inter.Transition(i) == IntCurveSurface_In) { 
@@ -1009,7 +1009,7 @@ static Standard_Integer reperageshape(Draw_Interpretor& di, Standard_Integer nar
       }
     }
   }
-  //cout<<endl;
+  //std::cout<<std::endl;
   di << "\n";
   return(0);
 }
@@ -1071,10 +1071,10 @@ static Standard_Integer maxtolerance(Draw_Interpretor& theCommands,
   sss << "\n## Tolerances on the shape " << a[1] << "  (nbFaces:" << nbF
       << "  nbEdges:" << nbE << " nbVtx:" << nbV << ")\n" ;
   sss.precision(5);
-  sss.setf(ios::scientific);
-  if(TmF<=TMF) sss << "\n    Face   : Min " << setw(8) << TmF <<"    Max  " << setw(8) << TMF << " \n ";
-  if(TmE<=TME) sss << "\n    Edge   : Min " << setw(8) << TmE <<"    Max  " << setw(8) << TME << " \n ";
-  if(TmV<=TMV) sss << "\n    Vertex : Min " << setw(8) << TmV <<"    Max  " << setw(8) << TMV << " \n ";
+  sss.setf(std::ios::scientific);
+  if(TmF<=TMF) sss << "\n    Face   : Min " << std::setw(8) << TmF <<"    Max  " << std::setw(8) << TMF << " \n ";
+  if(TmE<=TME) sss << "\n    Edge   : Min " << std::setw(8) << TmE <<"    Max  " << std::setw(8) << TME << " \n ";
+  if(TmV<=TMV) sss << "\n    Vertex : Min " << std::setw(8) << TmV <<"    Max  " << std::setw(8) << TMV << " \n ";
   theCommands << sss;
 
   return 0;
@@ -1082,7 +1082,7 @@ static Standard_Integer maxtolerance(Draw_Interpretor& theCommands,
 
 
 static Standard_Integer vecdc(Draw_Interpretor& di,Standard_Integer ,const char** ) {
-  //cout << "Pick positions with button "<<endl;
+  //std::cout << "Pick positions with button "<<std::endl;
   di << "Pick positions with button \n";
 
   Standard_Integer id,X,Y,b;
@@ -1133,16 +1133,16 @@ static Standard_Integer vecdc(Draw_Interpretor& di,Standard_Integer ,const char*
   Handle(Draw_Segment3D) d = new Draw_Segment3D(P1,PP1,Draw_blanc);
   dout << d;
   dout.Flush();
-  //cout<<"\nttran   "<<PP1.X()-P1.X()<<" "<<PP1.Y()-P1.Y()<<" "<<PP1.Z()-P1.Z()<<endl;
+  //std::cout<<"\nttran   "<<PP1.X()-P1.X()<<" "<<PP1.Y()-P1.Y()<<" "<<PP1.Z()-P1.Z()<<std::endl;
   di <<"\nttran   "<<PP1.X()-P1.X()<<" "<<PP1.Y()-P1.Y()<<" "<<PP1.Z()-P1.Z()<< "\n";
 
   static Standard_Integer nboxvecdp=0;
-  //cout<<"\nbox  b"<<++nboxvecdp<<" "<<Min(P1.X(),PP1.X())<<" "<<Min(P1.Y(),PP1.Y())<<" "<<Min(PP1.Z(),P1.Z());
-  //cout<<"  "<<Abs(PP1.X()-P1.X())<<" "<<Abs(PP1.Y()-P1.Y())<<" "<<Abs(PP1.Z()-P1.Z())<<endl;
+  //std::cout<<"\nbox  b"<<++nboxvecdp<<" "<<Min(P1.X(),PP1.X())<<" "<<Min(P1.Y(),PP1.Y())<<" "<<Min(PP1.Z(),P1.Z());
+  //std::cout<<"  "<<Abs(PP1.X()-P1.X())<<" "<<Abs(PP1.Y()-P1.Y())<<" "<<Abs(PP1.Z()-P1.Z())<<std::endl;
 
-  //cout<<"\nDistance :"<<sqrt( (PP1.X()-P1.X())*(PP1.X()-P1.X())
+  //std::cout<<"\nDistance :"<<sqrt( (PP1.X()-P1.X())*(PP1.X()-P1.X())
        //                   +(PP1.Y()-P1.Y())*(PP1.Y()-P1.Y())
-       //                   +(PP1.Z()-P1.Z())*(PP1.Z()-P1.Z()))<<endl;
+       //                   +(PP1.Z()-P1.Z())*(PP1.Z()-P1.Z()))<<std::endl;
 
   di <<"\nbox  b"<<++nboxvecdp<<" "<<Min(P1.X(),PP1.X())<<" "<<Min(P1.Y(),PP1.Y())<<" "<<Min(PP1.Z(),P1.Z());
   di <<"  "<<Abs(PP1.X()-P1.X())<<" "<<Abs(PP1.Y()-P1.Y())<<" "<<Abs(PP1.Z()-P1.Z())<< "\n";
@@ -1220,7 +1220,7 @@ static Standard_Integer vecdc(Draw_Interpretor& di,Standard_Integer ,const char*
   TopTools_ListOfShape Wire;
   Standard_Boolean IsWire=OrtProj.BuildWire(Wire);
   if (IsWire) {
-    //cout << " BuildWire OK " << endl;
+    //std::cout << " BuildWire OK " << std::endl;
     di << " BuildWire OK \n";
   }
   DBRep::Set(a[1], OrtProj.Shape());
index 0d317e8..63a3c2a 100644 (file)
@@ -76,7 +76,7 @@ static Standard_Integer chamf_throat_with_penetration(Draw_Interpretor& di,
   // compute the chamfer and display the result
   if (aMCh.NbContours() == 0 )
   {
-    //cout<<"No suitable edges to chamfer"<<endl;
+    //std::cout<<"No suitable edges to chamfer"<<std::endl;
     di<<"No suitable edges to chamfer\n";
     return 1;
   }
@@ -87,7 +87,7 @@ static Standard_Integer chamf_throat_with_penetration(Draw_Interpretor& di,
     return 0;
   }
   else {
-    //cout<<"compute of chamfer failed"<<endl;
+    //std::cout<<"compute of chamfer failed"<<std::endl;
     di<<"compute of chamfer failed\n";
     return 1;
   }
@@ -132,7 +132,7 @@ static Standard_Integer chamf_throat(Draw_Interpretor& di,
   // compute the chamfer and display the result
   if (aMCh.NbContours() == 0 )
   {
-    //cout<<"No suitable edges to chamfer"<<endl;
+    //std::cout<<"No suitable edges to chamfer"<<std::endl;
     di<<"No suitable edges to chamfer\n";
     return 1;
   }
@@ -143,7 +143,7 @@ static Standard_Integer chamf_throat(Draw_Interpretor& di,
     return 0;
   }
   else {
-    //cout<<"compute of chamfer failed"<<endl;
+    //std::cout<<"compute of chamfer failed"<<std::endl;
     di<<"compute of chamfer failed\n";
     return 1;
   }
@@ -235,7 +235,7 @@ static Standard_Integer chamfer(Draw_Interpretor& di,
     // compute the chamfer and display the result
     if (aMCh.NbContours() == 0 )
       {
-       //cout<<"No suitable edges to chamfer"<<endl;
+       //std::cout<<"No suitable edges to chamfer"<<std::endl;
        di<<"No suitable edges to chamfer\n";
        return 1;
       }
@@ -246,7 +246,7 @@ static Standard_Integer chamfer(Draw_Interpretor& di,
       return 0;
     }
     else {
-      //cout<<"compute of chamfer failed"<<endl;
+      //std::cout<<"compute of chamfer failed"<<std::endl;
       di<<"compute of chamfer failed\n";
       return 1;
     }
index 7d6969e..0f8e448 100644 (file)
@@ -257,7 +257,7 @@ static Standard_Integer computetolerance(Draw_Interpretor& di,
                                         Standard_Integer narg, const char** a)
 {
   if (narg < 2) {
-    //cout << "Usage: computetolerance shape" << endl;
+    //std::cout << "Usage: computetolerance shape" << std::endl;
     di << "Usage: computetolerance shape\n";
     return 1;
   }
@@ -266,7 +266,7 @@ static Standard_Integer computetolerance(Draw_Interpretor& di,
   if (S.ShapeType() == TopAbs_EDGE) {
     BRepCheck_Edge bce(TopoDS::Edge(S));
     tol=bce.Tolerance();
-    //cout<< "Tolerance de " << (void*) &(*S.TShape()) << " : " << tol << endl;
+    //std::cout<< "Tolerance de " << (void*) &(*S.TShape()) << " : " << tol << std::endl;
     Standard_SStream aSStream1;
     aSStream1<< "Tolerance de " << (void*) &(*S.TShape()) << " : " << tol << "\n";
     di << aSStream1;
@@ -278,13 +278,13 @@ static Standard_Integer computetolerance(Draw_Interpretor& di,
       if (theEdges.Add(exp.Current())) {
        BRepCheck_Edge bce(TopoDS::Edge(exp.Current()));
        tol=bce.Tolerance();
-       //cout<< "Tolerance de " << (void*) &(*exp.Current().TShape()) << " : " << tol << "\n";
+       //std::cout<< "Tolerance de " << (void*) &(*exp.Current().TShape()) << " : " << tol << "\n";
        Standard_SStream aSStream2;
        aSStream2<< "Tolerance de " << (void*) &(*exp.Current().TShape()) << " : " << tol << "\n";
        di << aSStream2;
       }
     }
-    //cout << endl;
+    //std::cout << std::endl;
     di << "\n";
   }
   return 0;
@@ -323,7 +323,7 @@ static Standard_Integer checksection(Draw_Interpretor& di,
     if (!theVertices.Add(exp.Current())) 
       theVertices.Remove(exp.Current());
   }
-  //cout << " nb alone Vertices : " << theVertices.Extent() << endl;
+  //std::cout << " nb alone Vertices : " << theVertices.Extent() << std::endl;
   di << " nb alone Vertices : " << theVertices.Extent() << "\n";
 
   if (aCompareValue >= 0)
@@ -346,10 +346,10 @@ static Standard_Integer checksection(Draw_Interpretor& di,
     ipp++;
     Sprintf(Name,"alone_%d",ipp);
     DBRep::Set(Name, itvx.Key());
-    //cout << Name << " " ;
+    //std::cout << Name << " " ;
     di << Name << " " ;
   }
-  //cout << endl;
+  //std::cout << std::endl;
   di << "\n";
   return 0;
 }
@@ -367,13 +367,13 @@ static Standard_Integer checkdiff(Draw_Interpretor& di,
     if (narg==2) {
       Standard_Integer bcrtrace=Draw::Atoi(a[narg-1]);
       bcrtrace=BRepCheck_Trace(bcrtrace);
-      //cout << "BRepCheck_Trace : " << bcrtrace << endl;
+      //std::cout << "BRepCheck_Trace : " << bcrtrace << std::endl;
       di << "BRepCheck_Trace : " << bcrtrace << "\n";
-      //cout << syntaxe << endl;
+      //std::cout << syntaxe << std::endl;
       di << syntaxe << "\n";
       return 0;
     }
-    //cout << syntaxe << endl;
+    //std::cout << syntaxe << std::endl;
     di << syntaxe << "\n";
     return 1;
   }
@@ -384,7 +384,7 @@ static Standard_Integer checkdiff(Draw_Interpretor& di,
   TopoDS_Shape resu = DBRep::Get(a[narg-1]);
   if (resu.IsNull()) {
     if (narg < 4) {
-      //cout << syntaxe << endl;
+      //std::cout << syntaxe << std::endl;
       di << syntaxe << "\n";
       return 1;
     }
@@ -393,7 +393,7 @@ static Standard_Integer checkdiff(Draw_Interpretor& di,
     lastArg=narg-3;
     if (resu.IsNull()) {
       if (narg < 5) {
-       //cout << syntaxe << endl;
+       //std::cout << syntaxe << std::endl;
        di << syntaxe << "\n";
        return 1;
       }
@@ -402,7 +402,7 @@ static Standard_Integer checkdiff(Draw_Interpretor& di,
       resu = DBRep::Get(a[narg-3]);
       lastArg=narg-4;
       if (resu.IsNull()) {
-       //cout << syntaxe << endl;
+       //std::cout << syntaxe << std::endl;
        di << syntaxe << "\n";
        return 1;
       }
@@ -415,10 +415,10 @@ static Standard_Integer checkdiff(Draw_Interpretor& di,
   }
 
   if (BRepAlgo::IsValid(lesArgs, resu, closedSolid, geomCtrl)) {
-    //cout << "Difference is Valid." << endl;
+    //std::cout << "Difference is Valid." << std::endl;
     di << "Difference is Valid.\n";
   } else {
-    //cout << "error : Difference is Not Valid !" << endl;
+    //std::cout << "error : Difference is Not Valid !" << std::endl;
     di << "error : Difference is Not Valid !\n";
   }
 
@@ -444,7 +444,7 @@ static Standard_Integer checkdiff(Draw_Interpretor& di,
 
 //   TopoDS_Shape S = DBRep::Get(a[1]);
 //   if (S.IsNull()) {
-//     cout<<"not a topological shape"<<endl;
+//     std::cout<<"not a topological shape"<<std::endl;
 //     return 1;
 //   }
 
@@ -464,11 +464,11 @@ static Standard_Integer checkdiff(Draw_Interpretor& di,
 //     theMap.Clear();
 //     if (doprint) {
 //       Print(cout,ana,S);
-//       cout<<"\n";
+//       std::cout<<"\n";
 //       theMap.Clear();
 //       if (nbfaulty !=0)
-//     cout<<"Faulty shapes in variables "<<checkfaultyname<<"1 to "<<checkfaultyname<<nbfaulty<<" \n";
-//       cout<<endl;
+//     std::cout<<"Faulty shapes in variables "<<checkfaultyname<<"1 to "<<checkfaultyname<<nbfaulty<<" \n";
+//       std::cout<<std::endl;
 //     }
 //     else {
 //       theCommands<<"This shape has faulty shapes";
@@ -496,15 +496,15 @@ void ContextualDump(Draw_Interpretor& theCommands,
   Standard_SStream aSStream;
   Print(aSStream, theAna, theShape);
   theCommands << aSStream;
-  //cout<<"\n";
+  //std::cout<<"\n";
   theCommands<<"\n";
   theMap.Clear();
 
   if (nbfaulty !=0)
     theCommands<<"Faulty shapes in variables "<<checkfaultyname<<"1 to "<<checkfaultyname<<nbfaulty<<" \n";
-    //cout<<"Faulty shapes in variables "<<checkfaultyname<<"1 to "<<checkfaultyname<<nbfaulty<<" \n";
+    //std::cout<<"Faulty shapes in variables "<<checkfaultyname<<"1 to "<<checkfaultyname<<nbfaulty<<" \n";
 
-  //cout<<endl;
+  //std::cout<<std::endl;
   theCommands<<"\n";
 }
 
@@ -638,10 +638,10 @@ void StructuralDump(Draw_Interpretor& theCommands,
                    const TopoDS_Shape       &theShape)
 {
   Standard_Integer i;
-  //cout << "StructuralDump" << endl;
-  //cout << " -- The Shape " << ShName << " has problems :"<<endl;
-  //cout<<"  Check                                    Count"<<endl;
-  //cout<<" ------------------------------------------------"<<endl;
+  //std::cout << "StructuralDump" << std::endl;
+  //std::cout << " -- The Shape " << ShName << " has problems :"<<std::endl;
+  //std::cout<<"  Check                                    Count"<<std::endl;
+  //std::cout<<" ------------------------------------------------"<<std::endl;
   theCommands << " -- The Shape " << ShName << " has problems :\n";
   theCommands<<"  Check                                    Count\n";
   theCommands<<" ------------------------------------------------\n";
@@ -835,7 +835,7 @@ void StructuralDump(Draw_Interpretor& theCommands,
     char aName[20];
     Sprintf(aName,"%s_v",Pref);
     DBRep::Set(aName,comp);
-    //cout<<"VERTEX    : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
+    //std::cout<<"VERTEX       : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<std::endl;
     if (nb > 9)
       theCommands<<"VERTEX     : "<<nb<<" Items -> compound named "<<aName<<"\n";
     else
@@ -850,7 +850,7 @@ void StructuralDump(Draw_Interpretor& theCommands,
     char aName[20];
     Sprintf(aName,"%s_e",Pref);
     DBRep::Set(aName,comp);
-    //cout<<"EDGE      : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
+    //std::cout<<"EDGE : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<std::endl;
     if (nb > 9)
       theCommands<<"EDGE       : "<<nb<<" Items -> compound named "<<aName<<"\n";
     else
@@ -865,7 +865,7 @@ void StructuralDump(Draw_Interpretor& theCommands,
     char aName[20];
     Sprintf(aName,"%s_w",Pref);
     DBRep::Set(aName,comp);
-    //cout<<"WIRE      : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
+    //std::cout<<"WIRE : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<std::endl;
     if (nb > 9)
       theCommands<<"WIRE       : "<<nb<<" Items -> compound named "<<aName<<"\n";
     else
@@ -880,7 +880,7 @@ void StructuralDump(Draw_Interpretor& theCommands,
     char aName[20];
     Sprintf(aName,"%s_f",Pref);
     DBRep::Set(aName,comp);
-    //cout<<"FACE      : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
+    //std::cout<<"FACE : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<std::endl;
     if (nb > 9)
       theCommands<<"FACE       : "<<nb<<" Items -> compound named "<<aName<<"\n";
     else
@@ -895,7 +895,7 @@ void StructuralDump(Draw_Interpretor& theCommands,
     char aName[20];
     Sprintf(aName,"%s_s",Pref);
     DBRep::Set(aName,comp);
-    //cout<<"SHELL     : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
+    //std::cout<<"SHELL        : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<std::endl;
     if (nb > 9)
       theCommands<<"SHELL      : "<<nb<<" Items -> compound named "<<aName<<"\n";
     else
@@ -910,7 +910,7 @@ void StructuralDump(Draw_Interpretor& theCommands,
     char aName[20];
     Sprintf(aName,"%s_o",Pref);
     DBRep::Set(aName,comp);
-    //cout<<"SOLID     : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<endl;
+    //std::cout<<"SOLID        : "<<(nb > 9 ? "" : " ")<<nb<<" Items -> compound named "<<aName<<std::endl;
     if (nb > 9)
       theCommands<<"SOLID      : "<<nb<<" Items -> compound named "<<aName<<"\n";
     else
@@ -927,15 +927,15 @@ static Standard_Integer checkshape(Draw_Interpretor& theCommands,
                                   Standard_Integer narg, const char** a)
 {
   if (narg == 1) {
-    //cout << endl;
-    //cout << "Usage : checkshape [-top] shape [result] [-short]" << endl;
-    //cout << endl;
-    //cout << "Where :" << endl;
-    //cout << "   -top   - check topology only." << endl;
-    //cout << "   shape  - the name of the shape to test." << endl;
-    //cout << "   result - the prefix of the output shape names. If it is used, structural" << endl;
-    //cout << "            output style will be used. Otherwise - contextual one." << endl;
-    //cout << "   -short - short description of check." << endl;
+    //std::cout << std::endl;
+    //std::cout << "Usage : checkshape [-top] shape [result] [-short]" << std::endl;
+    //std::cout << std::endl;
+    //std::cout << "Where :" << std::endl;
+    //std::cout << "   -top   - check topology only." << std::endl;
+    //std::cout << "   shape  - the name of the shape to test." << std::endl;
+    //std::cout << "   result - the prefix of the output shape names. If it is used, structural" << std::endl;
+    //std::cout << "            output style will be used. Otherwise - contextual one." << std::endl;
+    //std::cout << "   -short - short description of check." << std::endl;
     theCommands << "\n";
     theCommands << "Usage : checkshape [-top] shape [result] [-short]\n";
     theCommands << "\n";
@@ -950,8 +950,8 @@ static Standard_Integer checkshape(Draw_Interpretor& theCommands,
   }
 
   if (narg > 5) {
-    //cout << "Invalid number of args!!!" << endl;
-    //cout << "No args to have help." << endl;
+    //std::cout << "Invalid number of args!!!" << std::endl;
+    //std::cout << "No args to have help." << std::endl;
     theCommands << "Invalid number of args!!!\n";
     theCommands << "No args to have help.\n";
 
@@ -967,8 +967,8 @@ static Standard_Integer checkshape(Draw_Interpretor& theCommands,
   }
 
   if (aCurInd > narg - 1) {
-    //cout << "Invalid number of args!!!" << endl;
-    //cout << "No args to have help." << endl;
+    //std::cout << "Invalid number of args!!!" << std::endl;
+    //std::cout << "No args to have help." << std::endl;
     theCommands << "Invalid number of args!!!\n";
     theCommands << "No args to have help.\n";
 
@@ -979,7 +979,7 @@ static Standard_Integer checkshape(Draw_Interpretor& theCommands,
   TopoDS_Shape     aShape     = DBRep::Get(aShapeName);
 
   if (aShape.IsNull()) {
-    //cout << a[aCurInd] << " is not a topological shape!!!" << endl;
+    //std::cout << a[aCurInd] << " is not a topological shape!!!" << std::endl;
     theCommands << a[aCurInd] << " is not a topological shape!!!\n";
 
     return 1;
@@ -997,8 +997,8 @@ static Standard_Integer checkshape(Draw_Interpretor& theCommands,
   }
 
   if (aCurInd < aBackInd - 1) {
-    //cout << "Invalid number of args!!!" << endl;
-    //cout << "No args to have help." << endl;
+    //std::cout << "Invalid number of args!!!" << std::endl;
+    //std::cout << "No args to have help." << std::endl;
     theCommands << "Invalid number of args!!!\n";
     theCommands << "No args to have help.\n";
 
@@ -1170,12 +1170,12 @@ static Standard_Integer shapeG1continuity (Draw_Interpretor& di, Standard_Intege
      }
    while ((nb<nbeval)&& isdone );
 
-  //if (!isdone)  { cout<<" Problem in computation "<<endl; return 1;}
+  //if (!isdone)  { std::cout<<" Problem in computation "<<std::endl; return 1;}
   //if (ISG1) 
-  //    {cout<<" the continuity is G1 "<<endl;}
-  //else { cout<<" the continuity is not G1  "<<endl;}
-  //cout<<"MaxG0Value :"<< MaxG0Value << endl;
-  //cout<<"MaxG1Angle:"<<  MaxG1Angle << endl;
+  //    {std::cout<<" the continuity is G1 "<<std::endl;}
+  //else { std::cout<<" the continuity is not G1  "<<std::endl;}
+  //std::cout<<"MaxG0Value :"<< MaxG0Value << std::endl;
+  //std::cout<<"MaxG1Angle:"<<  MaxG1Angle << std::endl;
   if (!isdone)  { di<<" Problem in computation \n"; return 1;}
   if (ISG1) 
       {di<<" the continuity is G1 \n";}
@@ -1293,12 +1293,12 @@ static Standard_Integer shapeG0continuity (Draw_Interpretor& di, Standard_Intege
      }
    while ((nb<nbeval)&& isdone );
 
-  //f (!isdone)  { cout<<" Problem in computation "<<endl; return 1;}
+  //f (!isdone)  { std::cout<<" Problem in computation "<<std::endl; return 1;}
   //if (ISG0) 
-  //    {cout<<" the continuity is G0 "<<endl;}
+  //    {std::cout<<" the continuity is G0 "<<std::endl;}
 
-  //else { cout<<" the continuity is not G0  "<<endl;}
-  //cout<<"MaxG0Value :"<< MaxG0Value << endl;
+  //else { std::cout<<" the continuity is not G0  "<<std::endl;}
+  //std::cout<<"MaxG0Value :"<< MaxG0Value << std::endl;
   if (!isdone)  { di<<" Problem in computation \n"; return 1;}
   if (ISG0) 
       {di<<" the continuity is G0 \n";}
@@ -1432,13 +1432,13 @@ static Standard_Integer shapeG2continuity (Draw_Interpretor& di, Standard_Intege
      }
    while ((nb<nbeval)&& isdone );
 
-  //if (!isdone)  { cout<<" Problem in computation "<<endl; return 1;}
+  //if (!isdone)  { std::cout<<" Problem in computation "<<std::endl; return 1;}
   //if (ISG2) 
-  //cout<<" the continuity is G2 "<<endl;
-  //else cout<<" the continuity is not G2  "<<endl;
-  //cout<<"MaxG0Value :"<< MaxG0Value << endl;
-  //cout<<"MaxG1Angle:"<<  MaxG1Angle << endl;
-  //cout<<"MaxG2Curvature:"<<MaxG2Curvature<<endl;
+  //std::cout<<" the continuity is G2 "<<std::endl;
+  //else std::cout<<" the continuity is not G2  "<<std::endl;
+  //std::cout<<"MaxG0Value :"<< MaxG0Value << std::endl;
+  //std::cout<<"MaxG1Angle:"<<  MaxG1Angle << std::endl;
+  //std::cout<<"MaxG2Curvature:"<<MaxG2Curvature<<std::endl;
   if (!isdone)  { di<<" Problem in computation \n"; return 1;}
   if (ISG2) 
   di<<" the continuity is G2 \n";
@@ -1460,7 +1460,7 @@ static Standard_Integer clintedge(Draw_Interpretor& di,
   char newname[255];
 
   if (narg < 2) {
-    //cout << "Usage: clintedge shape" << endl;
+    //std::cout << "Usage: clintedge shape" << std::endl;
     di << "Usage: clintedge shape\n";
     return 1;
   }
@@ -1471,7 +1471,7 @@ static Standard_Integer clintedge(Draw_Interpretor& di,
   Standard_Integer nbedges = mypurgealgo.NbEdges();
   if (nbedges > 0)
   {
-    //cout<<nbedges<<" internal (or external) edges to be removed"<<endl;
+    //std::cout<<nbedges<<" internal (or external) edges to be removed"<<std::endl;
     di<<nbedges<<" internal (or external) edges to be removed\n";
 
     Standard_Integer i = 1;
@@ -1479,15 +1479,15 @@ static Standard_Integer clintedge(Draw_Interpretor& di,
 
     Sprintf(newname,"%s_%d",a[1],i);
     DBRep::Set(temp,mypurgealgo.Shape());
-    //cout<<newname<<" ";
+    //std::cout<<newname<<" ";
     di<<newname<<" ";
 
-    //cout<<endl;
+    //std::cout<<std::endl;
     di<<"\n";
   }
   else
     di << "no internal (or external) edges\n";
-    //cout << "no internal (or external) edges"<<endl;
+    //std::cout << "no internal (or external) edges"<<std::endl;
 
   return 0;
 }
@@ -1503,7 +1503,7 @@ static Standard_Integer facintedge(Draw_Interpretor& di,
   char newname[255];
 
   if (narg < 2) {
-    //cout << "Usage: facintedge shape" << endl;
+    //std::cout << "Usage: facintedge shape" << std::endl;
     di << "Usage: facintedge shape\n";
     return 1;
   }
@@ -1520,12 +1520,12 @@ static Standard_Integer facintedge(Draw_Interpretor& di,
   for (itFacEdg.Initialize(mymap); itFacEdg.More(); itFacEdg.Next()) {
       Sprintf(newname,"%s_%d",a[1],i);
       DBRep::Set(temp,itFacEdg.Key());
-      //cout<<newname<<" ";
+      //std::cout<<newname<<" ";
       di<<newname<<" ";
       i++;
     }
 
-  //cout<<endl;
+  //std::cout<<std::endl;
   di<<"\n";
 
   return 0;
@@ -1541,7 +1541,7 @@ static Standard_Integer fuseedge(Draw_Interpretor& di,
   char newname[255];
 
   if (narg < 2) {
-    //cout << "Usage: fuseedge shape" << endl;
+    //std::cout << "Usage: fuseedge shape" << std::endl;
     di << "Usage: fuseedge shape\n";
     return 1;
   }
@@ -1556,7 +1556,7 @@ static Standard_Integer fuseedge(Draw_Interpretor& di,
 
   if (nbvertices > 0) {
 
-    //cout<<nbvertices<<" vertices to be removed"<<endl;
+    //std::cout<<nbvertices<<" vertices to be removed"<<std::endl;
     di<<nbvertices<<" vertices to be removed\n";
 
     Standard_Integer i = 1;
@@ -1564,15 +1564,15 @@ static Standard_Integer fuseedge(Draw_Interpretor& di,
 
     Sprintf(newname,"%s_%d",a[1],i);
     DBRep::Set(temp,myfusealgo.Shape());
-    //cout<<newname<<" ";
+    //std::cout<<newname<<" ";
     di<<newname<<" ";
 
-    //cout<<endl;
+    //std::cout<<std::endl;
     di<<"\n";
   }
   else
     di << "no vertices to remove\n";
-    //cout << "no vertices to remove"<<endl;
+    //std::cout << "no vertices to remove"<<std::endl;
 
   return 0;
 }
@@ -1588,7 +1588,7 @@ static Standard_Integer listfuseedge(Draw_Interpretor& di,
   char newname[255];
 
   if (narg < 2) {
-    //cout << "Usage: listfuseedge shape" << endl;
+    //std::cout << "Usage: listfuseedge shape" << std::endl;
     di << "Usage: listfuseedge shape\n";
     return 1;
   }
@@ -1610,14 +1610,14 @@ static Standard_Integer listfuseedge(Draw_Interpretor& di,
       for (itEdg.Initialize(LmapEdg); itEdg.More(); itEdg.Next()) {
        Sprintf(newname,"%s_%d_%d",a[1],iLst,i);
        DBRep::Set(temp,itEdg.Value());
-       //cout<<newname<<" ";
+       //std::cout<<newname<<" ";
        di<<newname<<" ";
        i++;
       }
 
     }
 
-  //cout<<endl;
+  //std::cout<<std::endl;
   di<<"\n";
 
   return 0;
index 6bd5a54..3bc2973 100644 (file)
@@ -170,7 +170,7 @@ static Standard_Integer trim(Draw_Interpretor& di, Standard_Integer n, const cha
     DBRep::Set(a[1],ne);
   }
   else {
-    //cout <<"Error creating edge"<<endl;
+    //std::cout <<"Error creating edge"<<std::endl;
     di <<"Error creating edge\n";
   }
   return 0;
@@ -255,7 +255,7 @@ static Standard_Integer wire(Draw_Interpretor& di, Standard_Integer n, const cha
   }
 
   if (!MW.IsDone()) {
-    //cout << "Wire not done" << endl;
+    //std::cout << "Wire not done" << std::endl;
     di << "Wire not done with an error:\n";
     switch (MW.Error()) 
     {
@@ -288,7 +288,7 @@ static Standard_Integer mkedge(Draw_Interpretor& di, Standard_Integer n, const c
   Handle(Geom_Curve)   C   = DrawTrSurf::GetCurve(a[2]);
   Handle(Geom2d_Curve) C2d = DrawTrSurf::GetCurve2d(a[2]);
   if (C.IsNull() && C2d.IsNull()) {
-    //cout << a[2] << " is not a curve" << endl;
+    //std::cout << a[2] << " is not a curve" << std::endl;
     di << a[2] << " is not a curve\n";
     return 1;
   }
@@ -369,7 +369,7 @@ static Standard_Integer mkcurve(Draw_Interpretor& di, Standard_Integer n, const
 
   Handle(Geom_Curve) C = BRep_Tool::Curve(TopoDS::Edge(S),L,f,l);
   if (C.IsNull()) {
-    //cout << a[2] << " has no 3d curve" << endl;
+    //std::cout << a[2] << " has no 3d curve" << std::endl;
     di << a[2] << " has no 3d curve\n";
     return 1;
   }
@@ -455,8 +455,8 @@ static Standard_Integer mk2dcurve(Draw_Interpretor& di,
   }
 
   if (C.IsNull()) {
-    //cout << a[2] << " has no 2d curve"; if (na == 4) cout << " on " << a[3];
-    //cout << endl;
+    //std::cout << a[2] << " has no 2d curve"; if (na == 4) std::cout << " on " << a[3];
+    //std::cout << std::endl;
     di << a[2] << " has no 2d curve";
     
     if (hasFace)
@@ -569,35 +569,35 @@ static Standard_Integer profile(Draw_Interpretor& di,
   if (n == 1) {
     // print help
 
-    //cout << "profile name [code values] [code values] ...\n";
-    //cout << "  Build a profile in the XY plane from a moving point and direction\n";
-    //cout << "  The original point and direction are 0 0 and 1 0\n";
-    //cout << "  Codes and values describe the point or direction change\n";
-    //cout << "  When the point change the direction becomes the tangent\n";
-    //cout << "  All angles are in degree (may be negative)\n";
-    //cout << "  By default the profile is closed and a face is built\n";
-    //cout << "\n";
-    //cout << "  Instruction Parameters         Action\n";
-    //cout << "  O           X Y Z              Set the origin of the plane\n";
-    //cout << "  P           DX DY DZ UX UY UZ  Set the normal and X of the plane\n";
-    //cout << "  S           Face               Set the Plane (Face must be a Face)\n";
-    //cout << "  F           X Y                Set the first point\n";
-    //cout << "  X           DX                 Translate point along X\n";
-    //cout << "  Y           DY                 Translate point along Y\n";
-    //cout << "  L           DL                 Translate point along direction\n";
-    //cout << "  XX          X                  Set point X coordinate\n";
-    //cout << "  YY          Y                  Set point Y coordinate\n";
-    //cout << "  T           DX DY              Translate point\n";
-    //cout << "  TT          X Y                Set point\n";
-    //cout << "  R           Angle              Rotate direction\n";
-    //cout << "  RR          Angle              Set direction\n";
-    //cout << "  D           DX DY              Set direction\n";
-    //cout << "  IX          X                  Intersect with vertical\n";
-    //cout << "  IY          Y                  Intersect with horizontal\n";
-    //cout << "  C           Radius Angle       Arc of circle tangent to direction\n";
-    //cout << "  W                              Make a closed wire\n";
-    //cout << "  WW                             Make an open wire\n";
-    //cout << endl;
+    //std::cout << "profile name [code values] [code values] ...\n";
+    //std::cout << "  Build a profile in the XY plane from a moving point and direction\n";
+    //std::cout << "  The original point and direction are 0 0 and 1 0\n";
+    //std::cout << "  Codes and values describe the point or direction change\n";
+    //std::cout << "  When the point change the direction becomes the tangent\n";
+    //std::cout << "  All angles are in degree (may be negative)\n";
+    //std::cout << "  By default the profile is closed and a face is built\n";
+    //std::cout << "\n";
+    //std::cout << "  Instruction Parameters         Action\n";
+    //std::cout << "  O           X Y Z              Set the origin of the plane\n";
+    //std::cout << "  P           DX DY DZ UX UY UZ  Set the normal and X of the plane\n";
+    //std::cout << "  S           Face               Set the Plane (Face must be a Face)\n";
+    //std::cout << "  F           X Y                Set the first point\n";
+    //std::cout << "  X           DX                 Translate point along X\n";
+    //std::cout << "  Y           DY                 Translate point along Y\n";
+    //std::cout << "  L           DL                 Translate point along direction\n";
+    //std::cout << "  XX          X                  Set point X coordinate\n";
+    //std::cout << "  YY          Y                  Set point Y coordinate\n";
+    //std::cout << "  T           DX DY              Translate point\n";
+    //std::cout << "  TT          X Y                Set point\n";
+    //std::cout << "  R           Angle              Rotate direction\n";
+    //std::cout << "  RR          Angle              Set direction\n";
+    //std::cout << "  D           DX DY              Set direction\n";
+    //std::cout << "  IX          X                  Intersect with vertical\n";
+    //std::cout << "  IY          Y                  Intersect with horizontal\n";
+    //std::cout << "  C           Radius Angle       Arc of circle tangent to direction\n";
+    //std::cout << "  W                              Make a closed wire\n";
+    //std::cout << "  WW                             Make an open wire\n";
+    //std::cout << std::endl;
     di << "profile name [code values] [code values] ...\n";
     di << "  Build a profile in the XY plane from a moving point and direction\n";
     di << "  The original point and direction are 0 0 and 1 0\n";
@@ -974,15 +974,15 @@ static Standard_Integer bsplineprof(Draw_Interpretor& di,
   if (n == 1) {
     // print help
 
-    //cout << " bsplineprof name [S face] [W WW]  "              << endl;
-    //cout << " for an edge : <digitizes> ... <mouse button 2> " << endl ;
-    //cout << " to end profile : <mouse button 3> "              << endl ;
-    //cout << "  Build a profile in the XY plane from digitizes" << endl ;
-    //cout << "  By default the profile is closed and a face is built\n";
-    //cout << "\n";
-    //cout << "  W                              Make a closed wire\n";
-    //cout << "  WW                             Make an open wire\n";
-    //cout << endl;
+    //std::cout << " bsplineprof name [S face] [W WW]  "              << std::endl;
+    //std::cout << " for an edge : <digitizes> ... <mouse button 2> " << std::endl ;
+    //std::cout << " to end profile : <mouse button 3> "              << std::endl ;
+    //std::cout << "  Build a profile in the XY plane from digitizes" << std::endl ;
+    //std::cout << "  By default the profile is closed and a face is built\n";
+    //std::cout << "\n";
+    //std::cout << "  W                              Make a closed wire\n";
+    //std::cout << "  WW                             Make an open wire\n";
+    //std::cout << std::endl;
     di << " bsplineprof name [S face] [W WW]  "              << "\n";
     di << " for an edge : <digitizes> ... <mouse button 2> " <<  "\n";
     di << " to end profile : <mouse button 3> "              <<  "\n";
@@ -1215,31 +1215,31 @@ static Standard_Integer profile2d(Draw_Interpretor& di,
   if (n == 1) {
     // print help
 
-    //cout << "profile name [code values] [code values] ...\n";
-    //cout << "  Build a profile in the UV plane from a moving point and direction\n";
-    //cout << "  The original point and direction are 0 0 and 1 0\n";
-    //cout << "  Codes and values describe the point or direction change\n";
-    //cout << "  When the point change the direction becomes the tangent\n";
-    //cout << "  All angles are in degree (may be negative)\n";
-    //cout << "  By default the profile is closed \n";
-    //cout << "\n";
-    //cout << "  Instruction Parameters         Action\n";
-    //cout << "  F           X Y                Set the first point\n";
-    //cout << "  X           DX                 Translate point along X\n";
-    //cout << "  Y           DY                 Translate point along Y\n";
-    //cout << "  L           DL                 Translate point along direction\n";
-    //cout << "  XX          X                  Set point X coordinate\n";
-    //cout << "  YY          Y                  Set point Y coordinate\n";
-    //cout << "  T           DX DY              Translate point\n";
-    //cout << "  TT          X Y                Set point\n";
-    //cout << "  R           Angle              Rotate direction\n";
-    //cout << "  RR          Angle              Set direction\n";
-    //cout << "  D           DX DY              Set direction\n";
-    //cout << "  IX          X                  Intersect with vertical\n";
-    //cout << "  IY          Y                  Intersect with horizontal\n";
-    //cout << "  C           Radius Angle       Arc of circle tangent to direction\n";
-    //cout << "  W                              Make a closed wire\n";
-    //cout << endl;
+    //std::cout << "profile name [code values] [code values] ...\n";
+    //std::cout << "  Build a profile in the UV plane from a moving point and direction\n";
+    //std::cout << "  The original point and direction are 0 0 and 1 0\n";
+    //std::cout << "  Codes and values describe the point or direction change\n";
+    //std::cout << "  When the point change the direction becomes the tangent\n";
+    //std::cout << "  All angles are in degree (may be negative)\n";
+    //std::cout << "  By default the profile is closed \n";
+    //std::cout << "\n";
+    //std::cout << "  Instruction Parameters         Action\n";
+    //std::cout << "  F           X Y                Set the first point\n";
+    //std::cout << "  X           DX                 Translate point along X\n";
+    //std::cout << "  Y           DY                 Translate point along Y\n";
+    //std::cout << "  L           DL                 Translate point along direction\n";
+    //std::cout << "  XX          X                  Set point X coordinate\n";
+    //std::cout << "  YY          Y                  Set point Y coordinate\n";
+    //std::cout << "  T           DX DY              Translate point\n";
+    //std::cout << "  TT          X Y                Set point\n";
+    //std::cout << "  R           Angle              Rotate direction\n";
+    //std::cout << "  RR          Angle              Set direction\n";
+    //std::cout << "  D           DX DY              Set direction\n";
+    //std::cout << "  IX          X                  Intersect with vertical\n";
+    //std::cout << "  IY          Y                  Intersect with horizontal\n";
+    //std::cout << "  C           Radius Angle       Arc of circle tangent to direction\n";
+    //std::cout << "  W                              Make a closed wire\n";
+    //std::cout << std::endl;
     di << "profile name [code values] [code values] ...\n";
     di << "  Build a profile in the UV plane from a moving point and direction\n";
     di << "  The original point and direction are 0 0 and 1 0\n";
@@ -1705,7 +1705,7 @@ Standard_Integer edgeintersector(Draw_Interpretor& di,
   EInter.Perform (E[0],E[1],reducesegments);
 
   if (EInter.IsEmpty()) {
-    //cout << " No intersection found" << endl;
+    //std::cout << " No intersection found" << std::endl;
     di << " No intersection found\n";
     return 0;
   }
@@ -1745,13 +1745,13 @@ Standard_Integer edgeintersector(Draw_Interpretor& di,
       else if (P2D.Transition(i).Before() == TopAbs_OUT) {
         OO = TopAbs_FORWARD;
       }
-      //cout << " Orientation of vertex " << NbV << " on " << a[i+1] << ": ";
+      //std::cout << " Orientation of vertex " << NbV << " on " << a[i+1] << ": ";
       di << " Orientation of vertex " << NbV << " on " << a[i+1] << ": ";
       if (OO == TopAbs_FORWARD) {
-        //cout << "FORWARD" << endl;
+        //std::cout << "FORWARD" << std::endl;
         di << "FORWARD\n";
       } else {
-        //cout << "REVERSED" << endl;
+        //std::cout << "REVERSED" << std::endl;
         di << "REVERSED\n";
       }
     }
@@ -1820,7 +1820,7 @@ Standard_Integer  build3d(Draw_Interpretor& di,
 {
 
   if ( (n <2) || (n>3) ) {
-    //cout << " 1 or 2 arguments expected" << endl;
+    //std::cout << " 1 or 2 arguments expected" << std::endl;
     di << " 1 or 2 arguments expected\n";
     return 1;
   }
@@ -1831,7 +1831,7 @@ Standard_Integer  build3d(Draw_Interpretor& di,
 
   if (n==2) { Ok = BRepLib::BuildCurves3d(S); }
   else      { Ok = BRepLib::BuildCurves3d(S,Draw::Atof(a[2])); }
-  //if (!Ok) {cout << " one of the computation failed" << endl;}
+  //if (!Ok) {std::cout << " one of the computation failed" << std::endl;}
   if (!Ok) {di << " one of the computation failed\n";}
 
   return 0;
@@ -1852,7 +1852,7 @@ Standard_Integer reducepcurves(Draw_Interpretor& di,
   {
     TopoDS_Shape aShape = DBRep::Get(a[i]);
     if (aShape.IsNull())
-      //cout << a[i] << " is not a valid shape" << endl;
+      //std::cout << a[i] << " is not a valid shape" << std::endl;
       di << a[i] << " is not a valid shape\n";
     else
       BRepTools::RemoveUnusedPCurves(aShape);
index bfea5f8..42d300f 100644 (file)
@@ -102,7 +102,7 @@ static Standard_Integer NDEP(Draw_Interpretor& theCommands,
   if ((narg<15)||((narg)%9 != 6)) return 1;
   TopoDS_Shape V = DBRep::Get(a[2]);
   if ( V.IsNull()) {
-    //cout << a[2] << " is not a Shape" << endl;
+    //std::cout << a[2] << " is not a Shape" << std::endl;
     theCommands << a[2] << " is not a Shape\n";
     return 1;
   }
@@ -122,7 +122,7 @@ static Standard_Integer NDEP(Draw_Interpretor& theCommands,
 //    F = TopoDS::Face(DBRep::Get(a[9*ii+6],TopAbs_FACE));
 
     if ( F.IsNull()) {
-      //cout << a[9*ii+6] << " is not a face" << endl;
+      //std::cout << a[9*ii+6] << " is not a face" << std::endl;
       theCommands << a[9*ii+6] << " is not a face\n";
       return 1;
     }
@@ -208,11 +208,11 @@ static Standard_Integer draft (Draw_Interpretor& di,
   if (Internal) {
     MkDraft.SetDraft(Internal);
     di << "Internal Draft : \n";
-    //cout << "Internal Draft : " << endl;
+    //std::cout << "Internal Draft : " << std::endl;
   }
   else
     di << "External Draft : \n";
-    //cout << "External Draft : " << endl;
+    //std::cout << "External Draft : " << std::endl;
 
   TopoDS_Shape Stop = DBRep::Get(a[7]);//shape d'arret 
   if (!Stop.IsNull()) {
index 07c7740..135356f 100644 (file)
@@ -58,7 +58,7 @@ static Standard_Integer distance (Draw_Interpretor& di,
   gp_Pnt P1,P2;
   Standard_Real D;
   if (!BRepExtrema_Poly::Distance(S1,S2,P1,P2,D)) return 1;
-  //cout << " distance : " << D << endl;
+  //std::cout << " distance : " << D << std::endl;
   di << " distance : " << D << "\n";
   TopoDS_Edge E = BRepLib_MakeEdge(P1,P2);
   DBRep::Set("distance",E);
@@ -82,7 +82,7 @@ static Standard_Integer distmini(Draw_Interpretor& di, Standard_Integer n, const
   if (dst.IsDone()) 
   { 
 #ifdef OCCT_DEBUG
-    //dst.Dump(cout);
+    //dst.Dump(std::cout);
     di << "*** Dump of \"BRepExtrema_DistShapeShape\" in DEBUG mode (begin) *****\n";
     Standard_SStream aSStream;
     dst.Dump(aSStream);
index bb8068e..a28b93b 100644 (file)
@@ -544,7 +544,7 @@ static Standard_Integer PRW(Draw_Interpretor& theCommands,
     }
     else {
       // il faudrait inverser V et appeler PerfomFromEnd...
-      //cout << "Not Implemented" << endl;
+      //std::cout << "Not Implemented" << std::endl;
       theCommands << "Not Implemented\n";
     }
   }
@@ -709,7 +709,7 @@ static Standard_Integer PRF(Draw_Interpretor& theCommands,
     }
     else { //FUntil.IsNull()
       // il faudrait inverser V et appeler PerfomFromEnd...
-      //cout << "Not Implemented" << endl;
+      //std::cout << "Not Implemented" << std::endl;
       theCommands << "Not Implemented\n";
     }
   }
@@ -737,16 +737,16 @@ static Standard_Integer SPLS(Draw_Interpretor& ,
 
   if (narg < 3)
   {
-    cout << "Invalid number of arguments. Should be : splitshape result shape [splitedges] \
+    std::cout << "Invalid number of arguments. Should be : splitshape result shape [splitedges] \
             [face wire/edge/compound [wire/edge/compound ...] \
             [face wire/edge/compound [wire/edge/compound...] ...] \
-            [@ edgeonshape edgeonwire [edgeonshape edgeonwire...]]" << endl;
+            [@ edgeonshape edgeonwire [edgeonshape edgeonwire...]]" << std::endl;
     return 1;
   }
   TopoDS_Shape S = DBRep::Get(a[2]);
   if (S.IsNull())
   {
-    cout << "Invalid input shape " << a[2]<<endl;
+    std::cout << "Invalid input shape " << a[2]<<std::endl;
     return 1;
   }
   BRepFeat_SplitShape Spls(S);
@@ -773,7 +773,7 @@ static Standard_Integer SPLS(Draw_Interpretor& ,
     TopoDS_Shape aSh = DBRep::Get(a[i]);
     if (aSh.IsNull())
     {
-      cout << "Invalid input shape " <<a[i]<<endl;
+      std::cout << "Invalid input shape " <<a[i]<<std::endl;
       return 1;
     }
 
@@ -852,7 +852,7 @@ static Standard_Integer SPLS(Draw_Interpretor& ,
         TopoDS_Shape aSh = DBRep::Get(a[i]);
         if (aSh.IsNull())
         {
-          cout << "Invalid input shape " <<a[i]<< endl;
+          std::cout << "Invalid input shape " <<a[i]<< std::endl;
           return 1;
         }
         TopExp_Explorer aExpE(aSh, TopAbs_EDGE, TopAbs_FACE);
@@ -861,10 +861,10 @@ static Standard_Integer SPLS(Draw_Interpretor& ,
       }
       else
       {
-         cout << "Invalid input arguments. Should be : splitshape result shape [splitedges] \
+         std::cout << "Invalid input arguments. Should be : splitshape result shape [splitedges] \
             [face wire/edge/compound [wire/edge/compound ...] \
             [face wire/edge/compound [wire/edge/compound...] ...] \
-            [@ edgeonshape edgeonwire [edgeonshape edgeonwire...]]"<<endl;
+            [@ edgeonshape edgeonwire [edgeonshape edgeonwire...]]"<<std::endl;
         return 1;
       }
     }
@@ -887,7 +887,7 @@ static Standard_Integer SPLS(Draw_Interpretor& ,
     Ew = TopoDS::Edge(aLocalShape);
 //    Ew = TopoDS::Edge(DBRep::Get(a[i+1],TopAbs_EDGE));
     if (Ew.IsNull()) {
-      cout << "Invalid input shape " <<a[i+1]<< endl;
+      std::cout << "Invalid input shape " <<a[i+1]<< std::endl;
       return 1;
     }
     Spls.Add(TopoDS::Edge(Ew),TopoDS::Edge(Es));
@@ -1612,7 +1612,7 @@ static Standard_Integer DEFIN(Draw_Interpretor& theCommands,
       theRF.Init(Sbase, W, P, ax1, H1, H2, Fuse, Modify);
       if (!theRF.IsDone()) {
        se = theRF.CurrentStatusError();
-       //BRepFeat::Print(se,cout) << endl;
+       //BRepFeat::Print(se,std::cout) << std::endl;
        Standard_SStream aSStream;
        BRepFeat::Print(se,aSStream);
        theCommands << aSStream << "\n";
@@ -1637,7 +1637,7 @@ static Standard_Integer DEFIN(Draw_Interpretor& theCommands,
       theLF.Init(Sbase, W, P, Direct, gp_Vec(X,Y,Z), Fuse,Modify);
       if (!theLF.IsDone()) {
        se = theLF.CurrentStatusError();
-       //BRepFeat::Print(se,cout) << endl;
+       //BRepFeat::Print(se,std::cout) << std::endl;
        Standard_SStream aSStream;
        BRepFeat::Print(se,aSStream);
        theCommands << aSStream << "\n";
@@ -2010,7 +2010,7 @@ static Standard_Integer PERF(Draw_Interpretor& theCommands,
   case 1:
     if (!thePrism.IsDone()) {
       se = thePrism.CurrentStatusError();
-      //BRepFeat::Print(se,cout) << endl;
+      //BRepFeat::Print(se,std::cout) << std::endl;
       Standard_SStream aSStream;
       BRepFeat::Print(se,aSStream);
       theCommands << aSStream << "\n";
@@ -2022,7 +2022,7 @@ static Standard_Integer PERF(Draw_Interpretor& theCommands,
   case 2:
     if (!theRevol.IsDone()) {
       se = theRevol.CurrentStatusError();
-      //BRepFeat::Print(se,cout) << endl;
+      //BRepFeat::Print(se,std::cout) << std::endl;
       Standard_SStream aSStream;
       BRepFeat::Print(se,aSStream);
       theCommands << aSStream << "\n";
@@ -2034,7 +2034,7 @@ static Standard_Integer PERF(Draw_Interpretor& theCommands,
   case 3:
     if (!thePipe.IsDone()) {
       se = thePipe.CurrentStatusError();
-      //BRepFeat::Print(se,cout) << endl;
+      //BRepFeat::Print(se,std::cout) << std::endl;
       Standard_SStream aSStream;
       BRepFeat::Print(se,aSStream);
       theCommands << aSStream << "\n";
@@ -2046,7 +2046,7 @@ static Standard_Integer PERF(Draw_Interpretor& theCommands,
   case 4:
     if (!theDPrism.IsDone()) {
       se = theDPrism.CurrentStatusError();
-      //BRepFeat::Print(se,cout) << endl;
+      //BRepFeat::Print(se,std::cout) << std::endl;
       Standard_SStream aSStream;
       BRepFeat::Print(se,aSStream);
       theCommands << aSStream << "\n";
@@ -2058,7 +2058,7 @@ static Standard_Integer PERF(Draw_Interpretor& theCommands,
   case 5:
     if (!theLF.IsDone()) {
       se = theLF.CurrentStatusError();
-      //BRepFeat::Print(se,cout) << endl;
+      //BRepFeat::Print(se,std::cout) << std::endl;
       Standard_SStream aSStream;
       BRepFeat::Print(se,aSStream);
       theCommands << aSStream << "\n";
@@ -2070,7 +2070,7 @@ static Standard_Integer PERF(Draw_Interpretor& theCommands,
   case 6:
     if (!theRF.IsDone()) {
       se = theRF.CurrentStatusError();
-      //BRepFeat::Print(se,cout) << endl;
+      //BRepFeat::Print(se,std::cout) << std::endl;
       Standard_SStream aSStream;
       BRepFeat::Print(se,aSStream);
       theCommands << aSStream << "\n";
index 70dafa6..17559fa 100644 (file)
@@ -70,21 +70,21 @@ static char name[100];
 static Standard_Integer contblend(Draw_Interpretor& di, Standard_Integer narg, const char** a)
 {
   if(narg ==1) {
-    //cout<<"tolerance angular of approximation  : "<< tapp_angle <<endl;
-    //cout<<"internal continuity                 : ";
+    //std::cout<<"tolerance angular of approximation  : "<< tapp_angle <<std::endl;
+    //std::cout<<"internal continuity                 : ";
     di<<"tolerance angular of approximation  : "<< tapp_angle <<"\n";
     di<<"internal continuity                 : ";
     switch (blend_cont) {
       case GeomAbs_C0:
-         //cout << ""<<endl;
+         //std::cout << ""<<std::endl;
          di << "C0\n";
         break;
       case GeomAbs_C1:
-         //cout << "C1"<<endl;
+         //std::cout << "C1"<<std::endl;
          di << "C1\n";
         break;
       case GeomAbs_C2:
-         //cout << "C2"<<endl;
+         //std::cout << "C2"<<std::endl;
          di << "C2\n";
         break;
        default:
@@ -112,12 +112,12 @@ static Standard_Integer contblend(Draw_Interpretor& di, Standard_Integer narg, c
 
 static void printtolblend(Draw_Interpretor& di)
 {
-  //cout<<"tolerance ang : "<<ta<<endl;
-  //cout<<"tolerance 3d  : "<<t3d<<endl;
-  //cout<<"tolerance 2d  : "<<t2d<<endl;
-  //cout<<"fleche        : "<<fl<<endl;
+  //std::cout<<"tolerance ang : "<<ta<<std::endl;
+  //std::cout<<"tolerance 3d  : "<<t3d<<std::endl;
+  //std::cout<<"tolerance 2d  : "<<t2d<<std::endl;
+  //std::cout<<"fleche        : "<<fl<<std::endl;
 
-  //cout<<"tolblend "<<ta<<" "<<t3d<<" "<<t2d<<" "<<fl<<endl;
+  //std::cout<<"tolblend "<<ta<<" "<<t3d<<" "<<t2d<<" "<<fl<<std::endl;
 
   di<<"tolerance ang : "<<ta<<"\n";
   di<<"tolerance 3d  : "<<t3d<<"\n";
@@ -220,12 +220,12 @@ static Standard_Integer CheckHist(Draw_Interpretor& di,
                                  const char** )
 {
   if(Rakk == 0) {
-    //cout<<"No active Builder"<<endl;
+    //std::cout<<"No active Builder"<<std::endl;
     di<<"No active Builder\n";
     return 1;
   }
   if(!Rakk->IsDone()) {
-    //cout<<"Active Builder Not Done"<<endl;
+    //std::cout<<"Active Builder Not Done"<<std::endl;
     di<<"Active Builder Not Done\n";
     return 1;
   }
@@ -247,7 +247,7 @@ static Standard_Integer CheckHist(Draw_Interpretor& di,
     It.Initialize(Rakk->Generated(curshape));
     PrintHist(curshape,It,nbgen);
   }
-  //cout<<"foreach g [lsort [dir gen*]] { wclick; puts [dname $g]; donl $g; }"<<endl;
+  //std::cout<<"foreach g [lsort [dir gen*]] { wclick; puts [dname $g]; donl $g; }"<<std::endl;
   di<<"foreach g [lsort [dir gen*]] { wclick; puts [dname $g]; donl $g; }\n";
   return 0;
 }
@@ -282,7 +282,7 @@ static Standard_Integer UPDATEVOL(Draw_Interpretor& di,
                                  const char** a)
 {
   if(Rake == 0){
-    //cout << "MakeFillet not initialized"<<endl;
+    //std::cout << "MakeFillet not initialized"<<std::endl;
     di << "MakeFillet not initialized\n";
     return 1 ;
   }
@@ -306,7 +306,7 @@ static Standard_Integer BUILDEVOL(Draw_Interpretor& di,
                                  const char**)
 {
   if(Rake == 0){
-    //cout << "MakeFillet not initialized"<<endl;
+    //std::cout << "MakeFillet not initialized"<<std::endl;
     di << "MakeFillet not initialized\n";
     return 1 ;
   }
@@ -333,7 +333,7 @@ Standard_Integer boptopoblend(Draw_Interpretor& di, Standard_Integer narg, const
   printtolblend(di);
   if(narg < 5)
   {
-    cout << "Use <command name> result shape1 shape2 radius [-d]" << endl;
+    std::cout << "Use <command name> result shape1 shape2 radius [-d]" << std::endl;
     return 1;
   }
 
@@ -466,16 +466,16 @@ static Standard_Integer blend1(Draw_Interpretor& di, Standard_Integer narg, cons
 
   //if (Rakk.IsDone()==FilletSurf_IsNotOk) 
   // { FilletSurf_ErrorTypeStatus err=Rakk.StatusError();
-  //   if (err==FilletSurf_EmptyList) cout<< "StatusError=EmptyList"<<endl;
-  //   else if (err==FilletSurf_EdgeNotG1) cout<< "StatusError=NotG1"<<endl;
-  //   else if (err==FilletSurf_FacesNotG1) cout<< "StatusError=facesNotG1"<<endl;   
+  //   if (err==FilletSurf_EmptyList) std::cout<< "StatusError=EmptyList"<<std::endl;
+  //   else if (err==FilletSurf_EdgeNotG1) std::cout<< "StatusError=NotG1"<<std::endl;
+  //   else if (err==FilletSurf_FacesNotG1) std::cout<< "StatusError=facesNotG1"<<std::endl;   
   //   else if (err==FilletSurf_EdgeNotOnShape) 
-  //   cout<< "StatusError=edgenotonshape"<<endl;
-  //   else if (err==FilletSurf_NotSharpEdge ) cout<< "StatusError=notsharpedge"<<endl;
-  //   else if (err==FilletSurf_PbFilletCompute) cout <<"StatusError=PBFillet"<<endl;
+  //   std::cout<< "StatusError=edgenotonshape"<<std::endl;
+  //   else if (err==FilletSurf_NotSharpEdge ) std::cout<< "StatusError=notsharpedge"<<std::endl;
+  //   else if (err==FilletSurf_PbFilletCompute) std::cout <<"StatusError=PBFillet"<<std::endl;
   // }
   // else {
-  //  if (Rakk.IsDone()==FilletSurf_IsPartial) cout <<"resultat partiel"<<endl; 
+  //  if (Rakk.IsDone()==FilletSurf_IsPartial) std::cout <<"resultat partiel"<<std::endl; 
   if (aRakk.IsDone()==FilletSurf_IsNotOk)
    { FilletSurf_ErrorTypeStatus err=aRakk.StatusError();
      if (err==FilletSurf_EmptyList) di<< "StatusError=EmptyList\n";
@@ -498,11 +498,11 @@ static Standard_Integer blend1(Draw_Interpretor& di, Standard_Integer narg, cons
    if (!simul)
    { 
     //if (Rakk.StartSectionStatus()==FilletSurf_NoExtremityOnEdge)
-    //  {cout<<" type deb conges = WLBLOUT"<<endl;}
+    //  {std::cout<<" type deb conges = WLBLOUT"<<std::endl;}
     //else if (Rakk.StartSectionStatus()==FilletSurf_OneExtremityOnEdge )
-    //  { cout<<" type deb conges = WLBLSTOP"<<endl;}
+    //  { std::cout<<" type deb conges = WLBLSTOP"<<std::endl;}
     //else if (Rakk.StartSectionStatus()==FilletSurf_TwoExtremityOnEdge)
-    //  {cout<<" type deb conges = WLBLEND"<<endl;}
+    //  {std::cout<<" type deb conges = WLBLEND"<<std::endl;}
     if (aRakk.StartSectionStatus()==FilletSurf_NoExtremityOnEdge)
       {di<<" type start fillets = WLBLOUT\n";}
     else if (aRakk.StartSectionStatus()==FilletSurf_OneExtremityOnEdge)
@@ -511,11 +511,11 @@ static Standard_Integer blend1(Draw_Interpretor& di, Standard_Integer narg, cons
       {di<<" type start fillets = WLBLEND\n";}
     
     //if (Rakk.EndSectionStatus()==FilletSurf_NoExtremityOnEdge) 
-    //  {cout<<" type fin  conges = WLBLOUT"<<endl;}
+    //  {std::cout<<" type fin  conges = WLBLOUT"<<std::endl;}
     //else if (Rakk.EndSectionStatus()==FilletSurf_OneExtremityOnEdge) 
-    //  {cout<<" type fin  conges = WLBLSTOP"<<endl;}
+    //  {std::cout<<" type fin  conges = WLBLSTOP"<<std::endl;}
     //else if (Rakk.EndSectionStatus()==FilletSurf_TwoExtremityOnEdge) 
-    //  { cout<<" type fin  conges = WLBLEND"<<endl;}
+    //  { std::cout<<" type fin  conges = WLBLEND"<<std::endl;}
     if (aRakk.EndSectionStatus()==FilletSurf_NoExtremityOnEdge)
       {di<<" type end fillets = WLBLOUT\n";}
     else if (aRakk.EndSectionStatus()==FilletSurf_OneExtremityOnEdge)
@@ -525,13 +525,13 @@ static Standard_Integer blend1(Draw_Interpretor& di, Standard_Integer narg, cons
     Standard_Real f,l;
     f = aRakk.FirstParameter();
     l = aRakk.LastParameter();
-    //cout<<"parameter on edge start : "<<f<<endl;
-    //cout<<"parameter on edge end   : "<<l<<endl;
+    //std::cout<<"parameter on edge start : "<<f<<std::endl;
+    //std::cout<<"parameter on edge end   : "<<l<<std::endl;
     di<<"parametre on edge start : "<<f<<"\n";
     di<<"parametre on edge end   : "<<l<<"\n";
     for (i=1;i<=nb;i++){
       //precision 
-      //cout<<"precision "<< i << "= "<<Rakk.TolApp3d(i)<<endl;
+      //std::cout<<"precision "<< i << "= "<<Rakk.TolApp3d(i)<<std::endl;
       di<<"precision "<< i << "= "<<aRakk.TolApp3d(i)<<"\n";
       
       // display resulting surfaces  
@@ -628,7 +628,7 @@ Standard_Integer rollingball(Draw_Interpretor& di, Standard_Integer n, const cha
       TopoDS_Face F1 = TopoDS::Face(aLocalFace);
 //      TopoDS_Face F1 = TopoDS::Face(DBRep::Get(a[i],TopAbs_FACE));
       if ( F1.IsNull()) {
-       //cout << " Stop face not referenced." << endl;
+       //std::cout << " Stop face not referenced." << std::endl;
        di << " Stop face not referenced.\n";
        return 1;
       }
@@ -640,7 +640,7 @@ Standard_Integer rollingball(Draw_Interpretor& di, Standard_Integer n, const cha
 //      TopoDS_Face F1 = TopoDS::Face(DBRep::Get(a[i],TopAbs_FACE));
       i++;
       if ( !strcmp(a[i],"@")) {
-       //cout << " Even number of ball support faces is required " << endl;
+       //std::cout << " Even number of ball support faces is required " << std::endl;
        di << " Even number of ball support faces is required \n";
        return 1;
       }
@@ -648,7 +648,7 @@ Standard_Integer rollingball(Draw_Interpretor& di, Standard_Integer n, const cha
       TopoDS_Face F2 = TopoDS::Face(aLocalFace);
 //      TopoDS_Face F2 = TopoDS::Face(DBRep::Get(a[i],TopAbs_FACE));
       if ( F1.IsNull() || F2.IsNull()) {
-       //cout << " Support face not referenced." << endl;
+       //std::cout << " Support face not referenced." << std::endl;
        di << " Support face not referenced.\n";
        return 1;
       }
@@ -659,7 +659,7 @@ Standard_Integer rollingball(Draw_Interpretor& di, Standard_Integer n, const cha
       TopoDS_Edge E = TopoDS::Edge(aLocalShape);
 //      TopoDS_Edge E = TopoDS::Edge(DBRep::Get(a[i],TopAbs_EDGE));
       if ( E.IsNull()) {
-       //cout << " Edge not referenced." << endl;
+       //std::cout << " Edge not referenced." << std::endl;
        di << " Edge not referenced.\n";
        return 1;
       }
@@ -678,8 +678,8 @@ Standard_Integer rollingball(Draw_Interpretor& di, Standard_Integer n, const cha
     for (Standard_Integer i = 1; i <= NbBranches; i++) {
       Standard_Integer From,To;
       Roll.IndicesOfBranche(i,From,To);
-      //cout << " Indexes of the " << i << "th Branch : ";
-      //cout << "   " << From << "     " << To << endl;
+      //std::cout << " Indexes of the " << i << "th Branch : ";
+      //std::cout << "   " << From << "     " << To << std::endl;
       di << " Indexes of the " << i << "th Branch : ";
       di << "   " << From << "     " << To << "\n";
       for (Standard_Integer j = From; j <= To; j++) {
index 7bead0b..6ca87e4 100644 (file)
@@ -174,7 +174,7 @@ static Standard_Integer plate (Draw_Interpretor & di,Standard_Integer n,const ch
   Henri.Perform();
 
   Standard_Real ErrG0 = 1.1*Henri.G0Error();
-  //cout<<" dist. max = "<<Henri.G0Error()<<" ; angle max = "<<Henri.G1Error()<<endl;
+  //std::cout<<" dist. max = "<<Henri.G0Error()<<" ; angle max = "<<Henri.G1Error()<<std::endl;
   di<<" dist. max = "<<Henri.G0Error()<<" ; angle max = "<<Henri.G1Error()<<"\n";
 
   BRepBuilderAPI_MakeWire MW;
@@ -375,7 +375,7 @@ static Standard_Integer approxplate (Draw_Interpretor & di,Standard_Integer n,co
 
   Standard_Real dmax = Henri.G0Error(),
                 anmax = Henri.G1Error();
-  //cout<<" dist. max = "<<dmax<<" ; angle max = "<<anmax<<endl;
+  //std::cout<<" dist. max = "<<dmax<<" ; angle max = "<<anmax<<std::endl;
   di<<" dist. max = "<<dmax<<" ; angle max = "<<anmax<<"\n";
 
   Tol3d = Draw::Atof(a[3*NbCurFront+4]);
@@ -507,7 +507,7 @@ static Standard_Integer filling( Draw_Interpretor & di, Standard_Integer n, cons
        {
          if (F.IsNull())
            {
-             //cout<<endl<<"Wrong parameters"<<endl<<endl;
+             //std::cout<<std::endl<<"Wrong parameters"<<std::endl<<std::endl;
              di<<"\nWrong parameters\n\n";
              return 1;
            }
@@ -526,7 +526,7 @@ static Standard_Integer filling( Draw_Interpretor & di, Standard_Integer n, cons
       E = TopoDS::Edge( DBRep::Get(a[i++], TopAbs_EDGE) );
       if (E.IsNull())
        {
-         //cout<<"Wrong parameters"<<endl;
+         //std::cout<<"Wrong parameters"<<std::endl;
          di<<"Wrong parameters\n";
          return 1;
        }
@@ -558,7 +558,7 @@ static Standard_Integer filling( Draw_Interpretor & di, Standard_Integer n, cons
          F = TopoDS::Face( DBRep::Get(a[i++], TopAbs_FACE));
          if (F.IsNull()) 
            {
-             //cout<<"Wrong parameters"<<endl;
+             //std::cout<<"Wrong parameters"<<std::endl;
              di<<"Wrong parameters\n";
              return 1;
            }
@@ -571,7 +571,7 @@ static Standard_Integer filling( Draw_Interpretor & di, Standard_Integer n, cons
   MakeFilling.Build();
   if (! MakeFilling.IsDone())
     {
-      //cout<<"filling failed"<<endl;
+      //std::cout<<"filling failed"<<std::endl;
       di<<"filling failed\n";
       return 0;
     }
@@ -579,7 +579,7 @@ static Standard_Integer filling( Draw_Interpretor & di, Standard_Integer n, cons
   Standard_Real dmax = MakeFilling.G0Error(),
                 angmax = MakeFilling.G1Error(),
                 curvmax = MakeFilling.G2Error();
-  //cout<<" dist. max = "<<dmax<<" ; angle max = "<<angmax<<" ; diffcurv max = "<<curvmax<<endl;
+  //std::cout<<" dist. max = "<<dmax<<" ; angle max = "<<angmax<<" ; diffcurv max = "<<curvmax<<std::endl;
   di<<" dist. max = "<<dmax<<" ; angle max = "<<angmax<<" ; diffcurv max = "<<curvmax<<"\n";
 
   TopoDS_Face ResFace= TopoDS::Face( MakeFilling.Shape() );
@@ -589,8 +589,8 @@ static Standard_Integer filling( Draw_Interpretor & di, Standard_Integer n, cons
   Chrono.Stop();
   Standard_Real Tps;
   Chrono.Show(Tps);
-  //cout<<"*** FIN DE FILLING ***"<<endl;
-  //cout<<"Temps de calcul  : "<<Tps<<endl;
+  //std::cout<<"*** FIN DE FILLING ***"<<std::endl;
+  //std::cout<<"Temps de calcul  : "<<Tps<<std::endl;
   di<<"*** FIN DE FILLING ***\n";
   di<<"Temps de calcul  : "<<Tps<<"\n";
 #endif
@@ -602,12 +602,12 @@ static Standard_Integer fillingparam( Draw_Interpretor & di, Standard_Integer n,
 {
   if ( n == 1) {
 
-    //cout << "fillingparam : options are"  <<endl;
-    //cout << "-l : to list current values" << endl;
-    //cout << "-i : to set default values"   << endl;
-    //cout << "-r deg nbPonC nbIt anis : to set filling options" <<endl;
-    //cout << "-c t2d t3d tang tcur : to set tolerances" << endl;
-    //cout << "-a maxdeg maxseg : Approximation option" << endl;
+    //std::cout << "fillingparam : options are"  <<std::endl;
+    //std::cout << "-l : to list current values" << std::endl;
+    //std::cout << "-i : to set default values"   << std::endl;
+    //std::cout << "-r deg nbPonC nbIt anis : to set filling options" <<std::endl;
+    //std::cout << "-c t2d t3d tang tcur : to set tolerances" << std::endl;
+    //std::cout << "-a maxdeg maxseg : Approximation option" << std::endl;
     di << "fillingparam : options are"  <<"\n";
     di << "-l : to list current values\n";
     di << "-i : to set default values"   << "\n";
@@ -622,19 +622,19 @@ static Standard_Integer fillingparam( Draw_Interpretor & di, Standard_Integer n,
       const char* flag = AS.ToCString();
       if (strcmp( flag, "-l" ) == 0 && n == 2)
        {
-         //cout<<endl;
-         //cout<<"Degree = "<<Degree<<endl;
-         //cout<<"NbPtsOnCur = "<<NbPtsOnCur<<endl;
-         //cout<<"NbIter = "<<NbIter<<endl;
-         //cout<<"Anisotropie = "<<Anisotropie<<endl<<endl;
+         //std::cout<<std::endl;
+         //std::cout<<"Degree = "<<Degree<<std::endl;
+         //std::cout<<"NbPtsOnCur = "<<NbPtsOnCur<<std::endl;
+         //std::cout<<"NbIter = "<<NbIter<<std::endl;
+         //std::cout<<"Anisotropie = "<<Anisotropie<<std::endl<<std::endl;
          //
-         //cout<<"Tol2d = "<<Tol2d<<endl;
-         //cout<<"Tol3d = "<<Tol3d<<endl;
-         //cout<<"TolAng = "<<TolAng<<endl;
-         //cout<<"TolCurv = "<<TolCurv<<endl<<endl;
+         //std::cout<<"Tol2d = "<<Tol2d<<std::endl;
+         //std::cout<<"Tol3d = "<<Tol3d<<std::endl;
+         //std::cout<<"TolAng = "<<TolAng<<std::endl;
+         //std::cout<<"TolCurv = "<<TolCurv<<std::endl<<std::endl;
          //
-         //cout<<"MaxDeg = "<<MaxDeg<<endl;
-         //cout<<"MaxSegments = "<<MaxSegments<<endl<<endl;
+         //std::cout<<"MaxDeg = "<<MaxDeg<<std::endl;
+         //std::cout<<"MaxSegments = "<<MaxSegments<<std::endl<<std::endl;
          di<<"\n";
          di<<"Degree = "<<Degree<<"\n";
          di<<"NbPtsOnCur = "<<NbPtsOnCur<<"\n";
@@ -685,7 +685,7 @@ static Standard_Integer fillingparam( Draw_Interpretor & di, Standard_Integer n,
        }
       else
        {
-         //cout<<"Wrong parameters"<<endl;
+         //std::cout<<"Wrong parameters"<<std::endl;
          di<<"Wrong parameters\n";
          return 1;
        }
index da09f0b..90c28f5 100644 (file)
@@ -120,36 +120,36 @@ Standard_Integer props(Draw_Interpretor& di, Standard_Integer n, const char** a)
   {
     Standard_SStream aSStream1;
     aSStream1 << "\n\n";
-    aSStream1 << "Mass : " << setw(15) << G.Mass() << "\n\n";
-    if(witheps && *a[0] != 'l') aSStream1 << "Relative error of mass computation : " <<  setw(15) << eps <<  "\n\n";
+    aSStream1 << "Mass : " << std::setw(15) << G.Mass() << "\n\n";
+    if(witheps && *a[0] != 'l') aSStream1 << "Relative error of mass computation : " <<  std::setw(15) << eps <<  "\n\n";
   
     aSStream1 << "Center of gravity : \n";
-    aSStream1 << "X = " << setw(15) << P.X() << "\n";
-    aSStream1 << "Y = " << setw(15) << P.Y() << "\n";
-    aSStream1 << "Z = " << setw(15) << P.Z() << "\n";
+    aSStream1 << "X = " << std::setw(15) << P.X() << "\n";
+    aSStream1 << "Y = " << std::setw(15) << P.Y() << "\n";
+    aSStream1 << "Z = " << std::setw(15) << P.Z() << "\n";
     aSStream1 << "\n";
   
     aSStream1 << "Matrix of Inertia : \n";
-    aSStream1 << setw(15) << I(1,1);
-    aSStream1 << " " << setw(15) << I(1,2);
-    aSStream1 << " " << setw(15) << I(1,3) << "\n";
-    aSStream1 << setw(15) << I(2,1);
-    aSStream1 << " " << setw(15) << I(2,2);
-    aSStream1 << " " << setw(15) << I(2,3) << "\n";
-    aSStream1 << setw(15) << I(3,1);
-    aSStream1 << " " << setw(15) << I(3,2);
-    aSStream1 << " " << setw(15) << I(3,3) << "\n";
+    aSStream1 << std::setw(15) << I(1,1);
+    aSStream1 << " " << std::setw(15) << I(1,2);
+    aSStream1 << " " << std::setw(15) << I(1,3) << "\n";
+    aSStream1 << std::setw(15) << I(2,1);
+    aSStream1 << " " << std::setw(15) << I(2,2);
+    aSStream1 << " " << std::setw(15) << I(2,3) << "\n";
+    aSStream1 << std::setw(15) << I(3,1);
+    aSStream1 << " " << std::setw(15) << I(3,2);
+    aSStream1 << " " << std::setw(15) << I(3,3) << "\n";
     aSStream1 << "\n";
-    aSStream1 << ends;
+    aSStream1 << std::ends;
     di << aSStream1;
 
     Standard_SStream aSStream2;
     aSStream2 << "Moments : \n";
-    aSStream2 << "IX = " << setw(15) << Ix << "\n";
-    aSStream2 << "IY = " << setw(15) << Iy << "\n";
-    aSStream2 << "IZ = " << setw(15) << Iz << "\n";
+    aSStream2 << "IX = " << std::setw(15) << Ix << "\n";
+    aSStream2 << "IY = " << std::setw(15) << Iy << "\n";
+    aSStream2 << "IZ = " << std::setw(15) << Iz << "\n";
     aSStream2 << "\n";
-    aSStream2 << ends;
+    aSStream2 << std::ends;
     di << aSStream2;
   }
   else
@@ -249,9 +249,9 @@ Standard_Integer vpropsgk(Draw_Interpretor& di, Standard_Integer n, const char**
 
   aSStream0.precision(15);
   aSStream0 << "\n\n";
-  aSStream0 << "Mass : " << setw(anOutWidth) << G.Mass() << "\n\n";
-  aSStream0 << "Relative error of mass computation : " <<  setw(anOutWidth) << eps <<  "\n\n";
-  aSStream0 << ends;
+  aSStream0 << "Mass : " << std::setw(anOutWidth) << G.Mass() << "\n\n";
+  aSStream0 << "Relative error of mass computation : " <<  std::setw(anOutWidth) << eps <<  "\n\n";
+  aSStream0 << std::ends;
   di << aSStream0;
 
   if(CGFlag || IFlag) {
@@ -269,27 +269,27 @@ Standard_Integer vpropsgk(Draw_Interpretor& di, Standard_Integer n, const char**
   
     aSStream1.precision(15);
     aSStream1 << "Center of gravity : \n";
-    aSStream1 << "X = " << setw(anOutWidth) << P.X() << "\n";
-    aSStream1 << "Y = " << setw(anOutWidth) << P.Y() << "\n";
-    aSStream1 << "Z = " << setw(anOutWidth) << P.Z() << "\n";
+    aSStream1 << "X = " << std::setw(anOutWidth) << P.X() << "\n";
+    aSStream1 << "Y = " << std::setw(anOutWidth) << P.Y() << "\n";
+    aSStream1 << "Z = " << std::setw(anOutWidth) << P.Z() << "\n";
     aSStream1 << "\n";
  
     if(IFlag) {
       gp_Mat I = G.MatrixOfInertia();
 
       aSStream1 << "Matrix of Inertia : \n";
-      aSStream1 << setw(anOutWidth) << I(1,1);
-      aSStream1 << " " << setw(anOutWidth) << I(1,2);
-      aSStream1 << " " << setw(anOutWidth) << I(1,3) << "\n";
-      aSStream1 << setw(anOutWidth) << I(2,1);
-      aSStream1 << " " << setw(anOutWidth) << I(2,2);
-      aSStream1 << " " << setw(anOutWidth) << I(2,3) << "\n";
-      aSStream1 << setw(anOutWidth) << I(3,1);
-      aSStream1 << " " << setw(anOutWidth) << I(3,2);
-      aSStream1 << " " << setw(anOutWidth) << I(3,3) << "\n";
+      aSStream1 << std::setw(anOutWidth) << I(1,1);
+      aSStream1 << " " << std::setw(anOutWidth) << I(1,2);
+      aSStream1 << " " << std::setw(anOutWidth) << I(1,3) << "\n";
+      aSStream1 << std::setw(anOutWidth) << I(2,1);
+      aSStream1 << " " << std::setw(anOutWidth) << I(2,2);
+      aSStream1 << " " << std::setw(anOutWidth) << I(2,3) << "\n";
+      aSStream1 << std::setw(anOutWidth) << I(3,1);
+      aSStream1 << " " << std::setw(anOutWidth) << I(3,2);
+      aSStream1 << " " << std::setw(anOutWidth) << I(3,3) << "\n";
       aSStream1 << "\n";
     }
-    aSStream1 << ends;
+    aSStream1 << std::ends;
     di << aSStream1;
   }
 
@@ -305,12 +305,12 @@ Standard_Integer vpropsgk(Draw_Interpretor& di, Standard_Integer n, const char**
 
     aSStream2.precision(15);
     aSStream2 << "Moments : \n";
-    aSStream2 << "IX = " << setw(anOutWidth) << Ix << "\n";
-    aSStream2 << "IY = " << setw(anOutWidth) << Iy << "\n";
-    aSStream2 << "IZ = " << setw(anOutWidth) << Iz << "\n";
+    aSStream2 << "IX = " << std::setw(anOutWidth) << Ix << "\n";
+    aSStream2 << "IY = " << std::setw(anOutWidth) << Iy << "\n";
+    aSStream2 << "IZ = " << std::setw(anOutWidth) << Iz << "\n";
     aSStream2 << "\n";
     aSStream2 << "\n";
-    aSStream2 << ends;
+    aSStream2 << std::ends;
     di << aSStream2;
 
     gp_Ax2 axes(P,Pr.ThirdAxisOfInertia(),Pr.FirstAxisOfInertia());
index eccd3eb..1bed4e2 100644 (file)
@@ -277,7 +277,7 @@ Standard_Integer brepintcs(Draw_Interpretor& di, Standard_Integer n, const char*
 {
   if (n <= 2) 
   {
-    cout<<"Invalid input arguments. Should be: curve1 [curve2 ...] shape [result] [tol]"<<endl;
+    std::cout<<"Invalid input arguments. Should be: curve1 [curve2 ...] shape [result] [tol]"<<std::endl;
     return 1;
   }
   Standard_Integer indshape = 2;
@@ -290,7 +290,7 @@ Standard_Integer brepintcs(Draw_Interpretor& di, Standard_Integer n, const char*
   }
   if (S.IsNull()) 
   {
-    cout<<"Invalid input shape"<<endl;
+    std::cout<<"Invalid input shape"<<std::endl;
     return 1;
   }
 
index 3c55eaa..8c925cb 100644 (file)
@@ -75,7 +75,7 @@ static Standard_Integer mkface(Draw_Interpretor& , Standard_Integer n, const cha
   
   Handle(Geom_Surface) S = DrawTrSurf::GetSurface(a[2]);
   if (S.IsNull()) {
-    cout << a[2] << " is not a surface" << endl;
+    std::cout << a[2] << " is not a surface" << std::endl;
     return 1;
   }
   
@@ -254,7 +254,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() ) {
-        cout << "Error: Edge " << i << " does not have pcurve" << endl;
+        std::cout << "Error: Edge " << i << " does not have pcurve" << std::endl;
         continue;
       }
       col = DBRep_ColorOrientation(ex.Current().Orientation());
@@ -504,7 +504,7 @@ Standard_Integer fastsewing (Draw_Interpretor& theDI,
   {
     theDI << "Error: There are some problems while adding (" <<
                         (static_cast<Standard_Integer>(aStatus)) << ")\n";
-    aFS.GetStatuses(&cout);
+    aFS.GetStatuses(&std::cout);
   }
 
   aFS.Perform();
@@ -515,7 +515,7 @@ Standard_Integer fastsewing (Draw_Interpretor& theDI,
   {
     theDI << "Error: There are some problems while performing (" <<
                         (static_cast<Standard_Integer>(aStatus)) << ")\n";
-    aFS.GetStatuses(&cout);
+    aFS.GetStatuses(&std::cout);
   }
 
   DBRep::Set(theArgVal[1], aFS.GetResult());
@@ -580,7 +580,7 @@ static Standard_Integer getedgeregul
 {
   if( argc < 3)
   {
-    cout<<"Invalid number of arguments. Should be: checkedgeregularity edge face1 [face2]"<<endl;
+    std::cout<<"Invalid number of arguments. Should be: checkedgeregularity edge face1 [face2]"<<std::endl;
     return 1;
   }
   
@@ -589,7 +589,7 @@ static Standard_Integer getedgeregul
   TopoDS_Shape aFace2 = (argc > 3  ? DBRep::Get(argv[3],TopAbs_FACE) : aFace1);
   if( anEdge.IsNull() || aFace1.IsNull() || aFace2.IsNull())
   {
-    cout<<"Invalid number of arguments. Should be: getedgeregularity edge face1 [face2]"<<endl;
+    std::cout<<"Invalid number of arguments. Should be: getedgeregularity edge face1 [face2]"<<std::endl;
     return 1;
   }
  
index b292f75..1777b1d 100644 (file)
@@ -244,7 +244,7 @@ static Standard_Integer geompipe(Draw_Interpretor&,
   aPipe.Perform(Standard_True);
   if (!aPipe.IsDone())
   {
-    cout << "GeomFill_Pipe cannot make a surface" << endl;
+    std::cout << "GeomFill_Pipe cannot make a surface" << std::endl;
     return 1;
   }
   Handle(Geom_Surface) Sur = aPipe.Surface();
@@ -516,7 +516,7 @@ Standard_Integer thrusections(Draw_Interpretor&, Standard_Integer n, const char*
       BRepTest_Objects::SetHistory(Generator->Wires(), *Generator);
   }
   else {
-    cout << "Algorithm is not done" << endl;
+    std::cout << "Algorithm is not done" << std::endl;
   }
 
   return 0;
@@ -546,16 +546,16 @@ static Standard_Integer setsweep(Draw_Interpretor& di,
   Standard_Integer n, const char** a)
 {
   if (n == 1) {
-    //cout << "setsweep options [arg1 [arg2 [...]]] : options are :" << endl;
-    //cout << "   -FR : Tangent and Normal are given by Frenet trihedron" <<endl;
-    //cout << "   -CF : Tangente is given by Frenet," << endl;
-    //cout << "         the Normal is computed to minimize the torsion " << endl;
-    //cout << "   -DX Surf : Tangent and Normal are given by Darboux trihedron,"
-    //  <<endl;     
-    //cout << "       Surf have to be a shell or a face" <<endl;
-    //cout << "   -CN dx dy dz : BiNormal is given by dx dy dz" << endl;
-    //cout << "   -FX Tx Ty TZ [Nx Ny Nz] : Tangent and Normal are fixed" <<endl;
-    //cout << "   -G guide  0|1(ACR|Plan)  0|1(contact|no contact) : with guide"<<endl;
+    //std::cout << "setsweep options [arg1 [arg2 [...]]] : options are :" << std::endl;
+    //std::cout << "   -FR : Tangent and Normal are given by Frenet trihedron" <<std::endl;
+    //std::cout << "   -CF : Tangente is given by Frenet," << std::endl;
+    //std::cout << "         the Normal is computed to minimize the torsion " << std::endl;
+    //std::cout << "   -DX Surf : Tangent and Normal are given by Darboux trihedron,"
+    //  <<std::endl;     
+    //std::cout << "       Surf have to be a shell or a face" <<std::endl;
+    //std::cout << "   -CN dx dy dz : BiNormal is given by dx dy dz" << std::endl;
+    //std::cout << "   -FX Tx Ty TZ [Nx Ny Nz] : Tangent and Normal are fixed" <<std::endl;
+    //std::cout << "   -G guide  0|1(ACR|Plan)  0|1(contact|no contact) : with guide"<<std::endl;
     di << "setsweep options [arg1 [arg2 [...]]] : options are :\n";
     di << "   -FR : Tangent and Normal are given by Frenet trihedron\n";
     di << "   -CF : Tangente is given by Frenet,\n";
@@ -570,7 +570,7 @@ static Standard_Integer setsweep(Draw_Interpretor& di,
   }
 
   if (Sweep == 0) {
-    //cout << "You have forgotten the <<mksweep>> command  !"<< endl;
+    //std::cout << "You have forgotten the <<mksweep>> command  !"<< std::endl;
     di << "You have forgotten the <<mksweep>> command  !\n";
     return 1;
   }
@@ -585,14 +585,14 @@ static Standard_Integer setsweep(Draw_Interpretor& di,
   }
   else if (!strcmp(a[1], "-DX")) {
     if (n != 3) {
-      //cout << "bad arguments !" << endl;
+      //std::cout << "bad arguments !" << std::endl;
       di << "bad arguments !\n";
       return 1;
     }
     TopoDS_Shape Surf;
     Surf = DBRep::Get(a[2], TopAbs_SHAPE);
     if (Surf.IsNull()) {
-      //cout << a[2] <<"is not a shape !" << endl;
+      //std::cout << a[2] <<"is not a shape !" << std::endl;
       di << a[2] << "is not a shape !\n";
       return 1;
     }
@@ -600,7 +600,7 @@ static Standard_Integer setsweep(Draw_Interpretor& di,
   }
   else if (!strcmp(a[1], "-CN")) {
     if (n != 5) {
-      //cout << "bad arguments !" << endl;
+      //std::cout << "bad arguments !" << std::endl;
       di << "bad arguments !\n";
       return 1;
     }
@@ -609,7 +609,7 @@ static Standard_Integer setsweep(Draw_Interpretor& di,
   }
   else if (!strcmp(a[1], "-FX")) {
     if ((n != 5) && (n != 8)) {
-      //cout << "bad arguments !" << endl;
+      //std::cout << "bad arguments !" << std::endl;
       di << "bad arguments !\n";
       return 1;
     }
@@ -628,7 +628,7 @@ static Standard_Integer setsweep(Draw_Interpretor& di,
   {
     if (n != 5)
     {
-      //cout << "bad arguments !" << endl;
+      //std::cout << "bad arguments !" << std::endl;
       di << "bad arguments !\n";
       return 1;
     }
@@ -644,7 +644,7 @@ static Standard_Integer setsweep(Draw_Interpretor& di,
   }
 
   else {
-    //cout << "The option "<< a[1] << " is unknown !" << endl;
+    //std::cout << "The option "<< a[1] << " is unknown !" << std::endl;
     di << "The option " << a[1] << " is unknown !\n";
     return 1;
   }
@@ -659,11 +659,11 @@ static Standard_Integer addsweep(Draw_Interpretor& di,
   Standard_Integer n, const char** a)
 {
   if (n == 1) {
-    //cout << "addsweep wire/vertex [Vertex] [-T] [-R] [u0 v0 u1 v1 [...[uN vN]]] : options are :" << endl;
-    //cout << "   -T : the wire/vertex have to be translated to assume contact"<< endl;
-    //cout << "        with the spine" <<endl;
-    //cout << "   -R : the wire have to be rotated to assume orthogonality"<<endl;
-    //cout << "        with the spine's tangent" << endl;
+    //std::cout << "addsweep wire/vertex [Vertex] [-T] [-R] [u0 v0 u1 v1 [...[uN vN]]] : options are :" << std::endl;
+    //std::cout << "   -T : the wire/vertex have to be translated to assume contact"<< std::endl;
+    //std::cout << "        with the spine" <<std::endl;
+    //std::cout << "   -R : the wire have to be rotated to assume orthogonality"<<std::endl;
+    //std::cout << "        with the spine's tangent" << std::endl;
     di << "addsweep wire/vertex [Vertex] [-T] [-R] [u0 v0 u1 v1 [...[uN vN]]] : options are :\n";
     di << "   -T : the wire/vertex have to be translated to assume contact\n";
     di << "        with the spine\n";
@@ -673,7 +673,7 @@ static Standard_Integer addsweep(Draw_Interpretor& di,
   }
 
   if (Sweep == 0) {
-    //cout << "You have forgotten the <<mksweep>> command  !"<< endl;
+    //std::cout << "You have forgotten the <<mksweep>> command  !"<< std::endl;
     di << "You have forgotten the <<mksweep>> command  !\n";
     return 1;
   }
@@ -687,7 +687,7 @@ static Standard_Integer addsweep(Draw_Interpretor& di,
     (Section.ShapeType() != TopAbs_WIRE &&
     Section.ShapeType() != TopAbs_VERTEX))
   {
-    //cout << a[1] <<"is not a wire and is not a vertex!" << endl;
+    //std::cout << a[1] <<"is not a wire and is not a vertex!" << std::endl;
     di << a[1] << " is not a wire and is not a vertex!\n";
     return 1;
   }
@@ -723,7 +723,7 @@ static Standard_Integer addsweep(Draw_Interpretor& di,
     if (n > cur) {
       Standard_Integer nbreal = n - cur;
       if ((nbreal < 4) || (nbreal % 2 != 0)) {
-        //cout << "bad arguments ! :" <<a[cur] << endl;
+        //std::cout << "bad arguments ! :" <<a[cur] << std::endl;
         di << "bad arguments ! :" << a[cur] << "\n";
       }
       else { //law of interpolation
@@ -766,7 +766,7 @@ static Standard_Integer deletesweep(Draw_Interpretor& di,
   Section = TopoDS::Wire(InputShape);
   //  Section = TopoDS::Wire(DBRep::Get(a[1],TopAbs_SHAPE));
   if (Section.IsNull()) {
-    //cout << a[1] <<"is not a wire !" << endl;
+    //std::cout << a[1] <<"is not a wire !" << std::endl;
     di << a[1] << "is not a wire !\n";
     return 1;
   }
@@ -783,14 +783,14 @@ static Standard_Integer buildsweep(Draw_Interpretor& di,
   Standard_Integer n, const char** a)
 {
   if (n == 1) {
-    //cout << "build sweep result [-M/-C/-R] [-S] [tol] : options are" << endl;
-    //cout << "   -M : Discontinuities are treated by Modfication of"<< endl; 
-    //cout << "        the sweeping mode : it is the default" <<endl;
-    //cout << "   -C : Discontinuities are treated like Right Corner" << endl;
-    //cout << "        Treatement is Extent && Intersect" << endl;
-    //cout << "   -R : Discontinuities are treated like Round Corner" << endl;
-    //cout << "        Treatement is Intersect and Fill" << endl;
-    //cout << "   -S : To build a Solid" << endl;
+    //std::cout << "build sweep result [-M/-C/-R] [-S] [tol] : options are" << std::endl;
+    //std::cout << "   -M : Discontinuities are treated by Modfication of"<< std::endl; 
+    //std::cout << "        the sweeping mode : it is the default" <<std::endl;
+    //std::cout << "   -C : Discontinuities are treated like Right Corner" << std::endl;
+    //std::cout << "        Treatement is Extent && Intersect" << std::endl;
+    //std::cout << "   -R : Discontinuities are treated like Round Corner" << std::endl;
+    //std::cout << "        Treatement is Intersect and Fill" << std::endl;
+    //std::cout << "   -S : To build a Solid" << std::endl;
     di << "build sweep result [-M/-C/-R] [-S] [tol] : options are\n";
     di << "   -M : Discontinuities are treated by Modfication of\n";
     di << "        the sweeping mode : it is the default\n";
@@ -804,13 +804,13 @@ static Standard_Integer buildsweep(Draw_Interpretor& di,
 
   Standard_Boolean mksolid = Standard_False;
   if (Sweep == 0) {
-    //cout << "You have forgotten the <<mksweep>> command  !"<< endl;
+    //std::cout << "You have forgotten the <<mksweep>> command  !"<< std::endl;
     di << "You have forgotten the <<mksweep>> command  !\n";
     return 1;
   }
 
   if (!Sweep->IsReady()) {
-    //cout << "You have forgotten the <<addsweep>> command  !"<< endl;
+    //std::cout << "You have forgotten the <<addsweep>> command  !"<< std::endl;
     di << "You have forgotten the <<addsweep>> command  !\n";
     return 1;
   }
@@ -837,15 +837,15 @@ static Standard_Integer buildsweep(Draw_Interpretor& di,
   // Calcul le resultat
   Sweep->Build();
   if (!Sweep->IsDone()) {
-    //cout << "Buildsweep : Not Done" << endl;
+    //std::cout << "Buildsweep : Not Done" << std::endl;
     di << "Buildsweep : Not Done\n";
     BRepBuilderAPI_PipeError Stat = Sweep->GetStatus();
     if (Stat == BRepBuilderAPI_PlaneNotIntersectGuide) {
-      //cout << "Buildsweep : One Plane not intersect the guide" << endl;
+      //std::cout << "Buildsweep : One Plane not intersect the guide" << std::endl;
       di << "Buildsweep : One Plane not intersect the guide\n";
     }
     if (Stat == BRepBuilderAPI_ImpossibleContact) {
-      //cout << "BuildSweep : One section can not be in contact with the guide" << endl;
+      //std::cout << "BuildSweep : One section can not be in contact with the guide" << std::endl;
       di << "BuildSweep : One section can not be in contact with the guide\n";
     }
   }
@@ -853,7 +853,7 @@ static Standard_Integer buildsweep(Draw_Interpretor& di,
     if (mksolid) {
       Standard_Boolean B;
       B = Sweep->MakeSolid();
-      //if (!B) cout << " BuildSweep : It is impossible to make a solid !" << endl;
+      //if (!B) std::cout << " BuildSweep : It is impossible to make a solid !" << std::endl;
       if (!B) di << " BuildSweep : It is impossible to make a solid !\n";
     }
     result = Sweep->Shape();
@@ -899,13 +899,13 @@ static Standard_Integer simulsweep(Draw_Interpretor& di,
   if ((n != 3) && (n != 4)) return 1;
 
   if (Sweep == 0) {
-    //cout << "You have forgotten the <<mksweep>> command  !"<< endl;
+    //std::cout << "You have forgotten the <<mksweep>> command  !"<< std::endl;
     di << "You have forgotten the <<mksweep>> command  !\n";
     return 1;
   }
 
   if (!Sweep->IsReady()) {
-    //cout << "You have forgotten the <<addsweep>> command  !"<< endl;
+    //std::cout << "You have forgotten the <<addsweep>> command  !"<< std::endl;
     di << "You have forgotten the <<addsweep>> command  !\n";
     return 1;
   }
index 5134caf..6465b83 100644 (file)
@@ -118,7 +118,7 @@ static Standard_Integer section(Draw_Interpretor& , Standard_Integer n, const ch
       Sec.Approximation(Standard_True);
     else if (strcasecmp(a[i], "-p"))
     {
-      cout << "Unknown option: " << a[i] << endl;
+      std::cout << "Unknown option: " << a[i] << std::endl;
       return 1;
     }
   }
@@ -170,7 +170,7 @@ static Standard_Integer halfspace(Draw_Interpretor& di,
   if ( Face.IsNull()) {
     TopoDS_Shape Shell  = DBRep::Get(a[2],TopAbs_SHELL);
     if (Shell.IsNull()) {
-      //cout << a[2] << " must be a face or a shell" << endl;
+      //std::cout << a[2] << " must be a face or a shell" << std::endl;
       di << a[2] << " must be a face or a shell\n";
       return 1;
     }
@@ -180,7 +180,7 @@ static Standard_Integer halfspace(Draw_Interpretor& di,
        DBRep::Set(a[1],Half.Solid());
       }
       else {
-       //cout << " HalfSpace NotDone" << endl;
+       //std::cout << " HalfSpace NotDone" << std::endl;
        di << " HalfSpace NotDone\n";
        return 1;
       }
@@ -192,7 +192,7 @@ static Standard_Integer halfspace(Draw_Interpretor& di,
       DBRep::Set(a[1],Half.Solid());
     }
     else {
-      //cout << " HalfSpace NotDone" << endl;
+      //std::cout << " HalfSpace NotDone" << std::endl;
       di << " HalfSpace NotDone\n";
       return 1;
     }
index 0d5793a..6cf6f97 100644 (file)
@@ -684,7 +684,7 @@ void  BRepTools::Write(const TopoDS_Shape& Sh, Standard_OStream& S,
 //=======================================================================
 
 void  BRepTools::Read(TopoDS_Shape& Sh, 
-                      istream& S, 
+                      std::istream& S, 
                       const BRep_Builder& B,
                       const Handle(Message_ProgressIndicator)& PR)
 {
@@ -703,8 +703,8 @@ Standard_Boolean  BRepTools::Write(const TopoDS_Shape& Sh,
                                    const Standard_CString File,
                                    const Handle(Message_ProgressIndicator)& PR)
 {
-  ofstream os;
-  OSD_OpenStream(os, File, ios::out);
+  std::ofstream os;
+  OSD_OpenStream(os, File, std::ios::out);
   if (!os.is_open() || !os.good())
     return Standard_False;
 
@@ -741,9 +741,9 @@ Standard_Boolean BRepTools::Read(TopoDS_Shape& Sh,
                                  const BRep_Builder& B,
                                  const Handle(Message_ProgressIndicator)& PR)
 {
-  filebuf fic;
-  istream in(&fic);
-  OSD_OpenStream (fic, File, ios::in);
+  std::filebuf fic;
+  std::istream in(&fic);
+  OSD_OpenStream (fic, File, std::ios::in);
   if(!fic.is_open()) return Standard_False;
   
   BRepTools_ShapeSet SS(B);
index 3dda731..df54e59 100644 (file)
@@ -52,11 +52,11 @@ const char* BRepTools_Dump (void* theShapePtr)
   try {
     OCC_CATCH_SIGNALS
 
-    cout <<"\n\n";
-    BRepTools::Dump (*(TopoDS_Shape*)theShapePtr, cout);
-    cout << endl;
+    std::cout <<"\n\n";
+    BRepTools::Dump (*(TopoDS_Shape*)theShapePtr, std::cout);
+    std::cout << std::endl;
 
-    return "Shape dumped to cout";
+    return "Shape dumped to std::cout";
   }
   catch (Standard_Failure const& anException)
   {
@@ -74,13 +74,13 @@ const char* BRepTools_DumpLoc (void* theLocationPtr)
   try {
     OCC_CATCH_SIGNALS
 
-      cout <<"\n\n";
+      std::cout <<"\n\n";
     TopTools_LocationSet LS;
     LS.Add(*(TopLoc_Location*)theLocationPtr);
-    LS.Dump(cout);
-    cout <<endl;
+    LS.Dump(std::cout);
+    std::cout <<std::endl;
 
-    return "Location dumped to cout";
+    return "Location dumped to std::cout";
   }
   catch (Standard_Failure const& anException)
   {
index bf7aa77..416ec22 100644 (file)
@@ -107,7 +107,7 @@ static void CopyShape(const TopoDS_Edge& E,TopTools_IndexedDataMapOfShapeShape&
 }*/
 void BRepTools_Quilt::Add(const TopoDS_Shape& S)
 {
-  //cout <<" Version of sewing with free edges"<<endl;
+  //std::cout <<" Version of sewing with free edges"<<std::endl;
   // Binds all the faces of S
   //  - to the face itself if it is not copied
   //  - to the copy if it is copied
index fbfa18a..9a7ad98 100644 (file)
@@ -181,7 +181,7 @@ void BRepTools_ReShape::replace (const TopoDS_Shape& ashape,
 #ifdef OCCT_DEBUG
   if ( IsRecorded ( shape ) && ((myConsiderLocation && ! Value ( shape ).IsPartner ( newshape )) ||
                                  (!myConsiderLocation && ! Value ( shape ).IsSame ( newshape )))) 
-    cout << "Warning: BRepTools_ReShape::Replace: shape already recorded" << endl;
+    std::cout << "Warning: BRepTools_ReShape::Replace: shape already recorded" << std::endl;
 #endif
 
   myShapeToReplacement.Bind(shape, TReplacement(newshape, theKind));
index a89ebf5..2ea80e8 100644 (file)
@@ -70,7 +70,7 @@
 //
 //              On NT platforms (in BRepTools_ShapeSet):
 //              ----------------
-//                In Visual C++ 5 (or higher) the fstream::tellg method is not 
+//                In Visual C++ 5 (or higher) the std::fstream::tellg method is not 
 //                conform to Standard C++ because it modifies the file pointer
 //                position and returns a wrong position. After that the next
 //                readings are shifted and the reading process stop with errors.
@@ -1111,7 +1111,7 @@ void  BRepTools_ShapeSet::ReadGeometry(const TopAbs_ShapeEnum T,
     {
     // create a face :
     TopoDS_Face& F = TopoDS::Face(S);
-//    streampos pos;
+//    std::streampos pos;
     myBuilder.MakeFace(F);
 
     IS >> val; // natural restriction
@@ -1390,12 +1390,12 @@ void BRepTools_ShapeSet::WritePolygon3D(Standard_OStream&      OS,
     Standard_Integer i1, nbNodes = P->NbNodes();
     const TColgp_Array1OfPnt& Nodes = P->Nodes();
     for (j = 1; j <= nbNodes; j++) {
-      if (!Compact) OS << setw(10) << j << " : ";
-      if (!Compact) OS << setw(17);
+      if (!Compact) OS << std::setw(10) << j << " : ";
+      if (!Compact) OS << std::setw(17);
       OS << Nodes(j).X() << " ";
-      if (!Compact) OS << setw(17);
+      if (!Compact) OS << std::setw(17);
       OS << Nodes(j).Y() << " ";
-      if (!Compact) OS << setw(17);
+      if (!Compact) OS << std::setw(17);
       OS << Nodes(j).Z();
       if (!Compact) OS << "\n";
       else OS << " ";
@@ -1518,12 +1518,12 @@ void BRepTools_ShapeSet::WriteTriangulation(Standard_OStream&      OS,
     nbNodes = T->NbNodes();
     const TColgp_Array1OfPnt& Nodes = T->Nodes();
     for (j = 1; j <= nbNodes; j++) {
-      if (!Compact) OS << setw(10) << j << " : ";
-      if (!Compact) OS << setw(17);
+      if (!Compact) OS << std::setw(10) << j << " : ";
+      if (!Compact) OS << std::setw(17);
       OS << Nodes(j).X() << " ";
-      if (!Compact) OS << setw(17);
+      if (!Compact) OS << std::setw(17);
       OS << Nodes(j).Y() << " ";
-      if (!Compact) OS << setw(17);
+      if (!Compact) OS << std::setw(17);
       OS << Nodes(j).Z();
       if (!Compact) OS << "\n";
       else OS << " ";
@@ -1533,10 +1533,10 @@ void BRepTools_ShapeSet::WriteTriangulation(Standard_OStream&      OS,
       if (!Compact) OS << "\nUV Nodes :\n";
       const TColgp_Array1OfPnt2d& UVNodes = T->UVNodes();
       for (j = 1; j <= nbNodes; j++) {
-        if (!Compact) OS << setw(10) << j << " : ";
-        if (!Compact) OS << setw(17);
+        if (!Compact) OS << std::setw(10) << j << " : ";
+        if (!Compact) OS << std::setw(17);
         OS << UVNodes(j).X() << " ";
-        if (!Compact) OS << setw(17);
+        if (!Compact) OS << std::setw(17);
         OS << UVNodes(j).Y();
         if (!Compact) OS << "\n";
         else OS << " ";
@@ -1547,13 +1547,13 @@ void BRepTools_ShapeSet::WriteTriangulation(Standard_OStream&      OS,
     nbTriangles = T->NbTriangles();
     const Poly_Array1OfTriangle& Triangles = T->Triangles();
     for (j = 1; j <= nbTriangles; j++) {
-      if (!Compact) OS << setw(10) << j << " : ";
+      if (!Compact) OS << std::setw(10) << j << " : ";
       Triangles(j).Get(n1, n2, n3);
-      if (!Compact) OS << setw(10);
+      if (!Compact) OS << std::setw(10);
       OS << n1 << " ";
-      if (!Compact) OS << setw(10);
+      if (!Compact) OS << std::setw(10);
       OS << n2 << " ";
-      if (!Compact) OS << setw(10);
+      if (!Compact) OS << std::setw(10);
       OS << n3;
       if (!Compact) OS << "\n";
       else OS << " ";
index aa332b7..e3190f0 100644 (file)
@@ -265,10 +265,10 @@ BRepTopAdaptor_FClass2d::BRepTopAdaptor_FClass2d(const TopoDS_Face& aFace,const
 /*
 #ifdef OCCT_DEBUG
 
-         cout << endl;
-         cout << "*** BRepTopAdaptor_Fclass2d  ** Wire Probablement FAUX **" << endl;
-         cout << "*** WireExplorer does not find all edges " << endl;
-         cout << "*** Connect old classifier" << endl;
+         std::cout << std::endl;
+         std::cout << "*** BRepTopAdaptor_Fclass2d  ** Wire Probablement FAUX **" << std::endl;
+         std::cout << "*** WireExplorer does not find all edges " << std::endl;
+         std::cout << "*** Connect old classifier" << std::endl;
 #endif
 */
          TColgp_Array1OfPnt2d PClass(1,2);
@@ -408,7 +408,7 @@ BRepTopAdaptor_FClass2d::BRepTopAdaptor_FClass2d(const TopoDS_Face& aFace,const
              
              if(FlecheU<Toluv) FlecheU = Toluv;
              if(FlecheV<Toluv) FlecheV = Toluv;
-             //-- cout<<" U:"<<FlecheU<<" V:"<<FlecheV<<endl;
+             //-- std::cout<<" U:"<<FlecheU<<" V:"<<FlecheV<<std::endl;
              TabClass.Append((void *)new CSLib_Class2d(PClass,FlecheU,FlecheV,Umin,Vmin,Umax,Vmax));
 
 //           if((angle<2 && angle>-2)||(angle>10)||(angle<-10))
@@ -416,10 +416,10 @@ BRepTopAdaptor_FClass2d::BRepTopAdaptor_FClass2d(const TopoDS_Face& aFace,const
 //               BadWire=1;
 //               TabOrien.Append(-1);
 //#ifdef OCCT_DEBUG
-//               cout << endl;
-//               cout << "*** BRepTopAdaptor_Fclass2d  ** Wire Probably FALSE **" << endl;
-//               cout << "*** Total rotation angle of the wire : " << angle << endl;
-//               cout << "*** Connect the old classifier" << endl;
+//               std::cout << std::endl;
+//               std::cout << "*** BRepTopAdaptor_Fclass2d  ** Wire Probably FALSE **" << std::endl;
+//               std::cout << "*** Total rotation angle of the wire : " << angle << std::endl;
+//               std::cout << "*** Connect the old classifier" << std::endl;
 //#endif
 //             } 
 //           else TabOrien.Append(((angle>0.0)? 1 : 0));
@@ -427,10 +427,10 @@ BRepTopAdaptor_FClass2d::BRepTopAdaptor_FClass2d(const TopoDS_Face& aFace,const
          else
            { 
 #ifdef OCCT_DEBUG
-             cout << endl;
-             cout << "*** BRepTopAdaptor_Fclass2d  ** Wire Probably FALSE **" << endl;
-             cout << "*** The sample wire contains less than 3 points" << endl;
-             cout << "*** Connect the old classifier" << endl;
+             std::cout << std::endl;
+             std::cout << "*** BRepTopAdaptor_Fclass2d  ** Wire Probably FALSE **" << std::endl;
+             std::cout << "*** The sample wire contains less than 3 points" << std::endl;
+             std::cout << "*** Connect the old classifier" << std::endl;
 #endif       
              BadWire=1;
              TabOrien.Append(-1);
@@ -772,7 +772,7 @@ void BRepTopAdaptor_FClass2d::Destroy() {
 //const BRepTopAdaptor_FClass2d &  BRepTopAdaptor_FClass2d::Copy(const BRepTopAdaptor_FClass2d& Other) const { 
 const BRepTopAdaptor_FClass2d &  BRepTopAdaptor_FClass2d::Copy(const BRepTopAdaptor_FClass2d& ) const { 
 #ifdef OCCT_DEBUG
-  cerr<<"Copy not allowed in BRepTopAdaptor_FClass2d"<<endl;
+  std::cerr<<"Copy not allowed in BRepTopAdaptor_FClass2d"<<std::endl;
 #endif
   throw Standard_ConstructionError();
 }
index 80b7d14..9261958 100644 (file)
@@ -73,7 +73,7 @@ Handle(BRepTopAdaptor_TopolTool) BRepTopAdaptor_Tool::GetTopolTool() {
   }
   else { 
 #ifdef OCCT_DEBUG
-    cout<<"\n*** Error ds Handle(BRepTopAdaptor_TopolTool) BRepTopAdaptor_Tool::GetTopolTool()\n"<<endl;
+    std::cout<<"\n*** Error ds Handle(BRepTopAdaptor_TopolTool) BRepTopAdaptor_Tool::GetTopolTool()\n"<<std::endl;
 #endif
     return(myTopolTool);
   }
@@ -85,7 +85,7 @@ Handle(Adaptor3d_HSurface)  BRepTopAdaptor_Tool::GetSurface() {
   }
   else { 
 #ifdef OCCT_DEBUG
-    cout<<"\n*** Error ds Handle(BRepTopAdaptor_TopolTool) BRepTopAdaptor_Tool::GetSurface()\n"<<endl;
+    std::cout<<"\n*** Error ds Handle(BRepTopAdaptor_TopolTool) BRepTopAdaptor_Tool::GetSurface()\n"<<std::endl;
 #endif
     return(myHSurface);
   }
index 340c30d..8bca724 100644 (file)
@@ -2917,7 +2917,7 @@ BSplCLib::SolveBandedSystem(const math_Matrix&  Matrix,
       Inverse = 1.0e0 / divizor ;
     else {
       Inverse = 1.0e0;
-//      cout << "  BSplCLib::SolveBandedSystem() : zero determinant " << endl;
+//      std::cout << "  BSplCLib::SolveBandedSystem() : zero determinant " << std::endl;
       ReturnCode = 1;
       goto FINISH;
     }
@@ -3518,7 +3518,7 @@ void  BSplCLib::TangExtendToConstraint
 {
 #ifdef OCCT_DEBUG
   if (CDegree<Continuity+1) {
-    cout<<"The BSpline degree must be greater than the order of continuity"<<endl;
+    std::cout<<"The BSpline degree must be greater than the order of continuity"<<std::endl;
   }
 #endif
   Standard_Real * Padr = &Poles ;
index cfb73ef..03a9a95 100644 (file)
@@ -3259,7 +3259,7 @@ void BSplSLib::Resolution(const TColgp_Array2OfPnt&      Poles,
   else { 
     UTolerance=VTolerance=0.0;
 #ifdef OCCT_DEBUG
-    cout<<"ElSLib.cxx : maxderivative = 0.0 "<<endl;
+    std::cout<<"ElSLib.cxx : maxderivative = 0.0 "<<std::endl;
 #endif
   }
 }
index 00a6b62..6bbb102 100644 (file)
@@ -794,7 +794,7 @@ static void CutEdge (const TopoDS_Edge&          E,
     SV.Remove(1);
     
     if ( V1.IsSame(V2)) {
-      cout << "Vertex Confondus dans CutEdges" << endl;
+      std::cout << "Vertex Confondus dans CutEdges" << std::endl;
       continue;
     }
     //-------------------------------------------
@@ -1065,12 +1065,12 @@ void BiTgte_Blend::Perform(const Standard_Boolean BuildShape)
 
 #ifdef OCCT_DEBUG
   ChFi3d_ResultChron(cl_total, t_total);
-  cout<<endl; 
-  cout<<"Blend_PERFORM: temps total "<<t_total<<" s  dont :"<<endl;
-  cout<<"- ComputeCenters  "<<t_center<<" s"<<endl;  
-  cout<<"- ComputeSurfaces "<<t_surface<<" s"<<endl;
-  cout<<"----> MakeCurve   "<<t_mkcurve<<" s"<<endl;
-  if ( myBuildShape)  cout<<"- ComputeShape "<<t_shape<<" s"<<endl;
+  std::cout<<std::endl; 
+  std::cout<<"Blend_PERFORM: temps total "<<t_total<<" s  dont :"<<std::endl;
+  std::cout<<"- ComputeCenters  "<<t_center<<" s"<<std::endl;  
+  std::cout<<"- ComputeSurfaces "<<t_surface<<" s"<<std::endl;
+  std::cout<<"----> MakeCurve   "<<t_mkcurve<<" s"<<std::endl;
+  if ( myBuildShape)  std::cout<<"- ComputeShape "<<t_shape<<" s"<<std::endl;
 #endif
 
   myDone = Standard_True;
@@ -1852,7 +1852,7 @@ void BiTgte_Blend::ComputeCenters()
 
 #ifdef OCCT_DEBUG
   if ( myResult.IsNull()) {
-    cout << " No Lines of Generated Centers" << endl;
+    std::cout << " No Lines of Generated Centers" << std::endl;
   }
 #ifdef DRAW
   else {
@@ -2014,8 +2014,8 @@ void BiTgte_Blend::ComputeSurfaces()
        BRep_Tool::CurveOnSurface(CurCutE,F2,f2,l2);
       if ( PC1.IsNull() || PC2.IsNull()) {
 #ifdef OCCT_DEBUG
-       cout << "No PCurves on Intersections : No tubes constructed";
-       cout << endl;
+       std::cout << "No PCurves on Intersections : No tubes constructed";
+       std::cout << std::endl;
 #endif 
        continue;
       }
@@ -2069,7 +2069,7 @@ void BiTgte_Blend::ComputeSurfaces()
        if (MKE.IsDone()) 
          E1 = MKE.Edge();
        else  {
-         cout << "Edge Not Done" << endl;
+         std::cout << "Edge Not Done" << std::endl;
          E1 = MKE.Edge();
        }
          
@@ -2108,7 +2108,7 @@ void BiTgte_Blend::ComputeSurfaces()
        if (MKE.IsDone()) 
          E2 = MKE.Edge();
        else {
-         cout << "edge not Done" << endl;
+         std::cout << "edge not Done" << std::endl;
          E2 = MKE.Edge();
        }
        KPartCurve3d(E2,PC2,GS2);
@@ -2591,8 +2591,8 @@ Standard_Boolean BiTgte_Blend::Intersect
 
 #ifdef OCCT_DEBUG
     if ( F1surBordLibre && F2surBordLibre) {
-      cout << "Rejection : 2 tubes on free border are not intersected";
-      cout << endl;
+      std::cout << "Rejection : 2 tubes on free border are not intersected";
+      std::cout << std::endl;
     }
 #endif
 
@@ -2630,9 +2630,9 @@ Standard_Boolean BiTgte_Blend::Intersect
          Standard_Boolean IsOnR2 = IsOnRestriction(V1,CurE,F2,E2);
 #ifdef OCCT_DEBUG
          if (IsOnR1 && IsOnR2) {
-           cout << "Leave in the same tps on 2 faces, ";
-           cout << "propagation only on free border";
-           cout << endl;
+           std::cout << "Leave in the same tps on 2 faces, ";
+           std::cout << "propagation only on free border";
+           std::cout << std::endl;
          }
 #endif
          if ( IsOnR1 ) {
@@ -2659,9 +2659,9 @@ Standard_Boolean BiTgte_Blend::Intersect
          // A priori, only facet is closed.
 #ifdef OCCT_DEBUG
          if (IsOnR1 && IsOnR2) {
-           cout << "Leave with the same tps on 2 faces, ";
-           cout << "propagate only if the border is free";
-           cout << endl;
+           std::cout << "Leave with the same tps on 2 faces, ";
+           std::cout << "propagate only if the border is free";
+           std::cout << std::endl;
          }
 #endif
          if ( IsOnR1) {
index 312c8a7..59a5a15 100644 (file)
@@ -45,7 +45,7 @@ const Handle(Standard_Transient)& BinDrivers::Factory(const Standard_GUID& theGU
   if (theGUID == BinStorageDriver)
   {
 #ifdef OCCT_DEBUG
-    cout << "BinDrivers : Storage Plugin" << endl;
+    std::cout << "BinDrivers : Storage Plugin" << std::endl;
 #endif
     static Handle(Standard_Transient) model_sd =
       new BinDrivers_DocumentStorageDriver;
@@ -55,7 +55,7 @@ const Handle(Standard_Transient)& BinDrivers::Factory(const Standard_GUID& theGU
   if (theGUID == BinRetrievalDriver)
   {
 #ifdef OCCT_DEBUG
-    cout << "BinDrivers : Retrieval Plugin" << endl;
+    std::cout << "BinDrivers : Retrieval Plugin" << std::endl;
 #endif
     static Handle(Standard_Transient) model_rd =
       new BinDrivers_DocumentRetrievalDriver;
index 2b9dcd2..1d67742 100644 (file)
@@ -44,7 +44,7 @@ const Handle(Standard_Transient)& BinLDrivers::Factory(const Standard_GUID& theG
   if (theGUID == BinLStorageDriver)
   {
 #ifdef OCCT_DEBUG
-    cout << "BinLDrivers : Storage Plugin" << endl;
+    std::cout << "BinLDrivers : Storage Plugin" << std::endl;
 #endif
     static Handle(Standard_Transient) model_sd =
       new BinLDrivers_DocumentStorageDriver;
@@ -54,7 +54,7 @@ const Handle(Standard_Transient)& BinLDrivers::Factory(const Standard_GUID& theG
   if (theGUID == BinLRetrievalDriver)
   {
 #ifdef OCCT_DEBUG
-    cout << "BinLDrivers : Retrieval Plugin" << endl;
+    std::cout << "BinLDrivers : Retrieval Plugin" << std::endl;
 #endif
     static Handle(Standard_Transient) model_rd =
       new BinLDrivers_DocumentRetrievalDriver;
index 662cf95..d87d836 100644 (file)
@@ -188,8 +188,8 @@ void BinLDrivers_DocumentRetrievalDriver::Read (Standard_IStream&
         TCollection_AsciiString  newName;      
         if(Storage_Schema::CheckTypeMigration(aStr, newName)) {
 #ifdef OCCT_DEBUG
-          cout << "CheckTypeMigration:OldType = " <<aStr << " Len = "<<aStr.Length()<<endl;
-          cout << "CheckTypeMigration:NewType = " <<newName  << " Len = "<< newName.Length()<<endl;
+          std::cout << "CheckTypeMigration:OldType = " <<aStr << " Len = "<<aStr.Length()<<std::endl;
+          std::cout << "CheckTypeMigration:NewType = " <<newName  << " Len = "<< newName.Length()<<std::endl;
 #endif
           aStr = newName;
         }
@@ -222,7 +222,7 @@ void BinLDrivers_DocumentRetrievalDriver::Read (Standard_IStream&
   mySections.Clear();
   myPAtt.Init();
   Handle(TDF_Data) aData = new TDF_Data();
-  streampos aDocumentPos = -1;
+  std::streampos aDocumentPos = -1;
 
   // 2b. Read the TOC of Sections
   if (aFileVer >= 3) {
@@ -245,7 +245,7 @@ void BinLDrivers_DocumentRetrievalDriver::Read (Standard_IStream&
     for (; anIterS.More(); anIterS.Next()) {
       BinLDrivers_DocumentSection& aCurSection = anIterS.ChangeValue();
       if (aCurSection.IsPostRead() == Standard_False) {
-        theIStream.seekg ((streampos) aCurSection.Offset());
+        theIStream.seekg ((std::streampos) aCurSection.Offset());
         if (aCurSection.Name().IsEqual ((Standard_CString)SHAPESECTION_POS)) 
           ReadShapeSection (aCurSection, theIStream);
         else
@@ -278,11 +278,11 @@ void BinLDrivers_DocumentRetrievalDriver::Read (Standard_IStream&
       aShapeSectionPos = InverseInt (aShapeSectionPos);
 #endif
 #ifdef OCCT_DEBUG
-      cout <<"aShapeSectionPos = " <<aShapeSectionPos <<endl;
+      std::cout <<"aShapeSectionPos = " <<aShapeSectionPos <<std::endl;
 #endif
       if(aShapeSectionPos) { 
         aDocumentPos = theIStream.tellg();
-        theIStream.seekg((streampos) aShapeSectionPos);
+        theIStream.seekg((std::streampos) aShapeSectionPos);
 
         CheckShapeSection(aShapeSectionPos, theIStream);
         // Read Shapes
@@ -317,7 +317,7 @@ void BinLDrivers_DocumentRetrievalDriver::Read (Standard_IStream&
     for (; aSectIter.More(); aSectIter.Next()) {
       BinLDrivers_DocumentSection& aCurSection = aSectIter.ChangeValue();
       if (aCurSection.IsPostRead()) {
-        theIStream.seekg ((streampos) aCurSection.Offset());
+        theIStream.seekg ((std::streampos) aCurSection.Offset());
         ReadSection (aCurSection, theDoc, theIStream); 
       }
     }
@@ -487,7 +487,7 @@ void BinLDrivers_DocumentRetrievalDriver::CheckShapeSection(
   {
     const std::streamoff endPos = IS.rdbuf()->pubseekoff(0L, std::ios_base::end, std::ios_base::in);
 #ifdef OCCT_DEBUG
-    cout << "endPos = " << endPos <<endl;
+    std::cout << "endPos = " << endPos <<std::endl;
 #endif
     if(ShapeSectionPos != endPos) {
       const TCollection_ExtendedString aMethStr ("BinLDrivers_DocumentRetrievalDriver: ");
index e9c8b28..d0663b1 100644 (file)
@@ -77,7 +77,7 @@ Standard_Boolean BinMDataStd_IntegerArrayDriver::Paste
       aDelta = (aDeltaValue != 0);
   }
 #ifdef OCCT_DEBUG
-    //cout << "Current Document Format Version = " << theRelocTable.GetHeaderData()->StorageVersion().IntegerValue() <<endl;
+    //std::cout << "Current Document Format Version = " << theRelocTable.GetHeaderData()->StorageVersion().IntegerValue() <<std::endl;
 #endif
   anAtt->SetDelta(aDelta);
 
index fa08597..5a45a1e 100644 (file)
@@ -242,7 +242,7 @@ Standard_Boolean BinMNaming_NamingDriver::Paste
        ok = theSource >> entry;
        if(ok) {
 #ifdef OCCT_DEBUG
-         cout << "NamingDriver:: Retrieved Context Label = " << entry << " Ok = " << theSource.IsOK()  <<endl;
+         std::cout << "NamingDriver:: Retrieved Context Label = " << entry << " Ok = " << theSource.IsOK()  <<std::endl;
 #endif
         
 //6. context label
@@ -281,7 +281,7 @@ Standard_Boolean BinMNaming_NamingDriver::Paste
         OrientationToApply = (TopAbs_Orientation)anIndx;
                aName.Orientation(OrientationToApply);
 #ifdef OCCT_DEBUG
-           cout << "NamingDriver:: Retrieved Orientation = " << OrientationToApply << " Ok = " << theSource.IsOK()  <<endl;
+           std::cout << "NamingDriver:: Retrieved Orientation = " << OrientationToApply << " Ok = " << theSource.IsOK()  <<std::endl;
 #endif
          } else {
           aMsg = TCollection_ExtendedString("BinMNaming_NamingDriver: "
@@ -291,7 +291,7 @@ Standard_Boolean BinMNaming_NamingDriver::Paste
        }
        }
 #ifdef OCCT_DEBUG
-             cout << "Current Document Format Version = " << theRelocTable.GetHeaderData()->StorageVersion().IntegerValue() <<endl;      
+             std::cout << "Current Document Format Version = " << theRelocTable.GetHeaderData()->StorageVersion().IntegerValue() <<std::endl;      
 #endif
        }
   }
index dbf79b0..43fa820 100644 (file)
@@ -178,7 +178,7 @@ void BinMXCAFDoc_LocationDriver::Translate(const TopLoc_Location& theLoc,
   if( myLocations == 0 )
   {
 #ifdef OCCT_DEBUG
-    cout<<"Pointer to LocationSet is NULL\n";
+    std::cout<<"Pointer to LocationSet is NULL\n";
 #endif
     return;
   }
index c8444de..7425c20 100644 (file)
@@ -36,7 +36,7 @@ const Handle(Standard_Transient)& BinTObjDrivers::Factory(const Standard_GUID& a
   if(aGUID == BinStorageDriver)
   {
 #ifdef OCCT_DEBUG
-    cout << "BinTObjDrivers : Storage Plugin" << endl;
+    std::cout << "BinTObjDrivers : Storage Plugin" << std::endl;
 #endif
     static Handle(Standard_Transient) model_sd
       = new BinTObjDrivers_DocumentStorageDriver;
@@ -46,7 +46,7 @@ const Handle(Standard_Transient)& BinTObjDrivers::Factory(const Standard_GUID& a
   if(aGUID == BinRetrievalDriver)
   {  
 #ifdef OCCT_DEBUG
-    cout << "BinTObjDrivers : Retrieval Plugin" << endl;
+    std::cout << "BinTObjDrivers : Retrieval Plugin" << std::endl;
 #endif
     static Handle (Standard_Transient) model_rd
       = new BinTObjDrivers_DocumentRetrievalDriver;
index 11d4d46..19f62f2 100644 (file)
@@ -165,9 +165,9 @@ void BinTools::Read (TopoDS_Shape& theShape, Standard_IStream& theStream)
 
 Standard_Boolean BinTools::Write (const TopoDS_Shape& theShape, const Standard_CString theFile)
 {
-  ofstream aStream;
+  std::ofstream aStream;
   aStream.precision (15);
-  OSD_OpenStream (aStream, theFile, ios::out | ios::binary);
+  OSD_OpenStream (aStream, theFile, std::ios::out | std::ios::binary);
   if (!aStream.good())
     return Standard_False;
 
@@ -183,8 +183,8 @@ Standard_Boolean BinTools::Write (const TopoDS_Shape& theShape, const Standard_C
 
 Standard_Boolean BinTools::Read (TopoDS_Shape& theShape, const Standard_CString theFile)
 {
-  filebuf aBuf;
-  OSD_OpenStream (aBuf, theFile, ios::in | ios::binary);
+  std::filebuf aBuf;
+  OSD_OpenStream (aBuf, theFile, std::ios::in | std::ios::binary);
   if (!aBuf.is_open())
     return Standard_False;
 
index 0f34bf7..6454d82 100644 (file)
@@ -334,8 +334,8 @@ void BinTools_Curve2dSet::WriteCurve2d(const Handle(Geom2d_Curve)& C,
   }
   catch(Standard_Failure const& anException) {
     Standard_SStream aMsg;
-    aMsg << "EXCEPTION in BinTools_Curve2dSet::WriteCurve2d(..)" << endl;
-    aMsg << anException << endl;
+    aMsg << "EXCEPTION in BinTools_Curve2dSet::WriteCurve2d(..)" << std::endl;
+    aMsg << anException << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
   }  
 }
@@ -680,8 +680,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(...)" << endl;
-    aMsg << anException << endl;
+    aMsg <<"EXCEPTION in BinTools_Curve2dSet::ReadCurve2d(...)" << std::endl;
+    aMsg << anException << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
   }
   return IS;
@@ -699,9 +699,9 @@ 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"<<endl;
+    aMsg << "BinTools_Curve2dSet::Read:  Not a Curve2d table"<<std::endl;
 #ifdef OCCT_DEBUG
-    cout <<"Curve2dSet buffer: " << buffer << endl;
+    std::cout <<"Curve2dSet buffer: " << buffer << std::endl;
 #endif
     throw Standard_Failure(aMsg.str().c_str());
     return;
index 7f89e62..d33b92c 100644 (file)
@@ -347,8 +347,8 @@ void BinTools_CurveSet::WriteCurve(const Handle(Geom_Curve)& C,
   }
    catch(Standard_Failure const& anException) {
      Standard_SStream aMsg;
-     aMsg << "EXCEPTION in BinTools_CurveSet::WriteCurve(..)" << endl;
-     aMsg << anException << endl;
+     aMsg << "EXCEPTION in BinTools_CurveSet::WriteCurve(..)" << std::endl;
+     aMsg << anException << std::endl;
      throw Standard_Failure(aMsg.str().c_str());
    }  
 }
@@ -699,8 +699,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(..)" << endl;
-    aMsg << anException << endl;
+    aMsg <<"EXCEPTION in BinTools_CurveSet::ReadCurve(..)" << std::endl;
+    aMsg << anException << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
   }
   return IS;
@@ -717,9 +717,9 @@ 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"<<endl;
+    aMsg << "BinTools_CurveSet::Read:  Not a Curve table"<<std::endl;
 #ifdef OCCT_DEBUG
-    cout <<"CurveSet buffer: " << buffer << endl;
+    std::cout <<"CurveSet buffer: " << buffer << std::endl;
 #endif
     throw Standard_Failure(aMsg.str().c_str());
     return;
index 9f4d36e..c269197 100644 (file)
@@ -198,8 +198,8 @@ void  BinTools_LocationSet::Write(Standard_OStream& OS) const
   }
   catch(Standard_Failure const& anException) {
     Standard_SStream aMsg;
-    aMsg << "EXCEPTION in BinTools_LocatioSet::Write(..)" << endl;
-    aMsg << anException << endl;
+    aMsg << "EXCEPTION in BinTools_LocatioSet::Write(..)" << std::endl;
+    aMsg << anException << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
   }
 }
@@ -218,7 +218,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"<<endl;
+    aMsg << "BinTools_LocationSet::Read: Not a location table"<<std::endl;
     throw Standard_Failure(aMsg.str().c_str());
     return;
   }
@@ -250,7 +250,7 @@ void  BinTools_LocationSet::Read(Standard_IStream& IS)
        }
       } else {
        Standard_SStream aMsg;
-       aMsg << "Unexpected location's type = " << aTypLoc << endl;
+       aMsg << "Unexpected location's type = " << aTypLoc << std::endl;
        throw Standard_Failure(aMsg.str().c_str());
       }    
       if (!L.IsIdentity()) myMap.Add(L);
@@ -258,8 +258,8 @@ void  BinTools_LocationSet::Read(Standard_IStream& IS)
   }
   catch(Standard_Failure const& anException) {
     Standard_SStream aMsg;
-    aMsg << "EXCEPTION in BinTools_LocationSet::Read(..)" << endl;
-    aMsg << anException << endl;
+    aMsg << "EXCEPTION in BinTools_LocationSet::Read(..)" << std::endl;
+    aMsg << anException << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
   }
 }
index 8ff8b01..4299960 100644 (file)
@@ -397,7 +397,7 @@ void  BinTools_ShapeSet::Read(Standard_IStream& IS)
   } while ( ! IS.fail() && strcmp(vers,Version_1) && strcmp(vers,Version_2) &&
           strcmp(vers,Version_3));
   if (IS.fail()) {
-    cout << "BinTools_ShapeSet::Read: File was not written with this version of the topology"<<endl;
+    std::cout << "BinTools_ShapeSet::Read: File was not written with this version of the topology"<<std::endl;
      return;
   }
 
@@ -424,7 +424,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"<<endl;
+    aMsg << "BinTools_ShapeSet::Read: Not a TShape table"<<std::endl;
     throw Standard_Failure(aMsg.str().c_str());
     return;
   }
@@ -748,8 +748,8 @@ void  BinTools_ShapeSet::WriteGeometry(const TopoDS_Shape& S,
   }
   catch(Standard_Failure const& anException) {
     Standard_SStream aMsg;
-    aMsg << "EXCEPTION in BinTools_ShapeSet::WriteGeometry(S,OS)" << endl;
-    aMsg << anException << endl;
+    aMsg << "EXCEPTION in BinTools_ShapeSet::WriteGeometry(S,OS)" << std::endl;
+    aMsg << anException << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
   }
 }
@@ -783,7 +783,7 @@ void  BinTools_ShapeSet::ReadGeometry(const TopAbs_ShapeEnum T,
     case TopAbs_VERTEX :
       {
 //       Standard_Integer aPos = IS.tellg();      
-//       cout << "\nPOS = " << aPos << endl;
+//       std::cout << "\nPOS = " << aPos << std::endl;
        TopoDS_Vertex& V = TopoDS::Vertex(S);
 
       // Read the point geometry
@@ -804,11 +804,11 @@ void  BinTools_ShapeSet::ReadGeometry(const TopAbs_ShapeEnum T,
            if (val > 0 && val <= 3) 
              BinTools::GetReal(IS, p1); 
          } else {
-        streampos aPos = IS.tellg();
+        std::streampos aPos = IS.tellg();
            BinTools::GetReal(IS, p1);      
            val = (Standard_Integer)IS.get();//case {0|1|2|3}
 #ifdef OCCT_DEBUG
-           cout << "\nVal = " << val <<endl;   
+           std::cout << "\nVal = " << val <<std::endl;   
 #endif   
            if(val != 1 && val !=2 && val !=3){
              IS.seekg(aPos);
@@ -870,7 +870,7 @@ void  BinTools_ShapeSet::ReadGeometry(const TopAbs_ShapeEnum T,
          default:
            {
               Standard_SStream aMsg;
-             aMsg << "BinTools_SurfaceSet::ReadGeometry: UnExpected BRep_PointRepresentation = "<< val <<endl;
+             aMsg << "BinTools_SurfaceSet::ReadGeometry: UnExpected BRep_PointRepresentation = "<< val <<std::endl;
              throw Standard_Failure(aMsg.str().c_str());
              }
          }
@@ -1065,7 +1065,7 @@ void  BinTools_ShapeSet::ReadGeometry(const TopAbs_ShapeEnum T,
          default:
            {
               Standard_SStream aMsg;
-             aMsg <<"Unexpected Curve Representation ="<< val << endl;
+             aMsg <<"Unexpected Curve Representation ="<< val << std::endl;
              throw Standard_Failure(aMsg.str().c_str());
            }
             
@@ -1152,7 +1152,7 @@ void  BinTools_ShapeSet::ReadGeometry(const TopAbs_ShapeEnum T,
     default:
       {
         Standard_SStream aMsg;
-        aMsg << "Unexpected topology type = "<< T <<endl;
+        aMsg << "Unexpected topology type = "<< T <<std::endl;
         throw Standard_Failure(aMsg.str().c_str());
         break;
       }
@@ -1160,8 +1160,8 @@ void  BinTools_ShapeSet::ReadGeometry(const TopAbs_ShapeEnum T,
   }
   catch(Standard_Failure const& anException) {
     Standard_SStream aMsg;
-    aMsg << "EXCEPTION in BinTools_ShapeSet::ReadGeometry(S,OS)" << endl;
-    aMsg << anException << endl;
+    aMsg << "EXCEPTION in BinTools_ShapeSet::ReadGeometry(S,OS)" << std::endl;
+    aMsg << anException << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
   }
 }
@@ -1217,8 +1217,8 @@ void BinTools_ShapeSet::WritePolygonOnTriangulation(Standard_OStream& OS) const
   }
   catch(Standard_Failure const& anException) {
     Standard_SStream aMsg;
-    aMsg << "EXCEPTION in BinTools_ShapeSet::WritePolygonOnTriangulation(..)" << endl;
-    aMsg << anException << endl;
+    aMsg << "EXCEPTION in BinTools_ShapeSet::WritePolygonOnTriangulation(..)" << std::endl;
+    aMsg << anException << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
   }
 }
@@ -1270,8 +1270,8 @@ void BinTools_ShapeSet::ReadPolygonOnTriangulation(Standard_IStream& IS)
   }
   catch(Standard_Failure const& anException) {
     Standard_SStream aMsg;
-    aMsg << "EXCEPTION in BinTools_ShapeSet::ReadPolygonOnTriangulation(..)" << endl;
-    aMsg << anException << endl;
+    aMsg << "EXCEPTION in BinTools_ShapeSet::ReadPolygonOnTriangulation(..)" << std::endl;
+    aMsg << anException << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
   }
 }
@@ -1316,8 +1316,8 @@ void BinTools_ShapeSet::WritePolygon3D(Standard_OStream& OS)const
   }
   catch(Standard_Failure const& anException) {
     Standard_SStream aMsg;
-    aMsg << "EXCEPTION in BinTools_ShapeSet::WritePolygon3D(..)" << endl;
-    aMsg << anException << endl;
+    aMsg << "EXCEPTION in BinTools_ShapeSet::WritePolygon3D(..)" << std::endl;
+    aMsg << anException << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
   }
 }
@@ -1336,7 +1336,7 @@ void BinTools_ShapeSet::ReadPolygon3D(Standard_IStream& IS)
 
   if (IS.fail() || strstr(buffer,"Polygon3D") == NULL) {
 #ifdef OCCT_DEBUG
-    cout <<"Buffer: " << buffer << endl;
+    std::cout <<"Buffer: " << buffer << std::endl;
 #endif
     throw Standard_Failure("BinTools_ShapeSet::ReadPolygon3D: Not a Polygon3D section");
   }
@@ -1371,8 +1371,8 @@ void BinTools_ShapeSet::ReadPolygon3D(Standard_IStream& IS)
   }
   catch(Standard_Failure const& anException) {
     Standard_SStream aMsg;
-    aMsg << "EXCEPTION in BinTools_ShapeSet::ReadPolygon3D(..)" << endl;
-    aMsg << anException << endl;
+    aMsg << "EXCEPTION in BinTools_ShapeSet::ReadPolygon3D(..)" << std::endl;
+    aMsg << anException << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
   }
 }
@@ -1427,8 +1427,8 @@ void BinTools_ShapeSet::WriteTriangulation(Standard_OStream& OS) const
   }
   catch(Standard_Failure const& anException) {
     Standard_SStream aMsg;
-    aMsg << "EXCEPTION in BinTools_ShapeSet::WriteTriangulation(..)" << endl;
-    aMsg << anException << endl;
+    aMsg << "EXCEPTION in BinTools_ShapeSet::WriteTriangulation(..)" << std::endl;
+    aMsg << anException << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
   }
 }
@@ -1497,8 +1497,8 @@ void BinTools_ShapeSet::ReadTriangulation(Standard_IStream& IS)
   }
   catch(Standard_Failure const& anException) {
     Standard_SStream aMsg;
-    aMsg << "EXCEPTION in BinTools_ShapeSet::ReadTriangulation(..)" << endl;
-    aMsg << anException << endl;
+    aMsg << "EXCEPTION in BinTools_ShapeSet::ReadTriangulation(..)" << std::endl;
+    aMsg << anException << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
   }
 }
index c43fe79..c615a4b 100644 (file)
@@ -269,8 +269,8 @@ static Standard_OStream& operator <<(Standard_OStream& OS, const Handle(Geom_Bez
   Standard_Boolean vrational = S->IsVRational() ? 1:0;
   BinTools::PutBool(OS, urational); //rational
   BinTools::PutBool(OS, vrational);
-//  cout << "Bezier Surface:"<< endl;
-//  cout << "\turational = "<<urational<<" vrational = " <<vrational<<endl;
+//  std::cout << "Bezier Surface:"<< std::endl;
+//  std::cout << "\turational = "<<urational<<" vrational = " <<vrational<<std::endl;
 
 // poles and weights
   Standard_Integer i,j,udegree,vdegree;
@@ -425,8 +425,8 @@ void BinTools_SurfaceSet::WriteSurface(const Handle(Geom_Surface)& S,
   }
    catch(Standard_Failure const& anException) {
      Standard_SStream aMsg;
-    aMsg << "EXCEPTION in BinTools_SurfaceSet::WriteSurface(..)" << endl;
-    aMsg << anException << endl;
+    aMsg << "EXCEPTION in BinTools_SurfaceSet::WriteSurface(..)" << std::endl;
+    aMsg << anException << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
   }  
 }
@@ -617,12 +617,12 @@ static Standard_IStream& operator>>(Standard_IStream& IS,
 static Standard_IStream& operator>>(Standard_IStream& IS,
                                    Handle(Geom_BezierSurface)& S)
 {
-//  cout << "BezierSurface:" <<endl;
+//  std::cout << "BezierSurface:" <<std::endl;
   Standard_Boolean urational=Standard_False, vrational=Standard_False;
   BinTools::GetBool(IS, urational);
   BinTools::GetBool(IS, vrational);
 
-//  cout << "\turational = " << urational << " vrational = " << vrational<<endl;
+//  std::cout << "\turational = " << urational << " vrational = " << vrational<<std::endl;
   Standard_Integer udegree=0, vdegree=0;
   Standard_ExtCharacter aVal='\0';
   BinTools::GetExtChar(IS, aVal);
@@ -630,7 +630,7 @@ static Standard_IStream& operator>>(Standard_IStream& IS,
   udegree = (Standard_Integer)aVal;
   BinTools::GetExtChar(IS, aVal);
   vdegree = (Standard_Integer)aVal;
-//  cout << "\ttudegree  = " << udegree << ", vdegree = " << vdegree << endl;
+//  std::cout << "\ttudegree  = " << udegree << ", vdegree = " << vdegree << std::endl;
 
   TColgp_Array2OfPnt poles(1,udegree+1,1,vdegree+1);
   TColStd_Array2OfReal weights(1,udegree+1,1,vdegree+1);
@@ -639,7 +639,7 @@ static Standard_IStream& operator>>(Standard_IStream& IS,
   for (i = 1; i <= udegree+1; i++) {
     for (j = 1; j <= vdegree+1; j++) {
       IS >> poles(i,j);//Pnt
-//      cout <<"Pole X = " <<poles(i,j).X()<< " Y = " <<poles(i,j).Y()<< " Z = " << poles(i,j).Z()<<endl;
+//      std::cout <<"Pole X = " <<poles(i,j).X()<< " Y = " <<poles(i,j).Y()<< " Z = " << poles(i,j).Z()<<std::endl;
       if (urational || vrational)
        BinTools::GetReal(IS, weights(i,j));
     }
@@ -861,8 +861,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(..)" << endl;
-    aMsg << anException << endl;
+    aMsg << "EXCEPTION in BinTools_SurfaceSet::ReadSurface(..)" << std::endl;
+    aMsg << anException << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
   }
   return IS;
@@ -879,9 +879,9 @@ 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"<<endl;
+    aMsg << "BinTools_SurfaceSet::Read:  Not a surface table"<<std::endl;
 #ifdef OCCT_DEBUG
-    cout <<"SurfaceSet buffer: " << buffer << endl;
+    std::cout <<"SurfaceSet buffer: " << buffer << std::endl;
 #endif
     throw Standard_Failure(aMsg.str().c_str());
     return;
index ac413c9..a433371 100644 (file)
@@ -38,7 +38,7 @@ const Handle(Standard_Transient)& BinXCAFDrivers::Factory(const Standard_GUID& t
   if (theGUID == BinXCAFStorageDriver)
   {
 #ifdef OCCT_DEBUG
-    cout << "BinXCAFDrivers : Storage Plugin" << endl;
+    std::cout << "BinXCAFDrivers : Storage Plugin" << std::endl;
 #endif
     static Handle(Standard_Transient) model_sd =
       new BinXCAFDrivers_DocumentStorageDriver;
@@ -48,7 +48,7 @@ const Handle(Standard_Transient)& BinXCAFDrivers::Factory(const Standard_GUID& t
   if (theGUID == BinXCAFRetrievalDriver)
   {
 #ifdef OCCT_DEBUG
-    cout << "BinXCAFDrivers : Retrieval Plugin" << endl;
+    std::cout << "BinXCAFDrivers : Retrieval Plugin" << std::endl;
 #endif
     static Handle(Standard_Transient) model_rd =
       new BinXCAFDrivers_DocumentRetrievalDriver;
index 6e5330d..911f015 100644 (file)
@@ -293,7 +293,7 @@ void Bisector_BisecAna::Perform(const Handle(Geom2d_Curve)& afirstcurve   ,
       line2   = L2->Lin2d();
     }
     else {
-      cout << "Not yet implemented" << endl;
+      std::cout << "Not yet implemented" << std::endl;
     }
   }
   else if (type1 == STANDARD_TYPE(Geom2d_Line)) {
@@ -312,11 +312,11 @@ void Bisector_BisecAna::Perform(const Handle(Geom2d_Curve)& afirstcurve   ,
       line2   = L2->Lin2d();
     }
     else {
-      cout << "Not yet implemented" << endl;
+      std::cout << "Not yet implemented" << std::endl;
     }
   }
   else {
-    cout << "Not yet implemented" << endl;
+    std::cout << "Not yet implemented" << std::endl;
   }
 
   switch(cas) {
@@ -852,7 +852,7 @@ void Bisector_BisecAna::Perform(const Handle(Geom2d_Curve)& afirstcurve  ,
     line   = L1->Lin2d();
   }
   else {
-    cout << "Not yet implemented" << endl;
+    std::cout << "Not yet implemented" << std::endl;
   }
 
   switch(cas) {
@@ -1007,7 +1007,7 @@ void Bisector_BisecAna::Perform(const Handle(Geom2d_Curve)& afirstcurve  ,
 
     default:
       {
-       cout << "Not yet implemented" << endl;
+       std::cout << "Not yet implemented" << std::endl;
        break;
       }
     }
@@ -1630,7 +1630,7 @@ Standard_Boolean Degenerate(Handle(GccInt_Bisec)& aBisector,
 
 static void Indent (const Standard_Integer Offset) {
   if (Offset > 0) {
-    for (Standard_Integer i = 0; i < Offset; i++) { cout << " "; }
+    for (Standard_Integer i = 0; i < Offset; i++) { std::cout << " "; }
   }
 }
 
@@ -1643,7 +1643,7 @@ void Bisector_BisecAna::Dump(const Standard_Integer ,
                             const Standard_Integer Offset) const 
 {
   Indent (Offset);
-  cout<<"Bisector_BisecAna"<<endl;
+  std::cout<<"Bisector_BisecAna"<<std::endl;
   Indent (Offset);
 //  thebisector->Dump();
 }
index 3689f9e..f437963 100644 (file)
@@ -1420,7 +1420,7 @@ Standard_Real Bisector_BisecCC::LinkCurveBis(const Standard_Real U) const
 //=============================================================================
 static void Indent(const Standard_Integer Offset) {
   if (Offset > 0) {
-    for (Standard_Integer i = 0; i < Offset; i++) {cout << " ";}
+    for (Standard_Integer i = 0; i < Offset; i++) {std::cout << " ";}
   }
 }
 
@@ -1465,19 +1465,19 @@ void Bisector_BisecCC::Dump(const Standard_Integer ,
   const Standard_Integer Offset) const 
 {
   Indent (Offset);
-  cout <<"Bisector_BisecCC :"<<endl;
+  std::cout <<"Bisector_BisecCC :"<<std::endl;
   Indent (Offset);
-  //  cout <<"Curve1 :"<<curve1<<endl;
-  //  cout <<"Curve2 :"<<curve2<<endl;
-  cout <<"Sign1  :"<<sign1<<endl;
-  cout <<"Sign2  :"<<sign2<<endl;
+  //  std::cout <<"Curve1 :"<<curve1<<std::endl;
+  //  std::cout <<"Curve2 :"<<curve2<<std::endl;
+  std::cout <<"Sign1  :"<<sign1<<std::endl;
+  std::cout <<"Sign2  :"<<sign2<<std::endl;
 
-  cout <<"Number Of Intervals :"<<startIntervals.Length()<<endl;
+  std::cout <<"Number Of Intervals :"<<startIntervals.Length()<<std::endl;
   for (Standard_Integer i = 1; i <= startIntervals.Length(); i++) {
-    cout <<"Interval number :"<<i<<"Start :"<<startIntervals.Value(i)
-      <<"  end :"<<  endIntervals.Value(i)<<endl ;
+    std::cout <<"Interval number :"<<i<<"Start :"<<startIntervals.Value(i)
+      <<"  end :"<<  endIntervals.Value(i)<<std::endl ;
   }
-  cout <<"Index Current Interval :"<<currentInterval<<endl;
+  std::cout <<"Index Current Interval :"<<currentInterval<<std::endl;
 }
 
 //=============================================================================
index ad03ff2..3b746cc 100644 (file)
@@ -801,7 +801,7 @@ Standard_Real Bisector_BisecPC::Parameter(const gp_Pnt2d& P) const
 //=============================================================================
 static void Indent(const Standard_Integer Offset) {
   if (Offset > 0) {
-    for (Standard_Integer i = 0; i < Offset; i++) {cout << " ";}
+    for (Standard_Integer i = 0; i < Offset; i++) {std::cout << " ";}
   }
 }
 
@@ -851,18 +851,18 @@ void Bisector_BisecPC::Dump(const Standard_Integer ,
                            const Standard_Integer Offset) const 
 {
   Indent (Offset);
-  cout <<"Bisector_BisecPC :"<<endl;
+  std::cout <<"Bisector_BisecPC :"<<std::endl;
   Indent (Offset);
-  cout <<"Point :"<<endl;
-  cout <<" X = "<<point.X()<<endl;
-  cout <<" Y = "<<point.Y()<<endl;
-  cout <<"Sign  :"<<sign<<endl;
-  cout <<"Number Of Intervals :"<<startIntervals.Length()<<endl;
+  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;
   for (Standard_Integer i = 1; i <= startIntervals.Length(); i++) {
-    cout <<"Interval number :"<<i<<"Start :"<<startIntervals.Value(i)
-                                 <<"  end :"<<  endIntervals.Value(i)<<endl ;
+    std::cout <<"Interval number :"<<i<<"Start :"<<startIntervals.Value(i)
+                                 <<"  end :"<<  endIntervals.Value(i)<<std::endl ;
   }
-  cout <<"Index Current Interval :"<<currentInterval<<endl;
+  std::cout <<"Index Current Interval :"<<currentInterval<<std::endl;
 }
 
 
index 2daad2b..c3c804c 100644 (file)
@@ -158,8 +158,8 @@ Standard_Boolean Bisector_PointOnBis::IsInfinite() const
 //=============================================================================
 void Bisector_PointOnBis::Dump() const 
 {
-  cout <<"Param1    :"<<param1<<endl;
-  cout <<"Param2    :"<<param2<<endl;
-  cout <<"Param Bis :"<<paramBis<<endl;
-  cout <<"Distance  :"<<distance<<endl;
+  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;
 }
index 5f623b8..bfee7a0 100644 (file)
@@ -106,7 +106,7 @@ Standard_Boolean Blend_CSWalking::Recadre(Blend_FuncInv& FuncInv,
 
   if (!rsnld.IsDone()) {
 #ifdef OCCT_DEBUG
-    cout << "RSNLD not done "<< endl << endl;
+    std::cout << "RSNLD not done "<< std::endl << std::endl;
 #endif
     return Standard_False;
   }
index ce7ed90..1d693ff 100644 (file)
@@ -252,7 +252,7 @@ void Blend_CSWalking::InternalPerform(Blend_CSFunction& Func,
     case Blend_SamePoints :
       {
        // On arrete
-       cout << " Points confondus dans le cheminement" << endl;
+       std::cout << " Points confondus dans le cheminement" << std::endl;
 /*
        Exts.SetValue(previousP.PointOnS(),sol(1),sol(2),tolesp);
        Extc.SetValue(previousP.PointOnC(),sol(3),tolesp);
index 1a0586c..52056fd 100644 (file)
@@ -270,7 +270,7 @@ Standard_Boolean Blend_Walking::Recadre(Blend_FuncInv& FuncInv,
     rsnld.Perform(FuncInv,solrst,infb,supb);  
     if (!rsnld.IsDone()) {
 #ifdef OCCT_DEBUG
-      cout << "Walking::Recadre : RSNLD not done " << endl;
+      std::cout << "Walking::Recadre : RSNLD not done " << std::endl;
 #endif
       recadre = Standard_False;
     }
@@ -318,7 +318,7 @@ Standard_Boolean Blend_Walking::Recadre(Blend_FuncInv& FuncInv,
   
     if (!aRsnld.IsDone()) {
 #ifdef OCCT_DEBUG
-      cout << "Walking::Recadre : RSNLD not done " << endl;
+      std::cout << "Walking::Recadre : RSNLD not done " << std::endl;
 #endif
       recadre = Standard_False;
     }
@@ -429,7 +429,7 @@ void Blend_Walking::Transition(const Standard_Boolean OnFirst,
     normale.SetXYZ(thenormal.XYZ());
 #ifdef OCCT_DEBUG
     if (stat == CSLib_InfinityOfSolutions)
-      cout << "Blend_Walking::Transition : Infinite de Normal" << endl;
+      std::cout << "Blend_Walking::Transition : Infinite de Normal" << std::endl;
 #endif 
   }
 
index 85a766a..5241213 100644 (file)
@@ -466,7 +466,7 @@ void Blend_Walking::InternalPerform(Blend_Function& Func,
        // Sinon echec recadrage. On sort avec PointsConfondus
        else {
 #ifdef OCCT_DEBUG
-         cout << "Echec recadrage" << endl;
+         std::cout << "Echec recadrage" << std::endl;
 #endif   
          State = Blend_SamePoints;
        }
@@ -723,7 +723,7 @@ void Blend_Walking::InternalPerform(Blend_Function& Func,
       {
        // On arrete
 #ifdef OCCT_DEBUG
-       cout << " Points confondus dans le cheminement" << endl;
+       std::cout << " Points confondus dans le cheminement" << std::endl;
 #endif
        Ext1.SetValue(previousP.PointOnS1(),
                      sol(1),sol(2),
index 2c61efc..abfce00 100644 (file)
@@ -396,34 +396,34 @@ Standard_Boolean BlendFunc_ChAsymInv::Values(const math_Vector& X,
   F = FX;
   D = DX;
   return Error;
-/*  cout<<endl;
-  cout<<" test ChAsymInv"<<endl;
-  cout<<"calcul exact  <-->  approche"<<endl;
+/*  std::cout<<std::endl;
+  std::cout<<" test ChAsymInv"<<std::endl;
+  std::cout<<"calcul exact  <-->  approche"<<std::endl;
 
   math_Vector X1(1,4);
   math_Vector F1(1,4); 
   X1 = X; X1(1) += 1.e-10;
   Value(X1,F1);
-  cout<<"D(1,1) : "<<D(1,1)<<" "<<(F1(1) - F(1)) * 1.e10<<endl;
-  cout<<"D(2,1) : "<<D(2,1)<<" "<<(F1(2) - F(2)) * 1.e10<<endl;
-  cout<<"D(3,1) : "<<D(3,1)<<" "<<(F1(3) - F(3)) * 1.e10<<endl;
-  cout<<"D(4,1) : "<<D(4,1)<<" "<<(F1(4) - F(4)) * 1.e10<<endl;
+  std::cout<<"D(1,1) : "<<D(1,1)<<" "<<(F1(1) - F(1)) * 1.e10<<std::endl;
+  std::cout<<"D(2,1) : "<<D(2,1)<<" "<<(F1(2) - F(2)) * 1.e10<<std::endl;
+  std::cout<<"D(3,1) : "<<D(3,1)<<" "<<(F1(3) - F(3)) * 1.e10<<std::endl;
+  std::cout<<"D(4,1) : "<<D(4,1)<<" "<<(F1(4) - F(4)) * 1.e10<<std::endl;
   X1 = X; X1(2) += 1.e-10;
   Value(X1,F1);
-  cout<<"D(1,2) : "<<D(1,2)<<" "<<(F1(1) - F(1)) * 1.e10<<endl;
-  cout<<"D(2,2) : "<<D(2,2)<<" "<<(F1(2) - F(2)) * 1.e10<<endl;
-  cout<<"D(3,2) : "<<D(3,2)<<" "<<(F1(3) - F(3)) * 1.e10<<endl;
-  cout<<"D(4,2) : "<<D(4,2)<<" "<<(F1(4) - F(4)) * 1.e10<<endl;
+  std::cout<<"D(1,2) : "<<D(1,2)<<" "<<(F1(1) - F(1)) * 1.e10<<std::endl;
+  std::cout<<"D(2,2) : "<<D(2,2)<<" "<<(F1(2) - F(2)) * 1.e10<<std::endl;
+  std::cout<<"D(3,2) : "<<D(3,2)<<" "<<(F1(3) - F(3)) * 1.e10<<std::endl;
+  std::cout<<"D(4,2) : "<<D(4,2)<<" "<<(F1(4) - F(4)) * 1.e10<<std::endl;
   X1 = X; X1(3) += 1.e-10;
   Value(X1,F1);
-  cout<<"D(1,3) : "<<D(1,3)<<" "<<(F1(1) - F(1)) * 1.e10<<endl;
-  cout<<"D(2,3) : "<<D(2,3)<<" "<<(F1(2) - F(2)) * 1.e10<<endl;
-  cout<<"D(3,3) : "<<D(3,3)<<" "<<(F1(3) - F(3)) * 1.e10<<endl;
-  cout<<"D(4,3) : "<<D(4,3)<<" "<<(F1(4) - F(4)) * 1.e10<<endl;
+  std::cout<<"D(1,3) : "<<D(1,3)<<" "<<(F1(1) - F(1)) * 1.e10<<std::endl;
+  std::cout<<"D(2,3) : "<<D(2,3)<<" "<<(F1(2) - F(2)) * 1.e10<<std::endl;
+  std::cout<<"D(3,3) : "<<D(3,3)<<" "<<(F1(3) - F(3)) * 1.e10<<std::endl;
+  std::cout<<"D(4,3) : "<<D(4,3)<<" "<<(F1(4) - F(4)) * 1.e10<<std::endl;
   X1 = X; X1(4) += 1.e-10;
   Value(X1,F1);
-  cout<<"D(1,4) : "<<D(1,4)<<" "<<(F1(1) - F(1)) * 1.e10<<endl;
-  cout<<"D(2,4) : "<<D(2,4)<<" "<<(F1(2) - F(2)) * 1.e10<<endl;
-  cout<<"D(3,4) : "<<D(3,4)<<" "<<(F1(3) - F(3)) * 1.e10<<endl;
-  cout<<"D(4,4) : "<<D(4,4)<<" "<<(F1(4) - F(4)) * 1.e10<<endl;*/
+  std::cout<<"D(1,4) : "<<D(1,4)<<" "<<(F1(1) - F(1)) * 1.e10<<std::endl;
+  std::cout<<"D(2,4) : "<<D(2,4)<<" "<<(F1(2) - F(2)) * 1.e10<<std::endl;
+  std::cout<<"D(3,4) : "<<D(3,4)<<" "<<(F1(3) - F(3)) * 1.e10<<std::endl;
+  std::cout<<"D(4,4) : "<<D(4,4)<<" "<<(F1(4) - F(4)) * 1.e10<<std::endl;*/
 }
index ab071fe..5c890db 100644 (file)
@@ -292,14 +292,14 @@ Standard_Boolean BlendFunc_ConstRad::ComputeValues(const math_Vector& X,
  else {
    invnorm1 = 1; // Unsatisfactory, but it is not necessary to crash
 #ifdef OCCT_DEBUG
-   cout << " ConstRad : Surface singuliere " << endl;
+   std::cout << " ConstRad : Surface singuliere " << std::endl;
 #endif
  }
  if (invnorm2 > Eps) invnorm2 = ((Standard_Real) 1) /invnorm2;
  else {
    invnorm2 = 1; //  Unsatisfactory, but it is not necessary to crash
 #ifdef OCCT_DEBUG
-   cout << " ConstRad : Surface singuliere " << endl;
+   std::cout << " ConstRad : Surface singuliere " << std::endl;
 #endif
  }
 
@@ -887,7 +887,7 @@ Standard_Boolean BlendFunc_ConstRad::IsSolution(const math_Vector& Sol, const St
           Abs(controle(3)) > tolerances(3) ||
           Abs(controle(4)) > tolerances(4)){
 #ifdef OCCT_DEBUG
-       cout<<"Cheminement : echec calcul des derivees"<<endl;
+       std::cout<<"Cheminement : echec calcul des derivees"<<std::endl;
 #endif
          istangent = Standard_True;
        } 
@@ -924,9 +924,9 @@ Standard_Boolean BlendFunc_ConstRad::IsSolution(const math_Vector& Sol, const St
       else           Angle =  2.*M_PI - Angle;
     }
 
-//    cout << "Angle : " <<Angle << endl;
+//    std::cout << "Angle : " <<Angle << std::endl;
 //    if ((Angle < 0) || (Angle > M_PI)) {
-//      cout << "t = " << param << endl;
+//      std::cout << "t = " << param << std::endl;
 //    }
 
     if (Abs(Angle)>maxang) {maxang = Abs(Angle);}
@@ -1480,13 +1480,13 @@ Standard_Boolean BlendFunc_ConstRad::Section
   if (norm1 < Eps) {
     norm1 = 1; // Unsatisfactory, but it is not necessary to stop
 #ifdef OCCT_DEBUG
-    cout << " ConstRad : Surface singuliere " << endl;
+    std::cout << " ConstRad : Surface singuliere " << std::endl;
 #endif
   }
   if (norm2 < Eps) {
    norm2 = 1; // Unsatisfactory, but it is not necessary to stop
 #ifdef OCCT_DEBUG
-   cout << " ConstRad : Surface singuliere " << endl;
+   std::cout << " ConstRad : Surface singuliere " << std::endl;
 #endif
  }
 
@@ -1629,36 +1629,36 @@ Standard_Boolean BlendFunc_ConstRad::Section
   pdiff = (d_plan - dnplan)*(1/deltat);
   if ((pdiff-d2nplan).Magnitude() > seuil*(pdiff.Magnitude()+1))
     {
-      cout << "d2nplan = (" << d2nplan.X() << ","<< d2nplan.Y() << ","<< d2nplan.Z() << ")"<<endl;
-      cout << "Diff fi = (" << pdiff.X() << ","<<  pdiff.Y() << ","<<  pdiff.Z() << ")"<<endl;
+      std::cout << "d2nplan = (" << d2nplan.X() << ","<< d2nplan.Y() << ","<< d2nplan.Z() << ")"<<std::endl;
+      std::cout << "Diff fi = (" << pdiff.X() << ","<<  pdiff.Y() << ","<<  pdiff.Z() << ")"<<std::endl;
     }
 
   pdiff = (d1 - dn1w)*(1/deltat);
   if ((pdiff-d2n1w).Magnitude() > seuil*(pdiff.Magnitude()+1))
     {
-      cout << "d2n1w   = (" << d2n1w.X() << ","<< d2n1w.Y() << ","<< d2n1w.Z() << ")"<<endl;
-      cout << "Diff fi = (" << pdiff.X() << ","<<  pdiff.Y() << ","<<  pdiff.Z() << ")"<<endl;
+      std::cout << "d2n1w   = (" << d2n1w.X() << ","<< d2n1w.Y() << ","<< d2n1w.Z() << ")"<<std::endl;
+      std::cout << "Diff fi = (" << pdiff.X() << ","<<  pdiff.Y() << ","<<  pdiff.Z() << ")"<<std::endl;
     }
   pdiff = (d2 - dn2w)*(1/deltat);
   if ((pdiff-d2n2w).Magnitude() > seuil*(pdiff.Magnitude()+1))
     {
-      cout << "d2n2w   = (" << d2n2w.X() << ","<< d2n2w.Y() << ","<< d2n2w.Z() << ")"<<endl;
-      cout << "Diff fi = (" << pdiff.X() << ","<<  pdiff.Y() << ","<<  pdiff.Z() << ")"<<endl;
+      std::cout << "d2n2w   = (" << d2n2w.X() << ","<< d2n2w.Y() << ","<< d2n2w.Z() << ")"<<std::endl;
+      std::cout << "Diff fi = (" << pdiff.X() << ","<<  pdiff.Y() << ","<<  pdiff.Z() << ")"<<std::endl;
     }
  
 
   for ( ii=1; ii<=4; ii++) {
     if (Abs(VDiff(ii)-D2EDT2(ii)) > seuil*(Abs(D2EDT2(ii))+1)) 
       {
-         cout << "erreur sur D2EDT2 : "<< ii << endl;
-          cout << D2EDT2(ii) << " D.F = " << VDiff(ii) << endl;
+         std::cout << "erreur sur D2EDT2 : "<< ii << std::endl;
+          std::cout << D2EDT2(ii) << " D.F = " << VDiff(ii) << std::endl;
        } 
        for (jj=1; jj<=4; jj++) {
          if (Abs(MDiff(ii,jj)-D2EDXDT(ii, jj)) > 
              1.e-3*(Abs(D2EDXDT(ii, jj))+1.e-2)) 
              {
-               cout << "erreur sur D2EDXDT : "<< ii << " , " << jj << endl;
-               cout << D2EDXDT(ii,jj) << " D.F = " << MDiff(ii,jj) << endl;
+               std::cout << "erreur sur D2EDXDT : "<< ii << " , " << jj << std::endl;
+               std::cout << D2EDXDT(ii,jj) << " D.F = " << MDiff(ii,jj) << std::endl;
              }
        }
   }
@@ -1669,8 +1669,8 @@ Standard_Boolean BlendFunc_ConstRad::Section
       if (Abs(MDiff(ii,jj)-D2EDX2(ii, jj, 1)) > 
          seuil*(Abs(D2EDX2(ii, jj, 1))+1)) 
        {
-         cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 1 << endl;
-         cout << D2EDX2(ii,jj, 1) << " D.F = " << MDiff(ii,jj) << endl;
+         std::cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 1 << std::endl;
+         std::cout << D2EDX2(ii,jj, 1) << " D.F = " << MDiff(ii,jj) << std::endl;
        }
     }
   }
@@ -1682,8 +1682,8 @@ Standard_Boolean BlendFunc_ConstRad::Section
       if (Abs(MDiff(ii,jj)-D2EDX2(ii, jj, 2)) > 
          seuil*(Abs(D2EDX2(ii, jj, 2))+1)) 
        {
-         cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 2 << endl;
-         cout << D2EDX2(ii,jj, 2) << " D.F = " << MDiff(ii,jj) << endl;
+         std::cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 2 << std::endl;
+         std::cout << D2EDX2(ii,jj, 2) << " D.F = " << MDiff(ii,jj) << std::endl;
        }
     }
   }
@@ -1694,8 +1694,8 @@ Standard_Boolean BlendFunc_ConstRad::Section
       if (Abs(MDiff(ii,jj)-D2EDX2(ii, jj, 3)) > 
          seuil*(Abs(D2EDX2(ii, jj, 3))+1)) 
        {
-         cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 3 << endl;
-         cout << D2EDX2(ii,jj, 3) << " D.F = " << MDiff(ii,jj) << endl;
+         std::cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 3 << std::endl;
+         std::cout << D2EDX2(ii,jj, 3) << " D.F = " << MDiff(ii,jj) << std::endl;
        }
     }
   }
@@ -1707,8 +1707,8 @@ Standard_Boolean BlendFunc_ConstRad::Section
       if (Abs(MDiff(ii,jj)-D2EDX2(ii, jj, 4)) > 
          seuil*(Abs(D2EDX2(ii, jj, 4))+1)) 
        {
-         cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 4 << endl;
-         cout << D2EDX2(ii,jj, 4) << " D.F = " << MDiff(ii,jj) << endl;
+         std::cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 4 << std::endl;
+         std::cout << D2EDX2(ii,jj, 4) << " D.F = " << MDiff(ii,jj) << std::endl;
        }
     }
   }
@@ -1822,13 +1822,13 @@ Standard_Boolean BlendFunc_ConstRad::Section
   if (norm1 < Eps) {
     norm1 = 1; // Unsatisfactory, but it is not necessary to stop
 #ifdef OCCT_DEBUG
-    cout << " ConstRad : Surface singuliere " << endl;
+    std::cout << " ConstRad : Surface singuliere " << std::endl;
 #endif
   }
   if (norm2 < Eps) {
     norm2 = 1; // Unsatisfactory, but it is not necessary to stop
 #ifdef OCCT_DEBUG
-    cout << " ConstRad : Surface singuliere " << endl;
+    std::cout << " ConstRad : Surface singuliere " << std::endl;
 #endif
  }
 
index 5351b0f..24a795e 100644 (file)
@@ -299,13 +299,13 @@ Standard_Boolean BlendFunc_ConstRadInv::Derivatives(const math_Vector& X,
   if (norm1 < Eps)  {
     norm1 = 1; // Unsatisfactory, but it is not necessary to stop
 #ifdef OCCT_DEBUG
-    cout << " ConstRadInv : Surface singuliere " << endl;
+    std::cout << " ConstRadInv : Surface singuliere " << std::endl;
 #endif
   }
   if (norm2 < Eps)  {
     norm2 = 1; // Unsatisfactory, but it is not necessary to stop
 #ifdef OCCT_DEBUG
-    cout << " ConstRadInv : Surface singuliere " << endl;
+    std::cout << " ConstRadInv : Surface singuliere " << std::endl;
 #endif
   } 
 
@@ -480,13 +480,13 @@ Standard_Boolean BlendFunc_ConstRadInv::Values(const math_Vector& X,
   if (norm1 < Eps)  {
     norm1 = 1; // Unsatisfactory, but it is not necessary to stop
 #ifdef OCCT_DEBUG
-    cout << " ConstRadInv : Surface singuliere " << endl;
+    std::cout << " ConstRadInv : Surface singuliere " << std::endl;
 #endif
   }
   if (norm2 < Eps)  {
     norm2 = 1; // Unsatisfactory, but it is not necessary to stop
 #ifdef OCCT_DEBUG
-    cout << " ConstRadInv : Surface singuliere " << endl;
+    std::cout << " ConstRadInv : Surface singuliere " << std::endl;
 #endif
   } 
 
index 5de3e48..1cdd0fe 100644 (file)
@@ -357,14 +357,14 @@ Standard_Boolean BlendFunc_EvolRad::ComputeValues(const math_Vector& X,
   else {
     invnorm1 = 1; // Unsatisfactory, but it is not necessary to stop
 #ifdef OCCT_DEBUG
-    cout << " EvolRad : Surface singuliere " << endl;
+    std::cout << " EvolRad : Surface singuliere " << std::endl;
 #endif
   }
   if (invnorm2 > Eps) invnorm2 = ((Standard_Real) 1) /invnorm2;
   else {
     invnorm2 = 1; // Unsatisfactory, but it is not necessary to stop
 #ifdef OCCT_DEBUG
-    cout << " EvolRad : Surface singuliere " << endl;
+    std::cout << " EvolRad : Surface singuliere " << std::endl;
 #endif
   }
 
@@ -956,7 +956,7 @@ Standard_Boolean BlendFunc_EvolRad::IsSolution(const math_Vector& Sol,
         Abs(controle(3)) > tolerances(3) ||
         Abs(controle(4)) > tolerances(4)){
 #ifdef OCCT_DEBUG
-       cout<<"Cheminement : echec calcul des derivees"<<endl;
+       std::cout<<"Cheminement : echec calcul des derivees"<<std::endl;
 #endif
        istangent = Standard_True;
       }
@@ -1081,7 +1081,7 @@ void BlendFunc_EvolRad::Tangent(const Standard_Real U1,
     gp_Vec d1u,d1v;
     gp_Pnt bid;
 #ifdef OCCT_DEBUG
-    cout << " erreur de tengent !!!!!!!!!!!!!!!!!!!!" << endl;
+    std::cout << " erreur de tengent !!!!!!!!!!!!!!!!!!!!" << std::endl;
 #endif
     surf1->D1(U1,V1,bid,d1u,d1v);  
     NmF = ns1 = d1u.Crossed(d1v);
@@ -1456,13 +1456,13 @@ void BlendFunc_EvolRad::Section(const Blend_Point& P,
   if (norm1 < Eps) {
     norm1 = 1; // Unsatisfactory, but it is not necessary to stop
 #ifdef OCCT_DEBUG
-    cout << " EvolRad : Surface singuliere " << endl;
+    std::cout << " EvolRad : Surface singuliere " << std::endl;
 #endif
   }
   if (norm2 < Eps) {
     norm2 = 1; // Unsatisfactory, but it is not necessary to stop
 #ifdef OCCT_DEBUG
-    cout << " EvolRad : Surface singuliere " << endl;
+    std::cout << " EvolRad : Surface singuliere " << std::endl;
 #endif
   }
 
@@ -1589,13 +1589,13 @@ Standard_Boolean BlendFunc_EvolRad::Section
   if (norm1 < Eps)  {
     norm1 = 1; // Unsatisfactory, but it is not necessary to stop
 #ifdef OCCT_DEBUG
-    cout << " EvolRad : Surface singuliere " << endl;
+    std::cout << " EvolRad : Surface singuliere " << std::endl;
 #endif
   }
   if (norm2 < Eps) {
     norm2 = 1; // Unsatisfactory, but it is not necessary to stop
 #ifdef OCCT_DEBUG
-    cout << " EvolRad : Surface singuliere " << endl;
+    std::cout << " EvolRad : Surface singuliere " << std::endl;
 #endif
   }
 
@@ -1742,36 +1742,36 @@ Standard_Boolean BlendFunc_EvolRad::Section
   pdiff = (d_plan - dnplan)*(1/deltat);
   if ((pdiff-d2nplan).Magnitude() > 1.e-4*(pdiff.Magnitude()+1.e-1))
     {
-      cout << "d2nplan = (" << d2nplan.X() << ","<< d2nplan.Y() << ","<< d2nplan.Z() << ")"<<endl;
-      cout << "Diff fi = (" << pdiff.X() << ","<<  pdiff.Y() << ","<<  pdiff.Z() << ")"<<endl;
+      std::cout << "d2nplan = (" << d2nplan.X() << ","<< d2nplan.Y() << ","<< d2nplan.Z() << ")"<<std::endl;
+      std::cout << "Diff fi = (" << pdiff.X() << ","<<  pdiff.Y() << ","<<  pdiff.Z() << ")"<<std::endl;
     }
 
   pdiff = (d1 - dn1w)*(1/deltat);
   if ((pdiff-d2n1w).Magnitude() > 1.e-4*(pdiff.Magnitude()+1.e-1))
     {
-      cout << "d2n1w   = (" << d2n1w.X() << ","<< d2n1w.Y() << ","<< d2n1w.Z() << ")"<<endl;
-      cout << "Diff fi = (" << pdiff.X() << ","<<  pdiff.Y() << ","<<  pdiff.Z() << ")"<<endl;
+      std::cout << "d2n1w   = (" << d2n1w.X() << ","<< d2n1w.Y() << ","<< d2n1w.Z() << ")"<<std::endl;
+      std::cout << "Diff fi = (" << pdiff.X() << ","<<  pdiff.Y() << ","<<  pdiff.Z() << ")"<<std::endl;
     }
   pdiff = (d2 - dn2w)*(1/deltat);
   if ((pdiff-d2n2w).Magnitude() > 1.e-4*(pdiff.Magnitude()+1.e-1))
     {
-      cout << "d2n2w   = (" << d2n2w.X() << ","<< d2n2w.Y() << ","<< d2n2w.Z() << ")"<<endl;
-      cout << "Diff fi = (" << pdiff.X() << ","<<  pdiff.Y() << ","<<  pdiff.Z() << ")"<<endl;
+      std::cout << "d2n2w   = (" << d2n2w.X() << ","<< d2n2w.Y() << ","<< d2n2w.Z() << ")"<<std::endl;
+      std::cout << "Diff fi = (" << pdiff.X() << ","<<  pdiff.Y() << ","<<  pdiff.Z() << ")"<<std::endl;
     }
  
 
   for ( ii=1; ii<=4; ii++) {
     if (Abs(VDiff(ii)-D2EDT2(ii)) > 1.e-4*(Abs(D2EDT2(ii))+1.e-1)) 
        {
-         cout << "erreur sur D2EDT2 : "<< ii << endl;
-          cout << D2EDT2(ii) << " D.F = " << VDiff(ii) << endl;
+         std::cout << "erreur sur D2EDT2 : "<< ii << std::endl;
+          std::cout << D2EDT2(ii) << " D.F = " << VDiff(ii) << std::endl;
        } 
        for (jj=1; jj<=4; jj++) {
          if (Abs(MDiff(ii,jj)-D2EDXDT(ii, jj)) > 
              1.e-3*(Abs(D2EDXDT(ii, jj))+1.e-2)) 
              {
-               cout << "erreur sur D2EDXDT : "<< ii << " , " << jj << endl;
-               cout << D2EDXDT(ii,jj) << " D.F = " << MDiff(ii,jj) << endl;
+               std::cout << "erreur sur D2EDXDT : "<< ii << " , " << jj << std::endl;
+               std::cout << D2EDXDT(ii,jj) << " D.F = " << MDiff(ii,jj) << std::endl;
              }
        }
   }
@@ -1782,8 +1782,8 @@ Standard_Boolean BlendFunc_EvolRad::Section
       if (Abs(MDiff(ii,jj)-D2EDX2(ii, jj, 1)) > 
          1.e-4*(Abs(D2EDX2(ii, jj, 1))+1.e-1)) 
        {
-         cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 1 << endl;
-         cout << D2EDX2(ii,jj, 1) << " D.F = " << MDiff(ii,jj) << endl;
+         std::cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 1 << std::endl;
+         std::cout << D2EDX2(ii,jj, 1) << " D.F = " << MDiff(ii,jj) << std::endl;
        }
     }
   }
@@ -1795,8 +1795,8 @@ Standard_Boolean BlendFunc_EvolRad::Section
       if (Abs(MDiff(ii,jj)-D2EDX2(ii, jj, 2)) > 
          1.e-4*(Abs(D2EDX2(ii, jj, 2))+1.e-1)) 
        {
-         cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 2 << endl;
-         cout << D2EDX2(ii,jj, 2) << " D.F = " << MDiff(ii,jj) << endl;
+         std::cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 2 << std::endl;
+         std::cout << D2EDX2(ii,jj, 2) << " D.F = " << MDiff(ii,jj) << std::endl;
        }
     }
   }
@@ -1807,8 +1807,8 @@ Standard_Boolean BlendFunc_EvolRad::Section
       if (Abs(MDiff(ii,jj)-D2EDX2(ii, jj, 3)) > 
          1.e-4*(Abs(D2EDX2(ii, jj, 3))+1.e-1)) 
        {
-         cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 3 << endl;
-         cout << D2EDX2(ii,jj, 3) << " D.F = " << MDiff(ii,jj) << endl;
+         std::cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " << 3 << std::endl;
+         std::cout << D2EDX2(ii,jj, 3) << " D.F = " << MDiff(ii,jj) << std::endl;
        }
     }
   }
@@ -1820,9 +1820,9 @@ Standard_Boolean BlendFunc_EvolRad::Section
       if (Abs(MDiff(ii,jj)-D2EDX2(ii, jj, 4)) > 
          1.e-4*(Abs(D2EDX2(ii, jj, 4))+1.e-1)) 
        {
-         cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " 
-         << 4 << endl;
-         cout << D2EDX2(ii,jj, 4) << " D.F = " << MDiff(ii,jj) << endl;
+         std::cout << "erreur sur D2EDX2 : "<< ii << " , " << jj << " , " 
+         << 4 << std::endl;
+         std::cout << D2EDX2(ii,jj, 4) << " D.F = " << MDiff(ii,jj) << std::endl;
        }
     }
   }
@@ -1935,13 +1935,13 @@ Standard_Boolean BlendFunc_EvolRad::Section
   if (norm1 < Eps)  {
     norm1 = 1; // Unsatisfactory, but it is not necessary to stop
 #ifdef OCCT_DEBUG
-    cout << " EvolRad : Surface singuliere " << endl;
+    std::cout << " EvolRad : Surface singuliere " << std::endl;
 #endif
   }
   if (norm2 < Eps)  {
     norm2 = 1; // Unsatisfactory, but it is not necessary to stop
 #ifdef OCCT_DEBUG
-    cout << " EvolRad : Surface singuliere " << endl;
+    std::cout << " EvolRad : Surface singuliere " << std::endl;
 #endif
   }
 
index 0432ce0..a639b3c 100644 (file)
@@ -376,29 +376,29 @@ void Bnd_BoundSortBox2d::Dump() const
 {
   Standard_Integer lacase;
 
-  cout <<   "axis X : " << discrX << " intervalles de " << deltaX << endl;
+  std::cout <<   "axis X : " << discrX << " intervalles de " << deltaX << std::endl;
   if (discrX>1) {
     const TColStd_Array1OfListOfInteger & tabList=axisX->Array1();
     for (lacase=1; lacase<=discrX; lacase++) {
-      cout << "     X " << lacase << " : " ;
+      std::cout << "     X " << lacase << " : " ;
       TColStd_ListIteratorOfListOfInteger theList(tabList(lacase));
       for (; theList.More(); theList.Next()) {
-       cout << theList.Value() << " ";
+       std::cout << theList.Value() << " ";
       }
-      cout << "\n";
+      std::cout << "\n";
     }
   }
 
-  cout <<   "axis Y : " << discrY << " intervalles de " << deltaY << endl;
+  std::cout <<   "axis Y : " << discrY << " intervalles de " << deltaY << std::endl;
   if (discrY>1) {
     const TColStd_Array1OfListOfInteger & tabList=axisY->Array1();
     for (lacase=1; lacase<=discrY; lacase++) {
-      cout << "     Y " << lacase << " : " ;
+      std::cout << "     Y " << lacase << " : " ;
       TColStd_ListIteratorOfListOfInteger theList(tabList(lacase));
       for (; theList.More(); theList.Next()) {
-       cout << theList.Value() << " ";
+       std::cout << theList.Value() << " ";
       }
-      cout << "\n";
+      std::cout << "\n";
     }
   }
 }
index 3f9ea99..1b4ab44 100644 (file)
@@ -931,29 +931,29 @@ Standard_Real Bnd_Box::Distance(const Bnd_Box& Other) const
 
 void Bnd_Box::Dump () const
 {
-  cout << "Box3D : ";
-  if      (IsVoid())  cout << "Void";
-  else if (IsWhole()) cout << "Whole";
+  std::cout << "Box3D : ";
+  if      (IsVoid())  std::cout << "Void";
+  else if (IsWhole()) std::cout << "Whole";
   else {
-    cout << "\n Xmin : ";
-    if (IsOpenXmin()) cout << "Infinite";
-    else              cout << Xmin;
-    cout << "\n Xmax : ";
-    if (IsOpenXmax()) cout << "Infinite";
-    else              cout << Xmax;
-    cout << "\n Ymin : ";
-    if (IsOpenYmin()) cout << "Infinite";
-    else              cout << Ymin;
-    cout << "\n Ymax : ";
-    if (IsOpenYmax()) cout << "Infinite";
-    else              cout << Ymax;
-    cout << "\n Zmin : ";
-    if (IsOpenZmin()) cout << "Infinite";
-    else              cout << Zmin;
-    cout << "\n Zmax : ";
-    if (IsOpenZmax()) cout << "Infinite";
-    else              cout << Zmax;
+    std::cout << "\n Xmin : ";
+    if (IsOpenXmin()) std::cout << "Infinite";
+    else              std::cout << Xmin;
+    std::cout << "\n Xmax : ";
+    if (IsOpenXmax()) std::cout << "Infinite";
+    else              std::cout << Xmax;
+    std::cout << "\n Ymin : ";
+    if (IsOpenYmin()) std::cout << "Infinite";
+    else              std::cout << Ymin;
+    std::cout << "\n Ymax : ";
+    if (IsOpenYmax()) std::cout << "Infinite";
+    else              std::cout << Ymax;
+    std::cout << "\n Zmin : ";
+    if (IsOpenZmin()) std::cout << "Infinite";
+    else              std::cout << Zmin;
+    std::cout << "\n Zmax : ";
+    if (IsOpenZmax()) std::cout << "Infinite";
+    else              std::cout << Zmax;
   }
-  cout << "\n Gap : " << Gap;
-  cout << "\n";
+  std::cout << "\n Gap : " << Gap;
+  std::cout << "\n";
 }
index 02263e9..f082dbc 100644 (file)
@@ -280,23 +280,23 @@ Standard_Boolean Bnd_Box2d::IsOut (const Bnd_Box2d& Other) const
 
 void Bnd_Box2d::Dump () const
 {
-  cout << "Box2d : ";
-  if      (IsVoid())  cout << "Void";
-  else if (IsWhole()) cout << "Whole";
+  std::cout << "Box2d : ";
+  if      (IsVoid())  std::cout << "Void";
+  else if (IsWhole()) std::cout << "Whole";
   else {
-    cout << "\n Xmin : ";
-    if (IsOpenXmin()) cout << "Infinite";
-    else              cout << Xmin;
-    cout << "\n Xmax : ";
-    if (IsOpenXmax()) cout << "Infinite";
-    else              cout << Xmax;
-    cout << "\n Ymin : ";
-    if (IsOpenYmin()) cout << "Infinite";
-    else              cout << Ymin;
-    cout << "\n Ymax : ";
-    if (IsOpenYmax()) cout << "Infinite";
-    else              cout << Ymax;
+    std::cout << "\n Xmin : ";
+    if (IsOpenXmin()) std::cout << "Infinite";
+    else              std::cout << Xmin;
+    std::cout << "\n Xmax : ";
+    if (IsOpenXmax()) std::cout << "Infinite";
+    else              std::cout << Xmax;
+    std::cout << "\n Ymin : ";
+    if (IsOpenYmin()) std::cout << "Infinite";
+    else              std::cout << Ymin;
+    std::cout << "\n Ymax : ";
+    if (IsOpenYmax()) std::cout << "Infinite";
+    else              std::cout << Ymax;
   }
-  cout << "\n Gap : " << Gap;
-  cout << "\n";
+  std::cout << "\n Gap : " << Gap;
+  std::cout << "\n";
 }
index 1ee19f6..6f48e01 100644 (file)
@@ -220,12 +220,12 @@ Handle(CDM_Document) CDF_Application::Retrieve(const Handle(CDM_MetaData)& aMeta
     Standard_SStream aMsg;
     switch (CanRetrieve(aMetaData)) {
     case PCDM_RS_UnknownDocument: 
-      aMsg << "could not find the referenced document: " << aMetaData->Path() << "; not found."  <<(char)0 << endl;
+      aMsg << "could not find the referenced document: " << aMetaData->Path() << "; not found."  <<(char)0 << std::endl;
       myRetrievableStatus = PCDM_RS_UnknownDocument;
       throw Standard_Failure(aMsg.str().c_str());
       break;
     case PCDM_RS_PermissionDenied:      
-      aMsg << "Could not find the referenced document: " << aMetaData->Path() << "; permission denied. " <<(char)0 << endl;
+      aMsg << "Could not find the referenced document: " << aMetaData->Path() << "; permission denied. " <<(char)0 << std::endl;
       myRetrievableStatus = PCDM_RS_PermissionDenied;
       throw Standard_Failure(aMsg.str().c_str());
       break;
@@ -271,7 +271,7 @@ Handle(CDM_Document) CDF_Application::Retrieve(const Handle(CDM_MetaData)& aMeta
       myRetrievableStatus = theReader->GetStatus();
       if(myRetrievableStatus  > PCDM_RS_AlreadyRetrieved){
        Standard_SStream aMsg;
-       aMsg << anException << endl;
+       aMsg << anException << std::endl;
        throw Standard_Failure(aMsg.str().c_str());
       }        
     }
@@ -338,7 +338,7 @@ Handle(CDM_Document) CDF_Application::Read (Standard_IStream& theIStream)
     myRetrievableStatus = PCDM_RS_FormatFailure;
     
     Standard_SStream aMsg;
-    aMsg << anException << endl;
+    aMsg << anException << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
   }
 
@@ -367,7 +367,7 @@ Handle(CDM_Document) CDF_Application::Read (Standard_IStream& theIStream)
     if (myRetrievableStatus  > PCDM_RS_AlreadyRetrieved)
     {
       Standard_SStream aMsg;
-      aMsg << anException << endl;
+      aMsg << anException << std::endl;
       throw Standard_Failure(aMsg.str().c_str());
     }  
   }
index e1c4967..0b5eb1d 100644 (file)
@@ -599,7 +599,7 @@ Handle(CDM_Document) CDM_Document::FindFromPresentation
   if(!getPresentations().IsBound(x)) {
     Standard_SStream aMsg;
     aMsg <<"No document having this presentation: " << x << " does exist."
-         << endl << (char)0;
+         << std::endl << (char)0;
     throw Standard_NoSuchObject(aMsg.str().c_str());
   }
   return getPresentations()(x);
@@ -1125,7 +1125,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. "<< endl;
+         << " has not yet been opened by any application. "<< std::endl;
     throw Standard_Failure(aMsg.str().c_str());
   }
   return myApplication->Resources();
@@ -1155,7 +1155,7 @@ void CDM_Document::LoadResources()
     
     myResourcesAreLoaded=Standard_True;
     
-//    cout << "resource Loaded: Format: " << theFormat << ", FileExtension:" << myFileExtension << ", Description:" << myDescription << endl;
+//    std::cout << "resource Loaded: Format: " << theFormat << ", FileExtension:" << myFileExtension << ", Description:" << myDescription << std::endl;
   }
   return;
 }
index 6c74e04..090b6d2 100644 (file)
@@ -121,7 +121,7 @@ Standard_OStream& CDM_MetaData::Print(Standard_OStream& anOStream) const {
   if(HasVersion()) anOStream << "," << myVersion ;
   anOStream << "; Physical situation: ";
   anOStream << myFileName;
-  anOStream << endl;
+  anOStream << std::endl;
   return anOStream;
 }
 Standard_OStream& CDM_MetaData::operator << (Standard_OStream& anOStream) {
index 0eff8be..d95164f 100644 (file)
@@ -317,7 +317,7 @@ Standard_Boolean ChFi2d_FilletAlgo::Perform(const Standard_Real theRadius)
   default: // unknown: maximum
     aNBSteps = 100;
   }
-  //cout<<"aNBSteps = "<<aNBSteps<<endl;
+  //std::cout<<"aNBSteps = "<<aNBSteps<<std::endl;
 
   myRadius = theRadius;
   Standard_Real aParam, aStep, aDStep;
@@ -439,7 +439,7 @@ void ChFi2d_FilletAlgo::PerformNewton(FilletPoint* theLeft, FilletPoint* theRigh
     
     if (Abs(aA) < Precision::Confusion()) 
     { // linear case
-      //cout<<"###"<<endl;
+      //std::cout<<"###"<<std::endl;
       if (Abs(aB) > 10e-20) 
       {
         Standard_Real aX0 = - aC / aB; // use extremum
@@ -455,7 +455,7 @@ void ChFi2d_FilletAlgo::PerformNewton(FilletPoint* theLeft, FilletPoint* theRigh
     {
       if (Abs(aB) > Abs(aDet * 1000000.)) 
       {        // possible floating point operations accurancy errors
-        //cout<<"*";
+        //std::cout<<"*";
         ProcessPoint(theLeft, theRight, theLeft->getParam() + aDX / 2.0); // linear division otherwise
       } 
       else
@@ -471,7 +471,7 @@ void ChFi2d_FilletAlgo::PerformNewton(FilletPoint* theLeft, FilletPoint* theRigh
         } 
         else 
         {
-          //cout<<"%%%"<<endl;
+          //std::cout<<"%%%"<<std::endl;
           Standard_Real aX0 = - aB / aA; // use extremum
           if (aX0 > theLeft->getParam() && aX0 < theRight->getParam())
             ProcessPoint(theLeft, theRight, aX0);
index 0c05b9e..72d1728 100644 (file)
@@ -160,7 +160,7 @@ Standard_Integer ChFi3d::ConcaveSide(const BRepAdaptor_Surface& S1,
       }
       else {
 #ifdef OCCT_DEBUG
-        cout<<"ConcaveSide : no concave face"<<endl;
+        std::cout<<"ConcaveSide : no concave face"<<std::endl;
 #endif
        //This 10 shows that the face at end is in the extension of one of two base faces
        return 10;
index 9514f7c..0e6dca7 100644 (file)
@@ -265,7 +265,7 @@ void  ChFi3d_Builder::Compute()
     }
     catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-      cout <<"EXCEPTION Stripe compute " << anException << endl;
+      std::cout <<"EXCEPTION Stripe compute " << anException << std::endl;
 #endif
       (void)anException;
       badstripes.Append(itel.Value());
@@ -295,7 +295,7 @@ void  ChFi3d_Builder::Compute()
       }
       catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-        cout <<"EXCEPTION Corner compute " << anException << endl;
+        std::cout <<"EXCEPTION Corner compute " << anException << std::endl;
 #endif
         (void)anException;
         badvertices.Append(myVDataMap.FindKey(j));
@@ -350,7 +350,7 @@ void  ChFi3d_Builder::Compute()
        }
        catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-         cout <<"EXCEPTION Fillets compute " << anException << endl;
+         std::cout <<"EXCEPTION Fillets compute " << anException << std::endl;
 #endif
          (void)anException;
          badstripes.Append(itel.Value());
@@ -503,67 +503,67 @@ void  ChFi3d_Builder::Compute()
   
 #ifdef OCCT_DEBUG
   if(ChFi3d_GettraceCHRON()){
-    cout<<endl; 
-    cout<<"COMPUTE: temps total "<<t_total<<"s  dont :"<<endl;
-    cout<<"- Init + ExtentAnalyse "<<t_extent<<"s"<<endl;  
-    cout<<"- PerformSetOfSurf "<<t_perfsetofsurf<<"s"<<endl;
-    cout<<"- PerformFilletOnVertex "<<t_perffilletonvertex<<"s"<<endl; 
-    cout<<"- FilDS "<<t_filds<<"s"<<endl; 
-    cout<<"- Reconstruction "<<t_reconstruction<<"s"<<endl;
-    cout<<"- SetRegul "<<t_setregul<<"s"<<endl<<endl;
-
-    cout<<endl;
-    cout <<"temps PERFORMSETOFSURF "<<t_perfsetofsurf <<"s  dont : "<<endl;
-    cout <<"- SetofKPart "<<t_perfsetofkpart<<"s"<<endl;
-    cout <<"- SetofKGen "<< t_perfsetofkgen <<"s"<<endl;
-    cout <<"- MakeExtremities "<<t_makextremities<<"s"<<endl<<endl;
+    std::cout<<std::endl; 
+    std::cout<<"COMPUTE: temps total "<<t_total<<"s  dont :"<<std::endl;
+    std::cout<<"- Init + ExtentAnalyse "<<t_extent<<"s"<<std::endl;  
+    std::cout<<"- PerformSetOfSurf "<<t_perfsetofsurf<<"s"<<std::endl;
+    std::cout<<"- PerformFilletOnVertex "<<t_perffilletonvertex<<"s"<<std::endl; 
+    std::cout<<"- FilDS "<<t_filds<<"s"<<std::endl; 
+    std::cout<<"- Reconstruction "<<t_reconstruction<<"s"<<std::endl;
+    std::cout<<"- SetRegul "<<t_setregul<<"s"<<std::endl<<std::endl;
+
+    std::cout<<std::endl;
+    std::cout <<"temps PERFORMSETOFSURF "<<t_perfsetofsurf <<"s  dont : "<<std::endl;
+    std::cout <<"- SetofKPart "<<t_perfsetofkpart<<"s"<<std::endl;
+    std::cout <<"- SetofKGen "<< t_perfsetofkgen <<"s"<<std::endl;
+    std::cout <<"- MakeExtremities "<<t_makextremities<<"s"<<std::endl<<std::endl;
     
     
-    cout <<"temps SETOFKGEN "<< t_perfsetofkgen<<"s dont : "<<endl;
-    cout<<"- PerformSurf "<<t_performsurf<<"s"<<endl;
-    cout<<"- starsol "<< t_startsol <<"s"<<endl<<endl;
+    std::cout <<"temps SETOFKGEN "<< t_perfsetofkgen<<"s dont : "<<std::endl;
+    std::cout<<"- PerformSurf "<<t_performsurf<<"s"<<std::endl;
+    std::cout<<"- starsol "<< t_startsol <<"s"<<std::endl<<std::endl;
     
-    cout<<"temps PERFORMSURF "<<t_performsurf<<"s  dont : "  << endl;
-    cout<<"- computedata "<<t_computedata<<"s"<<endl;
-    cout<<"- completedata "<<t_completedata<<"s"<<endl<<endl;
+    std::cout<<"temps PERFORMSURF "<<t_performsurf<<"s  dont : "  << std::endl;
+    std::cout<<"- computedata "<<t_computedata<<"s"<<std::endl;
+    std::cout<<"- completedata "<<t_completedata<<"s"<<std::endl<<std::endl;
     
     
-    cout<<"temps PERFORMFILLETVERTEX "<<t_perffilletonvertex <<"s dont : "  << endl;
-    cout<<"- PerformOneCorner "<<t_perform1corner<<"s"<<endl;
-    cout<<"- PerformIntersectionAtEnd "<<t_performatend<<"s"<<endl;
-    cout<<"- PerformTwoCorner "<<t_perform2corner<<"s"<<endl;
-    cout<<"- PerformThreeCorner "<<t_perform3corner<<"s"<<endl;
-    cout<<"- PerformMoreThreeCorner "<<t_performmore3corner<<"s"<<endl<<endl;
+    std::cout<<"temps PERFORMFILLETVERTEX "<<t_perffilletonvertex <<"s dont : "  << std::endl;
+    std::cout<<"- PerformOneCorner "<<t_perform1corner<<"s"<<std::endl;
+    std::cout<<"- PerformIntersectionAtEnd "<<t_performatend<<"s"<<std::endl;
+    std::cout<<"- PerformTwoCorner "<<t_perform2corner<<"s"<<std::endl;
+    std::cout<<"- PerformThreeCorner "<<t_perform3corner<<"s"<<std::endl;
+    std::cout<<"- PerformMoreThreeCorner "<<t_performmore3corner<<"s"<<std::endl<<std::endl;
     
     
-    cout<<"temps PerformOneCorner "<<t_perform1corner<<"s dont:"<<endl;
-    cout<<"- temps condition if (same) "<<t_same << "s "<<endl; 
-    cout<<"- temps condition if (inter) "<<t_inter<<"s " <<endl;
-    cout<<"- temps condition if (same inter) "<<t_sameinter<<"s " <<endl<<endl;
+    std::cout<<"temps PerformOneCorner "<<t_perform1corner<<"s dont:"<<std::endl;
+    std::cout<<"- temps condition if (same) "<<t_same << "s "<<std::endl; 
+    std::cout<<"- temps condition if (inter) "<<t_inter<<"s " <<std::endl;
+    std::cout<<"- temps condition if (same inter) "<<t_sameinter<<"s " <<std::endl<<std::endl;
     
-    cout<<"temps PerformTwocorner "<<t_perform2corner<<"s  dont:"<<endl;
-    cout<<"- temps initialisation "<< t_t2cornerinit<<"s"<<endl;
-    cout<<"- temps PerformTwoCornerbyInter "<<t_perf2cornerbyinter<<"s"<<endl;
-    cout<<"- temps ChFiKPart_ComputeData "<<t_chfikpartcompdata <<"s"<<endl;
-    cout<<"- temps cheminement "<<t_cheminement<<"s"<<endl;
-    cout<<"- temps remplissage "<<t_remplissage<<"s"<<endl;
-    cout<<"- temps mise a jour stripes  "<<t_t2cornerDS<<"s"<<endl<<endl;
+    std::cout<<"temps PerformTwocorner "<<t_perform2corner<<"s  dont:"<<std::endl;
+    std::cout<<"- temps initialisation "<< t_t2cornerinit<<"s"<<std::endl;
+    std::cout<<"- temps PerformTwoCornerbyInter "<<t_perf2cornerbyinter<<"s"<<std::endl;
+    std::cout<<"- temps ChFiKPart_ComputeData "<<t_chfikpartcompdata <<"s"<<std::endl;
+    std::cout<<"- temps cheminement "<<t_cheminement<<"s"<<std::endl;
+    std::cout<<"- temps remplissage "<<t_remplissage<<"s"<<std::endl;
+    std::cout<<"- temps mise a jour stripes  "<<t_t2cornerDS<<"s"<<std::endl<<std::endl;
     
-    cout<<" temps PerformThreecorner "<<t_perform3corner<<"s  dont:"<<endl;
-    cout<<"- temps initialisation "<< t_t3cornerinit<<"s"<<endl;
-    cout<<"- temps cas spherique  "<<t_spherique<<"s"<<endl;
-    cout<<"- temps cas torique  "<<t_torique<<"s"<<endl;
-    cout<<"- temps notfilling "<<t_notfilling<<"s"<<endl;
-    cout<<"- temps filling "<<t_filling<<"s"<<endl;
-    cout<<"- temps mise a jour stripes  "<<t_t3cornerDS<<"s"<<endl<<endl;
+    std::cout<<" temps PerformThreecorner "<<t_perform3corner<<"s  dont:"<<std::endl;
+    std::cout<<"- temps initialisation "<< t_t3cornerinit<<"s"<<std::endl;
+    std::cout<<"- temps cas spherique  "<<t_spherique<<"s"<<std::endl;
+    std::cout<<"- temps cas torique  "<<t_torique<<"s"<<std::endl;
+    std::cout<<"- temps notfilling "<<t_notfilling<<"s"<<std::endl;
+    std::cout<<"- temps filling "<<t_filling<<"s"<<std::endl;
+    std::cout<<"- temps mise a jour stripes  "<<t_t3cornerDS<<"s"<<std::endl<<std::endl;
     
-    cout<<"temps PerformMore3Corner "<<t_performmore3corner<<"s dont:"<<endl;
-    cout<<"-temps plate "<<t_plate << "s "<<endl; 
-    cout<<"-temps approxplate "<<t_approxplate<<"s " <<endl;
-    cout<<"-temps batten "<< t_batten<<"s " <<endl<<endl;
+    std::cout<<"temps PerformMore3Corner "<<t_performmore3corner<<"s dont:"<<std::endl;
+    std::cout<<"-temps plate "<<t_plate << "s "<<std::endl; 
+    std::cout<<"-temps approxplate "<<t_approxplate<<"s " <<std::endl;
+    std::cout<<"-temps batten "<< t_batten<<"s " <<std::endl<<std::endl;
     
-    cout <<"TEMPS DIVERS "<<endl;
-    cout<<"-temps ChFi3d_sameparameter "<<t_sameparam<<"s"<<endl<<endl;
+    std::cout <<"TEMPS DIVERS "<<std::endl;
+    std::cout<<"-temps ChFi3d_sameparameter "<<t_sameparam<<"s"<<std::endl<<std::endl;
   }
 #endif
   //
index 1d92766..5885154 100644 (file)
@@ -4273,7 +4273,7 @@ void ChFi3d_PerformElSpine(Handle(ChFiDS_HElSpine)& HES,
       BSpline = C1;
     }
     else {
-      //cout << "Attention : Echec de C0BSplineToC1 !" << endl;
+      //std::cout << "Attention : Echec de C0BSplineToC1 !" << std::endl;
     }
   }
   //
index 7bbbb6b..0966ed6 100644 (file)
@@ -734,7 +734,7 @@ void ChFi3d_Builder::PerformExtremity (const Handle(ChFiDS_Spine)& Spine)
             }
             else{
 #ifdef OCCT_DEBUG
-           cout<<"top has more than 3 edges"<<endl;
+           std::cout<<"top has more than 3 edges"<<std::endl;
 #endif
               sommetpourri = Standard_True;
               break;
@@ -767,7 +767,7 @@ void ChFi3d_Builder::PerformExtremity (const Handle(ChFiDS_Spine)& Spine)
     if(nbf>3) {
       Spine->SetFirstStatus(ChFiDS_BreakPoint);
 #ifdef OCCT_DEBUG
-      cout<<"top has : "<<nbf<<" faces."<<endl;
+      std::cout<<"top has : "<<nbf<<" faces."<<std::endl;
 #endif
     }
     nbf = 0, jf = 0;
@@ -784,7 +784,7 @@ void ChFi3d_Builder::PerformExtremity (const Handle(ChFiDS_Spine)& Spine)
     if(nbf>3) {
       Spine->SetLastStatus(ChFiDS_BreakPoint);
 #ifdef OCCT_DEBUG
-      cout<<"top has : "<<nbf<<" faces."<<endl;
+      std::cout<<"top has : "<<nbf<<" faces."<<std::endl;
 #endif
     }
   }
index f298d94..ee86f4d 100644 (file)
@@ -1336,7 +1336,7 @@ Standard_Boolean  ChFi3d_Builder::SearchFace
   if (Pc.IsVertex()){
     // attention it is necessary to analyze all faces that turn around of the vertex
 #ifdef OCCT_DEBUG
-    cout<<"Commonpoint on vertex, the process hangs up"<<endl;
+    std::cout<<"Commonpoint on vertex, the process hangs up"<<std::endl;
 #endif
     if (Pc.HasVector()) { //General processing
       TopoDS_Face Fbis;
@@ -1381,7 +1381,7 @@ Standard_Boolean  ChFi3d_Builder::SearchFace
          if (Spine.IsNull()) {
            //La Spine peut etre nulle (ThreeCorner)
 #ifdef OCCT_DEBUG
-           cout << "FindFace sur vertex avec spine nulle! QUEZAKO ?" << endl;
+           std::cout << "FindFace sur vertex avec spine nulle! QUEZAKO ?" << std::endl;
 #endif
            return Standard_False;
          }
@@ -1601,7 +1601,7 @@ static void ChFi3d_MakeExtremities(Handle(ChFiDS_Stripe)&      Stripe,
        ChFi3d_SingularExtremity(Stripe, DStr, CV1.Vertex(), tol3d, tol2d);
       }
 # if CHFI3D_DEB
-      else { cout << "MakeExtremities : Singularity out of Vertex !!" << endl; }
+      else { std::cout << "MakeExtremities : Singularity out of Vertex !!" << std::endl; }
 # endif
     }
     return;
@@ -1666,7 +1666,7 @@ static void ChFi3d_MakeExtremities(Handle(ChFiDS_Stripe)&      Stripe,
        ChFi3d_SingularExtremity(Stripe, DStr, cpdeb1.Vertex(), tol3d, tol2d);
       }
 # if CHFI3D_DEB
-      else { cout << "MakeExtremities : Singularity out of Vertex !!" << endl; }
+      else { std::cout << "MakeExtremities : Singularity out of Vertex !!" << std::endl; }
 # endif
     }
   }
@@ -1728,7 +1728,7 @@ static void ChFi3d_MakeExtremities(Handle(ChFiDS_Stripe)&      Stripe,
        ChFi3d_SingularExtremity(Stripe, DStr, cpfin1.Vertex(), tol3d, tol2d);
       }
 # if CHFI3D_DEB
-      else { cout << "MakeExtremities : Singularity out of Vertex !!" << endl; }
+      else { std::cout << "MakeExtremities : Singularity out of Vertex !!" << std::endl; }
 # endif
     }
   }
@@ -1752,7 +1752,7 @@ static void ChFi3d_Purge (Handle(ChFiDS_Stripe)&    Stripe,
   if (!SD->Vertex(isfirst,opp).IsOnArc() || 
       SD->TwistOnS1() || SD->TwistOnS2() ) {
 #ifdef OCCT_DEBUG
-    cout<<"ChFi3d_Purge : No output on extension."<<endl;
+    std::cout<<"ChFi3d_Purge : No output on extension."<<std::endl;
 #endif
     ChFiDS_SequenceOfSurfData& Seq = 
       Stripe->ChangeSetOfSurfData()->ChangeSequence();
@@ -2421,12 +2421,12 @@ void ChFi3d_Builder::PerformSetOfKPart(Handle(ChFiDS_Stripe)& Stripe,
       
       if(!ChFiKPart_ComputeData::Compute(DStr,SD,HS1,HS2,Or1,Or2,Spine,iedge)){
 #ifdef OCCT_DEBUG
-       cout<<"failed calculation KPart"<<endl;
+       std::cout<<"failed calculation KPart"<<std::endl;
 #endif
       }
       else if(!SplitKPart(SD,LSD,Spine,iedge,HS1,It1,HS2,It2,intf,intl)){
 #ifdef OCCT_DEBUG
-       cout<<"failed calculation KPart"<<endl;
+       std::cout<<"failed calculation KPart"<<std::endl;
 #endif
        LSD.Clear();
       }
@@ -2991,7 +2991,7 @@ void ChFi3d_Builder::PerformSetOfKGen(Handle(ChFiDS_Stripe)& Stripe,
       else if(IF < IL){
        TColStd_Array1OfReal wv(IF,IL - 1);
 #ifdef OCCT_DEBUG
-       cout<<"length of the trajectory : "<<(WL-WF)<<endl;
+       std::cout<<"length of the trajectory : "<<(WL-WF)<<std::endl;
 #endif
        for(i = IF; i < IL; i++){
          Standard_Integer iloc = i;
@@ -3002,7 +3002,7 @@ void ChFi3d_Builder::PerformSetOfKGen(Handle(ChFiDS_Stripe)& Stripe,
 #ifdef OCCT_DEBUG
          gp_Pnt pelsapp = curels.Value(wi);
          Standard_Real distinit = pv.Distance(pelsapp);
-         cout<<"distance psp/papp : "<<distinit<<endl;
+         std::cout<<"distance psp/papp : "<<distinit<<std::endl;
 #endif
          Extrema_LocateExtPC ext(pv,curels,wi,1.e-8);
          wv(i) = wi;
@@ -3011,7 +3011,7 @@ void ChFi3d_Builder::PerformSetOfKGen(Handle(ChFiDS_Stripe)& Stripe,
          }
          else {
 #ifdef OCCT_DEBUG
-           cout<<"fail of projection vertex ElSpine!!!"<<endl;
+           std::cout<<"fail of projection vertex ElSpine!!!"<<std::endl;
 #endif
          }
        }
index 58188b7..7e1b3f2 100644 (file)
@@ -283,7 +283,7 @@ static void CompParam(Geom2dAdaptor_Curve  Carc,
   else {
     //(2) Intersection
 #ifdef OCCT_DEBUG
-    cout<< "CompParam : bad intersection parameters"<<endl; 
+    std::cout<< "CompParam : bad intersection parameters"<<std::endl; 
 #endif
     IntRes2d_IntersectionPoint int2d;
     Geom2dInt_GInter Intersection;
@@ -298,7 +298,7 @@ static void CompParam(Geom2dAdaptor_Curve  Carc,
        nbseg = Intersection.NbSegments();
        if ( nbseg > 0 ){ 
 #ifdef OCCT_DEBUG
-         cout<< "segments of intersection on the restrictions"<<endl; 
+         std::cout<< "segments of intersection on the restrictions"<<std::endl; 
 #endif  
        }
        nbpt = Intersection.NbPoints();
@@ -320,7 +320,7 @@ static void CompParam(Geom2dAdaptor_Curve  Carc,
   if(!found){
     // (3) Projection...
 #ifdef OCCT_DEBUG
-    cout<<"CompParam : failed intersection PC, projection is created."<<endl;
+    std::cout<<"CompParam : failed intersection PC, projection is created."<<std::endl;
 #endif
     parc = prefarc;
     Geom2dAPI_ProjectPointOnCurve projector(point,Ctg);
@@ -330,7 +330,7 @@ static void CompParam(Geom2dAdaptor_Curve  Carc,
       // at the end of spine...
       ptg = preftg; 
 #ifdef OCCT_DEBUG
-      cout<<"CompParam : failed proj p2d/c2d, the extremity is taken!" <<endl;
+      std::cout<<"CompParam : failed proj p2d/c2d, the extremity is taken!" <<std::endl;
 #endif
     }
     else  {
@@ -551,12 +551,12 @@ Standard_Boolean ChFi3d_Builder::CompleteData
                               myConti, Degmax, Segmax);  
   if (!approx.IsDone()) {
 #ifdef OCCT_DEBUG
-    cout << "Approximation non faite !!!" << endl;
+    std::cout << "Approximation non faite !!!" << std::endl;
 #endif
     return Standard_False;
   }
 #ifdef OCCT_DEBUG
-  approx.Dump(cout);
+  approx.Dump(std::cout);
 #endif
   return StoreData( Data, approx, lin, S1, S2, Or1, Gd1, Gd2, Gf1, Gf2, Reversed);
 } 
@@ -587,12 +587,12 @@ Standard_Boolean ChFi3d_Builder::CompleteData
                               myConti);  
  if (!approx.IsDone()) {
 #ifdef OCCT_DEBUG
-    cout << "Approximation is not done!" << endl;
+    std::cout << "Approximation is not done!" << std::endl;
 #endif  
     return Standard_False;
   }
 #ifdef OCCT_DEBUG
-  approx.Dump(cout);
+  approx.Dump(std::cout);
 #endif
 
   return StoreData(Data,approx,lin,S1,S2,Or,0,0,0,0,Reversed);
@@ -624,12 +624,12 @@ Standard_Boolean ChFi3d_Builder::CompleteData
                               myConti);  
  if (!approx.IsDone()) {
 #ifdef OCCT_DEBUG
-    cout << "Approximation non faite !!!" << endl;
+    std::cout << "Approximation non faite !!!" << std::endl;
 #endif  
     return Standard_False;
   }
 #ifdef OCCT_DEBUG
-  approx.Dump(cout);
+  approx.Dump(std::cout);
 #endif
 
   return StoreData(Data,approx,lin,S1,S2,Or,0,0,0,0);
@@ -778,7 +778,7 @@ Standard_Boolean ChFi3d_Builder::StoreData(Handle(ChFiDS_SurfData)& Data,
    
  if(!ChFi3d_CheckSameParameter(checkcurve,PCurveOnFace,S1,tolC1,tolcheck)){
 #ifdef OCCT_DEBUG
-   cout<<"aaproximate tolerance under-valued : "<<tolC1<<" for "<<tolcheck<<endl;
+   std::cout<<"aaproximate tolerance under-valued : "<<tolC1<<" for "<<tolcheck<<std::endl;
 #endif 
     tolC1 = tolcheck;
   }
@@ -831,7 +831,7 @@ Standard_Boolean ChFi3d_Builder::StoreData(Handle(ChFiDS_SurfData)& Data,
     chc.Load(Crv3d2,par1,par2);
    if(!ChFi3d_CheckSameParameter(checkcurve,PCurveOnFace,S2,tolC2,tolcheck)){
 #ifdef OCCT_DEBUG
-      cout<<"approximate tolerance under-evaluated : "<<tolC2<<" for "<<tolcheck<<endl;
+      std::cout<<"approximate tolerance under-evaluated : "<<tolC2<<" for "<<tolcheck<<std::endl;
 #endif 
       tolC2 = tolcheck;
     }
@@ -1011,7 +1011,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
                                    tolesp,TolGuide,RecRst,RecP,RecS,
                                    NewFirst,ParSol)){
 #ifdef OCCT_DEBUG
-      cout<<"ChFi3d_Builder::ComputeData : calculation fail first section"<<endl;
+      std::cout<<"ChFi3d_Builder::ComputeData : calculation fail first section"<<std::endl;
 #endif
       return Standard_False;
     }
@@ -1026,7 +1026,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
 
     if (!TheWalk.IsDone()) {
 #ifdef OCCT_DEBUG
-      cout << "Path not created" << endl;
+      std::cout << "Path not created" << std::endl;
 #endif  
       return Standard_False;
     }
@@ -1034,7 +1034,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
     if (reverse) {
       if (!TheWalk.Complete(Func,FInv,FInvP,FInvC,SpLast)) {
 #ifdef OCCT_DEBUG
-       cout << "Not completed" << endl;
+       std::cout << "Not completed" << std::endl;
 #endif
       }
     }  
@@ -1045,24 +1045,24 @@ Standard_Boolean ChFi3d_Builder::ComputeData
     if (Nbpnt <= 1 && again == 0)  {
       again++;
 #ifdef OCCT_DEBUG
-      cout <<"one point of the path MS/50 is attempted."<<endl;
+      std::cout <<"one point of the path MS/50 is attempted."<<std::endl;
 #endif  
       MS = MS/50.; Target = Targetsov;
     }
     else if (Nbpnt<=nbptmin && again == 0)  {
       again++;
 #ifdef OCCT_DEBUG
-      cout <<"Number of points is too small, the step is reduced"<<endl;
+      std::cout <<"Number of points is too small, the step is reduced"<<std::endl;
 #endif  
       Standard_Real u1 = Lin->Point(1).Parameter();
       Standard_Real u2 = Lin->Point(Nbpnt).Parameter();
       MS = (u2-u1)/(nbptmin+1.0);
-//      cout << " MS : " << MS << " u1 : " << u1 << " u2 : " << u2 << " nbptmin : " << nbptmin << endl;
+//      std::cout << " MS : " << MS << " u1 : " << u1 << " u2 : " << u2 << " nbptmin : " << nbptmin << std::endl;
       Target = Targetsov;
     }
     else if(Nbpnt<=nbptmin){
 #ifdef OCCT_DEBUG
-      cout <<"Number of points is still too small, quit"<<endl;
+      std::cout <<"Number of points is still too small, quit"<<std::endl;
 #endif  
       return Standard_False;
     }
@@ -1143,7 +1143,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
                                     tolesp, TolGuide, RecRst1, RecP1, RecRst2, RecP2,
                                     NewFirst, ParSol)){
 #ifdef OCCT_DEBUG
-      cout<<"ChFi3d_Builder::ComputeData : fail calculation first section"<<endl;
+      std::cout<<"ChFi3d_Builder::ComputeData : fail calculation first section"<<std::endl;
 #endif
       return Standard_False;
     }
@@ -1158,7 +1158,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
 
     if (!TheWalk.IsDone()) {
 #ifdef OCCT_DEBUG
-      cout << "Path not done" << endl;
+      std::cout << "Path not done" << std::endl;
 #endif  
       return Standard_False;
     }
@@ -1166,7 +1166,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
     if (reverse) {
       if (!TheWalk.Complete(Func, FInv1, FInvP1, FInv2, FInvP2, SpLast)) {
 #ifdef OCCT_DEBUG
-       cout << "Not completed" << endl;
+       std::cout << "Not completed" << std::endl;
 #endif
       }
     }  
@@ -1177,14 +1177,14 @@ Standard_Boolean ChFi3d_Builder::ComputeData
     if (Nbpnt <= 1 && again == 0)  {
       again++;
 #ifdef OCCT_DEBUG
-      cout <<"one point of path MS/50 is attempted."<<endl;
+      std::cout <<"one point of path MS/50 is attempted."<<std::endl;
 #endif  
       MS = MS/50.; Target = Targetsov;
     }
     else if (Nbpnt<=nbptmin && again == 0)  {
       again++;
 #ifdef OCCT_DEBUG
-      cout <<"Number of points is too small, the step is reduced"<<endl;
+      std::cout <<"Number of points is too small, the step is reduced"<<std::endl;
 #endif  
       Standard_Real u1 = Lin->Point(1).Parameter();
       Standard_Real u2 = Lin->Point(Nbpnt).Parameter();
@@ -1193,7 +1193,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
     }
     else if(Nbpnt<=nbptmin){
 #ifdef OCCT_DEBUG
-      cout <<"Number of points is still too small, quit"<<endl;
+      std::cout <<"Number of points is still too small, quit"<<std::endl;
 #endif  
       return Standard_False;
     }
@@ -1274,7 +1274,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
                                    NewFirst,ParSol)){
 #ifdef OCCT_DEBUG
 
-      cout<<"ChFi3d_Builder::SimulData : fail calculate first section"<<endl;
+      std::cout<<"ChFi3d_Builder::SimulData : fail calculate first section"<<std::endl;
 #endif
       return Standard_False;
     }
@@ -1288,14 +1288,14 @@ Standard_Boolean ChFi3d_Builder::SimulData
                     MS,TolGuide,ParSol,tolesp,Fleche,Appro);
     if (!TheWalk.IsDone()) {
 #ifdef OCCT_DEBUG
-      cout << "Path not done" << endl;
+      std::cout << "Path not done" << std::endl;
 #endif
       return Standard_False;
     }
     if (reverse) {
       if (!TheWalk.Complete(Func,FInv,FInvP,FInvC,SpLast)) {
 #ifdef OCCT_DEBUG
-       cout << "Not completed" << endl;
+       std::cout << "Not completed" << std::endl;
 #endif
       }
     }  
@@ -1304,14 +1304,14 @@ Standard_Boolean ChFi3d_Builder::SimulData
     if (Nbpnt <= 1 && again == 0)  {
       again++;
 #ifdef OCCT_DEBUG
-      cout <<"one point of path MS/50 is attempted."<<endl;
+      std::cout <<"one point of path MS/50 is attempted."<<std::endl;
 #endif
       MS = MS/50.; Target = Targetsov;
     }
     else if (Nbpnt <= NbSecMin && again == 0)  {
       again++;
 #ifdef OCCT_DEBUG
-      cout <<"Number of points is too small, the step is reduced"<<endl;
+      std::cout <<"Number of points is too small, the step is reduced"<<std::endl;
 #endif
       Standard_Real u1 = Lin->Point(1).Parameter();
       Standard_Real u2 = Lin->Point(Nbpnt).Parameter();
@@ -1320,7 +1320,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
     }
     else if(Nbpnt<=NbSecMin){
 #ifdef OCCT_DEBUG
-      cout <<"Number of points is still too small, quit"<<endl;
+      std::cout <<"Number of points is still too small, quit"<<std::endl;
 #endif
       return Standard_False;
     }
@@ -1400,7 +1400,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
                                    NewFirst,ParSol)){
 #ifdef OCCT_DEBUG
 
-      cout<<"ChFi3d_Builder::SimulData : calculation fail first section"<<endl;
+      std::cout<<"ChFi3d_Builder::SimulData : calculation fail first section"<<std::endl;
 #endif
       return Standard_False;
     }
@@ -1414,14 +1414,14 @@ Standard_Boolean ChFi3d_Builder::SimulData
                     MS, TolGuide, ParSol, tolesp, Fleche, Appro);
     if (!TheWalk.IsDone()) {
 #ifdef OCCT_DEBUG
-      cout << "Path not created" << endl;
+      std::cout << "Path not created" << std::endl;
 #endif
       return Standard_False;
     }
     if (reverse) {
       if (!TheWalk.Complete(Func, FInv1, FInvP1, FInv2, FInvP2, SpLast)) {
 #ifdef OCCT_DEBUG
-       cout << "Not completed" << endl;
+       std::cout << "Not completed" << std::endl;
 #endif
       }
     }  
@@ -1430,14 +1430,14 @@ Standard_Boolean ChFi3d_Builder::SimulData
     if (Nbpnt <= 1 && again == 0)  {
       again++;
 #ifdef OCCT_DEBUG
-      cout <<"only one point of path MS/50 is attempted."<<endl;
+      std::cout <<"only one point of path MS/50 is attempted."<<std::endl;
 #endif
       MS = MS/50.; Target = Targetsov;
     }
     else if (Nbpnt <= NbSecMin && again == 0)  {
       again++;
 #ifdef OCCT_DEBUG
-      cout <<"Number of points is too small, the step is reduced"<<endl;
+      std::cout <<"Number of points is too small, the step is reduced"<<std::endl;
 #endif
       Standard_Real u1 = Lin->Point(1).Parameter();
       Standard_Real u2 = Lin->Point(Nbpnt).Parameter();
@@ -1446,7 +1446,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
     }
     else if(Nbpnt<=NbSecMin){
 #ifdef OCCT_DEBUG
-      cout <<"Number of points is still too small, quit"<<endl;
+      std::cout <<"Number of points is still too small, quit"<<std::endl;
 #endif
       return Standard_False;
     }
@@ -1611,7 +1611,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
                                    tolesp,TolGuide,RecOnS1,RecOnS2,
                                    NewFirst,ParSol)){
 #ifdef OCCT_DEBUG
-      cout<<"ChFi3d_Builder::ComputeData : calculation fail first section"<<endl;
+      std::cout<<"ChFi3d_Builder::ComputeData : calculation fail first section"<<std::endl;
 #endif
       return Standard_False;
     }
@@ -1644,7 +1644,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
                    ParSol,TolEsp,Fleche,Appro);
     if (!TheWalk.IsDone()) {
 #ifdef OCCT_DEBUG
-      cout << "Path is not created" << endl;
+      std::cout << "Path is not created" << std::endl;
 #endif
       return Standard_False;
     }
@@ -1666,7 +1666,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
     if (Inside)  complmnt = TheWalk.Complete(Func,FInv,SpLast);
     if(!complmnt){
 #ifdef OCCT_DEBUG
-      cout << "Not completed" << endl;
+      std::cout << "Not completed" << std::endl;
 #endif
       return Standard_False;
     }
@@ -1677,7 +1677,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
     Nbpnt = Lin->NbPoints();
     if (Nbpnt == 0){
 #ifdef OCCT_DEBUG
-      cout <<"0 point of path, quit."<<endl;
+      std::cout <<"0 point of path, quit."<<std::endl;
 #endif
       return Standard_False;
     }
@@ -1702,7 +1702,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
       //satisfactory maximum step. If it already done, quit.
       if(tchernobyl){
 #ifdef OCCT_DEBUG
-       cout <<"If it drags without control, quit."<<endl;
+       std::cout <<"If it drags without control, quit."<<std::endl;
 #endif
        return Standard_False;
       }
@@ -1710,14 +1710,14 @@ Standard_Boolean ChFi3d_Builder::ComputeData
       TheWalk.Check(0);
       if (Nbpnt == 1){
 #ifdef OCCT_DEBUG
-       cout <<"only one point of path MS/100 is attempted"<<endl;
-       cout <<"and the controls are extended."<<endl;
+       std::cout <<"only one point of path MS/100 is attempted"<<std::endl;
+       std::cout <<"and the controls are extended."<<std::endl;
 #endif
        MS *= 0.01;
       }
       else{
 #ifdef OCCT_DEBUG
-       cout <<"It drags, the controls are extended."<<endl;
+       std::cout <<"It drags, the controls are extended."<<std::endl;
 #endif
        MS = (lpointpar-fpointpar)/Nbpnt; //EvalStep(Lin);
       }
@@ -1725,7 +1725,7 @@ Standard_Boolean ChFi3d_Builder::ComputeData
     else if (Nbpnt < nbptmin){
       if(again == 0){
 #ifdef OCCT_DEBUG
-       cout <<"Number of points is too small, the step is reduced"<<endl;
+       std::cout <<"Number of points is too small, the step is reduced"<<std::endl;
 #endif
        u1sov = fpointpar;
        u2sov = lpointpar;
@@ -1735,13 +1735,13 @@ Standard_Boolean ChFi3d_Builder::ComputeData
        if(Abs(fpointpar-u1sov)>=TolGuide || 
           Abs(lpointpar-u2sov)>=TolGuide){
 #ifdef OCCT_DEBUG
-         cout <<"Number of points is still too small, the step is reduced"<<endl;
+         std::cout <<"Number of points is still too small, the step is reduced"<<std::endl;
 #endif  
          MS = (lpointpar - fpointpar) * factor;
        }
        else{
 #ifdef OCCT_DEBUG
-         cout <<"Number of points is still too small, quit"<<endl;
+         std::cout <<"Number of points is still too small, quit"<<std::endl;
 #endif  
          return Standard_False;
        }
@@ -1756,13 +1756,13 @@ Standard_Boolean ChFi3d_Builder::ComputeData
   if(TheWalk.TwistOnS1()){
     Data->TwistOnS1(Standard_True);
 #ifdef OCCT_DEBUG
-    cout<<"Path completed, but TWIST on S1"<<endl;
+    std::cout<<"Path completed, but TWIST on S1"<<std::endl;
 #endif
   }
   if(TheWalk.TwistOnS2()){
     Data->TwistOnS2(Standard_True);
 #ifdef OCCT_DEBUG
-    cout<<"Parh completed, but TWIST on S2"<<endl;
+    std::cout<<"Parh completed, but TWIST on S2"<<std::endl;
 #endif
   }
 
@@ -2169,7 +2169,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
                                    tolesp,TolGuide,RecOnS1,RecOnS2,
                                    NewFirst,ParSol)){
 #ifdef OCCT_DEBUG
-      cout<<"ChFi3d_Builder::SimulData : calculation fail first section"<<endl;
+      std::cout<<"ChFi3d_Builder::SimulData : calculation fail first section"<<std::endl;
 #endif
       return Standard_False;
     }
@@ -2192,7 +2192,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
     
     if (!TheWalk.IsDone()) {
 #ifdef OCCT_DEBUG
-      cout << "Path not created" << endl;
+      std::cout << "Path not created" << std::endl;
 #endif
       return Standard_False;
     }
@@ -2213,7 +2213,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
       if (Inside)  complmnt = TheWalk.Complete(Func,FInv,SpLast);
       if(!complmnt){
 #ifdef OCCT_DEBUG
-       cout << "Not completed" << endl;
+       std::cout << "Not completed" << std::endl;
 #endif
        return Standard_False;
       }
@@ -2222,14 +2222,14 @@ Standard_Boolean ChFi3d_Builder::SimulData
     Standard_Real factor =  1./(NbSecMin + 1);
     if (Nbpnt == 0){
 #ifdef OCCT_DEBUG
-      cout <<"0 point of path, quit."<<endl;
+      std::cout <<"0 point of path, quit."<<std::endl;
 #endif
       return Standard_False;
     }
     else if (Nbpnt == 1 && again == 0)  {
       again++;
 #ifdef OCCT_DEBUG
-      cout <<"only one point of path, MS/100 is attempted."<<endl;
+      std::cout <<"only one point of path, MS/100 is attempted."<<std::endl;
 #endif
       MS *= 0.01; Target = Targetsov;
       u1sov = u2sov = Lin->Point(1).Parameter();
@@ -2237,7 +2237,7 @@ Standard_Boolean ChFi3d_Builder::SimulData
     else if (Nbpnt< NbSecMin && again == 0)  {
       again++;
 #ifdef OCCT_DEBUG
-      cout <<"Number of points is too small, the step is reduced"<<endl;
+      std::cout <<"Number of points is too small, the step is reduced"<<std::endl;
 #endif
       Standard_Real u1 = u1sov = Lin->Point(1).Parameter();
       Standard_Real u2 = u2sov = Lin->Point(Nbpnt).Parameter();
@@ -2250,21 +2250,21 @@ Standard_Boolean ChFi3d_Builder::SimulData
       if(Abs(u1-u1sov)>=TolGuide || Abs(u2-u2sov)>=TolGuide){
        again++;
 #ifdef OCCT_DEBUG
-       cout <<"Number of points is still too small, the step is reduced"<<endl;
+       std::cout <<"Number of points is still too small, the step is reduced"<<std::endl;
 #endif
        MS /= 100;
        Target = Targetsov;
       }
       else{
 #ifdef OCCT_DEBUG
-       cout <<"Number of points is still too small, quit"<<endl;
+       std::cout <<"Number of points is still too small, quit"<<std::endl;
 #endif
        return Standard_False;
       }
     }
     else if(Nbpnt < NbSecMin){
 #ifdef OCCT_DEBUG
-      cout <<"Number of points is still too small, quit"<<endl;
+      std::cout <<"Number of points is still too small, quit"<<std::endl;
 #endif
       return Standard_False;
     }
index b63ad08..7f6d9a2 100644 (file)
@@ -1729,7 +1729,7 @@ void ChFi3d_Builder::PerformIntersectionAtEnd(const Standard_Integer Index)
     }
 #ifdef OCCT_DEBUG
     else {
-      cout<<"erreur"<<endl;
+      std::cout<<"erreur"<<std::endl;
     }
 #endif
     trafil1 = TopAbs::Compose(trafil1,Fd->Orientation());
@@ -1737,7 +1737,7 @@ void ChFi3d_Builder::PerformIntersectionAtEnd(const Standard_Integer Index)
     trafil1 = TopAbs::Compose(TopAbs::Reverse(Fi1.Transition()),trafil1);
   }
 #ifdef OCCT_DEBUG
-  else cout<<"erreur"<<endl;
+  else std::cout<<"erreur"<<std::endl;
 #endif
   // eap, Apr 22 2002, occ 293
 //   Fi1.PCurveOnFace()->D0(Fi1.LastParameter(),p2d);
@@ -3631,7 +3631,7 @@ Standard_Boolean ChFi3d_Builder::FindFace(const TopoDS_Vertex& V,
 {
   if (P1.IsVertex() || P2.IsVertex()) {
 #ifdef OCCT_DEBUG
-    cout<<"change of face on vertex"<<endl;
+    std::cout<<"change of face on vertex"<<std::endl;
 #endif
   }
   if (!(P1.IsOnArc() && P2.IsOnArc())) {
@@ -3658,7 +3658,7 @@ Standard_Boolean ChFi3d_Builder::FindFace(const TopoDS_Vertex& V,
     }
   }
   if(!ContainsV){
-    cout<<"FindFace : the extremity of the spine is not in the end face"<<endl;
+    std::cout<<"FindFace : the extremity of the spine is not in the end face"<<std::endl;
   }
 #else
   (void)V; // avoid compiler warning on unused variable
index 381eb21..12397fd 100644 (file)
@@ -193,7 +193,7 @@ Standard_Boolean ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
                               IFaCo1,IFaCo2,Okvisavis,Vtx,Standard_True);
   if (!Okvisavis) {
 #ifdef OCCT_DEBUG
-    cout<<"TwoCorner : pas de face commune"<<endl;
+    std::cout<<"TwoCorner : pas de face commune"<<std::endl;
 #endif
     done=Standard_False;
     return done;
@@ -208,14 +208,14 @@ Standard_Boolean ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
   
   if (!Okvisavis) {
 #ifdef OCCT_DEBUG
-    cout<<"TwoCorner : no common face"<<endl;
+    std::cout<<"TwoCorner : no common face"<<std::endl;
 #endif
     done=Standard_False;
     return done;
   }   
   if (!OkinterCC) {
 #ifdef OCCT_DEBUG
-    cout<<"biseau : failed intersection of tangency lines on common face"<<endl;
+    std::cout<<"biseau : failed intersection of tangency lines on common face"<<std::endl;
 #endif
     done=Standard_False;
     return done;
@@ -230,7 +230,7 @@ Standard_Boolean ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
 
   if (!CP1.IsOnArc() || !CP2.IsOnArc()) {
 #ifdef OCCT_DEBUG
-    cout<<"fail 1 of 2 fillets are not on arc"<<endl;
+    std::cout<<"fail 1 of 2 fillets are not on arc"<<std::endl;
 #endif
     done=Standard_False;
     return done;
@@ -238,7 +238,7 @@ Standard_Boolean ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
   if ( ! CP1.Arc().IsSame( CP2.Arc()) ) {
     // look like OnSame + OnDiff case (eap, Arp 9 2002, occ266)
 #ifdef OCCT_DEBUG
-    cout<<"PerformTwoCornerbyInter(): fillets are not on the same arc"<<endl;
+    std::cout<<"PerformTwoCornerbyInter(): fillets are not on the same arc"<<std::endl;
 #endif
     done = Standard_True;
     PerformMoreThreeCorner(Index, 2);
@@ -282,7 +282,7 @@ Standard_Boolean ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
   }
   if(!ok1 || !ok2){
 #ifdef OCCT_DEBUG
-    cout<<"fail one of surfaces has no common base face with the pivot edge"<<endl;
+    std::cout<<"fail one of surfaces has no common base face with the pivot edge"<<std::endl;
 #endif
     done=Standard_False;
     return done;
@@ -329,7 +329,7 @@ Standard_Boolean ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
        !ChFi3d_ComputeCurves(HS1,HS2,Pardeb,Parfin,Gc,
                              PGc1,PGc2,tolesp,tol2d,tolreached)) {
 #ifdef OCCT_DEBUG
-      cout<<"failed to calculate bevel error interSS"<<endl;
+      std::cout<<"failed to calculate bevel error interSS"<<std::endl;
 #endif
       done=Standard_False;
       return done;
@@ -338,7 +338,7 @@ Standard_Boolean ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
             !ChFi3d_ComputeCurves(HS1,HS2,Parfin,Pardeb,Gc,
                                   PGc1,PGc2,tolesp,tol2d,tolreached)) {
 #ifdef OCCT_DEBUG
-      cout<<"failed to calculate bevel error interSS"<<endl;
+      std::cout<<"failed to calculate bevel error interSS"<<std::endl;
 #endif
       done=Standard_False;
       return done;     
@@ -474,7 +474,7 @@ Standard_Boolean ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
     }
     if(!ChFi3d_IntCS(BigHS,Hctg,UVi,wi)){
 #ifdef OCCT_DEBUG
-      cout<<"bevel : failed inter C S"<<endl;
+      std::cout<<"bevel : failed inter C S"<<std::endl;
 #endif
       done=Standard_False;
       return done;
@@ -488,7 +488,7 @@ Standard_Boolean ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
     if (!ChFi3d_ComputeCurves(SmaHS,BigHS,Pardeb,Parfin,Gc,
                              PGc1,PGc2,tolesp,tol2d,tolreached)) {
 #ifdef OCCT_DEBUG
-      cout<<"failed to calculate bevel failed interSS"<<endl;
+      std::cout<<"failed to calculate bevel failed interSS"<<std::endl;
 #endif
       done=Standard_False;
       return done;
@@ -577,7 +577,7 @@ Standard_Boolean ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
     Handle(Adaptor3d_HCurveOnSurface) Hconsf = new Adaptor3d_HCurveOnSurface(consf);
     if(!ChFi3d_IntCS(BigHS,Hconsf,UVi,wi)) {
 #ifdef OCCT_DEBUG
-      cout<<"bevel : failed inter C S"<<endl;
+      std::cout<<"bevel : failed inter C S"<<std::endl;
 #endif
       done=Standard_False;
       return done;
@@ -610,7 +610,7 @@ Standard_Boolean ChFi3d_Builder::PerformTwoCornerbyInter(const Standard_Integer
     if (!ChFi3d_ComputeCurves(HF,BigHS,Pardeb,Parfin,Gc,
                              PGc1,PGc2,tolesp,tol2d,tolreached)) {
 #ifdef OCCT_DEBUG
-      cout<<"fail calculation bevel fail interSS"<<endl;
+      std::cout<<"fail calculation bevel fail interSS"<<std::endl;
 #endif
       done=Standard_False;
       return done;
index cb5a341..cea67e1 100644 (file)
@@ -548,8 +548,8 @@ static void CalculBatten (const Handle (GeomAdaptor_HSurface) ASurf,
     Ok = Bat.Compute(Iana,25,1.e-2);
 #ifdef OCCT_DEBUG
     if (!Ok) { 
-      cout<<"no batten :";
-      Bat.Dump(cout);
+      std::cout<<"no batten :";
+      Bat.Dump(std::cout);
     }    
 #endif  
     if (Ok) {
@@ -1351,7 +1351,7 @@ void  ChFi3d_Builder::PerformMoreThreeCorner(const Standard_Integer Jndex,
   }
   if ( isOnSameDiff ) {
 #ifdef OCCT_DEBUG
-    cout << "OnSame + OnDiff, PerformMoreThreeCorner() calls PerformOneCorner()" << endl;
+    std::cout << "OnSame + OnDiff, PerformMoreThreeCorner() calls PerformOneCorner()" << std::endl;
 #endif
     PerformOneCorner (Jndex, Standard_True);
   }
@@ -2061,7 +2061,7 @@ void  ChFi3d_Builder::PerformMoreThreeCorner(const Standard_Integer Jndex,
       jfp = 3 - jf.Value(ic);
       Calcul_P2dOnSurf(CD.Value(ic),jfp,i.Value(ic,icmoins),p.Value(ic,icmoins),p2d1);
       Calcul_P2dOnSurf(CD.Value(ic),jf.Value(ic),i.Value(ic,icplus),p.Value(ic,icplus),p2d2);
-//      if (i[ic][icplus]!=  i[ic][icmoins]) cout<<"probleme surface"<<endl;
+//      if (i[ic][icplus]!=  i[ic][icmoins]) std::cout<<"probleme surface"<<std::endl;
       indice= SurfIndex(CD, ic, i.Value(ic,icplus), ChFiSURFACE);
       Handle (GeomAdaptor_HSurface) Asurf =
        new GeomAdaptor_HSurface(DStr.Surface(indice).Surface());
index a4b2cd2..9c995cf 100644 (file)
@@ -289,17 +289,17 @@ static Standard_Real ParamOnSpine(const TopOpeBRepDS_DataStructure& DStr,
       found = ChFi3d_InterPlaneEdge(plan,HE,Nl,First,tolc);
       gp_Pnt point = CE.Value(Nl);
 #ifdef OCCT_DEBUG
-      cout<<"******* ParamOnSpine() for edge "<<iedge<<endl;
-      cout<<Nl<<endl;
-      cout<<"point ped "<<point.X()<<" "<<point.Y()<<" "<<point.Z()<<endl;
+      std::cout<<"******* ParamOnSpine() for edge "<<iedge<<std::endl;
+      std::cout<<Nl<<std::endl;
+      std::cout<<"point ped "<<point.X()<<" "<<point.Y()<<" "<<point.Z()<<std::endl;
 #endif
       if(found) Nl = Spine->Absc(Nl,ii);
       point = Spine->Value(Nl);
 #ifdef OCCT_DEBUG
-      if (found) cout << "found by edge " << ii << " : ";
-      cout<<Nl<<endl;
-      cout<<"point psp "<<point.X()<<" "<<point.Y()<<" "<<point.Z()<<endl;
-      cout<<endl;
+      if (found) std::cout << "found by edge " << ii << " : ";
+      std::cout<<Nl<<std::endl;
+      std::cout<<"point psp "<<point.X()<<" "<<point.Y()<<" "<<point.Z()<<std::endl;
+      std::cout<<std::endl;
 #endif
       
       ii +=sens;
@@ -534,7 +534,7 @@ static Standard_Boolean Tri(const Geom2dHatch_Hatcher& H,
   if (iSansFirst != 0) {
     if (iSansLast == 0) {
 #ifdef OCCT_DEBUG
-      cout<<"Parsing : Pb of Hatcher"<<endl;
+      std::cout<<"Parsing : Pb of Hatcher"<<std::endl;
 #endif
       return 0;
     }
@@ -704,7 +704,7 @@ Standard_Boolean ChFi3d_Builder::SplitKPart
     Nb1 = H1.NbDomains(iH1);
     if(Nb1 == 0) {
 #ifdef OCCT_DEBUG
-      cout<<"SplitKPart : tangency line out of the face"<<endl;
+      std::cout<<"SplitKPart : tangency line out of the face"<<std::endl;
 #endif
       return Standard_False;
     }
@@ -730,7 +730,7 @@ Standard_Boolean ChFi3d_Builder::SplitKPart
     Nb2 = H2.NbDomains(iH2);
     if(Nb2 == 0) {
 #ifdef OCCT_DEBUG
-      cout<<"SplitKPart : tangency line out of the face"<<endl;
+      std::cout<<"SplitKPart : tangency line out of the face"<<std::endl;
 #endif
       return Standard_False;
     }
@@ -772,7 +772,7 @@ Standard_Boolean ChFi3d_Builder::SplitKPart
   
   if (C1.IsNull() && C2.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout<<"SplitData : 2 zero lines hatching impossible"<<endl;
+    std::cout<<"SplitData : 2 zero lines hatching impossible"<<std::endl;
 #endif
     return Standard_False;
   }
@@ -995,7 +995,7 @@ Standard_Boolean ChFi3d_Builder::SplitKPart
          onS = 2;
 #ifdef OCCT_DEBUG      
        if (threeE[0].IsSame(threeE[1]))
-         cout << "SplitKPart(), wrong corner vertex at switcher search" << endl;
+         std::cout << "SplitKPart(), wrong corner vertex at switcher search" << std::endl;
 #endif
        cntlFiOnS = 3 - onS;
       }
@@ -1090,7 +1090,7 @@ Standard_Boolean ChFi3d_Builder::SplitKPart
           onS = 2;
 #ifdef OCCT_DEBUG
         if (threeE[0].IsSame(threeE[1]))
-          cout << "SplitKPart(), wrong corner vertex at switcher search" << endl;
+          std::cout << "SplitKPart(), wrong corner vertex at switcher search" << std::endl;
 #endif
        cntlFiOnS = 3 - onS;
       }
index 170f950..16270f3 100644 (file)
@@ -605,11 +605,11 @@ void ChFi3d_ChBuilder::Simulate (const Standard_Integer IC)
 #ifdef OCCT_DEBUG
   if(ChFi3d_GettraceCHRON()){
     simul.Stop();
-    cout<<"Total simulation time : ";
+    std::cout<<"Total simulation time : ";
     simul.Show();
-    cout<<"Spine construction time : ";
+    std::cout<<"Spine construction time : ";
     elspine.Show();
-    cout<<"and progression time : ";
+    std::cout<<"and progression time : ";
     chemine.Show();
   }
 #endif
@@ -912,7 +912,7 @@ ChFi3d_ChBuilder::SimulSurf(Handle(ChFiDS_SurfData)&            Data,
       
       if (OffsetHGuide.IsNull())
       {
-        cout<<endl<<"Construction of offset guide failed!"<<endl;
+        std::cout<<std::endl<<"Construction of offset guide failed!"<<std::endl;
         //exception
       }
       pFunc.reset(new BRepBlend_ConstThroatWithPenetration(S1,S2,OffsetHGuide));
@@ -1297,7 +1297,7 @@ Standard_Boolean ChFi3d_ChBuilder::PerformFirstSection
       
       if (OffsetHGuide.IsNull())
       {
-        cout<<endl<<"Construction of offset guide failed!"<<endl;
+        std::cout<<std::endl<<"Construction of offset guide failed!"<<std::endl;
         //exception
       }
       pFunc.reset(new BRepBlend_ConstThroatWithPenetration(S1,S2,OffsetHGuide));
@@ -1554,7 +1554,7 @@ ChFi3d_ChBuilder::PerformSurf(ChFiDS_SequenceOfSurfData&          SeqData,
       
       if (OffsetHGuide.IsNull())
       {
-        cout<<endl<<"Construction of offset guide failed!"<<endl;
+        std::cout<<std::endl<<"Construction of offset guide failed!"<<std::endl;
         //exception
       }
       pFunc.reset(new BRepBlend_ConstThroatWithPenetration(S1,S2,OffsetHGuide));
index 7dca1c2..ecfc88f 100644 (file)
@@ -551,7 +551,7 @@ void ChFi3d_ChBuilder::PerformThreeCorner(const Standard_Integer Jndex)
        Standard_Integer nbl = inter.NbLines();
        if (nbl > 1) {
 #ifdef OCCT_DEBUG
-         cout<<"trop d'intersection entre les surfaces"<<endl;
+         std::cout<<"trop d'intersection entre les surfaces"<<std::endl;
 #endif
        }
        else if (nbl == 1) {
index af981b4..f1011d6 100644 (file)
@@ -466,11 +466,11 @@ void ChFi3d_FilBuilder::Simulate (const Standard_Integer IC)
 #ifdef OCCT_DEBUG
   if(ChFi3d_GettraceCHRON()){
     simul.Stop();
-    cout<<"Total simulation time : ";
+    std::cout<<"Total simulation time : ";
     simul.Show();
-    cout<<"Spine construction time : ";
+    std::cout<<"Spine construction time : ";
     elspine.Show();
-    cout<<"and process time : ";
+    std::cout<<"and process time : ";
     chemine.Show();
   }
 #endif
@@ -1756,7 +1756,7 @@ void ChFi3d_FilBuilder::SplitSurf(ChFiDS_SequenceOfSurfData&    SeqData,
       }
       else {
 # if CHFI3D_DEB
-       cout << "Failed calculation of the minimum length" << endl;
+       std::cout << "Failed calculation of the minimum length" << std::endl;
 # endif
       }
     }
index 732c6cf..0c67d2a 100644 (file)
@@ -284,7 +284,7 @@ void ChFi3d_FilBuilder::PerformThreeCorner(const Standard_Integer Jndex)
     pivot = SearchPivot(sens,p,tol2d);
     if(pivot < 0){ 
 #ifdef OCCT_DEBUG
-      cout<<"pivot not found, plate is called"<<endl;
+      std::cout<<"pivot not found, plate is called"<<std::endl;
 #endif
       PerformMoreThreeCorner(Jndex, 3);
       return;
@@ -306,14 +306,14 @@ void ChFi3d_FilBuilder::PerformThreeCorner(const Standard_Integer Jndex)
   ifacfin = CD[fin]->ChangeSetOfSurfData()->Value(i[fin][pivot])->Index(3-jf[fin][pivot]);
   if(ifacfin != ifacdeb){
 #ifdef OCCT_DEBUG
-    cout<<"several base faces, plate is called"<<endl;
+    std::cout<<"several base faces, plate is called"<<std::endl;
 #endif
     PerformMoreThreeCorner(Jndex, 3);
     return;
   }
   if(i[pivot][deb] != i[pivot][fin]){
 #ifdef OCCT_DEBUG
-    cout<<"load surfdata on the pivot, plate is called"<<endl;
+    std::cout<<"load surfdata on the pivot, plate is called"<<std::endl;
 #endif
     PerformMoreThreeCorner(Jndex, 3);
     return;
index 9d6ef4a..113e7ce 100644 (file)
@@ -215,9 +215,9 @@ void ChFiDS_Spine::SetFirstParameter(const Standard_Real Par)
 {
 #ifdef OCCT_DEBUG
   if(Par >= Precision::Confusion()) 
-    cout<<"Interior extension at the start of guideline"<<endl;
+    std::cout<<"Interior extension at the start of guideline"<<std::endl;
   if(IsPeriodic())
-    cout<<"WARNING!!! Extension on periodic guideline."<<endl;
+    std::cout<<"WARNING!!! Extension on periodic guideline."<<std::endl;
 #endif
   firstprolon = Standard_True;
   firstparam = Par;
@@ -234,9 +234,9 @@ void ChFiDS_Spine::SetLastParameter(const Standard_Real Par)
 #ifdef OCCT_DEBUG
   Standard_Real lll = abscissa->Value(abscissa->Upper());
   if((Par - lll) <= -Precision::Confusion()) 
-    cout<<"Interior extension at the end of guideline"<<endl;
+    std::cout<<"Interior extension at the end of guideline"<<std::endl;
   if(IsPeriodic())
-    cout<<"WARNING!!! Extension on periodic guideline."<<endl;
+    std::cout<<"WARNING!!! Extension on periodic guideline."<<std::endl;
 #endif
   lastprolon = Standard_True;
   lastparam = Par;
@@ -387,7 +387,7 @@ void  ChFiDS_Spine::SetFirstTgt(const Standard_Real W)
   if(IsPeriodic()) throw Standard_Failure("No extension by tangent on periodic contours");
 #ifdef OCCT_DEBUG
   if(W >= Precision::Confusion()) 
-    cout<<"Interior extension at start of the guideline"<<endl;
+    std::cout<<"Interior extension at start of the guideline"<<std::endl;
 #endif
   //The flag is suspended if is already positioned to avoid  
   //stopping d1
@@ -411,7 +411,7 @@ void  ChFiDS_Spine::SetLastTgt(const Standard_Real W)
 #ifdef OCCT_DEBUG
   Standard_Real L = W - abscissa->Value(abscissa->Upper());
   if(L <= -Precision::Confusion()) 
-    cout<<"Interior extension at the end of guideline"<<endl;
+    std::cout<<"Interior extension at the end of guideline"<<std::endl;
 #endif
   //The flag is suspended if is already positioned to avoid  
   //stopping d1 
@@ -529,7 +529,7 @@ void  ChFiDS_Spine::Load()
 {
   if(!abscissa.IsNull()){
 #ifdef OCCT_DEBUG
-    cout<<"new load of CE"<<endl;
+    std::cout<<"new load of CE"<<std::endl;
 #endif
   }
   Standard_Integer len = spine.Length();
index 9a46109..af36c56 100644 (file)
@@ -132,7 +132,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
       if ( Abs(ChamfRad) < Precision::Confusion() ) pointu = Standard_True;
       if( ChamfRad < 0 ) {
 #ifdef OCCT_DEBUG
-       cout<<"the chamfer can't pass"<<endl;
+       std::cout<<"the chamfer can't pass"<<std::endl;
 #endif
        return Standard_False;
       }
@@ -146,7 +146,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
     if (ouvert) {
       if (Abs(angCon) - Abs(SemiAngl) > -Precision::Confusion() ) {
 #ifdef OCCT_DEBUG
-       cout<<"wrong choice of angle for the chamfer"<<endl;
+       std::cout<<"wrong choice of angle for the chamfer"<<std::endl;
 #endif
        return Standard_False; 
       } 
@@ -160,7 +160,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
 
       if ( (M_PI / 2. - SemiAngl) < Precision::Confusion() ) {
 #ifdef OCCT_DEBUG
-       cout <<"wrong choice of angle for the chamfer"<<endl;
+       std::cout <<"wrong choice of angle for the chamfer"<<std::endl;
 #endif
        return Standard_False;
       }
@@ -194,7 +194,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
       if ( Abs(ChamfRad) < Precision::Confusion() ) pointu = Standard_True;
       if( ChamfRad < 0 ) {
 #ifdef OCCT_DEBUG
-       cout<<"the chamfer can't pass"<<endl;
+       std::cout<<"the chamfer can't pass"<<std::endl;
 #endif
        return Standard_False;
       }
index b86ac6e..dd5168c 100644 (file)
@@ -146,7 +146,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
     if ( Abs(Rad) <= Precision::Confusion() ) pointu = Standard_True;
     if(Rad < 0 ) {
 #ifdef OCCT_DEBUG
-      cout<<"the chamfer can't pass"<<endl;
+      std::cout<<"the chamfer can't pass"<<std::endl;
 #endif
       return Standard_False;
     }
@@ -402,7 +402,7 @@ Standard_Boolean ChFiKPart_MakeChAsym(TopOpeBRepDS_DataStructure& DStr,
 
     if (dis2 < -1.E-09) {
 #ifdef OCCT_DEBUG
-      cout<<"too great angle of chamfer"<<endl;
+      std::cout<<"too great angle of chamfer"<<std::endl;
 #endif
       return Standard_False;
     }
index 8830e61..7388f9a 100644 (file)
@@ -209,7 +209,7 @@ Standard_Boolean ChFiKPart_MakeChamfer(TopOpeBRepDS_DataStructure& DStr,
     if ( Abs(ChamfRad)<=Precision::Confusion() ) pointu = Standard_True;
     if( ChamfRad < 0 ) {
 #ifdef OCCT_DEBUG
-      cout<<"le chanfrein ne passe pas"<<endl;
+      std::cout<<"le chanfrein ne passe pas"<<std::endl;
 #endif
       return Standard_False;
     }
index 8e2b1a8..3f5ee31 100644 (file)
@@ -140,7 +140,7 @@ Standard_Boolean ChFiKPart_MakeChamfer(TopOpeBRepDS_DataStructure& DStr,
     if ( Abs(Rad) <= Precision::Confusion() ) pointu = Standard_True;
     if(Rad < 0 ) {
 #ifdef OCCT_DEBUG
-      cout<<"the chamfer can't pass"<<endl;
+      std::cout<<"the chamfer can't pass"<<std::endl;
 #endif
       return Standard_False;
     }
index 16b00c7..ab707e0 100644 (file)
@@ -125,7 +125,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
     if(Abs(Rad) <= Precision::Confusion()){ c1sphere = Standard_True; }
     else if(Rad < 0){ 
 #ifdef OCCT_DEBUG
-      cout<<"the fillet does not pass"<<endl; 
+      std::cout<<"the fillet does not pass"<<std::endl; 
 #endif
       return Standard_False;
     }
index 5b55b6e..c403610 100644 (file)
@@ -86,7 +86,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
   }
   else {
 #ifdef OCCT_DEBUG
-    cout<<"the fillet does not pass"<<endl; 
+    std::cout<<"the fillet does not pass"<<std::endl; 
 #endif
     return Standard_False;
   }
@@ -294,7 +294,7 @@ Standard_Boolean ChFiKPart_MakeFillet(TopOpeBRepDS_DataStructure& DStr,
     if(Abs(Rad) <= Precision::Confusion()){ c1sphere = Standard_True; }
     else if(Rad < 0){ 
 #ifdef OCCT_DEBUG
-      cout<<"the fillet can't pass"<<endl; 
+      std::cout<<"the fillet can't pass"<<std::endl; 
 #endif
       return Standard_False;
     }
index eb27ec2..55e7401 100644 (file)
@@ -90,7 +90,7 @@ Standard_Boolean ChFiKPart_Sphere(TopOpeBRepDS_DataStructure& DStr,
     dz = gp_Dir(gp_Vec(p1,cen));
     if(Abs(ds1.Dot(dz)-1.)>ptol){
 #ifdef OCCT_DEBUG
-      cout<<"center of the spherical corner not found"<<endl;
+      std::cout<<"center of the spherical corner not found"<<std::endl;
 #endif
       return Standard_False;
     }
index d23c73f..69da6b9 100644 (file)
@@ -288,11 +288,11 @@ static void LineConstructor(Contap_TheSequenceOfLine& slin,
                               //-- on decoupe la ligne en portions  entre 2 vertex 
                               Standard_Real Tol = Precision::PConfusion();
                               Contap_IType typl = L.TypeContour();
-                              //-- cout<<"\n ----------- Ligne Constructor "<<endl;
+                              //-- std::cout<<"\n ----------- Ligne Constructor "<<std::endl;
                               if(typl == Contap_Walking) { 
                                 Standard_Real u1,v1,u2,v2;
                                 Standard_Integer nbvtx = L.NbVertex();
-                                //-- cout<<" WLine -> "<<nbvtx<<" vtx"<<endl;
+                                //-- std::cout<<" WLine -> "<<nbvtx<<" vtx"<<std::endl;
                                 for(Standard_Integer i=1;i<nbvtx;i++) { 
                                   Standard_Integer firstp = (Standard_Integer) L.Vertex(i).ParameterOnLine();
                                   Standard_Integer lastp =  (Standard_Integer) L.Vertex(i+1).ParameterOnLine();
@@ -305,7 +305,7 @@ static void LineConstructor(Contap_TheSequenceOfLine& slin,
                                     if(in2 == TopAbs_OUT) { 
                                     }
                                     else { 
-                                      //-- cout<<"ContapWLine      : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<endl;
+                                      //-- std::cout<<"ContapWLine      : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<std::endl;
                                       Handle(IntSurf_LineOn2S) LineOn2S = new IntSurf_LineOn2S();
                                       LineOn2S->Add(L.Point(firstp));
                                       for (Standard_Integer j = firstp + 1; j <= lastp; j++) {
@@ -334,7 +334,7 @@ static void LineConstructor(Contap_TheSequenceOfLine& slin,
                               else if(typl==Contap_Lin) { 
                                 Standard_Real u2,v2;// u1,v1;
                                 Standard_Integer nbvtx = L.NbVertex();
-                                //-- cout<<" Lin -> "<<nbvtx<<" vtx"<<endl;
+                                //-- std::cout<<" Lin -> "<<nbvtx<<" vtx"<<std::endl;
                                 for(Standard_Integer i=1;i<nbvtx;i++) { 
                                   Standard_Real firstp = L.Vertex(i).ParameterOnLine();
                                   Standard_Real lastp =  L.Vertex(i+1).ParameterOnLine();
@@ -348,7 +348,7 @@ static void LineConstructor(Contap_TheSequenceOfLine& slin,
                                       ElSLib::Parameters(Adaptor3d_HSurfaceTool::Cone(Surf),Pmid,u2,v2);
                                     }
                                     else { 
-                                      //-- cout<<" Pb ds Contap_ContourGen_2.gxx (type)"<<endl;
+                                      //-- std::cout<<" Pb ds Contap_ContourGen_2.gxx (type)"<<std::endl;
                                     }
 
                                     Recadre(Surf,u2,v2);
@@ -356,7 +356,7 @@ static void LineConstructor(Contap_TheSequenceOfLine& slin,
                                     if(in2 == TopAbs_OUT) { 
                                     }
                                     else { 
-                                      //-- cout<<"Contap Lin      : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<endl;
+                                      //-- std::cout<<"Contap Lin      : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<std::endl;
                                       Contap_Line Line;
                                       Line.SetValue(L.Line());
                                       Contap_Point pvtx = L.Vertex(i);
@@ -373,7 +373,7 @@ static void LineConstructor(Contap_TheSequenceOfLine& slin,
                               else if(typl==Contap_Circle) { 
                                 Standard_Real u2,v2; //u1,v1,
                                 Standard_Integer nbvtx = L.NbVertex();
-                                //-- cout<<" Circ -> "<<nbvtx<<" vtx"<<endl;
+                                //-- std::cout<<" Circ -> "<<nbvtx<<" vtx"<<std::endl;
                                 Standard_Boolean novtx = Standard_True;
                                 if(nbvtx) novtx=Standard_False;
                                 for(Standard_Integer i=1;i<nbvtx  || novtx;i++) { 
@@ -395,7 +395,7 @@ static void LineConstructor(Contap_TheSequenceOfLine& slin,
                                       ElSLib::Parameters(Adaptor3d_HSurfaceTool::Sphere(Surf),Pmid,u2,v2);
                                     }
                                     else { 
-                                      //-- cout<<" Pb ds Contap_ContourGen_2.gxx (typep)"<<endl;
+                                      //-- std::cout<<" Pb ds Contap_ContourGen_2.gxx (typep)"<<std::endl;
                                     }
 
                                     Recadre(Surf,u2,v2);
@@ -403,7 +403,7 @@ static void LineConstructor(Contap_TheSequenceOfLine& slin,
                                     if(in2 == TopAbs_OUT) { 
                                     }
                                     else { 
-                                      //-- cout<<"Contap Circle     : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<endl;
+                                      //-- std::cout<<"Contap Circle     : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<std::endl;
                                       Contap_Line Line;
                                       Line.SetValue(L.Circle());
                                       if(novtx == Standard_False) { 
@@ -434,7 +434,7 @@ static void LineConstructor(Contap_TheSequenceOfLine& slin,
                                       ElSLib::Parameters(Adaptor3d_HSurfaceTool::Sphere(Surf),Pmid,u2,v2);
                                     }
                                     else { 
-                                      //-- cout<<" Pb ds Contap_ContourGen_2.gxx (typep)"<<endl;
+                                      //-- std::cout<<" Pb ds Contap_ContourGen_2.gxx (typep)"<<std::endl;
                                     }
 
                                     Recadre(Surf,u2,v2);
@@ -442,7 +442,7 @@ static void LineConstructor(Contap_TheSequenceOfLine& slin,
                                     if(in2 == TopAbs_OUT) { 
                                     }
                                     else { 
-                                      //-- cout<<"Contap Circle  *Compl* : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<endl;
+                                      //-- std::cout<<"Contap Circle  *Compl* : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<std::endl;
                                       Contap_Line Line;
                                       Line.SetValue(L.Circle());
                                       Contap_Point pvtx = L.Vertex(nbvtx);
@@ -457,7 +457,7 @@ static void LineConstructor(Contap_TheSequenceOfLine& slin,
                                 }
                               }
                               else { 
-                                //-- cout<<" ni WLine ni Lin ni Circ "<<endl;
+                                //-- std::cout<<" ni WLine ni Lin ni Circ "<<std::endl;
                                 slin.Append(L);
                               }
                               //-- 
@@ -613,7 +613,7 @@ static void ComputeTangency (const Contap_TheSearch& solrst,
           tg3drst = tg2drst.X()*v1 + tg2drst.Y()*v2;
           //   normale = v1.Crossed(v2);
           if(normale.SquareMagnitude() < RealEpsilon()) { 
-            //-- cout<<"\n*** Contap_ContourGen_2.gxx  Normale Nulle en U:"<<X(1)<<" V:"<<X(2)<<endl;
+            //-- std::cout<<"\n*** Contap_ContourGen_2.gxx  Normale Nulle en U:"<<X(1)<<" V:"<<X(2)<<std::endl;
           }
           else { 
             test = vectg.Dot(normale.Crossed(tg3drst));
@@ -815,7 +815,7 @@ IntSurf_TypeTrans ComputeTransitionOnLine(Contap_SurfFunction& SFunc,
   det = normu2 * normv2 - d1ud1v * d1ud1v;
   if(det<RealEpsilon()) { 
     //-- On ne doit pas passer ici !!
-    //-- cout<<" Probleme !!!"<<endl ;
+    //-- std::cout<<" Probleme !!!"<<std::endl ;
     return IntSurf_Undecided;
   }
 
@@ -1082,7 +1082,7 @@ void ComputeInternalPointsOnRstr
     else {
       if (vectest.Dot(vecref) < 0.) {
         // Essayer de converger
-        // cout << "Changement de signe detecte" << endl;
+        // std::cout << "Changement de signe detecte" << std::endl;
         solution = Standard_False;
         while (!solution) {
           paramp = (paraminf+paramsup)/2.;
@@ -1235,7 +1235,7 @@ void ComputeInternalPoints
     else {
       if (vectest.Dot(vecref) < 0.) {
         // Essayer de converger
-        // cout << "Changement de signe detecte" << endl;
+        // std::cout << "Changement de signe detecte" << std::endl;
         solution = Standard_False;
         while (!solution) {
           X(1) = (XInf(1) + XSup(1)) /2.;
@@ -1243,7 +1243,7 @@ void ComputeInternalPoints
           rsnld.Perform(SFunc,X,infb,supb);
 
           if (!rsnld.IsDone()) {
-            cout << "Echec recherche internal points" << endl;
+            std::cout << "Echec recherche internal points" << std::endl;
             solution = Standard_True;
             ok = Standard_False;
           }
@@ -1281,7 +1281,7 @@ void ComputeInternalPoints
               }
             }
             else { // on n est pas sur une solution
-              cout << "Echec recherche internal points" << endl;
+              std::cout << "Echec recherche internal points" << std::endl;
               solution = Standard_True;
               ok = Standard_False;
             }
@@ -2134,9 +2134,9 @@ void Contap_Contour::PerformAna(const Handle(Adaptor3d_TopolTool)& Domain)
     Standard_Integer nblinto = slin.Length();
     TColStd_SequenceOfInteger SeqToDestroy;
 
-    //-- cout<<" Construct Contour_3   nblin = "<<nblinto<<endl;
+    //-- std::cout<<" Construct Contour_3   nblin = "<<nblinto<<std::endl;
     for(i=1; i<= nblinto ; i++) { 
-      //-- cout<<" nbvtx : "<<slin.Value(i).NbVertex()<<endl;
+      //-- std::cout<<" nbvtx : "<<slin.Value(i).NbVertex()<<std::endl;
       //--if(slin.Value(i).NbVertex() > 1) { 
       if(slin.Value(i).TypeContour() != Contap_Restriction) { 
         LineConstructor(slin,Domain,slin.ChangeValue(i),Surf);
index 9589cce..9ea6c40 100644 (file)
@@ -187,9 +187,9 @@ void Contap_HContTool::SamplePoint (const Handle(Adaptor3d_HSurface)& S,
       U = uinf + ((usup-uinf)/((Standard_Real)(nbIntU+1)))*(Standard_Real)(indU+1);
       V = vinf + ((vsup-vinf)/((Standard_Real)(nbIntV+2)))*(Standard_Real)(indV+1);
 
-      //-- cout<<"Index :"<<Index<<"  uinf:"<<uinf<<"  usup:"<<usup<<"  vinf:"<<vinf<<" vsup:"<<vsup<<"  ";
-      //-- cout<<"  ("<<indU<<"/"<<nbIntU<<" ->U:"<<U<<"  ";
-      //-- cout<<"  ("<<indV<<"/"<<nbIntV<<" ->V:"<<V<<endl;
+      //-- std::cout<<"Index :"<<Index<<"  uinf:"<<uinf<<"  usup:"<<usup<<"  vinf:"<<vinf<<" vsup:"<<vsup<<"  ";
+      //-- std::cout<<"  ("<<indU<<"/"<<nbIntU<<" ->U:"<<U<<"  ";
+      //-- std::cout<<"  ("<<indV<<"/"<<nbIntV<<" ->V:"<<V<<std::endl;
       return;
     }
   }
index 24b766f..234c5d4 100644 (file)
@@ -53,7 +53,7 @@ void  Convert_CompBezierCurvesToBSplineCurve::AddCurve
 
 #ifdef OCCT_DEBUG
     if (!P1.IsEqual(P2, Precision::Confusion()))
-      cout << "Convert_CompBezierCurvesToBSplineCurve::Addcurve" << endl;
+      std::cout << "Convert_CompBezierCurvesToBSplineCurve::Addcurve" << std::endl;
 #endif
   }
   myDone = Standard_False;
@@ -239,7 +239,7 @@ void Convert_CompBezierCurvesToBSplineCurve::Perform()
 
   // Correct nodal values to make them variable within [0.,1.].
   CurveKnots.Append(0.0);
-//  cout << "Convert : Det = " << Det << endl;
+//  std::cout << "Convert : Det = " << Det << std::endl;
   for (i = 2 ; i <= NbrCurv ; i++) {
     CurveKnots.Append(CurveKnots(i-1) + (CurveKnVals(i-1)/Det));
   }
index faee1ff..0641003 100644 (file)
@@ -64,10 +64,10 @@ extern Draw_Viewer dout;
 
 Standard_EXPORT void DBRep_WriteColorOrientation ()
 {
-  cout << "\nrouge  FORWARD";
-  cout << "\nbleu   REVERSED";
-  cout << "\nrose   EXTERNAL";
-  cout << "\norange INTERNAL"<<endl;
+  std::cout << "\nrouge  FORWARD";
+  std::cout << "\nbleu   REVERSED";
+  std::cout << "\nrose   EXTERNAL";
+  std::cout << "\norange INTERNAL"<<std::endl;
 }
 
 Standard_EXPORT Draw_Color DBRep_ColorOrientation (const TopAbs_Orientation Or) 
@@ -341,8 +341,8 @@ static Standard_Integer triangles(Draw_Interpretor& ,
   if (n == 1) {
     disptriangles = !disptriangles;
 #ifdef OCCT_DEBUG
-    if (disptriangles) cout <<"Triangulations are always displayed"<<endl;
-    else cout <<"Triangulations are displayed only if there is no geometric representation"<<endl;
+    if (disptriangles) std::cout <<"Triangulations are always displayed"<<std::endl;
+    else std::cout <<"Triangulations are displayed only if there is no geometric representation"<<std::endl;
 #endif
   }
   else {
@@ -402,8 +402,8 @@ static Standard_Integer polygons(Draw_Interpretor& ,
   if (n == 1) {
     disppolygons = !disppolygons;
 #ifdef OCCT_DEBUG
-    if (disppolygons) cout <<"Polygons are always displayed"<<endl;
-    else cout <<"Polygons are displayed only if there is no geometric representation"<<endl;
+    if (disppolygons) std::cout <<"Polygons are always displayed"<<std::endl;
+    else std::cout <<"Polygons are displayed only if there is no geometric representation"<<std::endl;
 #endif
   }
   else {
@@ -1523,7 +1523,7 @@ static Standard_Boolean stest(const Handle(Draw_Drawable3D)& d)
   return d->IsInstance(STANDARD_TYPE(DBRep_DrawableShape));
 }
 
-static void ssave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void ssave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
 {
   Handle(DBRep_DrawableShape) 
     N = Handle(DBRep_DrawableShape)::DownCast(d);
@@ -1538,7 +1538,7 @@ static void ssave(const Handle(Draw_Drawable3D)&d, ostream& OS)
   S.Write(N->Shape(),OS);
 }
 
-static Handle(Draw_Drawable3D) srestore (istream& IS)
+static Handle(Draw_Drawable3D) srestore (std::istream& IS)
 {
   BRep_Builder B;
   BRepTools_ShapeSet S(B);
@@ -1572,7 +1572,7 @@ static Draw_SaveAndRestore ssr("DBRep_DrawableShape",
 
 void dumps (const TopoDS_Shape& S)
 {
- BRepTools::Dump(S,cout);
+ BRepTools::Dump(S,std::cout);
 }
 
 //=======================================================================
index ca90da9..1a19b88 100644 (file)
@@ -96,6 +96,6 @@ void DBRep_Get(char* name, TopoDS_Shape& S)
   Standard_CString cs = (Standard_CString)n;
   S = DBRep::Get(cs);
   if (*name == '.')
-    cout << "Name : " << n << endl;
+    std::cout << "Name : " << n << std::endl;
 }
 */
index 24b28a7..5b144cd 100644 (file)
@@ -638,8 +638,8 @@ void  DBRep_DrawableShape::DrawOn(Draw_Display& dis) const
       BRep_Tool::Range(E->Edge(), aCheckU1, aCheckU2);
       if (aCheckU2 < aCheckU1) {
        // bad orientation
-       cout << "DBRep_DrawableShape : Bad parameters on edge."<<endl;
-       BRepTools::Dump(E->Edge(),cout);
+       std::cout << "DBRep_DrawableShape : Bad parameters on edge."<<std::endl;
+       BRepTools::Dump(E->Edge(),std::cout);
        ite.Next();
        continue;
       }
@@ -1100,7 +1100,7 @@ void  DBRep_DrawableShape::display(const Handle(Poly_Triangulation)& T,
 
   // Display the edges
   const TColgp_Array1OfPnt& Nodes = T->Nodes();
-//  cout<<"nb nodes = "<<Nodes.Length()<<endl;
+//  std::cout<<"nb nodes = "<<Nodes.Length()<<std::endl;
   
   // free edges
   Standard_Integer nn;
index f02475c..0ee9f47 100644 (file)
@@ -118,14 +118,14 @@ Geom2dHatch_Hatcher (Geom2dHatch_Intersector (IntersectorConfusion,
     if (PCurve.IsNull())
     {
 #ifdef OCCT_DEBUG
-      cout << "DBRep_IsoBuilder : PCurve is null\n";
+      std::cout << "DBRep_IsoBuilder : PCurve is null\n";
 #endif
       return;
     }
     else if (U1 == U2)
     {
 #ifdef OCCT_DEBUG
-      cout << "DBRep_IsoBuilder PCurve : U1==U2\n";
+      std::cout << "DBRep_IsoBuilder PCurve : U1==U2\n";
 #endif
       return;
     }
@@ -149,8 +149,8 @@ Geom2dHatch_Hatcher (Geom2dHatch_Intersector (IntersectorConfusion,
             U2 - TrimPCurve->BasisCurve()->LastParameter()  > Precision::PConfusion())
           {
 #ifdef OCCT_DEBUG
-            cout << "DBRep_IsoBuilder TrimPCurve : parameters out of range\n";
-            cout << "    U1(" << U1 << "), Umin(" << PCurve->FirstParameter()
+            std::cout << "DBRep_IsoBuilder TrimPCurve : parameters out of range\n";
+            std::cout << "    U1(" << U1 << "), Umin(" << PCurve->FirstParameter()
               << "), U2("  << U2 << "), Umax(" << PCurve->LastParameter() << ")\n";
 #endif
             return;
@@ -161,32 +161,32 @@ Geom2dHatch_Hatcher (Geom2dHatch_Intersector (IntersectorConfusion,
           if (PCurve->FirstParameter() - U1 > Precision::PConfusion())
           {
 #ifdef OCCT_DEBUG
-            cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
-            cout << "    U1(" << U1 << "), Umin(" << PCurve->FirstParameter() << ")\n";
+            std::cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
+            std::cout << "    U1(" << U1 << "), Umin(" << PCurve->FirstParameter() << ")\n";
 #endif
             U1 = PCurve->FirstParameter();
           }
           if (PCurve->FirstParameter() - U2 > Precision::PConfusion())
           {
 #ifdef OCCT_DEBUG
-            cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
-            cout << "    U2(" << U2 << "), Umin(" << PCurve->FirstParameter() << ")\n";
+            std::cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
+            std::cout << "    U2(" << U2 << "), Umin(" << PCurve->FirstParameter() << ")\n";
 #endif
             U2 = PCurve->FirstParameter();
           }
           if (U1 - PCurve->LastParameter() > Precision::PConfusion())
           {
 #ifdef OCCT_DEBUG
-            cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
-            cout << "    U1(" << U1 << "), Umax(" << PCurve->LastParameter() << ")\n";
+            std::cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
+            std::cout << "    U1(" << U1 << "), Umax(" << PCurve->LastParameter() << ")\n";
 #endif
             U1 = PCurve->LastParameter();
           }
           if (U2 - PCurve->LastParameter() > Precision::PConfusion())
           {
 #ifdef OCCT_DEBUG
-            cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
-            cout << "    U2(" << U2 << "), Umax(" << PCurve->LastParameter() << ")\n";
+            std::cout << "DBRep_IsoBuilder PCurve : parameters out of range\n";
+            std::cout << "    U2(" << U2 << "), Umax(" << PCurve->LastParameter() << ")\n";
 #endif
             U2 = PCurve->LastParameter();
           }
@@ -296,13 +296,13 @@ void DBRep_IsoBuilder::LoadIsos (const Handle(DBRep_Face)& Face) const
     if (UInd != 0) {
       Standard_Real UPrm = myUPrm.Value (UIso) ;
       if (!IsDone (UInd)) {
-       cout << "DBRep_IsoBuilder:: U iso of parameter: " << UPrm ;
+       std::cout << "DBRep_IsoBuilder:: U iso of parameter: " << UPrm ;
        switch (Status (UInd)) {
-         case HatchGen_NoProblem          : cout << " No Problem"          << endl ; break ;
-         case HatchGen_TrimFailure        : cout << " Trim Failure"        << endl ; break ;
-         case HatchGen_TransitionFailure  : cout << " Transition Failure"  << endl ; break ;
-         case HatchGen_IncoherentParity   : cout << " Incoherent Parity"   << endl ; break ;
-         case HatchGen_IncompatibleStates : cout << " Incompatible States" << endl ; break ;
+         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 ;
        }
       } else {
        Standard_Integer NbDom = Geom2dHatch_Hatcher::NbDomains (UInd) ;
@@ -322,13 +322,13 @@ void DBRep_IsoBuilder::LoadIsos (const Handle(DBRep_Face)& Face) const
     if (VInd != 0) {
       Standard_Real VPrm = myVPrm.Value (VIso) ;
       if (!IsDone (VInd)) {
-       cout << "DBRep_IsoBuilder:: V iso of parameter: " << VPrm ;
+       std::cout << "DBRep_IsoBuilder:: V iso of parameter: " << VPrm ;
        switch (Status (VInd)) {
-         case HatchGen_NoProblem          : cout << " No Problem"          << endl ; break ;
-         case HatchGen_TrimFailure        : cout << " Trim Failure"        << endl ; break ;
-         case HatchGen_TransitionFailure  : cout << " Transition Failure"  << endl ; break ;
-         case HatchGen_IncoherentParity   : cout << " Incoherent Parity"   << endl ; break ;
-         case HatchGen_IncompatibleStates : cout << " Incompatible States" << endl ; break ;
+         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 ;
        }
       } else {
        Standard_Integer NbDom = Geom2dHatch_Hatcher::NbDomains (VInd) ;
index d57b0c2..90ba1cc 100644 (file)
@@ -61,7 +61,7 @@ Standard_Boolean DDF::FindLabel (const Handle(TDF_Data)& DF,
 {
   Label.Nullify();
   TDF_Tool::Label(DF,Entry,Label,Standard_False);
-  if (Label.IsNull() && Complain) cout << "No label for entry " << Entry <<endl;
+  if (Label.IsNull() && Complain) std::cout << "No label for entry " << Entry <<std::endl;
   return !Label.IsNull();
 }
 
@@ -82,7 +82,7 @@ Standard_Boolean DDF::GetDF (Standard_CString&       Name,
     DF = DDF->DataFramework(); 
     return Standard_True;
   } 
-  if (Complain) cout <<"framework "<<Name<<" not found "<< endl; 
+  if (Complain) std::cout <<"framework "<<Name<<" not found "<< std::endl; 
   return Standard_False;
 }
 
@@ -101,7 +101,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) cout <<"attribute not found for entry : "<< Entry <<endl; 
+    if (Complain) std::cout <<"attribute not found for entry : "<< Entry <<std::endl; 
   }
   return Standard_False;   
 }
index bfb334c..f1471f8 100644 (file)
@@ -179,49 +179,49 @@ static Standard_Integer DDF_ForgetAttribute(Draw_Interpretor& di,
 
 void ErrorMessage (const Storage_Error n) 
 {
-  cout << "Storage Error: " << flush;
+  std::cout << "Storage Error: " << std::flush;
 
   switch (n) {
   case Storage_VSOk:
-    cout << "no problem" << endl;
+    std::cout << "no problem" << std::endl;
     break;
   case Storage_VSOpenError:
-    cout << "while opening the stream" << endl;
+    std::cout << "while opening the stream" << std::endl;
     break;
   case Storage_VSModeError:
-    cout << "the stream is opened with a wrong mode for operation " << endl;
+    std::cout << "the stream is opened with a wrong mode for operation " << std::endl;
     break;
   case Storage_VSCloseError:
-    cout << "while closing the stream" << endl;
+    std::cout << "while closing the stream" << std::endl;
     break;
   case Storage_VSAlreadyOpen:
-    cout << "stream is already opened" << endl;
+    std::cout << "stream is already opened" << std::endl;
     break;
   case Storage_VSNotOpen:
-    cout << "stream not opened" << endl;
+    std::cout << "stream not opened" << std::endl;
     break;
   case Storage_VSSectionNotFound:
-    cout << "the section is not found" << endl;
+    std::cout << "the section is not found" << std::endl;
     break;
   case Storage_VSWriteError:
-    cout << "error during writing" << endl;
+    std::cout << "error during writing" << std::endl;
     break;
   case Storage_VSFormatError:
-    cout << "wrong format error occured while reading" << endl;
+    std::cout << "wrong format error occured while reading" << std::endl;
     break;
   case Storage_VSUnknownType:
-    cout << "try to read an unknown type" << endl;
+    std::cout << "try to read an unknown type" << std::endl;
     break;
   case Storage_VSTypeMismatch:
-    cout << "try to read a wrong primitive type (read a char while expecting a real)" << endl;
+    std::cout << "try to read a wrong primitive type (read a char while expecting a real)" << std::endl;
     break;
   case Storage_VSInternalError:
-    cout << "internal error" << endl;
+    std::cout << "internal error" << std::endl;
     break;
-  case Storage_VSExtCharParityError:      cout << "parity error" << endl;
+  case Storage_VSExtCharParityError:      std::cout << "parity error" << std::endl;
     break;
   default:
-    cout << "unknown error code" << endl;
+    std::cout << "unknown error code" << std::endl;
     break;
   }
 }
index 0f35341..6d7ddb1 100644 (file)
@@ -64,7 +64,7 @@ DDF_Browser::DDF_Browser(const Handle(TDF_Data)& aDF)
 
 void DDF_Browser::DrawOn(Draw_Display& /*dis*/) const
 { 
-  //cout<<"DDF_Browser"<<endl; 
+  //std::cout<<"DDF_Browser"<<std::endl; 
 }
 
 
@@ -84,7 +84,7 @@ Handle(Draw_Drawable3D) DDF_Browser::Copy() const
 
 void DDF_Browser::Dump(Standard_OStream& S) const
 {
-  S<<"DDF_Browser on a DF:"<<endl;
+  S<<"DDF_Browser on a DF:"<<std::endl;
   S<<myDF;
 }
 
index e53ad94..e4c027b 100644 (file)
@@ -50,14 +50,14 @@ static Standard_Integer DFBrowse (Draw_Interpretor& di,
 {
   if (n<2)
   {
-    cout << "Use: " << a[0] << " document [brower_name]" << endl;
+    std::cout << "Use: " << a[0] << " document [brower_name]" << std::endl;
     return 1;
   }
   
   Handle(TDF_Data) DF;
   if (!DDF::GetDF (a[1], DF)) 
   {
-    cout << "Error: document " << a[1] << " is not found" << endl;
+    std::cout << "Error: document " << a[1] << " is not found" << std::endl;
     return 1;
   }
 
@@ -72,14 +72,14 @@ static Standard_Integer DFBrowse (Draw_Interpretor& di,
   OSD_File aTclScriptFile (aTclScript);
   if (aTclScriptFile.Exists()) {
 #ifdef OCCT_DEBUG
-    cout << "Load " << aTclScript << endl;
+    std::cout << "Load " << aTclScript << std::endl;
 #endif
     di.EvalFile( aTclScript.ToCString() );
   }
   else
   {
-    cout << "Error: Could not load script " << aTclScript << endl;
-    cout << "Check environment variable CSF_DrawPluginDefaults" << endl;
+    std::cout << "Error: Could not load script " << aTclScript << std::endl;
+    std::cout << "Check environment variable CSF_DrawPluginDefaults" << std::endl;
   }
 
   // Call command dftree defined in dftree.tcl
index 7d9fe7e..3f2af36 100644 (file)
@@ -50,7 +50,7 @@ DDF_Data::DDF_Data(const Handle(TDF_Data)& aDF) : myDF (aDF) {}
 
 void DDF_Data::DrawOn(Draw_Display& /*dis*/) const
 
-{ cout<<"DDF_Data"<<endl; }
+{ std::cout<<"DDF_Data"<<std::endl; }
 
 
 
index 254bb98..f0e4391 100644 (file)
@@ -195,10 +195,10 @@ static Standard_Integer MiniDumpDF (Draw_Interpretor& di,
 
   di<<"*********** Dump of "<<a[1]<<" ***********\n";
 
-  //DDF->DataFramework()->Dump(cout);
+  //DDF->DataFramework()->Dump(std::cout);
   Standard_SStream aSStream;
   DDF->DataFramework()->Dump(aSStream);
-  aSStream << ends;
+  aSStream << std::ends;
   di << aSStream << "\n";
   
   return 0;
@@ -237,7 +237,7 @@ static Standard_Integer XDumpDF (Draw_Interpretor& di,
   //TDF_Tool::ExtendedDeepDump(cout,DDF->DataFramework(),filter);
   Standard_SStream aSStream;
   TDF_Tool::ExtendedDeepDump(aSStream,DDF->DataFramework(),filter);
-  aSStream << ends;
+  aSStream << std::ends;
   di << aSStream <<"\n";
   
   return 0;
@@ -293,30 +293,30 @@ static Standard_Integer  DDF_CheckAttrs (Draw_Interpretor& di,Standard_Integer n
     Standard_Boolean Shar = Standard_False;
     for (TDF_AttributeIterator itr(SOURCE); itr.More(); itr.Next()) {
       itr.Value()->References(ds1);
-//      cout<<"\tSource Attribute dynamic type = "<<itr.Value()->DynamicType()<<endl;
+//      std::cout<<"\tSource Attribute dynamic type = "<<itr.Value()->DynamicType()<<std::endl;
       const TDF_AttributeMap& attMap = ds1->Attributes(); //attMap
       for (TDF_MapIteratorOfAttributeMap attMItr(attMap);attMItr.More(); attMItr.Next()) {
        Handle(TDF_Attribute) sAtt = attMItr.Key();
-//     cout<<"\t\tSource references attribute dynamic type = "<<sAtt->DynamicType()<<endl;
+//     std::cout<<"\t\tSource references attribute dynamic type = "<<sAtt->DynamicType()<<std::endl;
        for (TDF_AttributeIterator itr2(TARGET); itr2.More(); itr2.Next()) {
          itr2.Value()->References(ds2);
-//       cout<<"\t\t\tTARGET attribute dynamic type = "<<itr2.Value()->DynamicType()<<endl;
+//       std::cout<<"\t\t\tTARGET attribute dynamic type = "<<itr2.Value()->DynamicType()<<std::endl;
          const TDF_AttributeMap& attMap2 = ds2->Attributes(); //attMap
          for (TDF_MapIteratorOfAttributeMap attMItr2(attMap2);attMItr2.More(); attMItr2.Next()) {
            Handle(TDF_Attribute) tAtt = attMItr2.Key();
-//         cout<<"\t\t\t\tTarget reference attribute dynamic type = "<<tAtt->DynamicType()<<endl;
+//         std::cout<<"\t\t\t\tTarget reference attribute dynamic type = "<<tAtt->DynamicType()<<std::endl;
            if (tAtt->IsInstance(sAtt->DynamicType()))
              if(tAtt == sAtt) {
                TCollection_AsciiString entr1,entr2;
                if(!Shar) {
                  TDF_Tool::Entry(SOURCE, entr1);  
                  TDF_Tool::Entry(TARGET, entr2);
-                 //cout<<"\tSHAREABLE attribute(s) found between Lab1 = "<<entr1<<" and Lab2 = "<<entr2<<endl;
+                 //std::cout<<"\tSHAREABLE attribute(s) found between Lab1 = "<<entr1<<" and Lab2 = "<<entr2<<std::endl;
                  di<<"\tSHAREABLE attribute(s) found between Lab1 = "<<entr1.ToCString()<<" and Lab2 = "<<entr2.ToCString()<<"\n";
                  Shar = Standard_True;
                }
                TDF_Tool::Entry(sAtt->Label(), entr1);
-               //cout<<"\tAttribute dynamic type = "<<sAtt->DynamicType()<<",\tlocated on Label = "<<entr1<<endl;
+               //std::cout<<"\tAttribute dynamic type = "<<sAtt->DynamicType()<<",\tlocated on Label = "<<entr1<<std::endl;
                di<<"\tAttribute dynamic type = " << sAtt->DynamicType()->Name();
                di<<",\tlocated on Label = "<<entr1.ToCString()<<"\n";
              }
@@ -351,14 +351,14 @@ static Standard_Integer  DDF_CheckLabel (Draw_Interpretor& di,Standard_Integer n
     Handle(TDF_DataSet) ds1 = new TDF_DataSet();
     for (TDF_AttributeIterator itr(SOURCE); itr.More(); itr.Next()) {
       itr.Value()->References(ds1);
-      //cout<<"\tSource Attribute dynamic type = "<<itr.Value()->DynamicType()<<endl;
+      //std::cout<<"\tSource Attribute dynamic type = "<<itr.Value()->DynamicType()<<std::endl;
       di<<"\tSource Attribute dynamic type = " << itr.Value()->DynamicType()->Name() << "\n";
       const TDF_AttributeMap& attMap = ds1->Attributes(); //attMap
       for (TDF_MapIteratorOfAttributeMap attMItr(attMap);attMItr.More(); attMItr.Next()) {
        Handle(TDF_Attribute) sAtt = attMItr.Key();
        TCollection_AsciiString entry;
        TDF_Tool::Entry(sAtt->Label(), entry);
-       //cout<<"\t\tReferences attribute dynamic type = "<<sAtt->DynamicType()<<",\tLabel = "<<entry<<endl;
+       //std::cout<<"\t\tReferences attribute dynamic type = "<<sAtt->DynamicType()<<",\tLabel = "<<entry<<std::endl;
        di<<"\t\tReferences attribute dynamic type = " << sAtt->DynamicType()->Name();
        di<<",\tLabel = "<<entry.ToCString()<<"\n";
       }
index d116d3d..4eed1c8 100644 (file)
@@ -72,7 +72,7 @@ Storage_Error DDF_IOStream::Open(const TCollection_AsciiString& aName,const Stor
   if (OpenMode() == Storage_VSNone) {
     if (aMode == Storage_VSRead) {
       if (myIStream != NULL) delete myIStream;
-      myIStream = new ifstream(aName.ToCString(),ios::in); // ios::nocreate is not portable
+      myIStream = new std::ifstream(aName.ToCString(),std::ios::in); // std::ios::nocreate is not portable
       if (myIStream->fail()) {
        result = Storage_VSOpenError;
       }
@@ -84,7 +84,7 @@ Storage_Error DDF_IOStream::Open(const TCollection_AsciiString& aName,const Stor
     }
     else if (aMode == Storage_VSWrite) {
       if (myOStream != NULL) delete myOStream;
-      myOStream = new ofstream(aName.ToCString(),ios::out);
+      myOStream = new std::ofstream(aName.ToCString(),std::ios::out);
       if (myOStream->fail()) {
        result = Storage_VSOpenError;
       }
@@ -104,10 +104,10 @@ Storage_Error DDF_IOStream::Open(const TCollection_AsciiString& aName,const Stor
 
 //=======================================================================
 //function : Open
-//purpose  : "Opens" an istream.
+//purpose  : "Opens" an std::istream.
 //=======================================================================
 
-Storage_Error DDF_IOStream::Open(istream* anIStream)
+Storage_Error DDF_IOStream::Open(std::istream* anIStream)
 {
   myOStream = NULL;
   SetOpenMode(Storage_VSRead);
@@ -120,10 +120,10 @@ Storage_Error DDF_IOStream::Open(istream* anIStream)
 
 //=======================================================================
 //function : Open
-//purpose  : "Opens" an ostream.
+//purpose  : "Opens" an std::ostream.
 //=======================================================================
 
-Storage_Error DDF_IOStream::Open(ostream* anOStream)
+Storage_Error DDF_IOStream::Open(std::ostream* anOStream)
 {
   myIStream = NULL;
   SetOpenMode(Storage_VSWrite);
@@ -263,7 +263,7 @@ void DDF_IOStream::ReadExtendedLine(TCollection_ExtendedString& buffer)
     myIStream->get(c);
     check++;
 //    if ((check % 2) != 0) throw Storage_StreamExtCharParityError();
-//    cout << check << endl;
+//    std::cout << check << std::endl;
     j = (Standard_ExtCharacter)c;
     if (c != '\n') fin = Standard_False;
     i |= (0x00FF & j);
@@ -271,7 +271,7 @@ void DDF_IOStream::ReadExtendedLine(TCollection_ExtendedString& buffer)
   }
 
 //  if ((check % 2) != 0) throw Storage_StreamExtCharParityError();
-//  cout << check << endl;
+//  std::cout << check << std::endl;
 }
 
 //=======================================================================
@@ -647,7 +647,7 @@ Storage_Error DDF_IOStream::BeginReadInfoSection()
   
   if (strncmp(DDF_IOStream::MagicNumber(),l.ToCString(),len) != 0) {
 #ifdef OCCT_DEBUG
-    cout<<"BeginReadInfoSection: format error"<<endl;
+    std::cout<<"BeginReadInfoSection: format error"<<std::endl;
 #endif
     s = Storage_VSFormatError;
   }
@@ -1339,7 +1339,7 @@ Storage_Error DDF_IOStream::EndReadDataSection()
 //purpose  : 
 //=======================================================================
 
-Storage_Error DDF_IOStream::IsGoodFileType(istream* anIStream)
+Storage_Error DDF_IOStream::IsGoodFileType(std::istream* anIStream)
 {
   DDF_IOStream      f;
   Storage_Error s;
@@ -1356,7 +1356,7 @@ Storage_Error DDF_IOStream::IsGoodFileType(istream* anIStream)
 
     if (strncmp(DDF_IOStream::MagicNumber(),l.ToCString(),len) != 0) {
 #ifdef OCCT_DEBUG
-    cout<<"IsGoodFileType: format error"<<endl;
+    std::cout<<"IsGoodFileType: format error"<<std::endl;
 #endif
       s = Storage_VSFormatError;
     }
index d36cd6f..3ac1dd1 100644 (file)
@@ -46,11 +46,11 @@ public:
  // 
 DDF_IOStream();
   Storage_Error Open(const TCollection_AsciiString& aName,const Storage_OpenMode aMode) ;
-  Storage_Error Open(istream* anIStream) ;
-  Storage_Error Open(ostream* anOStream) ;
+  Storage_Error Open(std::istream* anIStream) ;
+  Storage_Error Open(std::ostream* anOStream) ;
   Standard_Boolean IsEnd() ;
   Storage_Position Tell() { return -1; }
-static  Storage_Error IsGoodFileType(istream* anIStream) ;
+static  Storage_Error IsGoodFileType(std::istream* anIStream) ;
   Storage_Error BeginWriteInfoSection() ;
   void WriteInfo(const Standard_Integer nbObj,const TCollection_AsciiString& dbVersion,const TCollection_AsciiString& date,const TCollection_AsciiString& schemaName,const TCollection_AsciiString& schemaVersion,const TCollection_ExtendedString& appName,const TCollection_AsciiString& appVersion,const TCollection_ExtendedString& objectType,const TColStd_SequenceOfAsciiString& userInfo) ;
   Storage_Error EndWriteInfoSection() ;
@@ -217,8 +217,8 @@ static Standard_CString MagicNumber() ;
  // Fields PRIVATE
  //
 //FSD_FStream myStream;
-istream* myIStream;
-ostream* myOStream;
+std::istream* myIStream;
+std::ostream* myOStream;
 
 
 };
index 91f9c65..9e24dd1 100644 (file)
@@ -363,10 +363,10 @@ static Standard_Integer DDataStd_Self (Draw_Interpretor& di,
     TDF_Label L;
     if (!DDF::FindLabel(DF,arg[2],L)) return 1; 
 //    TDataStd::MakeSelfContained(L,removed);
-//    if (removed.IsEmpty()) cout << "noone attriburte removed" << endl;
+//    if (removed.IsEmpty()) std::cout << "noone attriburte removed" << std::endl;
 //    for (TDF_ListIteratorOfAttributeList it(removed);it.More();it.Next()) {
-//      TDF_Tool::Entry(it.Value()->Label(),s); cout  << s << " ";
-//      cout << endl;
+//      TDF_Tool::Entry(it.Value()->Label(),s); std::cout  << s << " ";
+//      std::cout << std::endl;
 //    }
     return 0;
   } 
@@ -394,7 +394,7 @@ static Standard_Integer DDataStd_Self (Draw_Interpretor& di,
 //     return 0;
 //   }
 
-//   cout << "Wrong arguments"  << endl;  
+//   std::cout << "Wrong arguments"  << std::endl;  
 //   return 1;
 // } 
 
@@ -466,7 +466,7 @@ static Standard_Integer DDataStd_GetUAttribute (Draw_Interpretor& di,
 //     if (!DDF::GetDF(arg[1],DF)) return 1;  
 //     TDF_Label label;
 //     if( !DDF::FindLabel(DF, arg[2], label) ) { 
-//      cout << "No label for entry"  << endl;
+//      std::cout << "No label for entry"  << std::endl;
 //      return 1; 
 //     }
 //     Handle(TDataStd_Object) O;
@@ -474,18 +474,18 @@ static Standard_Integer DDataStd_GetUAttribute (Draw_Interpretor& di,
 //     Standard_GUID guidUO(arg[3]);
 
 //     if( !label.FindAttribute( TDataStd_Object::GetID(), O) ) {
-//       cout << "No Object Attribute on label"   << endl;
+//       std::cout << "No Object Attribute on label"   << std::endl;
 //     }
 //     else { 
-//       cout << "UObject is found with ObjectID = ";
+//       std::cout << "UObject is found with ObjectID = ";
 //       O->Find(label, guidUO, UO);
-//       UO->ObjectID().ShallowDump(cout);
-//       cout << endl; 
+//       UO->ObjectID().ShallowDump(std::cout);
+//       std::cout << std::endl; 
 //     }
 //     return 0;   
 //   }
 
-//   cout << "Wrong arguments"  << endl;  
+//   std::cout << "Wrong arguments"  << std::endl;  
 //   return 1;  
 // }
 
@@ -610,7 +610,7 @@ static Standard_Integer DDataStd_GetIntArray (Draw_Interpretor& di,
     }
 
     for(Standard_Integer i = A->Lower(); i<=A->Upper(); i++){
-      //cout <<  A->Value(i)   << endl;
+      //std::cout <<  A->Value(i)   << std::endl;
       di  <<  A->Value(i);
       if(i<A->Upper())  
         di<<" ";
@@ -856,14 +856,14 @@ static Standard_Integer DDataStd_GetRealArray (Draw_Interpretor& di,
     if ( !label.FindAttribute(aGuid, A) ) {
       di << "There is no TDataStd_RealArray with the specified GUID at the label"  << "\n";
 #ifdef DEB_DDataStd
-      aGuid.ShallowDump(cout);
+      aGuid.ShallowDump(std::cout);
 #endif
       return 1; 
     }
 
     for(Standard_Integer i = A->Lower(); i<=A->Upper(); i++){
 #ifdef DEB_DDataStd
-      cout <<  A->Value(i)   << endl; 
+      std::cout <<  A->Value(i)   << std::endl; 
 #endif
       di   <<  A->Value(i);
       if(i<A->Upper())  
@@ -1415,13 +1415,13 @@ static Standard_Integer DDataStd_KeepUTF (Draw_Interpretor& di,
     Standard_CString aFileName(arg[3]);
 
 #ifdef _MSC_VER
-      ifstream anIS (aFileName, ios::in | ios::binary);
+      std::ifstream anIS (aFileName, std::ios::in | std::ios::binary);
 #else
-      ifstream anIS (aFileName);
+      std::ifstream anIS (aFileName);
 #endif
     if (!anIS) {
       // Can not open file
-      cout << "Error: can't open file " << aFileName <<endl;;
+      std::cout << "Error: can't open file " << aFileName <<std::endl;;
       return 1;
     }
     char buf[1024];
@@ -1480,21 +1480,21 @@ static Standard_Integer DDataStd_GetUTFtoFile (Draw_Interpretor& di,
     }
 
     if(!aES.Length()) {
-      cout << "Data is not found in the Document" <<endl;
+      std::cout << "Data is not found in the Document" <<std::endl;
       return 1;
     }
 
     Standard_CString aFileName(arg[3]);
 
 #ifdef _MSC_VER
-    ofstream anOS (aFileName, ios::in | ios::binary | ios::ate);
+    std::ofstream anOS (aFileName, std::ios::in | std::ios::binary | std::ios::ate);
 #else
-    ofstream anOS (aFileName, ios::ate);
+    std::ofstream anOS (aFileName, std::ios::ate);
 #endif
     if (!anOS) {
       // A problem with the stream
 #ifdef OCCT_DEBUG
-      cout << "Error: problem with the file stream, rdstate = " <<anOS.rdstate() <<endl;
+      std::cout << "Error: problem with the file stream, rdstate = " <<anOS.rdstate() <<std::endl;
 #endif
     }
     unsigned char prefix[4] = {0xEF,0xBB,0xBF, 0x00};
@@ -1556,7 +1556,7 @@ static Standard_Integer DDataStd_SetByteArray (Draw_Interpretor& di,
       for(Standard_Integer i = From; i<=To; ++i) {
         Standard_Integer ival = Draw::Atoi(arg[j]);
         if(ival < 0 || 255 < ival) {
-          cout << "Bad value = " << ival<< endl;
+          std::cout << "Bad value = " << ival<< std::endl;
           return 1;
         }
         A->SetValue(i, (Standard_Byte)ival); 
@@ -1592,7 +1592,7 @@ static Standard_Integer DDataStd_SetByteArrayValue (Draw_Interpretor&,
 
   // Check the value.
   if(value < 0 || 255 < value) {
-    cout << "Bad value = " << value << endl;
+    std::cout << "Bad value = " << value << std::endl;
     return 1;
   }
 
@@ -1657,7 +1657,7 @@ static Standard_Integer DDataStd_SetBooleanArray (Draw_Interpretor& di,
         Standard_Integer ival = Draw::Atoi(arg[j]);
         if(ival > 1) 
         {
-          cout << "Bad value (" <<i <<") = " << ival<< ". 0 or 1 is expected." << endl;
+          std::cout << "Bad value (" <<i <<") = " << ival<< ". 0 or 1 is expected." << std::endl;
           return 1;
         }
         A->SetValue(i, ival != 0); 
@@ -1852,7 +1852,7 @@ static Standard_Integer DDataStd_SetBooleanList (Draw_Interpretor& di,
       Standard_Integer ival = Draw::Atoi(arg[i]);
       if(ival > 1) 
       {
-        cout << "Bad value = " << ival<< ". 0 or 1 is expected." << endl;
+        std::cout << "Bad value = " << ival<< ". 0 or 1 is expected." << std::endl;
         return 1;
       }
       A->Append (ival != 0);
@@ -2475,7 +2475,7 @@ static Standard_Integer DDataStd_GetByteArray (Draw_Interpretor& di,
     }
 
     for(Standard_Integer i = A->Lower(); i<=A->Upper(); i++){
-      //cout <<  A->Value(i)   << endl;
+      //std::cout <<  A->Value(i)   << std::endl;
       di  <<  A->Value(i);
       if(i<A->Upper())  
         di<<" ";
@@ -2973,7 +2973,7 @@ static Standard_Integer DDataStd_SetIntPackedMap (Draw_Interpretor& di,
     }
     const Handle(TColStd_HPackedMapOfInteger)& aHMap = new TColStd_HPackedMapOfInteger(aMap);
     anAtt->ChangeMap(aHMap);
-    cout << "Map extent = " << anAtt->Extent()<<endl;
+    std::cout << "Map extent = " << anAtt->Extent()<<std::endl;
     return 0; 
   }
   di << "DDataStd_SetIntPackedMap : Error\n";
@@ -3171,7 +3171,7 @@ static Standard_Integer DDataStd_SetIntPHugeMap (Draw_Interpretor& di,
     }
     const Handle(TColStd_HPackedMapOfInteger)& aHMap = new TColStd_HPackedMapOfInteger(aMap);
     anAtt->ChangeMap(aHMap);
-    cout << "Map extent = " << anAtt->Extent()<<endl;
+    std::cout << "Map extent = " << anAtt->Extent()<<std::endl;
     return 0; 
   }
   di << "DDataStd_SetIntPHugeMap : Error\n";
@@ -3237,7 +3237,7 @@ static Standard_Integer DDataStd_SetNDataIntAr2 (Draw_Interpretor& di,
     if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt))
       anAtt = TDataStd_NamedData::Set(aLabel);
     if(anAtt.IsNull()) {
-      cout<< "NamedData attribute is not found or not set"  << endl;
+      std::cout<< "NamedData attribute is not found or not set"  << std::endl;
       return 1;}
   
     j = 15;
@@ -3285,7 +3285,7 @@ static Standard_Integer DDataStd_SetAsciiString (Draw_Interpretor& di,
       return 1;
     }
   
-    cout << "String = " << anAtt->Get().ToCString() << " is kept in DF" << endl;
+    std::cout << "String = " << anAtt->Get().ToCString() << " is kept in DF" << std::endl;
     return 0; 
   }
   di << "DDataStd_SetAsciiString : Error\n";
@@ -3316,12 +3316,12 @@ static Standard_Integer DDataStd_GetAsciiString (Draw_Interpretor& di,
     }
     Handle(TDataStd_AsciiString) anAtt;
     if( !aLabel.FindAttribute(aGuid, anAtt) ) {
-      cout << "AsciiString attribute is not found or not set"  << endl;
+      std::cout << "AsciiString attribute is not found or not set"  << std::endl;
       return 1;
     }
 
 #ifdef DEB_DDataStd
-      cout << "String = " << anAtt->Get().ToCString()  << endl;
+      std::cout << "String = " << anAtt->Get().ToCString()  << std::endl;
 #endif
     di << anAtt->Get().ToCString();
     return 0; 
@@ -3347,12 +3347,12 @@ static Standard_Integer DDataStd_SetNDataIntegers (Draw_Interpretor& di,
 //
 //     TCollection_ExtendedString aString("123456789 0_abcde");
 //     Standard_Integer aPos = aString.Search(" ");
-//     cout << "From Start = " <<aPos<<endl;
+//     std::cout << "From Start = " <<aPos<<std::endl;
 //     aPos = aString.SearchFromEnd(" ");
-//     cout << "From Start = " <<aPos<<endl;
+//     std::cout << "From Start = " <<aPos<<std::endl;
 //     TCollection_ExtendedString aValue = aString.Split(aPos);
-//     cout << "Value = |"<<aValue<<endl;
-//     cout << "aKey = " << aString << "|"<<endl;
+//     std::cout << "Value = |"<<aValue<<std::endl;
+//     std::cout << "aKey = " << aString << "|"<<std::endl;
 // 
     Standard_Integer aNumP = Draw::Atoi(arg[3]), j;
     Handle(TDataStd_NamedData) anAtt;
@@ -3393,17 +3393,17 @@ static Standard_Integer DDataStd_GetNDIntegers (Draw_Interpretor& di,
 
     Handle(TDataStd_NamedData) anAtt;
     if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt)) {
-      cout << "NamedData attribute is not found or not set"  << endl;
+      std::cout << "NamedData attribute is not found or not set"  << std::endl;
       return 1;}
-    cout <<endl;
-    cout <<"NamedData attribute at Label = " << arg[2] <<endl;
+    std::cout <<std::endl;
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
     const TColStd_DataMapOfStringInteger& aMap = anAtt->GetIntegersContainer();
     TColStd_DataMapIteratorOfDataMapOfStringInteger itr(aMap);
     for (; itr.More(); itr.Next()){
       TCollection_ExtendedString aKey(itr.Key());
       TCollection_AsciiString aStr(aKey,'?');
       Standard_Integer aValue = itr.Value();
-       cout << "Key = "  << aStr.ToCString() << " Value = " <<aValue<<endl;;
+       std::cout << "Key = "  << aStr.ToCString() << " Value = " <<aValue<<std::endl;;
       }
 
     return 0; 
@@ -3429,16 +3429,16 @@ static Standard_Integer DDataStd_GetNDInteger (Draw_Interpretor& di,
 
     Handle(TDataStd_NamedData) anAtt;
     if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt)) {
-      cout << "NamedData attribute is not found or not set"  << endl;
+      std::cout << "NamedData attribute is not found or not set"  << std::endl;
       return 1;}
 
-    cout <<endl;
-    cout <<"NamedData attribute at Label = " << arg[2] <<endl;    
+    std::cout <<std::endl;
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;    
     if(!anAtt->HasInteger(arg[3])) {
-      cout << "There is no data specified by Key = "<< arg[3]  << endl;
+      std::cout << "There is no data specified by Key = "<< arg[3]  << std::endl;
       return 1;
     } else {
-      cout << "Key = "  << arg[3]  << " Value = " <<anAtt->GetInteger(arg[3])<<endl;
+      std::cout << "Key = "  << arg[3]  << " Value = " <<anAtt->GetInteger(arg[3])<<std::endl;
       if(nb == 5) 
         Draw::Set(arg[4], anAtt->GetInteger(arg[3]));
       return 0; 
@@ -3469,7 +3469,7 @@ static Standard_Integer DDataStd_SetNDataReals (Draw_Interpretor& di,
     if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt))
       anAtt = TDataStd_NamedData::Set(aLabel);
     if(anAtt.IsNull()) {
-      cout << "NamedData attribute is not found or not set"  << endl;;
+      std::cout << "NamedData attribute is not found or not set"  << std::endl;;
       return 1;}
   
     j = 4;
@@ -3499,11 +3499,11 @@ static Standard_Integer DDataStd_GetNDReals (Draw_Interpretor& di,
     TDF_Label aLabel;
     if(!DDF::FindLabel(DF, arg[2], aLabel)) return 1;
  
-    cout <<endl;
-    cout <<"NamedData attribute at Label = " << arg[2] <<endl;
+    std::cout <<std::endl;
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
     Handle(TDataStd_NamedData) anAtt;
     if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt)) {
-      cout << "NamedData attribute is not found or not set"  << endl;
+      std::cout << "NamedData attribute is not found or not set"  << std::endl;
       return 1;}
     
     const TDataStd_DataMapOfStringReal& aMap = anAtt->GetRealsContainer();
@@ -3512,7 +3512,7 @@ static Standard_Integer DDataStd_GetNDReals (Draw_Interpretor& di,
       TCollection_ExtendedString aKey(itr.Key());
       TCollection_AsciiString aStr(aKey,'?');
       Standard_Real aValue = itr.Value();
-       cout << "Key = "  << aStr.ToCString() << " Value = " <<aValue<<endl;
+       std::cout << "Key = "  << aStr.ToCString() << " Value = " <<aValue<<std::endl;
       }
     return 0; 
   }
@@ -3537,16 +3537,16 @@ static Standard_Integer DDataStd_GetNDReal (Draw_Interpretor& di,
 
     Handle(TDataStd_NamedData) anAtt;
     if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt)) {
-      cout << "NamedData attribute is not found or not set"  << endl;
+      std::cout << "NamedData attribute is not found or not set"  << std::endl;
       return 1;}
 
-    cout <<endl;
-    cout <<"NamedData attribute at Label = " << arg[2] <<endl;    
+    std::cout <<std::endl;
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;    
     if(!anAtt->HasReal(arg[3])) {
-      cout << "There is no data specified by Key = "<< arg[3]  << endl;
+      std::cout << "There is no data specified by Key = "<< arg[3]  << std::endl;
       return 1;
     } else {
-      cout << "Key = "  << arg[3]  << " Value = " <<anAtt->GetReal(arg[3])<<endl;
+      std::cout << "Key = "  << arg[3]  << " Value = " <<anAtt->GetReal(arg[3])<<std::endl;
       if(nb == 5) 
         Draw::Set(arg[4], anAtt->GetReal(arg[3]));
       return 0; 
@@ -3610,10 +3610,10 @@ static Standard_Integer DDataStd_GetNDStrings (Draw_Interpretor& di,
 
     Handle(TDataStd_NamedData) anAtt;
     if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt)) {
-      cout << "NamedData attribute is not found or not set"  << endl;
+      std::cout << "NamedData attribute is not found or not set"  << std::endl;
       return 1;}
-    cout <<endl;
-    cout <<"NamedData attribute at Label = " << arg[2] <<endl;    
+    std::cout <<std::endl;
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;    
     const TDataStd_DataMapOfStringString& aMap = anAtt->GetStringsContainer();
     TDataStd_DataMapIteratorOfDataMapOfStringString itr(aMap);
     for (; itr.More(); itr.Next()){
@@ -3621,7 +3621,7 @@ static Standard_Integer DDataStd_GetNDStrings (Draw_Interpretor& di,
       TCollection_AsciiString aStr(aKey,'?');
       TCollection_ExtendedString aVal(itr.Value());
       TCollection_AsciiString aStrValue(aVal,'?');
-      cout << "Key = "  << aStr.ToCString() << " Value = " <<aStrValue.ToCString()<< endl;
+      std::cout << "Key = "  << aStr.ToCString() << " Value = " <<aStrValue.ToCString()<< std::endl;
       }
     return 0; 
   }
@@ -3649,14 +3649,14 @@ static Standard_Integer DDataStd_GetNDString (Draw_Interpretor& di,
       di << "NamedData attribute is not found or not set"  << "\n";
       return 1;}
 
-    cout <<endl;
-    cout <<"NamedData attribute at Label = " << arg[2] <<endl;    
+    std::cout <<std::endl;
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;    
     if(!anAtt->HasString(arg[3])) {
-      cout << "There is no data specified by Key = "<< arg[3]  << endl;
+      std::cout << "There is no data specified by Key = "<< arg[3]  << std::endl;
       return 1;
     } else {
       TCollection_AsciiString aValue (anAtt->GetString(arg[3]), '?');
-      cout << "Key = "  << arg[3]  << " Value = " << aValue.ToCString() << endl;
+      std::cout << "Key = "  << arg[3]  << " Value = " << aValue.ToCString() << std::endl;
       if(nb == 5) 
         Draw::Set(arg[4], aValue.ToCString());
       return 0; 
@@ -3687,7 +3687,7 @@ static Standard_Integer DDataStd_SetNDataBytes (Draw_Interpretor& di,
     if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt))
       anAtt = TDataStd_NamedData::Set(aLabel);
     if(anAtt.IsNull()) {
-      cout << "NamedData attribute is not found or not set"  << endl;
+      std::cout << "NamedData attribute is not found or not set"  << std::endl;
       return 1;}
   
     j = 4;
@@ -3720,17 +3720,17 @@ static Standard_Integer DDataStd_GetNDBytes (Draw_Interpretor& di,
 
     Handle(TDataStd_NamedData) anAtt;
     if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt)) {
-      cout << "NamedData attribute is not found or not set"  << endl;
+      std::cout << "NamedData attribute is not found or not set"  << std::endl;
       return 1;}
-    cout <<endl;
-    cout <<"NamedData attribute at Label = " << arg[2] <<endl;      
+    std::cout <<std::endl;
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;      
     const TDataStd_DataMapOfStringByte& aMap = anAtt->GetBytesContainer();
     TDataStd_DataMapIteratorOfDataMapOfStringByte itr(aMap);
     for (; itr.More(); itr.Next()){
       TCollection_ExtendedString aKey(itr.Key());
       TCollection_AsciiString aStr(aKey,'?');
       Standard_Byte aValue = itr.Value();
-      cout << "Key = "  << aStr.ToCString() << " Value = " <<aValue<<endl;
+      std::cout << "Key = "  << aStr.ToCString() << " Value = " <<aValue<<std::endl;
       }
     return 0; 
   }
@@ -3755,16 +3755,16 @@ static Standard_Integer DDataStd_GetNDByte (Draw_Interpretor& di,
 
     Handle(TDataStd_NamedData) anAtt;
     if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt)) {
-      cout << "NamedData attribute is not found or not set"  << endl;
+      std::cout << "NamedData attribute is not found or not set"  << std::endl;
       return 1;}
 
-    cout <<endl;
-    cout <<"NamedData attribute at Label = " << arg[2] <<endl;      
+    std::cout <<std::endl;
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;      
     if(!anAtt->HasByte(arg[3])) {
-      cout << "There is no data specified by Key = "<< arg[3]  << endl;
+      std::cout << "There is no data specified by Key = "<< arg[3]  << std::endl;
       return 1;
     } else {
-      cout << "Key = "  << arg[3]  << " Value = " <<anAtt->GetByte(arg[3])<< endl;
+      std::cout << "Key = "  << arg[3]  << " Value = " <<anAtt->GetByte(arg[3])<< std::endl;
       if(nb == 5) 
         Draw::Set(arg[4], anAtt->GetByte(arg[3]));
       return 0; 
@@ -3797,7 +3797,7 @@ static Standard_Integer DDataStd_SetNDataIntAr (Draw_Interpretor& di,
     if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt))
       anAtt = TDataStd_NamedData::Set(aLabel);
     if(anAtt.IsNull()) {
-      cout<< "NamedData attribute is not found or not set"  << endl;
+      std::cout<< "NamedData attribute is not found or not set"  << std::endl;
       return 1;}
   
     j = 5;
@@ -3832,26 +3832,26 @@ static Standard_Integer DDataStd_GetNDIntArrays (Draw_Interpretor& di,
     
     Handle(TDataStd_NamedData) anAtt;
     if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt)) {
-      cout << "NamedData attribute is not found or not set"  << endl;
+      std::cout << "NamedData attribute is not found or not set"  << std::endl;
       return 1;}
-    cout <<endl;
-    cout <<"NamedData attribute at Label = " << arg[2] <<endl;      
+    std::cout <<std::endl;
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;      
     const TDataStd_DataMapOfStringHArray1OfInteger& aMap = anAtt->GetArraysOfIntegersContainer();
     TDataStd_DataMapIteratorOfDataMapOfStringHArray1OfInteger itr(aMap);
     for (; itr.More(); itr.Next()){
       TCollection_ExtendedString aKey(itr.Key());
       TCollection_AsciiString aStr(aKey,'?');
-      cout << "Key = "  << aStr.ToCString()<< endl;
+      std::cout << "Key = "  << aStr.ToCString()<< std::endl;
       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);
-          cout << "\tValue("<<i<<") = " <<aValue<<endl;
+          std::cout << "\tValue("<<i<<") = " <<aValue<<std::endl;
         }
       } else 
-        cout << "\tthe specified array is Null "<<endl;
+        std::cout << "\tthe specified array is Null "<<std::endl;
     }
     return 0; 
   }
@@ -3876,16 +3876,16 @@ static Standard_Integer DDataStd_GetNDIntArray (Draw_Interpretor& di,
 
     Handle(TDataStd_NamedData) anAtt;
     if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt)) {
-      cout << "NamedData attribute is not found or not set"  << endl;
+      std::cout << "NamedData attribute is not found or not set"  << std::endl;
       return 1;}
 
-    cout <<endl;
-    cout <<"NamedData attribute at Label = " << arg[2] <<endl;      
+    std::cout <<std::endl;
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;      
     if(!anAtt->HasArrayOfIntegers(arg[3])) {
-      cout << "There is no data specified by Key = "<< arg[3]  << endl;
+      std::cout << "There is no data specified by Key = "<< arg[3]  << std::endl;
       return 1;
     } else {
-      cout << "Key = "  << arg[3] <<endl;
+      std::cout << "Key = "  << arg[3] <<std::endl;
 
       Handle(TColStd_HArray1OfInteger) anArrValue = anAtt->GetArrayOfIntegers(arg[3]);      
       if(!anArrValue.IsNull()) {
@@ -3893,10 +3893,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);
-          cout << "\tValue("<<i<<") = " <<aValue<<endl;
+          std::cout << "\tValue("<<i<<") = " <<aValue<<std::endl;
         }
       } else 
-        cout << "\tthe specified array is Null or not found"<<endl;
+        std::cout << "\tthe specified array is Null or not found"<<std::endl;
       return 0; 
     }
   }
@@ -3927,7 +3927,7 @@ static Standard_Integer DDataStd_SetNDataRealAr (Draw_Interpretor& di,
     if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt))
       anAtt = TDataStd_NamedData::Set(aLabel);
     if(anAtt.IsNull()) {
-      cout << "NamedData attribute is not found or not set"  << endl;
+      std::cout << "NamedData attribute is not found or not set"  << std::endl;
       return 1;}
   
     j = 5;
@@ -3962,26 +3962,26 @@ static Standard_Integer DDataStd_GetNDRealArrays (Draw_Interpretor& di,
     
     Handle(TDataStd_NamedData) anAtt;
     if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt)) {
-      cout << "NamedData attribute is not found or not set"  << endl;
+      std::cout << "NamedData attribute is not found or not set"  << std::endl;
       return 1;}
-    cout <<endl;
-    cout <<"NamedData attribute at Label = " << arg[2] <<endl;      
+    std::cout <<std::endl;
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;      
     const TDataStd_DataMapOfStringHArray1OfReal& aMap = anAtt->GetArraysOfRealsContainer();
     TDataStd_DataMapIteratorOfDataMapOfStringHArray1OfReal itr(aMap);
     for (; itr.More(); itr.Next()){
       TCollection_ExtendedString aKey(itr.Key());
       TCollection_AsciiString aStr(aKey,'?');
-      cout << "Key = "  << aStr.ToCString()<<endl;
+      std::cout << "Key = "  << aStr.ToCString()<<std::endl;
       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);
-          cout << "\tValue("<<i<<") = " <<aValue<<endl;
+          std::cout << "\tValue("<<i<<") = " <<aValue<<std::endl;
         }
       } else 
-        cout << "\tthe specified array is Null "<<endl;
+        std::cout << "\tthe specified array is Null "<<std::endl;
     }
     return 0; 
   }
@@ -4009,13 +4009,13 @@ static Standard_Integer DDataStd_GetNDRealArray (Draw_Interpretor& di,
       di << "NamedData attribute is not found or not set"  << "\n";
       return 1;}
 
-    cout <<endl;
-    cout <<"NamedData attribute at Label = " << arg[2] <<endl;      
+    std::cout <<std::endl;
+    std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;      
     if(!anAtt->HasArrayOfReals(arg[3])) {
-      cout << "There is no data specified by Key = "<< arg[3]  << endl;
+      std::cout << "There is no data specified by Key = "<< arg[3]  << std::endl;
       return 1;
     } else {
-      cout << "Key = "  << arg[3] <<endl;
+      std::cout << "Key = "  << arg[3] <<std::endl;
 
       Handle(TColStd_HArray1OfReal) anArrValue = anAtt->GetArrayOfReals(arg[3]);      
       if(!anArrValue.IsNull()) {
@@ -4023,10 +4023,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);
-          cout << "\tValue("<<i<<") = " <<aValue<<endl;
+          std::cout << "\tValue("<<i<<") = " <<aValue<<std::endl;
         }
       } else 
-        cout << "\tthe specified array is Null or not found"<<endl;
+        std::cout << "\tthe specified array is Null or not found"<<std::endl;
       return 0; 
     }
   }
index 87d139e..4b616c9 100644 (file)
@@ -321,7 +321,7 @@ static Standard_Integer DDataStd_DumpPattern (Draw_Interpretor& di,
     {
 //      Standard_SStream aStream;
 //      CTR->Dump(aStream);
-//      aStream << ends;
+//      aStream << std::ends;
 //      di << aStream.rdbuf()->str();
 
       TCollection_AsciiString S;
index 40ef836..5086445 100644 (file)
@@ -175,7 +175,7 @@ static Standard_Integer DDataStd_DrawDisplay (Draw_Interpretor& di,
 //     DDataStd_DrawPresentation::Display(L,Standard_True);
 //     return 0;
 //   }
-//   cout << "DDataStd_DrawRedisplay : Error" << endl;
+//   std::cout << "DDataStd_DrawRedisplay : Error" << std::endl;
 //   return 1;
 // }
 
index 12472ed..6f99dac 100644 (file)
@@ -201,7 +201,7 @@ Handle(TDF_Attribute) DDataStd_DrawPresentation::NewEmpty() const
 
 void DDataStd_DrawPresentation::Restore (const Handle(TDF_Attribute)& With) 
 {  
-  //cout<< "DDataStd_DrawPresentation::Restore" << endl; 
+  //std::cout<< "DDataStd_DrawPresentation::Restore" << std::endl; 
   isDisplayed = Handle(DDataStd_DrawPresentation)::DownCast (With)->IsDisplayed();
   myDrawable  = Handle(DDataStd_DrawPresentation)::DownCast (With)->GetDrawable();
 }
@@ -225,7 +225,7 @@ void DDataStd_DrawPresentation::Paste (const Handle(TDF_Attribute)& Into,
 
 void DDataStd_DrawPresentation::AfterAddition() 
 { 
-  //cout<< "DDataStd_DrawPresentation::AfterAddition" << endl; 
+  //std::cout<< "DDataStd_DrawPresentation::AfterAddition" << std::endl; 
   //if (isDisplayed)  DrawDisplay ();
 }
 
@@ -236,7 +236,7 @@ void DDataStd_DrawPresentation::AfterAddition()
 
 void DDataStd_DrawPresentation::BeforeRemoval() 
 { 
-  //cout<< "DDataStd_DrawPresentation::BeforeRemoval" << endl; 
+  //std::cout<< "DDataStd_DrawPresentation::BeforeRemoval" << std::endl; 
   //if (isDisplayed)  DrawErase ();
 }
 
@@ -247,7 +247,7 @@ void DDataStd_DrawPresentation::BeforeRemoval()
 
 void DDataStd_DrawPresentation::BeforeForget() 
 { 
-  //cout<< "DDataStd_DrawPresentation::BeforeForget" << endl; 
+  //std::cout<< "DDataStd_DrawPresentation::BeforeForget" << std::endl; 
   if (isDisplayed)  DrawErase (Label(),this);
 }
 
@@ -259,7 +259,7 @@ void DDataStd_DrawPresentation::BeforeForget()
 
 void DDataStd_DrawPresentation::AfterResume() 
 {
-  //cout<< "DDataStd_DrawPresentation::AfterResume"<< endl;
+  //std::cout<< "DDataStd_DrawPresentation::AfterResume"<< std::endl;
   if (isDisplayed) DrawDisplay (Label(),this);
 }
 
@@ -275,28 +275,28 @@ Standard_Boolean DDataStd_DrawPresentation::BeforeUndo (const Handle(TDF_Attribu
   Handle(DDataStd_DrawPresentation) Pdt = Handle(DDataStd_DrawPresentation)::DownCast(AD->Attribute());   
   Handle(DDataStd_DrawPresentation) Pfw;
   if (AD->Label().FindAttribute(GetID(),Pfw)) {  
-    //cout<< "DDataStd_DrawPresentation::BeforeUndo : attribute in framework" << endl;
+    //std::cout<< "DDataStd_DrawPresentation::BeforeUndo : attribute in framework" << std::endl;
   }
   else  {
-    //cout<< "DDataStd_DrawPresentation::BeforeUndo : attribute not in framework" << endl;
+    //std::cout<< "DDataStd_DrawPresentation::BeforeUndo : attribute not in framework" << std::endl;
   }
   //
   if (AD->IsKind(STANDARD_TYPE(TDF_DeltaOnAddition))) {    
-    //cout<< "DDataStd_DrawPresentation::BeforeUndo : delta on addition" << endl;
+    //std::cout<< "DDataStd_DrawPresentation::BeforeUndo : delta on addition" << std::endl;
     if (Pfw->IsDisplayed())  DrawErase(AD->Label(),Pfw);
     //TDF appelle BeforeRemoval effacer
   }
   else if (AD->IsKind(STANDARD_TYPE(TDF_DefaultDeltaOnRemoval))) { 
-    //cout<< "DDataStd_DrawPresentation::BeforeUndo : delta on removal" << endl; 
+    //std::cout<< "DDataStd_DrawPresentation::BeforeUndo : delta on removal" << std::endl; 
   }  
   else if (AD->IsKind(STANDARD_TYPE(TDF_DefaultDeltaOnModification))) {     
-    //cout<< "DDataStd_DrawPresentation::BeforeUndo : delta on modification" << endl; 
+    //std::cout<< "DDataStd_DrawPresentation::BeforeUndo : delta on modification" << std::endl; 
     if (Pfw->IsDisplayed()) DrawErase(AD->Label(),Pfw);
   } 
   else {  
-    //cout<< "DDataStd_DrawPresentation::BeforeUndo : unknown delta" << endl;
+    //std::cout<< "DDataStd_DrawPresentation::BeforeUndo : unknown delta" << std::endl;
   }  
-  //if (Label().IsNull()) cout<< "DDataStd_DrawPresentation::BeforeUndo : null label" << endl;      
+  //if (Label().IsNull()) std::cout<< "DDataStd_DrawPresentation::BeforeUndo : null label" << std::endl;      
   return Standard_True;
 }
 
@@ -313,28 +313,28 @@ Standard_Boolean DDataStd_DrawPresentation::AfterUndo (const Handle(TDF_Attribut
   Handle(DDataStd_DrawPresentation) Pdt = Handle(DDataStd_DrawPresentation)::DownCast(AD->Attribute());   
   Handle(DDataStd_DrawPresentation) Pfw;
   if (AD->Label().FindAttribute(GetID(),Pfw)) {  
-    //cout<< "DDataStd_DrawPresentation::AfterUndo : attribute in framework" << endl;
+    //std::cout<< "DDataStd_DrawPresentation::AfterUndo : attribute in framework" << std::endl;
   }
   else  {
-    //cout<< "DDataStd_DrawPresentation::AfterUndo : attribute not in framework" << endl;
+    //std::cout<< "DDataStd_DrawPresentation::AfterUndo : attribute not in framework" << std::endl;
   }
   
   //
   if (AD->IsKind(STANDARD_TYPE(TDF_DeltaOnAddition))) {
-    //cout<< "DDataStd_DrawPresentation::AfterUndo : delta on addition" << endl;
+    //std::cout<< "DDataStd_DrawPresentation::AfterUndo : delta on addition" << std::endl;
   }
   else if (AD->IsKind(STANDARD_TYPE(TDF_DefaultDeltaOnRemoval))) {  
-    //cout<< "DDataStd_DrawPresentation::AfterUndo : delta on removal" << endl;  
+    //std::cout<< "DDataStd_DrawPresentation::AfterUndo : delta on removal" << std::endl;  
     if (Pdt->IsDisplayed()) DrawDisplay(AD->Label(),Pdt); 
   }  
   else if (AD->IsKind(STANDARD_TYPE(TDF_DefaultDeltaOnModification))) {     
-    //cout<< "DDataStd_DrawPresentation::AfterUndo : delta on modification" << endl;
+    //std::cout<< "DDataStd_DrawPresentation::AfterUndo : delta on modification" << std::endl;
     if (Pdt->IsDisplayed()) DrawDisplay(AD->Label(),Pdt);
   }
   else {
-    //cout<< "DDataStd_DrawPresentation::AfterUndo : unknown delta" << endl;  
+    //std::cout<< "DDataStd_DrawPresentation::AfterUndo : unknown delta" << std::endl;  
   }  
-  //if (Label().IsNull()) cout<< "DDataStd_DrawPresentation::AfterUndo : null label" << endl;   
+  //if (Label().IsNull()) std::cout<< "DDataStd_DrawPresentation::AfterUndo : null label" << std::endl;   
   return Standard_True;
 }
 
@@ -347,14 +347,14 @@ Standard_Boolean DDataStd_DrawPresentation::AfterUndo (const Handle(TDF_Attribut
 
 void DDataStd_DrawPresentation::DrawBuild ()
 {   
-  //cout<< "DDataStd_DrawPresentation::DrawBuild" << endl;     
+  //std::cout<< "DDataStd_DrawPresentation::DrawBuild" << std::endl;     
   Handle(DDataStd_DrawDriver) DD = DDataStd_DrawDriver::Get();
   if (DD.IsNull()) {
     DD = new DDataStd_DrawDriver ();
     DDataStd_DrawDriver::Set(DD);
   }
   Handle(Draw_Drawable3D) D3D = DD->Drawable(Label()); 
-  if (D3D.IsNull()) cout<< "DDataStd_DrawPresentation::DrawBuild : null drawable" << endl;
+  if (D3D.IsNull()) std::cout<< "DDataStd_DrawPresentation::DrawBuild : null drawable" << std::endl;
   myDrawable = D3D;
 }
 
@@ -377,11 +377,11 @@ void DDataStd_DrawPresentation::DrawDisplay (const TDF_Label& L,
       return;
     }
     else {    
-      //cout<< "DDataStd_DrawPresentation::DrawDisplay : null Drawable" << endl;
+      //std::cout<< "DDataStd_DrawPresentation::DrawDisplay : null Drawable" << std::endl;
       return;
     }
   }
-  cout<< "DDataStd_DrawPresentation::DrawDisplay : null Label" << endl;
+  std::cout<< "DDataStd_DrawPresentation::DrawDisplay : null Label" << std::endl;
 }
 
 //=======================================================================
@@ -398,11 +398,11 @@ void DDataStd_DrawPresentation::DrawErase (const TDF_Label& L,
       return;
     }    
     else {
-      //cout<< "DDataStd_DrawPresentation::DrawErase : null Drawable" << endl;
+      //std::cout<< "DDataStd_DrawPresentation::DrawErase : null Drawable" << std::endl;
       return;
     }
   }
-  cout<< "DDataStd_DrawPresentation::DrawErase : null Label" << endl;
+  std::cout<< "DDataStd_DrawPresentation::DrawErase : null Label" << std::endl;
 }
 
 
index af77e4d..17dd1bc 100644 (file)
@@ -98,12 +98,12 @@ static Standard_Integer DDataStd_GetName (Draw_Interpretor& di,
        }
        Handle(TDataStd_Name) N;          
        if( !L.FindAttribute(aGuid, N) ) {
-      cout << "Name attribute is not found or not set"  << endl;
+      std::cout << "Name attribute is not found or not set"  << std::endl;
          return 1;
        }
 #ifdef DEB_DDataStd
        if(!N.IsNull()) 
-      cout << "String = " << TCollection_AsciiString(N->Get(), '?').ToCString()  << endl;
+      std::cout << "String = " << TCollection_AsciiString(N->Get(), '?').ToCString()  << std::endl;
 #endif
     di << N->Get();
     return 0;
index c8c3046..46e0e06 100644 (file)
@@ -60,7 +60,7 @@ DDataStd_TreeBrowser::DDataStd_TreeBrowser(const TDF_Label& aLabel)
 //=======================================================================
 
 void DDataStd_TreeBrowser::DrawOn(Draw_Display& /*dis*/) const
-{ cout<<"DDataStd_TreeBrowser"<<endl; }
+{ std::cout<<"DDataStd_TreeBrowser"<<std::endl; }
 
 
 //=======================================================================
@@ -79,7 +79,7 @@ Handle(Draw_Drawable3D) DDataStd_TreeBrowser::Copy() const
 
 void DDataStd_TreeBrowser::Dump(Standard_OStream& S) const
 {
-  S<<"DDataStd_TreeBrowser on a label: "<<endl;
+  S<<"DDataStd_TreeBrowser on a label: "<<std::endl;
   S<<myRoot;
 }
 
index 615ba5d..1619ca4 100644 (file)
@@ -461,11 +461,11 @@ static Standard_Integer DDataStd_ChildNodeMore (Draw_Interpretor& di,
                                                const char**            /*a*/)
 {
   if (cni.More()) {
-    //cout<<"TRUE"<<endl;
+    //std::cout<<"TRUE"<<std::endl;
     di<<"TRUE\n";
   }
   else {
-    //cout<<"FALSE"<<endl;
+    //std::cout<<"FALSE"<<std::endl;
     di<<"FALSE\n";  
   }
   return 0;
@@ -508,7 +508,7 @@ static Standard_Integer DDataStd_ChildNodeValue (Draw_Interpretor& di,
 {
   TCollection_AsciiString entry;
   TDF_Tool::Entry(cni.Value()->Label(), entry);
-  //cout<<entry<<endl;
+  //std::cout<<entry<<std::endl;
   di  <<entry<<"\n";
   return 0;
 }  
index a788791..acc52db 100644 (file)
@@ -73,7 +73,7 @@ Standard_Boolean DDocStd::GetDocument (Standard_CString&         Name,
 {
   Handle(DDocStd_DrawDocument) DD = Handle(DDocStd_DrawDocument)::DownCast (Draw::GetExisting (Name));
   if (DD.IsNull()) {
-    if (Complain) cout << Name << " is not a Document" << endl; 
+    if (Complain) std::cout << Name << " is not a Document" << std::endl; 
     return Standard_False;
   }
   Handle(TDocStd_Document) STDDOC = DD->GetDocument();
@@ -81,7 +81,7 @@ Standard_Boolean DDocStd::GetDocument (Standard_CString&         Name,
     DOC = STDDOC;
     return Standard_True;
   }
-  if (Complain) cout << Name << " is not a CAF Document" << endl; 
+  if (Complain) std::cout << Name << " is not a CAF Document" << std::endl; 
   return Standard_False;
 }
 
@@ -98,7 +98,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) cout<<"No label for entry "<<Entry<<endl;
+  if (Label.IsNull() && Complain) std::cout<<"No label for entry "<<Entry<<std::endl;
   return !Label.IsNull();
 }
 
@@ -116,7 +116,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) cout <<"attribute not found for entry : "<< Entry <<endl; 
+    if (Complain) std::cout <<"attribute not found for entry : "<< Entry <<std::endl; 
   }
   return Standard_False;   
 }
index c7842ff..955338a 100644 (file)
@@ -66,8 +66,8 @@ static Standard_Integer DDocStd_ListDocuments (Draw_Interpretor& di,
       if (D->IsSaved()) {
        TCollection_AsciiString GetNameAsciiString(D->GetName().ToExtString(),'?');
        TCollection_AsciiString GetPathAsciiString(D->GetPath().ToExtString(),'?');
-       //cout << " name : " << D->GetName();
-       //cout << " path : " << D->GetPath();
+       //std::cout << " name : " << D->GetName();
+       //std::cout << " path : " << D->GetPath();
        di << " name : " << GetNameAsciiString.ToCString();
        di << " path : " << GetPathAsciiString.ToCString();
       }
@@ -411,10 +411,10 @@ static Standard_Integer DDocStd_Path (Draw_Interpretor& di,
 {   
   if (nb == 2) { 
     TDocStd_PathParser path (a[1]);
-    //cout << "Trek      : " << path.Trek() << endl;  
-    //cout << "Name      : " << path.Name() << endl; 
-    //cout << "Extension : " << path.Extension() << endl;
-    //cout << "Path      : " << path.Path() << endl;
+    //std::cout << "Trek      : " << path.Trek() << std::endl;  
+    //std::cout << "Name      : " << path.Name() << std::endl; 
+    //std::cout << "Extension : " << path.Extension() << std::endl;
+    //std::cout << "Path      : " << path.Path() << std::endl;
     TCollection_AsciiString TrekAsciiString(path.Trek().ToExtString(),'?');
     TCollection_AsciiString NameAsciiString(path.Name().ToExtString(),'?');
     TCollection_AsciiString ExtensionAsciiString(path.Extension().ToExtString(),'?');
@@ -467,7 +467,7 @@ static Standard_Integer DDocStd_PrintComments (Draw_Interpretor& di,
 
     for (int i = 1; i <= comments.Length(); i++)
     {
-      //cout << comments(i) << endl;
+      //std::cout << comments(i) << std::endl;
       TCollection_AsciiString commentAsciiString(comments(i).ToExtString(),'?');
       di << commentAsciiString.ToCString() << "\n";
     }
index 6314691..4e16dc7 100644 (file)
@@ -79,7 +79,7 @@ static Standard_Integer DDocStd_Format (Draw_Interpretor& di,Standard_Integer n,
   Handle(TDocStd_Document) D;
   if (n == 2) {
     if (!DDocStd::GetDocument(a[1],D)) return 1;    
-    //cout << "FORMAT : " << D->StorageFormat() << endl;
+    //std::cout << "FORMAT : " << D->StorageFormat() << std::endl;
     di << "FORMAT : ";
     Standard_SStream aStream;
     D->StorageFormat().Print(aStream);
@@ -316,7 +316,7 @@ static Standard_Integer DDocStd_DumpDocument (Draw_Interpretor& di,
       di << "DOCUMENT      : not saved";
     di << "\n";
     // format
-    //cout << "FORMAT        : " << D->StorageFormat();
+    //std::cout << "FORMAT        : " << D->StorageFormat();
     di << "FORMAT        : ";
     Standard_SStream aStream;
     D->StorageFormat().Print(aStream);
@@ -332,11 +332,11 @@ static Standard_Integer DDocStd_DumpDocument (Draw_Interpretor& di,
     di << " undos :" << D->GetAvailableUndos() << " ";  
     di << " redos :" << D->GetAvailableRedos(); 
     di << "\n";
-    // cout << "CURRENT :";   
+    // std::cout << "CURRENT :";   
     //     TCollection_AsciiString string;  
     //     TDF_Tool::Entry(D->CurrentLabel(),string); 
-    //     cout << string;
-    //     cout << endl;
+    //     std::cout << string;
+    //     std::cout << std::endl;
     // modified  
     di << "MODIFIED      : ";
     if (D->IsModified()) di << "true";
@@ -392,12 +392,12 @@ static Standard_Integer DDocStd_Propagate (Draw_Interpretor& di,Standard_Integer
 //     Handle(TDocStd_Document) D;
 //     if (!DDocStd::GetDocument(a[1],D)) return 1;
 //     if (D->IsValid()) {
-//       cout << "the document is valid" << endl;
+//       std::cout << "the document is valid" << std::endl;
 //       return 0;
 //     }
 //     Handle(TDesign_Function) F; 
 //     if (!D->Main().FindAttribute(TDesign_Function::GetID(),F)) {
-//       cout << "no function found at main" << endl;
+//       std::cout << "no function found at main" << std::endl;
 //       return 0;
 //     }
 //     TFunction_Logbook mdf (Standard_True);   
index 51794e2..e8c1bf5 100644 (file)
@@ -89,7 +89,7 @@ void DDocStd_DrawDocument::Dump (Standard_OStream& S) const
     DDF_Data::Dump(S);
   }
   else {  
-    S << myDocument->DynamicType()->Name() << " is not a CAF document" << endl;
+    S << myDocument->DynamicType()->Name() << " is not a CAF document" << std::endl;
   }
 }
 
index 47afb7e..9703ba8 100644 (file)
@@ -142,7 +142,7 @@ static int mtmDump (Draw_Interpretor& di, int /*n*/, const char** /*a*/)
     return 1;
   }
   di <<         "*** Dump of MTM ***\n";
-  //sMultiTransactionManager->DumpTransaction(cout);
+  //sMultiTransactionManager->DumpTransaction(std::cout);
   Standard_SStream aStream;
   sMultiTransactionManager->DumpTransaction(aStream);
   di << aStream;
index 046f378..9fca99f 100644 (file)
@@ -133,7 +133,7 @@ TopoDS_Shape DNaming::CurrentShape (const Standard_CString  LabelName,
   Standard_Boolean Found =  DDF::AddLabel (DF, LabelName, Label);
   if (!Found) {
 #ifdef OCCT_DEBUG
-    cout <<"no labels"<<endl;
+    std::cout <<"no labels"<<std::endl;
 #endif
     return S;
   }
@@ -143,7 +143,7 @@ TopoDS_Shape DNaming::CurrentShape (const Standard_CString  LabelName,
     S =  TNaming_Tool::CurrentShape(NS);
     if (S.IsNull())
 #ifdef OCCT_DEBUG
-      cout <<"current shape from "<< LabelName <<" is deleted"<<endl;
+      std::cout <<"current shape from "<< LabelName <<" is deleted"<<std::endl;
 #endif
     return S;
   }
@@ -895,7 +895,7 @@ Standard_Boolean DNaming::ComputeSweepDir (const TopoDS_Shape& theShape,
     Handle(Geom_Surface) aSurf = BRep_Tool::Surface(TopoDS::Face(theShape));
 #ifdef OCCT_DEBUG
     Standard_CString s = aSurf->DynamicType()->Name();
-    cout<<"Surface Dynamic TYPE = "<<s<<endl;
+    std::cout<<"Surface Dynamic TYPE = "<<s<<std::endl;
 #endif
     if (aSurf->DynamicType() == STANDARD_TYPE(Geom_RectangularTrimmedSurface)) 
       aSurf = Handle(Geom_RectangularTrimmedSurface)::DownCast (aSurf)->BasisSurface();
index 788ecf3..68fcad9 100644 (file)
@@ -286,7 +286,7 @@ static Standard_Integer Exploreshape (Draw_Interpretor& di, Standard_Integer n,
     return 0;
   }
 
-  //TNaming::Print(NS->Evolution(),cout);
+  //TNaming::Print(NS->Evolution(),std::cout);
   Standard_SStream aStream;
   TNaming::Print(NS->Evolution(),aStream);
   di << aStream << "\n";
@@ -461,7 +461,7 @@ static Standard_Integer DNaming_ImportShape (Draw_Interpretor& di,
     DDF::ReturnLabel(di, L);
     return 0;
   }
-  cout << "DNaming_NewShape : Error" << endl;
+  std::cout << "DNaming_NewShape : Error" << std::endl;
   return 1;  
 }
 //=======================================================================
index 2197faf..6f6db1d 100644 (file)
@@ -109,7 +109,7 @@ Standard_Integer DNaming_BooleanOperationDriver::Execute(Handle(TFunction_Logboo
   aLab.FindAttribute(TNaming_NamedShape::GetID(), anObjectNS);
   if (anObjectNS.IsNull() || anObjectNS->IsEmpty()) {
 #ifdef OCCT_DEBUG
-    cout<<"BooleanOperationDriver:: Object is empty"<<endl;
+    std::cout<<"BooleanOperationDriver:: Object is empty"<<std::endl;
 #endif
     aFunction->SetFailure(WRONG_ARGUMENT);
     return -1;
@@ -120,7 +120,7 @@ Standard_Integer DNaming_BooleanOperationDriver::Execute(Handle(TFunction_Logboo
 
   if (aToolNS.IsNull() || aToolNS->IsEmpty()) {
 #ifdef OCCT_DEBUG
-    cout<<"BooleanOperationDriver:: Tool is empty"<<endl;
+    std::cout<<"BooleanOperationDriver:: Tool is empty"<<std::endl;
 #endif
     aFunction->SetFailure(WRONG_ARGUMENT);
     return -1;
@@ -130,7 +130,7 @@ Standard_Integer DNaming_BooleanOperationDriver::Execute(Handle(TFunction_Logboo
   TopoDS_Shape anOBJECT = anObjectNS->Get();
   if (aTOOL.IsNull() || anOBJECT.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout<<"BooleanOperationDriver:: Tool is null"<<endl;
+    std::cout<<"BooleanOperationDriver:: Tool is null"<<std::endl;
 #endif
     aFunction->SetFailure(WRONG_ARGUMENT);
     return -1;
@@ -267,7 +267,7 @@ void DNaming_BooleanOperationDriver::LoadNamingDS (const TDF_Label& theResultLab
   const TopoDS_Shape& ToolSh = MS.Shape2();
  if (ResSh.IsNull()) {
 #ifdef OCCT_DEBUG
-   cout<<"LoadFuseNamingDS: The result of the boolean operation is null"<<endl;
+   std::cout<<"LoadFuseNamingDS: The result of the boolean operation is null"<<std::endl;
 #endif
     return;
   }
@@ -342,7 +342,7 @@ void DNaming_BooleanOperationDriver::LoadSectionNDS (const TDF_Label& theResultL
   const TopoDS_Shape& ToolSh = MS.Shape2();
  if (ResSh.IsNull()) {
 #ifdef OCCT_DEBUG
-   cout<<"LoadSectionNamingDS: The result of the boolean operation is null"<<endl;
+   std::cout<<"LoadSectionNamingDS: The result of the boolean operation is null"<<std::endl;
 #endif
     return;
   }
index 3ea9721..6824f13 100644 (file)
@@ -83,7 +83,7 @@ Standard_Integer DNaming_CylinderDriver::Execute(Handle(TFunction_Logbook)& theL
   Handle(TNaming_NamedShape) aNSAxis = DNaming::GetObjectValue(anObject);
   if (aNSAxis->IsEmpty()) {
 #ifdef OCCT_DEBUG
-    cout<<"CylinderDriver:: Axis is empty"<<endl;
+    std::cout<<"CylinderDriver:: Axis is empty"<<std::endl;
 #endif
     aFunction->SetFailure(WRONG_AXIS);
     return -1;
@@ -91,7 +91,7 @@ Standard_Integer DNaming_CylinderDriver::Execute(Handle(TFunction_Logbook)& theL
   TopoDS_Shape aTopoDSAxis = aNSAxis->Get();
   if (aTopoDSAxis.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout<<"CylinderDriver:: Axis is null"<<endl;
+    std::cout<<"CylinderDriver:: Axis is null"<<std::endl;
 #endif
     aFunction->SetFailure(WRONG_AXIS);
     return -1;
@@ -99,7 +99,7 @@ Standard_Integer DNaming_CylinderDriver::Execute(Handle(TFunction_Logbook)& theL
   // Creation of gp axis (gp_Ax2):
   if (aTopoDSAxis.ShapeType() != TopAbs_EDGE && aTopoDSAxis.ShapeType() != TopAbs_WIRE) {
 #ifdef OCCT_DEBUG
-    cout<<"CylinderDriver:: Wrong axis, ShapeType = " << aTopoDSAxis.ShapeType() <<endl;
+    std::cout<<"CylinderDriver:: Wrong axis, ShapeType = " << aTopoDSAxis.ShapeType() <<std::endl;
 #endif    
     aFunction->SetFailure(WRONG_AXIS);
     return -1;
@@ -123,7 +123,7 @@ Standard_Integer DNaming_CylinderDriver::Execute(Handle(TFunction_Logbook)& theL
     }
   } else {
 #ifdef OCCT_DEBUG
-    cout<<"CylinderDriver:: I don't support wires for a while"<<endl;
+    std::cout<<"CylinderDriver:: I don't support wires for a while"<<std::endl;
 #endif    
     aFunction->SetFailure(WRONG_AXIS);
     return -1;
index bdaddae..dc10b47 100644 (file)
@@ -83,7 +83,7 @@ Standard_Integer DNaming_FilletDriver::Execute(Handle(TFunction_Logbook)& theLog
   aLab.FindAttribute(TNaming_NamedShape::GetID(), aContextNS);
   if (aContextNS.IsNull() || aContextNS->IsEmpty()) {
 #ifdef OCCT_DEBUG
-    cout<<"FilletDriver:: Context is empty"<<endl;
+    std::cout<<"FilletDriver:: Context is empty"<<std::endl;
 #endif
     aFunction->SetFailure(WRONG_ARGUMENT);
     return -1;
@@ -96,7 +96,7 @@ Standard_Integer DNaming_FilletDriver::Execute(Handle(TFunction_Logbook)& theLog
   if(aRadius < Precision::Confusion()) {
     aFunction->SetFailure(WRONG_ARGUMENT);
 #ifdef OCCT_DEBUG
-    cout << "FilletDriver:: Radius < Precision::Confusion" << endl;
+    std::cout << "FilletDriver:: Radius < Precision::Confusion" << std::endl;
 #endif
     return -1;
   }
@@ -106,7 +106,7 @@ Standard_Integer DNaming_FilletDriver::Execute(Handle(TFunction_Logbook)& theLog
   Handle(TNaming_NamedShape) aPathNS = DNaming::GetObjectValue(aPathObj);
   if (aPathNS.IsNull() || aPathNS->IsEmpty()) {
 #ifdef OCCT_DEBUG
-    cout<<"FilletDriver:: Path is empty"<<endl;
+    std::cout<<"FilletDriver:: Path is empty"<<std::endl;
 #endif
     aFunction->SetFailure(WRONG_ARGUMENT);
     return -1;
@@ -116,7 +116,7 @@ Standard_Integer DNaming_FilletDriver::Execute(Handle(TFunction_Logbook)& theLog
   TopoDS_Shape aCONTEXT = aContextNS->Get();
   if (aPATH.IsNull() || aCONTEXT.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout<<"FilletDriver:: Path or Context is null"<<endl;
+    std::cout<<"FilletDriver:: Path or Context is null"<<std::endl;
 #endif
     aFunction->SetFailure(WRONG_ARGUMENT);
     return -1;
index 1b63152..70cfad1 100644 (file)
@@ -120,16 +120,16 @@ Standard_Integer DNaming_Line3DDriver::Execute(Handle(TFunction_Logbook)& theLog
       aShape1 = aNS1->Get();
       const gp_Pnt aDebPoint = BRep_Tool::Pnt(TopoDS::Vertex(aShape1));
       (void )aDebPoint;
-      //       cout << aCounter << " X = " <<  aDebPoint.X() << " Y = " <<  aDebPoint.Y() << " Z = " <<  aDebPoint.Z() << endl;
+      //       std::cout << aCounter << " X = " <<  aDebPoint.X() << " Y = " <<  aDebPoint.Y() << " Z = " <<  aDebPoint.Z() << std::endl;
     } else
-      cout << " Line3DDriver:: NS1 is empty" << endl;
+      std::cout << " Line3DDriver:: NS1 is empty" << std::endl;
     if(!aNS2->IsEmpty()) {
       aShape2 = aNS2->Get();
       const gp_Pnt aDebPoint = BRep_Tool::Pnt(TopoDS::Vertex(aShape2));
       (void )aDebPoint;
-      //      cout << aCounter+1 << " X = " <<  aDebPoint.X() << " Y = " <<  aDebPoint.Y() << " Z = " <<  aDebPoint.Z() << endl;
+      //      std::cout << aCounter+1 << " X = " <<  aDebPoint.X() << " Y = " <<  aDebPoint.Y() << " Z = " <<  aDebPoint.Z() << std::endl;
     } else
-      cout << " Line3DDriver:: NS2 is empty" << endl;
+      std::cout << " Line3DDriver:: NS2 is empty" << std::endl;
 #endif
     if(aNS1->IsEmpty() || aNS2->IsEmpty() || 
        aNS1->Get().IsNull() || aNS2->Get().IsNull()) {
@@ -141,8 +141,8 @@ Standard_Integer DNaming_Line3DDriver::Execute(Handle(TFunction_Logbook)& theLog
 #ifdef OCCT_DEBUG
     const gp_Pnt aDebPoint1 = BRep_Tool::Pnt(TopoDS::Vertex(aShape1));
     const gp_Pnt aDebPoint2 = BRep_Tool::Pnt(TopoDS::Vertex(aShape2));
-    //      cout << aCounter   << " X = " <<  aDebPoint1.X() << " Y = " <<  aDebPoint1.Y() << " Z = " <<  aDebPoint1.Z() << endl;
-    //      cout << aCounter+1 << " X = " <<  aDebPoint2.X() << " Y = " <<  aDebPoint2.Y() << " Z = " <<  aDebPoint2.Z() << endl;
+    //      std::cout << aCounter   << " X = " <<  aDebPoint1.X() << " Y = " <<  aDebPoint1.Y() << " Z = " <<  aDebPoint1.Z() << std::endl;
+    //      std::cout << aCounter+1 << " X = " <<  aDebPoint2.X() << " Y = " <<  aDebPoint2.Y() << " Z = " <<  aDebPoint2.Z() << std::endl;
     (void )aDebPoint1;
     (void )aDebPoint2;
 #endif 
index bdd474e..b2315d3 100644 (file)
@@ -198,7 +198,7 @@ static Handle(TFunction_Driver) GetDriver(const TCollection_AsciiString& name)
   else if(name == "Section") 
     aDrv = new DNaming_BooleanOperationDriver();
   else 
-    cout << "the specified driver is not supported" <<endl;
+    std::cout << "the specified driver is not supported" <<std::endl;
   return aDrv;
 }
 //=======================================================================
@@ -219,13 +219,13 @@ static Standard_Integer DNaming_AddDriver (Draw_Interpretor& /*theDI*/,
       if(!GetFuncGUID(theArg[i],drvGUID)) continue;      
       aFunctionDrvTable->AddDriver(drvGUID, GetDriver(theArg[i]));
 #ifdef OCCT_DEBUG
-      cout << "DNaming_AddDriver : " << theArg[i] << " driver is added" <<endl;
+      std::cout << "DNaming_AddDriver : " << theArg[i] << " driver is added" <<std::endl;
 #endif
     }
     return 0;
   }
 #ifdef OCCT_DEBUG
-  cout << "DNaming_AddDriver : Error" << endl;
+  std::cout << "DNaming_AddDriver : Error" << std::endl;
 #endif
   return 1;  
 }
@@ -333,7 +333,7 @@ static Standard_Integer DNaming_AddBox (Draw_Interpretor& theDI,
     DDF::ReturnLabel(theDI, anObj->Label());
     return 0;
   }
-  cout << "DNaming_AddBox : Error" << endl;
+  std::cout << "DNaming_AddBox : Error" << std::endl;
   return 1;  
 }
 
@@ -385,7 +385,7 @@ static Standard_Integer DNaming_BoxDX (Draw_Interpretor& theDI,
       return 0;
     }
   }
-  cout << "DNaming_BoxDX : Error" << endl;
+  std::cout << "DNaming_BoxDX : Error" << std::endl;
   return 1;  
 }
 
@@ -418,7 +418,7 @@ static Standard_Integer DNaming_BoxDY (Draw_Interpretor& theDI,
       return 0;
     }
   }
-  cout << "DNaming_BoxDY : Error" << endl;
+  std::cout << "DNaming_BoxDY : Error" << std::endl;
   return 1;  
 }
 
@@ -451,7 +451,7 @@ static Standard_Integer DNaming_BoxDZ (Draw_Interpretor& theDI,
       return 0;
     }
   }
-  cout << "DNaming_BoxDZ : Error" << endl;
+  std::cout << "DNaming_BoxDZ : Error" << std::endl;
   return 1;  
 }
 
@@ -498,7 +498,7 @@ static Standard_Integer DNaming_SolveFlatFrom (Draw_Interpretor& /*theDI*/,
     TCollection_AsciiString entry;   
     TDF_Tool::Entry(FatherLab, entry);
 #ifdef OCCT_DEBUG
-    cout << "DNaming_SolveFlatFrom: Father label = " << entry << endl;
+    std::cout << "DNaming_SolveFlatFrom: Father label = " << entry << std::endl;
 #endif
     Handle(TFunction_Logbook) logbook = TFunction_Logbook::Set(FatherLab);
     Standard_Boolean found(Standard_False);
@@ -515,7 +515,7 @@ static Standard_Integer DNaming_SolveFlatFrom (Draw_Interpretor& /*theDI*/,
       Handle(TFunction_Function) aFun;
       funLabel.FindAttribute(TFunction_Function::GetID(), aFun);
       if(aFun.IsNull()) {
-       cout << "DNaming_SolveFlatFrom:: Null function is found!" << endl;
+       std::cout << "DNaming_SolveFlatFrom:: Null function is found!" << std::endl;
        continue;
       } 
       else {
@@ -525,21 +525,21 @@ static Standard_Integer DNaming_SolveFlatFrom (Draw_Interpretor& /*theDI*/,
       logbook->Clear();
          Standard_Integer aRes = ComputeFunction(aFun, logbook);
          if(aRes != 0) {
-           cout << "DNaming_SolveFlatFrom: Driver failed at label = " << entry << endl;
+           std::cout << "DNaming_SolveFlatFrom: Driver failed at label = " << entry << std::endl;
            return 1;
          }
 #ifdef OCCT_DEBUG
-         cout <<"DNaming_SolveFlatFrom : function from label " << entry << " is recomputed" << endl;
+         std::cout <<"DNaming_SolveFlatFrom : function from label " << entry << " is recomputed" << std::endl;
 #endif
        } catch (EXCEPTION) {
-         cout <<"DNaming_SolveFlatFrom : Exception computing function at label " << entry << endl;
+         std::cout <<"DNaming_SolveFlatFrom : Exception computing function at label " << entry << std::endl;
        }
       }
     }
     return 0;
   }   
  ERR:
-  cout << "DNaming_SolveFlatFrom : Error" << endl;
+  std::cout << "DNaming_SolveFlatFrom : Error" << std::endl;
   return 1;  
 }
 
@@ -558,18 +558,18 @@ static Standard_Integer DNaming_InitLogBook (Draw_Interpretor& /*theDI*/,
     Handle(TFunction_Logbook) logbook = TFunction_Logbook::Set(aDoc->Main());
     if(logbook->IsEmpty()) {
 #ifdef OCCT_DEBUG
-      cout << "DNaming_InitLogBook : is empty" <<endl;
+      std::cout << "DNaming_InitLogBook : is empty" <<std::endl;
 #endif
     }
     else {
       logbook->Clear();
 #ifdef OCCT_DEBUG
-      cout << "DNaming_InitLogBook : cleaned" <<endl;
+      std::cout << "DNaming_InitLogBook : cleaned" <<std::endl;
 #endif
     }
     return 0;
   }
-  cout << "DNaming_InitLogBook : Error - No document ==> " <<theNb <<endl;
+  std::cout << "DNaming_InitLogBook : Error - No document ==> " <<theNb <<std::endl;
   return 1;  
 }
 
@@ -587,20 +587,20 @@ 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())
-      cout << "DNaming_CheckLogBook : is empty" <<endl;
+      std::cout << "DNaming_CheckLogBook : is empty" <<std::endl;
     else {
       const TDF_LabelMap& aMap = logbook->GetValid();
       TDF_MapIteratorOfLabelMap it(aMap);
       TCollection_AsciiString entry;
-      cout << "DNaming_CheckLogBook : LogBook current state:" <<endl;
+      std::cout << "DNaming_CheckLogBook : LogBook current state:" <<std::endl;
       for (;it.More();it.Next()) {
        TDF_Tool::Entry(it.Key(), entry);
-       cout << entry <<endl;
+       std::cout << entry <<std::endl;
       }
     }
     return 0;
   }
-  cout << "DNaming_CheckLogBook : Error - No document ==> " <<theNb <<endl;
+  std::cout << "DNaming_CheckLogBook : Error - No document ==> " <<theNb <<std::endl;
   return 1;  
 }
 
@@ -626,16 +626,16 @@ static Standard_Integer DNaming_ComputeFun (Draw_Interpretor& /*theDI*/,
       Handle(TFunction_Logbook) logbook = TFunction_Logbook::Set(funLabel);
       Standard_Integer aRes = ComputeFunction(aFun, logbook);
       if(aRes != 0) {
-        cout << "DNaming_ComputeFun : No Driver or Driver failed" << endl;
+        std::cout << "DNaming_ComputeFun : No Driver or Driver failed" << std::endl;
         return 1;
        }
 #ifdef OCCT_DEBUG
-      cout <<"DNaming_ComputeFun : function from label " << theArg[2] << " is recomputed" << endl;
+      std::cout <<"DNaming_ComputeFun : function from label " << theArg[2] << " is recomputed" << std::endl;
 #endif
       return 0;
     }
   }
-  cout << "DNaming_ComputeFun : Error" << endl;
+  std::cout << "DNaming_ComputeFun : Error" << std::endl;
   return 1;  
 }
 
@@ -689,7 +689,7 @@ static Standard_Integer DNaming_AttachShape (Draw_Interpretor& di,
          Handle(TNaming_NamedShape) aCont =  DNaming::GetObjectValue(aContext);
 #ifdef OCCT_DEBUG
          if(aCont.IsNull() || aCont->IsEmpty())
-           cout <<"Wrong Context ..." <<endl;
+           std::cout <<"Wrong Context ..." <<std::endl;
 #endif
          try{
            TopoDS_Shape aCONTEXT = aCont->Get();       
@@ -698,14 +698,14 @@ static Standard_Integer DNaming_AttachShape (Draw_Interpretor& di,
              return 1;
          }
           catch (Standard_Failure const&) {
-           cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<endl;
+           std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<std::endl;
          }
     
          if(!aCont.IsNull()) {
 #ifdef OCCT_DEBUG
            TCollection_AsciiString entry;
            TDF_Tool::Entry(aCont->Label(), entry);
-           cout << "ContextNS Label = " << entry <<endl;
+           std::cout << "ContextNS Label = " << entry <<std::endl;
 #endif
            Handle(TFunction_Function) aCntFun;
            if(aCont->Label().Father().FindAttribute(TFunction_Function::GetID(), aCntFun)) { //Fun:2 ==> result
@@ -723,7 +723,7 @@ static Standard_Integer DNaming_AttachShape (Draw_Interpretor& di,
       }
     } //###
   }
-  cout << "DNaming_AttachShape : Error" << endl;
+  std::cout << "DNaming_AttachShape : Error" << std::endl;
   return 1;  
 }
 
@@ -766,7 +766,7 @@ static Standard_Integer DNaming_XAttachShape (Draw_Interpretor& di,
          Handle(TNaming_NamedShape) aCont =  DNaming::GetObjectValue(aContext);
 
          if(aCont.IsNull() || aCont->IsEmpty())
-           cout <<"Wrong Context ..." <<endl;
+           std::cout <<"Wrong Context ..." <<std::endl;
          else {
            TopoDS_Shape aCONTEXT = aCont->Get();
            try{
@@ -775,7 +775,7 @@ static Standard_Integer DNaming_XAttachShape (Draw_Interpretor& di,
                return 1;
            }
             catch (Standard_Failure const&) {
-             cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<endl;
+             std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<std::endl;
            }
     
            TDF_Reference::Set(aFun->Label().FindChild(FUNCTION_ARGUMENTS_LABEL).FindChild(ATTACH_ARG), 
@@ -788,7 +788,7 @@ static Standard_Integer DNaming_XAttachShape (Draw_Interpretor& di,
       }
     }
   }
-  cout << "DNaming_XAttachShape : Error" << endl;
+  std::cout << "DNaming_XAttachShape : Error" << std::endl;
   return 1;  
 }
 
@@ -829,7 +829,7 @@ static Standard_Integer DNaming_AddCylinder (Draw_Interpretor& theDI,
     DDF::ReturnLabel(theDI, anObj->Label());
     return 0;
   }
-  cout << "DNaming_AddCylinder : Error" << endl;
+  std::cout << "DNaming_AddCylinder : Error" << std::endl;
   return 1;  
 }
 
@@ -862,7 +862,7 @@ static Standard_Integer DNaming_CylRad (Draw_Interpretor& theDI,
       return 0;
     }
   }
-  cout << "DNaming_CylRadius : Error" << endl;
+  std::cout << "DNaming_CylRadius : Error" << std::endl;
   return 1;  
 }
 
@@ -895,7 +895,7 @@ static Standard_Integer DNaming_CylRad (Draw_Interpretor& theDI,
     DDF::ReturnLabel(theDI, aFun->Label());
     return 0;
   }
-   cout << "DModel_AddFuse : Error" << endl;
+   std::cout << "DModel_AddFuse : Error" << std::endl;
    return 1;  
  }
 
@@ -929,7 +929,7 @@ static Standard_Integer DNaming_CylRad (Draw_Interpretor& theDI,
     DDF::ReturnLabel(theDI, aFun->Label());
     return 0;
   }
-   cout << "DModel_AddCut : Error" << endl;
+   std::cout << "DModel_AddCut : Error" << std::endl;
    return 1;  
  }
 
@@ -962,7 +962,7 @@ static Standard_Integer DNaming_CylRad (Draw_Interpretor& theDI,
     DDF::ReturnLabel(theDI, aFun->Label());
     return 0;
   }
-   cout << "DModel_AddComm : Error" << endl;
+   std::cout << "DModel_AddComm : Error" << std::endl;
    return 1;  
  }
 
@@ -994,7 +994,7 @@ static Standard_Integer DNaming_CylRad (Draw_Interpretor& theDI,
     DDF::ReturnLabel(theDI, aFun->Label());
     return 0;
   }
-   cout << "DModel_AddSection : Error" << endl;
+   std::cout << "DModel_AddSection : Error" << std::endl;
    return 1;  
  }
 
@@ -1007,7 +1007,7 @@ static Standard_Integer DNaming_AddFillet (Draw_Interpretor& theDI,
                                           const char** theArg)
 {
   if (theNb < 5) {
-    cout<<"DNaming_AddFillet(): Wrong number of arguments"<<endl;
+    std::cout<<"DNaming_AddFillet(): Wrong number of arguments"<<std::endl;
     return 1;
   }
 
@@ -1045,7 +1045,7 @@ static Standard_Integer DNaming_PTranslateDXYZ (Draw_Interpretor& di,
 {
   if (nb > 3) {
 #ifdef OCCT_DEBUG
-    cout << "NB = " << nb <<endl;
+    std::cout << "NB = " << nb <<std::endl;
 #endif
     Handle(TDocStd_Document) aDocument;   
     Standard_CString aDocS(a[1]);
@@ -1062,13 +1062,13 @@ static Standard_Integer DNaming_PTranslateDXYZ (Draw_Interpretor& di,
     
     Standard_Real aDx=0., aDy=0., aDz=0.;
     aDx = Draw::Atof(a[3]);
-    //cout << "DX = " << aDx<<endl;
+    //std::cout << "DX = " << aDx<<std::endl;
     if(nb > 4) {
       aDy = Draw::Atof(a[4]);
-      //cout << "DY = " << aDy<<endl;
+      //std::cout << "DY = " << aDy<<std::endl;
       if(nb > 5) {
        aDz = Draw::Atof(a[5]);
-       //cout << "DZ = " << aDz<<endl;
+       //std::cout << "DZ = " << aDz<<std::endl;
       }
     }
 
@@ -1079,7 +1079,7 @@ static Standard_Integer DNaming_PTranslateDXYZ (Draw_Interpretor& di,
     DDF::ReturnLabel(di, aFun->Label());
     return 0;
   }
-  cout << "DNaming_Translate : Error" << endl;
+  std::cout << "DNaming_Translate : Error" << std::endl;
   return 1;  
 }
 //=======================================================================
@@ -1092,7 +1092,7 @@ static Standard_Integer DNaming_PTranslateLine (Draw_Interpretor& di,
 {
   if (nb > 4) {
 #ifdef OCCT_DEBUG
-    cout << "NB = " << nb <<endl;
+    std::cout << "NB = " << nb <<std::endl;
 #endif
     Handle(TDocStd_Document) aDocument;   
     Standard_CString aDocS(a[1]);
@@ -1118,7 +1118,7 @@ static Standard_Integer DNaming_PTranslateLine (Draw_Interpretor& di,
     DDF::ReturnLabel(di, aFun->Label());
     return 0;
   }
-  cout << "DNaming_PTranslateAlongLine : Error" << endl;
+  std::cout << "DNaming_PTranslateAlongLine : Error" << std::endl;
   return 1;  
 }
 
@@ -1157,7 +1157,7 @@ static Standard_Integer DNaming_PRotateLine(Draw_Interpretor& di,
     DDF::ReturnLabel(di, aFun->Label());
     return 0;    
   }
-  cout << "DNaming_PRotateRoundLine : Error" << endl;
+  std::cout << "DNaming_PRotateRoundLine : Error" << std::endl;
   return 1;  
 }
 
@@ -1190,7 +1190,7 @@ static Standard_Integer DNaming_PMirrorObject(Draw_Interpretor& di,
     DDF::ReturnLabel(di, aFun->Label());
     return 0;
   }
-  cout << "DNaming_PMirrorObject : Error" << endl;
+  std::cout << "DNaming_PMirrorObject : Error" << std::endl;
   return 1;  
 }
 //=======================================================================
@@ -1202,7 +1202,7 @@ static Standard_Integer DNaming_AddPrism (Draw_Interpretor& theDI,
                                         const char** theArg)
 {
   if (theNb < 5 ) {
-    cout<<"DNaming_AddPrism(): Wrong number of arguments"<<endl;
+    std::cout<<"DNaming_AddPrism(): Wrong number of arguments"<<std::endl;
     return 1;
   }
 //
@@ -1260,7 +1260,7 @@ static Standard_Integer DNaming_PrismHeight (Draw_Interpretor& theDI,
     }
     
   }
-  cout << "DNaming_PrismHeight : Error" << endl;
+  std::cout << "DNaming_PrismHeight : Error" << std::endl;
   return 1;  
 }
 
@@ -1275,7 +1275,7 @@ static Standard_Integer DNaming_AddRevol (Draw_Interpretor& theDI,
                                          const char** theArg)
 {
   if (theNb < 4 ) {
-    cout<<"DNaming_AddRevol(): Wrong number of arguments"<<endl;
+    std::cout<<"DNaming_AddRevol(): Wrong number of arguments"<<std::endl;
     return 1;
   }
 
@@ -1352,7 +1352,7 @@ static Standard_Integer DNaming_RevolutionAngle (Draw_Interpretor& theDI,
       return 0;
     }    
   }
-  cout << "DNaming_RevolutionAngle : Error" << endl;
+  std::cout << "DNaming_RevolutionAngle : Error" << std::endl;
   return 1;  
 }
 
@@ -1365,7 +1365,7 @@ static Standard_Integer DNaming_AddSphere (Draw_Interpretor& theDI,
                                          const char** theArg)
 {
   if (theNb != 4) {
-    cout<<"DNaming_AddSphere(): Wrong number of arguments"<<endl;
+    std::cout<<"DNaming_AddSphere(): Wrong number of arguments"<<std::endl;
     return 1;
   }
   Handle(TDocStd_Document) aDocument;   
@@ -1421,7 +1421,7 @@ static Standard_Integer DNaming_SphereRadius (Draw_Interpretor& theDI,
     }
   }
 
-  cout << "DNaming_SphRadius : Error" << endl;
+  std::cout << "DNaming_SphRadius : Error" << std::endl;
   return 1;  
 }
 //=======================================================================
@@ -1459,7 +1459,7 @@ static Standard_Integer DNaming_AddPoint (Draw_Interpretor& theDI,
     DDF::ReturnLabel(theDI, anObj->Label());
     return 0;
   }
-  cout << "DNaming_AddPoint : Error" << endl;
+  std::cout << "DNaming_AddPoint : Error" << std::endl;
   return 1;  
 }
 
@@ -1504,7 +1504,7 @@ static Standard_Integer DNaming_AddPointRlt (Draw_Interpretor& theDI,
     DDF::ReturnLabel(theDI, anObj->Label());
     return 0;
   }
-  cout << "DNaming_AddPoint : Error" << endl;
+  std::cout << "DNaming_AddPoint : Error" << std::endl;
   return 1;  
 }
 
@@ -1554,11 +1554,11 @@ static Standard_Integer DNaming_PntOffset (Draw_Interpretor& theDI,
       if(isDX || isDY || isDZ)
        DDF::ReturnLabel(theDI, objLabel);
       else
-       cout <<"DNaming_PntOffset : Nothing changed" << endl; 
+       std::cout <<"DNaming_PntOffset : Nothing changed" << std::endl; 
       return 0;
     }
   }
-  cout << "DNaming_PntOffset : Error" << endl;
+  std::cout << "DNaming_PntOffset : Error" << std::endl;
   return 1;  
 }
 
@@ -1572,7 +1572,7 @@ static Standard_Integer DNaming_Line3D (Draw_Interpretor& theDI,
                                          const char** theArg)
 {
   if (theNb < 5) {
-    cout<<"DNaming_AddLine3D: Wrong number of arguments"<<endl;
+    std::cout<<"DNaming_AddLine3D: Wrong number of arguments"<<std::endl;
     return 1;
   }
   Handle(TDocStd_Document) aDocument;   
@@ -1698,14 +1698,14 @@ static Standard_Boolean MakeSelection (const Handle(TDataStd_UAttribute)& Obj,
          if(!aSelector.Select(Selection, aContext, Geometry, KeepOrientation))
            return Standard_False;
        }catch (...) {
-         cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<endl;
+         std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<std::endl;
        }
 
        if(!aNS.IsNull()) {
 
            //TCollection_AsciiString entry;
            //TDF_Tool::Entry(aNS->Label(), entry);
-           //cout << "ContextNS Label = " << entry <<endl;
+           //std::cout << "ContextNS Label = " << entry <<std::endl;
          Handle(TFunction_Function) aCntFun;
          if(aNS->Label().Father().FindAttribute(TFunction_Function::GetID(), aCntFun)) { //Fun:2 ==> result
              // First argument of Selection function refers to father function (of context object) 
@@ -1756,14 +1756,14 @@ static Standard_Boolean MakeXSelection (const Handle(TDataStd_UAttribute)& Obj,
          if(!aSelector.Select(Selection, aContext, Geometry, KeepOrientation))
            return Standard_False;
        }catch (...) {
-         cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<endl;
+         std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<std::endl;
        }
 
        if(!aNS.IsNull()) {
 
            //TCollection_AsciiString entry;
            //TDF_Tool::Entry(aNS->Label(), entry);
-           //cout << "ContextNS Label = " << entry <<endl;
+           //std::cout << "ContextNS Label = " << entry <<std::endl;
          Handle(TFunction_Function) aCntFun;
          if(aNS->Label().Father().FindAttribute(TFunction_Function::GetID(), aCntFun)) { //Fun:2 ==> result
              // First argument of Selection function refers to father function (of context object) 
@@ -1915,7 +1915,7 @@ static Standard_Integer DNaming_TestSingle (Draw_Interpretor& theDI,
          TCollection_AsciiString entry;
          TDF_Tool::Entry(FirstAuxObj->Label(), entry);
 #ifdef OCCT_DEBUG
-         cout << "First Selection function at " << entry <<endl;
+         std::cout << "First Selection function at " << entry <<std::endl;
 #endif
        }
        Standard_Boolean isSelected (Standard_False);
@@ -1929,11 +1929,11 @@ static Standard_Integer DNaming_TestSingle (Draw_Interpretor& theDI,
            }
        }
        catch (Standard_Failure const& anException) {
-         cout << "%%%INFO:Error: ::TestSingleSelection failed :";
-         cout << anException.GetMessageString() << endl;
+         std::cout << "%%%INFO:Error: ::TestSingleSelection failed :";
+         std::cout << anException.GetMessageString() << std::endl;
        }
        catch(...) {
-         cout << "%%%INFO:Error: ::TestSingleSelection selection failed : unknown exception type";
+         std::cout << "%%%INFO:Error: ::TestSingleSelection selection failed : unknown exception type";
        }
        TCollection_AsciiString entry;
        TDF_Tool::Entry(auxObj->Label(), entry);
@@ -1967,14 +1967,14 @@ static Standard_Integer DNaming_TestSingle (Draw_Interpretor& theDI,
        }
        if(aResult.Length()) {
          if(aResult.Search("Warning") == -1)
-           cout << "Failed units: " << aResult << " at " << entry << endl;
+           std::cout << "Failed units: " << aResult << " at " << entry << std::endl;
          else 
-           cout << aResult << " at " << entry << endl;
+           std::cout << aResult << " at " << entry << std::endl;
          TDataStd_Name::Set(auxObj->Label(), aResult);
        }
       } 
       if(aFailedList.Extent()) {
-       cout << "Failed units are kept at: ";
+       std::cout << "Failed units are kept at: ";
        TopTools_ListIteratorOfListOfShape it1(aFailedList);
        for(; it1.More(); it1.Next()) {
          const TDF_Label& aLabel = TDF_TagSource::NewChild(aDoc->Main());
@@ -1983,7 +1983,7 @@ static Standard_Integer DNaming_TestSingle (Draw_Interpretor& theDI,
          B.Generated(it1.Value());
          TCollection_AsciiString entry;
          TDF_Tool::Entry(aLabel, entry);
-         cout << "\t" <<entry <<endl;
+         std::cout << "\t" <<entry <<std::endl;
        }
       }
       if(!FirstAuxObj.IsNull())
@@ -1992,7 +1992,7 @@ static Standard_Integer DNaming_TestSingle (Draw_Interpretor& theDI,
     }
   }
 
-  cout << "DNaming_TestSingle : Error" << endl;
+  std::cout << "DNaming_TestSingle : Error" << std::endl;
   return 1;  
 }
 
@@ -2049,7 +2049,7 @@ static Standard_Integer DNaming_Multiple (Draw_Interpretor& theDI,
 #ifdef OCCT_DEBUG
          TCollection_AsciiString entry;
          TDF_Tool::Entry(FirstAuxObj->Label(), entry);
-         cout << "First Selection function at " << entry <<endl;
+         std::cout << "First Selection function at " << entry <<std::endl;
 #endif
        }
        Standard_Boolean isSelected (Standard_False);
@@ -2063,11 +2063,11 @@ static Standard_Integer DNaming_Multiple (Draw_Interpretor& theDI,
            }
        }
        catch (Standard_Failure const& anException) {
-         cout << "%%%INFO:Error: ::TestSingleSelection failed :";
-         cout << anException.GetMessageString() << endl;
+         std::cout << "%%%INFO:Error: ::TestSingleSelection failed :";
+         std::cout << anException.GetMessageString() << std::endl;
        }
        catch(...) {
-         cout << "%%%INFO:Error: ::TestSingleSelection selection failed : unknown exception type";
+         std::cout << "%%%INFO:Error: ::TestSingleSelection selection failed : unknown exception type";
        }
        TCollection_AsciiString entry;
        TDF_Tool::Entry(auxObj->Label(), entry);
@@ -2100,7 +2100,7 @@ static Standard_Integer DNaming_Multiple (Draw_Interpretor& theDI,
          aFailedList.Append(aCurShape);
        }
        if(aResult.Length())
-         cout << "Failed units: " << aResult << endl;
+         std::cout << "Failed units: " << aResult << std::endl;
       }
  
       if(aFailedList.Extent()) {
@@ -2118,7 +2118,7 @@ static Standard_Integer DNaming_Multiple (Draw_Interpretor& theDI,
     }
   }
 
-  cout << "DNaming_TestMultiple : Error" << endl;
+  std::cout << "DNaming_TestMultiple : Error" << std::endl;
   return 1;  
 }
 
index 522802d..5c0f954 100644 (file)
@@ -89,7 +89,7 @@ Standard_Integer DNaming_PointDriver::Execute(Handle(TFunction_Logbook)& theLog)
     Handle(TNaming_NamedShape) aRefPntNS = DNaming::GetObjectValue(aRefPnt);
     if (aRefPntNS.IsNull() || aRefPntNS->IsEmpty()) {
 #ifdef OCCT_DEBUG
-      cout<<"PointDriver:: Ref Point is empty"<<endl;
+      std::cout<<"PointDriver:: Ref Point is empty"<<std::endl;
 #endif
       aFunction->SetFailure(WRONG_ARGUMENT);
       return -1;
index 6e9d8cc..dab5cc4 100644 (file)
@@ -85,9 +85,9 @@ Standard_Boolean DNaming_PrismDriver::MustExecute(const Handle(TFunction_Logbook
 static void Write(const TopoDS_Shape& shape,
                      const Standard_CString filename) 
 {
-  ofstream save;
+  std::ofstream save;
   save.open(filename);
-  save << "DBRep_DrawableShape" << endl << endl;
+  save << "DBRep_DrawableShape" << std::endl << std::endl;
   if(!shape.IsNull()) BRepTools::Write(shape, save);
   save.close();
 }
index aa36336..ed061e8 100644 (file)
@@ -167,7 +167,7 @@ Standard_Integer DNaming_RevolutionDriver::Execute(Handle(TFunction_Logbook)& th
     }
     if(!anAxisOK) {
 #ifdef OCCT_DEBUG
-      cout<<"RevolutionDriver:: Axis is not correct"<<endl;
+      std::cout<<"RevolutionDriver:: Axis is not correct"<<std::endl;
 #endif
       aFunction->SetFailure(WRONG_ARGUMENT);
       return -1;
@@ -419,8 +419,8 @@ void DNaming_RevolutionDriver::LoadNamingDS (const TDF_Label& theResultLabel,
 #ifdef OCCT_DEBUG
          else {
            if(MS.HasDegenerated())
-             cout <<"mkRevol has degenerated" <<endl;
-           cout << "BRep_Tool found degenerated edge (from Vfirst) TS = " << it.Value().TShape().get() <<endl;
+             std::cout <<"mkRevol has degenerated" <<std::endl;
+           std::cout << "BRep_Tool found degenerated edge (from Vfirst) TS = " << it.Value().TShape().get() <<std::endl;
          }
 #endif
        }
@@ -436,8 +436,8 @@ void DNaming_RevolutionDriver::LoadNamingDS (const TDF_Label& theResultLabel,
 #ifdef OCCT_DEBUG
          else {
            if(MS.HasDegenerated())
-             cout <<"mkRevol has degenerated" <<endl;
-           cout << "BRep_Tool found degenerated edge (from Vlast) TS = " << it.Value().TShape().get() <<endl;
+             std::cout <<"mkRevol has degenerated" <<std::endl;
+           std::cout << "BRep_Tool found degenerated edge (from Vlast) TS = " << it.Value().TShape().get() <<std::endl;
          }
 #endif
        }
@@ -505,8 +505,8 @@ void DNaming_RevolutionDriver::LoadNamingDS (const TDF_Label& theResultLabel,
 #ifdef OCCT_DEBUG
          else {
            if(MS.HasDegenerated())
-             cout <<"mkRevol has degenerated" <<endl;
-           cout << "BRep_Tool found degenerated edge (from Vfirst) TS = " << it.Value().TShape().get() <<endl;
+             std::cout <<"mkRevol has degenerated" <<std::endl;
+           std::cout << "BRep_Tool found degenerated edge (from Vfirst) TS = " << it.Value().TShape().get() <<std::endl;
          }
 #endif
        }
@@ -521,8 +521,8 @@ void DNaming_RevolutionDriver::LoadNamingDS (const TDF_Label& theResultLabel,
 #ifdef OCCT_DEBUG
          else {
            if(MS.HasDegenerated())
-             cout <<"mkRevol has degenerated" <<endl;
-           cout << "BRep_Tool found degenerated edge (from Vlast) TS = " << it.Value().TShape().get() <<endl;
+             std::cout <<"mkRevol has degenerated" <<std::endl;
+           std::cout << "BRep_Tool found degenerated edge (from Vlast) TS = " << it.Value().TShape().get() <<std::endl;
          }
 #endif
        }
index 2937f79..2226718 100644 (file)
@@ -83,12 +83,12 @@ static void DumpNaming (const Handle(TNaming_Naming)& naming, Draw_Interpretor&
 {
   TCollection_AsciiString Entry;
   const TNaming_Name& AName = naming->GetName();
-  //TNaming::Print(AName.Type(),cout);
+  //TNaming::Print(AName.Type(),std::cout);
   Standard_SStream aStream1;
   TNaming::Print(AName.Type(),aStream1);
   di << aStream1;
   di << " ";
-  //TopAbs::Print(AName.ShapeType(),cout);
+  //TopAbs::Print(AName.ShapeType(),std::cout);
   Standard_SStream aStream2;
   TopAbs::Print(AName.ShapeType(),aStream2);
   di << aStream2;
@@ -146,7 +146,7 @@ Standard_Boolean FillValidMap(const TDF_Label& theLabel, TDF_LabelMap& theValidM
 #ifdef OCCT_DEBUG_SELN
          TCollection_AsciiString entr1;
       TDF_Tool::Entry(theLabel, entr1);  
-      cout<<"\tNaming Attribute at = "<< entr1 <<endl;
+      std::cout<<"\tNaming Attribute at = "<< entr1 <<std::endl;
 #endif
   TDF_ChildIterator itr(theLabel, Standard_True);
   for ( ;itr.More(); itr.Next()) {
@@ -157,14 +157,14 @@ Standard_Boolean FillValidMap(const TDF_Label& theLabel, TDF_LabelMap& theValidM
          if(aNaming.IsNull()) continue;
 #ifdef OCCT_DEBUG_SELN   
       TDF_Tool::Entry(aLabel, entr1);  
-      cout<<"\tNaming Attribute at = "<< entr1 <<endl;
+      std::cout<<"\tNaming Attribute at = "<< entr1 <<std::endl;
 #endif
          TDF_Tool::OutReferences(aLabel,anExtMap);
          for (TDF_MapIteratorOfAttributeMap attMItr(anExtMap);attMItr.More(); attMItr.Next()) {
         Handle(TDF_Attribute) att = attMItr.Key();
 #ifdef OCCT_DEBUG_SELN
         TDF_Tool::Entry(att->Label(), entr1);
-           cout<<"## References attribute dynamic type = "<<att->DynamicType()<<" at Label = "<<entr1 <<endl;
+           std::cout<<"## References attribute dynamic type = "<<att->DynamicType()<<" at Label = "<<entr1 <<std::endl;
 #endif 
            if (att->Label().IsDifferent(aLabel) && !att->Label().IsDescendant(theLabel)) {
         theValidMap.Add(att->Label());
@@ -195,20 +195,20 @@ static Standard_Integer DNaming_SolveSelection (Draw_Interpretor& di, Standard_I
 
     Handle(TNaming_Naming) naming;    
     if (!L.FindAttribute(TNaming_Naming::GetID(),naming)) {  
-      cout <<"DNaming__SolveSelection  : not a selection" << endl;
+      std::cout <<"DNaming__SolveSelection  : not a selection" << std::endl;
       return 1;
     }
        TDF_LabelMap aValidMap;
     if(!FillValidMap(L,aValidMap)) 
                di << "Valid map is empty\n";
 #ifdef OCCT_DEBUG_SELN
-       cout<<"== Valid Label map =="<<endl;
+       std::cout<<"== Valid Label map =="<<std::endl;
        for (TDF_MapIteratorOfLabelMap mapItr(aValidMap);mapItr.More(); mapItr.Next()) {
       const TDF_Label& aLab = mapItr.Key();
 
        TCollection_AsciiString entr1;
        TDF_Tool::Entry(aLab, entr1);
-          cout<<"  Label = "<<entr1 <<endl;
+          std::cout<<"  Label = "<<entr1 <<std::endl;
        }
 #endif
 
index 7c4c817..ee9e8ca 100644 (file)
@@ -64,9 +64,9 @@ Standard_Boolean DNaming_SelectionDriver::MustExecute(const Handle(TFunction_Log
 static void Write(const TopoDS_Shape& shape,
                      const Standard_CString filename) 
 {
-  ofstream save;
+  std::ofstream save;
   save.open(filename);
-  save << "DBRep_DrawableShape" << endl << endl;
+  save << "DBRep_DrawableShape" << std::endl << std::endl;
   if(!shape.IsNull()) BRepTools::Write(shape, save);
   save.close();
 }
@@ -109,13 +109,13 @@ Standard_Integer DNaming_SelectionDriver::Execute(Handle(TFunction_Logbook)& the
   TDF_LabelMap aMap;
   theLog->GetValid(aMap);
 #ifdef OCCT_DEBUG
-  cout <<"#E_DNaming_SelectionDriver:: Valid Label Map:"<<endl;
+  std::cout <<"#E_DNaming_SelectionDriver:: Valid Label Map:"<<std::endl;
   TDF_MapIteratorOfLabelMap anItr(aMap);
   for (; anItr.More(); anItr.Next()) {
     const TDF_Label& aLabel = anItr.Key();
     TCollection_AsciiString anEntry;
     TDF_Tool::Entry(aLabel, anEntry);
-    cout << "\tLabel = " << anEntry << endl;
+    std::cout << "\tLabel = " << anEntry << std::endl;
   }
 #endif
 //***
@@ -131,20 +131,20 @@ Standard_Integer DNaming_SelectionDriver::Execute(Handle(TFunction_Logbook)& the
     theLog->SetValid(aRLabel);
     Handle(TNaming_NamedShape) aNS;
     if(!aRLabel.FindAttribute(TNaming_NamedShape::GetID(),aNS)) {
-      cout <<"%%%WARNING: DNaming_SelectionDriver::NamedShape is not found"<<endl;
+      std::cout <<"%%%WARNING: DNaming_SelectionDriver::NamedShape is not found"<<std::endl;
     }
     else {
       if(aNS.IsNull()) {
-       cout << "%%%WARNING: DNaming_SelectionDriver::NamedShape is NULL" <<endl;
+       std::cout << "%%%WARNING: DNaming_SelectionDriver::NamedShape is NULL" <<std::endl;
       } else 
        if(aNS->IsEmpty()) {
-         cout << "%%%WARNING: DNaming_SelectionDriver::NamedShape is EMPTY on Label = ";
-         aNS->Label().EntryDump(cout); cout << endl;
+         std::cout << "%%%WARNING: DNaming_SelectionDriver::NamedShape is EMPTY on Label = ";
+         aNS->Label().EntryDump(std::cout); std::cout << std::endl;
          
        } else {
 #ifdef OCCT_DEBUG
          Write(aNS->Get(), "Selection_Result.brep");
-         cout << "TShape = " << aNS->Get().TShape().get() <<endl;
+         std::cout << "TShape = " << aNS->Get().TShape().get() <<std::endl;
 #endif 
          if(aIsWire && aNS->Get().ShapeType()== TopAbs_COMPOUND) {
            TopoDS_Shape aWireShape;
@@ -157,7 +157,7 @@ Standard_Integer DNaming_SelectionDriver::Execute(Handle(TFunction_Logbook)& the
              aFunction->SetFailure(DONE);
            } else {
 #ifdef OCCT_DEBUG          
-             cout <<"%%%WARNING: DNaming_SelectionDriver::Execute: The Shape after solving changed type = "<<aNS->Get().ShapeType()<< endl;
+             std::cout <<"%%%WARNING: DNaming_SelectionDriver::Execute: The Shape after solving changed type = "<<aNS->Get().ShapeType()<< std::endl;
 #endif
              aFunction->SetFailure(DONE);
            }
@@ -166,7 +166,7 @@ Standard_Integer DNaming_SelectionDriver::Execute(Handle(TFunction_Logbook)& the
   }
   else {
     aFunction->SetFailure(NOTDONE);
-    cout << "%%%WARNING: DNaming_SelectionDriver::Execute: Selection is Not solved !!!" << endl;
+    std::cout << "%%%WARNING: DNaming_SelectionDriver::Execute: Selection is Not solved !!!" << std::endl;
     return 1;
   }
   return 0;
index 0d98f58..50959ea 100644 (file)
@@ -82,7 +82,7 @@ Standard_Integer DNaming_SphereDriver::Execute(Handle(TFunction_Logbook)& theLog
   Handle(TNaming_NamedShape) aNSCnt = DNaming::GetObjectValue(anObject);
   if (aNSCnt.IsNull() || aNSCnt->IsEmpty()) {
 #ifdef OCCT_DEBUG
-    cout<<"SphereDriver:: Center point is null or empty"<<endl;
+    std::cout<<"SphereDriver:: Center point is null or empty"<<std::endl;
 #endif
     aFunction->SetFailure(WRONG_ARGUMENT);
     return -1;
@@ -99,7 +99,7 @@ Standard_Integer DNaming_SphereDriver::Execute(Handle(TFunction_Logbook)& theLog
   TopoDS_Shape aCntShape = aNSCnt->Get();
   if(aCntShape.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout<<"SphereDriver:: Center point is null"<<endl;
+    std::cout<<"SphereDriver:: Center point is null"<<std::endl;
 #endif
     aFunction->SetFailure(WRONG_ARGUMENT);
     return -1;
index a6cab05..f82e921 100644 (file)
@@ -74,7 +74,7 @@ void PrintE(const TDF_Label&       label)
 {
   TCollection_AsciiString entry;
   TDF_Tool::Entry(label, entry);
-  cout << "LabelEntry = "<< entry << endl;
+  std::cout << "LabelEntry = "<< entry << std::endl;
 }
 #endif
 //=======================================================================
@@ -118,7 +118,7 @@ Standard_Integer DNaming_TransformationDriver::Execute(Handle(TFunction_Logbook)
   aLab.FindAttribute(TNaming_NamedShape::GetID(), aContextNS);
   if (aContextNS.IsNull() || aContextNS->IsEmpty()) {
 #ifdef OCCT_DEBUG
-    cout<<"TransformationDriver:: Context is empty"<<endl;
+    std::cout<<"TransformationDriver:: Context is empty"<<std::endl;
 #endif
     aFunction->SetFailure(WRONG_CONTEXT);
     return -1;
@@ -349,7 +349,7 @@ void DNaming_TransformationDriver::LoadNamingDS (const TDF_Label& theResultLabel
   const TopoDS_Shape& aSrcShape  = theSourceNS->Get();
   if (aSrcShape.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout<<"DNaming_TransformationDriver::LoadNamingDS: The result of the Transform operation is null"<<endl;
+    std::cout<<"DNaming_TransformationDriver::LoadNamingDS: The result of the Transform operation is null"<<std::endl;
 #endif
     return;
   }
@@ -357,7 +357,7 @@ void DNaming_TransformationDriver::LoadNamingDS (const TDF_Label& theResultLabel
   if(theSourceNS->Evolution() == TNaming_PRIMITIVE) isPrimitive = Standard_True;
   const TDF_Label& aSrcLabel     = theSourceNS->Label();
 #ifdef OCCT_DEBUG_TRSF
-  cout <<"TransformationDriver: ";
+  std::cout <<"TransformationDriver: ";
   PrintE(aSrcLabel);
 #endif
 
index 94100d6..8ec6147 100644 (file)
@@ -61,7 +61,7 @@ void DPrsStd::Factory(Draw_Interpretor& theDI)
   DPrsStd::AllCommands(theDI);
   DDocStd::AllCommands(theDI);
 #ifdef OCCT_DEBUG
-  cout << "Draw Plugin : All DF commands are loaded" << endl;
+  std::cout << "Draw Plugin : All DF commands are loaded" << std::endl;
 #endif
 }
 
index 6951756..c1ea69b 100644 (file)
@@ -167,7 +167,7 @@ static Standard_Integer DPrsStd_AISSet (Draw_Interpretor& di,
     Standard_GUID guid;
     TCollection_ExtendedString str = arg[3];
 #ifdef OCCT_DEBUG
-    cout << "Inputed parameter > " << str   << endl;
+    std::cout << "Inputed parameter > " << str   << std::endl;
 #endif
     if ( str == "A" )  //axis
       guid = TDataXtd_Axis::GetID();     //"2a96b601-ec8b-11d0-bee7-080009dc3333" 
@@ -188,9 +188,9 @@ static Standard_Integer DPrsStd_AISSet (Draw_Interpretor& di,
 
     Handle(TPrsStd_AISPresentation) prs= TPrsStd_AISPresentation::Set(L, guid);
 #ifdef OCCT_DEBUG
-    cout << "Driver GUID = ";
-    prs->GetDriverGUID().ShallowDump(cout);
-    cout << "\n";
+    std::cout << "Driver GUID = ";
+    prs->GetDriverGUID().ShallowDump(std::cout);
+    std::cout << "\n";
 #endif
     Standard_Character resS[37];
     Standard_PCharacter presS;
@@ -233,7 +233,7 @@ static Standard_Integer DPrsStd_AISDriver (Draw_Interpretor& di,
       else {
        TCollection_ExtendedString str = arg[3];
 #ifdef OCCT_DEBUG
-       cout << "Inputed parameter > " << str   << endl;
+       std::cout << "Inputed parameter > " << str   << std::endl;
 #endif
        if ( str == "A" )  //axis
          guid = TDataXtd_Axis::GetID();     //"2a96b601-ec8b-11d0-bee7-080009dc3333" 
index 9ff93c9..27ec179 100644 (file)
@@ -1363,9 +1363,9 @@ void Draft_Modification::Perform ()
 #ifdef OCCT_DEBUG
           static Standard_Integer VertexRecomp = 1;
           if (VertexRecomp!=0) {
-            cout << "pori :" << vtori.X() << " " << vtori.Y() << " " << vtori.Z() << endl;
-            cout << "  Edg 1 :" << Vinf.Parameter(Edg1) << endl;
-            cout << "pvt :" << pvt.X() << " " << pvt.Y() << " " << pvt.Z() << endl;
+            std::cout << "pori :" << vtori.X() << " " << vtori.Y() << " " << vtori.Z() << std::endl;
+            std::cout << "  Edg 1 :" << Vinf.Parameter(Edg1) << std::endl;
+            std::cout << "pvt :" << pvt.X() << " " << pvt.Y() << " " << pvt.Z() << std::endl;
           }
 #endif
 
@@ -1381,8 +1381,8 @@ void Draft_Modification::Perform ()
 
 #ifdef OCCT_DEBUG
             if (VertexRecomp!=0) {
-              cout << "  Edg 2 :" << Vinf.Parameter(Vinf.Edge()) << endl;
-              cout << "opvt " << opvt.X() << " " << opvt.Y() << " " << opvt.Z() << endl;
+              std::cout << "  Edg 2 :" << Vinf.Parameter(Vinf.Edge()) << std::endl;
+              std::cout << "opvt " << opvt.X() << " " << opvt.Y() << " " << opvt.Z() << std::endl;
             }
 #endif
 
@@ -1671,7 +1671,7 @@ Handle(Geom_Surface) Draft_Modification::NewSurface
     Standard_Real testdir = Direction.Dot(NeutralPlane.Axis().Direction());
     if (Abs(testdir) <= 1.-Precision::Angular()) {     
 #ifdef OCCT_DEBUG
-      cout << "NewSurfaceCyl:Draft_Direction_and_Neutral_Perpendicular" << endl;
+      std::cout << "NewSurfaceCyl:Draft_Direction_and_Neutral_Perpendicular" << std::endl;
 #endif
       return NewS;     
     }    
@@ -1679,7 +1679,7 @@ Handle(Geom_Surface) Draft_Modification::NewSurface
     testdir = Direction.Dot(Cy.Axis().Direction());
     if (Abs(testdir) <= 1.-Precision::Angular()) {
 #ifdef OCCT_DEBUG
-      cout << "NewSurfaceCyl:Draft_Direction_and_Cylinder_Perpendicular" << endl;
+      std::cout << "NewSurfaceCyl:Draft_Direction_and_Cylinder_Perpendicular" << std::endl;
 #endif
       return NewS;
     }
@@ -1699,7 +1699,7 @@ Handle(Geom_Surface) Draft_Modification::NewSurface
 
       if (!isIntDone || i2s.TypeInter() != IntAna_Circle) {
 #ifdef OCCT_DEBUG
-        cout << "NewSurfaceCyl:Draft_Intersection_Neutral_Cylinder_NotDone" << endl;
+        std::cout << "NewSurfaceCyl:Draft_Intersection_Neutral_Cylinder_NotDone" << std::endl;
 #endif
         return NewS;
       } 
@@ -1736,7 +1736,7 @@ Handle(Geom_Surface) Draft_Modification::NewSurface
     Standard_Real testdir = Direction.Dot(NeutralPlane.Axis().Direction());
     if (Abs(testdir) <= 1.-Precision::Angular()) {     
 #ifdef OCCT_DEBUG
-      cout << "NewSurfaceCone:Draft_Direction_and_Neutral_Perpendicular" << endl;
+      std::cout << "NewSurfaceCone:Draft_Direction_and_Neutral_Perpendicular" << std::endl;
 #endif
       return NewS;     
     }  
@@ -1746,7 +1746,7 @@ Handle(Geom_Surface) Draft_Modification::NewSurface
     testdir = Direction.Dot(Co1.Axis().Direction());
     if (Abs(testdir) <= 1.-Precision::Angular()) {
 #ifdef OCCT_DEBUG
-      cout << "NewSurfaceCone:Draft_Direction_and_Cone_Perpendicular" << endl;
+      std::cout << "NewSurfaceCone:Draft_Direction_and_Cone_Perpendicular" << std::endl;
 #endif
       return NewS;
     }
@@ -1756,7 +1756,7 @@ Handle(Geom_Surface) Draft_Modification::NewSurface
     i2s.Perform(NeutralPlane,Co1,Precision::Angular(),Precision::Confusion());
     if (!i2s.IsDone() || i2s.TypeInter() != IntAna_Circle) {
 #ifdef OCCT_DEBUG
-      cout << "NewSurfaceCone:Draft_Intersection_Neutral_Conical_NotDone" << endl;
+      std::cout << "NewSurfaceCone:Draft_Intersection_Neutral_Conical_NotDone" << std::endl;
 #endif
       return NewS;
     }
@@ -1797,7 +1797,7 @@ Handle(Geom_Surface) Draft_Modification::NewSurface
   }
   else {
 #ifdef OCCT_DEBUG
-    cout << "NewSurface:Draft_SurfNotYetImplemented" << endl;
+    std::cout << "NewSurface:Draft_SurfNotYetImplemented" << std::endl;
 #endif
   }
   return NewS;
index e7e65bb..f0a27e4 100644 (file)
@@ -64,9 +64,9 @@ static const char* ColorNames[MAXCOLOR] = {
   "Maroon","Orange","Pink","Salmon","Violet","Yellow","Khaki","Coral"
   };
 
-filebuf Draw_Spyfile;
+std::filebuf Draw_Spyfile;
 
-static ostream spystream(&Draw_Spyfile);
+static std::ostream spystream(&Draw_Spyfile);
 
 static Handle(Draw_ProgressIndicator) PInd = NULL;
 
@@ -393,7 +393,7 @@ void Draw_Appli(int argc, char** argv, const FDraw_InitAppli Draw_InitAppli)
 #endif
   else
   {
-    cout << "DRAW is running in batch mode" << endl;
+    std::cout << "DRAW is running in batch mode" << std::endl;
     theCommands.Init();
     Tcl_Init(theCommands.Interp());
   }
@@ -413,7 +413,7 @@ void Draw_Appli(int argc, char** argv, const FDraw_InitAppli Draw_InitAppli)
   // *****************************************************************
   // set maximum precision for cout
   // *****************************************************************
-  cout.precision(15);
+  std::cout.precision(15);
 
   // *****************************************************************
   // standard commands
@@ -486,8 +486,8 @@ void Draw_Appli(int argc, char** argv, const FDraw_InitAppli Draw_InitAppli)
 #ifdef _WIN32
       ReadInitFile ("ddefault");
 #else
-      cout << " the CASROOT variable is mandatory to Run OpenCascade "<< endl;
-      cout << "No default file" << endl;
+      std::cout << " the CASROOT variable is mandatory to Run OpenCascade "<< std::endl;
+      std::cout << "No default file" << std::endl;
 #endif
     }
   }
@@ -545,8 +545,8 @@ void Draw_Appli(int argc, char** argv, const FDraw_InitAppli Draw_InitAppli)
     char cmd[MAXCMD];
     for (int ncmd = 1;; ++ncmd)
     {
-      cout << "Draw[" << ncmd << "]> ";
-      if (cin.getline (cmd, MAXCMD).fail())
+      std::cout << "Draw[" << ncmd << "]> ";
+      if (std::cin.getline (cmd, MAXCMD).fail())
       {
         break;
       }
@@ -654,7 +654,7 @@ Standard_Integer Tcl_AppInit (Tcl_Interp *)
 Standard_Integer  Draw_Call (char *c)
 {
    Standard_Integer r = theCommands.Eval(c);
-   cout << theCommands.Result() << endl;
+   std::cout << theCommands.Result() << std::endl;
    return r;
 }
 
@@ -676,8 +676,8 @@ void Draw::Load(Draw_Interpretor& theDI, const TCollection_AsciiString& theKey,
 
     if(!aPluginResource->Find(theKey.ToCString())) {
       Standard_SStream aMsg; aMsg << "Could not find the resource:";
-      aMsg << theKey.ToCString()<< endl;
-      cout << "could not find the resource:"<<theKey.ToCString()<< endl;
+      aMsg << theKey.ToCString()<< std::endl;
+      std::cout << "could not find the resource:"<<theKey.ToCString()<< std::endl;
       throw Draw_Failure(aMsg.str().c_str());
     }
 
@@ -703,7 +703,7 @@ void Draw::Load(Draw_Interpretor& theDI, const TCollection_AsciiString& theKey,
       aMsg << "; reason: ";
       aMsg << error.ToCString();
 #ifdef OCCT_DEBUG
-      cout << "could not open: "  << aPluginResource->Value(theKey.ToCString())<< " ; reason: "<< error.ToCString() << endl;
+      std::cout << "could not open: "  << aPluginResource->Value(theKey.ToCString())<< " ; reason: "<< error.ToCString() << std::endl;
 #endif
       throw Draw_Failure(aMsg.str().c_str());
     }
index 14c9990..8296480 100644 (file)
@@ -44,15 +44,15 @@ class Draw_SaveAndRestore {
     Standard_EXPORT Draw_SaveAndRestore 
       (const char* name,
        Standard_Boolean (*test)(const Handle(Draw_Drawable3D)&),
-       void (*save)(const Handle(Draw_Drawable3D)&, ostream&),
-       Handle(Draw_Drawable3D) (*restore) (istream&),
+       void (*save)(const Handle(Draw_Drawable3D)&, std::ostream&),
+       Handle(Draw_Drawable3D) (*restore) (std::istream&),
        Standard_Boolean display = Standard_True);
 
 
   const char* Name() const {return myName;}
   Standard_Boolean Test(const Handle(Draw_Drawable3D)&d);
-  void Save(const Handle(Draw_Drawable3D)& d, ostream& os) const;
-  Handle(Draw_Drawable3D) Restore(istream&) const;
+  void Save(const Handle(Draw_Drawable3D)& d, std::ostream& os) const;
+  Handle(Draw_Drawable3D) Restore(std::istream&) const;
   Standard_Boolean Disp() const {return myDisplay;}
   Draw_SaveAndRestore* Next() {return myNext;}
 
@@ -60,8 +60,8 @@ class Draw_SaveAndRestore {
     
     const char* myName;
     Standard_Boolean (*myTest)(const Handle(Draw_Drawable3D)&);
-    void (*mySave)(const Handle(Draw_Drawable3D)&, ostream&);
-    Handle(Draw_Drawable3D) (*myRestore) (istream&);
+    void (*mySave)(const Handle(Draw_Drawable3D)&, std::ostream&);
+    Handle(Draw_Drawable3D) (*myRestore) (std::istream&);
     Standard_Boolean myDisplay;
     Draw_SaveAndRestore* myNext;
     
index b0cd38a..8c57448 100644 (file)
@@ -237,7 +237,7 @@ static Standard_Integer ifbatch(Draw_Interpretor& DI, Standard_Integer , const c
 //=======================================================================
 
 extern Standard_Boolean Draw_Spying;
-extern filebuf Draw_Spyfile;
+extern std::filebuf Draw_Spyfile;
 
 static Standard_Integer spy(Draw_Interpretor& di, Standard_Integer n, const char** a)
 {
@@ -245,7 +245,7 @@ static Standard_Integer spy(Draw_Interpretor& di, Standard_Integer n, const char
     Draw_Spyfile.close();
   Draw_Spying = Standard_False;
   if (n > 1) {
-    if (!Draw_Spyfile.open(a[1],ios::out)) {
+    if (!Draw_Spyfile.open(a[1],std::ios::out)) {
       di << "Cannot open "<<a[1]<<" for writing\n";
       return 1;
     }
@@ -258,16 +258,16 @@ static Standard_Integer dlog(Draw_Interpretor& di, Standard_Integer n, const cha
 {
   if (n != 2 && n != 3)
   {
-    cout << "Enable or disable logging: " << a[0] << " {on|off}" << endl;
-    cout << "Reset log: " << a[0] << " reset" << endl;
-    cout << "Get log content: " << a[0] << " get" << endl;
+    std::cout << "Enable or disable logging: " << a[0] << " {on|off}" << std::endl;
+    std::cout << "Reset log: " << a[0] << " reset" << std::endl;
+    std::cout << "Get log content: " << a[0] << " get" << std::endl;
     return 1;
   }
 
   if (! strcmp (a[1], "on") && n == 2)
   {
     di.SetDoLog (Standard_True);
-//    di.Log() << "dlog on" << endl; // for symmetry
+//    di.Log() << "dlog on" << std::endl; // for symmetry
   }
   else if (! strcmp (a[1], "off") && n == 2)
   {
@@ -291,7 +291,7 @@ static Standard_Integer dlog(Draw_Interpretor& di, Standard_Integer n, const cha
     di << (di.GetDoLog() ? "on" : "off");
   }
   else {
-    cout << "Unrecognized option(s): " << a[1] << endl;
+    std::cout << "Unrecognized option(s): " << a[1] << std::endl;
     return 1;
   }
   return 0;
@@ -301,7 +301,7 @@ static Standard_Integer decho(Draw_Interpretor& di, Standard_Integer n, const ch
 {
   if (n != 2)
   {
-    cout << "Enable or disable echoing: " << a[0] << " {on|off}" << endl;
+    std::cout << "Enable or disable echoing: " << a[0] << " {on|off}" << std::endl;
     return 1;
   }
 
@@ -314,7 +314,7 @@ static Standard_Integer decho(Draw_Interpretor& di, Standard_Integer n, const ch
     di.SetDoEcho (Standard_False);
   }
   else {
-    cout << "Unrecognized option: " << a[1] << endl;
+    std::cout << "Unrecognized option: " << a[1] << std::endl;
     return 1;
   }
   return 0;
@@ -518,7 +518,7 @@ static unsigned int __stdcall CpuFunc (void * /*param*/)
 #else
 static void cpulimitSignalHandler (int)
 {
-  cout << "Process killed by CPU limit  (" << CPU_LIMIT << " sec)" << endl;
+  std::cout << "Process killed by CPU limit  (" << CPU_LIMIT << " sec)" << std::endl;
   exit(2);
 }
 static void *CpuFunc(void* /*threadarg*/)
@@ -529,7 +529,7 @@ static void *CpuFunc(void* /*threadarg*/)
     sleep (5);
     anElapCurrent = clock_t(aTimer.ElapsedTime());
     if (CPU_LIMIT >0 && (anElapCurrent) >= CPU_LIMIT) {
-      cout << "Process killed by elapsed limit  (" << CPU_LIMIT << " sec)" << endl;
+      std::cout << "Process killed by elapsed limit  (" << CPU_LIMIT << " sec)" << std::endl;
       exit(2);
     }
   }
@@ -745,7 +745,7 @@ static int dlocale (Draw_Interpretor& di, Standard_Integer n, const char** argv)
     else if ( ! strcmp (cat, "LC_TIME") ) category = LC_TIME;
     else 
     {
-      cout << "Error: cannot recognize argument " << cat << " as one of LC_ macros" << endl;
+      std::cout << "Error: cannot recognize argument " << cat << " as one of LC_ macros" << std::endl;
       return 1;
     }
   }
@@ -754,7 +754,7 @@ static int dlocale (Draw_Interpretor& di, Standard_Integer n, const char** argv)
   if (result)
     di << result;
   else 
-    cout << "Error: unsupported locale specification: " << locale << endl;
+    std::cout << "Error: unsupported locale specification: " << locale << std::endl;
   return 0;
 }
 
@@ -1030,7 +1030,7 @@ void Draw::BasicCommands(Draw_Interpretor& theCommands)
   if (Done) return;
   Done = Standard_True;
 
-  ios::sync_with_stdio();
+  std::ios::sync_with_stdio();
 
   const char* g = "DRAW General Commands";
 
index 4b60fc5..af6d6a7 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);
-    cout << aCommands.Result() << endl;
+    std::cout << aCommands.Result() << std::endl;
     return aCommands.Result();
   }
   catch (Standard_Failure const& anException)
index f09244b..4a0aa4c 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)) {
-    cout << "Incorrect view-id, must be in 0.."<<MAXVIEW-1<<endl;
+    std::cout << "Incorrect view-id, must be in 0.."<<MAXVIEW-1<<std::endl;
     return -1;
   }
   if (!dout.HasView(id)) {
-    cout <<"View "<<id<<" does not exist."<<endl;
+    std::cout <<"View "<<id<<" does not exist."<<std::endl;
     return -1;
   }
   return id;
@@ -195,12 +195,12 @@ static Standard_Integer wzoom(Draw_Interpretor& di, Standard_Integer argc, const
     id = atoi(argv[1]); 
     if ((id < 0) || (id >= MAXVIEW)) 
     {
-      cout << "Incorrect view-id, must be in 0.."<<MAXVIEW-1<<endl;
+      std::cout << "Incorrect view-id, must be in 0.."<<MAXVIEW-1<<std::endl;
       return 1;
     }
     if (!dout.HasView(id))
     {
-      cout <<"View "<<id<<" does not exist."<<endl;
+      std::cout <<"View "<<id<<" does not exist."<<std::endl;
       return 1;
     }
     X1 = atoi (argv [2]);
@@ -727,7 +727,7 @@ static Standard_Integer hardcopy(Draw_Interpretor& ,
   Standard_Integer pxmax = (Standard_Integer)((dx - cad) * rap);
   Standard_Integer pymax = (Standard_Integer)((dy - cad) * rap);
 
-  ofstream os(file);
+  std::ofstream os(file);
 
   Standard_Integer vxmin,vymin,vxmax,vymax;
   if (dout.HasView(iview)) {
index dc32d9c..fb07529 100644 (file)
@@ -58,15 +58,15 @@ namespace {
   {
     for (int i=0; i < argc; i++)
       os << argv[i] << " ";
-    os << endl;
+    os << std::endl;
   }
 
   void flush_standard_streams ()
   {
     fflush (stderr);
     fflush (stdout);
-    cerr << flush;
-    cout << flush;
+    std::cerr << std::flush;
+    std::cout << std::flush;
   }
 
   int capture_start (int theFDStd, int theFDLog)
@@ -140,7 +140,7 @@ static Standard_Integer CommandCmd (ClientData theClientData, Tcl_Interp* interp
   }
 
   if (doEcho || doLog)
-    dumpArgs (cout, argc, argv);
+    dumpArgs (std::cout, argc, argv);
 
   // run command
   try {
@@ -170,7 +170,7 @@ static Standard_Integer CommandCmd (ClientData theClientData, Tcl_Interp* interp
 
     // get the error message
     Standard_SStream ss;
-    ss << "** Exception ** " << anException << ends;
+    ss << "** Exception ** " << anException << std::ends;
     Tcl_SetResult(interp,(char*)(ss.str().c_str()),TCL_VOLATILE);
     code = TCL_ERROR;
   }
@@ -189,7 +189,7 @@ static Standard_Integer CommandCmd (ClientData theClientData, Tcl_Interp* interp
 
     // get the error message
     Standard_SStream ss;
-    ss << "** Exception ** " << theStdException.what() << " [" << typeid(theStdException).name() << "]" << ends;
+    ss << "** Exception ** " << theStdException.what() << " [" << typeid(theStdException).name() << "]" << std::ends;
     Tcl_SetResult (interp, (char*)(ss.str().c_str()), TCL_VOLATILE);
     code = TCL_ERROR;
   }
@@ -208,7 +208,7 @@ static Standard_Integer CommandCmd (ClientData theClientData, Tcl_Interp* interp
 
     // get the error message
     Standard_SStream ss;
-    ss << "** Exception ** UNKNOWN" << ends;
+    ss << "** Exception ** UNKNOWN" << std::ends;
     Tcl_SetResult (interp, (char* )(ss.str().c_str()), TCL_VOLATILE);
     code = TCL_ERROR;
   }
@@ -553,7 +553,7 @@ Draw_Interpretor::~Draw_Interpretor()
   }
   catch (Standard_Failure const&) {
 #ifdef OCCT_DEBUG
-    cout <<"Tcl_Exit have an exeption" << endl;
+    std::cout <<"Tcl_Exit have an exeption" << std::endl;
 #endif
   }
 #else
index 2193065..f3362bb 100644 (file)
@@ -50,7 +50,7 @@ static Standard_Boolean FindPluginFile (TCollection_AsciiString& thePluginName,
   if (thePluginName.IsEmpty()) {
     thePluginName += "DrawPlugin";
 #ifdef OCCT_DEBUG
-    cout << "Plugin file name has not been specified. Defaults to " << thePluginName.ToCString() << endl;
+    std::cout << "Plugin file name has not been specified. Defaults to " << thePluginName.ToCString() << std::endl;
 #endif
   }
 
@@ -94,16 +94,16 @@ static Standard_Boolean FindPluginFile (TCollection_AsciiString& thePluginName,
         OSD_Environment aCSFVarEnv ( aCSFVariable, aPluginDir );
         aCSFVarEnv.Build();
 #ifdef OCCT_DEBUG
-        cout << "Variable " << aCSFVariable.ToCString() << " has not been explicitly defined. Set to " << aPluginDir.ToCString() << endl;
+        std::cout << "Variable " << aCSFVariable.ToCString() << " has not been explicitly defined. Set to " << aPluginDir.ToCString() << std::endl;
 #endif
         if ( aCSFVarEnv.Failed() ) {
           aResult = Standard_False;
-          cout << FAILSTR "Failed to initialize " << aCSFVariable.ToCString() << " with " << aPluginDir.ToCString() << endl;
+          std::cout << FAILSTR "Failed to initialize " << aCSFVariable.ToCString() << " with " << aPluginDir.ToCString() << std::endl;
         }
       }
     } else {
       aResult = Standard_False;
-      cout << FAILSTR "File " << aPluginFileName.ToCString() << " not found" << endl;
+      std::cout << FAILSTR "File " << aPluginFileName.ToCString() << " not found" << std::endl;
     }
   }
   
@@ -127,7 +127,7 @@ static void Parse (Draw_MapOfAsciiString& theMap)
       TCollection_AsciiString aResource = aKey;
       if(myResources->Find(aResource.ToCString())) {
 #ifdef OCCT_DEBUG
-       cout << "Parse Value ==> " << myResources->Value(aResource.ToCString()) << endl;
+       std::cout << "Parse Value ==> " << myResources->Value(aResource.ToCString()) << std::endl;
 #endif
        TCollection_AsciiString aValue(myResources->Value(aResource.ToCString()));
        // parse aValue string
@@ -135,7 +135,7 @@ static void Parse (Draw_MapOfAsciiString& theMap)
        for(;;) {
          TCollection_AsciiString aCurKey = aValue.Token(" \t,", i++);
 #ifdef OCCT_DEBUG
-         cout << "Parse aCurKey = " << aCurKey.ToCString() << endl;
+         std::cout << "Parse aCurKey = " << aCurKey.ToCString() << std::endl;
 #endif
          if(aCurKey.IsEmpty()) break;
          if(!myResources->Find(aCurKey.ToCString())) {
@@ -146,7 +146,7 @@ static void Parse (Draw_MapOfAsciiString& theMap)
            aMap2.Add(aCurKey);
        }
       } else
-       cout <<"Pload : Resource = " << aResource << " is not found" << endl;
+       std::cout <<"Pload : Resource = " << aResource << " is not found" << std::endl;
       if(!aMap2.IsEmpty())
        Parse(aMap2);
       //
@@ -223,12 +223,12 @@ static Standard_Integer Pload (Draw_Interpretor& di,
     const TCollection_AsciiString& aKey = aMap.FindKey(j);
     TCollection_AsciiString aResource = aKey;
 #ifdef OCCT_DEBUG
-      cout << "aResource = " << aResource << endl;
+      std::cout << "aResource = " << aResource << std::endl;
 #endif
     if(myResources->Find(aResource.ToCString())) {
       const TCollection_AsciiString& aValue = myResources->Value(aResource.ToCString()); 
 #ifdef OCCT_DEBUG
-      cout << "Value ==> " << aValue << endl;
+      std::cout << "Value ==> " << aValue << std::endl;
 #endif
        
       //Draw::Load(di, aKey, aPluginFileName);
@@ -246,18 +246,18 @@ static Standard_Integer Pload (Draw_Interpretor& di,
       OSD_File aTclScriptFileDefaults ( aTclScriptFileNameDefaults );
       if (!aTclScriptDir.IsEmpty() && aTclScriptFile.Exists()) {
 #ifdef OCCT_DEBUG
-       cout << "Load " << aTclScriptFileName << " TclScript" << endl;
+       std::cout << "Load " << aTclScriptFileName << " TclScript" << std::endl;
 #endif
        di.EvalFile( aTclScriptFileName.ToCString() );
       } else if (!aPluginDir.IsEmpty() && aTclScriptFileDefaults.Exists()) {
 #ifdef OCCT_DEBUG
-       cout << "Load " << aTclScriptFileNameDefaults << " TclScript" << endl;
+       std::cout << "Load " << aTclScriptFileNameDefaults << " TclScript" << std::endl;
 #endif
        di.EvalFile( aTclScriptFileNameDefaults.ToCString() );
       }
   
     } else 
-      cout <<"Pload : Resource = " << aResource << " is not found" << endl;
+      std::cout <<"Pload : Resource = " << aResource << " is not found" << std::endl;
   }
   return 0;
 }
@@ -271,7 +271,7 @@ static Standard_Integer dtryload (Draw_Interpretor& di, Standard_Integer n, cons
 {
   if (n != 2)
   {
-    cout << "Error: specify path to library to be loaded" << endl;
+    std::cout << "Error: specify path to library to be loaded" << std::endl;
     return 1;
   }
 
index 0b55eb7..35c1b6f 100644 (file)
@@ -161,7 +161,7 @@ Standard_Boolean Draw_ProgressIndicator::Show(const Standard_Boolean force)
 Standard_Boolean Draw_ProgressIndicator::UserBreak()
 {
   if ( StopIndicator() == this ) {
-//    cout << "Progress Indicator - User Break: " << StopIndicator() << ", " << (void*)this << endl;
+//    std::cout << "Progress Indicator - User Break: " << StopIndicator() << ", " << (void*)this << std::endl;
     myBreak = Standard_True;
     ((Draw_Interpretor*)myDraw)->Eval ( "XProgress -stop 0" );
   }
index 99fe81c..692c895 100644 (file)
@@ -109,6 +109,6 @@ void  Draw_Segment2D::Whatis(Draw_Interpretor& S) const
 
 void  Draw_Segment2D::Dump(Standard_OStream& S) const
 {
-  S << setw(17) << myFirst.X() << " " << setw(17) << myFirst.Y() << " - "
-    << setw(17) << myLast.X() << " " << setw(17) << myLast.Y() << "\n";
+  S << std::setw(17) << myFirst.X() << " " << std::setw(17) << myFirst.Y() << " - "
+    << std::setw(17) << myLast.X() << " " << std::setw(17) << myLast.Y() << "\n";
 }
index b571def..f7ea808 100644 (file)
@@ -76,8 +76,8 @@ static Draw_SaveAndRestore* Draw_First = NULL;
 Draw_SaveAndRestore::Draw_SaveAndRestore
   (const char* name,
    Standard_Boolean (*test)(const Handle(Draw_Drawable3D)&),
-  void (*save)(const Handle(Draw_Drawable3D)&, ostream&),
-  Handle(Draw_Drawable3D) (*restore) (istream&),
+  void (*save)(const Handle(Draw_Drawable3D)&, std::ostream&),
+  Handle(Draw_Drawable3D) (*restore) (std::istream&),
   Standard_Boolean display) :
   myName(name),
   myTest(test),
@@ -93,10 +93,10 @@ Standard_Boolean Draw_SaveAndRestore::Test(const Handle(Draw_Drawable3D)&d)
 {return (*myTest) (d);}
 
 void Draw_SaveAndRestore::Save(const Handle(Draw_Drawable3D)& d, 
-                              ostream& os) const
+                              std::ostream& os) const
 { (*mySave) (d,os);}
 
-Handle(Draw_Drawable3D) Draw_SaveAndRestore::Restore(istream& is) const
+Handle(Draw_Drawable3D) Draw_SaveAndRestore::Restore(std::istream& is) const
 {return (*myRestore) (is);}
 
 //=======================================================================
@@ -109,18 +109,18 @@ static Standard_Boolean numtest(const Handle(Draw_Drawable3D)& d)
 }
 
 static void numsave (const Handle(Draw_Drawable3D)& theDrawable,
-                     ostream&                       theStream)
+                     std::ostream&                       theStream)
 {
   Handle(Draw_Number) aNum = Handle(Draw_Number)::DownCast (theDrawable);
-  ios::fmtflags aFlags = theStream.flags();
-  theStream.setf      (ios::scientific);
+  std::ios::fmtflags aFlags = theStream.flags();
+  theStream.setf      (std::ios::scientific);
   theStream.precision (15);
   theStream.width     (30);
   theStream << aNum->Value() << "\n";
   theStream.setf      (aFlags);
 }
 
-static Handle(Draw_Drawable3D) numrestore (istream& is)
+static Handle(Draw_Drawable3D) numrestore (std::istream& is)
 {
   Standard_Real val;
   is >> val;
@@ -142,9 +142,9 @@ static Standard_Integer save(Draw_Interpretor& di, Standard_Integer n, const cha
   if (n <= 2) return 1;
 
   const char* name = a[2];
-  ofstream os;
+  std::ofstream os;
   os.precision(15);
-  OSD_OpenStream(os, name, ios::out);
+  OSD_OpenStream(os, name, std::ios::out);
   if (!os.is_open() || !os.good())
   {
     di << "Cannot open file for writing "<<name;
@@ -208,9 +208,9 @@ static Standard_Integer restore(Draw_Interpretor& di, Standard_Integer n, const
   const char* fname = a[1];
   const char* name  = a[2];
   
-  filebuf fic;
-  istream in(&fic);
-  OSD_OpenStream (fic, fname, ios::in);
+  std::filebuf fic;
+  std::istream in(&fic);
+  OSD_OpenStream (fic, fname, std::ios::in);
   if (!fic.is_open()) {
     di << "Cannot open file for reading : "<<fname;
     return 1;
@@ -239,7 +239,7 @@ static Standard_Integer restore(Draw_Interpretor& di, Standard_Integer n, const
     {
       //assume that this file stores a DBRep_DrawableShape variable
       tool = aDBRepTool;
-      in.seekg(0, ios::beg);
+      in.seekg(0, std::ios::beg);
     }
 
     if (tool)
@@ -308,7 +308,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'))
-           cout << "Missed !!!" << endl;
+           std::cout << "Missed !!!" << std::endl;
          return 0;
        }
       }
@@ -388,7 +388,7 @@ static Standard_Integer draw(Draw_Interpretor& , Standard_Integer n, const char*
   if (n < 3) return 1;
   Standard_Integer id = Draw::Atoi(a[1]);
   if (!dout.HasView(id)) {
-    cout << "bad view number in draw"<<endl;
+    std::cout << "bad view number in draw"<<std::endl;
     return 1;
   }
   Standard_Integer mo = Draw::Atoi(a[2]);
@@ -587,7 +587,7 @@ static Standard_Integer set(Draw_Interpretor& di, Standard_Integer n, const char
 static Standard_Integer dsetenv(Draw_Interpretor& /*di*/, Standard_Integer argc, const char** argv)
 {
   if (argc < 2) {
-    cout << "Use: " << argv[0] << " {varname} [value]" << endl;
+    std::cout << "Use: " << argv[0] << " {varname} [value]" << std::endl;
     return 1;
   }
 
@@ -610,7 +610,7 @@ static Standard_Integer dsetenv(Draw_Interpretor& /*di*/, Standard_Integer argc,
 static Standard_Integer dgetenv(Draw_Interpretor& di, Standard_Integer argc, const char** argv)
 {
   if (argc < 2) {
-    cout << "Use: " << argv[0] << " {varname}" << endl;
+    std::cout << "Use: " << argv[0] << " {varname}" << std::endl;
     return 1;
   }
 
@@ -786,7 +786,7 @@ void Draw::Set(const Standard_CString name,
     Handle(Draw_Drawable3D) anOldD(reinterpret_cast<Draw_Drawable3D*>(aCD));
     if (!anOldD.IsNull()) {
       if (theVariables.Contains(anOldD) && anOldD->Protected()) {
-        cout << "variable is protected" << endl;
+        std::cout << "variable is protected" << std::endl;
         return;
       }
       anOldD.Nullify();
@@ -958,7 +958,7 @@ static Standard_Real ParseValue(char*& name)
     name++;
     x = Parse(name);
     if (*name != ')') 
-      cout << "Mismatched parenthesis" << endl;
+      std::cout << "Mismatched parenthesis" << std::endl;
     name++;
     break;
 
@@ -1008,7 +1008,7 @@ static Standard_Real ParseValue(char*& name)
              q++;
            }
            if (pc > 0) {
-             cout << "Unclosed parenthesis"<< endl;
+             std::cout << "Unclosed parenthesis"<< std::endl;
              x = 0;
            }
            else {
@@ -1044,7 +1044,7 @@ static Standard_Real ParseValue(char*& name)
                  aCommands.Reset();
                }
                if (aCommands.Eval(name) != 0) {
-                 cout << "Call of function " << name << " failed" << endl;
+                 std::cout << "Call of function " << name << " failed" << std::endl;
                  x = 0;
                }
                else
index 6e075af..62ccf4f 100644 (file)
@@ -47,7 +47,7 @@ static Standard_Boolean highlight = Standard_False;
 static Standard_Integer ps_vx, ps_vy;
 static Standard_Real ps_kx, ps_ky;
 static Standard_Integer ps_px, ps_py;
-static ostream* ps_stream;
+static std::ostream* ps_stream;
 static Standard_Integer ps_width[MAXCOLOR];
 static Standard_Real    ps_gray[MAXCOLOR];
 
@@ -645,7 +645,7 @@ void Draw_Viewer::PostScriptView (const Standard_Integer id,
                                  const Standard_Integer PYmin,
                                  const Standard_Integer PXmax,
                                  const Standard_Integer PYmax,
-                                 ostream& sortie) const
+                                 std::ostream& sortie) const
 {
   if (Draw_Batch) return;
   if (myViews[id]) {
index 6669647..e8d4099 100644 (file)
@@ -114,7 +114,7 @@ class Draw_Viewer {
                                    const Standard_Integer PYmin,
                                    const Standard_Integer PXmax,
                                    const Standard_Integer PYmax,
-                                   ostream& sortie) const;
+                                   std::ostream& sortie) const;
   Standard_EXPORT void   PostColor(const Standard_Integer icol,
                              const Standard_Integer width,
                              const Standard_Real    gray);
index 626ed07..4602f31 100644 (file)
@@ -1106,7 +1106,7 @@ Standard_Boolean Init_Appli()
     OCC_CATCH_SIGNALS
     Tk_Init(interp) ;
   } catch  (Standard_Failure const&) {
-    cout <<" Pb au lancement de TK_Init "<<endl;
+    std::cout <<" Pb au lancement de TK_Init "<<std::endl;
   }
 
   Tcl_StaticPackage(interp, "Tk", Tk_Init, (Tcl_PackageInitProc *) NULL);
@@ -2034,7 +2034,7 @@ Standard_Boolean Init_Appli(HINSTANCE hInst,
                            0,                       // use default creation flags
                            &IDThread);
   if (!hThread) {
-    cout << "Failed to create Tcl/Tk main loop thread. Switching to batch mode..." << endl;
+    std::cout << "Failed to create Tcl/Tk main loop thread. Switching to batch mode..." << std::endl;
     Draw_Batch = Standard_True;
     Draw_Interpretor& aCommands = Draw::GetInterpretor();
     aCommands.Init();
@@ -2045,7 +2045,7 @@ Standard_Boolean Init_Appli(HINSTANCE hInst,
       OCC_CATCH_SIGNALS
       Tk_Init(interp);
     } catch  (Standard_Failure& anExcept) {
-      cout << "Failed to initialize Tk: " << anExcept.GetMessageString() << endl;
+      std::cout << "Failed to initialize Tk: " << anExcept.GetMessageString() << std::endl;
     }
 
     Tcl_StaticPackage(interp, "Tk", Tk_Init, (Tcl_PackageInitProc *) NULL);
@@ -2303,15 +2303,15 @@ static DWORD WINAPI tkLoop(VOID)
       if (res != TCL_OK)
       {
 #if ((TCL_MAJOR_VERSION > 8) || ((TCL_MAJOR_VERSION == 8) && (TCL_MINOR_VERSION >= 5)))
-        cout << "tkLoop: error in Tk initialization. Tcl reported: " << Tcl_GetStringResult(interp) << endl;
+        std::cout << "tkLoop: error in Tk initialization. Tcl reported: " << Tcl_GetStringResult(interp) << std::endl;
 #else
-        cout << "tkLoop: error in Tk initialization. Tcl reported: " << interp->result << endl;
+        std::cout << "tkLoop: error in Tk initialization. Tcl reported: " << interp->result << std::endl;
 #endif
       }
     }
     catch (Standard_Failure)
     {
-      cout << "tkLoop: exception in TK_Init\n";
+      std::cout << "tkLoop: exception in TK_Init\n";
     }
     Tcl_StaticPackage (interp, "Tk", Tk_Init, (Tcl_PackageInitProc* ) NULL);
     mainWindow = Tk_MainWindow (interp);
@@ -2322,7 +2322,7 @@ static DWORD WINAPI tkLoop(VOID)
 #else
       fprintf (stderr, "%s\n", interp->result);
 #endif
-      cout << "tkLoop: Tk_MainWindow() returned NULL. Exiting...\n";
+      std::cout << "tkLoop: Tk_MainWindow() returned NULL. Exiting...\n";
       Tcl_Exit (0);
     }
     Tk_Name(mainWindow) = Tk_GetUid (Tk_SetAppName (mainWindow, "Draw"));
@@ -2396,7 +2396,7 @@ void Run_Appli(HWND hWnd)
                            0,                       // use default creation flags
                            &IDThread);              // returns thread identifier
     if (!hThread) {
-      cout << "pb in creation of the thread reading stdin" << endl;
+      std::cout << "pb in creation of the thread reading stdin" << std::endl;
       Draw_IsConsoleSubsystem = Standard_False;
       Init_Appli (GetModuleHandleW (NULL),
                   GetModuleHandleW (NULL),
index 51e3537..a623c33 100644 (file)
@@ -82,6 +82,6 @@ void DrawDim_PlanarDiameter::DrawOn(Draw_Display& dis) const
     }
   }  
 #ifdef OCCT_DEBUG
-  cout << " DrawDim_PlanarDiameter::DrawOn : dimension error" << endl;
+  std::cout << " DrawDim_PlanarDiameter::DrawOn : dimension error" << std::endl;
 #endif
 }
index 3013316..41d7147 100644 (file)
@@ -119,6 +119,6 @@ void DrawDim_PlanarDistance::DrawOn(Draw_Display& dis) const
     }
   } 
 #ifdef OCCT_DEBUG
-  cout << " DrawDim_PlanarDistance::DrawOn : dimension error" << endl;
+  std::cout << " DrawDim_PlanarDistance::DrawOn : dimension error" << std::endl;
 #endif
 }
index fe8f777..d27f176 100644 (file)
@@ -81,6 +81,6 @@ void DrawDim_PlanarRadius::DrawOn(Draw_Display& dis) const
     }
   }  
 #ifdef OCCT_DEBUG
-  cout << " DrawDim_PlanarRadius::DrawOn : dimension error" << endl;
+  std::cout << " DrawDim_PlanarRadius::DrawOn : dimension error" << std::endl;
 #endif
 }
index ca0d15b..9babba8 100644 (file)
@@ -83,7 +83,7 @@ void DrawDim_Radius::DrawOn(Draw_Display& dis) const
 //void AIS_RadiusDimension::ComputeOneFaceRadius(const Handle(Prs3d_Presentation)& aPresentation)
 //{
 #ifdef OCCT_DEBUG
-  cout << "entree dans computeonefaceradius"<< endl;
+  std::cout << "entree dans computeonefaceradius"<< std::endl;
 #endif
   BRepAdaptor_Surface surfAlgo (TopoDS::Face(myFShape));
   Standard_Real uFirst, uLast, vFirst, vLast;
index 7acc396..feb6d5f 100644 (file)
@@ -1430,13 +1430,13 @@ static Standard_Boolean ctest(const Handle(Draw_Drawable3D)& d)
   return d->IsInstance(STANDARD_TYPE(DrawTrSurf_Curve));
 }
 
-static void csave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void csave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
 {
   Handle(DrawTrSurf_Curve) N = Handle(DrawTrSurf_Curve)::DownCast(d);
   GeomTools_CurveSet::PrintCurve(N->GetCurve(),OS,Standard_True);
 }
 
-static Handle(Draw_Drawable3D) crestore (istream& is)
+static Handle(Draw_Drawable3D) crestore (std::istream& is)
 {
   Handle(Geom_Curve) G = GeomTools_CurveSet::ReadCurve(is);
   Handle(DrawTrSurf_Curve) N = 
@@ -1460,14 +1460,14 @@ static Standard_Boolean bzctest(const Handle(Draw_Drawable3D)& d)
   return d->IsInstance(STANDARD_TYPE(DrawTrSurf_BezierCurve));
 }
 
-static void bzcsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void bzcsave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
 {
   Handle(DrawTrSurf_BezierCurve) 
     N = Handle(DrawTrSurf_BezierCurve)::DownCast(d);
   GeomTools_CurveSet::PrintCurve(N->GetCurve(),OS,Standard_True);
 }
 
-static Handle(Draw_Drawable3D) bzcrestore (istream& is)
+static Handle(Draw_Drawable3D) bzcrestore (std::istream& is)
 {
   Handle(Geom_BezierCurve) G = 
     Handle(Geom_BezierCurve)::DownCast (GeomTools_CurveSet::ReadCurve(is));
@@ -1493,14 +1493,14 @@ static Standard_Boolean bsctest(const Handle(Draw_Drawable3D)& d)
   return d->IsInstance(STANDARD_TYPE(DrawTrSurf_BSplineCurve));
 }
 
-static void bscsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void bscsave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
 {
   Handle(DrawTrSurf_BSplineCurve) 
     N = Handle(DrawTrSurf_BSplineCurve)::DownCast(d);
   GeomTools_CurveSet::PrintCurve(N->GetCurve(),OS,Standard_True);
 }
 
-static Handle(Draw_Drawable3D) bscrestore (istream& is)
+static Handle(Draw_Drawable3D) bscrestore (std::istream& is)
 {
   Handle(Geom_BSplineCurve) G =
     Handle(Geom_BSplineCurve)::DownCast (GeomTools_CurveSet::ReadCurve(is));
@@ -1527,13 +1527,13 @@ static Standard_Boolean c2dtest(const Handle(Draw_Drawable3D)& d)
   return d->IsInstance(STANDARD_TYPE(DrawTrSurf_Curve2d));
 }
 
-static void c2dsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void c2dsave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
 {
   Handle(DrawTrSurf_Curve2d) N = Handle(DrawTrSurf_Curve2d)::DownCast(d);
   GeomTools_Curve2dSet::PrintCurve2d(N->GetCurve(),OS,Standard_True);
 }
 
-static Handle(Draw_Drawable3D) c2drestore (istream& is)
+static Handle(Draw_Drawable3D) c2drestore (std::istream& is)
 {
   Handle(Geom2d_Curve) G = GeomTools_Curve2dSet::ReadCurve2d(is);
   Handle(DrawTrSurf_Curve2d) N = 
@@ -1557,14 +1557,14 @@ static Standard_Boolean bzc2dtest(const Handle(Draw_Drawable3D)& d)
   return d->IsInstance(STANDARD_TYPE(DrawTrSurf_BezierCurve2d));
 }
 
-static void bzc2dsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void bzc2dsave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
 {
   Handle(DrawTrSurf_BezierCurve2d) 
     N = Handle(DrawTrSurf_BezierCurve2d)::DownCast(d);
   GeomTools_Curve2dSet::PrintCurve2d(N->GetCurve(),OS,Standard_True);
 }
 
-static Handle(Draw_Drawable3D) bzc2drestore (istream& is)
+static Handle(Draw_Drawable3D) bzc2drestore (std::istream& is)
 {
   Handle(Geom2d_BezierCurve) G =
     Handle(Geom2d_BezierCurve)::DownCast (GeomTools_Curve2dSet::ReadCurve2d(is));
@@ -1590,14 +1590,14 @@ static Standard_Boolean bsc2dtest(const Handle(Draw_Drawable3D)& d)
   return d->IsInstance(STANDARD_TYPE(DrawTrSurf_BSplineCurve2d));
 }
 
-static void bsc2dsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void bsc2dsave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
 {
   Handle(DrawTrSurf_BSplineCurve2d) 
     N = Handle(DrawTrSurf_BSplineCurve2d)::DownCast(d);
   GeomTools_Curve2dSet::PrintCurve2d(N->GetCurve(),OS,Standard_True);
 }
 
-static Handle(Draw_Drawable3D) bsc2drestore (istream& is)
+static Handle(Draw_Drawable3D) bsc2drestore (std::istream& is)
 {
   Handle(Geom2d_BSplineCurve) G =
     Handle(Geom2d_BSplineCurve)::DownCast (GeomTools_Curve2dSet::ReadCurve2d(is));
@@ -1624,13 +1624,13 @@ static Standard_Boolean stest(const Handle(Draw_Drawable3D)& d)
   return d->IsInstance(STANDARD_TYPE(DrawTrSurf_Surface));
 }
 
-static void ssave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void ssave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
 {
   Handle(DrawTrSurf_Surface) N = Handle(DrawTrSurf_Surface)::DownCast(d);
   GeomTools_SurfaceSet::PrintSurface(N->GetSurface(),OS,Standard_True);
 }
 
-static Handle(Draw_Drawable3D) srestore (istream& is)
+static Handle(Draw_Drawable3D) srestore (std::istream& is)
 {
   Handle(Geom_Surface) G = GeomTools_SurfaceSet::ReadSurface(is);
   Handle(DrawTrSurf_Surface) N = 
@@ -1657,14 +1657,14 @@ static Standard_Boolean bzstest(const Handle(Draw_Drawable3D)& d)
   return d->IsInstance(STANDARD_TYPE(DrawTrSurf_BezierSurface));
 }
 
-static void bzssave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void bzssave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
 {
   Handle(DrawTrSurf_BezierSurface) 
     N = Handle(DrawTrSurf_BezierSurface)::DownCast(d);
   GeomTools_SurfaceSet::PrintSurface(N->GetSurface(),OS,Standard_True);
 }
 
-static Handle(Draw_Drawable3D) bzsrestore (istream& is)
+static Handle(Draw_Drawable3D) bzsrestore (std::istream& is)
 {
   Handle(Geom_BezierSurface) G =
     Handle(Geom_BezierSurface)::DownCast (GeomTools_SurfaceSet::ReadSurface(is));
@@ -1692,14 +1692,14 @@ static Standard_Boolean bsstest(const Handle(Draw_Drawable3D)& d)
   return d->IsInstance(STANDARD_TYPE(DrawTrSurf_BSplineSurface));
 }
 
-static void bsssave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void bsssave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
 {
   Handle(DrawTrSurf_BSplineSurface) 
     N = Handle(DrawTrSurf_BSplineSurface)::DownCast(d);
   GeomTools_SurfaceSet::PrintSurface(N->GetSurface(),OS,Standard_True);
 }
 
-static Handle(Draw_Drawable3D) bssrestore (istream& is)
+static Handle(Draw_Drawable3D) bssrestore (std::istream& is)
 {
   Handle(Geom_BSplineSurface) G =
     Handle(Geom_BSplineSurface)::DownCast (GeomTools_SurfaceSet::ReadSurface(is));
@@ -1737,16 +1737,16 @@ static Standard_Boolean pnttest(const Handle(Draw_Drawable3D)& d)
   return d->IsInstance(STANDARD_TYPE(DrawTrSurf_Point));
 }
 
-static void pntsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void pntsave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
 {
   Handle(DrawTrSurf_Point) 
     N = Handle(DrawTrSurf_Point)::DownCast(d);
 #if !defined(_MSC_VER) && !defined(__sgi) && !defined(IRIX)
-  ios::fmtflags F = OS.flags();
-  OS.setf(ios::scientific,ios::floatfield);
+  std::ios::fmtflags F = OS.flags();
+  OS.setf(std::ios::scientific,std::ios::floatfield);
   OS.precision(15);
 #else
-  long form = OS.setf(ios::scientific);
+  long form = OS.setf(std::ios::scientific);
   std::streamsize prec = OS.precision(15);
 #endif
   gp_Pnt P = N->Point();
@@ -1766,7 +1766,7 @@ static void pntsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
 #endif
 }
 
-static Handle(Draw_Drawable3D) pntrestore (istream& is)
+static Handle(Draw_Drawable3D) pntrestore (std::istream& is)
 {
   Standard_Integer is3d;
   is >> is3d;
@@ -1799,16 +1799,16 @@ static Standard_Boolean triatest(const Handle(Draw_Drawable3D)& d)
   return d->IsInstance(STANDARD_TYPE(DrawTrSurf_Triangulation));
 }
 
-static void triasave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void triasave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
 {
   Handle(DrawTrSurf_Triangulation) 
     T = Handle(DrawTrSurf_Triangulation)::DownCast(d);
 #if !defined(_MSC_VER) && !defined(__sgi) && !defined(IRIX)
-  ios::fmtflags F = OS.flags();
-  OS.setf(ios::scientific,ios::floatfield);
+  std::ios::fmtflags F = OS.flags();
+  OS.setf(std::ios::scientific,std::ios::floatfield);
   OS.precision(15);
 #else
-  long form = OS.setf(ios::scientific);
+  long form = OS.setf(std::ios::scientific);
   std::streamsize prec = OS.precision(15);
 #endif
   Poly::Write(T->Triangulation(),OS);
@@ -1820,7 +1820,7 @@ static void triasave(const Handle(Draw_Drawable3D)&d, ostream& OS)
 #endif
 }
 
-static Handle(Draw_Drawable3D) triarestore (istream& is)
+static Handle(Draw_Drawable3D) triarestore (std::istream& is)
 {
   return new DrawTrSurf_Triangulation(Poly::ReadTriangulation(is));
 }
@@ -1840,16 +1840,16 @@ static Standard_Boolean poly3dtest(const Handle(Draw_Drawable3D)& d)
   return d->IsInstance(STANDARD_TYPE(DrawTrSurf_Polygon3D));
 }
 
-static void poly3dsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void poly3dsave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
 {
   Handle(DrawTrSurf_Polygon3D) 
     T = Handle(DrawTrSurf_Polygon3D)::DownCast(d);
 #if !defined(_MSC_VER) && !defined(__sgi) && !defined(IRIX)
-  ios::fmtflags F = OS.flags();
-  OS.setf(ios::scientific,ios::floatfield);
+  std::ios::fmtflags F = OS.flags();
+  OS.setf(std::ios::scientific,std::ios::floatfield);
   OS.precision(15);
 #else
-  long form = OS.setf(ios::scientific);
+  long form = OS.setf(std::ios::scientific);
   std::streamsize prec = OS.precision(15);
 #endif
   Poly::Write(T->Polygon3D(),OS);
@@ -1861,7 +1861,7 @@ static void poly3dsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
 #endif
 }
 
-static Handle(Draw_Drawable3D) poly3drestore (istream& is)
+static Handle(Draw_Drawable3D) poly3drestore (std::istream& is)
 {
   return new DrawTrSurf_Polygon3D(Poly::ReadPolygon3D(is));
 }
@@ -1880,16 +1880,16 @@ static Standard_Boolean poly2dtest(const Handle(Draw_Drawable3D)& d)
   return d->IsInstance(STANDARD_TYPE(DrawTrSurf_Polygon2D));
 }
 
-static void poly2dsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void poly2dsave(const Handle(Draw_Drawable3D)&d, std::ostream& OS)
 {
   Handle(DrawTrSurf_Polygon2D) 
     T = Handle(DrawTrSurf_Polygon2D)::DownCast(d);
 #if !defined(_MSC_VER) && !defined(__sgi) && !defined(IRIX)
-  ios::fmtflags F = OS.flags();
-  OS.setf(ios::scientific, ios::floatfield);
+  std::ios::fmtflags F = OS.flags();
+  OS.setf(std::ios::scientific, std::ios::floatfield);
   OS.precision(15);
 #else
-  long form = OS.setf(ios::scientific);
+  long form = OS.setf(std::ios::scientific);
   std::streamsize prec = OS.precision(15);
 #endif
   Poly::Write(T->Polygon2D(),OS);
@@ -1901,7 +1901,7 @@ static void poly2dsave(const Handle(Draw_Drawable3D)&d, ostream& OS)
 #endif
 }
 
-static Handle(Draw_Drawable3D) poly2drestore (istream& is)
+static Handle(Draw_Drawable3D) poly2drestore (std::istream& is)
 {
   return new DrawTrSurf_Polygon2D(Poly::ReadPolygon2D(is));
 }
index fe1667b..ab1bf49 100644 (file)
@@ -125,7 +125,7 @@ const char* DrawTrSurf_Set (const char* theName, const gp_Pnt2d& thePnt2d)
 void DrawTrSurf_Get(const char* name, Handle(Standard_Transient)& G)
 {
   Handle(Geom_Geometry) GG = DrawTrSurf::Get(name);
-  cout << "Nom : " << name << endl;
+  std::cout << "Nom : " << name << std::endl;
   if (!GG.IsNull()) {
     G = GG;
     return;
@@ -137,6 +137,6 @@ void DrawTrSurf_Get(const char* name, Handle(Standard_Transient)& G)
     return;
   }
 
-  cout << "*** Not a geometric object ***" << endl;
+  std::cout << "*** Not a geometric object ***" << std::endl;
 }
 */
index 53a7855..5f9d292 100644 (file)
@@ -185,17 +185,17 @@ Handle(Draw_Drawable3D) DrawTrSurf_Point::Copy() const
 void DrawTrSurf_Point::Dump(Standard_OStream& S) const 
 {
 #if !defined(_MSC_VER) && !defined(__sgi) && !defined(IRIX)
-  ios::fmtflags F = S.flags();
-  S.setf(ios::scientific,ios::floatfield);
+  std::ios::fmtflags F = S.flags();
+  S.setf(std::ios::scientific,std::ios::floatfield);
   S.precision(15);
 #else
-  long form = S.setf(ios::scientific);
+  long form = S.setf(std::ios::scientific);
   std::streamsize prec = S.precision(15);
 #endif
   if (is3D)
-    S << "Point : " << myPoint.X() << ", " << myPoint.Y() << ", " << myPoint.Z() <<endl;
+    S << "Point : " << myPoint.X() << ", " << myPoint.Y() << ", " << myPoint.Z() <<std::endl;
   else
-    S << "Point 2d : " << myPoint.X() << ", " << myPoint.Y() <<endl;
+    S << "Point 2d : " << myPoint.X() << ", " << myPoint.Y() <<std::endl;
 #if !defined(_MSC_VER) && !defined(__sgi) && !defined(IRIX)
   S.setf(F);
 #else
index 64e3f71..2cf7083 100644 (file)
@@ -58,7 +58,7 @@ void DsgPrs_OffsetPresentation::Add (const Handle(Prs3d_Presentation)& aPresenta
     L3 = gce_MakeLin(Proj1,Proj2);
   }
   else {
-    //cout<<"DsgPrs_OffsetPresentation Cote nulle"<<endl;
+    //std::cout<<"DsgPrs_OffsetPresentation Cote nulle"<<std::endl;
     DimNulle = Standard_True;
     L3 = gp_Lin(Proj1,aDirection); 
     gp_Vec v4 (Proj1,OffsetPoint);
index c3f678b..2dfa212 100644 (file)
@@ -200,7 +200,7 @@ Standard_Integer Extrema_FuncExtCS::GetStateNumber()
   math_Vector Sol(1, 3), UVSol(1, 3);
   UVSol(1) = myt; UVSol(2) = myU; UVSol(3) = myV;
   Value(UVSol, Sol);
-  cout <<"F(1)= "<<Sol(1)<<" F(2)= "<<Sol(2)<<" F(3)= "<<Sol(3)<<endl;
+  std::cout <<"F(1)= "<<Sol(1)<<" F(2)= "<<Sol(2)<<" F(3)= "<<Sol(3)<<std::endl;
 #endif
   //comparison of solution with previous solutions
   Standard_Real tol2d = Precision::PConfusion() * Precision::PConfusion();
index c401f4c..642e0ea 100644 (file)
@@ -211,7 +211,7 @@ Standard_Integer Extrema_FuncExtSS::GetStateNumber ()
   math_Vector Sol(1, 4), UVSol(1, 4);
   UVSol(1) = myU1; UVSol(2) = myV1; UVSol(3) = myU2; UVSol(4) = myV2;
   Value(UVSol, Sol);
-  cout <<"F(1)= "<<Sol(1)<<" F(2)= "<<Sol(2)<<" F(3)= "<<Sol(3)<<" F(4)= "<<Sol(4)<<endl;
+  std::cout <<"F(1)= "<<Sol(1)<<" F(2)= "<<Sol(2)<<" F(3)= "<<Sol(3)<<" F(4)= "<<Sol(4)<<std::endl;
 #endif
 
   mySqDist.Append(myP1.SquareDistance(myP2));
index e53e416..cdc624c 100644 (file)
@@ -207,7 +207,7 @@ Standard_Boolean FEmTool_Assembly::Solve()
 
 #ifdef OCCT_DEBUG
   if (!IsSolved) {
-    cout << "Solve Echec  H = " << endl;
+    std::cout << "Solve Echec  H = " << std::endl;
     H->OutM();
   }
 #endif
@@ -289,7 +289,7 @@ Standard_Boolean FEmTool_Assembly::Solve()
       }
 //-----------------------------------------------------------------------
 //      for(i = FirstIndexes.Lower(); i <= FirstIndexes.Upper(); i++)
-//     cout << "FirstIndexes(" << i << ") = " << FirstIndexes(i) << endl;
+//     std::cout << "FirstIndexes(" << i << ") = " << FirstIndexes(i) << std::endl;
       //      FirstIndexes.Init(1); // temporary GHGt is full matrix
       GHGt = new FEmTool_ProfileMatrix(FirstIndexes);
     }
index b61ab76..1f4e900 100644 (file)
@@ -254,32 +254,32 @@ Standard_Boolean FEmTool_ProfileMatrix::IsInProfile(const Standard_Integer i,
  void FEmTool_ProfileMatrix::OutM() const
 {
   Standard_Integer i, j;
-  cout<<"Matrix A"<<endl;
+  std::cout<<"Matrix A"<<std::endl;
   for(i = 1; i <= RowNumber(); i++) {
     for(j = 1; j < i - profile(1, i); j++) 
-      cout<<"0 ";
+      std::cout<<"0 ";
 
     for(j = profile(2, i) - profile(1, i); j <= profile(2, i); j++) 
-      cout<<ProfileMatrix->Value(j)<<" ";
-    cout<<endl;
+      std::cout<<ProfileMatrix->Value(j)<<" ";
+    std::cout<<std::endl;
   }
 
-  cout<<"NextCoeff"<<endl;
+  std::cout<<"NextCoeff"<<std::endl;
   for(i = 1; i <= profile(2, RowNumber()); i++)
-    cout<<NextCoeff->Value(i)<<" ";
-  cout<<endl;
+    std::cout<<NextCoeff->Value(i)<<" ";
+  std::cout<<std::endl;
 }
 
  void FEmTool_ProfileMatrix::OutS() const
 {
   Standard_Integer i, j;
-  cout<<"Matrix S"<<endl;
+  std::cout<<"Matrix S"<<std::endl;
   for(i = 1; i <= RowNumber(); i++) {
     for(j = 1; j < i - profile(1, i); j++) 
-      cout<<"0 ";
+      std::cout<<"0 ";
 
     for(j = profile(2, i) - profile(1, i); j <= profile(2, i); j++) 
-      cout<<SMatrix->Value(j)<<" ";
-    cout<<endl;
+      std::cout<<SMatrix->Value(j)<<" ";
+    std::cout<<std::endl;
   }
 }
index e23394c..cf85fd3 100644 (file)
@@ -76,29 +76,29 @@ Storage_Error FSD_CmpFile::Open(const TCollection_AsciiString& aName, const Stor
     }
     case Storage_VSRead:
     {
-      // ios::nocreate is not portable
+      // std::ios::nocreate is not portable
 #if !defined(IRIX) && !defined(DECOSF1)
-      anOpenMode = ios::in | ios::binary;
+      anOpenMode = std::ios::in | std::ios::binary;
 #else
-      anOpenMode = ios::in;
+      anOpenMode = std::ios::in;
 #endif
       break;
     }
     case Storage_VSWrite:
     {
 #if !defined(IRIX) && !defined(DECOSF1)
-      anOpenMode = ios::out | ios::binary;
+      anOpenMode = std::ios::out | std::ios::binary;
 #else
-      anOpenMode = ios::out;
+      anOpenMode = std::ios::out;
 #endif
       break;
     }
     case Storage_VSReadWrite:
     {
 #if !defined(IRIX) && !defined(DECOSF1)
-      anOpenMode = ios::in | ios::out | ios::binary;
+      anOpenMode = std::ios::in | std::ios::out | std::ios::binary;
 #else
-      anOpenMode = ios::in | ios::out;
+      anOpenMode = std::ios::in | std::ios::out;
 #endif
       break;
     }
@@ -348,7 +348,7 @@ void FSD_CmpFile::ReadPersistentObjectHeader(Standard_Integer& aRef,
   }
 
   if (!(myStream >> aType)) throw Storage_StreamTypeMismatchError();
-  //  cout << "REF:" << aRef << " TYPE:"<< aType << endl;
+  //  std::cout << "REF:" << aRef << " TYPE:"<< aType << std::endl;
 }
 
 //=======================================================================
@@ -358,7 +358,7 @@ void FSD_CmpFile::ReadPersistentObjectHeader(Standard_Integer& aRef,
 
 void FSD_CmpFile::BeginReadPersistentObjectData()
 {
-  //cout << "BeginReadPersistentObjectData" << endl;
+  //std::cout << "BeginReadPersistentObjectData" << std::endl;
 }
 
 //=======================================================================
@@ -368,7 +368,7 @@ void FSD_CmpFile::BeginReadPersistentObjectData()
 
 void FSD_CmpFile::BeginReadObjectData()
 {
-  //  cout << "BeginReadObjectData" << endl;
+  //  std::cout << "BeginReadObjectData" << std::endl;
 }
 
 //=======================================================================
@@ -378,7 +378,7 @@ void FSD_CmpFile::BeginReadObjectData()
 
 void FSD_CmpFile::EndReadObjectData()
 {
-  //  cout << "EndReadObjectData" << endl;
+  //  std::cout << "EndReadObjectData" << std::endl;
 }
 
 //=======================================================================
@@ -400,5 +400,5 @@ void FSD_CmpFile::EndReadPersistentObjectData()
   if (c == '\r') {
     myStream.get(c);
   }
-  //  cout << "EndReadPersistentObjectData" << endl;
+  //  std::cout << "EndReadPersistentObjectData" << std::endl;
 }
index 7731cb5..9a81de0 100644 (file)
@@ -18,6 +18,6 @@
 #include <stdio.h>
 #include <Standard_Stream.hxx>
 
-typedef fstream FSD_FStream;
+typedef std::fstream FSD_FStream;
 
 #endif
index c02ee5c..2bdf0f5 100644 (file)
@@ -91,18 +91,18 @@ Storage_Error FSD_File::Open(const TCollection_AsciiString& aName,const Storage_
       }
       case Storage_VSRead:
       {
-        // ios::nocreate is not portable
-        anOpenMode = ios::in;
+        // std::ios::nocreate is not portable
+        anOpenMode = std::ios::in;
         break;
       }
       case Storage_VSWrite:
       {
-        anOpenMode = ios::out;
+        anOpenMode = std::ios::out;
         break;
       }
       case Storage_VSReadWrite:
       {
-        anOpenMode = ios::in | ios::out;
+        anOpenMode = std::ios::in | std::ios::out;
         break;
       }
     }
@@ -511,10 +511,10 @@ Storage_BaseDriver& FSD_File::GetCharacter(Standard_Character& aValue)
   unsigned short i = 0;
   if (!(myStream >> i)) {
     // SGI : donne une erreur mais a une bonne valeur pour les caracteres ecrits
-    //       signes (-80 fait ios::badbit, mais la variable i est initialisee)
+    //       signes (-80 fait std::ios::badbit, mais la variable i est initialisee)
     //
     if (i == 0) throw Storage_StreamTypeMismatchError();
-    myStream.clear(ios::goodbit); // .clear(0) is not portable
+    myStream.clear(std::ios::goodbit); // .clear(0) is not portable
   }
   aValue = (char)i;
 
@@ -1267,7 +1267,7 @@ void FSD_File::ReadPersistentObjectHeader(Standard_Integer& aRef,
   }
 
   if (!(myStream >> aType)) throw Storage_StreamTypeMismatchError();
-//  cout << "REF:" << aRef << " TYPE:"<< aType << endl;
+//  std::cout << "REF:" << aRef << " TYPE:"<< aType << std::endl;
 }
 
 //=======================================================================
@@ -1286,7 +1286,7 @@ void FSD_File::BeginReadPersistentObjectData()
     myStream.get(c);
   }
 
-//cout << "BeginReadPersistentObjectData" << endl;
+//std::cout << "BeginReadPersistentObjectData" << std::endl;
 }
 
 //=======================================================================
@@ -1305,7 +1305,7 @@ void FSD_File::BeginReadObjectData()
     myStream.get(c);
   }
 
-//  cout << "BeginReadObjectData" << endl;
+//  std::cout << "BeginReadObjectData" << std::endl;
 }
 
 //=======================================================================
@@ -1324,7 +1324,7 @@ void FSD_File::EndReadObjectData()
     myStream.get(c);
   }
 
-//  cout << "EndReadObjectData" << endl;
+//  std::cout << "EndReadObjectData" << std::endl;
 }
 
 //=======================================================================
@@ -1351,7 +1351,7 @@ void FSD_File::EndReadPersistentObjectData()
     }
     myStream.get(c);
   }
-//  cout << "EndReadPersistentObjectData" << endl;
+//  std::cout << "EndReadPersistentObjectData" << std::endl;
 }
 
 //=======================================================================
index 60dde67..ea843f9 100644 (file)
@@ -441,7 +441,7 @@ Standard_Boolean FairCurve_Batten::Compute(const gp_Vec2d& DeltaP1,
  } 
 
 // For eventual debug
-//  Newton.Dump(cout);
+//  Newton.Dump(std::cout);
    
  return OkCompute;
 } 
@@ -531,31 +531,31 @@ void FairCurve_Batten::Dump(Standard_OStream& o) const
 // ==================================================================
 {
 
-o << "  Batten       |"; o.width(7); o<< "Old  |   New" << endl;
-o << "  P1    X      |"; o.width(7); o<<  OldP1.X() << " | " << NewP1.X() << endl;
-o << "        Y      |"; o.width(7); o<<  OldP1.Y() << " | " << NewP1.Y() << endl;
-o << "  P2    X      |"; o.width(7); o<<  OldP2.X() << " | " << NewP2.X() << endl;
-o << "        Y      |"; o.width(7); o<<  OldP2.Y() << " | " << NewP2.Y() << endl;
-o << "      Angle1   |"; o.width(7); o<<  OldAngle1 << " | " << NewAngle1 << endl;
-o << "      Angle2   |"; o.width(7); o<<  OldAngle2 << " | " << NewAngle2 << endl;
-o << "      Height   |"; o.width(7); o<<  OldHeight << " | " << NewHeight << endl;
-o << "      Slope    |"; o.width(7); o<<  OldSlope  << " | " << NewSlope << endl; 
-o << " SlidingFactor |"; o.width(7); o<<  OldSlidingFactor << " | " << NewSlidingFactor << endl;
-o << " FreeSliding   |"; o.width(7); o<<  OldFreeSliding << " | " << NewFreeSliding << endl; 
-o << " ConstrOrder1  |"; o.width(7); o<<  OldConstraintOrder1 << " | " << NewConstraintOrder1 << endl; 
-o << " ConstrOrder2  |" ; o.width(7); o<<  OldConstraintOrder2 << " | " << NewConstraintOrder2 << endl;
+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;
  switch (myCode) {
    case FairCurve_OK : 
-     o  << "AnalysisCode : Ok" << endl;
+     o  << "AnalysisCode : Ok" << std::endl;
        break;
    case  FairCurve_NotConverged : 
-     o << "AnalysisCode : NotConverged" << endl;
+     o << "AnalysisCode : NotConverged" << std::endl;
        break;
    case  FairCurve_InfiniteSliding : 
-     o << "AnalysisCode : InfiniteSliding" << endl;
+     o << "AnalysisCode : InfiniteSliding" << std::endl;
        break;
    case  FairCurve_NullHeight : 
-     o << "AnalysisCode : NullHeight" << endl;
+     o << "AnalysisCode : NullHeight" << std::endl;
        break;
      } 
 }
index 68005d3..f31b438 100644 (file)
@@ -444,8 +444,8 @@ void FairCurve_Energy::ComputePoles(const math_Vector& X)
                                                            // is free as the last value of X is reserved.
 // calculation of pole constraints
 // for (ii=MyPoles->Lower();ii<=MyPoles->Upper();ii++) {
-// cout << ii << " X = " <<  MyPoles->Value(ii).X() << 
-//                " Y = " <<  MyPoles->Value(ii).Y() << endl;}
+// std::cout << ii << " X = " <<  MyPoles->Value(ii).X() << 
+//                " Y = " <<  MyPoles->Value(ii).Y() << std::endl;}
   
   if (MyContrOrder1 >= 1) {
      IndexDeb1 += 1;
index 8a8230b..81938ed 100644 (file)
@@ -423,7 +423,7 @@ Standard_Boolean FairCurve_MinimalVariation::Compute(const gp_Vec2d& DeltaP1,
  } 
 
 
-// For eventual debug Newton.Dump(cout);
+// For eventual debug Newton.Dump(std::cout);
    
  return OkCompute;
 } 
@@ -434,34 +434,34 @@ void FairCurve_MinimalVariation::Dump(Standard_OStream& o) const
 //======================================================================================
 {
 
-o << "  MVCurve      |"; o.width(7); o<< "Old  |   New" << endl;
-o << "  P1    X      |"; o.width(7); o<<  OldP1.X() << " | " << NewP1.X() << endl;
-o << "        Y      |"; o.width(7); o<<  OldP1.Y() << " | " << NewP1.Y() << endl;
-o << "  P2    X      |"; o.width(7); o<<  OldP2.X() << " | " << NewP2.X() << endl;
-o << "        Y      |"; o.width(7); o<<  OldP2.Y() << " | " << NewP2.Y() << endl;
-o << "      Angle1   |"; o.width(7); o<<  OldAngle1 << " | " << NewAngle1 << endl;
-o << "      Angle2   |"; o.width(7); o<<  OldAngle2 << " | " << NewAngle2 << endl;
-o << " Curvature1    |"; o.width(7); o<<  OldCurvature1 << " | " << NewCurvature1 << endl;
-o << " Curvature2    |"; o.width(7); o<<  OldCurvature2 << " | " << NewCurvature2 << endl;
-o << "      Height   |"; o.width(7); o<<  OldHeight << " | " << NewHeight << endl;
-o << "      Slope    |"; o.width(7); o<<  OldSlope  << " | " << NewSlope << endl; 
-o << " PhysicalRatio |"; o.width(7); o<<  OldPhysicalRatio << " | " << NewPhysicalRatio << endl;
-o << " SlidingFactor |"; o.width(7); o<<  OldSlidingFactor << " | " << NewSlidingFactor << endl;
-o << " FreeSliding   |"; o.width(7); o<<  OldFreeSliding << " | " << NewFreeSliding << endl; 
-o << " ConstrOrder1  |"; o.width(7); o<<  OldConstraintOrder1 << " | " << NewConstraintOrder1 << endl; 
-o << " ConstrOrder2  |"; o.width(7); o<<  OldConstraintOrder2 << " | " << NewConstraintOrder2 << endl;
+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;
  switch (myCode) {
    case  FairCurve_OK : 
-     o << "AnalysisCode : Ok" << endl;
+     o << "AnalysisCode : Ok" << std::endl;
      break;
    case  FairCurve_NotConverged : 
-     o << "AnalysisCode : NotConverged" << endl;
+     o << "AnalysisCode : NotConverged" << std::endl;
      break;
    case  FairCurve_InfiniteSliding : 
-     o << "AnalysisCode : InfiniteSliding" << endl;
+     o << "AnalysisCode : InfiniteSliding" << std::endl;
      break;
    case  FairCurve_NullHeight : 
-     o << "AnalysisCode : NullHeight" << endl;
+     o << "AnalysisCode : NullHeight" << std::endl;
      break;
      }   
 }
index ed380b8..da2a54d 100644 (file)
@@ -80,7 +80,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
     myAlong.SetValue(3,IsQPunctual(BS,U1,GeomAbs_IsoU,TolMin,Tol));
     myAlong.SetValue(4,IsQPunctual(BS,U2,GeomAbs_IsoU,TolMin,Tol));
 #ifdef OCCT_DEBUG
-    cout<<myAlong(1)<<endl<<myAlong(2)<<endl<<myAlong(3)<<endl<<myAlong(4)<<endl;
+    std::cout<<myAlong(1)<<std::endl<<myAlong(2)<<std::endl<<myAlong(3)<<std::endl<<myAlong(4)<<std::endl;
 #endif
     if (myAlong(1) || myAlong(2) || myAlong(3) || myAlong(4)) 
     {
@@ -113,8 +113,8 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
         InitSurf = Handle(Geom_BSplineSurface)::DownCast(myBasisSurf);
       }
 #ifdef OCCT_DEBUG
-      cout<<"UDEG: "<<InitSurf->UDegree()<<endl;
-      cout<<"VDEG: "<<InitSurf->VDegree()<<endl;
+      std::cout<<"UDEG: "<<InitSurf->UDegree()<<std::endl;
+      std::cout<<"VDEG: "<<InitSurf->VDegree()<<std::endl;
 #endif
 
       if(IsAlongU() && IsAlongV()) ClearOsculFlags();
@@ -141,7 +141,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
                 if(!OsculSurf) break;
                 k++;
 #ifdef OCCT_DEBUG
-                cout<<"1.k = "<<k<<endl;
+                std::cout<<"1.k = "<<k<<std::endl;
 #endif
                 IsQPunc=IsQPunctual(L,V1,GeomAbs_IsoV,0.,Tol);
                 UKnot=1;
@@ -165,7 +165,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
                   if(!OsculSurf) break;
                   k++;
 #ifdef OCCT_DEBUG
-                  cout<<"2.k = "<<k<<endl;
+                  std::cout<<"2.k = "<<k<<std::endl;
 #endif
                   IsQPunc=IsQPunctual(L,V2,GeomAbs_IsoV,0.,Tol);
                   UKnot=1;
@@ -191,7 +191,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
                 if(!OsculSurf) break;
                 k++;
 #ifdef OCCT_DEBUG
-                cout<<"2.k = "<<k<<endl;
+                std::cout<<"2.k = "<<k<<std::endl;
 #endif
                 IsQPunc=IsQPunctual(L,V2,GeomAbs_IsoV,0.,Tol);
                 UKnot=1;
@@ -224,7 +224,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
                 if(!OsculSurf) break;
                 k++;
 #ifdef OCCT_DEBUG
-                cout<<"1.k = "<<k<<endl;
+                std::cout<<"1.k = "<<k<<std::endl;
 #endif
                 IsQPunc=IsQPunctual(L,U1,GeomAbs_IsoU,0.,Tol);
                 UKnot=1;
@@ -246,7 +246,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
                   if(!OsculSurf) break;
                   k++;
 #ifdef OCCT_DEBUG
-                  cout<<"2.k = "<<k<<endl;
+                  std::cout<<"2.k = "<<k<<std::endl;
 #endif
                   IsQPunc=IsQPunctual(L,U2,GeomAbs_IsoU,0.,Tol);
                   UKnot=1;
@@ -271,7 +271,7 @@ void Geom_OsculatingSurface::Init(const Handle(Geom_Surface)& BS,
                 if(!OsculSurf) break;
                 k++;
 #ifdef OCCT_DEBUG
-                cout<<"2.k = "<<k<<endl;
+                std::cout<<"2.k = "<<k<<std::endl;
 #endif
                 IsQPunc=IsQPunctual(L,U2,GeomAbs_IsoU,0.,Tol);
                 UKnot=1;
@@ -449,8 +449,8 @@ Standard_Boolean  Geom_OsculatingSurface::BuildOsculatingSurface
   Standard_Integer i, j;
   Standard_Boolean OsculSurf=Standard_True;
 #ifdef OCCT_DEBUG
-  cout<<"t = "<<Param<<endl;
-  cout<<"======================================"<<endl<<endl;
+  std::cout<<"t = "<<Param<<std::endl;
+  std::cout<<"======================================"<<std::endl<<std::endl;
 #endif
 
   // for cache
@@ -462,7 +462,7 @@ Standard_Boolean  Geom_OsculatingSurface::BuildOsculatingSurface
   if( (IsAlongU() && vdeg <=1) || (IsAlongV() && udeg <=1))
   {
 #ifdef OCCT_DEBUG
-    cout<<" surface osculatrice nulle "<<endl;
+    std::cout<<" surface osculatrice nulle "<<std::endl;
 #endif
     //throw Standard_ConstructionError("Geom_OsculatingSurface");
     OsculSurf=Standard_False;
@@ -505,7 +505,7 @@ Standard_Boolean  Geom_OsculatingSurface::BuildOsculatingSurface
     if (IsAlongU()) 
     {
 #ifdef OCCT_DEBUG
-      cout<<">>>>>>>>>>> AlongU"<<endl;
+      std::cout<<">>>>>>>>>>> AlongU"<<std::endl;
 #endif
       OscUNumCoeff = (Standard_Integer ) udeg + 1;  
       OscVNumCoeff = (Standard_Integer ) vdeg;  
@@ -513,7 +513,7 @@ Standard_Boolean  Geom_OsculatingSurface::BuildOsculatingSurface
     if (IsAlongV()) 
     {
 #ifdef OCCT_DEBUG
-      cout<<">>>>>>>>>>> AlongV"<<endl;
+      std::cout<<">>>>>>>>>>> AlongV"<<std::endl;
 #endif
       OscUNumCoeff = (Standard_Integer ) udeg;  
       OscVNumCoeff = (Standard_Integer ) vdeg + 1;  
@@ -675,7 +675,7 @@ Standard_Boolean  Geom_OsculatingSurface::BuildOsculatingSurface
       Data.VDegree(),
       0, 0);
 #ifdef OCCT_DEBUG
-    cout<<"^====================================^"<<endl<<endl;
+    std::cout<<"^====================================^"<<std::endl<<std::endl;
 #endif
 
     //      L=BSpl;
@@ -712,7 +712,7 @@ Standard_Boolean Geom_OsculatingSurface::IsQPunctual
     }
 
 #ifdef OCCT_DEBUG
-    cout << " D1NormMax = " << D1NormMax << endl;
+    std::cout << " D1NormMax = " << D1NormMax << std::endl;
 #endif
     if (D1NormMax >TolMax || D1NormMax < TolMin ) 
       Along = Standard_False;
@@ -727,7 +727,7 @@ Standard_Boolean Geom_OsculatingSurface::IsQPunctual
       D1NormMax=Max(D1NormMax,D1V.Magnitude());
     }
 #ifdef OCCT_DEBUG
-    cout << " D1NormMax = " << D1NormMax << endl;
+    std::cout << " D1NormMax = " << D1NormMax << std::endl;
 #endif
     if (D1NormMax >TolMax || D1NormMax < TolMin ) 
       Along = Standard_False;
index d7a076c..ebc3b87 100644 (file)
@@ -187,7 +187,7 @@ void Geom2dConvert_ApproxCurve::Approximate(const Handle(Adaptor2d_HCurve2d)& th
 
  void Geom2dConvert_ApproxCurve::Dump(Standard_OStream& o) const
 {
-  o << "******* Dump of ApproxCurve *******" << endl;
-  o << "******* Error   " << MaxError() << endl;
+  o << "******* Dump of ApproxCurve *******" << std::endl;
+  o << "******* Error   " << MaxError() << std::endl;
 }
 
index d8dfffe..2d51bb7 100644 (file)
@@ -93,7 +93,7 @@ Values (const Standard_Real  X     ,
             (Vec1.Dot(Vec2)/(NormeD1*NormeD1)+
             Vec1.Dot(TheDirection)/(NormeDir*NormeDir));
 
-          //  cout  << "U = "<< X << " F ="<< Fval <<" DF ="<< Deriv<<endl;
+          //  std::cout  << "U = "<< X << " F ="<< Fval <<" DF ="<< Deriv<<std::endl;
 
           return Standard_True;
 }
index d487ee7..acd872b 100644 (file)
@@ -32,7 +32,7 @@
 Geom2dHatch_Elements::Geom2dHatch_Elements(const Geom2dHatch_Elements& )
 {
 #ifdef OCCT_DEBUG
-  cout<<" Magic Constructor in Geom2dHatch_Elements:: "<<endl;
+  std::cout<<" Magic Constructor in Geom2dHatch_Elements:: "<<std::endl;
 #endif
 }
 
index d27dc7e..8e5c040 100644 (file)
@@ -374,63 +374,63 @@ void Geom2dHatch_Hatcher::Trim (const Standard_Integer IndH)
 static void IntersectionPointDump (const IntRes2d_IntersectionPoint& Pnt,
                                   const Standard_Integer Index)
 {
-  Standard_Integer SavedPrecision = cout.precision() ;
-  cout.precision (15) ;
-  cout << "----- IntRes2d:: Point # " << setw(3) << Index << " ---------------" << endl ;
-  cout << "-- U: "<<Pnt.Value().X()<<"    V: "<<Pnt.Value().Y()<<endl;
-  cout << "-- Parameter on first   : " << Pnt.ParamOnFirst()  << endl ;
-  cout << "-- Position  on first   : " ;
+  Standard_Integer SavedPrecision = std::cout.precision() ;
+  std::cout.precision (15) ;
+  std::cout << "----- IntRes2d:: Point # " << std::setw(3) << Index << " ---------------" << std::endl ;
+  std::cout << "-- U: "<<Pnt.Value().X()<<"    V: "<<Pnt.Value().Y()<<std::endl;
+  std::cout << "-- Parameter on first   : " << Pnt.ParamOnFirst()  << std::endl ;
+  std::cout << "-- Position  on first   : " ;
   switch (Pnt.TransitionOfFirst().PositionOnCurve()) {
-      case IntRes2d_Head   : cout << "HEAD"   ; break ;
-      case IntRes2d_Middle : cout << "MIDDLE" ; break ;
-      case IntRes2d_End    : cout << "END"    ; break ;
+      case IntRes2d_Head   : std::cout << "HEAD"   ; break ;
+      case IntRes2d_Middle : std::cout << "MIDDLE" ; break ;
+      case IntRes2d_End    : std::cout << "END"    ; break ;
   }
-  cout << endl ;
-  cout << "-- IntRes2d:: Transition on first  : " ;
+  std::cout << std::endl ;
+  std::cout << "-- IntRes2d:: Transition on first  : " ;
   switch (Pnt.TransitionOfFirst().TransitionType()) {
-      case IntRes2d_In        : cout << "IN"        ; break ;
-      case IntRes2d_Out       : cout << "OUT"       ; break ;
-      case IntRes2d_Touch     : cout << "TOUCH"     ; break ;
-      case IntRes2d_Undecided : cout << "UNDECIDED" ; break ;
+      case IntRes2d_In        : std::cout << "IN"        ; break ;
+      case IntRes2d_Out       : std::cout << "OUT"       ; break ;
+      case IntRes2d_Touch     : std::cout << "TOUCH"     ; break ;
+      case IntRes2d_Undecided : std::cout << "UNDECIDED" ; break ;
   }
-  cout << endl ;
+  std::cout << std::endl ;
   if (Pnt.TransitionOfFirst().TransitionType() == IntRes2d_Touch) {
-    cout << "-- IntRes2d:: Situation on first   : " ;
+    std::cout << "-- IntRes2d:: Situation on first   : " ;
     switch (Pnt.TransitionOfFirst().Situation()) {
-       case IntRes2d_Inside  : cout << "INSIDE"  ; break ;
-       case IntRes2d_Outside : cout << "OUTSIDE" ; break ;
-       case IntRes2d_Unknown : cout << "UNKNOWN" ; break ;
+       case IntRes2d_Inside  : std::cout << "INSIDE"  ; break ;
+       case IntRes2d_Outside : std::cout << "OUTSIDE" ; break ;
+       case IntRes2d_Unknown : std::cout << "UNKNOWN" ; break ;
     }
-    cout << endl ;
+    std::cout << std::endl ;
   }
-  cout << "--------------------------------------------" << endl ;
-  cout << "-- Parameter on second  : " << Pnt.ParamOnSecond() << endl ;
-  cout << "-- Position  on second  : " ;
+  std::cout << "--------------------------------------------" << std::endl ;
+  std::cout << "-- Parameter on second  : " << Pnt.ParamOnSecond() << std::endl ;
+  std::cout << "-- Position  on second  : " ;
   switch (Pnt.TransitionOfSecond().PositionOnCurve()) {
-      case IntRes2d_Head   : cout << "HEAD"   ; break ;
-      case IntRes2d_Middle : cout << "MIDDLE" ; break ;
-      case IntRes2d_End    : cout << "END"    ; break ;
+      case IntRes2d_Head   : std::cout << "HEAD"   ; break ;
+      case IntRes2d_Middle : std::cout << "MIDDLE" ; break ;
+      case IntRes2d_End    : std::cout << "END"    ; break ;
   }
-  cout << endl ;
-  cout << "-- IntRes2d:: Transition on second : " ;
+  std::cout << std::endl ;
+  std::cout << "-- IntRes2d:: Transition on second : " ;
   switch (Pnt.TransitionOfSecond().TransitionType()) {
-      case IntRes2d_In        : cout << "IN"        ; break ;
-      case IntRes2d_Out       : cout << "OUT"       ; break ;
-      case IntRes2d_Touch     : cout << "TOUCH"     ; break ;
-      case IntRes2d_Undecided : cout << "UNDECIDED" ; break ;
+      case IntRes2d_In        : std::cout << "IN"        ; break ;
+      case IntRes2d_Out       : std::cout << "OUT"       ; break ;
+      case IntRes2d_Touch     : std::cout << "TOUCH"     ; break ;
+      case IntRes2d_Undecided : std::cout << "UNDECIDED" ; break ;
   }
-  cout << endl ;
+  std::cout << std::endl ;
   if (Pnt.TransitionOfSecond().TransitionType() == IntRes2d_Touch) {
-    cout << "-- IntRes2d:: Situation on second  : " ;
+    std::cout << "-- IntRes2d:: Situation on second  : " ;
     switch (Pnt.TransitionOfSecond().Situation()) {
-       case IntRes2d_Inside  : cout << "INSIDE"  ; break ;
-       case IntRes2d_Outside : cout << "OUTSIDE" ; break ;
-       case IntRes2d_Unknown : cout << "UNKNOWN" ; break ;
+       case IntRes2d_Inside  : std::cout << "INSIDE"  ; break ;
+       case IntRes2d_Outside : std::cout << "OUTSIDE" ; break ;
+       case IntRes2d_Unknown : std::cout << "UNKNOWN" ; break ;
     }
-    cout << endl ;
+    std::cout << std::endl ;
   }
-  cout << "--------------------------------------------" << endl ;
-  cout.precision (SavedPrecision) ;
+  std::cout << "--------------------------------------------" << std::endl ;
+  std::cout.precision (SavedPrecision) ;
 }
 
 #endif
@@ -458,28 +458,28 @@ Standard_Boolean Geom2dHatch_Hatcher::Trim (const Standard_Integer IndH,
   myIntersector.Intersect (hatching, element) ;
   
 #if TRACE_HATCHER
-  cout << "--- Hatcher - Trim:: Hatching # " << setw(3);
-  cout << IndH << " with Element # " << setw(3);
-  cout << IndE << " ----------" << endl ;
+  std::cout << "--- Hatcher - Trim:: Hatching # " << std::setw(3);
+  std::cout << IndH << " with Element # " << std::setw(3);
+  std::cout << IndE << " ----------" << std::endl ;
 #endif    
   
   if (!myIntersector.IsDone())  { 
-    cout<<" Intersector -> Done = False ";
+    std::cout<<" Intersector -> Done = False ";
     return Standard_False ;
   }
   
 #if TRACE_HATCHER
   if (myIntersector.IsEmpty()) {
-    cout << "No intersection" << endl ;
-    cout << "--------------------------------------------------------------------" << endl ;
+    std::cout << "No intersection" << std::endl ;
+    std::cout << "--------------------------------------------------------------------" << std::endl ;
   }
 #endif    
   
   if (myIntersector.IsEmpty()) return Standard_True ;
   
 #if TRACE_HATCHER
-  cout << "Number of intersection points   : " << setw(3) << (myIntersector.NbPoints())   << endl ;
-  cout << "Number of intersection segments : " << setw(3) << (myIntersector.NbSegments()) << endl ;
+  std::cout << "Number of intersection points   : " << std::setw(3) << (myIntersector.NbPoints())   << std::endl ;
+  std::cout << "Number of intersection segments : " << std::setw(3) << (myIntersector.NbSegments()) << std::endl ;
 #endif    
   
   //-----------------------------------------------------------------------
@@ -512,7 +512,7 @@ Standard_Boolean Geom2dHatch_Hatcher::Trim (const Standard_Integer IndH,
     const IntRes2d_IntersectionSegment& Seg = myIntersector.Segment (ISeg) ;
     
 #if TRACE_HATCHER
-    cout << "----- Segment # " << setw(3) << ISeg << " -------------" << endl ;
+    std::cout << "----- Segment # " << std::setw(3) << ISeg << " -------------" << std::endl ;
 #endif
     
     Standard_Boolean FirstPoint = Seg.HasFirstPoint() ;
@@ -646,9 +646,9 @@ Standard_Boolean Geom2dHatch_Hatcher::Trim (const Standard_Integer IndH,
 #if TRACE_HATCHER
        IntersectionPointDump (Pnt1, 1) ;
        IntersectionPointDump (Pnt2, 2) ;
-       cout << "THESE TWO POINTS ARE "
+       std::cout << "THESE TWO POINTS ARE "
             << (Conf2d ? "2D" : "3D")
-            << " CONFUSED INTO THE FOLLOWING" << endl ;
+            << " CONFUSED INTO THE FOLLOWING" << std::endl ;
        PntH.Dump() ;
 #endif
        continue ;
@@ -681,8 +681,8 @@ Standard_Boolean Geom2dHatch_Hatcher::Trim (const Standard_Integer IndH,
 #if TRACE_HATCHER
       } 
       else {
-       cout << "----- Has no first point --------" << endl ;
-       cout << "---------------------------------" << endl ;
+       std::cout << "----- Has no first point --------" << std::endl ;
+       std::cout << "---------------------------------" << std::endl ;
 #endif
        
       }
@@ -713,13 +713,13 @@ Standard_Boolean Geom2dHatch_Hatcher::Trim (const Standard_Integer IndH,
 #if TRACE_HATCHER
       } 
       else {
-       cout << "----- Has no last point ---------" << endl ;
-       cout << "---------------------------------" << endl ;
+       std::cout << "----- Has no last point ---------" << std::endl ;
+       std::cout << "---------------------------------" << std::endl ;
 #endif
       }
     }
 #if TRACE_HATCHER
-    cout << "--------------------------------------------------------------------" << endl ;
+    std::cout << "--------------------------------------------------------------------" << std::endl ;
 #endif    
     
   }
@@ -971,7 +971,7 @@ void Geom2dHatch_Hatcher::ComputeDomains (const Standard_Integer IndH)
 
   if(NbPnt == 0)
   {
-    //-- cout << "The hatching # " << setw(3) << IndH << " has to be classified" << endl ;
+    //-- std::cout << "The hatching # " << std::setw(3) << IndH << " has to be classified" << std::endl ;
     Geom2dHatch_Classifier Classifier(myElements,Hatching.ClassificationPoint(),0.0000001); 
     if(Classifier.State() == TopAbs_IN)
     { 
@@ -993,9 +993,9 @@ void Geom2dHatch_Hatcher::ComputeDomains (const Standard_Integer IndH)
     const HatchGen_PointOnHatching& CurPnt = Hatching.Point (IPnt) ;
 
 #if TRACE_HATCHER
-    cout << "===== ComputeDomains:: Hatching # " << setw(3) << IndH << " =====" << endl ;
+    std::cout << "===== ComputeDomains:: Hatching # " << std::setw(3) << IndH << " =====" << std::endl ;
     CurPnt.Dump (IPnt) ;
-    cout << "==========================================" << endl ;
+    std::cout << "==========================================" << std::endl ;
 #endif
     
     
@@ -1596,74 +1596,74 @@ const HatchGen_Domain& Geom2dHatch_Hatcher::Domain (const Standard_Integer IndH,
 
 void Geom2dHatch_Hatcher::Dump () const
 {
-  cout << endl ;
-  cout << "========================================================" << endl ;
-  cout << "=== Dump of the hatcher ================================" << endl ;
-  cout << "========================================================" << endl ;
-  cout << endl ;
+  std::cout << std::endl ;
+  std::cout << "========================================================" << std::endl ;
+  std::cout << "=== Dump of the hatcher ================================" << std::endl ;
+  std::cout << "========================================================" << std::endl ;
+  std::cout << std::endl ;
 
-  cout << "The points   are "
+  std::cout << "The points   are "
        << (myKeepPoints   ? "    " : "not ")
        << "considered."
-       << endl ;
-  cout << "The segments are "
+       << std::endl ;
+  std::cout << "The segments are "
        << (myKeepSegments ? "    " : "not ")
        << "considered."
-       << endl ;
-  cout << "2D Confusion tolerance : " << myConfusion2d << endl ;
-  cout << "3D Confusion tolerance : " << myConfusion3d << endl ;
+       << std::endl ;
+  std::cout << "2D Confusion tolerance : " << myConfusion2d << std::endl ;
+  std::cout << "3D Confusion tolerance : " << myConfusion3d << std::endl ;
   
-  cout << myNbHatchings
+  std::cout << myNbHatchings
        << " hatching"
        << ((myNbHatchings == 1) ? "" : "s")
-       << endl ;
-  cout << myNbElements
+       << std::endl ;
+  std::cout << myNbElements
        << " element"
        << ((myNbElements  == 1) ? "" : "s")
-       << endl ;
+       << std::endl ;
   
-  cout << endl ;
-  cout << "========================================================" << endl ;
-  cout << "=== Hatchings ==========================================" << endl ;
-  cout << "========================================================" << endl ;
-  cout << endl ;
+  std::cout << std::endl ;
+  std::cout << "========================================================" << std::endl ;
+  std::cout << "=== Hatchings ==========================================" << std::endl ;
+  std::cout << "========================================================" << std::endl ;
+  std::cout << std::endl ;
   
   for (Standard_Integer IndH = 1 ; IndH <= myNbHatchings ; IndH++) {
-    cout << "Hatching # " << IndH ;
+    std::cout << "Hatching # " << IndH ;
     if (!myHatchings.IsBound (IndH)) {
-      cout << " is not bound" << endl ;
+      std::cout << " is not bound" << std::endl ;
     } else {
       const Geom2dHatch_Hatching& Hatching = myHatchings.Find (IndH) ;
       Standard_Integer NbPnt = Hatching.NbPoints() ;
-      cout << " contains " << NbPnt << " restriction points :"  << endl ;
+      std::cout << " contains " << NbPnt << " restriction points :"  << std::endl ;
       for (Standard_Integer IPnt = 1 ; IPnt <= NbPnt ; IPnt++) {
        const HatchGen_PointOnHatching& PntH = Hatching.Point (IPnt) ;
         PntH.Dump (IPnt) ;
       }
-      cout << "----------------------------------------------" << endl ;
+      std::cout << "----------------------------------------------" << std::endl ;
     }
   }
 
-  cout << endl ;
-  cout << "========================================================" << endl ;
-  cout << "=== Elements ===========================================" << endl ;
-  cout << "========================================================" << endl ;
-  cout << endl ;
+  std::cout << std::endl ;
+  std::cout << "========================================================" << std::endl ;
+  std::cout << "=== Elements ===========================================" << std::endl ;
+  std::cout << "========================================================" << std::endl ;
+  std::cout << std::endl ;
   
   for (Standard_Integer IndE = 1 ; IndE <= myNbElements ; IndE++) {
-    cout << "Element # " << IndE ;
+    std::cout << "Element # " << IndE ;
     if (!myElements.IsBound (IndE)) {
-      cout << " is not bound" << endl ;
+      std::cout << " is not bound" << std::endl ;
     } else {
       const Geom2dHatch_Element& Element = myElements.Find (IndE) ;
       switch (Element.Orientation()) {
-        case TopAbs_FORWARD  : cout << " is FORWARD"  << endl ; break ;
-        case TopAbs_REVERSED : cout << " is REVERSED" << endl ; break ;
-        case TopAbs_INTERNAL : cout << " is INTERNAL" << endl ; break ;
-        case TopAbs_EXTERNAL : cout << " is EXTERNAL" << endl ; break ;
+        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 ;
       }
     }
   }
 
-  cout << endl ;
+  std::cout << std::endl ;
 }
index 29211b3..9167e7c 100644 (file)
@@ -186,7 +186,7 @@ void GeomConvert_ApproxCurve::Approximate(
 
  void GeomConvert_ApproxCurve::Dump(Standard_OStream& o) const
 {
-  o << "******* Dump of ApproxCurve *******" << endl;
-  o << "*******Error   " << MaxError() << endl;
+  o << "******* Dump of ApproxCurve *******" << std::endl;
+  o << "*******Error   " << MaxError() << std::endl;
 }
 
index 51ea36e..fa2599b 100644 (file)
@@ -431,12 +431,12 @@ void GeomConvert_ApproxSurface::Approximate(const Handle(Adaptor3d_HSurface)& th
 
 void GeomConvert_ApproxSurface::Dump(Standard_OStream& o) const 
 {
-  o<<endl;
-  if (!myHasResult) { o<<"No result"<<endl; }
+  o<<std::endl;
+  if (!myHasResult) { o<<"No result"<<std::endl; }
   else {
-    o<<"Result max error :"<< myMaxError <<endl;
+    o<<"Result max error :"<< myMaxError <<std::endl;
     }
-  o<<endl;
+  o<<std::endl;
 }
 
 
index 62c4dd4..82a923a 100644 (file)
@@ -538,16 +538,16 @@ NbIntervals(const GeomAbs_Shape S) const
  myPath->Intervals(ICenter, GeomFillNextShape(S));
  myCurve1->Intervals(ICb1, S);
  myCurve2->Intervals(ICb2, S);
-/* cout << "Intervals : " << S << endl;
cout << "-- Center-> " << endl;
- for (ii=1; ii<=ICenter.Length(); ii++) cout << " , "<< ICenter(ii);
cout << endl; cout << endl;
cout << "-- Cb1-> " << endl;
- for (ii=1; ii<=ICb1.Length(); ii++) cout << " , "<< ICb1(ii);
cout << endl; cout << endl;
cout << "-- Cb2-> " << endl;
- for (ii=1; ii<=ICb2.Length(); ii++) cout << " , "<< ICb1(ii);
cout << endl; cout << endl;*/
+/* std::cout << "Intervals : " << S << std::endl;
std::cout << "-- Center-> " << std::endl;
+ for (ii=1; ii<=ICenter.Length(); ii++) std::cout << " , "<< ICenter(ii);
std::cout << std::endl; std::cout << std::endl;
std::cout << "-- Cb1-> " << std::endl;
+ for (ii=1; ii<=ICb1.Length(); ii++) std::cout << " , "<< ICb1(ii);
std::cout << std::endl; std::cout << std::endl;
std::cout << "-- Cb2-> " << std::endl;
+ for (ii=1; ii<=ICb2.Length(); ii++) std::cout << " , "<< ICb1(ii);
std::cout << std::endl; std::cout << std::endl;*/
 
  GeomFillFusInt(ICb1, ICb2, Inter);
 
index 91f8751..d3a31f7 100644 (file)
@@ -129,12 +129,12 @@ GeomFill_ConstantBiNormal::GeomFill_ConstantBiNormal(const gp_Dir& BiNormal) : B
   cTangent = (Tangent_ - cTangent)/h;
   cNormal = (Normal_ - cNormal)/h;
   cBiNormal = (BiNormal_ - cBiNormal)/h;
-  cout<<"DTangent = ("<<DTangent.X()<<", "<<DTangent.Y()<<", "<<DTangent.Z()<<")"<<endl;
-  cout<<"CTangent = ("<<cTangent.X()<<", "<<cTangent.Y()<<", "<<cTangent.Z()<<")"<<endl;
-  cout<<"DNormal = ("<<DNormal.X()<<", "<<DNormal.Y()<<", "<<DNormal.Z()<<")"<<endl;
-  cout<<"CNormal = ("<<cNormal.X()<<", "<<cNormal.Y()<<", "<<cNormal.Z()<<")"<<endl;
-  cout<<"DBiNormal = ("<<DBiNormal.X()<<", "<<DBiNormal.Y()<<", "<<DBiNormal.Z()<<")"<<endl;
-  cout<<"CBiNormal = ("<<cBiNormal.X()<<", "<<cBiNormal.Y()<<", "<<cBiNormal.Z()<<")"<<endl;
+  std::cout<<"DTangent = ("<<DTangent.X()<<", "<<DTangent.Y()<<", "<<DTangent.Z()<<")"<<std::endl;
+  std::cout<<"CTangent = ("<<cTangent.X()<<", "<<cTangent.Y()<<", "<<cTangent.Z()<<")"<<std::endl;
+  std::cout<<"DNormal = ("<<DNormal.X()<<", "<<DNormal.Y()<<", "<<DNormal.Z()<<")"<<std::endl;
+  std::cout<<"CNormal = ("<<cNormal.X()<<", "<<cNormal.Y()<<", "<<cNormal.Z()<<")"<<std::endl;
+  std::cout<<"DBiNormal = ("<<DBiNormal.X()<<", "<<DBiNormal.Y()<<", "<<DBiNormal.Z()<<")"<<std::endl;
+  std::cout<<"CBiNormal = ("<<cBiNormal.X()<<", "<<cBiNormal.Y()<<", "<<cBiNormal.Z()<<")"<<std::endl;
 */
   return Standard_True;
 }
@@ -181,14 +181,14 @@ GeomFill_ConstantBiNormal::GeomFill_ConstantBiNormal(const gp_Dir& BiNormal) : B
     DNormal = BiNormal.Crossed(DTangent);
     D2Normal = BiNormal.Crossed(D2Tangent);
   }
-/*  cout<<"Param = "<<Param<<endl;
-  cout<<"Tangent = ("<<Tangent.X()<<", "<<Tangent.Y()<<", "<<Tangent.Z()<<")"<<endl;
-  cout<<"DTangent = ("<<DTangent.X()<<", "<<DTangent.Y()<<", "<<DTangent.Z()<<")"<<endl;
-  cout<<"D2Tangent = ("<<D2Tangent.X()<<", "<<D2Tangent.Y()<<", "<<D2Tangent.Z()<<")"<<endl;
+/*  std::cout<<"Param = "<<Param<<std::endl;
+  std::cout<<"Tangent = ("<<Tangent.X()<<", "<<Tangent.Y()<<", "<<Tangent.Z()<<")"<<std::endl;
+  std::cout<<"DTangent = ("<<DTangent.X()<<", "<<DTangent.Y()<<", "<<DTangent.Z()<<")"<<std::endl;
+  std::cout<<"D2Tangent = ("<<D2Tangent.X()<<", "<<D2Tangent.Y()<<", "<<D2Tangent.Z()<<")"<<std::endl;
 
-  cout<<"BiNormal = ("<<BiNormal.X()<<", "<<BiNormal.Y()<<", "<<BiNormal.Z()<<")"<<endl;
-  cout<<"DBiNormal = ("<<DBiNormal.X()<<", "<<DBiNormal.Y()<<", "<<DBiNormal.Z()<<")"<<endl;
-  cout<<"D2BiNormal = ("<<D2BiNormal.X()<<", "<<D2BiNormal.Y()<<", "<<D2BiNormal.Z()<<")"<<endl;
+  std::cout<<"BiNormal = ("<<BiNormal.X()<<", "<<BiNormal.Y()<<", "<<BiNormal.Z()<<")"<<std::endl;
+  std::cout<<"DBiNormal = ("<<DBiNormal.X()<<", "<<DBiNormal.Y()<<", "<<DBiNormal.Z()<<")"<<std::endl;
+  std::cout<<"D2BiNormal = ("<<D2BiNormal.X()<<", "<<D2BiNormal.Y()<<", "<<D2BiNormal.Z()<<")"<<std::endl;
 */  
   return Standard_True;
 }
index 7d974a7..3a8f5a9 100644 (file)
@@ -223,7 +223,7 @@ static void coonscnd(const Standard_Integer     nb,
          Standard_Real killfactor = tolang/scal1;
          stat[i].DoKill(killfactor);
 #ifdef OCCT_DEBUG
-         cout<<"pb coons cnd coin : "<<i<<" fact = "<<killfactor<<endl; 
+         std::cout<<"pb coons cnd coin : "<<i<<" fact = "<<killfactor<<std::endl; 
 #endif
        }
       }
@@ -589,14 +589,14 @@ void GeomFill_ConstrainedFilling::Build()
   parclock.Show(partime);
   appclock.Show(apptime);
   cstclock.Show(csttime);
-  cout<<"temp total : "<<tottime<<" secondes"<<endl;
-  cout<<endl;
-  cout<<"dont"<<endl;
-  cout<<endl;
-  cout<<"reparametrage         : "<<partime<<" secondes"<<endl;
-  cout<<"approximation         : "<<apptime<<" secondes"<<endl;
-  cout<<"construction formelle : "<<csttime<<" secondes"<<endl;
-  cout<<endl;
+  std::cout<<"temp total : "<<tottime<<" secondes"<<std::endl;
+  std::cout<<std::endl;
+  std::cout<<"dont"<<std::endl;
+  std::cout<<std::endl;
+  std::cout<<"reparametrage         : "<<partime<<" secondes"<<std::endl;
+  std::cout<<"approximation         : "<<apptime<<" secondes"<<std::endl;
+  std::cout<<"construction formelle : "<<csttime<<" secondes"<<std::endl;
+  std::cout<<std::endl;
 #endif
 }
 
@@ -1331,8 +1331,8 @@ void GeomFill_ConstrainedFilling::CheckTgteField(const Standard_Integer I)
       if(Abs(alpha) > maxang) maxang = Abs(alpha);
     }
   }
-  cout<<"KAlgo angle max sur bord "<<I<<" : "<<maxang<<endl;
-  if(caplisse) cout<<"sur bord "<<I<<" le champ tangent change de cote!"<<endl;
+  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;
 }
 
 
@@ -1377,11 +1377,11 @@ void GeomFill_ConstrainedFilling::CheckApprox(const Standard_Integer I)
     }
     if(papp.Distance(pbound) > maxdist) maxdist = papp.Distance(pbound);
   }
-  cout<<"Controle approx/contrainte sur bord "<<I<<" : "<<endl;
-  cout<<"Distance max : "<<maxdist<<endl;
+  std::cout<<"Controle approx/contrainte sur bord "<<I<<" : "<<std::endl;
+  std::cout<<"Distance max : "<<maxdist<<std::endl;
   if (donor) {
     maxang = maxang*180./M_PI;
-    cout<<"Angle max    : "<<maxang<<" deg"<<endl;
+    std::cout<<"Angle max    : "<<maxang<<" deg"<<std::endl;
   }
 }
 
@@ -1457,11 +1457,11 @@ void GeomFill_ConstrainedFilling::CheckResult(const Standard_Integer I)
     vv += dvv;
     ww += dww;
   }
-  cout<<"Controle resultat/contrainte sur bord "<<I<<" : "<<endl;
-  cout<<"Distance max : "<<maxdist<<endl;
+  std::cout<<"Controle resultat/contrainte sur bord "<<I<<" : "<<std::endl;
+  std::cout<<"Distance max : "<<maxdist<<std::endl;
   if (donor) {
     Standard_Real angdeg = maxang*180./M_PI;
-    cout<<"Angle max    : "<<angdeg<<" deg"<<endl;
+    std::cout<<"Angle max    : "<<angdeg<<" deg"<<std::endl;
   }
 #ifdef DRAW
   Standard_Boolean scale = maxang>1.e-10;
index 727938c..c6bcb30 100644 (file)
@@ -152,7 +152,7 @@ static void smoothlaw(Handle(Law_BSpline)& Law,
       tol = (Tol-tol)/2;
     else {
 #ifdef OCCT_DEBUG
-      cout << "smooth law echec" << endl;
+      std::cout << "smooth law echec" << std::endl;
 #endif
       return; // Echec
     } 
@@ -180,7 +180,7 @@ static void smoothlaw(Handle(Law_BSpline)& Law,
     }
     if (!Ok) {
 #ifdef OCCT_DEBUG
-      cout << "smooth law echec" << endl;
+      std::cout << "smooth law echec" << std::endl;
 #endif
     } 
   }
@@ -188,9 +188,9 @@ static void smoothlaw(Handle(Law_BSpline)& Law,
 
 #ifdef OCCT_DEBUG
   if (Affich) {
-    cout << "Knots Law : " << endl;
+    std::cout << "Knots Law : " << std::endl;
     for (ii=1; ii<=BS->NbKnots(); ii++) {
-      cout << ii << " : " << BS->Knot(ii) << endl;
+      std::cout << ii << " : " << BS->Knot(ii) << std::endl;
     }
   }
 #endif
@@ -591,11 +591,11 @@ Handle(GeomFill_TrihedronLaw) GeomFill_CorrectedFrenet::Copy() const
 
 #ifdef OCCT_DEBUG
     if (Affich) {
-      cout<<"NormalEvolution"<<endl; 
+      std::cout<<"NormalEvolution"<<std::endl; 
       for (i = 1; i <= Length; i++) {
-       cout<<"("<<pararr->Value(i)<<", "<<angleATarr->Value(i)<<")" << endl;
+       std::cout<<"("<<pararr->Value(i)<<", "<<angleATarr->Value(i)<<")" << std::endl;
       }
-      cout<<endl;
+      std::cout<<std::endl;
     } 
 #endif
 
@@ -757,9 +757,9 @@ Standard_Real GeomFill_CorrectedFrenet::GetAngleAT(const Standard_Real Param) co
   if (Param + h > myTrimmed->LastParameter()) h = -h;
   D0(Param + h, Tf, Nf, BNf);
   FDN = (Nf - Normal)/h;
-  cout<<"Param = "<<Param<<endl;
-  cout<<"DN = ("<<DNormal.X()<<", "<<DNormal.Y()<<", "<<DNormal.Z()<<")"<<endl;
-  cout<<"FDN = ("<<FDN.X()<<", "<<FDN.Y()<<", "<<FDN.Z()<<")"<<endl;
+  std::cout<<"Param = "<<Param<<std::endl;
+  std::cout<<"DN = ("<<DNormal.X()<<", "<<DNormal.Y()<<", "<<DNormal.Z()<<")"<<std::endl;
+  std::cout<<"FDN = ("<<FDN.X()<<", "<<FDN.Y()<<", "<<FDN.Z()<<")"<<std::endl;
 */
 
   return Standard_True;
@@ -858,13 +858,13 @@ Standard_Real GeomFill_CorrectedFrenet::GetAngleAT(const Standard_Real Param) co
   FD2N = (DNf - DNormal)/h;
   FD2T = (DTf - DTangent)/h;
   FD2BN = (DBNf - DBiNormal)/h;
-  cout<<"Param = "<<Param<<endl;
-  cout<<"D2N = ("<<D2Normal.X()<<", "<<D2Normal.Y()<<", "<<D2Normal.Z()<<")"<<endl;
-  cout<<"FD2N = ("<<FD2N.X()<<", "<<FD2N.Y()<<", "<<FD2N.Z()<<")"<<endl<<endl;
-  cout<<"D2T = ("<<D2Tangent.X()<<", "<<D2Tangent.Y()<<", "<<D2Tangent.Z()<<")"<<endl;
-  cout<<"FD2T = ("<<FD2T.X()<<", "<<FD2T.Y()<<", "<<FD2T.Z()<<")"<<endl<<endl;
-  cout<<"D2BN = ("<<D2BiNormal.X()<<", "<<D2BiNormal.Y()<<", "<<D2BiNormal.Z()<<")"<<endl;
-  cout<<"FD2BN = ("<<FD2BN.X()<<", "<<FD2BN.Y()<<", "<<FD2BN.Z()<<")"<<endl<<endl;  
+  std::cout<<"Param = "<<Param<<std::endl;
+  std::cout<<"D2N = ("<<D2Normal.X()<<", "<<D2Normal.Y()<<", "<<D2Normal.Z()<<")"<<std::endl;
+  std::cout<<"FD2N = ("<<FD2N.X()<<", "<<FD2N.Y()<<", "<<FD2N.Z()<<")"<<std::endl<<std::endl;
+  std::cout<<"D2T = ("<<D2Tangent.X()<<", "<<D2Tangent.Y()<<", "<<D2Tangent.Z()<<")"<<std::endl;
+  std::cout<<"FD2T = ("<<FD2T.X()<<", "<<FD2T.Y()<<", "<<FD2T.Z()<<")"<<std::endl<<std::endl;
+  std::cout<<"D2BN = ("<<D2BiNormal.X()<<", "<<D2BiNormal.Y()<<", "<<D2BiNormal.Z()<<")"<<std::endl;
+  std::cout<<"FD2BN = ("<<FD2BN.X()<<", "<<FD2BN.Y()<<", "<<FD2BN.Z()<<")"<<std::endl<<std::endl;  
 */
 //
   return Standard_True;
index 251a7d7..c4b2127 100644 (file)
@@ -114,11 +114,11 @@ static void NormalD0(const Standard_Real U, const Standard_Real V, const Handle(
     
     if (NStatus != CSLib_Defined) {
 #ifdef OCCT_DEBUG
-      cout << U << ", " << V<< endl;
+      std::cout << U << ", " << V<< std::endl;
       for(i=0;i<=MaxOrder;i++)
        for(j=0;j<=MaxOrder;j++){
-         cout <<"("<<i <<"," << j << ") = "<< DerSurf(i,j).X() <<","
-              << DerSurf(i,j).Y() <<"," << DerSurf(i,j).Z() << endl;
+         std::cout <<"("<<i <<"," << j << ") = "<< DerSurf(i,j).X() <<","
+              << DerSurf(i,j).Y() <<"," << DerSurf(i,j).Z() << std::endl;
        }
 #endif
       throw Geom_UndefinedValue();
index fbf64ac..33755e4 100644 (file)
@@ -307,7 +307,7 @@ Handle(GeomFill_TrihedronLaw) GeomFill_Frenet::Copy() const
     }
 #ifdef OCCT_DEBUG
     for(i = 1; i <= mySngl->Length(); i++) {
-      cout<<"Sngl("<<i<<") = "<<mySngl->Value(i)<<" Length = "<<mySnglLen->Value(i)<<endl;
+      std::cout<<"Sngl("<<i<<") = "<<mySngl->Value(i)<<" Length = "<<mySnglLen->Value(i)<<std::endl;
     }
 #endif
     if(mySngl->Length() > 1) {
@@ -333,9 +333,9 @@ Handle(GeomFill_TrihedronLaw) GeomFill_Frenet::Copy() const
     }
   }    
 #ifdef OCCT_DEBUG
-    cout<<"After merging"<<endl;
+    std::cout<<"After merging"<<std::endl;
     for(i = 1; i <= mySngl->Length(); i++) {
-      cout<<"Sngl("<<i<<") = "<<mySngl->Value(i)<<" Length = "<<mySnglLen->Value(i)<<endl;
+      std::cout<<"Sngl("<<i<<") = "<<mySngl->Value(i)<<" Length = "<<mySnglLen->Value(i)<<std::endl;
     }
 #endif
     isSngl = Standard_True;
@@ -521,7 +521,7 @@ Standard_Boolean
       if(RotateTrihedron(Tangent,Normal,BiNormal,aTn) == Standard_False)
         {
 #ifdef OCCT_DEBUG
-        cout << "Cannot coincide two tangents." << endl;
+        std::cout << "Cannot coincide two tangents." << std::endl;
 #endif
         return Standard_False;
         }
index d685bc2..90d693e 100644 (file)
@@ -256,7 +256,7 @@ GeomFill_FunctionGuide::GeomFill_FunctionGuide
 
    gp_XYZ& Q  = Pc.ChangeCoord(), DQ(0, 0, 0); //Q
    if (!isconst) {
-     cout << "Not implemented" << endl;
+     std::cout << "Not implemented" << std::endl;
    }
 
 
index 6af14fa..89556fa 100644 (file)
@@ -124,7 +124,7 @@ GeomFill_GuideTrihedronAC::GeomFill_GuideTrihedronAC(const Handle(Adaptor3d_HCur
   if (Norm < 1.e-12) {
     Norm = 1;
 #ifdef OCCT_DEBUG
-    cout << "GuideTrihedronAC : Normal indefinie" << endl;
+    std::cout << "GuideTrihedronAC : Normal indefinie" << std::endl;
 #endif
   }
   
index 1698b06..4b4e4b2 100644 (file)
@@ -49,7 +49,7 @@ IMPLEMENT_STANDARD_RTTIEXT(GeomFill_GuideTrihedronPlan,GeomFill_TrihedronWithGui
 #ifdef OCCT_DEBUG
 static void TracePlan(const Handle(Geom_Surface)& /*Plan*/)
 {
-  cout << "Pas d'intersection Guide/Plan" << endl;     
+  std::cout << "Pas d'intersection Guide/Plan" << std::endl;   
 #if DRAW
   char* Temp = "ThePlan" ;
   DrawTrSurf::Set(Temp, Plan);
@@ -182,8 +182,8 @@ GeomFill_GuideTrihedronPlan::GeomFill_GuideTrihedronPlan (const Handle(Adaptor3d
         
 #ifdef OCCT_DEBUG
         if (Abs(Diff) > DeltaG) {
-          cout << "Trihedron Plan Diff on Guide : " << 
-            Diff << endl;
+          std::cout << "Trihedron Plan Diff on Guide : " << 
+            Diff << std::endl;
         }
 #endif
       }
@@ -256,7 +256,7 @@ void GeomFill_GuideTrihedronPlan::SetCurve(const Handle(Adaptor3d_HCurve)& C)
     }
   else { // Erreur...
 #ifdef OCCT_DEBUG
-    cout << "D0 :";
+    std::cout << "D0 :";
     // plan ortho a la trajectoire pour determiner Pprime
     Handle(Geom_Plane) Plan = new (Geom_Plane)(P, Tangent);
     TracePlan(Plan);
@@ -329,7 +329,7 @@ void GeomFill_GuideTrihedronPlan::SetCurve(const Handle(Adaptor3d_HCurve)& C)
       E.Value(Res, e);
       E.Value(Res+h, etg);
       if ( Abs( (etg-e)/h - dedx) > 1.e-4) {
-       cout << "err :" <<  (etg-e)/h - dedx << endl;
+       std::cout << "err :" <<  (etg-e)/h - dedx << std::endl;
       }
       gp_Pnt pdbg;
       gp_Vec td, nb, bnb;
@@ -339,7 +339,7 @@ void GeomFill_GuideTrihedronPlan::SetCurve(const Handle(Adaptor3d_HCurve)& C)
       GeomFill_PlanFunc Edeb(pdbg, td, myGuide); 
       Edeb.Value(Res, etc);
       if ( Abs( (etc-e)/h - dedt) > 1.e-4) {
-       cout << "err :" <<  (etc-e)/h - dedt << endl;
+       std::cout << "err :" <<  (etc-e)/h - dedt << std::endl;
       } */           
 
       dn.SetLinearForm(dtg_dt, TG, -1, To);
@@ -351,7 +351,7 @@ void GeomFill_GuideTrihedronPlan::SetCurve(const Handle(Adaptor3d_HCurve)& C)
     }
   else {// Erreur...
 #ifdef OCCT_DEBUG
-    cout << "D1 :";
+    std::cout << "D1 :";
     // plan ortho a la trajectoire
     Handle(Geom_Plane) Plan = new (Geom_Plane)(P, Tangent);
     TracePlan(Plan);
@@ -450,7 +450,7 @@ void GeomFill_GuideTrihedronPlan::SetCurve(const Handle(Adaptor3d_HCurve)& C)
     }
   else {// Erreur...
 #ifdef OCCT_DEBUG
-    cout << "D2 :";
+    std::cout << "D2 :";
     TracePlan(Plan);
 #endif
     myStatus = GeomFill_PlaneNotIntersectGuide;
index 54ca0ab..68fab38 100644 (file)
@@ -137,7 +137,7 @@ static void TraceRevol(const Standard_Real t,
   
   // Surface de revolution
   Handle (Geom_Surface) Revol = new(Geom_SurfaceOfRevolution) (S, Ax);
-  cout << "Surf Revol at parameter t = " << t << endl;
+  std::cout << "Surf Revol at parameter t = " << t << std::endl;
 
 #if DRAW
   Standard_CString aName = "TheRevol" ;
@@ -350,7 +350,7 @@ static void InGoodPeriod(const Standard_Real Prec,
     
     if (!DistMini.IsDone() || DistMini.NbExt() == 0) {
 #ifdef OCCT_DEBUG
-      cout <<"LocationGuide : Pas d'intersection"<<endl;
+      std::cout <<"LocationGuide : Pas d'intersection"<<std::endl;
       TraceRevol(t, U, myLaw, mySec, myCurve, Trans);
 #endif 
       Standard_Boolean SOS=Standard_False;
@@ -369,7 +369,7 @@ static void InGoodPeriod(const Standard_Real Prec,
         if (Result.IsDone() && 
           (Result.FunctionSetErrors().Norm() < TolRes(1)*TolRes(1)) ) {
 #ifdef OCCT_DEBUG
-            cout << "Ratrappage Reussi !" << endl;
+            std::cout << "Ratrappage Reussi !" << std::endl;
 #endif
             SOS = Standard_True;
             math_Vector RR(1,3);
@@ -380,7 +380,7 @@ static void InGoodPeriod(const Standard_Real Prec,
         }
         else {
 #ifdef OCCT_DEBUG
-          cout << "Echec du Ratrappage !" << endl;
+          std::cout << "Echec du Ratrappage !" << std::endl;
 #endif
         }
       }
@@ -427,8 +427,8 @@ static void InGoodPeriod(const Standard_Real Prec,
       
 #ifdef OCCT_DEBUG
       if (Abs(Diff) > DeltaG) {
-       cout << "Location :: Diff on Guide : " << 
-         Diff << endl;
+       std::cout << "Location :: Diff on Guide : " << 
+         Diff << std::endl;
       }
 #endif
     }
@@ -443,7 +443,7 @@ static void InGoodPeriod(const Standard_Real Prec,
        }
 #ifdef OCCT_DEBUG
       if (Abs(Diff) > M_PI/4) {
-       cout << "Diff d'angle trop grand !!" << endl;
+       std::cout << "Diff d'angle trop grand !!" << std::endl;
       } 
 #endif
     }
@@ -459,7 +459,7 @@ static void InGoodPeriod(const Standard_Real Prec,
       Diff = v -  myPoles2d->Value(2, ii-1).Y();
 #ifdef OCCT_DEBUG
       if (Abs(Diff) > (Ul-Uf)/(2+NbKnots)) {
-       cout << "Diff sur section trop grand !!" << endl;
+       std::cout << "Diff sur section trop grand !!" << std::endl;
       } 
 #endif
     }
@@ -637,7 +637,7 @@ static void InGoodPeriod(const Standard_Real Prec,
     }
     else {
 #ifdef OCCT_DEBUG
-      cout << "LocationGuide::D0 : No Result !"<<endl;
+      std::cout << "LocationGuide::D0 : No Result !"<<std::endl;
       TraceRevol(Param, U, myLaw, mySec, myCurve, Trans);
 #endif
        myStatus = GeomFill_ImpossibleContact;
@@ -710,7 +710,7 @@ static void InGoodPeriod(const Standard_Real Prec,
     else {
 #ifdef OCCT_DEBUG
       Standard_Real U = myFirstS + ratio*(Param-myCurve->FirstParameter());
-      cout << "LocationGuide::D0 : No Result !"<<endl;
+      std::cout << "LocationGuide::D0 : No Result !"<<std::endl;
       TraceRevol(Param, U, myLaw, mySec, myCurve, Trans);
 #endif
       myStatus = GeomFill_ImpossibleContact;
@@ -808,8 +808,8 @@ static void InGoodPeriod(const Standard_Real Prec,
            }//if
          else {
 #ifdef OCCT_DEBUG
-           cout << "DEDX = " << DEDX << endl;
-           cout << "DEDT = " << DEDT << endl;
+           std::cout << "DEDX = " << DEDX << std::endl;
+           std::cout << "DEDT = " << DEDT << std::endl;
 #endif
            throw Standard_ConstructionError(
             "LocationGuide::D1 : No Result dans la derivee");
@@ -872,7 +872,7 @@ static void InGoodPeriod(const Standard_Real Prec,
 
       else {
 #ifdef OCCT_DEBUG
-       cout << "LocationGuide::D1 : No Result !!"<<endl;
+       std::cout << "LocationGuide::D1 : No Result !!"<<std::endl;
        TraceRevol(Param, U, myLaw, mySec, myCurve, Trans);
 #endif
        myStatus = GeomFill_ImpossibleContact;
@@ -972,7 +972,7 @@ Standard_Boolean GeomFill_LocationGuide::D2(const Standard_Real Param,
              //gp_Vec2d dp (DSDT(2), DSDT(3));    // surface
              //DPoles2d.SetValue(1, dp);
            }//if
-         else cout <<"LocationGuide::D2 : No Result dans la derivee premiere"<<endl;
+         else std::cout <<"LocationGuide::D2 : No Result dans la derivee premiere"<<std::endl;
 
          // deuxieme derivee
          GeomFill_Tensor D2EDX2(3,3,3);
@@ -1003,7 +1003,7 @@ Standard_Boolean GeomFill_LocationGuide::D2(const Standard_Real Param,
              //D2Poles2d.SetValue(1, d2p);
            }//if
          else {
-           cout <<"LocationGuide::D2 : No Result dans la derivee seconde"<<endl;
+           std::cout <<"LocationGuide::D2 : No Result dans la derivee seconde"<<std::endl;
           myStatus = GeomFill_ImpossibleContact;
           }
 
@@ -1123,7 +1123,7 @@ Standard_Boolean GeomFill_LocationGuide::D2(const Standard_Real Param,
        }//if_result
       else {
 #ifdef OCCT_DEBUG
-       cout << "LocationGuide::D2 : No Result !!" <<endl;
+       std::cout << "LocationGuide::D2 : No Result !!" <<std::endl;
        TraceRevol(Param, U, myLaw, mySec, myCurve, Trans);
 #endif
        return Standard_False;
index a4a1c67..a00e9a6 100644 (file)
@@ -80,9 +80,9 @@ Standard_Boolean verifD1(const TColgp_Array1OfPnt& P1,
     dw = (W2(ii)-W1(ii)) / pas;
     if (Abs(dw-DWeights(ii))>wTol) {
       if (Affich) {
-        cout<<"erreur dans la derivee 1ere du poids pour l'indice "<<ii<<endl;
-        cout<<"par diff finies : "<<dw<<endl;
-        cout<<"resultat obtenu : "<<DWeights(ii)<<endl;
+        std::cout<<"erreur dans la derivee 1ere du poids pour l'indice "<<ii<<std::endl;
+        std::cout<<"par diff finies : "<<dw<<std::endl;
+        std::cout<<"resultat obtenu : "<<DWeights(ii)<<std::endl;
       }
       ok = Standard_False;
     }
@@ -90,13 +90,13 @@ Standard_Boolean verifD1(const TColgp_Array1OfPnt& P1,
     gp_Vec diff = dP - DPoles(ii);
     if (diff.Magnitude()>pTol) {
       if (Affich) {
-        cout<<"erreur dans la derivee 1ere du pole pour l'indice "<<ii<<endl;
-        cout<<"par diff finies : ("<<dP.X()
+        std::cout<<"erreur dans la derivee 1ere du pole pour l'indice "<<ii<<std::endl;
+        std::cout<<"par diff finies : ("<<dP.X()
                               <<" "<<dP.Y()
-                              <<" "<<dP.Z()<<")"<<endl;
-        cout<<"resultat obtenu : ("<<DPoles(ii).X()
+                              <<" "<<dP.Z()<<")"<<std::endl;
+        std::cout<<"resultat obtenu : ("<<DPoles(ii).X()
                               <<" "<<DPoles(ii).Y()
-                              <<" "<<DPoles(ii).Z()<<")"<<endl;
+                              <<" "<<DPoles(ii).Z()<<")"<<std::endl;
       }
       ok = Standard_False;
     }
@@ -123,9 +123,9 @@ Standard_Boolean verifD2(const TColgp_Array1OfVec& DP1,
     d2w = (dw2-dw1) / pas;
     if (Abs(d2w-D2Weights(ii))>wTol) {
       if (Affich) {
-        cout<<"erreur dans la derivee 2nde du poids pour l'indice "<<ii<<endl;
-        cout<<"par diff finies : "<<d2w<<endl;
-        cout<<"resultat obtenu : "<<D2Weights(ii)<<endl;
+        std::cout<<"erreur dans la derivee 2nde du poids pour l'indice "<<ii<<std::endl;
+        std::cout<<"par diff finies : "<<d2w<<std::endl;
+        std::cout<<"resultat obtenu : "<<D2Weights(ii)<<std::endl;
       }
       ok = Standard_False;
     }
@@ -133,13 +133,13 @@ Standard_Boolean verifD2(const TColgp_Array1OfVec& DP1,
     gp_Vec diff = d2P - D2Poles(ii);
     if (diff.Magnitude()>pTol) {
       if (Affich) {
-        cout<<"erreur dans la derivee 2nde du pole pour l'indice "<<ii<<endl;
-        cout<<"par diff finies : ("<<d2P.X()
+        std::cout<<"erreur dans la derivee 2nde du pole pour l'indice "<<ii<<std::endl;
+        std::cout<<"par diff finies : ("<<d2P.X()
                               <<" "<<d2P.Y()
-                              <<" "<<d2P.Z()<<")"<<endl;
-        cout<<"resultat obtenu : ("<<D2Poles(ii).X()
+                              <<" "<<d2P.Z()<<")"<<std::endl;
+        std::cout<<"resultat obtenu : ("<<D2Poles(ii).X()
                               <<" "<<D2Poles(ii).Y()
-                              <<" "<<D2Poles(ii).Z()<<")"<<endl;
+                              <<" "<<D2Poles(ii).Z()<<")"<<std::endl;
       }
       ok = Standard_False;
     }
@@ -385,9 +385,9 @@ GeomFill_NSections::GeomFill_NSections(const TColGeom_SequenceOfCurve& NC,
     V2 = V+pas;
     ok1 = D0(V1,P1,W1);
     ok2 = D0(V2,P2,W2);
-    if (!ok1 || !ok2) cout<<"probleme en D0"<<endl;
+    if (!ok1 || !ok2) std::cout<<"probleme en D0"<<std::endl;
     Standard_Boolean check = verifD1(P1,W1,P2,W2,DPoles,DWeights,pTol,wTol,pas);
-    if (!check) cout<<"D1 incorrecte en V = "<<V<<endl;
+    if (!check) std::cout<<"D1 incorrecte en V = "<<V<<std::endl;
   }
 #endif
   
@@ -485,9 +485,9 @@ GeomFill_NSections::GeomFill_NSections(const TColGeom_SequenceOfCurve& NC,
     V2 = V+pas;
     ok1 = D1(V1,P1,DP1,W1,DW1);
     ok2 = D1(V2,P2,DP2,W2,DW2);
-    if (!ok1 || !ok2) cout<<"probleme en D0 ou en D1"<<endl;
+    if (!ok1 || !ok2) std::cout<<"probleme en D0 ou en D1"<<std::endl;
     Standard_Boolean check = verifD2(DP1,DW1,DP2,DW2,D2Poles,D2Weights,pTol,wTol,pas);
-    if (!check) cout<<"D2 incorrecte en V = "<<V<<endl;
+    if (!check) std::cout<<"D2 incorrecte en V = "<<V<<std::endl;
   }
 #endif
   
@@ -635,7 +635,7 @@ GeomFill_NSections::GeomFill_NSections(const TColGeom_SequenceOfCurve& NC,
     char name[256];
     sprintf(name,"NS_Surf_%d",NbSurf);
     DrawTrSurf::Set(name,BS);
-    cout<<endl<<"RESULTAT de ComputeSurface : NS_Surf_"<<NbSurf<<endl<<endl;
+    std::cout<<std::endl<<"RESULTAT de ComputeSurface : NS_Surf_"<<NbSurf<<std::endl<<std::endl;
 #endif
   }
 #endif
index 69044ca..34cf45d 100644 (file)
@@ -497,7 +497,7 @@ void GeomFill_Pipe::Init(const Handle(Geom_Curve)& Path,
   case GeomFill_IsDarboux :
 #ifdef OCCT_DEBUG
     {
-      cout << "Option Darboux: non realisable" << endl; 
+      std::cout << "Option Darboux: non realisable" << std::endl; 
     }
 #endif
   case GeomFill_IsFrenet :
@@ -871,9 +871,9 @@ void GeomFill_Pipe::Perform(const Standard_Real Tol,
                 Tol, Tol, 0., 0.01,
                 TheConti, DegMax, NbMaxSegment);
 #ifdef OCCT_DEBUG
-   cout << "Tuyau : ";
-   App.Dump(cout);
-   cout << endl;
+   std::cout << "Tuyau : ";
+   App.Dump(std::cout);
+   std::cout << std::endl;
 #endif
      if (App.IsDone()) {
        mySurface = new Geom_BSplineSurface(App.SurfPoles(),
index c64dd61..cc1b970 100644 (file)
@@ -281,7 +281,7 @@ GeomFill_Sweep::GeomFill_Sweep(const Handle(GeomFill_LocationLaw)& Location,
     Ok = Standard_True;
 
 #ifdef OCCT_DEBUG
-    Approx.Dump(cout);
+    Approx.Dump(std::cout);
 #endif
     
     // La surface
@@ -450,7 +450,7 @@ GeomFill_Sweep::GeomFill_Sweep(const Handle(GeomFill_LocationLaw)& Location,
                                   eval,
                                   Preferentiel);
 #ifdef OCCT_DEBUG
-  Approx.Dump(cout);
+  Approx.Dump(std::cout);
 #endif
 
   Ok = Approx.HasResult();
@@ -1036,13 +1036,13 @@ static Standard_Boolean IsSweepParallelSpine (const Handle(GeomFill_LocationLaw)
 
 #ifdef OCCT_DEBUG
   if (isUPeriodic && !mySurface->IsUPeriodic()) 
-    cout<<"Pb de periodicite en U" << endl;
+    std::cout<<"Pb de periodicite en U" << std::endl;
   if (isUPeriodic && !mySurface->IsUClosed())
-    cout<<"Pb de fermeture en U" << endl;
+    std::cout<<"Pb de fermeture en U" << std::endl;
   if (isVPeriodic && !mySurface->IsVPeriodic()) 
-    cout << "Pb de periodicite en V" << endl;
+    std::cout << "Pb de periodicite en V" << std::endl;
   if (isVPeriodic && !mySurface->IsVClosed())
-    cout<<"Pb de fermeture en V" << endl;
+    std::cout<<"Pb de fermeture en V" << std::endl;
 #endif
   }
 
index 76e1782..2feab3d 100644 (file)
@@ -356,7 +356,7 @@ void GeomFill_SweepSectionGenerator::Perform(const Standard_Boolean Polynomial)
       else
        if (D1Ref.IsOpposite(D1, Precision::Angular()))
 #ifdef OCCT_DEBUG
-         cout <<"Que fais-je ???? " << endl;
+         std::cout <<"Que fais-je ???? " << std::endl;
 #endif
 
       // TR is the transformation between (i-1) section and the i-th.
@@ -630,8 +630,8 @@ void GeomFill_SweepSectionGenerator::Section
       gp_Vec dummyD1 = myAdpPath->DN(U,1);
       gp_Vec dummyTg = Axis.Direction();
       Standard_Real Cos = dummyD1.Dot(dummyTg);
-      if ( Cos > 0.) cout << "+" ;
-      else           cout << "-" ;
+      if ( Cos > 0.) std::cout << "+" ;
+      else           std::cout << "-" ;
     }
 */
 #endif
index 4d004fa..97adc60 100644 (file)
@@ -1784,7 +1784,7 @@ void GeomLib::ExtendSurfByLength(Handle(Geom_BoundedSurface)& Surface,
 
     if (NullWeight) {
 #ifdef OCCT_DEBUG
-      cout << "Echec de l'Extension rationnelle" << endl;    
+      std::cout << "Echec de l'Extension rationnelle" << std::endl;    
 #endif
       lambmin /= 3.;
       NullWeight = Standard_False;
@@ -1884,8 +1884,8 @@ void GeomLib::Inertia(const TColgp_Array1OfPnt& Points,
   math_Jacobi J(M);
   if (!J.IsDone()) {
 #ifdef OCCT_DEBUG
-    cout << "Erreur dans Jacobbi" << endl;
-    M.Dump(cout);
+    std::cout << "Erreur dans Jacobbi" << std::endl;
+    M.Dump(std::cout);
 #endif
   }
 
index 3b1db78..571eb87 100644 (file)
@@ -679,8 +679,8 @@ Standard_Integer FillSubIntervals(const Handle(Geom_Curve)& theCurve3d,
   catch(Standard_Failure const&)
   {
 #ifdef OCCT_DEBUG
-    cout << "ERROR! BRepLib_CheckCurveOnSurface.cxx, "
-            "FillSubIntervals(): Incorrect filling!" << endl;
+    std::cout << "ERROR! BRepLib_CheckCurveOnSurface.cxx, "
+            "FillSubIntervals(): Incorrect filling!" << std::endl;
 #endif
 
     aNbSubIntervals = 0;
@@ -765,7 +765,7 @@ Standard_Boolean MinComputing (
                     theBestValue, anOutputParam))
     {
 #ifdef OCCT_DEBUG
-      cout << "BRepLib_CheckCurveOnSurface::Compute(): math_PSO is failed!" << endl;
+      std::cout << "BRepLib_CheckCurveOnSurface::Compute(): math_PSO is failed!" << std::endl;
 #endif
       return Standard_False;
     }
@@ -804,7 +804,7 @@ Standard_Boolean MinComputing (
   catch(Standard_Failure const&)
   {
 #ifdef OCCT_DEBUG
-    cout << "BRepLib_CheckCurveOnSurface.cxx: Exception in MinComputing()!" << endl;
+    std::cout << "BRepLib_CheckCurveOnSurface.cxx: Exception in MinComputing()!" << std::endl;
 #endif
     return Standard_False;
   }
index 22cf3af..4db59a6 100644 (file)
@@ -286,7 +286,7 @@ Handle(Geom2d_Curve)  GeomPlate_BuildPlateSurface::ProjectCurve(const Handle(Ada
        {
         Curve2d.Nullify(); // No continuous solution
 #ifdef OCCT_DEBUG
-        cout << "BuildPlateSurace :: No continuous projection" << endl;
+        std::cout << "BuildPlateSurace :: No continuous projection" << std::endl;
 #endif
        }
    }
@@ -332,7 +332,7 @@ Handle(Adaptor2d_HCurve2d)  GeomPlate_BuildPlateSurface::ProjectedCurve( Handle(
      
      HProjector.Nullify(); // No continuous solution
 #ifdef OCCT_DEBUG
-     cout << "BuildPlateSurace :: No continuous projection" << endl;
+     std::cout << "BuildPlateSurace :: No continuous projection" << std::endl;
 #endif
    }
  else
@@ -354,7 +354,7 @@ Handle(Adaptor2d_HCurve2d)  GeomPlate_BuildPlateSurface::ProjectedCurve( Handle(
      {
          HProjector.Nullify(); // No continuous solution
 #ifdef OCCT_DEBUG
-         cout << "BuildPlateSurace :: No complete projection" << endl;
+         std::cout << "BuildPlateSurace :: No complete projection" << std::endl;
 #endif
      }
    }
@@ -471,7 +471,7 @@ void GeomPlate_BuildPlateSurface::Perform(const Handle(Message_ProgressIndicator
   if ((NTLinCont + NTPntCont) == 0)
   {
 #ifdef OCCT_DEBUG
-    cout << "WARNING : GeomPlate : The number of constraints is null." << endl;
+    std::cout << "WARNING : GeomPlate : The number of constraints is null." << std::endl;
 #endif
 
     return;
@@ -492,7 +492,7 @@ void GeomPlate_BuildPlateSurface::Perform(const Handle(Message_ProgressIndicator
          if (!CourbeJointive(myTol3d)) 
            {//    throw Standard_Failure("Curves are not joined");
 #ifdef OCCT_DEBUG
-             cout<<"WARNING : Courbes non jointives a "<<myTol3d<<" pres"<<endl;
+             std::cout<<"WARNING : Courbes non jointives a "<<myTol3d<<" pres"<<std::endl;
 #endif   
            }
          TrierTab(myInitOrder); // Reorder the table of transformations
@@ -621,12 +621,12 @@ void GeomPlate_BuildPlateSurface::Perform(const Handle(Message_ProgressIndicator
     {
 #ifdef OCCT_DEBUG
       if (Affich && NbBoucle) {   
-       cout<<"Resultats boucle"<< NbBoucle << endl;
-       cout<<"DistMax="<<myG0Error<<endl;
+       std::cout<<"Resultats boucle"<< NbBoucle << std::endl;
+       std::cout<<"DistMax="<<myG0Error<<std::endl;
        if (myG1Error!=0)
-         cout<<"AngleMax="<<myG1Error<<endl; 
+         std::cout<<"AngleMax="<<myG1Error<<std::endl; 
        if (myG2Error!=0)
-         cout<<"CourbMax="<<myG2Error<<endl;
+         std::cout<<"CourbMax="<<myG2Error<<std::endl;
       }
 #endif
       NbBoucle++;
@@ -662,7 +662,7 @@ void GeomPlate_BuildPlateSurface::Perform(const Handle(Message_ProgressIndicator
           if (!myPlate.IsDone())
           {
 #ifdef OCCT_DEBUG
-            cout << "WARNING : GeomPlate : calculation of Plate failed" << endl;
+            std::cout << "WARNING : GeomPlate : calculation of Plate failed" << std::endl;
 #endif
             return;
           }
@@ -676,7 +676,7 @@ void GeomPlate_BuildPlateSurface::Perform(const Handle(Message_ProgressIndicator
          if ((NbBoucle >= myNbIter)&&(!Fini))
            { 
 #ifdef OCCT_DEBUG
-             cout<<"Warning: objective was not reached"<<endl;
+             std::cout<<"Warning: objective was not reached"<<std::endl;
 #endif
              Fini = Standard_True;
            }
@@ -701,7 +701,7 @@ void GeomPlate_BuildPlateSurface::Perform(const Handle(Message_ProgressIndicator
           if (!myPlate.IsDone())
           {
 #ifdef OCCT_DEBUG
-            cout << "WARNING : GeomPlate : calculation of Plate failed" << endl;
+            std::cout << "WARNING : GeomPlate : calculation of Plate failed" << std::endl;
 #endif
             return;
           }
@@ -717,19 +717,19 @@ void GeomPlate_BuildPlateSurface::Perform(const Handle(Message_ProgressIndicator
     } while (!Fini); // End loop for better surface
 #ifdef OCCT_DEBUG
   if (NTLinCont != 0)
-    { cout<<"======== Global results ==========="<<endl;
-      cout<<"DistMax="<<myG0Error<<endl;
+    { std::cout<<"======== Global results ==========="<<std::endl;
+      std::cout<<"DistMax="<<myG0Error<<std::endl;
       if (myG1Error!=0)
-       cout<<"AngleMax="<<myG1Error<<endl; 
+       std::cout<<"AngleMax="<<myG1Error<<std::endl; 
       if (myG2Error!=0)
-       cout<<"CourbMax="<<myG2Error<<endl;
+       std::cout<<"CourbMax="<<myG2Error<<std::endl;
     }  
   Chrono.Stop();
   Standard_Real Tps;
   Chrono.Show(Tps);
-  cout<<"*** END OF GEOMPLATE ***"<<endl;
-  cout<<"Time of calculation : "<<Tps<<endl;
-  cout<<"Number of loops : "<<NbBoucle<<endl;
+  std::cout<<"*** END OF GEOMPLATE ***"<<std::endl;
+  std::cout<<"Time of calculation : "<<Tps<<std::endl;
+  std::cout<<"Number of loops : "<<NbBoucle<<std::endl;
 #endif
 }  
 
@@ -834,7 +834,7 @@ void GeomPlate_BuildPlateSurface::
 {
 #ifdef OCCT_DEBUG
   if (Seq2d.Length()!=4)
-    cout<<"Number of points should be equal to 4 for Disc2dContour"<<endl;
+    std::cout<<"Number of points should be equal to 4 for Disc2dContour"<<std::endl;
 #endif
   //  initialization
   Seq2d.Clear();
@@ -971,9 +971,9 @@ Disc3dContour (const Standard_Integer /*nbp*/,
 {
 #ifdef OCCT_DEBUG
   if (Seq3d.Length()!=4)
-    cout<<"nbp should be equal to 4 for Disc3dContour"<<endl;
+    std::cout<<"nbp should be equal to 4 for Disc3dContour"<<std::endl;
   if (iordre!=0&&iordre!=1)
-    cout<<"incorrect order for Disc3dContour"<<endl;
+    std::cout<<"incorrect order for Disc3dContour"<<std::endl;
 #endif
   //  initialization
   Seq3d.Clear();
@@ -1517,7 +1517,7 @@ void GeomPlate_BuildPlateSurface::ComputeSurfInit(const Handle(Message_ProgressI
       if (!isHalfSpace)
        {
 #ifdef OCCT_DEBUG
-         cout<<endl<<"Normals are not in half space"<<endl<<endl;
+         std::cout<<std::endl<<"Normals are not in half space"<<std::endl<<std::endl;
 #endif
          myIsLinear = Standard_False;
          nopt = 2;
@@ -1534,7 +1534,7 @@ void GeomPlate_BuildPlateSurface::ComputeSurfInit(const Handle(Message_ProgressI
       else if (!CourbeJoint || NTLinCont != myNbBounds)
        {//    throw Standard_Failure("Curves are not joined");
 #ifdef OCCT_DEBUG          
-         cout << "WARNING : Curves are non-adjacent with tolerance " << myTol3d << endl;
+         std::cout << "WARNING : Curves are non-adjacent with tolerance " << myTol3d << std::endl;
 #endif   
          nopt = 1;
        }
@@ -1583,7 +1583,7 @@ void GeomPlate_BuildPlateSurface::ComputeSurfInit(const Handle(Message_ProgressI
       if (!BAP.IsPlane())
       {
 #ifdef OCCT_DEBUG
-        cout << "WARNING : GeomPlate : the initial surface is not a plane." << endl;
+        std::cout << "WARNING : GeomPlate : the initial surface is not a plane." << std::endl;
 #endif
 
         return;
@@ -1651,7 +1651,7 @@ void GeomPlate_BuildPlateSurface::ComputeSurfInit(const Handle(Message_ProgressI
        }
 #ifdef OCCT_DEBUG
       if (! myIsLinear)
-       cout <<"Metrics are too different :"<< Ratio<<endl;
+       std::cout <<"Metrics are too different :"<< Ratio<<std::endl;
 #endif
 //      myIsLinear =  Standard_True; // !!
     } //comparing metrics of curves and projected curves
@@ -1733,7 +1733,7 @@ void GeomPlate_BuildPlateSurface::ComputeSurfInit(const Handle(Message_ProgressI
       if (!myPlate.IsDone())
       {
 #ifdef OCCT_DEBUG
-        cout << "WARNING : GeomPlate : calculation of Plate failed" << endl;
+        std::cout << "WARNING : GeomPlate : calculation of Plate failed" << std::endl;
 #endif
         return;
       }
@@ -1809,9 +1809,9 @@ Intersect(Handle(GeomPlate_HArray1OfSequenceOfReal)& PntInter,
 #ifdef OCCT_DEBUG
                  if (Affich> 1)
                    {
-                     cout << " Intersection "<< k << " entre " << i 
-                       << " &" << j << endl;
-                     cout <<"  Distance = "<<  P1.Distance(P2) << endl;
+                     std::cout << " Intersection "<< k << " entre " << i 
+                       << " &" << j << std::endl;
+                     std::cout <<"  Distance = "<<  P1.Distance(P2) << std::endl;
                    }
 #endif
                  if (P1.Distance( P2 ) < myTol3d)
@@ -1861,8 +1861,8 @@ Intersect(Handle(GeomPlate_HArray1OfSequenceOfReal)& PntInter,
                                A1= M_PI - A1;
                              if (Abs(Abs(A1)-M_PI)<myTolAng) Tol = 100000 * myTol3d;
 #ifdef OCCT_DEBUG
-                             if (Affich) cout <<"Angle between curves "<<i<<","<<j
-                               <<" "<<Abs(Abs(A1)-M_PI)<<endl;
+                             if (Affich) std::cout <<"Angle between curves "<<i<<","<<j
+                               <<" "<<Abs(Abs(A1)-M_PI)<<std::endl;
 #endif
                              
                              coin = Ci.Resolution(Tol);
@@ -1915,15 +1915,15 @@ Intersect(Handle(GeomPlate_HArray1OfSequenceOfReal)& PntInter,
                                A1= M_PI - A1;
                              if (Abs(Abs(A1) - M_PI) < myTolAng) Tol = 100000 * myTol3d;
 #ifdef OCCT_DEBUG
-                             if (Affich) cout <<"Angle entre Courbe "<<i<<","<<j
-                               <<" "<<Abs(Abs(A1)-M_PI)<<endl;
+                             if (Affich) std::cout <<"Angle entre Courbe "<<i<<","<<j
+                               <<" "<<Abs(Abs(A1)-M_PI)<<std::endl;
 #endif
                              if (myLinCont->Value(i)->Order() == 1)
                                {
                                  coin = Ci.Resolution(Tol);
                                  coin *=  Angle / myTolAng * 10.;
 #ifdef OCCT_DEBUG
-                                 cout<<endl<<"coin = "<<coin<<endl;
+                                 std::cout<<std::endl<<"coin = "<<coin<<std::endl;
 #endif
                                  Standard_Real Par1 = int2d.ParamOnFirst() - coin;
                                  Standard_Real Par2 = int2d.ParamOnFirst() + coin;
@@ -1936,7 +1936,7 @@ Intersect(Handle(GeomPlate_HArray1OfSequenceOfReal)& PntInter,
                                  coin = Cj.Resolution(Tol);
                                  coin *= Angle / myTolAng * 10.;
 #ifdef OCCT_DEBUG
-                                 cout<<endl<<"coin = "<<coin<<endl;
+                                 std::cout<<std::endl<<"coin = "<<coin<<std::endl;
 #endif
                                  Standard_Real Par1 = int2d.ParamOnSecond() - coin;
                                  Standard_Real Par2 = int2d.ParamOnSecond() + coin;
@@ -1970,7 +1970,7 @@ Intersect(Handle(GeomPlate_HArray1OfSequenceOfReal)& PntInter,
                      }                
                    
 #ifdef OCCT_DEBUG
-                   cout << "Attention: Two points 3d have the same projection dist = " << Dist << endl;
+                   std::cout << "Attention: Two points 3d have the same projection dist = " << Dist << std::endl;
 #endif 
 #ifdef DRAW
                    if (Affich > 1)
@@ -2066,9 +2066,9 @@ Discretise(const Handle(GeomPlate_HArray1OfSequenceOfReal)& PntInter,
 
 #ifdef OCCT_DEBUG
     if (Affich > 1) {
-      cout << "Courbe : " << i << endl;
-      cout << "  NbPnt, NbPtInter, NbPtG1G1 :" << NbPnt_i << ", " 
-           << NbPtInter << ", " << NbPtG1G1 << endl;
+      std::cout << "Courbe : " << i << std::endl;
+      std::cout << "  NbPnt, NbPtInter, NbPtG1G1 :" << NbPnt_i << ", " 
+           << NbPtInter << ", " << NbPtG1G1 << std::endl;
     }
 #endif
     for (Standard_Integer j=1; j<=NbPnt_i; j++)  
index 18d2b25..bdcb209 100644 (file)
@@ -142,14 +142,14 @@ Standard_Real GeomPlate_CurveConstraint :: Length() const
   if (my3dCurve.IsNull())
 {//   GCPnts_AbscissaPoint A(myFrontiere->Curve(),AP.Length(myFrontiere->Curve())/2,myFrontiere->FirstParameter());
   //  Standard_Real toto=A.Parameter();
-//cout<<toto<<endl;
+//std::cout<<toto<<std::endl;
 return AP.Length(myFrontiere->GetCurve()); 
     
 }
  else
 { //  GCPnts_AbscissaPoint A(my3dCurve->Curve(),AP.Length(my3dCurve->Curve())/2,my3dCurve->FirstParameter());
   //  Standard_Real toto=A.Parameter();
-//cout<<toto<<endl;
+//std::cout<<toto<<std::endl;
 
  return AP.Length(my3dCurve->GetCurve());
 }
index dc53d80..9e3f870 100644 (file)
@@ -296,9 +296,9 @@ GeomPlate_MakeApprox::GeomPlate_MakeApprox(const Handle(GeomPlate_Surface)& Surf
   myAppError = AppPlate.MaxError(3,1);
   myCritError = AppPlate.CritError(3,1);
 #ifdef OCCT_DEBUG
-  cout<<"Approximation results"<<endl;
-  cout<<"  Approximation error : "<<myAppError<<endl;
-  cout<<"  Criterium error : "<<myCritError<<endl;
+  std::cout<<"Approximation results"<<std::endl;
+  std::cout<<"  Approximation error : "<<myAppError<<std::endl;
+  std::cout<<"  Criterium error : "<<myCritError<<std::endl;
 #endif
 }
 
@@ -360,13 +360,13 @@ GeomPlate_MakeApprox::GeomPlate_MakeApprox(const Handle(GeomPlate_Surface)& Surf
   if (CritOrder==0&&Tol3d<10*dmax) {
     seuil=10*dmax;
 #ifdef OCCT_DEBUG
-    cout<<"Seuil G0 choisi trop faible par rapport au contour. On prend "<<seuil<<endl;
+    std::cout<<"Seuil G0 choisi trop faible par rapport au contour. On prend "<<seuil<<std::endl;
 #endif
   }
   if (CritOrder==1&&Tol3d<10*dmax) {
     seuil=10*dmax;
 #ifdef OCCT_DEBUG
-    cout<<"Seuil G1 choisi trop faible par rapport au contour. On prend "<<seuil<<endl;
+    std::cout<<"Seuil G1 choisi trop faible par rapport au contour. On prend "<<seuil<<std::endl;
 #endif
   }
   Standard_Integer nb1 = 0, nb2 = 0, nb3 = 1;
@@ -405,8 +405,8 @@ GeomPlate_MakeApprox::GeomPlate_MakeApprox(const Handle(GeomPlate_Surface)& Surf
     myAppError = AppPlate.MaxError(3,1);
     myCritError = 0.;
 #ifdef OCCT_DEBUG
-    cout<<"Approximation results"<<endl;
-    cout<<"  Approximation error : "<<myAppError<<endl;
+    std::cout<<"Approximation results"<<std::endl;
+    std::cout<<"  Approximation error : "<<myAppError<<std::endl;
 #endif
   }
   else if (CritOrder==0) {
@@ -427,9 +427,9 @@ GeomPlate_MakeApprox::GeomPlate_MakeApprox(const Handle(GeomPlate_Surface)& Surf
     myAppError = AppPlate.MaxError(3,1);
     myCritError = AppPlate.CritError(3,1);
 #ifdef OCCT_DEBUG
-    cout<<"Approximation results"<<endl;
-    cout<<"  Approximation error : "<<myAppError<<endl;
-    cout<<"  Criterium error : "<<myCritError<<endl;
+    std::cout<<"Approximation results"<<std::endl;
+    std::cout<<"  Approximation error : "<<myAppError<<std::endl;
+    std::cout<<"  Criterium error : "<<myCritError<<std::endl;
 #endif
   }
   else if (CritOrder==1) {
@@ -450,9 +450,9 @@ GeomPlate_MakeApprox::GeomPlate_MakeApprox(const Handle(GeomPlate_Surface)& Surf
     myAppError = AppPlate.MaxError(3,1);
     myCritError = AppPlate.CritError(3,1);
 #ifdef OCCT_DEBUG
-    cout<<"Approximation results"<<endl;
-    cout<<"  Approximation error : "<<myAppError<<endl;
-    cout<<"  Criterium error : "<<myCritError<<endl;
+    std::cout<<"Approximation results"<<std::endl;
+    std::cout<<"  Approximation error : "<<myAppError<<std::endl;
+    std::cout<<"  Criterium error : "<<myCritError<<std::endl;
 #endif
   }
 }
index 8daeda8..01fd76e 100644 (file)
@@ -313,9 +313,9 @@ Handle(IGESData_IGESEntity) GeomToIGES_GeomCurve::TransferCurve
     }
     catch ( Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-      cout << "Warning: GeomToIGES_GeomCurve: can't trim bspline" << endl;
-      cout << "Warning: Exception in Segment(): " ;
-      anException.Print(cout);
+      std::cout << "Warning: GeomToIGES_GeomCurve: can't trim bspline" << std::endl;
+      std::cout << "Warning: Exception in Segment(): " ;
+      anException.Print(std::cout);
 #endif
       (void)anException;
     }
@@ -835,9 +835,9 @@ Handle(IGESData_IGESEntity) GeomToIGES_GeomCurve::TransferCurve
     }
     catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-      cout << "writing non-planar offset curve."<<endl;
-      cout << "Warning: GeomConvert::CurveToBSplineCurve raised an exception: ";
-      anException.Print(cout);
+      std::cout << "writing non-planar offset curve."<<std::endl;
+      std::cout << "Warning: GeomConvert::CurveToBSplineCurve raised an exception: ";
+      anException.Print(std::cout);
 #endif
       (void)anException;
     }
index f1c7a0b..95f49b5 100644 (file)
@@ -70,7 +70,7 @@ GeomToStep_MakeBoundedCurve::GeomToStep_MakeBoundedCurve ( const Handle(Geom_Bou
   }
   else {
 #ifdef OCCT_DEBUG
-    cout<<"MakeBoundedCurve, type : "<<C->DynamicType()->Name()<<" not processed"<<endl;
+    std::cout<<"MakeBoundedCurve, type : "<<C->DynamicType()->Name()<<" not processed"<<std::endl;
 #endif
     done = Standard_False;
   }
index d585b81..5db9c52 100644 (file)
@@ -65,7 +65,7 @@ GeomToStep_MakeConic::GeomToStep_MakeConic ( const Handle(Geom_Conic)& C)
   }
   else {
 #ifdef OCCT_DEBUG
-    cout << "3D Curve Type   : " << C->DynamicType() << endl;
+    std::cout << "3D Curve Type   : " << C->DynamicType() << std::endl;
 #endif
     done = Standard_False;
   }
@@ -102,7 +102,7 @@ GeomToStep_MakeConic::GeomToStep_MakeConic ( const Handle(Geom2d_Conic)& C)
     // Attention : Other 2d conics shall be implemented ...
     //             To be performed later !
 #ifdef OCCT_DEBUG
-    cout << "2D conic not yet implemented" << endl;
+    std::cout << "2D conic not yet implemented" << std::endl;
 #endif
     done = Standard_False;
   }
index 69eaa89..50275c4 100644 (file)
@@ -77,8 +77,8 @@ GeomToStep_MakeCurve::GeomToStep_MakeCurve ( const Handle(Geom_Curve)& C)
     }
     else {
 #ifdef OCCT_DEBUG
-      cout<<"GeomToStep_MakeCurve, TrimmedCurve, BasisCurve is transferred not trimmed"<<endl;
-      cout<<"BasisCurve Type : "<<B->DynamicType()->Name()<<endl;
+      std::cout<<"GeomToStep_MakeCurve, TrimmedCurve, BasisCurve is transferred not trimmed"<<std::endl;
+      std::cout<<"BasisCurve Type : "<<B->DynamicType()->Name()<<std::endl;
 #endif
     }
     GeomToStep_MakeCurve MkBasisC(B);
@@ -118,7 +118,7 @@ GeomToStep_MakeCurve::GeomToStep_MakeCurve ( const Handle(Geom2d_Curve)& C)
       gp_Circ2d C2d = theC2d->Circ2d();
       if (!C2d.IsDirect()) {
 #ifdef OCCT_DEBUG
-       cout << "Warning : Circle converted to BSpline." << endl;
+       std::cout << "Warning : Circle converted to BSpline." << std::endl;
 #endif
        Handle(Geom2d_BSplineCurve) aBSplineCurve2d = 
          Geom2dConvert::CurveToBSplineCurve(theC2d);
@@ -137,7 +137,7 @@ GeomToStep_MakeCurve::GeomToStep_MakeCurve ( const Handle(Geom2d_Curve)& C)
       gp_Elips2d E2d = theE2d->Elips2d();
       if (!E2d.IsDirect()) {
 #ifdef OCCT_DEBUG
-       cout << "Warning : Ellipse converted to BSpline." << endl;
+       std::cout << "Warning : Ellipse converted to BSpline." << std::endl;
 #endif
        Handle(Geom2d_BSplineCurve) aBSplineCurve2d = 
          Geom2dConvert::CurveToBSplineCurve(theE2d);
index dbfe276..5400de3 100644 (file)
@@ -72,7 +72,7 @@ GeomToStep_MakeSurface::GeomToStep_MakeSurface ( const Handle(Geom_Surface)& S)
   else {
     done = Standard_False;
 #ifdef OCCT_DEBUG
-    cout << " unknown type " << S->DynamicType()->Name() << endl;
+    std::cout << " unknown type " << S->DynamicType()->Name() << std::endl;
 #endif
   }
 }
index 596f7c1..8115514 100644 (file)
@@ -309,7 +309,7 @@ static void Print(const Handle(Geom2d_BezierCurve)& B,
   OS << degree << " ";
   
   for (i = 1; i <= degree+1; i++) {
-    if (!compact) OS << "\n  "<<setw(2)<<i<<" : ";
+    if (!compact) OS << "\n  "<<std::setw(2)<<i<<" : ";
     Print(B->Pole(i),OS,compact);
     if (rational)
       OS << " " << B->Weight(i);
@@ -369,7 +369,7 @@ static void Print(const Handle(Geom2d_BSplineCurve)& B,
   
   if (!compact) OS << "Poles :\n";
   for (i = 1; i <= nbpoles; i++) {
-    if (!compact) OS << "\n  "<<setw(2)<<i<<" : ";
+    if (!compact) OS << "\n  "<<std::setw(2)<<i<<" : ";
     else OS << " ";
     Print(B->Pole(i),OS,compact);
     if (rational)
@@ -379,7 +379,7 @@ static void Print(const Handle(Geom2d_BSplineCurve)& B,
 
   if (!compact) OS << "Knots :\n";
   for (i = 1; i <= nbknots; i++) {
-    if (!compact) OS << "\n  "<<setw(2)<<i<<" : ";
+    if (!compact) OS << "\n  "<<std::setw(2)<<i<<" : ";
     else OS << " ";
     OS << B->Knot(i) << " " << B->Multiplicity(i);
   }
@@ -468,7 +468,7 @@ void GeomTools_Curve2dSet::PrintCurve2d(const Handle(Geom2d_Curve)& C,
     //if (!compact)
     //  OS << "****** UNKNOWN CURVE2d TYPE ******\n";
     //else 
-    //  cout << "****** UNKNOWN CURVE2d TYPE ******" << endl;
+    //  std::cout << "****** UNKNOWN CURVE2d TYPE ******" << std::endl;
   }
 }
 
@@ -485,7 +485,7 @@ void  GeomTools_Curve2dSet::Dump(Standard_OStream& OS)const
   OS << "\n -------\n\n";
 
   for (i = 1; i <= nbsurf; i++) {
-    OS << setw(4) << i << " : ";
+    OS << std::setw(4) << i << " : ";
     PrintCurve2d(Handle(Geom2d_Curve)::DownCast(myMap(i)),OS,Standard_False);
   }
 }
@@ -827,8 +827,8 @@ Handle(Geom2d_Curve) GeomTools_Curve2dSet::ReadCurve2d(Standard_IStream& IS)
   }
   catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    cout <<"EXCEPTION in GeomTools_Curve2dSet::ReadCurve2d(..)!!!" << endl;
-    cout << anException << endl;
+    std::cout <<"EXCEPTION in GeomTools_Curve2dSet::ReadCurve2d(..)!!!" << std::endl;
+    std::cout << anException << std::endl;
 #endif
     (void)anException;
   }
@@ -845,7 +845,7 @@ void  GeomTools_Curve2dSet::Read(Standard_IStream& IS)
   char buffer[255];
   IS >> buffer;
   if (strcmp(buffer,"Curve2ds")) {
-    cout << "Not a Curve2d table"<<endl;
+    std::cout << "Not a Curve2d table"<<std::endl;
     return;
   }
 
index 903fd2b..9588e8c 100644 (file)
@@ -323,7 +323,7 @@ static void Print(const Handle(Geom_BezierCurve)& B,
   OS << degree << " ";
   
   for (i = 1; i <= degree+1; i++) {
-    if (!compact) OS << "\n  "<<setw(2)<<i<<" : ";
+    if (!compact) OS << "\n  "<<std::setw(2)<<i<<" : ";
     Print(B->Pole(i),OS,compact);
     if (rational)
       OS << " " << B->Weight(i);
@@ -383,7 +383,7 @@ static void Print(const Handle(Geom_BSplineCurve)& B,
   
   if (!compact) OS << "Poles :\n";
   for (i = 1; i <= nbpoles; i++) {
-    if (!compact) OS << "\n  "<<setw(2)<<i<<" : ";
+    if (!compact) OS << "\n  "<<std::setw(2)<<i<<" : ";
     else OS << " ";
     Print(B->Pole(i),OS,compact);
     if (rational)
@@ -393,7 +393,7 @@ static void Print(const Handle(Geom_BSplineCurve)& B,
 
   if (!compact) OS << "Knots :\n";
   for (i = 1; i <= nbknots; i++) {
-    if (!compact) OS << "\n  "<<setw(2)<<i<<" : ";
+    if (!compact) OS << "\n  "<<std::setw(2)<<i<<" : ";
     OS << " " << B->Knot(i) << " " << B->Multiplicity(i);
   }
 
@@ -485,7 +485,7 @@ void GeomTools_CurveSet::PrintCurve(const Handle(Geom_Curve)& C,
     //if (!compact)
     //  OS << "****** UNKNOWN CURVE TYPE ******\n";
     //else 
-    //  cout << "****** UNKNOWN CURVE TYPE ******" << endl;
+    //  std::cout << "****** UNKNOWN CURVE TYPE ******" << std::endl;
   }
 }
 
@@ -502,7 +502,7 @@ void  GeomTools_CurveSet::Dump(Standard_OStream& OS)const
   OS << "\n -------\n\n";
 
   for (i = 1; i <= nbsurf; i++) {
-    OS << setw(4) << i << " : ";
+    OS << std::setw(4) << i << " : ";
     PrintCurve(Handle(Geom_Curve)::DownCast(myMap(i)),OS,Standard_False);
   }
 }
@@ -848,8 +848,8 @@ Handle(Geom_Curve) GeomTools_CurveSet::ReadCurve (Standard_IStream& IS)
   }
   catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    cout <<"EXCEPTION in GeomTools_CurveSet::ReadCurve(..)!!!" << endl;
-    cout << anException << endl;
+    std::cout <<"EXCEPTION in GeomTools_CurveSet::ReadCurve(..)!!!" << std::endl;
+    std::cout << anException << std::endl;
 #endif
     (void)anException;
   }
@@ -866,7 +866,7 @@ void  GeomTools_CurveSet::Read(Standard_IStream& IS)
   char buffer[255];
   IS >> buffer;
   if (strcmp(buffer,"Curves")) {
-    cout << "Not a Curve table"<<endl;
+    std::cout << "Not a Curve table"<<std::endl;
     return;
   }
 
index 1b33ba8..f7c8c07 100644 (file)
@@ -40,26 +40,26 @@ const char* GeomTools_Dump (void* theHandlePtr)
 
     Handle(Geom_Surface) GS = Handle(Geom_Surface)::DownCast(aHandle);
     if (!GS.IsNull()) {
-      cout << "\n\n";
-      GeomTools_SurfaceSet::PrintSurface (GS,cout);
-      cout << endl;
-      return "Found Geom_Surface, see dump in cout";
+      std::cout << "\n\n";
+      GeomTools_SurfaceSet::PrintSurface (GS,std::cout);
+      std::cout << std::endl;
+      return "Found Geom_Surface, see dump in std::cout";
     }
 
     Handle(Geom_Curve) GC = Handle(Geom_Curve)::DownCast(aHandle);
     if (!GC.IsNull()) {
-      cout << "\n\n";
-      GeomTools_CurveSet::PrintCurve(GC,cout);
-      cout << endl;
-      return "Found Geom_Curve, see dump in cout";
+      std::cout << "\n\n";
+      GeomTools_CurveSet::PrintCurve(GC,std::cout);
+      std::cout << std::endl;
+      return "Found Geom_Curve, see dump in std::cout";
     }
 
     Handle(Geom2d_Curve) GC2d = Handle(Geom2d_Curve)::DownCast(aHandle);
     if (!GC2d.IsNull()) {
-      cout << "\n\n";
-      GeomTools_Curve2dSet::PrintCurve2d(GC2d,cout);
-      cout << endl;
-      return "Found Geom2d_Curve, see dump in cout";
+      std::cout << "\n\n";
+      GeomTools_Curve2dSet::PrintCurve2d(GC2d,std::cout);
+      std::cout << std::endl;
+      return "Found Geom2d_Curve, see dump in std::cout";
     }
 
     return "Error: Not a geometric object";
index 60dd9b3..1aaad47 100644 (file)
@@ -400,7 +400,7 @@ static void Print(const Handle(Geom_BezierSurface)& S,
   
   for (i = 1; i <= udegree+1; i++) {
     for (j = 1; j <= vdegree+1; j++) {
-      if (!compact) OS << "\n  "<<setw(2)<<i<<", "<<setw(2)<<j<<" : ";
+      if (!compact) OS << "\n  "<<std::setw(2)<<i<<", "<<std::setw(2)<<j<<" : ";
       Print(S->Pole(i,j),OS,compact);
       if (urational || vrational)
        OS << " " << S->Weight(i,j);
@@ -486,7 +486,7 @@ static void Print(const Handle(Geom_BSplineSurface)& S,
   if (!compact) OS << "\n Poles :\n";
   for (i = 1; i <= nbupoles; i++) {
     for (j = 1; j <= nbvpoles; j++) {
-      if (!compact) OS << "\n  "<<setw(2)<<i<<", "<<setw(2)<<j<<" : ";
+      if (!compact) OS << "\n  "<<std::setw(2)<<i<<", "<<std::setw(2)<<j<<" : ";
       Print(S->Pole(i,j),OS,compact);
       if (urational || vrational)
        OS << " " << S->Weight(i,j);
@@ -498,13 +498,13 @@ static void Print(const Handle(Geom_BSplineSurface)& S,
   OS << "\n";
   if (!compact) OS << "\n UKnots :\n";
   for (i = 1; i <= nbuknots; i++) {
-    if (!compact) OS << "\n  "<<setw(2)<<i<<" : ";
+    if (!compact) OS << "\n  "<<std::setw(2)<<i<<" : ";
     OS << S->UKnot(i) << " " << S->UMultiplicity(i) <<"\n";
   }
   OS << "\n";
   if (!compact) OS << "\n VKnots :\n";
   for (i = 1; i <= nbvknots; i++) {
-    if (!compact) OS << "\n  "<<setw(2)<<i<<" : ";
+    if (!compact) OS << "\n  "<<std::setw(2)<<i<<" : ";
     OS << S->VKnot(i) << " " << S->VMultiplicity(i) <<"\n";
   }
   OS << "\n";
@@ -605,7 +605,7 @@ void GeomTools_SurfaceSet::PrintSurface(const Handle(Geom_Surface)& S,
     //if (!compact)
     //  OS << "***** Unknown Surface ********\n";
     //else
-    //  cout << "***** Unknown Surface ********"<<endl;
+    //  std::cout << "***** Unknown Surface ********"<<std::endl;
   }
 }
 
@@ -622,7 +622,7 @@ void  GeomTools_SurfaceSet::Dump(Standard_OStream& OS)const
   OS << "\n -------\n\n";
 
   for (i = 1; i <= nbsurf; i++) {
-    OS << setw(4) << i << " : ";
+    OS << std::setw(4) << i << " : ";
     PrintSurface(Handle(Geom_Surface)::DownCast(myMap(i)),OS,Standard_False);
   }
 }
@@ -1039,8 +1039,8 @@ Handle(Geom_Surface) GeomTools_SurfaceSet::ReadSurface(Standard_IStream& IS)
   }
   catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    cout <<"EXCEPTION in GeomTools_SurfaceSet::ReadSurface(..)!!!" << endl;
-    cout << anException << endl;
+    std::cout <<"EXCEPTION in GeomTools_SurfaceSet::ReadSurface(..)!!!" << std::endl;
+    std::cout << anException << std::endl;
 #endif
     (void)anException;
   }
@@ -1057,7 +1057,7 @@ void  GeomTools_SurfaceSet::Read(Standard_IStream& IS)
   char buffer[255];
   IS >> buffer;
   if (strcmp(buffer,"Surfaces")) {
-    cout << "Not a surface table"<<endl;
+    std::cout << "Not a surface table"<<std::endl;
     return;
   }
 
index b6bbac2..c997e4e 100644 (file)
@@ -39,7 +39,7 @@ void GeomTools_UndefinedTypeHandler::PrintCurve(const Handle(Geom_Curve)& /*C*/,
   if (!compact)
     OS << "****** UNKNOWN CURVE TYPE ******\n";
   else 
-    cout << "****** UNKNOWN CURVE TYPE ******" << endl;
+    std::cout << "****** UNKNOWN CURVE TYPE ******" << std::endl;
 }
 
 //=======================================================================
@@ -66,7 +66,7 @@ void GeomTools_UndefinedTypeHandler::PrintCurve2d(const Handle(Geom2d_Curve)& /*
   if (!compact)
     OS << "****** UNKNOWN CURVE2d TYPE ******\n";
   else 
-    cout << "****** UNKNOWN CURVE2d TYPE ******" << endl;
+    std::cout << "****** UNKNOWN CURVE2d TYPE ******" << std::endl;
 }
 
 //=======================================================================
@@ -93,7 +93,7 @@ void GeomTools_UndefinedTypeHandler::PrintSurface(const Handle(Geom_Surface)& /*
   if (!compact)
     OS << "****** UNKNOWN SURFACE TYPE ******\n";
   else 
-    cout << "****** UNKNOWN SURFACE TYPE ******" << endl;
+    std::cout << "****** UNKNOWN SURFACE TYPE ******" << std::endl;
 }
 
 Standard_IStream& GeomTools_UndefinedTypeHandler::ReadSurface(const Standard_Integer /*ctype*/,
index 5bca777..0121875 100644 (file)
@@ -90,7 +90,7 @@ static Standard_Integer proj (Draw_Interpretor& di, Standard_Integer n, const ch
 {
   if ( n < 5)
   {
-    cout << " Use proj curve/surf x y z [{extrema algo: g(grad)/t(tree)}|{u v}]" << endl;
+    std::cout << " Use proj curve/surf x y z [{extrema algo: g(grad)/t(tree)}|{u v}]" << std::endl;
     return 1;
   }
 
@@ -155,7 +155,7 @@ static Standard_Integer proj (Draw_Interpretor& di, Standard_Integer n, const ch
 
     if(proj.NbPoints() == 0)
     {
-      cout << "No project point was found." << endl;
+      std::cout << "No project point was found." << std::endl;
       return 0;
     }
 
index de80e10..f1e0502 100644 (file)
@@ -537,7 +537,7 @@ static Standard_Integer interpol (Draw_Interpretor& di,Standard_Integer n, const
     // lecture du fichier.
     // nbpoints, 2d ou 3d, puis valeurs.
     const char* nomfic = a[2];
-    ifstream iFile(nomfic, ios::in);
+    std::ifstream iFile(nomfic, std::ios::in);
     if (!iFile) return 1;
     Standard_Integer nbp, i;
     Standard_Real x, y, z;
index abe6b42..0cf62d6 100644 (file)
@@ -158,7 +158,7 @@ static Standard_Integer surfaceCcontinuity (Draw_Interpretor& di, Standard_Integ
 
   LocalAnalysis_SurfaceContinuity RES (surf1, U1, V1, surf2, U2, V2, 
                                        TypeCont, epsnl, epsC0, epsC1, epsC2, epsG1, perce, maxlen);
-  //LocalAnalysis::Dump(RES,cout);    
+  //LocalAnalysis::Dump(RES,std::cout);    
   Standard_SStream aSStream;
   LocalAnalysis::Dump(RES,aSStream);    
   di << aSStream;
@@ -252,7 +252,7 @@ static Standard_Integer surfaceGcontinuity (Draw_Interpretor& di, Standard_Integ
   
   LocalAnalysis_SurfaceContinuity RES (surf1, U1, V1, surf2, U2, V2, 
                                        TypeCont, epsnl, epsC0, epsC1, epsC2, epsG1, perce, maxlen);
-  //LocalAnalysis::Dump(RES,cout);
+  //LocalAnalysis::Dump(RES,std::cout);
   Standard_SStream aSStream;
   LocalAnalysis::Dump(RES,aSStream);
   di << aSStream;
@@ -343,7 +343,7 @@ static Standard_Integer curveGcontinuity(Draw_Interpretor& di, Standard_Integer
 
   LocalAnalysis_CurveContinuity RES (curv1, U1, curv2, U2, TypeCont,
                                      epsnl, epsC0, epsC1, epsC2, epsG1, epsG2, percent, maxlen);
-  //LocalAnalysis::Dump(RES,cout);   
+  //LocalAnalysis::Dump(RES,std::cout);   
   Standard_SStream aSStream;
   LocalAnalysis::Dump(RES,aSStream);   
   di << aSStream;
@@ -447,7 +447,7 @@ static Standard_Integer curveCcontinuity(Draw_Interpretor& di, Standard_Integer
 
   LocalAnalysis_CurveContinuity RES (curv1, U1, curv2, U2, TypeCont, 
                                      epsnl, epsC0, epsC1, epsC2, epsG1, epsG2, percent, maxlen);
-  //LocalAnalysis::Dump(RES,cout);   
+  //LocalAnalysis::Dump(RES,std::cout);   
   Standard_SStream aSStream;
   LocalAnalysis::Dump(RES,aSStream);   
   di << aSStream;
index 544f5f4..9417582 100644 (file)
@@ -309,7 +309,7 @@ static Standard_Integer gproject(Draw_Interpretor& di, Standard_Integer n, const
     Sprintf(newname,"%s_%d",name,k);
     Sprintf(newname1,"%s2d_%d",name,k);
     if(Projector.IsSinglePnt(k, P2d)){
-//      cout<<"Part "<<k<<" of the projection is punctual"<<endl;
+//      std::cout<<"Part "<<k<<" of the projection is punctual"<<std::endl;
       Projector.GetSurface()->D0(P2d.X(), P2d.Y(), P);
       DrawTrSurf::Set(temp, P);
       DrawTrSurf::Set(temp1, P2d);
@@ -322,7 +322,7 @@ static Standard_Integer gproject(Draw_Interpretor& di, Standard_Integer n, const
       gp_Dir2d Dir; // Only for isoparametric projection
       
       if (Projector.IsUIso(k, UIso)) {
-//      cout<<"Part "<<k<<" of the projection is U-isoparametric curve"<<endl;
+//      std::cout<<"Part "<<k<<" of the projection is U-isoparametric curve"<<std::endl;
         Projector.D0(Udeb, Pdeb);
         Projector.D0(Ufin, Pfin);
         Udeb = Pdeb.Y();
@@ -338,7 +338,7 @@ static Standard_Integer gproject(Draw_Interpretor& di, Standard_Integer n, const
         Only3d = Standard_True;
       }
       else if(Projector.IsVIso(k, VIso)) {
-//      cout<<"Part "<<k<<" of the projection is V-isoparametric curve"<<endl;
+//      std::cout<<"Part "<<k<<" of the projection is V-isoparametric curve"<<std::endl;
         Projector.D0(Udeb, Pdeb);
         Projector.D0(Ufin, Pfin);
         Udeb = Pdeb.X();
@@ -945,7 +945,7 @@ static Standard_Integer crvpoints (Draw_Interpretor& di, Standard_Integer /*n*/,
     TopoDS_Wire aWire = TopoDS::Wire(DBRep::Get(a[2], TopAbs_WIRE));
     if (aWire.IsNull())
     {
-      cout << "cannot evaluate the argument " << a[2] << " as a curve" << endl;
+      std::cout << "cannot evaluate the argument " << a[2] << " as a curve" << std::endl;
       return 1;
     }
     BRepAdaptor_CompCurve aCompCurve(aWire);
@@ -1019,7 +1019,7 @@ static Standard_Integer crvtpoints (Draw_Interpretor& di, Standard_Integer n, co
     TopoDS_Wire aWire = TopoDS::Wire(DBRep::Get(a[2], TopAbs_WIRE));
     if (aWire.IsNull())
     {
-      cout << "cannot evaluate the argument " << a[2] << " as a curve" << endl;
+      std::cout << "cannot evaluate the argument " << a[2] << " as a curve" << std::endl;
       return 1;
     }
     BRepAdaptor_CompCurve aCompCurve(aWire);
@@ -1681,7 +1681,7 @@ static Standard_Integer intersection (Draw_Interpretor& di,
       Standard_Integer Compt = 1;
 
       if(nblines >= 1)
-        cout << "   Lines: " << endl;
+        std::cout << "   Lines: " << std::endl;
 
       for (i = 1; i <= nblines; i++, Compt++)
       {
@@ -1693,7 +1693,7 @@ static Standard_Integer intersection (Draw_Interpretor& di,
       }
 
       if(nbpoints >= 1)
-        cout << "   Points: " << endl;
+        std::cout << "   Points: " << std::endl;
 
       const Standard_Integer imax = nblines+nbpoints;
 
index d472a81..5871aeb 100644 (file)
@@ -37,7 +37,7 @@ static Standard_Integer qcurve (Draw_Interpretor&, Standard_Integer theArgsNb, c
 {
   if (theArgsNb < 5)
   {
-    cout << "Error: wrong number of arguments.\n";
+    std::cout << "Error: wrong number of arguments.\n";
     return 1;
   }
 
@@ -61,7 +61,7 @@ static Standard_Integer qcurve (Draw_Interpretor&, Standard_Integer theArgsNb, c
   {
     if (theArgsNb < 6)
     {
-      cout << "Error: wrong number of arguments.\n";
+      std::cout << "Error: wrong number of arguments.\n";
       return 1;
     }
     aResult2d = new Geom2d_Line (gp_Pnt2d (Draw::Atof (theArgVec[2]), Draw::Atof (theArgVec[3])),
@@ -71,7 +71,7 @@ static Standard_Integer qcurve (Draw_Interpretor&, Standard_Integer theArgsNb, c
   }
   else
   {
-    cout << "Error: wrong command name.\n";
+    std::cout << "Error: wrong command name.\n";
     return 1;
   }
 
@@ -95,7 +95,7 @@ static Standard_Integer solutions (Draw_Interpretor& theDI, GccAna_Circ2d3Tan& t
 {
   if (!theCirTan3.IsDone())
   {
-    cout << "GccAna_Circ2d3Tan is not done";
+    std::cout << "GccAna_Circ2d3Tan is not done";
     return 1;
   }
 
@@ -159,7 +159,7 @@ static Standard_Integer circ2d3Tan (Draw_Interpretor& theDI, Standard_Integer th
 {
   if (theArgsNb < 5)
   {
-    cout << "Error: wrong number of arguments.\n";
+    std::cout << "Error: wrong number of arguments.\n";
     return 1;
   }
 
@@ -183,7 +183,7 @@ static Standard_Integer circ2d3Tan (Draw_Interpretor& theDI, Standard_Integer th
   {
     if (!anIsPoint1 || !anIsPoint2 || !anIsPoint3)
     {
-      cout << "Error: wrong points definition.\n";
+      std::cout << "Error: wrong points definition.\n";
       return 1;
     }
     GccAna_Circ2d3Tan aCircBuilder (aPoint1, aPoint2, aPoint3, aTolerance);
@@ -195,7 +195,7 @@ static Standard_Integer circ2d3Tan (Draw_Interpretor& theDI, Standard_Integer th
   {
     if (!anIsPoint2 || !anIsPoint3)
     {
-      cout << "Error: wrong points definition.\n";
+      std::cout << "Error: wrong points definition.\n";
       return 1;
     }
     Geom2dAdaptor_Curve anAdaptorCurve1 (aQCurve1->GetCurve());
@@ -211,7 +211,7 @@ static Standard_Integer circ2d3Tan (Draw_Interpretor& theDI, Standard_Integer th
       GccAna_Circ2d3Tan aCircBuilder (aQualifiedLin1, aPoint2, aPoint3, aTolerance);
       return solutions (theDI, aCircBuilder, theArgVec[1]);
     }
-    cout << "Error: wrong curve type.\n";
+    std::cout << "Error: wrong curve type.\n";
     return 1;
   }
 
@@ -220,7 +220,7 @@ static Standard_Integer circ2d3Tan (Draw_Interpretor& theDI, Standard_Integer th
   {
     if (!anIsPoint3)
     {
-      cout << "Error: wrong point definition.\n";
+      std::cout << "Error: wrong point definition.\n";
       return 1;
     }
     Geom2dAdaptor_Curve anAdaptorCurve1 (aQCurve1->GetCurve());
@@ -246,7 +246,7 @@ static Standard_Integer circ2d3Tan (Draw_Interpretor& theDI, Standard_Integer th
       GccAna_Circ2d3Tan aCircBuilder (aQualifiedLin1, aQualifiedLin2, aPoint3, aTolerance);
       return solutions (theDI, aCircBuilder, theArgVec[1]);
     }
-    cout << "Error: wrong curve type.\n";
+    std::cout << "Error: wrong curve type.\n";
     return 1;
   }
 
@@ -292,7 +292,7 @@ static Standard_Integer circ2d3Tan (Draw_Interpretor& theDI, Standard_Integer th
     return solutions (theDI, aCircBuilder, theArgVec[1]);
   }
 
-  cout << "Error: wrong curve type.\n";
+  std::cout << "Error: wrong curve type.\n";
   return 1;
 }
 
index b4340e3..f9bd631 100644 (file)
@@ -39,7 +39,7 @@ static Standard_Integer xdistcc(Draw_Interpretor& , Standard_Integer n, const ch
 {
   if (n < 5)
   {
-    cout<<" Use xdistcc c1 c2 t1 t2 nbp"<<endl;
+    std::cout<<" Use xdistcc c1 c2 t1 t2 nbp"<<std::endl;
     return 0;
   }
 
@@ -53,14 +53,14 @@ static Standard_Integer xdistcc(Draw_Interpretor& , Standard_Integer n, const ch
   aC1=DrawTrSurf::GetCurve(a[1]);
   if (aC1.IsNull())
   {
-    cout<<a[1]<<" is null curve"<<endl;
+    std::cout<<a[1]<<" is null curve"<<std::endl;
     return 0;
   }
 
   aC2=DrawTrSurf::GetCurve(a[2]);
   if (aC2.IsNull())
   {
-    cout<<a[2]<<" is null curve"<<endl;
+    std::cout<<a[2]<<" is null curve"<<std::endl;
     return 0;
   }
 
@@ -102,8 +102,8 @@ static Standard_Integer xdistcc(Draw_Interpretor& , Standard_Integer n, const ch
     dout << aMr;
   }
 
-  cout << "Max distance = "  << aMaxDist << endl;
-  cout << "Param = " << aMaxParam << endl;
+  std::cout << "Max distance = "  << aMaxDist << std::endl;
+  std::cout << "Param = " << aMaxParam << std::endl;
 
   return 0;
 }
@@ -116,7 +116,7 @@ static Standard_Integer xdistc2dc2dss(Draw_Interpretor& , Standard_Integer n, co
 {
   if (n < 7)
   {
-    cout<<" Use xdistc2dc2dss c2d_1 c2d_2 s1 s2 t1 t2 nbp"<<endl;
+    std::cout<<" Use xdistc2dc2dss c2d_1 c2d_2 s1 s2 t1 t2 nbp"<<std::endl;
     return 0;
   }
 
@@ -132,28 +132,28 @@ static Standard_Integer xdistc2dc2dss(Draw_Interpretor& , Standard_Integer n, co
   aC2d1=DrawTrSurf::GetCurve2d(a[1]);
   if (aC2d1.IsNull())
   {
-    cout<<a[1]<<" is null 2dcurve"<<endl;
+    std::cout<<a[1]<<" is null 2dcurve"<<std::endl;
     return 0;
   }
 
   aC2d2=DrawTrSurf::GetCurve2d(a[2]);
   if (aC2d2.IsNull())
   {
-    cout<<a[2]<<" is null 2dcurve"<<endl;
+    std::cout<<a[2]<<" is null 2dcurve"<<std::endl;
     return 0;
   }
 
   aS1=DrawTrSurf::GetSurface(a[3]);
   if (aS1.IsNull())
   {
-    cout<<a[3]<<" is null surface"<<endl;
+    std::cout<<a[3]<<" is null surface"<<std::endl;
     return 0;
   }
 
   aS2=DrawTrSurf::GetSurface(a[4]);
   if (aS2.IsNull())
   {
-    cout<<a[4]<<" is null surface"<<endl;
+    std::cout<<a[4]<<" is null surface"<<std::endl;
     return 0;
   }
 
@@ -198,8 +198,8 @@ static Standard_Integer xdistc2dc2dss(Draw_Interpretor& , Standard_Integer n, co
     dout << aMr;
   }
 
-  cout << "Max distance = "  << aMaxDist << endl;
-  cout << "Param = " << aMaxParam << endl;
+  std::cout << "Max distance = "  << aMaxDist << std::endl;
+  std::cout << "Param = " << aMaxParam << std::endl;
 
   return 0;
 }
@@ -212,7 +212,7 @@ static Standard_Integer xdistcc2ds(Draw_Interpretor& , Standard_Integer n, const
 {
   if (n < 6)
   {
-    cout<<" Use xdistcc2ds c c2d s t1 t2 nbp"<<endl;
+    std::cout<<" Use xdistcc2ds c c2d s t1 t2 nbp"<<std::endl;
     return 0;
   }
 
@@ -229,21 +229,21 @@ static Standard_Integer xdistcc2ds(Draw_Interpretor& , Standard_Integer n, const
   aC=DrawTrSurf::GetCurve(a[1]);
   if (aC.IsNull())
   {
-    cout<<a[1]<<" is null curve"<<endl;
+    std::cout<<a[1]<<" is null curve"<<std::endl;
     return 0;
   }
 
   aC2d=DrawTrSurf::GetCurve2d(a[2]);
   if (aC2d.IsNull())
   {
-    cout<<a[2]<<" is null 2dcurve"<<endl;
+    std::cout<<a[2]<<" is null 2dcurve"<<std::endl;
     return 0;
   }
 
   aS=DrawTrSurf::GetSurface(a[3]);
   if (aS.IsNull())
   {
-    cout<<a[3]<<" is null surface"<<endl;
+    std::cout<<a[3]<<" is null surface"<<std::endl;
     return 0;
   }
 
@@ -287,8 +287,8 @@ static Standard_Integer xdistcc2ds(Draw_Interpretor& , Standard_Integer n, const
     dout << aMr;
   }
 
-  cout << "Max distance = "  << aMaxDist << endl;
-  cout << "Param = " << aMaxParam << endl;
+  std::cout << "Max distance = "  << aMaxDist << std::endl;
+  std::cout << "Param = " << aMaxParam << std::endl;
 
   return 0;
 }
@@ -300,10 +300,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) {
-    cout << "Use: xdistcs curve surface t1 t2 nbpoints [tol [warn_tol]]" << endl;
-    cout << "Measures distances from curve to surface by nbpoints probing points on a curve" << endl;
-    cout << "Error will be reported for points where distance is greater than tol" << endl;
-    cout << "Warning will be reported for points where distance is greater than warn_tol" << endl;
+    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;
     return 0;
   }
   //
index a7cf839..8c0a304 100644 (file)
@@ -442,7 +442,7 @@ static Standard_Integer intersect_ana(Draw_Interpretor& di, Standard_Integer n,
 {
   if (n < 2)
   {
-    cout << "2dintana circle circle " << endl;
+    std::cout << "2dintana circle circle " << std::endl;
     return 1;
   }
 
@@ -483,21 +483,21 @@ static Standard_Integer intconcon(Draw_Interpretor& di, Standard_Integer n, cons
 {
   if( n < 2) 
   {
-    cout<< "intconcon con1 con2 "<<endl;
+    std::cout<< "intconcon con1 con2 "<<std::endl;
     return 1;
   }
   
   Handle(Geom2d_Curve) C1 = DrawTrSurf::GetCurve2d(a[1]);
   if (C1.IsNull())
   {
-    cout << a[1] << " is Null " << endl;
+    std::cout << a[1] << " is Null " << std::endl;
     return 1;
   }
 
   Handle(Geom2d_Curve) C2 = DrawTrSurf::GetCurve2d(a[2]);
   if (C2.IsNull())
   {
-    cout << a[2] << " is Null " << endl;
+    std::cout << a[2] << " is Null " << std::endl;
     return 1;
   }
 
@@ -536,7 +536,7 @@ static Standard_Integer intconcon(Draw_Interpretor& di, Standard_Integer n, cons
     break;
   }
   default:
-    cout << a[2] << " is not conic " << endl;
+    std::cout << a[2] << " is not conic " << std::endl;
     return 1;
   }
 
@@ -559,7 +559,7 @@ static Standard_Integer intconcon(Draw_Interpretor& di, Standard_Integer n, cons
     Intersector.Perform(AC1.Parabola(), *pCon);
     break;
   default:
-    cout << a[1] << " is not conic " << endl;
+    std::cout << a[1] << " is not conic " << std::endl;
     return 1;
   }
   
index 234554b..1d403cc 100644 (file)
@@ -209,7 +209,7 @@ static Standard_Integer PointsByPick
 //=======================================================================
 static void PointsByFile(Handle(AppDef_HArray1OfMultiPointConstraint)& MPC,
                         Handle(AppParCurves_HArray1OfConstraintCouple)& TABofCC,
-                        ifstream& iFile,
+                        std::ifstream& iFile,
                         Draw_Interpretor& di)
 {
   Standard_Integer nbp, i, nbc;
@@ -379,7 +379,7 @@ static Standard_Integer smoothing (Draw_Interpretor& di,Standard_Integer n, cons
       // lecture du fichier.
     // nbpoints, 2d ou 3d, puis valeurs.
       const char* nomfic = a[ific];
-      ifstream iFile(nomfic, ios::in);
+      std::ifstream iFile(nomfic, std::ios::in);
       if (!iFile) { 
        di << a[ific] <<"do not exist !\n";
        return 1;
@@ -423,7 +423,7 @@ static Standard_Integer smoothing (Draw_Interpretor& di,Standard_Integer n, cons
     Variation.Approximate();
 
 #  ifdef GEOMLITETEST_DEB
-    //Variation.Dump(cout);
+    //Variation.Dump(std::cout);
     Standard_SStream aSStream;
     Variation.Dump(aSStream);
     di << aSStream;
@@ -468,7 +468,7 @@ static Standard_Integer smoothing (Draw_Interpretor& di,Standard_Integer n, cons
     if (Tolerance>0) { Variation.SetWithMinMax(Standard_True);}
     Variation.Approximate();
 #     ifdef GEOMLITETEST_DEB
-    //Variation.Dump(cout);
+    //Variation.Dump(std::cout);
     Standard_SStream aSStream;
     Variation.Dump(aSStream);
     di << aSStream;
@@ -549,7 +549,7 @@ static Standard_Integer smoothingbybezier (Draw_Interpretor& di,
       // lecture du fichier.
       // nbpoints, 2d ou 3d, puis valeurs.
       const char* nomfic = a[5];
-      ifstream iFile(nomfic, ios::in);
+      std::ifstream iFile(nomfic, std::ios::in);
       if (!iFile) { 
        di << a[6] <<"do not exist !\n";
        return 1;
index c198f14..a9e411f 100644 (file)
@@ -1660,7 +1660,7 @@ static Standard_Integer approxcurve(Draw_Interpretor& di, Standard_Integer n, co
   if (Case == 1) {
     GeomConvert_ApproxCurve appr(curve, Tol, Continuity, MaxSeg, MaxDeg);
     if(appr.HasResult()) {
-      //appr.Dump(cout);
+      //appr.Dump(std::cout);
       Standard_SStream aSStream;
       appr.Dump(aSStream);
       di << aSStream;
@@ -1672,7 +1672,7 @@ static Standard_Integer approxcurve(Draw_Interpretor& di, Standard_Integer n, co
   else if (Case == 2) {
     Geom2dConvert_ApproxCurve appr(curve2d, Tol, Continuity, MaxSeg, MaxDeg);
     if(appr.HasResult()) {
-      //appr.Dump(cout);
+      //appr.Dump(std::cout);
       Standard_SStream aSStream;
       appr.Dump(aSStream);
       di << aSStream;
@@ -1685,7 +1685,7 @@ static Standard_Integer approxcurve(Draw_Interpretor& di, Standard_Integer n, co
     Handle(Adaptor3d_HCurve) HACur = new GeomAdaptor_HCurve(curve);
     Approx_CurvilinearParameter appr(HACur, Tol, Continuity, MaxDeg, MaxSeg);
     if(appr.HasResult()) {
-      //appr.Dump(cout);
+      //appr.Dump(std::cout);
       Standard_SStream aSStream;
       appr.Dump(aSStream);
       di << aSStream;
@@ -1698,7 +1698,7 @@ static Standard_Integer approxcurve(Draw_Interpretor& di, Standard_Integer n, co
     Handle(Adaptor3d_HSurface) HASur = new GeomAdaptor_HSurface(surface);
     Approx_CurvilinearParameter appr(HACur2d, HASur, Tol, Continuity, MaxDeg, MaxSeg);
     if(appr.HasResult()) {
-      //appr.Dump(cout);
+      //appr.Dump(std::cout);
       Standard_SStream aSStream;
       appr.Dump(aSStream);
       di << aSStream;
@@ -1714,7 +1714,7 @@ static Standard_Integer approxcurve(Draw_Interpretor& di, Standard_Integer n, co
     Handle(Adaptor3d_HSurface) HASur2 = new GeomAdaptor_HSurface(surface2);
     Approx_CurvilinearParameter appr(HACur2d, HASur, HACur2d2, HASur2, Tol, Continuity, MaxDeg, MaxSeg);
     if(appr.HasResult()) {
-      //appr.Dump(cout);
+      //appr.Dump(std::cout);
       Standard_SStream aSStream;
       appr.Dump(aSStream);
       di << aSStream;
index 5716fe7..8e76d21 100644 (file)
@@ -1381,14 +1381,14 @@ static Standard_Integer compBsplSur (Draw_Interpretor& , Standard_Integer n, con
 {
   if (n < 2) 
   {
-    cout<<"Invalid number of parameters"<<endl;
+    std::cout<<"Invalid number of parameters"<<std::endl;
     return 1;
   }
 
   Handle(Geom_BSplineSurface) GBs1 = DrawTrSurf::GetBSplineSurface(a[1]);
   Handle(Geom_BSplineSurface) GBs2 = DrawTrSurf::GetBSplineSurface(a[2]);
   if (GBs1.IsNull() || GBs2.IsNull()) {
-    cout<<"Invalid surface"<<endl;
+    std::cout<<"Invalid surface"<<std::endl;
     return 1;
   }
    
@@ -1423,7 +1423,7 @@ static Standard_Integer compBsplSur (Draw_Interpretor& , Standard_Integer n, con
       {
         nbErr++;
         Standard_Real aD = sqrt(aDist);
-        cout<<"Surfaces differ for U,V,Dist: "<<aU<<" "<<aV<<" "<<aD<<endl;
+        std::cout<<"Surfaces differ for U,V,Dist: "<<aU<<" "<<aV<<" "<<aD<<std::endl;
       }
     }
   }
index 95d4fbd..81a254a 100644 (file)
@@ -382,8 +382,8 @@ void HLRAlgo_PolyData::hideByOneTriangle (const HLRAlgo_BiPoint::PointsT& thePoi
       }
 #ifdef OCCT_DEBUG
       else if (HLRAlgo_PolyData_ERROR) {
-       cout << " error : HLRAlgo_PolyData::HideByOneTriangle " << endl;
-       cout << " ( more than 2 points )." << endl;
+       std::cout << " error : HLRAlgo_PolyData::HideByOneTriangle " << std::endl;
+       std::cout << " ( more than 2 points )." << std::endl;
       }
 #endif
     }
@@ -524,8 +524,8 @@ void HLRAlgo_PolyData::hideByOneTriangle (const HLRAlgo_BiPoint::PointsT& thePoi
       }
 #ifdef OCCT_DEBUG
       else if (HLRAlgo_PolyData_ERROR) {
-       cout << " error : HLRAlgo_PolyData::HideByOneTriangle " << endl;
-       cout << " ( more than 2 points )." << endl;
+       std::cout << " error : HLRAlgo_PolyData::HideByOneTriangle " << std::endl;
+       std::cout << " ( more than 2 points )." << std::endl;
       }
 #endif
     }
@@ -666,8 +666,8 @@ void HLRAlgo_PolyData::hideByOneTriangle (const HLRAlgo_BiPoint::PointsT& thePoi
       }
 #ifdef OCCT_DEBUG
       else if (HLRAlgo_PolyData_ERROR) {
-       cout << " error : HLRAlgo_PolyData::HideByOneTriangle " << endl;
-       cout << " ( more than 2 points )." << endl;
+       std::cout << " error : HLRAlgo_PolyData::HideByOneTriangle " << std::endl;
+       std::cout << " ( more than 2 points )." << std::endl;
       }
 #endif
     }
index 09ecb52..764012a 100644 (file)
@@ -326,7 +326,7 @@ HLRAlgo_PolyInternalData::AddNode (
     Nod3RValues.Normal = gp_XYZ(1., 0., 0.);
 #ifdef OCCT_DEBUG
     if (HLRAlgo_PolyInternalData_ERROR)
-      cout << "HLRAlgo_PolyInternalData::AddNode" << endl;
+      std::cout << "HLRAlgo_PolyInternalData::AddNode" << std::endl;
 #endif
   }
   return ip3;
@@ -415,8 +415,8 @@ HLRAlgo_PolyInternalData::UpdateLinks (const Standard_Integer ip1,
     myNbPISeg--;
 #ifdef OCCT_DEBUG
     if (HLRAlgo_PolyInternalData_ERROR) {
-      cout << "HLRAlgo_PolyInternalData::UpdateLinks : segment error";
-      cout << endl;
+      std::cout << "HLRAlgo_PolyInternalData::UpdateLinks : segment error";
+      std::cout << std::endl;
     }
 #endif
   }
@@ -520,8 +520,8 @@ HLRAlgo_PolyInternalData::UpdateLinks (const Standard_Integer ip1,
        }
 #ifdef OCCT_DEBUG
        else if (HLRAlgo_PolyInternalData_ERROR) {
-         cout << "HLRAlgo_PolyInternalData::UpdateLinks : triangle error ";
-         cout << endl;
+         std::cout << "HLRAlgo_PolyInternalData::UpdateLinks : triangle error ";
+         std::cout << std::endl;
        }
 #endif
       }
@@ -640,33 +640,33 @@ void HLRAlgo_PolyInternalData::Dump () const
     const Handle(HLRAlgo_PolyInternalNode)* pi = &PINod->ChangeValue(i);
     HLRAlgo_PolyInternalNode::NodeIndices& aNodIndices1 = (*pi)->Indices();
     HLRAlgo_PolyInternalNode::NodeData& Nod1RValues = (*pi)->Data();
-    cout << "Node " << setw(6) << i << " : ";
-    cout << setw(6) << aNodIndices1.NdSg;
-    cout << setw(20)<< Nod1RValues.Point.X();
-    cout << setw(20)<< Nod1RValues.Point.Y();
-    cout << setw(20)<< Nod1RValues.Point.Z();
-    cout << endl;
+    std::cout << "Node " << std::setw(6) << i << " : ";
+    std::cout << std::setw(6) << aNodIndices1.NdSg;
+    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;
   }
 
   for (i = 1; i <= myNbPISeg; i++) {
     HLRAlgo_PolyInternalSegment* aSegIndices = &PISeg->ChangeValue(i);
-    cout << "Segment " << setw(6) << i << " : ";
-    cout << setw(6) << aSegIndices->LstSg1;
-    cout << setw(6) << aSegIndices->LstSg2;
-    cout << setw(6) << aSegIndices->NxtSg1;
-    cout << setw(6) << aSegIndices->NxtSg2;
-    cout << setw(6) << aSegIndices->Conex1;
-    cout << setw(6) << aSegIndices->Conex2;
-    cout << endl;
+    std::cout << "Segment " << std::setw(6) << i << " : ";
+    std::cout << std::setw(6) << aSegIndices->LstSg1;
+    std::cout << std::setw(6) << aSegIndices->LstSg2;
+    std::cout << std::setw(6) << aSegIndices->NxtSg1;
+    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;
   }
 
   for (i = 1; i <= myNbTData; i++) {
     HLRAlgo_TriangleData& aTriangle = TData->ChangeValue(i);
-    cout << "Triangle " << setw(6) << i << " : ";
-    cout << setw(6) << aTriangle.Node1;
-    cout << setw(6) << aTriangle.Node2;
-    cout << setw(6) << aTriangle.Node3;
-    cout << endl;
+    std::cout << "Triangle " << std::setw(6) << i << " : ";
+    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;
   }
 }
 
@@ -681,7 +681,7 @@ void HLRAlgo_PolyInternalData::IncTData(
   if (myNbTData >= myMxTData) {
 #ifdef OCCT_DEBUG
     if (HLRAlgo_PolyInternalData_TRACE)
-      cout << "HLRAlgo_PolyInternalData::IncTData : " << myMxTData << endl;
+      std::cout << "HLRAlgo_PolyInternalData::IncTData : " << myMxTData << std::endl;
 #endif
     Standard_Integer i,j,k;
     j = myMxTData;
@@ -720,7 +720,7 @@ void HLRAlgo_PolyInternalData::IncPISeg(
   if (myNbPISeg >= myMxPISeg) {
 #ifdef OCCT_DEBUG
     if (HLRAlgo_PolyInternalData_TRACE)
-      cout << "HLRAlgo_PolyInternalData::IncPISeg : " << myMxPISeg << endl;
+      std::cout << "HLRAlgo_PolyInternalData::IncPISeg : " << myMxPISeg << std::endl;
 #endif
     Standard_Integer i,j,k;
     j = myMxPISeg;
@@ -758,7 +758,7 @@ void HLRAlgo_PolyInternalData::IncPINod(
   if (myNbPINod >= myMxPINod) {
 #ifdef OCCT_DEBUG
     if (HLRAlgo_PolyInternalData_TRACE)
-      cout << "HLRAlgo_PolyInternalData::IncPINod : " << myMxPINod << endl;
+      std::cout << "HLRAlgo_PolyInternalData::IncPINod : " << myMxPINod << std::endl;
 #endif
     Standard_Integer i,j,k;
     j = myMxPINod;
index 4f759de..a8a79ce 100644 (file)
@@ -283,7 +283,7 @@ inline Handle(Geom2d_BezierCurve)
      HLRBRep_CurveTool::Bezier (const Standard_Address /*C*/)
 {
 #ifdef OCCT_DEBUG
-  cout<<"  HLRBRep_CurveTool::Bezier : Not Implemented "<<endl;
+  std::cout<<"  HLRBRep_CurveTool::Bezier : Not Implemented "<<std::endl;
 #endif
   //-- return(((HLRBRep_Curve *)C)->Bezier());
   return(0);
@@ -298,7 +298,7 @@ inline Handle(Geom2d_BSplineCurve)
      HLRBRep_CurveTool::BSpline (const Standard_Address /*C*/)
 {
 #ifdef OCCT_DEBUG
-  cout<<"  HLRBRep_CurveTool::BSpline : Not Implemented "<<endl;
+  std::cout<<"  HLRBRep_CurveTool::BSpline : Not Implemented "<<std::endl;
 #endif
   //-- return(((HLRBRep_Curve *)C)->BSpline());
   return(0);
index 72e8f07..24bb851 100644 (file)
@@ -105,7 +105,7 @@ public:
   //-- ============================================================
   void SetDim(const Standard_Integer n) {
 #ifdef OCCT_DEBUG
-    cout<<"\n@#@#@#@#@# SetDim "<<n<<endl;
+    std::cout<<"\n@#@#@#@#@# SetDim "<<n<<std::endl;
 #endif
     if(UV) 
       Destroy();
@@ -132,7 +132,7 @@ public:
   }
   //-- ============================================================
   ~TableauRejection() { 
-    //-- cout<<"\n Destructeur TableauRejection"<<endl;
+    //-- std::cout<<"\n Destructeur TableauRejection"<<std::endl;
     Destroy(); 
   } 
   //-- ============================================================
@@ -173,7 +173,7 @@ public:
        }
 #ifdef OCCT_DEBUG
        else
-          cout<<" IndUV ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl;
+          std::cout<<" IndUV ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<std::endl;
 #endif
       }
       for(i=0;i<N;i++) { 
@@ -182,7 +182,7 @@ public:
          UV[i]=NULL;
        }
 #ifdef OCCT_DEBUG
-       else { cout<<" UV ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<endl; } 
+       else { std::cout<<" UV ~~~~~~~~~~~~~~~~~~~~~~~~~~~~"<<std::endl; } 
 #endif
       }
       
@@ -211,7 +211,7 @@ public:
       //-- declaration de la Nv ligne de taille : ancienne taille + SIZEUV
       //-- 
       
-      //-- cout<<" \n alloc nbUV["<<i0<<"]="<<nbUV[i0];
+      //-- std::cout<<" \n alloc nbUV["<<i0<<"]="<<nbUV[i0];
 
       Standard_Real    *NvLigneUV  = (Standard_Real *)   malloc((nbUV[i0]+SIZEUV)*sizeof(Standard_Real));
       Standard_Integer *NvLigneInd = (Standard_Integer *)malloc((nbUV[i0]+SIZEUV)*sizeof(Standard_Integer));
@@ -280,7 +280,7 @@ public:
   }
   //-- ============================================================
   void ResetTabBit(const Standard_Integer nbedgs) { 
-    //-- cout<<"\n ResetTabBit"<<endl;
+    //-- std::cout<<"\n ResetTabBit"<<std::endl;
     if(TabBit) { 
       for(Standard_Integer i=0;i<nbedgs;i++) { 
        if(TabBit[i]) {
@@ -295,7 +295,7 @@ public:
   }
   //-- ============================================================
   void InitTabBit(const Standard_Integer nbedgs) { 
-    //--  cout<<"\n InitTabBit"<<endl;
+    //--  std::cout<<"\n InitTabBit"<<std::endl;
     if(TabBit && nTabBit) { 
       ResetTabBit(nTabBit);
     }
@@ -312,7 +312,7 @@ public:
   }
   //-- ============================================================
   void SetNoIntersection(Standard_Integer i0,Standard_Integer i1) {
-    //  cout<<" SetNoIntersection : "<<i0<<" "<<i1<<endl;
+    //  std::cout<<" SetNoIntersection : "<<i0<<" "<<i1<<std::endl;
     i0--;
     i1--;
     if(i0>i1) { 
@@ -324,7 +324,7 @@ public:
   }
   //-- ============================================================
   Standard_Boolean NoIntersection(Standard_Integer i0,Standard_Integer i1) { 
-    //  cout<<" ??NoIntersection : "<<i0<<" "<<i1<<" ";
+    //  std::cout<<" ??NoIntersection : "<<i0<<" "<<i1<<" ";
     i0--;
     i1--;
     if(i0>i1) { 
@@ -333,10 +333,10 @@ public:
     Standard_Integer c=i1>>5;
     Standard_Integer o=i1 & 31;
     if(TabBit[i0][c] & Mask32[o]) { 
-      //--    cout<<" TRUE "<<endl;
+      //--    std::cout<<" TRUE "<<std::endl;
       return(Standard_True);
     }
-    //--  cout<<" FALSE "<<endl;
+    //--  std::cout<<" FALSE "<<std::endl;
     return(Standard_False);
   }
   //-- ============================================================
@@ -418,7 +418,7 @@ HLRBRep_Data::HLRBRep_Data (const Standard_Integer NV,
 }
 
 void HLRBRep_Data::Destroy() { 
-  //-- cout<<"\n HLRBRep_Data::~HLRBRep_Data()"<<endl;
+  //-- std::cout<<"\n HLRBRep_Data::~HLRBRep_Data()"<<std::endl;
   ((TableauRejection *)myReject)->Destroy();
   delete ((TableauRejection *)myReject);
 }
@@ -1190,7 +1190,7 @@ void HLRBRep_Data::NextInterference ()
                    GetSingleIntersection(myLE,myFE,su,sv);
                  if(su!=RealLast()) { 
                    myIntersector.SimulateOnePoint(myLEData,su,myFEData,sv);
-                   //-- cout<<"p";
+                   //-- std::cout<<"p";
                  }
                  else { 
                    myIntersector.Perform
@@ -1224,13 +1224,13 @@ void HLRBRep_Data::NextInterference ()
                  else {
                    myNbPoints = myNbSegments = 0;
 #ifdef OCCT_DEBUG
-                   cout << "HLRBRep_Data::NextInterference : "; 
+                   std::cout << "HLRBRep_Data::NextInterference : "; 
                    if (myLE == myFE) 
-                     cout << "Edge " << myLE 
-                       << " : Intersection not done" << endl;
+                     std::cout << "Edge " << myLE 
+                       << " : Intersection not done" << std::endl;
                    else
-                     cout << "Edges " << myLE << " , " << myFE
-                       << " : Intersection not done" << endl;
+                     std::cout << "Edges " << myLE << " , " << myFE
+                       << " : Intersection not done" << std::endl;
 #endif
                  }
                }
@@ -1246,7 +1246,7 @@ void HLRBRep_Data::NextInterference ()
          }
        }
        else { 
-         //-- cout<<"+";
+         //-- std::cout<<"+";
        }
       }
     }
@@ -1391,7 +1391,7 @@ void HLRBRep_Data::EdgeState (const Standard_Real p1,
       stbef = TopAbs_OUT;
       staft = TopAbs_OUT;
 #ifdef OCCT_DEBUG
-    cout << "HLRBRep_Data::EdgeState : undefined" << endl;
+    std::cout << "HLRBRep_Data::EdgeState : undefined" << std::endl;
 #endif
     }
   }
@@ -1399,7 +1399,7 @@ void HLRBRep_Data::EdgeState (const Standard_Real p1,
     stbef = TopAbs_OUT;
     staft = TopAbs_OUT; 
 #ifdef OCCT_DEBUG
-    cout << "HLRBRep_Data::EdgeState : undefined" << endl;
+    std::cout << "HLRBRep_Data::EdgeState : undefined" << std::endl;
 #endif
   }
 }
@@ -1464,8 +1464,8 @@ HLRBRep_Data::HidingStartLevel (const Standard_Integer E,
       Loop = Standard_False;
     else {
 #ifdef OCCT_DEBUG
-      cout << "HLRBRep_Data::HidingStartLevel : ";
-      cout << "Bad Parameter." << endl;
+      std::cout << "HLRBRep_Data::HidingStartLevel : ";
+      std::cout << "Bad Parameter." << std::endl;
 #endif
     }
     It.Next();
@@ -1548,9 +1548,9 @@ Standard_Boolean HLRBRep_Data::OrientOutLine (const Standard_Integer I, HLRBRep_
          gp_Vec Nm = mySLProps.Normal();
          if (curv == 0) {
 #ifdef OCCT_DEBUG
-           cout << "HLRBRep_Data::OrientOutLine " << I;
-           cout << " Edge " << myFE << " : ";
-           cout << "CurvatureValue == 0." << endl;
+           std::cout << "HLRBRep_Data::OrientOutLine " << I;
+           std::cout << " Edge " << myFE << " : ";
+           std::cout << "CurvatureValue == 0." << std::endl;
 #endif
          }
          if (curv > 0)
@@ -1561,9 +1561,9 @@ Standard_Boolean HLRBRep_Data::OrientOutLine (const Standard_Integer I, HLRBRep_
          Nm.Cross(Tg);
          if (Tg.Magnitude() < gp::Resolution()) {
 #ifdef OCCT_DEBUG
-           cout << "HLRBRep_Data::OrientOutLine " << I;
-           cout << " Edge " << myFE << " : ";
-           cout << "Tg.Magnitude() == 0." << endl;
+           std::cout << "HLRBRep_Data::OrientOutLine " << I;
+           std::cout << " Edge " << myFE << " : ";
+           std::cout << "Tg.Magnitude() == 0." << std::endl;
 #endif  
          }
          if (myProj.Perspective())
@@ -1583,9 +1583,9 @@ Standard_Boolean HLRBRep_Data::OrientOutLine (const Standard_Integer I, HLRBRep_
        }
        else {
 #ifdef OCCT_DEBUG
-         cout << "HLRBRep_Data::OrientOutLine " << I;
-         cout << " Edge " << myFE << " : ";
-         cout << "UVPoint not found, OutLine not Oriented" << endl;
+         std::cout << "HLRBRep_Data::OrientOutLine " << I;
+         std::cout << " Edge " << myFE << " : ";
+         std::cout << "UVPoint not found, OutLine not Oriented" << std::endl;
 #endif
        }
        ed1.Used(Standard_True);
@@ -1644,9 +1644,9 @@ void HLRBRep_Data::OrientOthEdge (const Standard_Integer I,
        }
 #ifdef OCCT_DEBUG
        else {
-         cout << "HLRBRep_Data::OrientOthEdge " << I;
-         cout << " Edge " << myFE << " : ";
-         cout << "UVPoint not found, Edge not Oriented" << endl;
+         std::cout << "HLRBRep_Data::OrientOthEdge " << I;
+         std::cout << " Edge " << myFE << " : ";
+         std::cout << "UVPoint not found, Edge not Oriented" << std::endl;
        }
 #else
         (void)I; // avoid compiler warning
@@ -1863,7 +1863,7 @@ HLRBRep_Data::Classify (const Standard_Integer E,
            q2 = (q& 0x0000FFFF);
            printf("\nmot: %3d    q1 = %+10d    q2=%+10d    Mask : %d",qwe+8,(q1>32768)? (32768-q1) : q1,(q2>32768)? (32768-q2) : q2,q&0x80008000);
          }
-         cout<<endl;
+         std::cout<<std::endl;
        }
  #endif
     */
index 3054ec1..baf219a 100644 (file)
@@ -235,7 +235,7 @@ void HLRBRep_Hider::Hide(const Standard_Integer FI,
              ILOn.Remove(It);                            break;
            case TopAbs_UNKNOWN : 
 #ifdef OCCT_DEBUG
-              cout << "UNKNOWN state staft" << endl;
+              std::cout << "UNKNOWN state staft" << std::endl;
 #endif
            case TopAbs_ON      :
              It.Next();                                  break;
@@ -249,7 +249,7 @@ void HLRBRep_Hider::Hide(const Standard_Integer FI,
              ILOn.Remove(It);                            break;
            case TopAbs_UNKNOWN :
 #ifdef OCCT_DEBUG
-              cout << "UNKNOWN state stbef" << endl;
+              std::cout << "UNKNOWN state stbef" << std::endl;
 #endif
            case TopAbs_ON      :
              It.Next();                                  break;
@@ -279,7 +279,7 @@ void HLRBRep_Hider::Hide(const Standard_Integer FI,
                ILOn.Remove(It);                          break;
              case TopAbs_UNKNOWN :
 #ifdef OCCT_DEBUG
-               cout << "UNKNOWN state after" << endl;
+               std::cout << "UNKNOWN state after" << std::endl;
 #endif
                It.Next();                                break;
              }                                           break;
@@ -299,7 +299,7 @@ void HLRBRep_Hider::Hide(const Standard_Integer FI,
                Int.Transition(TopAbs_REVERSED);          break;
              case TopAbs_UNKNOWN :
 #ifdef OCCT_DEBUG
-               cout << "UNKNOWN state after" << endl;
+               std::cout << "UNKNOWN state after" << std::endl;
 #endif
                 break;
              }     
@@ -317,13 +317,13 @@ void HLRBRep_Hider::Hide(const Standard_Integer FI,
                ILOn.Remove(It);                          break;
              case TopAbs_UNKNOWN :
 #ifdef OCCT_DEBUG
-               cout << "UNKNOWN state after" << endl;
+               std::cout << "UNKNOWN state after" << std::endl;
 #endif
                It.Next();                                break;
              }                                           break;
            case TopAbs_UNKNOWN :
 #ifdef OCCT_DEBUG
-             cout << "UNKNOWN state stbef" << endl;
+             std::cout << "UNKNOWN state stbef" << std::endl;
 #endif
               break;
            }
@@ -370,14 +370,14 @@ void HLRBRep_Hider::Hide(const Standard_Integer FI,
                 {
                   ToRemove.Append(Int.Intersection().Parameter());
 #ifdef OCCT_DEBUG
-                  cout<<"Two adjacent interferences with transition FORWARD"<<endl;
+                  std::cout<<"Two adjacent interferences with transition FORWARD"<<std::endl;
 #endif
                 }
                 else if (aTrans == TopAbs_REVERSED)
                 {
                   ToRemove.Append(PrevParam);
 #ifdef OCCT_DEBUG
-                  cout<<"Two adjacent interferences with transition REVERSED"<<endl;
+                  std::cout<<"Two adjacent interferences with transition REVERSED"<<std::endl;
 #endif
                 }
               }
@@ -698,9 +698,9 @@ void HLRBRep_Hider::Hide(const Standard_Integer FI,
 
     catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-      cout << "An exception was catched when hiding edge " << E;
-      cout << " by the face " << FI << endl;
-      cout << anException << endl;
+      std::cout << "An exception was catched when hiding edge " << E;
+      std::cout << " by the face " << FI << std::endl;
+      std::cout << anException << std::endl;
 #endif
       (void)anException;
     }
index c13cb06..fc776a6 100644 (file)
@@ -114,9 +114,9 @@ void HLRBRep_InternalAlgo::Update ()
       catch(Standard_Failure const& anException) {
         if (myDebug)
         {
-          cout << "An exception was catched when preparing the Shape " << i;
-          cout << " and computing its OutLines " << endl;
-          cout << anException << endl;
+          std::cout << "An exception was catched when preparing the Shape " << i;
+          std::cout << " and computing its OutLines " << std::endl;
+          std::cout << anException << std::endl;
         }
        DS[i-1] = new HLRBRep_Data(0,0,0);
        dv = 0;
@@ -556,7 +556,7 @@ void HLRBRep_InternalAlgo::PartialHide ()
     Standard_Integer i,n = myShapes.Length();
 
     if (myDebug)
-      cout << " Partial hiding" << endl << endl;
+      std::cout << " Partial hiding" << std::endl << std::endl;
 
     for (i = 1; i <= n; i++)
       Hide(i);
@@ -576,7 +576,7 @@ void HLRBRep_InternalAlgo::Hide ()
     Standard_Integer i,j,n = myShapes.Length();
 
     if (myDebug)
-      cout << " Total hiding" << endl;
+      std::cout << " Total hiding" << std::endl;
 
     for (i = 1; i <= n; i++)
       Hide(i);
@@ -602,7 +602,7 @@ void HLRBRep_InternalAlgo::Hide (const Standard_Integer I)
        "HLRBRep_InternalAlgo::Hide : unknown Shape");
     
     if (myDebug)
-      cout << " hiding the shape " << I << " by itself" << endl;
+      std::cout << " hiding the shape " << I << " by itself" << std::endl;
     
     Select(I);
     InitEdgeStatus();
@@ -643,8 +643,8 @@ void HLRBRep_InternalAlgo::Hide (const Standard_Integer I,
          ((MinMaxShBJ->Max[6] - MinMaxShBI->Min[6]) & 0x80008000) == 0 &&
          ((MinMaxShBJ->Max[7] - MinMaxShBI->Min[7]) & 0x80008000) == 0) {
        if (myDebug) {
-         cout << " hiding the shape " << I;
-         cout << " by the shape : " << J << endl;
+         std::cout << " hiding the shape " << I;
+         std::cout << " by the shape : " << J << std::endl;
        }
        SelectEdge(I);
        SelectFace(J);
@@ -717,17 +717,17 @@ void HLRBRep_InternalAlgo::HideSelected (const Standard_Integer I,
       
       if (myDebug)
       {
-        cout << endl;
-        cout << "Vertices  : " << setw(5) << myDS->NbVertices() << endl;
-        cout << "Edges     : " << setw(5) << myDS->NbEdges()    << " , ";
-        cout << "Selected  : " << setw(5) << nbSelEdges         << " , ";
-        cout << "Visibles  : " << setw(5) << nbVisEdges         << endl;
-        cout << "Faces     : " << setw(5) << myDS->NbFaces()    << " , ";
-        cout << "Selected  : " << setw(5) << nbSelFaces         << " , ";
-        cout << "Simple    : " << setw(5) << nbFSimp            << endl;
+        std::cout << std::endl;
+        std::cout << "Vertices  : " << std::setw(5) << myDS->NbVertices() << std::endl;
+        std::cout << "Edges     : " << std::setw(5) << myDS->NbEdges()    << " , ";
+        std::cout << "Selected  : " << std::setw(5) << nbSelEdges         << " , ";
+        std::cout << "Visibles  : " << std::setw(5) << nbVisEdges         << std::endl;
+        std::cout << "Faces     : " << std::setw(5) << myDS->NbFaces()    << " , ";
+        std::cout << "Selected  : " << std::setw(5) << nbSelFaces         << " , ";
+        std::cout << "Simple    : " << std::setw(5) << nbFSimp            << std::endl;
         if (SideFace)
-          cout << "Side      : " << setw(5) << nbFSide            << " , ";
-        cout << "Cachantes : " << setw(5) << nbCache            << endl << endl;
+          std::cout << "Side      : " << std::setw(5) << nbFSide            << " , ";
+        std::cout << "Cachantes : " << std::setw(5) << nbCache            << std::endl << std::endl;
       }
     }
 
@@ -748,13 +748,13 @@ void HLRBRep_InternalAlgo::HideSelected (const Standard_Integer I,
              if(++QWE>QWEQWE) { 
                QWE=0; 
                 if (myDebug)
-                  cout<<"*";
+                  std::cout<<"*";
              } 
            }
            else {  
              if (myDebug && HLRBRep_InternalAlgo_TRACE) {
                j++;
-               cout << " OwnHiding " << j << " of face : " << f << endl;
+               std::cout << " OwnHiding " << j << " of face : " << f << std::endl;
              }
            }
            Cache.OwnHiding(f);
@@ -867,7 +867,7 @@ void HLRBRep_InternalAlgo::HideSelected (const Standard_Integer I,
          if(HLRBRep_InternalAlgo_TRACE10 && HLRBRep_InternalAlgo_TRACE==Standard_False) { 
            if(++QWE>QWEQWE) { 
              if (myDebug)
-                cout<<".";
+                std::cout<<".";
              QWE=0;
            }
          }
@@ -892,22 +892,22 @@ void HLRBRep_InternalAlgo::HideSelected (const Standard_Integer I,
          nbFSimp++;
       }
 
-      cout << "\n";
-      cout << "Simple Faces                  : ";
-      cout << nbFSimp  << "\n";
-      cout << "Intersections calculees       : ";
-      cout << nbCal2Intersection << "\n";
-      cout << "Intersections Ok              : ";
-      cout << nbOkIntersection << "\n";
-      cout << "Points                        : ";
-      cout << nbPtIntersection << "\n";
-      cout << "Segments                      : ";
-      cout << nbSegIntersection << "\n";
-      cout << "Classification                : ";
-      cout << nbClassification << "\n";
-      cout << "Intersections curve-surface   : ";
-      cout << nbCal3Intersection << "\n";
-      cout << endl << endl;
+      std::cout << "\n";
+      std::cout << "Simple Faces                  : ";
+      std::cout << nbFSimp  << "\n";
+      std::cout << "Intersections calculees       : ";
+      std::cout << nbCal2Intersection << "\n";
+      std::cout << "Intersections Ok              : ";
+      std::cout << nbOkIntersection << "\n";
+      std::cout << "Points                        : ";
+      std::cout << nbPtIntersection << "\n";
+      std::cout << "Segments                      : ";
+      std::cout << nbSegIntersection << "\n";
+      std::cout << "Classification                : ";
+      std::cout << nbClassification << "\n";
+      std::cout << "Intersections curve-surface   : ";
+      std::cout << nbCal3Intersection << "\n";
+      std::cout << std::endl << std::endl;
     }
 #endif
   }
index 4571e19..63e88a7 100644 (file)
@@ -508,8 +508,8 @@ void HLRBRep_PolyAlgo::StoreShell (const TopoDS_Shape& Shape,
          }
 #ifdef OCCT_DEBUG
          else if (DoError) {
-           cout << " HLRBRep_PolyAlgo::StoreShell : Face ";
-           cout << f << " non triangulated" << endl;
+           std::cout << " HLRBRep_PolyAlgo::StoreShell : Face ";
+           std::cout << f << " non triangulated" << std::endl;
          }
 #endif
          NT = &(((HLRAlgo_Array1OfTData*)TData)->ChangeValue(1));
@@ -534,8 +534,8 @@ void HLRBRep_PolyAlgo::StoreShell (const TopoDS_Shape& Shape,
       }
 #ifdef OCCT_DEBUG
       else if (DoError) {
-       cout << "HLRBRep_PolyAlgo::StoreShell : Face ";
-       cout << f << " deja stockee" << endl;
+       std::cout << "HLRBRep_PolyAlgo::StoreShell : Face ";
+       std::cout << f << " deja stockee" << std::endl;
       }
 #endif
     }
@@ -663,8 +663,8 @@ Normal (const Standard_Integer iNode,
     Nod1RValues.Normal = gp_XYZ(1., 0., 0.);
 #ifdef OCCT_DEBUG
     if (DoError) {
-      cout << "HLRBRep_PolyAlgo::Normal : AverageNormal error";
-      cout << endl;
+      std::cout << "HLRBRep_PolyAlgo::Normal : AverageNormal error";
+      std::cout << std::endl;
     }
 #endif
   }
@@ -740,8 +740,8 @@ HLRBRep_PolyAlgo::AverageNormal(const Standard_Integer iNode,
     OK = Standard_False;
 #ifdef OCCT_DEBUG
     if (DoError) {
-      cout << "HLRAlgo_PolyInternalData:: inverted normals on ";
-      cout << "node " << iNode << endl;
+      std::cout << "HLRAlgo_PolyInternalData:: inverted normals on ";
+      std::cout << "node " << iNode << std::endl;
     }
 #endif
   }
@@ -882,8 +882,8 @@ InitBiPointsWithConnexity (const Standard_Integer e,
        else if (aNode12Indices->Edg2 == e) U2 = Nod12RValues->PCu2;
 #ifdef OCCT_DEBUG
        else {
-         cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
-         cout << "Parameter error on Node " << i1p2 << endl;
+         std::cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
+         std::cout << "Parameter error on Node " << i1p2 << std::endl;
        }
 #endif
        aNode12Indices->Flag |= NMsk_Edge;
@@ -913,10 +913,10 @@ InitBiPointsWithConnexity (const Standard_Integer e,
              if (Nod11RValues->Normal.X()*Nod12RValues->Normal.X() +
                  Nod11RValues->Normal.Y()*Nod12RValues->Normal.Y() +
                  Nod11RValues->Normal.Z()*Nod12RValues->Normal.Z() < 0) {
-               cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
-               cout << "Too big angle between " << i1p1 << setw(6);
-               cout << " and " << i1p2 << setw(6);
-               cout << " in face " << i1 << endl;
+               std::cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
+               std::cout << "Too big angle between " << i1p1 << std::setw(6);
+               std::cout << " and " << i1p2 << std::setw(6);
+               std::cout << " in face " << i1 << std::endl;
              }
            }
 #endif
@@ -934,8 +934,8 @@ InitBiPointsWithConnexity (const Standard_Integer e,
            else if (aNode12Indices->Edg2 == e) U2 = Nod12RValues->PCu2;
 #ifdef OCCT_DEBUG
            else {
-             cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
-             cout << "Parameter error on Node " << i1p2 << endl;
+             std::cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
+             std::cout << "Parameter error on Node " << i1p2 << std::endl;
            }
 #endif
            aNode12Indices->Flag |= NMsk_Edge;
@@ -952,8 +952,8 @@ InitBiPointsWithConnexity (const Standard_Integer e,
       }
 #ifdef OCCT_DEBUG
       else if (DoError) {
-       cout << "HLRBRep_PolyAlgo::InitBiPointsWithConnexity : Edge ";
-       cout << e << " connex 1 sans PolygonOnTriangulation" << endl;
+       std::cout << "HLRBRep_PolyAlgo::InitBiPointsWithConnexity : Edge ";
+       std::cout << e << " connex 1 sans PolygonOnTriangulation" << std::endl;
       }
 #endif
     }
@@ -1048,8 +1048,8 @@ InitBiPointsWithConnexity (const Standard_Integer e,
        else if (aNode12Indices->Edg2 == e) U2 = Nod12RValues->PCu2;
 #ifdef OCCT_DEBUG
        else {
-         cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
-         cout << "Parameter error on Node " << i1p2 << endl;
+         std::cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
+         std::cout << "Parameter error on Node " << i1p2 << std::endl;
        }
 #endif
        aNode12Indices->Flag |= NMsk_Edge;
@@ -1092,18 +1092,18 @@ InitBiPointsWithConnexity (const Standard_Integer e,
              if (Nod11RValues->Normal.X()*Nod12RValues->Normal.X() +
                  Nod11RValues->Normal.Y()*Nod12RValues->Normal.Y() +
                  Nod11RValues->Normal.Z()*Nod12RValues->Normal.Z() < 0) {
-               cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
-               cout << "To big angle between " << i1p1 << setw(6);
-               cout << " and " << i1p2 << setw(6);
-               cout << " in face " << i1 << endl;
+               std::cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
+               std::cout << "To big angle between " << i1p1 << std::setw(6);
+               std::cout << " and " << i1p2 << std::setw(6);
+               std::cout << " in face " << i1 << std::endl;
              }
              if (Nod21RValues->Normal.X()*Nod22RValues->Normal.X() +
                  Nod21RValues->Normal.Y()*Nod22RValues->Normal.Y() +
                  Nod21RValues->Normal.Z()*Nod22RValues->Normal.Z() < 0) {
-               cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
-               cout << "To big angle between " << i2p1 << setw(6);
-               cout << " and " << i2p2 << setw(6);
-               cout<< " in face " << i2 << endl;
+               std::cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
+               std::cout << "To big angle between " << i2p1 << std::setw(6);
+               std::cout << " and " << i2p2 << std::setw(6);
+               std::cout<< " in face " << i2 << std::endl;
              }
            }
 #endif
@@ -1121,8 +1121,8 @@ InitBiPointsWithConnexity (const Standard_Integer e,
            else if (aNode12Indices->Edg2 == e) U2 = Nod12RValues->PCu2;
 #ifdef OCCT_DEBUG
            else {
-             cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
-             cout << "Parameter error on Node " << i1p2 << endl;
+             std::cout << " HLRBRep_PolyAlgo::InitBiPointsWithConnexity : ";
+             std::cout << "Parameter error on Node " << i1p2 << std::endl;
            }
 #endif
            aNode12Indices->Flag |= NMsk_Edge;
@@ -1143,8 +1143,8 @@ InitBiPointsWithConnexity (const Standard_Integer e,
       }
 #ifdef OCCT_DEBUG
       else if (DoError) {
-       cout << "HLRBRep_PolyAlgo::InitBiPointsWithConnexity : Edge ";
-       cout << e << " connect 2 without PolygonOnTriangulation" << endl;
+       std::cout << "HLRBRep_PolyAlgo::InitBiPointsWithConnexity : Edge ";
+       std::cout << e << " connect 2 without PolygonOnTriangulation" << std::endl;
       }
 #endif
     }
@@ -1205,8 +1205,8 @@ InitBiPointsWithConnexity (const Standard_Integer e,
     }
 #ifdef OCCT_DEBUG
     else if (DoError) {
-      cout << "HLRBRep_PolyAlgo::InitBiPointsWithConnexity : Edge ";
-      cout << e << " Isolated, without Polygone 3D" << endl;
+      std::cout << "HLRBRep_PolyAlgo::InitBiPointsWithConnexity : Edge ";
+      std::cout << e << " Isolated, without Polygone 3D" << std::endl;
     }
 #endif
   }
@@ -1496,8 +1496,8 @@ MoveOrInsertPoint (HLRAlgo_ListOfBPoint& List,
       else if (Nod11Indices.Edg2 == e) Nod11RValues.PCu2 = U3;
 #ifdef OCCT_DEBUG
       else {
-       cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
-       cout << "Parameter error on Node " << i1p1 << endl;
+       std::cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
+       std::cout << "Parameter error on Node " << i1p1 << std::endl;
       }
 #endif
       Nod11RValues.Scal  = 0;
@@ -1528,8 +1528,8 @@ MoveOrInsertPoint (HLRAlgo_ListOfBPoint& List,
       else if (Nod12Indices.Edg2 == e) Nod12RValues.PCu2 = U3;
 #ifdef OCCT_DEBUG
       else {
-       cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
-       cout << "Parameter error on Node " << i1p2 << endl;
+       std::cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
+       std::cout << "Parameter error on Node " << i1p2 << std::endl;
       }
 #endif
       Nod12RValues.Scal  = 0;
@@ -1651,8 +1651,8 @@ MoveOrInsertPoint (HLRAlgo_ListOfBPoint& List,
       else if (Nod11Indices.Edg2 == e) Nod11RValues.PCu2 = U3;
 #ifdef OCCT_DEBUG
       else {
-       cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
-       cout << "Parameter error on Node " << i1p1 << endl;
+       std::cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
+       std::cout << "Parameter error on Node " << i1p1 << std::endl;
       }
 #endif
       Nod11RValues.Scal  = 0;
@@ -1663,8 +1663,8 @@ MoveOrInsertPoint (HLRAlgo_ListOfBPoint& List,
       else if (Nod21Indices.Edg2 == e) Nod21RValues.PCu2 = U3;
 #ifdef OCCT_DEBUG
       else {
-       cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
-       cout << "Parameter error on Node " << i2p1 << endl;
+       std::cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
+       std::cout << "Parameter error on Node " << i2p1 << std::endl;
       }
 #endif
       Nod21RValues.Scal  = 0;
@@ -1700,8 +1700,8 @@ MoveOrInsertPoint (HLRAlgo_ListOfBPoint& List,
       else if (Nod12Indices.Edg2 == e) Nod12RValues.PCu2 = U3;
 #ifdef OCCT_DEBUG
       else {
-       cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
-       cout << "Parameter error on Node " << i1p2 << endl;
+       std::cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
+       std::cout << "Parameter error on Node " << i1p2 << std::endl;
       }
 #endif
       Nod12RValues.Scal  = 0;
@@ -1712,8 +1712,8 @@ MoveOrInsertPoint (HLRAlgo_ListOfBPoint& List,
       else if (Nod22Indices.Edg2 == e) Nod22RValues.PCu2 = U3;
 #ifdef OCCT_DEBUG
       else {
-       cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
-       cout << "Parameter error on Node " << i2p2 << endl;
+       std::cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
+       std::cout << "Parameter error on Node " << i2p2 << std::endl;
       }
 #endif
       Nod22RValues.Scal = 0;
@@ -1860,8 +1860,8 @@ MoveOrInsertPoint (HLRAlgo_ListOfBPoint& List,
       else if (Nod11Indices.Edg2 == e) Nod11RValues.PCu2 = U3;
 #ifdef OCCT_DEBUG
       else {
-       cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
-       cout << "Parameter error on Node " << i1p1 << endl;
+       std::cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
+       std::cout << "Parameter error on Node " << i1p1 << std::endl;
       }
 #endif
       Nod11RValues.Scal  = 0;
@@ -1872,8 +1872,8 @@ MoveOrInsertPoint (HLRAlgo_ListOfBPoint& List,
       else if (Nod21Indices.Edg2 == e) Nod21RValues.PCu2 = U3;
 #ifdef OCCT_DEBUG
       else {
-       cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
-       cout << "Parameter error on Node " << i2p1 << endl;
+       std::cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
+       std::cout << "Parameter error on Node " << i2p1 << std::endl;
       }
 #endif
       Nod21RValues.Scal  = 0;
@@ -1909,8 +1909,8 @@ MoveOrInsertPoint (HLRAlgo_ListOfBPoint& List,
       else if (Nod12Indices.Edg2 == e) Nod12RValues.PCu2 = U4;
 #ifdef OCCT_DEBUG
       else {
-       cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
-       cout << "Parameter error on Node " << i1p2 << endl;
+       std::cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
+       std::cout << "Parameter error on Node " << i1p2 << std::endl;
       }
 #endif
       Nod12RValues.Scal  = 0;
@@ -1921,8 +1921,8 @@ MoveOrInsertPoint (HLRAlgo_ListOfBPoint& List,
       else if (Nod22Indices.Edg2 == e) Nod22RValues.PCu2 = U4;
 #ifdef OCCT_DEBUG
       else {
-       cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
-       cout << "Parameter error on Node " << i2p2 << endl;
+       std::cout << " HLRBRep_PolyAlgo::MoveOrInsertPoint : ";
+       std::cout << "Parameter error on Node " << i2p2 << std::endl;
       }
 #endif
       Nod22RValues.Scal  = 0;
@@ -2085,9 +2085,9 @@ HLRBRep_PolyAlgo::InsertOnOutLine (TColStd_Array1OfTransient& PID)
 
 #ifdef OCCT_DEBUG
       if (DoTrace) {
-       cout << " InsertOnOutLine : NbTData " << (*pid)->NbTData() << endl;
-       cout << " InsertOnOutLine : NbPISeg " << (*pid)->NbPISeg() << endl;
-       cout << " InsertOnOutLine : NbPINod " << (*pid)->NbPINod() << endl;
+       std::cout << " InsertOnOutLine : NbTData " << (*pid)->NbTData() << std::endl;
+       std::cout << " InsertOnOutLine : NbPISeg " << (*pid)->NbPISeg() << std::endl;
+       std::cout << " InsertOnOutLine : NbPINod " << (*pid)->NbPINod() << std::endl;
       }
 #endif
 
@@ -2169,9 +2169,9 @@ HLRBRep_PolyAlgo::InsertOnOutLine (TColStd_Array1OfTransient& PID)
 
 #ifdef OCCT_DEBUG
       if (DoTrace) {
-       cout << " InsertOnOutLine : NbTData " << (*pid)->NbTData() << endl;
-       cout << " InsertOnOutLine : NbPISeg " << (*pid)->NbPISeg() << endl;
-       cout << " InsertOnOutLine : NbPINod " << (*pid)->NbPINod() << endl;
+       std::cout << " InsertOnOutLine : NbTData " << (*pid)->NbTData() << std::endl;
+       std::cout << " InsertOnOutLine : NbPISeg " << (*pid)->NbPISeg() << std::endl;
+       std::cout << " InsertOnOutLine : NbPINod " << (*pid)->NbPINod() << std::endl;
       }
 #endif
     }
@@ -2248,7 +2248,7 @@ HLRBRep_PolyAlgo::CheckFrBackTriangles (HLRAlgo_ListOfBPoint& List,
              (tdata->Flags & HLRAlgo_PolyMask_FMskFrBack)) {
 #ifdef OCCT_DEBUG
            if (DoTrace)
-             cout << " face : " << f << " , triangle " << i << endl;
+             std::cout << " face : " << f << " , triangle " << i << std::endl;
 #endif
            Modif        = Standard_True;
            const Handle(HLRAlgo_PolyInternalNode)* pi1p1 =
@@ -2317,8 +2317,8 @@ HLRBRep_PolyAlgo::CheckFrBackTriangles (HLRAlgo_ListOfBPoint& List,
              FrBackInList = Standard_True;
 #ifdef OCCT_DEBUG
              if (DoTrace) {
-               cout << tdata->Node1 << " modifies  : DX,DY ";
-               cout << X1 << " , " << Y1 << endl;
+               std::cout << tdata->Node1 << " modifies  : DX,DY ";
+               std::cout << X1 << " , " << Y1 << std::endl;
              }
 #endif
            }
@@ -2330,8 +2330,8 @@ HLRBRep_PolyAlgo::CheckFrBackTriangles (HLRAlgo_ListOfBPoint& List,
              FrBackInList = Standard_True;
 #ifdef OCCT_DEBUG
              if (DoTrace) {
-               cout << tdata->Node2 << " modifies  : DX,DY ";
-               cout << X2 << " , " << Y2 << endl;
+               std::cout << tdata->Node2 << " modifies  : DX,DY ";
+               std::cout << X2 << " , " << Y2 << std::endl;
              }
 #endif
            }
@@ -2343,14 +2343,14 @@ HLRBRep_PolyAlgo::CheckFrBackTriangles (HLRAlgo_ListOfBPoint& List,
              FrBackInList = Standard_True;
 #ifdef OCCT_DEBUG
              if (DoTrace) {
-               cout << tdata->Node3 << " modifies  : DX,DY ";
-               cout << X3 << " , " << Y3 << endl;
+               std::cout << tdata->Node3 << " modifies  : DX,DY ";
+               std::cout << X3 << " , " << Y3 << std::endl;
              }
 #endif
            }
 #ifdef OCCT_DEBUG
            else if (DoTrace)
-             cout << "modification error" << endl;
+             std::cout << "modification error" << std::endl;
 #endif
          }
          tdata++;
@@ -2390,7 +2390,7 @@ HLRBRep_PolyAlgo::CheckFrBackTriangles (HLRAlgo_ListOfBPoint& List,
          if (Nod11Indices->Flag & NMsk_Move) {
 #ifdef OCCT_DEBUG
            if (DoTrace)
-             cout << theIndices.Face1Pt1 << " modifies 11" << endl;
+             std::cout << theIndices.Face1Pt1 << " modifies 11" << std::endl;
 #endif
            Nod11RValues = &PINod1->ChangeValue(theIndices.Face1Pt1)->Data();
            HLRAlgo_BiPoint::PointsT& aPoints = BP.Points();
@@ -2409,7 +2409,7 @@ HLRBRep_PolyAlgo::CheckFrBackTriangles (HLRAlgo_ListOfBPoint& List,
          if (Nod11Indices->Flag & NMsk_Move) {
 #ifdef OCCT_DEBUG
            if (DoTrace)
-             cout << theIndices.Face1Pt2 << " modifies 12" << endl;
+             std::cout << theIndices.Face1Pt2 << " modifies 12" << std::endl;
 #endif
            Nod11RValues = &PINod1->ChangeValue(theIndices.Face1Pt2)->Data();
            HLRAlgo_BiPoint::PointsT& aPoints = BP.Points();
@@ -2433,7 +2433,7 @@ HLRBRep_PolyAlgo::CheckFrBackTriangles (HLRAlgo_ListOfBPoint& List,
          if (Nod11Indices->Flag & NMsk_Move) {
 #ifdef OCCT_DEBUG
            if (DoTrace)
-             cout << theIndices.Face2Pt1 << " modifies 21" << endl;
+             std::cout << theIndices.Face2Pt1 << " modifies 21" << std::endl;
 #endif
            Nod11RValues = &PINod2->ChangeValue(theIndices.Face2Pt1)->Data();
            HLRAlgo_BiPoint::PointsT& aPoints = BP.Points();
@@ -2452,7 +2452,7 @@ HLRBRep_PolyAlgo::CheckFrBackTriangles (HLRAlgo_ListOfBPoint& List,
          if (Nod11Indices->Flag & NMsk_Move) {
 #ifdef OCCT_DEBUG
            if (DoTrace)
-             cout << theIndices.Face2Pt2 << " modifies 22" << endl;
+             std::cout << theIndices.Face2Pt2 << " modifies 22" << std::endl;
 #endif
            Nod11RValues = &PINod2->ChangeValue(theIndices.Face2Pt2)->Data();
            HLRAlgo_BiPoint::PointsT& aPoints = BP.Points();
@@ -2570,8 +2570,8 @@ void HLRBRep_PolyAlgo::ChangeNode (const Standard_Integer ip1,
       Nod1RValues.Normal = gp_XYZ(1., 0., 0.);
 #ifdef OCCT_DEBUG
       if (DoError) {
-       cout << "HLRBRep_PolyAlgo::ChangeNode between " << ip1;
-       cout << " and " << ip2 << endl;
+       std::cout << "HLRBRep_PolyAlgo::ChangeNode between " << ip1;
+       std::cout << " and " << ip2 << std::endl;
       }
 #endif
     }
@@ -2590,8 +2590,8 @@ void HLRBRep_PolyAlgo::ChangeNode (const Standard_Integer ip1,
       Nod2RValues.Normal = gp_XYZ(1., 0., 0.);
 #ifdef OCCT_DEBUG
       if (DoError) {
-       cout << "HLRBRep_PolyAlgo::ChangeNode between " << ip2;
-       cout << " and " << ip1 << endl;
+       std::cout << "HLRBRep_PolyAlgo::ChangeNode between " << ip2;
+       std::cout << " and " << ip1 << std::endl;
       }
 #endif
     }
@@ -2691,8 +2691,8 @@ HLRBRep_PolyAlgo::OrientTriangle(const Standard_Integer,
     theTriangle.Flags |=  HLRAlgo_PolyMask_FMskOnOutL;
 #ifdef OCCT_DEBUG
     if (DoTrace) {
-      cout << "HLRBRep_PolyAlgo::OrientTriangle : OnOutL";
-      cout << " triangle " << iTri << endl;
+      std::cout << "HLRBRep_PolyAlgo::OrientTriangle : OnOutL";
+      std::cout << " triangle " << iTri << std::endl;
     }
 #endif
   }
@@ -2724,8 +2724,8 @@ HLRBRep_PolyAlgo::OrientTriangle(const Standard_Integer,
     if (aD12Norm <= 1.e-10) {
 #ifdef OCCT_DEBUG
       if (DoTrace) {
-       cout << "HLRBRep_PolyAlgo::OrientTriangle : Flat";
-       cout << " triangle " << iTri << endl;
+       std::cout << "HLRBRep_PolyAlgo::OrientTriangle : Flat";
+       std::cout << " triangle " << iTri << std::endl;
       }
 #endif
       theTriangle.Flags |=  HLRAlgo_PolyMask_FMskFlat;
@@ -2738,8 +2738,8 @@ HLRBRep_PolyAlgo::OrientTriangle(const Standard_Integer,
       if (aD23Norm < 1.e-10) {
 #ifdef OCCT_DEBUG
        if (DoTrace) {
-         cout << "HLRBRep_PolyAlgo::OrientTriangle : Flat";
-         cout << " triangle " << iTri << endl;
+         std::cout << "HLRBRep_PolyAlgo::OrientTriangle : Flat";
+         std::cout << " triangle " << iTri << std::endl;
        }
 #endif
        theTriangle.Flags |=  HLRAlgo_PolyMask_FMskFlat;
@@ -2752,8 +2752,8 @@ HLRBRep_PolyAlgo::OrientTriangle(const Standard_Integer,
         if (aD31Norm < 1.e-10) {
 #ifdef OCCT_DEBUG
          if (DoTrace) {
-           cout << "HLRBRep_PolyAlgo::OrientTriangle : Flat";
-           cout << " triangle " << iTri << endl;
+           std::cout << "HLRBRep_PolyAlgo::OrientTriangle : Flat";
+           std::cout << " triangle " << iTri << std::endl;
          }
 #endif
          theTriangle.Flags |=  HLRAlgo_PolyMask_FMskFlat;
@@ -2768,8 +2768,8 @@ HLRBRep_PolyAlgo::OrientTriangle(const Standard_Integer,
          if (aDNorm < 1.e-5) {
 #ifdef OCCT_DEBUG
            if (DoTrace) {
-             cout << "HLRBRep_PolyAlgo::OrientTriangle : Flat";
-             cout << " triangle " << iTri << endl;
+             std::cout << "HLRBRep_PolyAlgo::OrientTriangle : Flat";
+             std::cout << " triangle " << iTri << std::endl;
            }
 #endif
            theTriangle.Flags |=  HLRAlgo_PolyMask_FMskFlat;
@@ -2845,8 +2845,8 @@ HLRBRep_PolyAlgo::Triangles(const Standard_Integer ip1,
   iTri2 = 0;
 #ifdef OCCT_DEBUG
   if (DoError) {
-    cout << "HLRBRep_PolyAlgo::Triangles : error";
-    cout << " between " << ip1 << " and " << ip2 << endl;
+    std::cout << "HLRBRep_PolyAlgo::Triangles : error";
+    std::cout << " between " << ip1 << " and " << ip2 << std::endl;
   }
 #endif
   return Standard_False;
@@ -2982,8 +2982,8 @@ HLRBRep_PolyAlgo::UpdateOutLines (HLRAlgo_ListOfBPoint& List,
                aTriangle.Flags |=  HLRAlgo_PolyMask_EMskOutLin3;
 #ifdef OCCT_DEBUG
              else if (DoError) {
-               cout << "HLRAlgo_PolyInternalData::UpdateOutLines";
-               cout << " : segment not found" << endl;
+               std::cout << "HLRAlgo_PolyInternalData::UpdateOutLines";
+               std::cout << " : segment not found" << std::endl;
              }
 #endif
              tn1 = aTriangle2.Node1;
@@ -3002,8 +3002,8 @@ HLRBRep_PolyAlgo::UpdateOutLines (HLRAlgo_ListOfBPoint& List,
                aTriangle2.Flags |=  HLRAlgo_PolyMask_EMskOutLin3;
 #ifdef OCCT_DEBUG
              else if (DoError) {
-               cout << "HLRAlgo_PolyInternalData::UpdateOutLines";
-               cout << " : segment not found" << endl;
+               std::cout << "HLRAlgo_PolyInternalData::UpdateOutLines";
+               std::cout << " : segment not found" << std::endl;
              }
 #endif
              HLRAlgo_PolyInternalNode::NodeData& Nod1RValues =
@@ -3088,9 +3088,9 @@ UpdateEdgesBiPoints (HLRAlgo_ListOfBPoint& List,
       }
 #ifdef OCCT_DEBUG
       else if (DoError) {
-       cout << "HLRBRep_PolyAlgo::UpdateEdgesBiPoints : error ";
-       cout << " between " << aIndices.FaceConex1 << setw(6);
-       cout << " and " << aIndices.FaceConex2 << endl;
+       std::cout << "HLRBRep_PolyAlgo::UpdateEdgesBiPoints : error ";
+       std::cout << " between " << aIndices.FaceConex1 << std::setw(6);
+       std::cout << " and " << aIndices.FaceConex2 << std::endl;
       }
 #endif
     }
@@ -3140,9 +3140,9 @@ HLRBRep_PolyAlgo::UpdatePolyData (TColStd_Array1OfTransient& PD,
        if (!(OT->Flags & HLRAlgo_PolyMask_FMskSide)) {
 #ifdef OCCT_DEBUG
          if ((OT->Flags & HLRAlgo_PolyMask_FMskFrBack) && DoTrace) {
-           cout << "HLRBRep_PolyAlgo::ReverseBackTriangle :";
-           cout << " face " << f << setw(6);
-           cout << " triangle " << i << endl;
+           std::cout << "HLRBRep_PolyAlgo::ReverseBackTriangle :";
+           std::cout << " face " << f << std::setw(6);
+           std::cout << " triangle " << i << std::endl;
          }
 #endif
          if (OT->Flags & HLRAlgo_PolyMask_FMskOrBack) {
index 6379df6..57e3111 100644 (file)
@@ -610,7 +610,7 @@ static Standard_Boolean stest(const Handle(Draw_Drawable3D)& d)
 //purpose  : 
 //=======================================================================
 
-static void ssave (const Handle(Draw_Drawable3D)&d, ostream& OS)
+static void ssave (const Handle(Draw_Drawable3D)&d, std::ostream& OS)
 {
   Handle(HLRTest_Projector) HP =
     Handle(HLRTest_Projector)::DownCast(d);
@@ -647,7 +647,7 @@ static void ssave (const Handle(Draw_Drawable3D)&d, ostream& OS)
 //purpose  : 
 //=======================================================================
 
-static Handle(Draw_Drawable3D) srestore (istream& IS)
+static Handle(Draw_Drawable3D) srestore (std::istream& IS)
 {
   Standard_Boolean pers;
   IS >> pers;
index a78d4e1..bd489a7 100644 (file)
@@ -96,7 +96,7 @@ HLRTest_DrawablePolyEdgeTool (const Handle(HLRBRep_PolyAlgo)& Alg,
   }
   if (myDebug) {
     ChronHide.Stop();
-    cout << " Temps Hide   :";
+    std::cout << " Temps Hide   :";
     ChronHide.Show(); 
   }
 }
index 465bc02..782fe97 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" << endl;
+  S << "This is an outliner" << std::endl;
 }
 
 //=======================================================================
index e90bab7..f2c56b7 100644 (file)
@@ -66,11 +66,11 @@ void HLRTest_Projector::Dump (Standard_OStream& S) const
   for (Standard_Integer i = 1; i <= 3; i++) {
 
     for (Standard_Integer j = 1; j <= 4; j++) {
-      S << setw(15) << myProjector.Transformation().Value(i,j);
+      S << std::setw(15) << myProjector.Transformation().Value(i,j);
     }
     S << "\n";
   }
-  S << endl;
+  S << std::endl;
 }
 
 //=======================================================================
index d07d2d8..51c0e56 100644 (file)
@@ -228,7 +228,7 @@ void  HLRTopoBRep_DSFiller::InsertFace (const Standard_Integer /*FI*/,
                
                 if(ipL-ipF < 1) { 
                   InsuffisantNumberOfPoints=Standard_True;
-                  //cout<<"\n !! Pb ds HLRTopoBRep_DSFiller.cxx (Contour App Nbp <3)"<<endl;
+                  //std::cout<<"\n !! Pb ds HLRTopoBRep_DSFiller.cxx (Contour App Nbp <3)"<<std::endl;
                 }
 /*
                else if(ipL-ipF < 6) { 
@@ -390,7 +390,7 @@ void  HLRTopoBRep_DSFiller::InsertFace (const Standard_Integer /*FI*/,
                   TOL3d=TOL*Maxx; if(TOL3d<1e-12) TOL3d=1e-12; else if(TOL3d>0.1) TOL3d=0.1;
                   TOL2d=TOL*Maxu; if(TOL2d<1e-12) TOL2d=1e-12; else if(TOL2d>0.1) TOL2d=0.1;
                  
-                  //-- cout<<"\nHLRTopoBRep_DSFiller : nbp="<<nbp<<"  Tol3d="<<TOL3d<<"   Tol2d="<<TOL2d<<endl;
+                  //-- std::cout<<"\nHLRTopoBRep_DSFiller : nbp="<<nbp<<"  Tol3d="<<TOL3d<<"   Tol2d="<<TOL2d<<std::endl;
 
                   Approx.SetParameters(TOL3d, TOL2d, dmin, dmax, niter, 30, tg);
                   Approx.Perform(AppLine,Standard_True,Standard_True,Standard_False,1,nbp);
index 4ce3752..360ccec 100644 (file)
@@ -197,23 +197,23 @@ void HLRTopoBRep_FaceIsoLiner::Perform (const Standard_Integer FI,
        Hatcher.ComputeDomains (IndH);
       if (!Hatcher.IsDone (IndH)) {
 #ifdef OCCT_DEBUG
-        cout << "HLRTopoBRep::MakeIsoLines : Face " << FI << endl;
-       cout << "U iso of parameter: " << UPrm;
+        std::cout << "HLRTopoBRep::MakeIsoLines : Face " << FI << std::endl;
+       std::cout << "U iso of parameter: " << UPrm;
        switch (Hatcher.Status (IndH)) {
        case HatchGen_NoProblem          :
-         cout << " No Problem"          << endl;
+         std::cout << " No Problem"          << std::endl;
          break;
        case HatchGen_TrimFailure        :
-         cout << " Trim Failure"        << endl;
+         std::cout << " Trim Failure"        << std::endl;
          break;
        case HatchGen_TransitionFailure  :
-         cout << " Transition Failure"  << endl;
+         std::cout << " Transition Failure"  << std::endl;
          break;
        case HatchGen_IncoherentParity   :
-         cout << " Incoherent Parity"   << endl;
+         std::cout << " Incoherent Parity"   << std::endl;
          break;
        case HatchGen_IncompatibleStates :
-         cout << " Incompatible States" << endl;
+         std::cout << " Incompatible States" << std::endl;
          break;
        }
 #endif
@@ -291,23 +291,23 @@ void HLRTopoBRep_FaceIsoLiner::Perform (const Standard_Integer FI,
        Hatcher.ComputeDomains (IndH);
       if (!Hatcher.IsDone (IndH)) {
 #ifdef OCCT_DEBUG
-       cout << "HLRTopoBRep::MakeIsoLines : Face " << FI << endl;
-       cout << "V iso of parameter: " << VPrm;
+       std::cout << "HLRTopoBRep::MakeIsoLines : Face " << FI << std::endl;
+       std::cout << "V iso of parameter: " << VPrm;
        switch (Hatcher.Status (IndH)) {
        case HatchGen_NoProblem          :
-         cout << " No Problem"          << endl;
+         std::cout << " No Problem"          << std::endl;
          break;
        case HatchGen_TrimFailure        :
-         cout << " Trim Failure"        << endl;
+         std::cout << " Trim Failure"        << std::endl;
          break;
        case HatchGen_TransitionFailure  :
-         cout << " Transition Failure"  << endl;
+         std::cout << " Transition Failure"  << std::endl;
          break;
        case HatchGen_IncoherentParity   :
-         cout << " Incoherent Parity"   << endl;
+         std::cout << " Incoherent Parity"   << std::endl;
          break;
        case HatchGen_IncompatibleStates :
-         cout << " Incompatible States" << endl;
+         std::cout << " Incompatible States" << std::endl;
          break;
        }
 #endif
index c814308..893e7fc 100644 (file)
@@ -71,25 +71,25 @@ HatchGen_Domain::HatchGen_Domain (const HatchGen_PointOnHatching& P,
 
 void HatchGen_Domain::Dump (const Standard_Integer Index) const
 {
-  cout << "=== Domain " ;
+  std::cout << "=== Domain " ;
   if (Index > 0) {
-    cout << "# " << setw(3) << Index << " " ;
+    std::cout << "# " << std::setw(3) << Index << " " ;
   } else {
-    cout << "======" ;
+    std::cout << "======" ;
   }
-  cout << "=============================" << endl ;
+  std::cout << "=============================" << std::endl ;
 
   if (myHasFirstPoint) {
     myFirstPoint.Dump (1) ;
   } else {
-    cout << "    Has not a first point" << endl ;
+    std::cout << "    Has not a first point" << std::endl ;
   }
 
   if (myHasSecondPoint) {
     mySecondPoint.Dump (2) ;
   } else {
-    cout << "    Has not a second point" << endl ;
+    std::cout << "    Has not a second point" << std::endl ;
   }
 
-  cout << "==============================================" << endl ;
+  std::cout << "==============================================" << std::endl ;
 }
index 0dc0f44..dab4ddd 100644 (file)
@@ -216,50 +216,50 @@ Standard_Boolean HatchGen_PointOnElement::IsDifferent (const HatchGen_PointOnEle
 
 void HatchGen_PointOnElement::Dump (const Standard_Integer Index) const
 {
-  cout << "    --- Point on element " ;
+  std::cout << "    --- Point on element " ;
   if (Index > 0) {
-    cout << "# " << setw(3) << Index << " " ;
+    std::cout << "# " << std::setw(3) << Index << " " ;
   } else {
-    cout << "------" ;
+    std::cout << "------" ;
   }
-  cout << "---------------" << endl ;
+  std::cout << "---------------" << std::endl ;
 
-  cout << "        Index of the element = " << myIndex << endl ;
-  cout << "        Parameter on element = " << myParam << endl ;
-  cout << "        Position  on element = " ;
+  std::cout << "        Index of the element = " << myIndex << std::endl ;
+  std::cout << "        Parameter on element = " << myParam << std::endl ;
+  std::cout << "        Position  on element = " ;
   switch (myPosit) {
-      case TopAbs_FORWARD  : cout << "FORWARD  (i.e. BEGIN  )" ; break ;
-      case TopAbs_INTERNAL : cout << "INTERNAL (i.e. MIDDLE )" ; break ;
-      case TopAbs_REVERSED : cout << "REVERSED (i.e. END    )" ; break ;
-      case TopAbs_EXTERNAL : cout << "EXTERNAL (i.e. UNKNOWN)" ; break ;
+      case TopAbs_FORWARD  : std::cout << "FORWARD  (i.e. BEGIN  )" ; break ;
+      case TopAbs_INTERNAL : std::cout << "INTERNAL (i.e. MIDDLE )" ; break ;
+      case TopAbs_REVERSED : std::cout << "REVERSED (i.e. END    )" ; break ;
+      case TopAbs_EXTERNAL : std::cout << "EXTERNAL (i.e. UNKNOWN)" ; break ;
   }
-  cout << endl ;
-  cout << "        Intersection Type    = " ;
+  std::cout << std::endl ;
+  std::cout << "        Intersection Type    = " ;
   switch (myType) {
-      case HatchGen_TRUE         : cout << "TRUE"         ; break ;
-      case HatchGen_TOUCH        : cout << "TOUCH"        ; break ;
-      case HatchGen_TANGENT      : cout << "TANGENT"      ; break ;
-      case HatchGen_UNDETERMINED : cout << "UNDETERMINED" ; break ;
+      case HatchGen_TRUE         : std::cout << "TRUE"         ; break ;
+      case HatchGen_TOUCH        : std::cout << "TOUCH"        ; break ;
+      case HatchGen_TANGENT      : std::cout << "TANGENT"      ; break ;
+      case HatchGen_UNDETERMINED : std::cout << "UNDETERMINED" ; break ;
   }
-  cout << endl ;
-  cout << "        State Before         = " ;
+  std::cout << std::endl ;
+  std::cout << "        State Before         = " ;
   switch (myBefore) {
-      case TopAbs_IN      : cout << "IN"      ; break ;
-      case TopAbs_OUT     : cout << "OUT"     ; break ;
-      case TopAbs_ON      : cout << "ON"      ; break ;
-      case TopAbs_UNKNOWN : cout << "UNKNOWN" ; break ;
+      case TopAbs_IN      : std::cout << "IN"      ; break ;
+      case TopAbs_OUT     : std::cout << "OUT"     ; break ;
+      case TopAbs_ON      : std::cout << "ON"      ; break ;
+      case TopAbs_UNKNOWN : std::cout << "UNKNOWN" ; break ;
   }
-  cout << endl ;
-  cout << "        State After          = " ;
+  std::cout << std::endl ;
+  std::cout << "        State After          = " ;
   switch (myAfter) {
-      case TopAbs_IN      : cout << "IN"      ; break ;
-      case TopAbs_OUT     : cout << "OUT"     ; break ;
-      case TopAbs_ON      : cout << "ON"      ; break ;
-      case TopAbs_UNKNOWN : cout << "UNKNOWN" ; break ;
+      case TopAbs_IN      : std::cout << "IN"      ; break ;
+      case TopAbs_OUT     : std::cout << "OUT"     ; break ;
+      case TopAbs_ON      : std::cout << "ON"      ; break ;
+      case TopAbs_UNKNOWN : std::cout << "UNKNOWN" ; break ;
   }
-  cout << endl ;
-  cout << "        Beginning of segment = " << (mySegBeg ? "TRUE" : "FALSE") << endl ;
-  cout << "        End       of segment = " << (mySegEnd ? "TRUE" : "FALSE") << endl ;
+  std::cout << std::endl ;
+  std::cout << "        Beginning of segment = " << (mySegBeg ? "TRUE" : "FALSE") << std::endl ;
+  std::cout << "        End       of segment = " << (mySegEnd ? "TRUE" : "FALSE") << std::endl ;
 
-  cout << "    ------------------------------------------" << endl ;
+  std::cout << "    ------------------------------------------" << std::endl ;
 }
index e32812b..79b2436 100644 (file)
@@ -179,53 +179,53 @@ Standard_Boolean HatchGen_PointOnHatching::IsGreater (const HatchGen_PointOnHatc
 
 void HatchGen_PointOnHatching::Dump (const Standard_Integer Index) const
 {
-  cout << "--- Point on hatching " ;
+  std::cout << "--- Point on hatching " ;
   if (Index > 0) {
-    cout << "# " << setw(3) << Index << " " ;
+    std::cout << "# " << std::setw(3) << Index << " " ;
   } else {
-    cout << "------" ;
+    std::cout << "------" ;
   }
-  cout << "------------------" << endl ;
+  std::cout << "------------------" << std::endl ;
 
-  cout << "    Index of the hatching = " << myIndex << endl ;
-  cout << "    Parameter on hatching = " << myParam << endl ;
-  cout << "    Position  on hatching = " ;
+  std::cout << "    Index of the hatching = " << myIndex << std::endl ;
+  std::cout << "    Parameter on hatching = " << myParam << std::endl ;
+  std::cout << "    Position  on hatching = " ;
   switch (myPosit) {
-      case TopAbs_FORWARD  : cout << "FORWARD  (i.e. BEGIN  )" ; break ;
-      case TopAbs_INTERNAL : cout << "INTERNAL (i.e. MIDDLE )" ; break ;
-      case TopAbs_REVERSED : cout << "REVERSED (i.e. END    )" ; break ;
-      case TopAbs_EXTERNAL : cout << "EXTERNAL (i.e. UNKNOWN)" ; break ;
+      case TopAbs_FORWARD  : std::cout << "FORWARD  (i.e. BEGIN  )" ; break ;
+      case TopAbs_INTERNAL : std::cout << "INTERNAL (i.e. MIDDLE )" ; break ;
+      case TopAbs_REVERSED : std::cout << "REVERSED (i.e. END    )" ; break ;
+      case TopAbs_EXTERNAL : std::cout << "EXTERNAL (i.e. UNKNOWN)" ; break ;
   }
-  cout << endl ;
-  cout << "    State Before          = " ;
+  std::cout << std::endl ;
+  std::cout << "    State Before          = " ;
   switch (myBefore) {
-      case TopAbs_IN      : cout << "IN"      ; break ;
-      case TopAbs_OUT     : cout << "OUT"     ; break ;
-      case TopAbs_ON      : cout << "ON"      ; break ;
-      case TopAbs_UNKNOWN : cout << "UNKNOWN" ; break ;
+      case TopAbs_IN      : std::cout << "IN"      ; break ;
+      case TopAbs_OUT     : std::cout << "OUT"     ; break ;
+      case TopAbs_ON      : std::cout << "ON"      ; break ;
+      case TopAbs_UNKNOWN : std::cout << "UNKNOWN" ; break ;
   }
-  cout << endl ;
-  cout << "    State After           = " ;
+  std::cout << std::endl ;
+  std::cout << "    State After           = " ;
   switch (myAfter) {
-      case TopAbs_IN      : cout << "IN"      ; break ;
-      case TopAbs_OUT     : cout << "OUT"     ; break ;
-      case TopAbs_ON      : cout << "ON"      ; break ;
-      case TopAbs_UNKNOWN : cout << "UNKNOWN" ; break ;
+      case TopAbs_IN      : std::cout << "IN"      ; break ;
+      case TopAbs_OUT     : std::cout << "OUT"     ; break ;
+      case TopAbs_ON      : std::cout << "ON"      ; break ;
+      case TopAbs_UNKNOWN : std::cout << "UNKNOWN" ; break ;
   }
-  cout << endl ;
-  cout << "    Beginning of segment  = " << (mySegBeg ? "TRUE" : "FALSE") << endl ;
-  cout << "    End       of segment  = " << (mySegEnd ? "TRUE" : "FALSE") << endl ;
+  std::cout << std::endl ;
+  std::cout << "    Beginning of segment  = " << (mySegBeg ? "TRUE" : "FALSE") << std::endl ;
+  std::cout << "    End       of segment  = " << (mySegEnd ? "TRUE" : "FALSE") << std::endl ;
 
   Standard_Integer NbPnt = myPoints.Length () ;
   if (NbPnt == 0) {
-    cout << "    No points on element" << endl ;
+    std::cout << "    No points on element" << std::endl ;
   } else {
-    cout << "    Contains " << NbPnt << " points on element" << endl ;
+    std::cout << "    Contains " << NbPnt << " points on element" << std::endl ;
     for (Standard_Integer IPnt = 1 ; IPnt <= NbPnt ; IPnt++) {
       const HatchGen_PointOnElement& Point = myPoints.Value (IPnt) ;
       Point.Dump (IPnt) ;
     }
   }
 
-  cout << "----------------------------------------------" << endl ;
+  std::cout << "----------------------------------------------" << std::endl ;
 }
index 6aab10c..2d7a3a1 100644 (file)
@@ -38,14 +38,14 @@ IFGraph_SCRoots::IFGraph_SCRoots
 //  Interface_Graph G(Model());
   Interface_Graph G(thegraph);
 #ifdef OCCT_DEBUG
-  cout<<" SCRoots:"<<endl;
+  std::cout<<" SCRoots:"<<std::endl;
 #endif
   G.ResetStatus();
   for (complist.Start(); complist.More(); complist.Next()) {
     Handle(Standard_Transient) ent = complist.FirstEntity();
     Standard_Integer num = G.EntityNumber(ent);
 #ifdef OCCT_DEBUG
-    cout<<"   Iteration,num="<<num<<(G.IsPresent(num) ? " Pris" : " A prendre")<<endl;
+    std::cout<<"   Iteration,num="<<num<<(G.IsPresent(num) ? " Pris" : " A prendre")<<std::endl;
 #endif
     if (!G.IsPresent(num)) {        //  enregistrer pour suivants
       G.GetFromEntity(ent,Standard_True);
index 134a3c2..fe2e447 100644 (file)
@@ -37,7 +37,7 @@ static TColStd_SequenceOfTransient theacts;
 {
 #ifdef OCCT_DEBUG
   if (thedico.IsBound(command)) {
-    cout << "****  XSTEP commands, name conflict on " << command << " first defined remains  ****" << endl;
+    std::cout << "****  XSTEP commands, name conflict on " << command << " first defined remains  ****" << std::endl;
 //    throw Standard_DomainError("IFSelect_Activator : Add");
   }
 #endif
index 741a838..86d80f2 100644 (file)
@@ -349,7 +349,7 @@ void IFSelect_ContextModif::TraceModifier
   if (modif.IsNull()) return;
 
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  sout << "---   Run Modifier:" << endl;
+  sout << "---   Run Modifier:" << Message_EndLine;
   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)"<<endl;
-  else          sout<<"  Entities,Total:"<<nb<<" Concerned:"<<ne<<endl;
+  if (nb == ne) sout<<"  All Model ("<<nb<<" Entities)"<<Message_EndLine;
+  else          sout<<"  Entities,Total:"<<nb<<" Concerned:"<<ne<<Message_EndLine;
 }
 
 
@@ -375,11 +375,11 @@ void IFSelect_ContextModif::Trace (const Standard_CString mess)
   if (thecurr <= 0) return;
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (ValueOriginal() == ValueResult())
-    sout<<"--  ContextModif. Entity  n0 "<<thecurr<<endl;
+    sout<<"--  ContextModif. Entity  n0 "<<thecurr<<Message_EndLine;
   else
     sout<<"--  ContextModif. Entity in Original, n0 "<<thecurr<<" in Result, n0 "
-      <<thecurt<<endl;
-  if (mess[0] != '\0') sout<<"--  Message:"<<mess<<endl;
+      <<thecurt<<Message_EndLine;
+  if (mess[0] != '\0') sout<<"--  Message:"<<mess<<Message_EndLine;
 }
 
 
index a8be7b5..cf6f585 100644 (file)
@@ -408,14 +408,14 @@ IFSelect_EditForm::IFSelect_EditForm
     void  IFSelect_EditForm::PrintDefs (const Handle(Message_Messenger)& S) const
 {
   Standard_Integer iv, nbv = NbValues(Standard_True);
-  S<<"***** EditForm,  Label : "<<Label()<<endl;
-  if (IsComplete()) S<<"Complete, "<<nbv<<" Values"<<endl;
+  S<<"***** EditForm,  Label : "<<Label()<<Message_EndLine;
+  if (IsComplete()) S<<"Complete, "<<nbv<<" Values"<<Message_EndLine;
   else {
-    S<<"Extraction on "<<nbv<<" Values : (extracted<-editor)"<<endl;
+    S<<"Extraction on "<<nbv<<" Values : (extracted<-editor)"<<Message_EndLine;
     for (iv = 1; iv <= nbv; iv ++) S<<"  "<<iv<<"<-"<<NumberFromRank(iv);
-    S<<endl;
+    S<<Message_EndLine;
   }
-  S<<"*****"<<endl;
+  S<<"*****"<<Message_EndLine;
 }
 
 
@@ -423,15 +423,15 @@ static void PrintList
   (const Handle(TColStd_HSequenceOfHAsciiString)& list,
    const Handle(Message_Messenger)& S, const Standard_Boolean alsolist)
 {
-  if (list.IsNull())  {  S<<"(NULL LIST)"<<endl;  return;  }
+  if (list.IsNull())  {  S<<"(NULL LIST)"<<Message_EndLine;  return;  }
 
   Standard_Integer i,nb = list->Length();
-  S<<"(List : "<<nb<<" Items)"<<endl;
+  S<<"(List : "<<nb<<" Items)"<<Message_EndLine;
   if (!alsolist) return;
 
   for (i = 1; i <= nb; i ++) {
     Handle(TCollection_HAsciiString) str = list->Value(i);
-    S<<"  ["<<i<<"]    "<< (str.IsNull() ? "(NULL)" : str->ToCString())<<endl;
+    S<<"  ["<<i<<"]    "<< (str.IsNull() ? "(NULL)" : str->ToCString())<<Message_EndLine;
   }
 }
 
@@ -440,11 +440,11 @@ static void PrintList
    const Standard_Boolean names, const Standard_Boolean alsolist) const
 {
   Standard_Integer iv, nbv = NbValues(Standard_True);
-  S<<  "****************************************************"<<endl;
-  S<<"*****  "<<Label()<<Interface_MSG::Blanks(Label(),40)<<"*****"<<endl;
-  S<<"*****                                          *****"<<endl;
+  S<<  "****************************************************"<<Message_EndLine;
+  S<<"*****  "<<Label()<<Interface_MSG::Blanks(Label(),40)<<"*****"<<Message_EndLine;
+  S<<"*****                                          *****"<<Message_EndLine;
   if (!theloaded)
-    S<<"*****         Values are NOT loaded            *****"<<endl;
+    S<<"*****         Values are NOT loaded            *****"<<Message_EndLine;
 
   else {
 //  Donnees sur lesquelles on a travaille
@@ -456,15 +456,15 @@ static void PrintList
       else { S<<"*****  Loaded entity : "; themodel->PrintLabel (theent,S); }
     }
   }
-  S<<endl<<"****************************************************"<<endl<<endl;
+  S<<Message_EndLine<<"****************************************************"<<Message_EndLine<<Message_EndLine;
 
 //  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"<<endl;
-  else S<<" N0 Name               Value"<<endl;
+  if (what != 0) S<<"Mod N0 Name               Value"<<Message_EndLine;
+  else S<<" N0 Name               Value"<<Message_EndLine;
 
   for (iv = 1; iv <= nbv; iv ++) {
     Standard_Integer jv = NumberFromRank(iv);
@@ -489,7 +489,7 @@ static void PrintList
       if (what < 0) str = OriginalValue (jv);
       if (what > 0) str = EditedValue (jv);
 
-      S << (str.IsNull() ? "(NULL)" : str->ToCString()) <<endl;
+      S << (str.IsNull() ? "(NULL)" : str->ToCString()) <<Message_EndLine;
 
 //    Modified only
     } else {
@@ -511,12 +511,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()) <<endl;
+       << (str.IsNull() ? "(NULL)" : str->ToCString()) <<Message_EndLine;
       str = EditedValue (jv);
-      S<<Interface_MSG::Blanks("",maxnam+4)<<" MOD :"<< (str.IsNull() ? "(NULL)" : str->ToCString()) <<endl;
+      S<<Interface_MSG::Blanks("",maxnam+4)<<" MOD :"<< (str.IsNull() ? "(NULL)" : str->ToCString()) <<Message_EndLine;
     }
   }
-  if (what == 0) S<<"On "<<nbv<<" Values, "<<nbmod<<" Modified"<<endl;
+  if (what == 0) S<<"On "<<nbv<<" Values, "<<nbmod<<" Modified"<<Message_EndLine;
 }
 
 
index aa591ac..2ad5da4 100644 (file)
@@ -106,11 +106,11 @@ Standard_Integer  IFSelect_Editor::MaxList (const Standard_Integer num) const
     void  IFSelect_Editor::PrintNames (const Handle(Message_Messenger)& S) const
 {
   Standard_Integer i, nb = NbValues();
-  S<<"****    Editor : "<<Label()<<endl;
-  S<<"****    Nb Values = "<<nb<<"    ****    Names / Labels"<<endl;
+  S<<"****    Editor : "<<Label()<<Message_EndLine;
+  S<<"****    Nb Values = "<<nb<<"    ****    Names / Labels"<<Message_EndLine;
   S<<" Num ";
   if (themaxsh > 0) S<<"Short"<<Interface_MSG::Blanks("Short",themaxsh)<<" ";
-  S<<"Complete"<<Interface_MSG::Blanks("Complete",themaxco)<<"  Label"<<endl;
+  S<<"Complete"<<Interface_MSG::Blanks("Complete",themaxco)<<"  Label"<<Message_EndLine;
 
   for (i = 1; i <= nb; i ++) {
     Handle(Interface_TypedValue) tv = TypedValue(i);
@@ -120,7 +120,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()<<endl;
+    S<<tv->Name()<<Interface_MSG::Blanks(tv->Name(),themaxco)<<"  "<<tv->Label()<<Message_EndLine;
   }
 }
 
@@ -128,15 +128,15 @@ Standard_Integer  IFSelect_Editor::MaxList (const Standard_Integer num) const
   (const Handle(Message_Messenger)& S, const Standard_Boolean labels) const
 {
   Standard_Integer i, nb = NbValues();
-  S<<"****    Editor : "<<Label()<<endl;
-  S<<"****    Nb Values = "<<nb<<"    ****    "<<(labels ? "Labels" : "Names")<<"  /  Definitions"<<endl;
+  S<<"****    Editor : "<<Label()<<Message_EndLine;
+  S<<"****    Nb Values = "<<nb<<"    ****    "<<(labels ? "Labels" : "Names")<<"  /  Definitions"<<Message_EndLine;
   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"<<endl;
+  S<<"  Edit Mode  &  Definition"<<Message_EndLine;
 
   for (i = 1; i <= nb; i ++) {
     Handle(Interface_TypedValue) tv = TypedValue(i);
@@ -167,7 +167,7 @@ Standard_Integer  IFSelect_Editor::MaxList (const Standard_Integer num) const
       default :                     S<<"?????????";  break;
     }
 
-    S<<" "<<tv->Definition()<<endl;
+    S<<" "<<tv->Definition()<<Message_EndLine;
   }
 }
 
index 01a2a4b..00329d9 100644 (file)
@@ -112,10 +112,10 @@ static IFSelect_ReturnStatus funstatus
 //        ****    Version & cie     ****
   //#58 rln
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  sout<<"Processor Version : "<<XSTEP_PROCESSOR_VERSION<<endl;
-  sout<<"OL Version        : "<<XSTEP_SYSTEM_VERSION<<endl;
-  sout<<"Configuration     : "<<XSTEP_Config<<endl;
-  sout<<"UL Names          : "<<XSTEP_ULNames<<endl;
+  sout<<"Processor Version : "<<XSTEP_PROCESSOR_VERSION<<Message_EndLine;
+  sout<<"OL Version        : "<<XSTEP_SYSTEM_VERSION<<Message_EndLine;
+  sout<<"Configuration     : "<<XSTEP_Config<<Message_EndLine;
+  sout<<"UL Names          : "<<XSTEP_ULNames<<Message_EndLine;
   return IFSelect_RetVoid;
 }
 
@@ -126,8 +126,8 @@ static IFSelect_ReturnStatus fun1
 //        ****    ToggleHandler     ****
   Standard_Boolean hand = !WS->ErrorHandle();
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (hand) sout << " --  Mode Catch Error now Active"   <<endl;
-  else      sout << " --  Mode Catch Error now Inactive" <<endl;
+  if (hand) sout << " --  Mode Catch Error now Active"   <<Message_EndLine;
+  else      sout << " --  Mode Catch Error now Inactive" <<Message_EndLine;
   WS->SetErrorHandle(hand);
   return IFSelect_RetDone;
 }
@@ -140,23 +140,23 @@ static IFSelect_ReturnStatus fun3
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    XRead / Load         ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Read/Load : give file name !"<<endl; return IFSelect_RetError; }
-  if (WS->Protocol().IsNull()) { sout<<"Protocol not defined"<<endl; return IFSelect_RetError; }
-  if (WS->WorkLibrary().IsNull()) { sout<<"WorkLibrary not defined"<<endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Read/Load : give file name !"<<Message_EndLine; return IFSelect_RetError; }
+  if (WS->Protocol().IsNull()) { sout<<"Protocol not defined"<<Message_EndLine; return IFSelect_RetError; }
+  if (WS->WorkLibrary().IsNull()) { sout<<"WorkLibrary not defined"<<Message_EndLine; return IFSelect_RetError; }
 
   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"<<endl; break;
-    case IFSelect_RetError : sout<<"file:"<<arg1<<" could not be opened"<<endl; break;
-    case IFSelect_RetDone  : sout<<"file:"<<arg1<<" read"<<endl; break;
-    case IFSelect_RetFail  : sout<<"file:"<<arg1<<" : error while reading"<<endl; break;
-    case IFSelect_RetStop  : sout<<"file:"<<arg1<<" : EXCEPTION while reading"<<endl; break;
-    default : sout<<"file:"<<arg1<<" could not be read"<<endl; break;
+    case IFSelect_RetVoid  : sout<<"file:"<<arg1<<" gives empty result"<<Message_EndLine; break;
+    case IFSelect_RetError : sout<<"file:"<<arg1<<" could not be opened"<<Message_EndLine; break;
+    case IFSelect_RetDone  : sout<<"file:"<<arg1<<" read"<<Message_EndLine; break;
+    case IFSelect_RetFail  : sout<<"file:"<<arg1<<" : error while reading"<<Message_EndLine; break;
+    case IFSelect_RetStop  : sout<<"file:"<<arg1<<" : EXCEPTION while reading"<<Message_EndLine; break;
+    default : sout<<"file:"<<arg1<<" could not be read"<<Message_EndLine; break;
   }
   if (status != IFSelect_RetDone) return status;
-//      sout<<" - clearing list of already written files"<<endl;
+//      sout<<" - clearing list of already written files"<<std::endl;
   WS->BeginSentFiles(Standard_True);
   return status;
 }
@@ -169,7 +169,7 @@ static IFSelect_ReturnStatus fun4
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Write All         ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Write All : give file name !"<<endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Write All : give file name !"<<Message_EndLine; return IFSelect_RetError; }
   return WS->SendAll (arg1);
 }
 
@@ -182,11 +182,11 @@ static IFSelect_ReturnStatus fun5
 //  const Standard_CString arg2 = pilot->Arg(2);
 //        ****    Write Selected         ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Write Selected : give file name + givelist !"<<endl; return IFSelect_RetError; }
+  if (argc < 3) { sout<<"Write Selected : give file name + givelist !"<<Message_EndLine; return IFSelect_RetError; }
   Handle(TColStd_HSequenceOfTransient) result =
     IFSelect_Functions::GiveList (WS,pilot->CommandPart( 2));
-  if (result.IsNull()) { sout<<"No entity selected"<<endl; return IFSelect_RetError; }
-  else sout<<"Nb Entities selected : "<<result->Length()<<endl;
+  if (result.IsNull()) { sout<<"No entity selected"<<Message_EndLine; return IFSelect_RetError; }
+  else sout<<"Nb Entities selected : "<<result->Length()<<Message_EndLine;
   Handle(IFSelect_SelectPointed) sp = new IFSelect_SelectPointed;
   sp->SetList (result);
   return WS->SendSelected (arg1,sp);
@@ -200,19 +200,19 @@ static IFSelect_ReturnStatus fun6
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Write Entite(s)         ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Write Entitie(s) : give file name + n0s entitie(s)!"<<endl; return IFSelect_RetError; }
+  if (argc < 3) { sout<<"Write Entitie(s) : give file name + n0s entitie(s)!"<<Message_EndLine; 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<<endl;
-      else { sout<<" Fail Add n0."<<id<<endl; ko ++; }
+      if (sp->Add(item)) sout<<"Added:no."<<id<<Message_EndLine;
+      else { sout<<" Fail Add n0."<<id<<Message_EndLine; ko ++; }
     }
-    else { sout<<"Not an entity number:"<<pilot->Arg(ia)<<endl; ko ++; }
+    else { sout<<"Not an entity number:"<<pilot->Arg(ia)<<Message_EndLine; ko ++; }
   }
-  if (ko > 0) { sout<<ko<<" bad arguments, abandon"<<endl; return IFSelect_RetError; }
+  if (ko > 0) { sout<<ko<<" bad arguments, abandon"<<Message_EndLine; return IFSelect_RetError; }
   return WS->SendSelected (arg1,sp);
 }
 
@@ -224,14 +224,14 @@ static IFSelect_ReturnStatus fun7
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Entity Label       ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give entity number"<<endl; return IFSelect_RetError; }
-  if (!WS->HasModel()) { sout<<"No loaded model, abandon"<<endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Give entity number"<<Message_EndLine; return IFSelect_RetError; }
+  if (!WS->HasModel()) { sout<<"No loaded model, abandon"<<Message_EndLine; return IFSelect_RetError; }
   Standard_Integer nument = WS->NumberFromLabel (arg1);
   if (nument <= 0 || nument > WS->NbStartingEntities())
-    { sout<<"Not a suitable number: "<<arg1<<endl;  return IFSelect_RetError; }
+    { sout<<"Not a suitable number: "<<arg1<<Message_EndLine;  return IFSelect_RetError; }
   sout<<"N0."<<nument<<" ->Label in Model : ";
   WS->Model()->PrintLabel(WS->StartingEntity(nument),sout);  
-  sout<<endl;
+  sout<<Message_EndLine;
   return IFSelect_RetVoid;
 }
 
@@ -243,21 +243,21 @@ static IFSelect_ReturnStatus fun8
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Entity Number      ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give label to search"<<endl; return IFSelect_RetError; }
-  if (!WS->HasModel()) { sout<<"No loaded model, abandon"<<endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Give label to search"<<Message_EndLine; return IFSelect_RetError; }
+  if (!WS->HasModel()) { sout<<"No loaded model, abandon"<<Message_EndLine; return IFSelect_RetError; }
   const Handle(Interface_InterfaceModel) &model = WS->Model();
   Standard_Integer i, cnt = 0;
   Standard_Boolean exact = Standard_False;
-  sout<<" **  Search Entity Number for Label : "<<arg1<<endl;
+  sout<<" **  Search Entity Number for Label : "<<arg1<<Message_EndLine;
   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<<endl;
+    sout<<" **  Found n0/id:"; model->Print (model->Value(i),sout); sout<<Message_EndLine;
   }
   
-  if (cnt == 0) sout<<" **  No Match"<<endl;
-  else if (cnt == 1) sout<<" **  1 Match"<<endl;
-  else sout<<cnt<<" Matches"<<endl;
+  if (cnt == 0) sout<<" **  No Match"<<Message_EndLine;
+  else if (cnt == 1) sout<<" **  1 Match"<<Message_EndLine;
+  else sout<<cnt<<" Matches"<<Message_EndLine;
   return IFSelect_RetVoid;
 }
 
@@ -285,10 +285,10 @@ static IFSelect_ReturnStatus funcount
 
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (argc < 2) {
-    sout<<"Designer signature ou compteur, + facultatif selection + facultatif entite"<<endl;
-    sout<<" signature/compteur seul -> tout le modele"<<endl
-      <<  " sign/compteur + selection -> cette selection, evaluation normale"<<endl
-       <<" sign/compteur + sel + num -> cette selection evaluee sur entite n0 num"<<endl;
+    sout<<"Designer signature ou compteur, + facultatif selection + facultatif entite"<<Message_EndLine;
+    sout<<" signature/compteur seul -> tout le modele"<<Message_EndLine
+      <<  " sign/compteur + selection -> cette selection, evaluation normale"<<Message_EndLine
+       <<" sign/compteur + sel + num -> cette selection evaluee sur entite n0 num"<<Message_EndLine;
     return IFSelect_RetError;
   }
   DeclareAndCast(IFSelect_SignCounter,counter,WS->NamedItem(arg1));
@@ -301,7 +301,7 @@ static IFSelect_ReturnStatus funcount
 //  if (argc > 2) sel = GetCasted(IFSelect_Selection,WS->NamedItem(arg2));
 //  if (counter.IsNull() || (argc > 2 && n3 <= 0 && sel.IsNull()) ) {
 //    sout<<"Nom:"<<arg1; if (argc > 2) sout<<" et/ou "<<arg2;
-//    sout<<" incorrect (demande: compteur ou signature [selection])"<<endl;
+//    sout<<" incorrect (demande: compteur ou signature [selection])"<<std::endl;
 //    return IFSelect_RetError;
 //  }
 
@@ -322,7 +322,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"<<endl;
+         sout<<"Incorrect definition for applied selection"<<Message_EndLine;
          return IFSelect_RetError;
        }
       }
@@ -335,7 +335,7 @@ static IFSelect_ReturnStatus funcount
   }
 
   if (counter.IsNull()) {
-    sout<<"Neither Counter nor Signature : "<<arg1<<endl;
+    sout<<"Neither Counter nor Signature : "<<arg1<<Message_EndLine;
     return IFSelect_RetError;
   }
 
@@ -355,26 +355,26 @@ static IFSelect_ReturnStatus funsigntype
 //        ****    Sign Type              ****
   Handle(IFSelect_Signature) signtype = WS->SignType();
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (signtype.IsNull()) sout<<"signtype actually undefined"<<endl;
+  if (signtype.IsNull()) sout<<"signtype actually undefined"<<Message_EndLine;
   else {
     Handle(TCollection_HAsciiString) str = WS->Name (signtype);
     Standard_Integer id = WS->ItemIdent (signtype);
-    sout<<signtype->Label()<<endl;
+    sout<<signtype->Label()<<Message_EndLine;
     if (str.IsNull()) {
-      if (id > 0) sout<<"signtype : item n0 "<<id<<endl;
+      if (id > 0) sout<<"signtype : item n0 "<<id<<Message_EndLine;
     } else {
-      sout<<"signtype : also named as "<<str->ToCString()<<endl;
+      sout<<"signtype : also named as "<<str->ToCString()<<Message_EndLine;
     }
   }
-  if (argc < 2) sout<<"signtype newitem  to change, signtype . to clear"<<endl;
+  if (argc < 2) sout<<"signtype newitem  to change, signtype . to clear"<<Message_EndLine;
   else {
     if (arg1[0] == '.' && arg1[1] == '\0') {
       signtype.Nullify();
-      sout<<"signtype now cleared"<<endl;
+      sout<<"signtype now cleared"<<Message_EndLine;
     } else {
       signtype = GetCasted(IFSelect_Signature,WS->NamedItem(arg1));
-      if (signtype.IsNull()) { sout<<"Not a Signature : "<<arg1<<endl; return IFSelect_RetError; }
-      else sout<<"signtype now set to "<<arg1<<endl;
+      if (signtype.IsNull()) { sout<<"Not a Signature : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
+      else sout<<"signtype now set to "<<arg1<<Message_EndLine;
     }
     WS->SetSignType(signtype);
     return IFSelect_RetDone;
@@ -390,22 +390,22 @@ static IFSelect_ReturnStatus funsigncase
 //        ****    Sign Case              ****
   Handle(IFSelect_Signature) signcase = GetCasted(IFSelect_Signature,WS->NamedItem(arg1));
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (signcase.IsNull()) sout<<"Not a Signature : "<<arg1<<endl;
+  if (signcase.IsNull()) sout<<"Not a Signature : "<<arg1<<Message_EndLine;
   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<<endl;
+      sout<<Message_EndLine;
     }
     Handle(TColStd_HSequenceOfAsciiString) caselist = signcase->CaseList();
-    if (caselist.IsNull()) sout<<"Signature "<<arg1<<" : no predefined case, see command  count "<<arg1<<endl;
+    if (caselist.IsNull()) sout<<"Signature "<<arg1<<" : no predefined case, see command  count "<<arg1<<Message_EndLine;
     else {
       Standard_Integer i, nb = caselist->Length();
-      sout<<"Signature "<<arg1<<" : "<<nb<<" basic cases :"<<endl;
+      sout<<"Signature "<<arg1<<" : "<<nb<<" basic cases :"<<Message_EndLine;
       for (i = 1; i <= nb; i ++) sout<<"  "<<caselist->Value(i);
-      sout<<endl;
+      sout<<Message_EndLine;
     }
   }
   return IFSelect_RetVoid;
@@ -426,12 +426,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"<<endl;
+    sout<<" On a given entity : give its number"<<Message_EndLine;
     return IFSelect_RetVoid;
   }
   Standard_Integer num = pilot->Number(arg1);
   if (num <= 0 || num > WS->NbStartingEntities())
-    { sout<<"Not a suitable entity number : "<<arg1<<endl; return IFSelect_RetError; }
+    { sout<<"Not a suitable entity number : "<<arg1<<Message_EndLine; return IFSelect_RetError; }
   Handle(Standard_Transient) ent = WS->StartingEntity(num);
   WS->PrintEntityStatus(ent,sout);
   return IFSelect_RetVoid;
@@ -459,7 +459,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)"<<endl;
+       <<" TOTALCHECK CheckList (complete) per message (listing complete)"<<Message_EndLine;
      return IFSelect_RetVoid;
     case 'g' : niv = 0; break;
     case 'r' : niv = 1; break;
@@ -471,7 +471,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"<<endl; return IFSelect_RetError;
+    default  : sout<<"Unknown Mode .  data tout court pour help"<<Message_EndLine; return IFSelect_RetError;
   }
   WS->TraceDumpModel(niv);
   return IFSelect_RetVoid;
@@ -488,11 +488,11 @@ static IFSelect_ReturnStatus fundumpent
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (argc < 2 || (argc == 2 && levmax < 0)) {
     sout<<"Give n0 or id of entity";
-    if (levmax < 0) sout<<"  and dump level"<<endl;
-    else sout<<"  + optinal, dump level in [0 - "<<levmax<<"] , default = "<<levdef<<endl;
+    if (levmax < 0) sout<<"  and dump level"<<Message_EndLine;
+    else sout<<"  + optinal, dump level in [0 - "<<levmax<<"] , default = "<<levdef<<Message_EndLine;
     for (level = 0; level <= levmax; level ++) {
       Standard_CString help = WL->DumpHelp (level);
-      if (help[0] != '\0') sout<<level<<" : "<<help<<endl;
+      if (help[0] != '\0') sout<<level<<" : "<<help<<Message_EndLine;
     }
     return IFSelect_RetError;
   }
@@ -505,16 +505,16 @@ 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" << endl;
+    sout << "No entity with given id " << arg1 << " (" << num << ") is found in the current model" << Message_EndLine;
   }
   else {
-    sout << "  --   DUMP  Entity n0 " << num << "  level " << level << endl;
+    sout << "  --   DUMP  Entity n0 " << num << "  level " << level << Message_EndLine;
     WL->DumpEntity (WS->Model(),WS->Protocol(),ent,sout,level);
 
     Interface_CheckIterator chl = WS->CheckOne (ent);
     if (!chl.IsEmpty(Standard_False)) chl.Print(sout,WS->Model(),Standard_False);
   }
-//  sout << flush;
+//  sout << std::flush;
 
   return IFSelect_RetVoid;
 }
@@ -527,13 +527,13 @@ static IFSelect_ReturnStatus funsign
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<" Give signature name + n0 or id of entity"<<endl; return IFSelect_RetError; }
+  if (argc < 3) { sout<<" Give signature name + n0 or id of entity"<<Message_EndLine; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Signature,sign,WS->NamedItem(arg1));
-  if (sign.IsNull()) { sout<<"Not a signature : "<<arg1<<endl; return IFSelect_RetError; }
+  if (sign.IsNull()) { sout<<"Not a signature : "<<arg1<<Message_EndLine; 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)<<endl;
+  sout<<"Entity n0 "<<num<<" : "<<WS->SignValue(sign,ent)<<Message_EndLine;
   return IFSelect_RetVoid;
 }
 
@@ -545,15 +545,15 @@ static IFSelect_ReturnStatus funqp
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<" Give 2 numeros or labels : dad son"<<endl; return IFSelect_RetError; }
+  if (argc < 3) { sout<<" Give 2 numeros or labels : dad son"<<Message_EndLine; 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<<endl;
+  sout<<"QueryParent for dad:"<<arg1<<":"<<n1<<" and son:"<<arg2<<":"<<n2<<Message_EndLine;
   Standard_Integer qp = WS->QueryParent(WS->StartingEntity(n1),WS->StartingEntity(n2));
-  if (qp < 0) sout<<arg1<<" is not super-entity of "<<arg2<<endl;
-  else if (qp == 0) sout<<arg1<<" is same as "<<arg2<<endl;
-  else sout<<arg1<<" is super-entity of "<<arg2<<" , max level found="<<qp<<endl;
-//  sout<<" Trouve "<<qp<<endl;
+  if (qp < 0) sout<<arg1<<" is not super-entity of "<<arg2<<Message_EndLine;
+  else if (qp == 0) sout<<arg1<<" is same as "<<arg2<<Message_EndLine;
+  else sout<<arg1<<" is super-entity of "<<arg2<<" , max level found="<<qp<<Message_EndLine;
+//  sout<<" Trouve "<<qp<<std::endl;
   return IFSelect_RetVoid;
 }
   
@@ -582,7 +582,7 @@ static IFSelect_ReturnStatus fun14
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    NewInt            ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 1) { sout<<"Donner la valeur entiere pour IntParam"<<endl; return IFSelect_RetError; }
+  if (argc < 1) { sout<<"Donner la valeur entiere pour IntParam"<<Message_EndLine; return IFSelect_RetError; }
   Handle(IFSelect_IntParam) intpar = new IFSelect_IntParam;
   if (argc >= 1)       intpar->SetValue(atoi(arg1));
   return pilot->RecordItem (intpar);
@@ -598,7 +598,7 @@ static IFSelect_ReturnStatus fun15
 //        ****    SetInt            ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (argc < 3)
-    { sout<<"Donner 2 arguments : nom Parametre et Valeur"<<endl; return IFSelect_RetError; }
+    { sout<<"Donner 2 arguments : nom Parametre et Valeur"<<Message_EndLine; return IFSelect_RetError; }
   Standard_Integer val = atoi(arg2);
   DeclareAndCast(IFSelect_IntParam,par,WS->NamedItem(arg1));
   if (!WS->SetIntValue(par,val)) return IFSelect_RetFail;
@@ -613,7 +613,7 @@ static IFSelect_ReturnStatus fun16
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    NewText           ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 1) { sout<<"Donner la valeur texte pour TextParam"<<endl; return IFSelect_RetError; }
+  if (argc < 1) { sout<<"Donner la valeur texte pour TextParam"<<Message_EndLine; return IFSelect_RetError; }
   Handle(TCollection_HAsciiString) textpar = new TCollection_HAsciiString();
   if (argc >= 1) textpar->AssignCat(arg1);
   return pilot->RecordItem (textpar);
@@ -629,7 +629,7 @@ static IFSelect_ReturnStatus fun17
 //        ****    SetText           ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (argc < 3)
-    { sout<<"Donner 2 arguments : nom Parametre et Valeur"<<endl; return IFSelect_RetError; }
+    { sout<<"Donner 2 arguments : nom Parametre et Valeur"<<Message_EndLine; return IFSelect_RetError; }
   DeclareAndCast(TCollection_HAsciiString,par,WS->NamedItem(arg1));
   if (!WS->SetTextValue(par,arg2)) return IFSelect_RetFail;
   return IFSelect_RetDone;
@@ -643,7 +643,7 @@ static IFSelect_ReturnStatus fun19
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    DumpSel           ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give 1 argument : Selection Name"<<endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Give 1 argument : Selection Name"<<Message_EndLine; return IFSelect_RetError; }
   WS->DumpSelection (GetCasted(IFSelect_Selection,WS->NamedItem(arg1)));
   return IFSelect_RetVoid;
 }
@@ -660,7 +660,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
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<Message_EndLine; return IFSelect_RetError; }
 
 //    MakeList : sur Pointed existante ou a creer
   Handle(IFSelect_SelectPointed) pnt;
@@ -669,10 +669,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"<<endl;
+      sout<<arg1<<":Already existing Selection for List, cleared then filled"<<Message_EndLine;
       pnt->Clear();
     } else if (!item.IsNull()) {
-      sout<<arg1<<":Already existing Item not for a List, command ignored"<<endl;
+      sout<<arg1<<":Already existing Item not for a List, command ignored"<<Message_EndLine;
       return IFSelect_RetFail;
     } else {
       pnt = new IFSelect_SelectPointed;
@@ -691,13 +691,13 @@ static IFSelect_ReturnStatus fun20
     sout<<iter.NbEntities()<<" Entities : ";
     for (iter.Start(); iter.More(); iter.Next())
       sout<<" +"<<WS->StartingNumber (iter.Value());
-    sout<<endl;
+    sout<<Message_EndLine;
   }
 
   if (!pnt.IsNull()) {
     pnt->SetList (result);
-    sout<<"List set to a SelectPointed : "<<pilot->Arg(1)<<endl;
-    sout<<"Later editable by command setlist"<<endl;
+    sout<<"List set to a SelectPointed : "<<pilot->Arg(1)<<Message_EndLine;
+    sout<<"Later editable by command setlist"<<Message_EndLine;
   }
 
   return IFSelect_RetVoid;
@@ -710,12 +710,12 @@ static IFSelect_ReturnStatus fun20c
   Standard_Integer argc = pilot->NbWords();
 //        ****    GiveCount         ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<Message_EndLine; 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"<<endl;
+  sout<<pilot->CommandPart(1)<<" : List of "<<result->Length()<<" Entities"<<Message_EndLine;
   return IFSelect_RetVoid;
 }
 
@@ -726,14 +726,14 @@ static IFSelect_ReturnStatus funselsuite
   Standard_Integer argc = pilot->NbWords();
 //        ****    SelSuite         ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Give Entity ID, or Selection Name [+ optional other selection or entity]"<<Message_EndLine; 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"<<endl;
+      sout<<pilot->Arg(i-1)<<" : not a SelectDeduct, no more can be added. Abandon"<<Message_EndLine;
       return IFSelect_RetError;
     }
   }
@@ -771,7 +771,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"<<endl;
+      <<" a : all data    g : graph+check  c : check  p : selectpointed"<<Message_EndLine;
     return (mode < 0 ? IFSelect_RetError : IFSelect_RetVoid);
   }
   WS->ClearData (mode);
@@ -786,7 +786,7 @@ static IFSelect_ReturnStatus fun24
 //        ****    Item Label         ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   TCollection_AsciiString label;
-  if (argc < 2) { sout<<" Give  label to search"<<endl;  return IFSelect_RetError;  }
+  if (argc < 2) { sout<<" Give  label to search"<<Message_EndLine;  return IFSelect_RetError;  }
   for (int i = 1; i < argc; i ++) {
     label.AssignCat(pilot->Arg(i));
     if (i < argc-1) label.AssignCat(" ");
@@ -794,14 +794,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" << endl;
-    if (mode == 1) sout <<" same head" << endl;
-    if (mode == 2) sout <<" search if present" << endl;
+    if (mode == 0) sout <<" exact" << Message_EndLine;
+    if (mode == 1) sout <<" same head" << Message_EndLine;
+    if (mode == 2) sout <<" search if present" << Message_EndLine;
     for (id = WS->NextIdentForLabel(label.ToCString(), 0,mode)  ; id != 0;
         id = WS->NextIdentForLabel(label.ToCString(),id,mode)) {
       sout<<" "<<id;  nbitems ++;
     }
-    sout<<" -- giving " << nbitems << " found" << endl;
+    sout<<" -- giving " << nbitems << " found" << Message_EndLine;
   }
   return IFSelect_RetVoid;
 }
@@ -814,7 +814,7 @@ static IFSelect_ReturnStatus fun25
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Save (Dump)       ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner nom du Fichier"<<endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner nom du Fichier"<<Message_EndLine; return IFSelect_RetError; }
   IFSelect_SessionFile dumper(WS,arg1);
   if (!dumper.IsDone()) return IFSelect_RetFail;
   return IFSelect_RetDone;
@@ -828,12 +828,12 @@ static IFSelect_ReturnStatus fun26
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Restore (Dump)    ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner nom du Fichier"<<endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner nom du Fichier"<<Message_EndLine; 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<<endl;
-  else                    sout << "-- Pas pu ouvrir Fichier "<<arg1<<endl;
+  else if (readstat >  0) sout << "-- Erreur Lecture Fichier "<<arg1<<Message_EndLine;
+  else                    sout << "-- Pas pu ouvrir Fichier "<<arg1<<Message_EndLine;
   return IFSelect_RetDone;
 }
 
@@ -849,29 +849,29 @@ static IFSelect_ReturnStatus fun27
   if (argc < 2) {
     Handle(TColStd_HSequenceOfHAsciiString) li = Interface_Static::Items();
     Standard_Integer i,nb = li->Length();
-    sout<<" List of parameters : "<<nb<<" items : "<<endl;
+    sout<<" List of parameters : "<<nb<<" items : "<<Message_EndLine;
     for (i = 1; i <= nb; i ++) {
       sout<<li->Value(i);
-      sout<<" : "<<Interface_Static::CVal(li->Value(i)->ToCString())<<endl;
+      sout<<" : "<<Interface_Static::CVal(li->Value(i)->ToCString())<<Message_EndLine;
     }
     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<<endl;
-    else          sout<<"     ACTUAL STATUS of Static Parameter "<<arg1<<endl;
-    if (!Interface_Static::IsPresent(arg1)) { sout<<" Parameter "<<arg1<<" undefined"<<endl; return IFSelect_RetError; }
-    if (!Interface_Static::IsSet(arg1)) sout<<" Parameter "<<arg1<<" not valued"<<endl;
+    if (argc > 2) sout<<"     FORMER STATUS of Static Parameter "<<arg1<<Message_EndLine;
+    else          sout<<"     ACTUAL STATUS of Static Parameter "<<arg1<<Message_EndLine;
+    if (!Interface_Static::IsPresent(arg1)) { sout<<" Parameter "<<arg1<<" undefined"<<Message_EndLine; return IFSelect_RetError; }
+    if (!Interface_Static::IsSet(arg1)) sout<<" Parameter "<<arg1<<" not valued"<<Message_EndLine;
     else if (argc == 2) Interface_Static::Static (arg1) -> Print(sout);
-    else sout<<" Value : "<<Interface_Static::CVal(arg1)<<endl;
+    else sout<<" Value : "<<Interface_Static::CVal(arg1)<<Message_EndLine;
 
-    if (argc == 2) sout<<"To modify, param name_param new_val"<<endl;
+    if (argc == 2) sout<<"To modify, param name_param new_val"<<Message_EndLine;
     else {
       sout<<" New demanded value : "<<arg2;
       if (Interface_Static::SetCVal (arg1,arg2))
-       {  sout<<"   OK"<<endl;  return IFSelect_RetDone;  }
-      else  {  sout <<" , refused"<<endl;  return IFSelect_RetError;  }
+       {  sout<<"   OK"<<Message_EndLine;  return IFSelect_RetDone;  }
+      else  {  sout <<" , refused"<<Message_EndLine;  return IFSelect_RetError;  }
     }
   }
   return IFSelect_RetVoid;
@@ -889,21 +889,21 @@ static IFSelect_ReturnStatus fun28
   if (argc < 2) {
     Handle(TColStd_HSequenceOfHAsciiString) li = Interface_Static::Items();
     Standard_Integer i,nb = li->Length();
-    sout<<" List of parameters : "<<nb<<" items :"<<endl;
+    sout<<" List of parameters : "<<nb<<" items :"<<Message_EndLine;
     for (i = 1; i <= nb; i ++) sout<<"  "<<li->Value(i)->ToCString();
-    sout<<endl<<"  defparam name_param  to known more about one"<<endl;
-    sout<<"  defparam nom_param e options  to edit a definition"<<endl;
+    sout<<Message_EndLine<<"  defparam name_param  to known more about one"<<Message_EndLine;
+    sout<<"  defparam nom_param e options  to edit a definition"<<Message_EndLine;
 
   } else if (argc == 2) {
-    sout<<" Definition of Parameter : "<<arg1<<endl;
+    sout<<" Definition of Parameter : "<<arg1<<Message_EndLine;
     Handle(Interface_Static) unst = Interface_Static::Static (arg1);
-    if (unst.IsNull()) sout<<"  undefined"<<endl;
+    if (unst.IsNull()) sout<<"  undefined"<<Message_EndLine;
     else unst->Print(sout);
     return IFSelect_RetVoid;
 
   } else if (arg2[0] == 'i') {
 //  initialisation : arg1=nompar  a2='i'  a3=family  a4=type  [a5=val]
-    if (argc < 5) { sout<<" name init family type [valinit]"<<endl; return IFSelect_RetVoid; }
+    if (argc < 5) { sout<<" name init family type [valinit]"<<Message_EndLine; return IFSelect_RetVoid; }
     char typ = (pilot->Arg(4))[0];
     Standard_Boolean ok= (argc==5 ? Interface_Static::Init(arg3,arg1,typ) :
                          Interface_Static::Init(arg3,arg1,typ,pilot->Arg(5)));
@@ -916,20 +916,20 @@ static IFSelect_ReturnStatus fun28
       sout<<" give name and options !  Options (according type), 1 a time\n"
          <<" imin ival / imax ival / rmin rval / rmax rval /\n"
          <<" enum stnum / enum stnum match / eval e1 e2 e3 ... (maxi 10)\n"
-         <<endl;
+         <<Message_EndLine;
       return IFSelect_RetVoid;
     }
-    if (argc > 4) sout<<"Only the command and ONE more arg are considered"<<endl;
+    if (argc > 4) sout<<"Only the command and ONE more arg are considered"<<Message_EndLine;
     sprintf(comm,"%s %s",pilot->Arg(3),pilot->Arg(4));
-    sout<<"Editing parameter : "<<arg1<<" , by command : "<<comm<<endl;
+    sout<<"Editing parameter : "<<arg1<<" , by command : "<<comm<<Message_EndLine;
 
     Handle(Interface_Static) unst = Interface_Static::Static (arg1);
-    if (unst.IsNull()) { sout<<arg1<<"  undefined"<<endl; return IFSelect_RetError; }
+    if (unst.IsNull()) { sout<<arg1<<"  undefined"<<Message_EndLine; return IFSelect_RetError; }
     if (Interface_Static::Init(unst->Family(),arg1,'&',comm))
-      {  sout<<"Editing done"<<endl;  return IFSelect_RetDone;  }
-    else  {  sout<<"Command not processed : "<<comm<<endl; return IFSelect_RetFail;  }
+      {  sout<<"Editing done"<<Message_EndLine;  return IFSelect_RetDone;  }
+    else  {  sout<<"Command not processed : "<<comm<<Message_EndLine; return IFSelect_RetFail;  }
   }
-  sout<<"Unknown Option : "<<arg2<<endl;
+  sout<<"Unknown Option : "<<arg2<<Message_EndLine;
   return IFSelect_RetVoid;
 }
 
@@ -941,11 +941,11 @@ static IFSelect_ReturnStatus fun29
   Handle(TColStd_HSequenceOfHAsciiString) list = WS->SentFiles();
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (list.IsNull())
-    { sout<<"List of Sent Files not enabled"<<endl; return IFSelect_RetVoid; }
+    { sout<<"List of Sent Files not enabled"<<Message_EndLine; return IFSelect_RetVoid; }
   Standard_Integer i, nb = list->Length();
-  sout<<"  Sent Files : "<<nb<<" : "<<endl;
+  sout<<"  Sent Files : "<<nb<<" : "<<Message_EndLine;
   for (i = 1; i <= nb; i ++)
-    sout<<list->Value(i)->ToCString()<<endl
+    sout<<list->Value(i)->ToCString()<<Message_EndLine
   return IFSelect_RetVoid;
 }
 
@@ -958,9 +958,9 @@ static IFSelect_ReturnStatus fun30
 //        ****    FilePrefix        ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (argc < 2) {
-    if (WS->FilePrefix().IsNull()) sout<<"Pas de prefixe defini"<<endl;
-    else sout<<"Prefixe : "<<WS->FilePrefix()->ToCString()<<endl;
-    sout<<"Pour changer :  filepref newprefix"<<endl;
+    if (WS->FilePrefix().IsNull()) sout<<"Pas de prefixe defini"<<Message_EndLine;
+    else sout<<"Prefixe : "<<WS->FilePrefix()->ToCString()<<Message_EndLine;
+    sout<<"Pour changer :  filepref newprefix"<<Message_EndLine;
     return IFSelect_RetVoid;
   }
   WS->SetFilePrefix(arg1);
@@ -976,9 +976,9 @@ static IFSelect_ReturnStatus fun31
 //        ****    FileExtension     ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (argc < 2) {
-    if (WS->FileExtension().IsNull()) sout<<"Pas d extension definie"<<endl;
-    else sout<<"Extension : "<<WS->FileExtension()->ToCString()<<endl;
-    sout<<"Pour changer :  fileext newext"<<endl;
+    if (WS->FileExtension().IsNull()) sout<<"Pas d extension definie"<<Message_EndLine;
+    else sout<<"Extension : "<<WS->FileExtension()->ToCString()<<Message_EndLine;
+    sout<<"Pour changer :  fileext newext"<<Message_EndLine;
     return IFSelect_RetVoid;
   }
   WS->SetFileExtension(arg1);
@@ -994,12 +994,12 @@ static IFSelect_ReturnStatus fun32
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    FileRoot          ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Dispatch et nom de Root"<<endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner Dispatch et nom de Root"<<Message_EndLine; 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<<endl;
-    else sout<<"Racine pour "<<arg1<<" : "<<WS->FileRoot(disp)->ToCString()<<endl;
-    sout<<"Pour changer :  fileroot nomdisp newroot"<<endl;
+    if (WS->FileRoot(disp).IsNull()) sout<<"Pas de racine definie pour "<<arg1<<Message_EndLine;
+    else sout<<"Racine pour "<<arg1<<" : "<<WS->FileRoot(disp)->ToCString()<<Message_EndLine;
+    sout<<"Pour changer :  fileroot nomdisp newroot"<<Message_EndLine;
     return IFSelect_RetVoid;
   }
   if (!WS->SetFileRoot(disp,arg2)) return IFSelect_RetFail;
@@ -1015,9 +1015,9 @@ static IFSelect_ReturnStatus fun33
 //        ****    Default File Root     ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (argc < 2) {
-    if (WS->DefaultFileRoot().IsNull()) sout<<"Pas de racine par defaut definie"<<endl;
-    else sout<<"Racine par defaut : "<<WS->DefaultFileRoot()->ToCString()<<endl;
-    sout<<"Pour changer :  filedef newdef"<<endl;
+    if (WS->DefaultFileRoot().IsNull()) sout<<"Pas de racine par defaut definie"<<Message_EndLine;
+    else sout<<"Racine par defaut : "<<WS->DefaultFileRoot()->ToCString()<<Message_EndLine;
+    sout<<"Pour changer :  filedef newdef"<<Message_EndLine;
     return IFSelect_RetVoid;
   }
   WS->SetDefaultFileRoot(arg1);
@@ -1031,18 +1031,18 @@ static IFSelect_ReturnStatus fun34
 //        ****    EvalFile          ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (!WS->HasModel()) 
-    {  sout<<"Pas de Modele charge, abandon"<<endl;  return IFSelect_RetFail; }
+    {  sout<<"Pas de Modele charge, abandon"<<Message_EndLine;  return IFSelect_RetFail; }
 
-  sout<<"Evaluation avec Memorisation des resultats"<<endl;
+  sout<<"Evaluation avec Memorisation des resultats"<<Message_EndLine;
   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 ..."<<endl; continue;  }
+      {  sout<<"Modele "<<i<<" Model non genere ..."<<Message_EndLine; continue;  }
     TCollection_AsciiString name = WS->FileName(i);
     sout<<"Fichier n0 "<<i<<" Nb Entites : "<<mod->NbEntities()<<"  Nom: ";
-    sout<<name<<endl;
+    sout<<name<<Message_EndLine;
   }
   return IFSelect_RetDone;
 }
@@ -1063,13 +1063,13 @@ static IFSelect_ReturnStatus fun36
 //        ****    Split              ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   IFSelect_ReturnStatus stat = IFSelect_RetVoid;
-  if (argc < 2) sout<<"Split : derniere liste de dispatches definie"<<endl;
+  if (argc < 2) sout<<"Split : derniere liste de dispatches definie"<<Message_EndLine;
   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"<<endl;
+       sout<<"Pas un dispatch:"<<pilot->Arg(i)<<", Splitt abandonne"<<Message_EndLine;
        stat = IFSelect_RetError;
       }
       else WS->SetActive(disp,Standard_True);
@@ -1097,7 +1097,7 @@ static IFSelect_ReturnStatus fun37
   else {
     Handle(Message_Messenger) sout = Message::DefaultMessenger();
     if (argc<2) sout<<"Donner un Mode - ";
-    sout<<"Modes possibles : l  list, c compute, u undo, f forget"<<endl;
+    sout<<"Modes possibles : l  list, c compute, u undo, f forget"<<Message_EndLine;
     if (mode == '?') return IFSelect_RetDone;   else return IFSelect_RetError;
   }
   if (!WS->SetRemaining(numod)) return IFSelect_RetVoid;
@@ -1113,17 +1113,17 @@ static IFSelect_ReturnStatus fun38
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SetModelContent    ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Donner nom selection et mode (k=keep,r=remove)"<<endl;  return IFSelect_RetError; }
+  if (argc < 3) { sout<<"Donner nom selection et mode (k=keep,r=remove)"<<Message_EndLine;  return IFSelect_RetError; }
   Standard_Boolean keepmode;
   DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
   if (sel.IsNull())
-    { sout<<"Pas de Selection de Nom : "<<arg1<<endl; return IFSelect_RetError; }
+    { sout<<"Pas de Selection de Nom : "<<arg1<<Message_EndLine; 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)"<<endl;  return IFSelect_RetError; }
+  else { sout<<"Donner nom selection et mode (k=keep,r=remove)"<<Message_EndLine;  return IFSelect_RetError; }
   
-  if (WS->SetModelContent(sel,keepmode)) sout<<" Done"<<endl;
-  else sout<<" Result empty, ignored"<<endl;
+  if (WS->SetModelContent(sel,keepmode)) sout<<" Done"<<Message_EndLine;
+  else sout<<" Result empty, ignored"<<Message_EndLine;
   return IFSelect_RetDone;
 }
 
@@ -1144,29 +1144,29 @@ static IFSelect_ReturnStatus fun41
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Modifier           ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom du Modifier"<<endl;  return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner Nom du Modifier"<<Message_EndLine;  return IFSelect_RetError; }
   DeclareAndCast(IFSelect_GeneralModifier,modif,WS->NamedItem(arg1));
   if (modif.IsNull())
-    { sout<<"Pas de Modifier de Nom : "<<arg1<<endl; return IFSelect_RetVoid; }
+    { sout<<"Pas de Modifier de Nom : "<<arg1<<Message_EndLine; return IFSelect_RetVoid; }
   Handle(IFSelect_IntParam) low,up;
 
   Handle(IFSelect_Dispatch) disp = modif->Dispatch();
-  sout<<"Modifier : "<<arg1<<" Label : "<<modif->Label()<<endl;
+  sout<<"Modifier : "<<arg1<<" Label : "<<modif->Label()<<Message_EndLine;
   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" << endl;
+  if (disp.IsNull()) sout<<"  Applique a tous les Dispatchs" << Message_EndLine;
   else {
     sout << "  Dispatch : "<<disp->Label();
     if (WS->HasName(disp)) sout << " - Nom:"<<WS->Name(disp)->ToCString();
-    sout<<endl;
+    sout<<Message_EndLine;
   }
 
   Handle(IFSelect_Selection) sel = modif->Selection();
   if (!sel.IsNull()) sout<<"  Selection : "<< sel->Label();
   if (WS->HasName(sel)) sout<<" - Nom:"<< WS->Name(sel)->ToCString();
-  sout<<endl;
+  sout<<Message_EndLine;
   return IFSelect_RetVoid;
 }
 
@@ -1180,15 +1180,15 @@ static IFSelect_ReturnStatus fun42
 //        ****    ModifSel           ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (argc < 2) { sout<<"Donner Nom Modifier; + Nom Selection optionnel\n"
-                     <<"Selection pour Mettre une Selection, sinon Annule"<<endl; return IFSelect_RetError; }
+                     <<"Selection pour Mettre une Selection, sinon Annule"<<Message_EndLine; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_GeneralModifier,modif,WS->NamedItem(arg1));
   if (modif.IsNull())
-    { sout<<"Pas un nom de Modifier : "<<arg1<<endl; return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Modifier : "<<arg1<<Message_EndLine; 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<<endl;  return IFSelect_RetError;  }
+      { sout<<"Pas un nom de Selection : "<<arg2<<Message_EndLine;  return IFSelect_RetError;  }
   }
   if (!WS->SetItemSelection(modif,sel)) return IFSelect_RetFail;
   return IFSelect_RetDone;
@@ -1205,16 +1205,16 @@ static IFSelect_ReturnStatus fun43
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   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"<<endl;
+                     <<" - Transformer : pas un Dispatch mais un Transformer"<<Message_EndLine;
                  return IFSelect_RetError;  }
   DeclareAndCast(IFSelect_GeneralModifier,modif,WS->NamedItem(arg1));
   if (modif.IsNull())
-    { sout<<"Pas un nom de Modifier : "<<arg1<<endl;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Modifier : "<<arg1<<Message_EndLine;  return IFSelect_RetError;  }
   Handle(Standard_Transient) item;
   if (arg2[0] != '\0') {
     item = WS->NamedItem(arg2);
     if (item.IsNull())
-      { sout<<"Pas un nom connu : "<<arg2<<endl;  return IFSelect_RetError;  }
+      { sout<<"Pas un nom connu : "<<arg2<<Message_EndLine;  return IFSelect_RetError;  }
   }
   else item = WS->ShareOut();
   if (!WS->SetAppliedModifier(modif,item)) return IFSelect_RetFail;
@@ -1229,10 +1229,10 @@ static IFSelect_ReturnStatus fun44
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    ResetApplied (modifier)    ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Designer un modifier"<<endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Designer un modifier"<<Message_EndLine; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_GeneralModifier,modif,WS->NamedItem(arg1));
   if (modif.IsNull())
-    { sout<<"Pas un nom de Modifier : "<<arg1<<endl;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Modifier : "<<arg1<<Message_EndLine;  return IFSelect_RetError;  }
   if (!WS->ResetAppliedModifier(modif)) return IFSelect_RetFail;
   return IFSelect_RetDone;
 }
@@ -1247,14 +1247,14 @@ static IFSelect_ReturnStatus fun45
   const Standard_CString arg3 = pilot->Arg(3);
 //        ****    ModifMove         ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 4) { sout<<"modifmove MF rang1 rang2, M pour Model F pour File"<<endl; return IFSelect_RetError; }
+  if (argc < 4) { sout<<"modifmove MF rang1 rang2, M pour Model F pour File"<<Message_EndLine; 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"<<endl; return IFSelect_RetError; }
+  else { sout<<"preciser M pour Model, F pour File"<<Message_EndLine; return IFSelect_RetError; }
   Standard_Integer before = atoi(arg2);
   Standard_Integer after  = atoi(arg3);
-  if (before == 0 || after == 0) { sout<<"Donner 2 Entiers Positifs"<<endl; return IFSelect_RetError; }
+  if (before == 0 || after == 0) { sout<<"Donner 2 Entiers Positifs"<<Message_EndLine; return IFSelect_RetError; }
   if (!WS->ChangeModifierRank(formodel,before,after)) return IFSelect_RetFail;
   return IFSelect_RetDone;
 }
@@ -1268,13 +1268,13 @@ static IFSelect_ReturnStatus fun51
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    DispSel           ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Donner Noms Dispatch et Selection Finale"<<endl; return IFSelect_RetError; }
+  if (argc < 3) { sout<<"Donner Noms Dispatch et Selection Finale"<<Message_EndLine; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(arg1));
   if (disp.IsNull())
-    { sout<<"Pas un nom de Dispatch : "<<arg1<<endl;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Dispatch : "<<arg1<<Message_EndLine;  return IFSelect_RetError;  }
   DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg2));
   if (sel.IsNull())
-    { sout<<"Pas un nom de Selection : "<<arg2<<endl;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Selection : "<<arg2<<Message_EndLine;  return IFSelect_RetError;  }
   if (!WS->SetItemSelection(disp,sel)) return IFSelect_RetFail;
   return IFSelect_RetDone;
 }
@@ -1305,10 +1305,10 @@ static IFSelect_ReturnStatus fun_dispcount
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    DispCount         ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom IntParam pour Count"<<endl;  return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner Nom IntParam pour Count"<<Message_EndLine;  return IFSelect_RetError; }
   DeclareAndCast(IFSelect_IntParam,par,WS->NamedItem(arg1));
   if (par.IsNull())
-    { sout<<"Pas un nom de IntParam : "<<arg1<<endl;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de IntParam : "<<arg1<<Message_EndLine;  return IFSelect_RetError;  }
   Handle(IFSelect_DispPerCount) disp = new IFSelect_DispPerCount;
   disp->SetCount (par);
   return pilot->RecordItem(disp);
@@ -1322,10 +1322,10 @@ static IFSelect_ReturnStatus fun_dispfiles
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    DispFiles         ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom IntParam pour NbFiles"<<endl;  return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner Nom IntParam pour NbFiles"<<Message_EndLine;  return IFSelect_RetError; }
   DeclareAndCast(IFSelect_IntParam,par,WS->NamedItem(arg1));
   if (par.IsNull())
-    { sout<<"Pas un nom de IntParam : "<<arg1<<endl;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de IntParam : "<<arg1<<Message_EndLine;  return IFSelect_RetError;  }
   Handle(IFSelect_DispPerFiles) disp = new IFSelect_DispPerFiles;
   disp->SetCount (par);
   return pilot->RecordItem(disp);
@@ -1340,10 +1340,10 @@ static IFSelect_ReturnStatus fun_dispsign
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    DispFiles         ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom Signature"<<endl;  return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner Nom Signature"<<Message_EndLine;  return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Signature,sig,WS->NamedItem(arg1));
   if (sig.IsNull())
-    { sout<<"Pas un nom de Signature : "<<arg1<<endl;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Signature : "<<arg1<<Message_EndLine;  return IFSelect_RetError;  }
   Handle(IFSelect_DispPerSignature) disp = new IFSelect_DispPerSignature;
   disp->SetSignCounter (new IFSelect_SignCounter(sig));
   return pilot->RecordItem(disp);
@@ -1358,18 +1358,18 @@ static IFSelect_ReturnStatus fun56
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Dispatch           ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom du Dispatch"<<endl;  return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner Nom du Dispatch"<<Message_EndLine;  return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Dispatch,disp,WS->NamedItem(arg1));
-  if (disp.IsNull()) { sout<<"Pas un dispatch : "<<arg1<<endl; return IFSelect_RetError;  }
+  if (disp.IsNull()) { sout<<"Pas un dispatch : "<<arg1<<Message_EndLine; 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"<<endl;
-  else if (selname.IsNull()) sout<<"Selection Finale : #"<<WS->ItemIdent(sel)<<endl;
-  else sout<<"Selection Finale : "<<selname->ToCString()<<endl;
+  if (sel.IsNull())  sout<<"Pas de Selection Finale"<<Message_EndLine;
+  else if (selname.IsNull()) sout<<"Selection Finale : #"<<WS->ItemIdent(sel)<<Message_EndLine;
+  else sout<<"Selection Finale : "<<selname->ToCString()<<Message_EndLine;
   if (disp->HasRootName()) sout<<"-- Racine nom de fichier : "
-    <<disp->RootName()->ToCString()<<endl;
+    <<disp->RootName()->ToCString()<<Message_EndLine;
   return IFSelect_RetVoid;
 }
 
@@ -1381,7 +1381,7 @@ static IFSelect_ReturnStatus fun57
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    Remove           ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give Name to Remove !"<<endl;  return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Give Name to Remove !"<<Message_EndLine;  return IFSelect_RetError; }
   if (!WS->RemoveNamedItem(arg1)) return IFSelect_RetFail;
   return IFSelect_RetDone;
 }
@@ -1395,18 +1395,18 @@ static IFSelect_ReturnStatus fun58
 //        ****    EvalDisp          ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   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"<<endl
-                   <<"See also : evaladisp  writedisp  xsplit"<<endl;
+                   <<"  0 brief  1 +forgotten ents  2 +duplicata  3 1+2"<<Message_EndLine
+                   <<"See also : evaladisp  writedisp  xsplit"<<Message_EndLine;
                  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)<<endl; OK = Standard_False; }
+      { sout<<"Not a dispatch:"<<pilot->Arg(i)<<Message_EndLine; OK = Standard_False; }
   }
   if (!OK) {
-    sout<<"Some of the parameters are not correct"<<endl;
+    sout<<"Some of the parameters are not correct"<<Message_EndLine;
     return IFSelect_RetError;
   }
 
@@ -1430,15 +1430,15 @@ static IFSelect_ReturnStatus fun_evaladisp
 //        ****    EvalADisp [GiveList]         ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   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"<<endl
-                   <<"See also : writedisp"<<endl;
+                   <<"  0 brief  1 +forgotten ents  2 +duplicata  3 1+2"<<Message_EndLine
+                   <<"See also : writedisp"<<Message_EndLine;
                  return IFSelect_RetVoid;  }
-  if (arg1[1] != '\0') { sout<<"first parameter : mode, must be a number between 0 and 3"<<endl; return IFSelect_RetError; }
+  if (arg1[1] != '\0') { sout<<"first parameter : mode, must be a number between 0 and 3"<<Message_EndLine; 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)<<endl; return IFSelect_RetError; }
+    { sout<<"Not a dispatch:"<<pilot->Arg(2)<<Message_EndLine; return IFSelect_RetError; }
   Handle(IFSelect_Selection) selsav = disp->FinalSelection();
   Handle(IFSelect_Selection) sel;
   if (argc > 3) {
@@ -1450,9 +1450,9 @@ static IFSelect_ReturnStatus fun_evaladisp
   }
 
   if (sel.IsNull() && selsav.IsNull())
-    { sout<<"No Selection nor GiveList defined"<<endl; return IFSelect_RetError; }
+    { sout<<"No Selection nor GiveList defined"<<Message_EndLine; return IFSelect_RetError; }
   if (sel.IsNull() && !selsav.IsNull()) {
-    if (argc > 3) sout<<"GiveList is empty, hence computed from the Selection of the Dispatch"<<endl;
+    if (argc > 3) sout<<"GiveList is empty, hence computed from the Selection of the Dispatch"<<Message_EndLine;
     sel = selsav;
   }
   disp->SetFinalSelection(sel);
@@ -1475,19 +1475,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"<<endl;
+                   <<"See also : evaladisp"<<Message_EndLine;
                  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"<<endl;
+    sout<<"Empty Root Name or Extension"<<Message_EndLine;
     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)<<endl; return IFSelect_RetError; }
+    { sout<<"Not a dispatch:"<<pilot->Arg(2)<<Message_EndLine; return IFSelect_RetError; }
   Handle(IFSelect_Selection) selsav = disp->FinalSelection();
   Handle(IFSelect_Selection) sel;
   if (argc > 3) {
@@ -1499,9 +1499,9 @@ static IFSelect_ReturnStatus fun_writedisp
   }
 
   if (sel.IsNull() && selsav.IsNull())
-    { sout<<"No Selection nor GiveList defined"<<endl; return IFSelect_RetError; }
+    { sout<<"No Selection nor GiveList defined"<<Message_EndLine; return IFSelect_RetError; }
   if (sel.IsNull() && !selsav.IsNull()) {
-    if (argc > 3) sout<<"GiveList is empty, hence computed from the Selection of the Dispatch"<<endl;
+    if (argc > 3) sout<<"GiveList is empty, hence computed from the Selection of the Dispatch"<<Message_EndLine;
     sel = selsav;
   }
 
@@ -1530,7 +1530,7 @@ static IFSelect_ReturnStatus fun59
   Standard_Integer mode = 0;
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (argc < 2) sout << " -- mode par defaut 0\n";
-  else { mode = atoi(arg1); sout << " -- mode : " << mode << endl;  }
+  else { mode = atoi(arg1); sout << " -- mode : " << mode << Message_EndLine;  }
   WS->EvaluateComplete(mode);  return IFSelect_RetVoid;
 }
 
@@ -1554,23 +1554,23 @@ static IFSelect_ReturnStatus fun61
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    RunTransformer    ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom de Transformer"<<endl; return IFSelect_RetError;  }
+  if (argc < 2) { sout<<"Donner Nom de Transformer"<<Message_EndLine; 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"<<endl; break;
-    case -3 : sout<<"Erreur, Transformation ignoree"<<endl; break;
-    case -2 : sout<<"Erreur sur edition sur place, risque de corruption (verifier)"<<endl; break;
-    case -1 : sout<<"Erreur sur edition locale, risque de corruption (verifier)"<<endl; break;
+    case -4 : sout<<"Edition sur place, nouveau Protocole, erreur recalcul graphe"<<Message_EndLine; break;
+    case -3 : sout<<"Erreur, Transformation ignoree"<<Message_EndLine; break;
+    case -2 : sout<<"Erreur sur edition sur place, risque de corruption (verifier)"<<Message_EndLine; break;
+    case -1 : sout<<"Erreur sur edition locale, risque de corruption (verifier)"<<Message_EndLine; break;
     case  0 :
-      if   (tsf.IsNull()) sout<<"Erreur, pas un Transformer: "<<arg1<<endl;
-      else sout<<"Execution non faite"<<endl;
+      if   (tsf.IsNull()) sout<<"Erreur, pas un Transformer: "<<arg1<<Message_EndLine;
+      else sout<<"Execution non faite"<<Message_EndLine;
              break;
-    case  1 : sout<<"Transformation locale (graphe non touche)"<<endl; break;
-    case  2 : sout<<"Edition sur place (graphe recalcule)"<<endl;  break;
-    case  3 : sout<<"Modele reconstruit"<<endl; break;
-    case  4 : sout<<"Edition sur place, nouveau Protocole"<<endl;  break;
-    case  5 : sout<<"Nouveau Modele avec nouveau Protocole"<<endl; break;
+    case  1 : sout<<"Transformation locale (graphe non touche)"<<Message_EndLine; break;
+    case  2 : sout<<"Edition sur place (graphe recalcule)"<<Message_EndLine;  break;
+    case  3 : sout<<"Modele reconstruit"<<Message_EndLine; break;
+    case  4 : sout<<"Edition sur place, nouveau Protocole"<<Message_EndLine;  break;
+    case  5 : sout<<"Nouveau Modele avec nouveau Protocole"<<Message_EndLine; break;
     default : break;
   }
   return ((effect > 0) ? IFSelect_RetDone : IFSelect_RetFail);
@@ -1612,7 +1612,7 @@ static IFSelect_ReturnStatus fun6465
   }
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (modif.IsNull())
-    { sout<<"Pas un nom de Modifier : "<<arg1<<endl;  return IFSelect_RetError;  }
+    { sout<<"Pas un nom de Modifier : "<<arg1<<Message_EndLine;  return IFSelect_RetError;  }
 
   Handle(TColStd_HSequenceOfTransient) list;
   Handle(IFSelect_SelectPointed) sp;
@@ -1624,21 +1624,21 @@ static IFSelect_ReturnStatus fun6465
 
   Standard_Integer effect = 0;
   effect = WS->RunModifierSelected (modif,sp,runcopy);
-//      sout<<"Modifier applique sur TransformStandard #"<<WS->ItemIdent(tsf)<<endl;
+//      sout<<"Modifier applique sur TransformStandard #"<<WS->ItemIdent(tsf)<<std::endl;
   switch (effect) {
-    case -4 : sout<<"Edition sur place, nouveau Protocole, erreur recalcul graphe"<<endl; break;
-    case -3 : sout<<"Erreur, Transformation ignoree"<<endl; break;
-    case -2 : sout<<"Erreur sur edition sur place, risque de corruption (verifier)"<<endl; break;
-    case -1 : sout<<"Erreur sur edition locale, risque de corruption (verifier)"<<endl; break;
+    case -4 : sout<<"Edition sur place, nouveau Protocole, erreur recalcul graphe"<<Message_EndLine; break;
+    case -3 : sout<<"Erreur, Transformation ignoree"<<Message_EndLine; break;
+    case -2 : sout<<"Erreur sur edition sur place, risque de corruption (verifier)"<<Message_EndLine; break;
+    case -1 : sout<<"Erreur sur edition locale, risque de corruption (verifier)"<<Message_EndLine; break;
     case  0 :
-      if   (modif.IsNull()) sout<<"Erreur, pas un Modifier: "<<arg1<<endl;
-      else sout<<"Execution non faite"<<endl;
+      if   (modif.IsNull()) sout<<"Erreur, pas un Modifier: "<<arg1<<Message_EndLine;
+      else sout<<"Execution non faite"<<Message_EndLine;
              break;
-    case  1 : sout<<"Transformation locale (graphe non touche)"<<endl; break;
-    case  2 : sout<<"Edition sur place (graphe recalcule)"<<endl;  break;
-    case  3 : sout<<"Modele reconstruit"<<endl; break;
-    case  4 : sout<<"Edition sur place, nouveau Protocole"<<endl;  break;
-    case  5 : sout<<"Nouveau Modele avec nouveau Protocole"<<endl; break;
+    case  1 : sout<<"Transformation locale (graphe non touche)"<<Message_EndLine; break;
+    case  2 : sout<<"Edition sur place (graphe recalcule)"<<Message_EndLine;  break;
+    case  3 : sout<<"Modele reconstruit"<<Message_EndLine; break;
+    case  4 : sout<<"Edition sur place, nouveau Protocole"<<Message_EndLine;  break;
+    case  5 : sout<<"Nouveau Modele avec nouveau Protocole"<<Message_EndLine; break;
     default : break;
   }
   return ((effect > 0) ? IFSelect_RetDone : IFSelect_RetFail);
@@ -1653,7 +1653,7 @@ static IFSelect_ReturnStatus fun66
   if (argc >= 2) opt = pilot->Word(1).Value(1);
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (opt != 'f' && opt != 'l')
-    { sout<<"Donner option : f -> root-first  l -> root-last"<<endl; return IFSelect_RetError; }
+    { sout<<"Donner option : f -> root-first  l -> root-last"<<Message_EndLine; return IFSelect_RetError; }
   return pilot->RecordItem(new IFSelect_ModifReorder(opt == 'l'));
 }
 
@@ -1665,12 +1665,12 @@ static IFSelect_ReturnStatus fun70
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    SelToggle         ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom de Selection"<<endl; return IFSelect_RetError;  }
+  if (argc < 2) { sout<<"Donner Nom de Selection"<<Message_EndLine; return IFSelect_RetError;  }
   DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg1));
   if (!WS->ToggleSelectExtract(sel))
-    { sout<<"Pas une SelectExtract : "<<arg1<<endl; return IFSelect_RetFail;  }
-  if (WS->IsReversedSelectExtract(sel)) sout<<arg1<<" a present Reversed"<<endl;
-  else sout<<arg1<<" a present Directe"<<endl;
+    { sout<<"Pas une SelectExtract : "<<arg1<<Message_EndLine; return IFSelect_RetFail;  }
+  if (WS->IsReversedSelectExtract(sel)) sout<<arg1<<" a present Reversed"<<Message_EndLine;
+  else sout<<arg1<<" a present Directe"<<Message_EndLine;
   return IFSelect_RetDone;
 }
 
@@ -1683,13 +1683,13 @@ static IFSelect_ReturnStatus fun71
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SelInput          ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Donner Noms Selections cible et input"<<endl; return IFSelect_RetError; }
+  if (argc < 3) { sout<<"Donner Noms Selections cible et input"<<Message_EndLine; 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<<endl;  return IFSelect_RetError;  }
+    {  sout<<"Incorrect : "<<arg1<<","<<arg2<<Message_EndLine;  return IFSelect_RetError;  }
   if (!WS->SetInputSelection(sel,sou)) { 
-    sout<<"Nom incorrect ou Selection "<<arg1<<" ni Extract ni Deduct"<<endl;
+    sout<<"Nom incorrect ou Selection "<<arg1<<" ni Extract ni Deduct"<<Message_EndLine;
     return IFSelect_RetFail;
   }
   return IFSelect_RetDone;
@@ -1717,7 +1717,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>"<<endl;
+      <<"  until <n2> : Range Until <n2>"<<Message_EndLine;
     return IFSelect_RetVoid;
   }
 
@@ -1725,13 +1725,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>"<<endl; return IFSelect_RetError; }
+    if (argc < 3) { sout<<"Forme admise : from <i>"<<Message_EndLine; 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>"<<endl; return IFSelect_RetError; }
+    if (argc < 3) { sout<<"Forme admise : until <i>"<<Message_EndLine; return IFSelect_RetError; }
     up  = GetCasted(IFSelect_IntParam,WS->NamedItem(arg2));
     sel = new IFSelect_SelectRange;
     sel->SetUntil (up);
@@ -1777,15 +1777,15 @@ static IFSelect_ReturnStatus fun76
   Handle(IFSelect_Selection) sel = new IFSelect_SelectDiff;
   if (sel.IsNull()) return IFSelect_RetFail;
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) sout<<"Diff sans input : ne pas oublier de les definir (ctlmain, ctlsec)!"<<endl;
+  if (argc < 3) sout<<"Diff sans input : ne pas oublier de les definir (ctlmain, ctlsec)!"<<Message_EndLine;
   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)"<<endl;
+      sout<<"Echec ControlMain:"<<arg1<<" , a refaire (ctlmain)"<<Message_EndLine;
   if (argc >= 3)
     if (!WS->SetControl(sel,selsec,Standard_False))
-      sout<<"Echec ControlSecond:"<<arg2<<" , a refaire (ctlsec)"<<endl;
+      sout<<"Echec ControlSecond:"<<arg2<<" , a refaire (ctlsec)"<<Message_EndLine;
   return pilot->RecordItem (sel);
 }
 
@@ -1798,11 +1798,11 @@ static IFSelect_ReturnStatus fun77
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SelControlMain       ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Donner Noms de Control et MainInput"<<endl; return IFSelect_RetError; }
+  if (argc < 3) { sout<<"Donner Noms de Control et MainInput"<<Message_EndLine; 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"<<endl;
+  sout<<"Nom incorrect ou Selection "<<arg1<<" pas de type Control"<<Message_EndLine;
   return IFSelect_RetFail;
 }
 
@@ -1815,11 +1815,11 @@ static IFSelect_ReturnStatus fun78
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SelControlSecond       ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Donner Noms de Control et SecondInput"<<endl; return IFSelect_RetError; }
+  if (argc < 3) { sout<<"Donner Noms de Control et SecondInput"<<Message_EndLine; 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"<<endl;
+  sout<<"Nom incorrect ou Selection "<<arg1<<" pas de type Control"<<Message_EndLine;
   return IFSelect_RetFail;
 }
 
@@ -1840,11 +1840,11 @@ static IFSelect_ReturnStatus fun80
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SelCombAdd        ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Donner n0 Combine et une Input"<<endl; return IFSelect_RetError; }
+  if (argc < 3) { sout<<"Donner n0 Combine et une Input"<<Message_EndLine; 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"<<endl;
+  sout<<"Nom incorrect ou Selection "<<arg1<<" pas Combine"<<Message_EndLine;
   return IFSelect_RetFail;
 }
 
@@ -1857,11 +1857,11 @@ static IFSelect_ReturnStatus fun81
   const Standard_CString arg2 = pilot->Arg(2);
 //        ****    SelCombRem        ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Donner n0 Combine et RANG a supprimer"<<endl; return IFSelect_RetError; }
+  if (argc < 3) { sout<<"Donner n0 Combine et RANG a supprimer"<<Message_EndLine; 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"<<endl;
+  sout<<"Nom incorrect ou Selection "<<arg1<<" ni Union ni Intersection"<<Message_EndLine;
   return IFSelect_RetFail;
 }
 
@@ -1873,7 +1873,7 @@ static IFSelect_ReturnStatus fun82
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    SelEntNumber      ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner Nom IntParam pour n0 Entite"<<endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner Nom IntParam pour n0 Entite"<<Message_EndLine; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_IntParam,par,WS->NamedItem(arg1));
   Handle(IFSelect_SelectEntityNumber) sel = new IFSelect_SelectEntityNumber;
   sel->SetNumber(par);
@@ -1903,7 +1903,7 @@ static IFSelect_ReturnStatus fun85
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    SelTextType Exact ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner le TYPE a selectionner"<<endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner le TYPE a selectionner"<<Message_EndLine; return IFSelect_RetError; }
   return pilot->RecordItem (new IFSelect_SelectSignature
                            (new IFSelect_SignType,arg1,Standard_True));
 }
@@ -1936,7 +1936,7 @@ static IFSelect_ReturnStatus fun89
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    SelTextType Contain **
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner le TYPE a selectionner"<<endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner le TYPE a selectionner"<<Message_EndLine; return IFSelect_RetError; }
   return pilot->RecordItem (new IFSelect_SelectSignature
                            (new IFSelect_SignType,arg1,Standard_False));
 }
@@ -1951,7 +1951,7 @@ static IFSelect_ReturnStatus fun90
     (pilot->Session(),pilot->CommandPart(1));
     if (list.IsNull()) return IFSelect_RetFail;
     Handle(Message_Messenger) sout = Message::DefaultMessenger();
-    sout<<"SelectPointed : "<<list->Length()<<" entities"<<endl;
+    sout<<"SelectPointed : "<<list->Length()<<" entities"<<Message_EndLine;
     sp->AddList (list);
   }
   return pilot->RecordItem (sp);
@@ -1968,22 +1968,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"<<endl;
+       <<" 0: Clear  +nn ajout entite nn  -nn enleve nn  /nn toggle nn"<<Message_EndLine;
        return IFSelect_RetError;
   }
   DeclareAndCast(IFSelect_SelectPointed,sp,WS->NamedItem(arg1));
-  if (sp.IsNull()) { sout<<"Pas une SelectPointed:"<<arg1<<endl; return IFSelect_RetError; }
+  if (sp.IsNull()) { sout<<"Pas une SelectPointed:"<<arg1<<Message_EndLine; 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 :"<<endl;
+    sout<<" SelectPointed : "<<arg1<<" : "<<nb<<" Items :"<<Message_EndLine;
     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<<endl;
+    if (nb > 0) sout<<Message_EndLine;
     return IFSelect_RetDone;
   }
 
@@ -1991,25 +1991,25 @@ 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<<endl;
-      else {  sout<<"Clear SelectPointed"<<endl; sp->Clear(); }
+      if (!argi.IsEqual("0")) sout<<"Incorrect,ignore:"<<argi<<Message_EndLine;
+      else {  sout<<"Clear SelectPointed"<<Message_EndLine; sp->Clear(); }
     } else if (argi.Value(1) == '-') {
       Handle(Standard_Transient) item = WS->StartingEntity(id);
       if (sp->Remove(item)) sout<<"Removed:no."<<id;
       else sout<<" Echec Remove "<<id;
-      sout<<": "; model->Print(item,sout);  sout<<endl;
+      sout<<": "; model->Print(item,sout);  sout<<Message_EndLine;
     } else if (argi.Value(1) == '/') {
       Handle(Standard_Transient) item = WS->StartingEntity(id);
       if (sp->Remove(item)) sout<<"Toggled:n0."<<id;
       else sout<<" Echec Toggle "<<id;
-      sout<<": "; model->Print(item,sout);  sout<<endl;
+      sout<<": "; model->Print(item,sout);  sout<<Message_EndLine;
     } else if (argi.Value(1) == '+') {
       Handle(Standard_Transient) item = WS->StartingEntity(id);
       if (sp->Add(item)) sout<<"Added:no."<<id;
       else sout<<" Echec Add "<<id;
-      sout<<": "; model->Print(item,sout);  sout<<endl;
+      sout<<": "; model->Print(item,sout);  sout<<Message_EndLine;
     } else {
-      sout<<"Ignore:"<<argi<<" , donner n0 PRECEDE de + ou - ou /"<<endl;
+      sout<<"Ignore:"<<argi<<" , donner n0 PRECEDE de + ou - ou /"<<Message_EndLine;
     }
   }
   return IFSelect_RetDone;
@@ -2033,7 +2033,7 @@ static IFSelect_ReturnStatus fun93
   Handle(IFSelect_WorkSession) WS = pilot->Session();
 //        ****    SelSignature        ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Give name of Signature or Counter, text + option exact(D) else contains"<<endl; return IFSelect_RetError; }
+  if (argc < 3) { sout<<"Give name of Signature or Counter, text + option exact(D) else contains"<<Message_EndLine; return IFSelect_RetError; }
   Standard_Boolean exact = Standard_True;
   if (argc > 3) { if (pilot->Arg(3)[0] == 'c') exact = Standard_False; }
 
@@ -2043,7 +2043,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"<<endl; return IFSelect_RetError; }
+  else { sout<<arg1<<":neither Signature nor Counter"<<Message_EndLine; return IFSelect_RetError; }
 
   return pilot->RecordItem(sel);
 }
@@ -2056,9 +2056,9 @@ static IFSelect_ReturnStatus fun94
   Handle(IFSelect_WorkSession) WS = pilot->Session();
 //        ****    SignCounter        ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner nom signature"<<endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner nom signature"<<Message_EndLine; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_Signature,sign,WS->NamedItem(arg1));
-  if (sign.IsNull()) { sout<<arg1<<":pas une signature"<<endl; return IFSelect_RetError; }
+  if (sign.IsNull()) { sout<<arg1<<":pas une signature"<<Message_EndLine; return IFSelect_RetError; }
   Handle(IFSelect_SignCounter) cnt = new IFSelect_SignCounter (sign,Standard_True,Standard_True);
   return pilot->RecordItem(cnt);
 }
@@ -2071,9 +2071,9 @@ static IFSelect_ReturnStatus funbselected
   Handle(IFSelect_WorkSession) WS = pilot->Session();
 //        ****    NbSelected = GraphCounter        ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Donner nom selection (deduction) a appliquer"<<endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Donner nom selection (deduction) a appliquer"<<Message_EndLine; return IFSelect_RetError; }
   DeclareAndCast(IFSelect_SelectDeduct,applied,WS->GiveSelection(arg1));
-  if (applied.IsNull()) { sout<<arg1<<":pas une SelectDeduct"<<endl; return IFSelect_RetError; }
+  if (applied.IsNull()) { sout<<arg1<<":pas une SelectDeduct"<<Message_EndLine; return IFSelect_RetError; }
   Handle(IFSelect_GraphCounter) cnt = new IFSelect_GraphCounter (Standard_True,Standard_True);
   cnt->SetApplied (applied);
   return pilot->RecordItem(cnt);
@@ -2088,7 +2088,7 @@ static IFSelect_ReturnStatus fun_editlist
 {
   Standard_Integer argc = pilot->NbWords();
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give the name of an EditForm or an Editor"<<endl;
+  if (argc < 2) { sout<<"Give the name of an EditForm or an Editor"<<Message_EndLine;
                  return IFSelect_RetError;  }
   const Standard_CString arg1 = pilot->Arg(1);
   const Standard_CString arg2 = pilot->Arg(2);
@@ -2099,7 +2099,7 @@ static IFSelect_ReturnStatus fun_editlist
   DeclareAndCast(IFSelect_EditForm,edf,WS->NamedItem(arg1));
   Handle(IFSelect_Editor) edt;
   if (!edf.IsNull()) {
-    sout<<"Print EditForm "<<arg1<<endl;
+    sout<<"Print EditForm "<<arg1<<Message_EndLine;
     edt = edf->Editor();
     if (argc < 3) {
 
@@ -2108,14 +2108,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()<<endl;
-      sout<<endl<<" --  Names (short - complete) + Labels of Values"<<endl;
+      sout<<"Editor, Label : "<<edt->Label()<<Message_EndLine;
+      sout<<Message_EndLine<<" --  Names (short - complete) + Labels of Values"<<Message_EndLine;
       edt->PrintNames(sout);
-      sout<<endl<<" --  Definitions  --"<<endl;
+      sout<<Message_EndLine<<" --  Definitions  --"<<Message_EndLine;
       edt->PrintDefs (sout);
       if (!edf.IsNull()) {
        edf->PrintDefs(sout);
-       sout<<endl<<"To display values, add an option : o original  f final  m modified"<<endl;
+       sout<<Message_EndLine<<"To display values, add an option : o original  f final  m modified"<<Message_EndLine;
       }
 
       return IFSelect_RetVoid;
@@ -2138,17 +2138,17 @@ static IFSelect_ReturnStatus fun_editvalue
 {
   Standard_Integer argc = pilot->NbWords();
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 3) { sout<<"Give the name of an EditForm + name of Value [+ newvalue or . to nullify]"<<endl;
+  if (argc < 3) { sout<<"Give the name of an EditForm + name of Value [+ newvalue or . to nullify]"<<Message_EndLine;
                  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<<endl; return IFSelect_RetError;  }
+    {  sout<<"Not an EditForm : "<<arg1<<Message_EndLine; return IFSelect_RetError;  }
   Standard_Integer num = edf->NameNumber (arg2);
-  if (num == 0) sout<<"Unknown Value Name : "<<arg2<<endl;
-  if (num <  0) sout<<"Not Extracted Value Name : "<<arg2<<endl;
+  if (num == 0) sout<<"Unknown Value Name : "<<arg2<<Message_EndLine;
+  if (num <  0) sout<<"Not Extracted Value Name : "<<arg2<<Message_EndLine;
   if (num <= 0) return IFSelect_RetError;
 
   Standard_Boolean islist = edf->Editor()->IsList(num);
@@ -2159,19 +2159,19 @@ static IFSelect_ReturnStatus fun_editvalue
 
   if (islist) {
     listr = edf->EditedList(num);
-    if (listr.IsNull()) sout<<"(NULL LIST)"<<endl;
+    if (listr.IsNull()) sout<<"(NULL LIST)"<<Message_EndLine;
     else {
       Standard_Integer ilist,nblist = listr->Length();
-      sout<<"(List : "<<nblist<<" Items)"<<endl;
+      sout<<"(List : "<<nblist<<" Items)"<<Message_EndLine;
       for (ilist = 1; ilist <= nblist; ilist ++) {
        str = listr->Value(ilist);
-       sout<<"  ["<<ilist<<"]  "<< (str.IsNull() ? "(NULL)" : str->ToCString())<<endl;
+       sout<<"  ["<<ilist<<"]  "<< (str.IsNull() ? "(NULL)" : str->ToCString())<<Message_EndLine;
       }
     }
-    if (argc < 4) sout<<"To Edit, options by editval edit-form value-name ?"<<endl;
+    if (argc < 4) sout<<"To Edit, options by editval edit-form value-name ?"<<Message_EndLine;
   } else {
     str = edf->EditedValue (num);
-    sout<<(str.IsNull() ? "(NULL)" : str->ToCString())<<endl;
+    sout<<(str.IsNull() ? "(NULL)" : str->ToCString())<<Message_EndLine;
   }
   if (argc < 4) return IFSelect_RetVoid;
 
@@ -2182,10 +2182,10 @@ static IFSelect_ReturnStatus fun_editvalue
   const Standard_CString argval = pilot->Arg(numarg);
   if (islist) {
     if (argval[0] == '?') {
-      sout<<"To Edit, options"<<endl<<" + val : add value at end (blanks allowed)"
-       <<endl<<" +nn text : insert val before item nn"<<endl
-       <<" nn text : replace item nn with a new value"<<endl
-       <<" -nn : remove item nn"<<endl<<" . : clear the list"<<endl;
+      sout<<"To Edit, options"<<Message_EndLine<<" + val : add value at end (blanks allowed)"
+       <<Message_EndLine<<" +nn text : insert val before item nn"<<Message_EndLine
+       <<" nn text : replace item nn with a new value"<<Message_EndLine
+       <<" -nn : remove item nn"<<Message_EndLine<<" . : clear the list"<<Message_EndLine;
       return IFSelect_RetVoid;
     }
     Standard_Boolean stated = Standard_False;
@@ -2207,15 +2207,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"<<endl;
-    else sout<<"List Edition not done, option"<<argval<<endl;
+    if (stated) sout<<"List Edition done"<<Message_EndLine;
+    else sout<<"List Edition not done, option"<<argval<<Message_EndLine;
   } 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())<<endl;
+      sout<<"Now set to "<<(str.IsNull() ? "(NULL)" : str->ToCString())<<Message_EndLine;
     } else {
-      sout<<"Modify not done"<<endl;  return IFSelect_RetFail;
+      sout<<"Modify not done"<<Message_EndLine;  return IFSelect_RetFail;
     }
   }
   return IFSelect_RetDone;
@@ -2226,24 +2226,24 @@ static IFSelect_ReturnStatus fun_editclear
 {
   Standard_Integer argc = pilot->NbWords();
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give the name of an EditForm [+ name of Value  else all]"<<endl;
+  if (argc < 2) { sout<<"Give the name of an EditForm [+ name of Value  else all]"<<Message_EndLine;
                  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<<endl; return IFSelect_RetError;  }
-  if (argc < 3) { edf->ClearEdit(); sout<<"All Modifications Cleared"<<endl; }
+    {  sout<<"Not an EditForm : "<<arg1<<Message_EndLine; return IFSelect_RetError;  }
+  if (argc < 3) { edf->ClearEdit(); sout<<"All Modifications Cleared"<<Message_EndLine; }
   else {
     Standard_Integer num = edf->NameNumber (arg2);
-    if (num == 0) sout<<"Unknown Value Name : "<<arg2<<endl;
-    if (num <  0) sout<<"Not Extracted Value Name : "<<arg2<<endl;
+    if (num == 0) sout<<"Unknown Value Name : "<<arg2<<Message_EndLine;
+    if (num <  0) sout<<"Not Extracted Value Name : "<<arg2<<Message_EndLine;
     if (num <= 0) return IFSelect_RetError;
     if (!edf->IsModified(num))
-      { sout<<"Value "<<arg2<<" was not modified"<<endl; return IFSelect_RetVoid; }
+      { sout<<"Value "<<arg2<<" was not modified"<<Message_EndLine; return IFSelect_RetVoid; }
     edf->ClearEdit (num);
-    sout<<"Modification on Value "<<arg2<<" Cleared"<<endl;
+    sout<<"Modification on Value "<<arg2<<" Cleared"<<Message_EndLine;
   }
   return IFSelect_RetDone;
 }
@@ -2253,39 +2253,39 @@ static IFSelect_ReturnStatus fun_editapply
 {
   Standard_Integer argc = pilot->NbWords();
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give the name of an EditForm [+ option keep to re-apply edited values]"<<endl;
+  if (argc < 2) { sout<<"Give the name of an EditForm [+ option keep to re-apply edited values]"<<Message_EndLine;
                  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<<endl; return IFSelect_RetError;  }
+    {  sout<<"Not an EditForm : "<<arg1<<Message_EndLine; 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"<<endl;
+    if (ent.IsNull()) sout<<"Applying modifications on loaded model"<<Message_EndLine;
     else {
       sout<<"Applying modifications on loaded entity : ";
       model->PrintLabel (ent,sout);
     }
   }
-  else sout<<"Applying modifications"<<endl;
+  else sout<<"Applying modifications"<<Message_EndLine;
 
   if (!edf->ApplyData (edf->Entity(),edf->Model())) {
-    sout<<"Modifications could not be applied"<<endl;
+    sout<<"Modifications could not be applied"<<Message_EndLine;
     return IFSelect_RetFail;
   }
-  sout<<"Modifications have been applied"<<endl;
+  sout<<"Modifications have been applied"<<Message_EndLine;
 
   Standard_Boolean stat = Standard_True;
   if (argc > 2 && arg2[0] == 'k') stat = Standard_False;
   if (stat) {
     edf->ClearEdit();
-    sout<<"Edited values are cleared"<<endl;
+    sout<<"Edited values are cleared"<<Message_EndLine;
   }
-  else sout<<"Edited values are kept for another loading/applying"<<endl;
+  else sout<<"Edited values are kept for another loading/applying"<<Message_EndLine;
 
   return IFSelect_RetDone;
 }
@@ -2295,33 +2295,33 @@ static IFSelect_ReturnStatus fun_editload
 {
   Standard_Integer argc = pilot->NbWords();
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give the name of an EditForm [+ Entity-Ident]"<<endl;
+  if (argc < 2) { sout<<"Give the name of an EditForm [+ Entity-Ident]"<<Message_EndLine;
                  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<<endl; return IFSelect_RetError;  }
+    {  sout<<"Not an EditForm : "<<arg1<<Message_EndLine; 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"<<endl;
+    sout<<"EditForm "<<arg1<<" : Loading Model"<<Message_EndLine;
     stat = edf->LoadModel(WS->Model());
   } else if (num <= 0) {
-    sout<<"Not an entity ident : "<<arg2<<endl;
+    sout<<"Not an entity ident : "<<arg2<<Message_EndLine;
     return IFSelect_RetError;
   } else {
-    sout<<"EditForm "<<arg1<<" : Loading Entity "<<arg2<<endl;
+    sout<<"EditForm "<<arg1<<" : Loading Entity "<<arg2<<Message_EndLine;
     stat = edf->LoadData (WS->StartingEntity(num),WS->Model());
   }
 
   if (!stat) {
-    sout<<"Loading not done"<<endl;
+    sout<<"Loading not done"<<Message_EndLine;
     return IFSelect_RetFail;
   }
-  sout<<"Loading done"<<endl;
+  sout<<"Loading done"<<Message_EndLine;
   return IFSelect_RetDone;
 }
 
@@ -2346,8 +2346,8 @@ static IFSelect_ReturnStatus fun_editload
   Standard_Integer num = 0;
   if (!name || name[0] == '\0') {
     char ligne[80];  ligne[0] = '\0';
-    cin >> ligne;
-//    cin.clear();  cin.getline (ligne,79);
+    std::cin >> ligne;
+//    std::cin.clear();  std::cin.getline (ligne,79);
     if (ligne[0] == '\0') return 0;
     num    = WS->NumberFromLabel (ligne);
   }
@@ -2392,7 +2392,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"<<endl;
+      sout<<" DispPerCount, count is not positive"<<Message_EndLine;
       disp.Nullify();
       return disp;
     }
@@ -2407,7 +2407,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"<<endl;
+      sout<<" DispPerFiles, count is not positive"<<Message_EndLine;
       disp.Nullify();
       return disp;
     }
@@ -2422,14 +2422,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]<<endl;
+      sout<<"DispPerSignature "<<nam<<" , Signature not valid : "<<&(nam.ToCString())[paro]<<Message_EndLine;
       disp.Nullify();
       return disp;
     }
     if (mode) ds->SetSignCounter (new IFSelect_SignCounter(sg));
     return ds;
   }
-  sout<<"Dispatch : "<<name<<" , Parameter : "<<&(nam.ToCString())[paro]<<endl;
+  sout<<"Dispatch : "<<name<<" , Parameter : "<<&(nam.ToCString())[paro]<<Message_EndLine;
   return disp;
 }
 
index 91acc41..9293082 100644 (file)
@@ -134,7 +134,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
    Interface_CopyTool& TC)
 {
   Message::DefaultMessenger() <<
-    "** WorkSession : Copying split data before sending"<<endl;
+    "** WorkSession : Copying split data before sending"<<Message_EndLine;
   const Interface_Graph& G = eval.Graph();
   Interface_CheckIterator checks;
   theshareout = eval.ShareOut();
@@ -164,7 +164,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
    const Handle(Interface_Protocol)& protocol)
 {
   Message::DefaultMessenger() <<
-    "** WorkSession : Sending split data already copied"<<endl;
+    "** WorkSession : Sending split data already copied"<<Message_EndLine;
   Standard_Integer nb = NbFiles();
   Interface_CheckIterator checks;
   if (nb > 0) {
@@ -177,14 +177,14 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
       checks.Merge(checklst);
 //     (FileName(i).ToCString(), FileModel(i),protocol,curapp,checks);
 //      if (!checks.IsEmpty(Standard_False)) {
-//     sout<<"  **  On Sending File n0."<<i<<", Check Messages :  **"<<endl;
+//     sout<<"  **  On Sending File n0."<<i<<", Check Messages :  **"<<std::endl;
 //     checks.Print (sout,Standard_False);
 //      }
       if (!res) {
        char mess[100];  sprintf(mess,"Split Send (WriteFile) abandon on file n0.%d",i);
        checks.CCheck(0)->AddFail (mess);
        Message::DefaultMessenger() << 
-         "  **  Sending File n0."<<i<<" has failed, abandon  **"<<endl;
+         "  **  Sending File n0."<<i<<" has failed, abandon  **"<<Message_EndLine;
        return checks;
       }
       AddSentFile (FileName(i).ToCString());
@@ -217,7 +217,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
   Interface_CheckIterator checks;
   Standard_Integer i = 0;
   Message::DefaultMessenger() <<
-    "** WorkSession : Copying then sending split data"<<endl;
+    "** WorkSession : Copying then sending split data"<<Message_EndLine;
   theshareout = eval.ShareOut();
   theremain = new TColStd_HArray1OfInteger(0,G.Size()); theremain->Init(0);
   for (eval.Evaluate(); eval.More(); eval.Next()) {
@@ -236,14 +236,14 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
     checks.Merge(checklst);
 //      (filename.ToCString(), model, protocol, curapp, checks);
 //    if (!checks.IsEmpty(Standard_False)) {
-//      sout<<"  **  On Sending File "<<filename<<", Check Messages :  **"<<endl;
+//      sout<<"  **  On Sending File "<<filename<<", Check Messages :  **"<<std::endl;
 //      checks.Print (sout,model,Standard_False);
 //    }
     if (!res) {
       char mess[100];  sprintf(mess,"Split Send (WriteFile) abandon on file n0.%d",i);
       checks.CCheck(0)->AddFail (mess);
       Message::DefaultMessenger() <<
-       "  **  Sending File "<<filename<<" has failed, abandon  **"<<endl;
+       "  **  Sending File "<<filename<<" has failed, abandon  **"<<Message_EndLine;
       checks.SetName ("X-STEP WorkSession : Split Send (only Write)");
       return checks;
     }
@@ -265,7 +265,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
   Interface_CheckIterator checks;
   checks.SetName ("X-STEP WorkSession : Send All");
   Message::DefaultMessenger() <<
-    "** WorkSession : Sending all data"<<endl;
+    "** WorkSession : Sending all data"<<Message_EndLine;
   Handle(Interface_InterfaceModel)  model = G.Model();
   if (model.IsNull() || protocol.IsNull() || WL.IsNull()) return checks;
 
@@ -286,7 +286,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
   if (!res) checks.CCheck(0)->AddFail ("SendAll (WriteFile) has failed");
 //  if (!checks.IsEmpty(Standard_False)) {
 //    Message::DefaultMessenger() <<
-//      "  **    SendAll has produced Check Messages :    **"<<endl;
+//      "  **    SendAll has produced Check Messages :    **"<<std::endl;
 //    checks.Print (sout,model,Standard_False);
 //  }
   return checks;
@@ -305,7 +305,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
   Interface_CheckIterator checks;
   checks.SetName ("X-STEP WorkSession : Send Selected");
   Message::DefaultMessenger() <<
-    "** WorkSession : Sending selected data"<<endl;
+    "** WorkSession : Sending selected data"<<Message_EndLine;
   Handle(Interface_InterfaceModel)  original = G.Model();
   if (original.IsNull() || protocol.IsNull() || WL.IsNull()) return checks;
   Handle(Interface_InterfaceModel) newmod  = original->NewEmptyModel();
@@ -340,7 +340,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
   if (!res) checks.CCheck(0)->AddFail ("SendSelected (WriteFile) has failed");
 //  if (!checks.IsEmpty(Standard_False)) {
 //    Message::DefaultMessenger() <<
-//      "  **    SendSelected has produced Check Messages :    **"<<endl;
+//      "  **    SendSelected has produced Check Messages :    **"<<std::endl;
 //    checks.Print (sout,original,Standard_False);
 //  }
   return checks;
@@ -410,7 +410,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
 //    Faut-il enregistrer les erreurs dans newmod ? bonne question
 //    if (!checks.IsEmpty(Standard_False)) {
 //      Message::DefaultMessenger() <<
-//        " Messages on Copied Model n0 "<<numod<<", Dispatch Rank "<<dispnum<<endl;
+//        " Messages on Copied Model n0 "<<numod<<", Dispatch Rank "<<dispnum<<std::endl;
 //      checks.Print(sout,newmod,Standard_False);
 //    }
   }
@@ -473,16 +473,16 @@ IFSelect_ModelCopier::IFSelect_ModelCopier ()    {  }
     }
 //  qq impressions de mise au point
 #ifdef MISOPOINT
-    cout << " Remaining Model : " << newmod->NbEntities() << " Entities"<<endl;
+    std::cout << " Remaining Model : " << newmod->NbEntities() << " Entities"<<std::endl;
     Standard_Integer ne = 0;
     for (i = 1; i <= nb; i ++) {
       if (theremain->Value(i) == 0) {
-       if (ne == 0)     cout << " Refractaires : ";
-       ne ++;  cout << " " << i;
+       if (ne == 0)     std::cout << " Refractaires : ";
+       ne ++;  std::cout << " " << i;
       }
     }
-    if (ne > 0) cout << "  -- " << ne << " Entities" << endl;
-    else cout<<"  -- Remaining data complete"<<endl;
+    if (ne > 0) std::cout << "  -- " << ne << " Entities" << std::endl;
+    else std::cout<<"  -- Remaining data complete"<<std::endl;
 #endif
   }
 }
index 81da858..6b8e822 100644 (file)
@@ -140,12 +140,12 @@ static int deja = 0;
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
 
   SplitLine (headerline);
-  if (theline.Length() != 4) { sout<<"File Form Incorrect"<<endl; return Standard_False; }
+  if (theline.Length() != 4) { sout<<"File Form Incorrect"<<Message_EndLine; 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"<<endl; return Standard_False; }
+    { sout<<"Lineno."<<thenl<<" : File Header Description Incorrect"<<Message_EndLine; return Standard_False; }
 //   Value(3) definit la VERSION du format de fichier
   return Standard_True;
 }
@@ -425,12 +425,12 @@ static int deja = 0;
   thenames.Clear();
 //  ..  Donnees generales, controle
   if (!ReadLine()) return 1;
-  if (theline.Length() != 4) { sout<<"File Form Incorrect"<<endl; return 1; }
+  if (theline.Length() != 4) { sout<<"File Form Incorrect"<<Message_EndLine; 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"<<endl; return 1; }
+    { sout<<"Lineno."<<thenl<<" : File Header Description Incorrect"<<Message_EndLine; return 1; }
 //   Value(3) definit la VERSION du format de fichier
   if (!ReadLine()) return 1;
 
@@ -444,15 +444,15 @@ static int deja = 0;
     if (ungen.Value(1) == '!') break;  // fin des generaux
     if (ungen.IsEqual("ErrorHandle")) {
       if (theline.Length() != 2)
-       { sout<<"Lineno."<<thenl<<" : ErrorHandle Description Incorrect"<<endl; continue; }
+       { sout<<"Lineno."<<thenl<<" : ErrorHandle Description Incorrect"<<Message_EndLine; 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)<<endl; continue; }
+      else { sout<<"Lineno."<<thenl<<" : ErrorHandle Incorrect : "<<theline.Value(2)<<Message_EndLine; continue; }
       continue;
     }
-    else sout<<"Lineno."<<thenl<<" : Unknown General Parameter : "<<ungen<<" , ignored"<<endl;
+    else sout<<"Lineno."<<thenl<<" : Unknown General Parameter : "<<ungen<<" , ignored"<<Message_EndLine;
   }
 
 //  ..  IntParams
@@ -462,7 +462,7 @@ static int deja = 0;
     if (!ReadLine()) return 1;
     if (theline.Value(1).Value(1) == '!') break;    // liste suivante
     if (theline.Length() != 2)
-      { sout<<"Lineno."<<thenl<<" : An Integer Parameter is badly defined"<<endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : An Integer Parameter is badly defined"<<Message_EndLine; continue; }
     Handle(IFSelect_IntParam) par = new IFSelect_IntParam;
     par->SetValue ( atoi(theline.Value(2).ToCString()) );
     AddItem (par);
@@ -474,7 +474,7 @@ static int deja = 0;
     if (!ReadLine()) return 1;
     if (theline.Value(1).Value(1) == '!') break;    // liste suivante
     if (theline.Length() != 2)
-      { sout<<"Lineno."<<thenl<<" : A Text Parameter is badly defined"<<endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Text Parameter is badly defined"<<Message_EndLine; continue; }
 //    Attention, un texte peut contenir des blancs ...  repartir de line(thenl)
     TCollection_AsciiString oneline = thelist.Value(thenl);
     Standard_Integer iw = 0, inc = 0;
@@ -494,7 +494,7 @@ static int deja = 0;
     if (!ReadLine()) return 1;
     if (theline.Value(1).Value(1) == '!') break;    // liste suivante
     if (theline.Length() < 2)
-      { sout<<"Lineno."<<thenl<<" : A Selection is badly defined"<<endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Selection is badly defined"<<Message_EndLine; continue; }
 //  ..  Analyse de certains cas generaux
     Handle(IFSelect_IntParam) low,up;
     Standard_Integer firstown = 3;
@@ -518,12 +518,12 @@ static int deja = 0;
     if (item.IsNull()) continue;
     DeclareAndCast(IFSelect_SelectExtract,sxt,item);
     if (!sxt.IsNull()) {
-      if (direct == 0) sout<<"Lineno."<<thenl<<" : A SelectExtract is badly defined"<<endl;
+      if (direct == 0) sout<<"Lineno."<<thenl<<" : A SelectExtract is badly defined"<<Message_EndLine;
       else  sxt->SetDirect( (direct > 0) );
     }
     DeclareAndCast(IFSelect_SelectAnyList,sli,item);
     if (!sli.IsNull()) {
-      if (numlist == 0) sout<<"Lineno."<<thenl<<" : A SelectAnyList is badly defined"<<endl;
+      if (numlist == 0) sout<<"Lineno."<<thenl<<" : A SelectAnyList is badly defined"<<Message_EndLine;
       else sli->SetRange(low,up);
     }
     AddItem(item);
@@ -535,29 +535,29 @@ static int deja = 0;
     if (!ReadLine()) return 1;
     if (theline.Value(1).Value(1) == '!') break;    // liste suivante
     if (theline.Length() < 3)
-      { sout<<"Lineno."<<thenl<<" : A Selection Source List is badly defined"<<endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Selection Source List is badly defined"<<Message_EndLine; continue; }
     DeclareAndCast(IFSelect_Selection,sel,ItemValue(1));
     if (sel.IsNull())
-      { sout<<"Lineno."<<thenl<<" : A Source List is not for a Selection"<<endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Source List is not for a Selection"<<Message_EndLine; continue; }
     Standard_Integer nbs = atoi(theline.Value(2).ToCString());
 //  .. Differents cas reconnus
     DeclareAndCast(IFSelect_SelectExtract,sxt,sel);
     if (!sxt.IsNull()) {
       if (nbs > 1)
-       sout<<"Lineno."<<thenl<<" : SelectExtract, more than one source, followings ignored"<<endl;
+       sout<<"Lineno."<<thenl<<" : SelectExtract, more than one source, followings ignored"<<Message_EndLine;
       DeclareAndCast(IFSelect_Selection,source,ItemValue(3));
       sxt->SetInput(source);
     }
     DeclareAndCast(IFSelect_SelectDeduct,sdt,sel);
     if (!sdt.IsNull()) {
       if (nbs > 1)
-       sout<<"Lineno."<<thenl<<" : SelectDeduct, more than one source, followings ignored"<<endl;
+       sout<<"Lineno."<<thenl<<" : SelectDeduct, more than one source, followings ignored"<<Message_EndLine;
       sdt->SetInput(GetCasted(IFSelect_Selection,ItemValue(3)));
     }
     DeclareAndCast(IFSelect_SelectControl,sct,sel);
     if (!sct.IsNull()) {
       if (nbs != 2)
-       sout<<"Lineno."<<thenl<<" : SelectControl, not two sources, followings ignored"<<endl;
+       sout<<"Lineno."<<thenl<<" : SelectControl, not two sources, followings ignored"<<Message_EndLine;
       sct->SetMainInput   (GetCasted(IFSelect_Selection,ItemValue(3)));
       sct->SetSecondInput (GetCasted(IFSelect_Selection,ItemValue(4)));
     }
@@ -574,13 +574,13 @@ static int deja = 0;
     if (!ReadLine()) return 1;
     if (theline.Value(1).Value(1) == '!') break;    // liste suivante
     if (theline.Length() < 2)
-      { sout<<"Lineno."<<thenl<<" : A Modifier is badly defined"<<endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Modifier is badly defined"<<Message_EndLine; 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"<<endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Modifier has not been Recognized"<<Message_EndLine; continue; }
     AddItem(modif,Standard_False);  // active plus tard
   }
 
@@ -590,13 +590,13 @@ static int deja = 0;
     if (!ReadLine()) return 1;
     if (theline.Value(1).Value(1) == '!') break;    // liste suivante
     if (theline.Length() < 2)
-      { sout<<"Lineno."<<thenl<<" : A Transformer is badly defined"<<endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Transformer is badly defined"<<Message_EndLine; 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"<<endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Transformer has not been Recognized"<<Message_EndLine; continue; }
     AddItem(trf,Standard_False);  // active plus tard
   }
 
@@ -606,7 +606,7 @@ static int deja = 0;
     if (!ReadLine()) return 1;
     if (theline.Value(1).Value(1) == '!') break;    // liste suivante
     if (theline.Length() < 3)
-      { sout<<"Lineno."<<thenl<<" : A Dispatch is badly defined"<<endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Dispatch is badly defined"<<Message_EndLine; continue; }
     DeclareAndCast(IFSelect_Selection,input,ItemValue(3));
     SetLastGeneral(3);
     Handle(Standard_Transient) item;   // a fournir ...
@@ -614,7 +614,7 @@ static int deja = 0;
     if (item.IsNull()) continue;
     DeclareAndCast(IFSelect_Dispatch,disp,item);
     if (disp.IsNull())
-      { sout<<"Lineno."<<thenl<<" : A Dispatch has not been Recognized"<<endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : A Dispatch has not been Recognized"<<Message_EndLine; continue; }
     AddItem(disp);
     thesess->SetItemSelection(disp,input);
   }
@@ -631,7 +631,7 @@ static int deja = 0;
     if (!ReadLine()) return 1;
     if (theline.Value(1).Value(1) == '!') break;    // liste suivante
     if (theline.Length() != 2)
-      { sout<<"Lineno."<<thenl<<" : A File Root is badly defined"<<endl; continue; }
+      { sout<<"Lineno."<<thenl<<" : A File Root is badly defined"<<Message_EndLine; continue; }
     DeclareAndCast(IFSelect_Dispatch,disp,ItemValue(1));
     thesess->SetFileRoot (disp,theline.Value(2).ToCString());
   }
@@ -644,20 +644,20 @@ static int deja = 0;
              (formod == 0 && theline.Value(1).IsEqual("!FILEMODIFIERS"))  ) );
 //    if ( formod == 1 && ( theline.Length() != 1 ||
 //                      !theline.Value(1).IsEqual("!MODELMODIFIERS")) )
-//      { sout<<"Lineno."<<thenl<<" : Model Modifier List Incorrect"<<endl;  return 1; }
+//      { sout<<"Lineno."<<thenl<<" : Model Modifier List Incorrect"<<std::endl;  return 1; }
 //    if ( formod == 0 && ( theline.Length() != 1 ||
 //                      !theline.Value(1).IsEqual("!FILEMODIFIERS")) )
-//      { sout<<"Lineno."<<thenl<<" : File Modifier List Incorrect"<<endl;  return 1; }
+//      { sout<<"Lineno."<<thenl<<" : File Modifier List Incorrect"<<std::endl;  return 1; }
     while (rubr) {
       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"<<endl; continue; }
+       { sout<<"Lineno."<<thenl<<" : A General Modifier is badly defined"<<Message_EndLine; 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"<<endl; continue; }
+       { sout<<"Lineno."<<thenl<<" : A General Modifier has not been Recognized"<<Message_EndLine; continue; }
       thesess->SetItemSelection   (modif,input);
       if (!disp.IsNull()) thesess->SetAppliedModifier (modif,disp);
       else                thesess->SetAppliedModifier (modif,thesess->ShareOut());
@@ -674,7 +674,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<<endl;  return 1; }
+    { sout<<"End of File Incorrect, lineno"<<thenl<<Message_EndLine;  return 1; }
   return 0;
 }
 
@@ -730,7 +730,7 @@ static int deja = 0;
     if (dumper->ReadOwn(*this,type,item)) break;
     dumper = dumper->Next();
   }
-  if (dumper.IsNull()) sout<<" -- Lineno."<<thenl<<" : an Item could not be read"<<endl;
+  if (dumper.IsNull()) sout<<" -- Lineno."<<thenl<<" : an Item could not be read"<<Message_EndLine;
   return (!dumper.IsNull());    // IsNull -> echec
 }
 
@@ -749,7 +749,7 @@ static int deja = 0;
     else id = thesess->AddNamedItem(name.ToCString(),item,active);
   }
   else sout<<"Lineno."<<thenl<<" -- Name : "<<name
-    <<" : Item could not be defined" << endl;
+    <<" : Item could not be defined" << Message_EndLine;
   thenames.Bind(name,id);
 }
 
@@ -793,7 +793,7 @@ static int deja = 0;
   if (id != 0) filenum = thenums->Value(id);
   if (filenum == 0) {
     if (!par.IsNull()) sout << "Lineno " << thenl << " --  Unknown Item : "
-       << " Type:" << par->DynamicType()->Name() << endl;  //sout<<Handle par
+       << " Type:" << par->DynamicType()->Name() << Message_EndLine;  //sout<<Handle par
     SendVoid();
     thedone = Standard_False;
     return;
@@ -876,7 +876,7 @@ static int deja = 0;
   if (name.IsEqual("$")) return res;    // item non-defini justement
   if (!thenames.Find(name, id)) {
     sout << " -- Item Unknown in File : " << name
-      << " lineno " << thenl << " param." << nm << endl;
+      << " lineno " << thenl << " param." << nm << Message_EndLine;
     id = 0;
   }
   return thesess->Item(id);
index f03a41e..963d157 100644 (file)
@@ -96,8 +96,8 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
   (const TCollection_AsciiString& command)
 {
   Standard_Integer lc = command.Length();
-  if (lc > 200) cout<<" Commande TRES LONGUE : "<<lc<<" caracteres :"<<endl
-    <<command.ToCString()<<endl;
+  if (lc > 200) std::cout<<" Commande TRES LONGUE : "<<lc<<" caracteres :"<<std::endl
+    <<command.ToCString()<<std::endl;
   thecommand = command;
   if (thecommand.Value(lc) <= ' ')  {  thecommand.Remove(lc);  lc --;  }
   thenbwords = 0;
@@ -111,20 +111,20 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
       unarg[nc] = '\0';
       thewords(thenbwords).Clear();  thewords(thenbwords).AssignCat(unarg);
 #ifdef DEBUG_TRACE
-      cout<<"thewords("<<thenbwords<<") ="<<unarg<<endl;
+      std::cout<<"thewords("<<thenbwords<<") ="<<unarg<<std::endl;
 #endif
       thenbwords ++; nc = 0;
       continue;
     }
     if (nc == 0) thewordeb.SetValue (thenbwords,i);
-    if (nc > MAXCARS) {  cout<<"Arg."<<thenbwords<<" > "<<MAXCARS<<" car.s, tronque"<<endl; continue;  }
+    if (nc > MAXCARS) {  std::cout<<"Arg."<<thenbwords<<" > "<<MAXCARS<<" car.s, tronque"<<std::endl; continue;  }
     unarg[nc] = val;  nc ++;
   }
   if (nc > 0) {
     unarg[nc] = '\0'; thewords(thenbwords).Clear();
     thewords(thenbwords).AssignCat(unarg);
 #ifdef DEBUG_TRACE
-    cout<<"thewords("<<thenbwords<<")="<<unarg<<endl<<" .. Fin avec thenbwords="<<thenbwords+1<<endl;
+    std::cout<<"thewords("<<thenbwords<<")="<<unarg<<std::endl<<" .. Fin avec thenbwords="<<thenbwords+1<<std::endl;
 #endif
     thenbwords ++;
   }
@@ -248,8 +248,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 { cout<<" ...   Script File "<<file<<" not found"<<endl; return IFSelect_RetFail; }
-    cout << " ...   Reading Script File " << file << endl;
+    else { std::cout<<" ...   Script File "<<file<<" not found"<<std::endl; return IFSelect_RetFail; }
+    std::cout << " ...   Reading Script File " << file << std::endl;
   }
   else fic = stdin;
   IFSelect_ReturnStatus stat = IFSelect_RetVoid;
@@ -266,15 +266,15 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
     if (ligne[0] == '\0') continue;
 //    On interprete cette commande
     TCollection_AsciiString command(ligne);
-    if (lefic) cout<<file<<":"<<command;  // le return est dans la ligne ... !
+    if (lefic) std::cout<<file<<":"<<command;  // le return est dans la ligne ... !
     stat = Execute(command);
     if (stat == IFSelect_RetStop) break;
     if ((stat == IFSelect_RetError || stat == IFSelect_RetFail) && lefic)
-      { cout << " ...   Error in Script File, abandon"<<endl;  break; }
+      { std::cout << " ...   Error in Script File, abandon"<<std::endl;  break; }
   }
   if (!lefic) return IFSelect_RetStop;
   fclose(fic);
-  cout<<"End of Reading Script File " << file << endl;
+  std::cout<<"End of Reading Script File " << file << std::endl;
   if (stat == IFSelect_RetError || stat == IFSelect_RetFail) return stat;
   return IFSelect_RetVoid;        // fin fichier : depiler
 }
@@ -300,17 +300,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) { cout<<"Could not add item to session, sorry"<<endl; return IFSelect_RetFail; }
+      if (addws == 0) { std::cout<<"Could not add item to session, sorry"<<std::endl; return IFSelect_RetFail; }
     }
 
     if (stat == IFSelect_RetVoid || stat == IFSelect_RetDone) {
       if (therecord) thecomlist.Append(thecommand);
     }
-    else if (stat == IFSelect_RetError) cout<<"Error in Command : "<<thecommand<<endl;
-    else if (stat == IFSelect_RetFail) cout << "Execution Failure for : " <<thecommand<<endl;
+    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;
     return stat;
   }
-  cout << " Command : " << thewords(0) << " unknown" << endl;
+  std::cout << " Command : " << thewords(0) << " unknown" << std::endl;
   return IFSelect_RetError;    // pas reconnu donc incorrect
 }
 
@@ -339,7 +339,7 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
 //   on demande un givelist
     Handle(TColStd_HSequenceOfTransient) list = thesession->GiveList (CommandPart(numword));
     if (list.IsNull()) {
-      cout<<"Nothing selected from : "<<CommandPart(numword)<<endl;
+      std::cout<<"Nothing selected from : "<<CommandPart(numword)<<std::endl;
       return IFSelect_RetError;
     }
     counter->AddWithGraph (list,thesession->Graph());
@@ -352,7 +352,7 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
   (const Standard_CString val) const
 {
   Standard_Integer num = thesession->NumberFromLabel (val);
-  if (num < 0)  cout<<" Label:"<<val<<" ->"<<-num<<" ent.s, refus"<<endl;
+  if (num < 0)  std::cout<<" Label:"<<val<<" ->"<<-num<<" ent.s, refus"<<std::endl;
   return num;
 }
 
@@ -375,7 +375,7 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
   switch (number) {
     case -1 :                                 //        ****     HELP-XSNEW
       modhelp = 1;
-      cout<<"  --  Commands candidate for  xsnew  --"<<endl;
+      std::cout<<"  --  Commands candidate for  xsnew  --"<<std::endl;
 //  HELP : soit complet (par defaut)  soit limite a xsnew
       Standard_FALLTHROUGH
     case  0 : {                               //        ****     HELP
@@ -385,20 +385,20 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
        list = IFSelect_Activator::Commands(modhelp);
        Standard_Integer nbcom = 0;
        Standard_Integer nb = list->Length();
-       cout << " -- Liste des Commands Disponibles --"<<endl;
+       std::cout << " -- Liste des Commands Disponibles --"<<std::endl;
        for (Standard_Integer i = 1; i <= nb; i ++) {
          const TCollection_AsciiString& uncom = list->Value(i);
          Standard_Integer loncom = uncom.Length();
          nbcom ++;
-         if (nbcom > MAXCOMPERLINE) { cout<<endl; nbcom = 1; }
-         cout<<" "<<uncom;
+         if (nbcom > MAXCOMPERLINE) { std::cout<<std::endl; nbcom = 1; }
+         std::cout<<" "<<uncom;
          if (nbcom == MAXCOMPERLINE) continue;
-         for (Standard_Integer j = loncom; j < LENGTHFORCOM; j ++) cout<<" ";
+         for (Standard_Integer j = loncom; j < LENGTHFORCOM; j ++) std::cout<<" ";
        }
-       if (nbcom > 0) cout<<endl;
-       cout<<"\nhelp *  liste toutes les commandes avec un help sur chacune\n"
+       if (nbcom > 0) std::cout<<std::endl;
+       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"<<endl;
+         <<" avec un help sur chacune"<<std::endl;
 
 //    Un Help particulier
       } else {
@@ -412,12 +412,12 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
          if (IFSelect_Activator::Select
              (list->Value(i).ToCString(),num,actor)) {
            if (IFSelect_Activator::Mode (list->Value(i).ToCString()) == 1)
-             cout<<"[xsnew name] ";
-           cout << list->Value(i) << " : " << actor->Help(num) << endl;
+             std::cout<<"[xsnew name] ";
+           std::cout << list->Value(i) << "    : " << actor->Help(num) << std::endl;
          }
        }
-       if (nb == 0 && thenbwords > 1) cout<<" Command "<<Word(1)<<" unknown. "
-         << " help (without command) lists all the commands" << endl;
+       if (nb == 0 && thenbwords > 1) std::cout<<" Command "<<Word(1)<<" unknown. "
+         << " help (without command) lists all the commands" << std::endl;
       }
       return IFSelect_RetVoid;
     }
@@ -426,54 +426,54 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
       return Do(0,this);
     }
     case  3 : {                               //        ****     COMMAND
-      if (argc < 2) { cout << "Donner une option :\n"
+      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"
-        << endl; return IFSelect_RetVoid; }
+        << std::endl; return IFSelect_RetVoid; }
       switch (arg1[0]) {
         case 'a' : {                          //        ****    command analyse
-         cout<<"Command n0 " << number <<" : "<< session->CommandLine()<<endl;
-         cout<<"Nb Words : " << argc-2 << " :\n";
+         std::cout<<"Command n0 " << number <<" : "<< session->CommandLine()<<std::endl;
+         std::cout<<"Nb Words : " << argc-2 << " :\n";
          for (Standard_Integer i = 2; i < argc; i ++) {
-           cout << " Word." << i-1 << " : " << session->Word(i) <<endl;
+           std::cout << " Word." << i-1 << " : " << session->Word(i) <<std::endl;
          }
          break;
        }
        case 'c' : session->Clear();  break;  //        ****    command clear
        case 'f' : {
-         if (argc < 3) { cout<<"Donner nom de fichier"<<endl; return IFSelect_RetError; }
+         if (argc < 3) { std::cout<<"Donner nom de fichier"<<std::endl; return IFSelect_RetError; }
          Standard_Integer nb = session->NbCommands();
-         if (nb == 0) { cout<<"Aucune commande enregistree"<<endl; break; }
-         cout << "Nb Commandes enregistrees : " << nb <<endl;
-         ofstream fout(Word(2).ToCString(),ios::out);
+         if (nb == 0) { std::cout<<"Aucune commande enregistree"<<std::endl; break; }
+         std::cout << "Nb Commandes enregistrees : " << nb <<std::endl;
+         std::ofstream fout(Word(2).ToCString(),std::ios::out);
          for (Standard_Integer i = 1; i <= nb; i ++)
-           fout<<session->Command(i)<<endl;
+           fout<<session->Command(i)<<std::endl;
          break;
        }
        case 'l' : {                          //        ****    command list
-         if (session->RecordMode()) cout<<"  -- Record Mode Actif"<<endl;
-         else                       cout<<"  -- Record Mode Inactif"<<endl;
+         if (session->RecordMode()) std::cout<<"  -- Record Mode Actif"<<std::endl;
+         else                       std::cout<<"  -- Record Mode Inactif"<<std::endl;
          Standard_Integer nb = session->NbCommands();
-         cout << "Nb Commandes enregistrees : " << nb << " :"<<endl;
+         std::cout << "Nb Commandes enregistrees : " << nb << " :"<<std::endl;
          for (Standard_Integer i = 1; i <= nb; i ++) {
-           cout<<"  "<<i<<"    "<<session->Command(i)<<endl;
+           std::cout<<"  "<<i<<"       "<<session->Command(i)<<std::endl;
          }
          break;
        }
        case 'r' : {                          //        ****    command record
          Standard_Boolean mode = session->RecordMode();
-         if (mode) cout << " -- Record Mode a present Inactif" <<endl;
-         else      cout << " -- Record Mode a present Actif"   <<endl;
+         if (mode) std::cout << " -- Record Mode a present Inactif" <<std::endl;
+         else      std::cout << " -- Record Mode a present Actif"   <<std::endl;
          session->SetRecordMode(!mode);
          break;
        }
-       default  : cout << "Option de controle de commande non comprise"<<endl;
+       default  : std::cout << "Option de controle de commande non comprise"<<std::endl;
       }
       return IFSelect_RetVoid;
     }
 
     case  4 : {                               //        ****     FILE
-      if (argc < 2) { cout<<"Donner nom de fichier"<<endl; return IFSelect_RetError; }
+      if (argc < 2) { std::cout<<"Donner nom de fichier"<<std::endl; return IFSelect_RetError; }
       return session->ReadScript
        (TCollection_AsciiString(session->Word(1)).ToCString());
 //          On recopie la string parce que Word(1) change tout le temps !
@@ -481,8 +481,8 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
 
     case  5 : {                               //        ****     XSTEP
       if (argc < 2) {
-       cout<<"xstep : prefixe neutre pour toute commande xstep-draw"<<endl
-         <<"xstep command args  equivaut a  command args"<<endl;
+       std::cout<<"xstep : prefixe neutre pour toute commande xstep-draw"<<std::endl
+         <<"xstep command args  equivaut a  command args"<<std::endl;
        return Do(2,this);
       } else {
        RemoveWord(0);
@@ -491,17 +491,17 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
     }
     case  6 : {                               //        ****    XSNEW(variable)
       if (argc < 3) {
-       cout<<"xsnew nomvar command [args]   creates an item"<<endl
-         <<"  nomvar : name of item (must be a new name) in the session"<<endl;
+       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;
        return Do (-1,this);
       } else {
 
        theobjrec.Nullify();
        TCollection_AsciiString name = Word(1);
 //  Le nom ne doit pas etre deja pris !
-         if (thesession.IsNull()) { cout<<"Command with a Name and no Session defined !"<<endl; return IFSelect_RetFail; }
+         if (thesession.IsNull()) { std::cout<<"Command with a Name and no Session defined !"<<std::endl; return IFSelect_RetFail; }
 //////    if (thesession->NameIdent(thewords(0).ToCString()) > 0)
-//////      { cout<<"Command with name:"<<thewords(0)<<", already taken"<<endl; return IFSelect_RetFail; }
+//////      { std::cout<<"Command with name:"<<thewords(0)<<", already taken"<<std::endl; return IFSelect_RetFail; }
        RemoveWord(0);  RemoveWord(0);
 
 //  Commande pour un Acteur
@@ -515,13 +515,13 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
            Standard_Integer addws =
              thesession->AddNamedItem(name.ToCString(),theobjrec);
            theobjrec.Nullify();
-           if (addws == 0) { cout<<"Could not add named item:"<<name<<", sorry"<<endl; return IFSelect_RetFail; }
+           if (addws == 0) { std::cout<<"Could not add named item:"<<name<<", sorry"<<std::endl; return IFSelect_RetFail; }
          }
-         else cout<<"Remark : xsnew with name:"<<name<<" and no result"<<endl;
+         else std::cout<<"Remark : xsnew with name:"<<name<<" and no result"<<std::endl;
 
          return stat;
        }
-       cout << " Command : " << thewords(0) << " unknown" << endl;
+       std::cout << " Command : " << thewords(0) << " unknown" << std::endl;
        return IFSelect_RetError;    // pas reconnu donc incorrect
       }
     }
index d55dfb0..0ab0b04 100644 (file)
@@ -149,7 +149,7 @@ IFSelect_ShareOutResult::IFSelect_ShareOutResult
   else {
     thenbindisp = 0;
 #if !defined No_Exception
-//    cout<<" ** **  IFSelect_ShareOutResult::Next, void dispatch ignored"<<endl;
+//    std::cout<<" ** **  IFSelect_ShareOutResult::Next, void dispatch ignored"<<std::endl;
 #endif
     return;
   }
index fa3a535..7407ab4 100644 (file)
@@ -151,15 +151,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 -----      -----------"<<endl;
+  S << " Count "<<thename->ToCString()<<"\n -----      -----------"<<Message_EndLine;
   for (; iter.More(); iter.Next()) {
     Standard_Integer val = iter.Value();
-    S << Interface_MSG::Blanks(val,6) << val <<"       "<<iter.Key()<<endl;
+    S << Interface_MSG::Blanks(val,6) << val <<"       "<<iter.Key()<<Message_EndLine;
     nbtot += val;
     nbsign ++;
   }
-  if (thenbnuls > 0) S << thename->ToCString()<< " Nul : " << thenbnuls<<endl;
-  S<<"    Nb Total:"<<nbtot<<"  for "<<nbsign<<" items"<<endl;
+  if (thenbnuls > 0) S << thename->ToCString()<< " Nul : " << thenbnuls<<Message_EndLine;
+  S<<"    Nb Total:"<<nbtot<<"  for "<<nbsign<<" items"<<Message_EndLine;
 }
 
     void  IFSelect_SignatureList::PrintList
@@ -170,7 +170,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"<<endl;
+    S <<" SignatureList "<<Name()<<" : PrintList, list not available"<<Message_EndLine;
     PrintCount(S);
     return;
   }
@@ -178,8 +178,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()<<endl;
-    if (list.IsNull())  {  S<<"  - (empty list)"<<endl; continue;  }
+    S<<Name()<<" : "<<iter.Key()<<Message_EndLine;
+    if (list.IsNull())  {  S<<"  - (empty list)"<<Message_EndLine; continue;  }
     Standard_Integer nb = list->Length();
     S<<"  - Nb: "<<nb<<" : ";
     Standard_Integer nc = nb;  if (nb > 5 && mod == IFSelect_ShortByItem) nc = 5;
@@ -195,18 +195,18 @@ IFSelect_SignatureList::IFSelect_SignatureList
        {  S<<":";  model->PrintLabel(list->Value(i),S);  }
     }
     if (nc < nb) S<<"  .. etc";
-    S<<endl;
+    S<<Message_EndLine;
     nbtot += nb;
     nbsign ++;
   }
-  S<<" Nb Total:"<<nbtot<<"  for "<<nbsign<<" items"<<endl;
+  S<<" Nb Total:"<<nbtot<<"  for "<<nbsign<<" items"<<Message_EndLine;
 }
 
 
     void  IFSelect_SignatureList::PrintSum (const Handle(Message_Messenger)& S) const
 {
   NCollection_IndexedDataMap<TCollection_AsciiString, Standard_Integer>::Iterator iter(thedicount);
-  S << " Summary "<<thename->ToCString()<<"\n -----    -----------"<<endl;
+  S << " Summary "<<thename->ToCString()<<"\n -----    -----------"<<Message_EndLine;
   Standard_Integer nbtot = 0, nbsign = 0, maxent = 0, nbval = 0, nbve = 0, minval = 0, maxval = 0, totval = 0;
   for (; iter.More(); iter.Next()) {
     Standard_Integer nbent = iter.Value();
@@ -232,18 +232,18 @@ IFSelect_SignatureList::IFSelect_SignatureList
     nbve += nbent;
     totval += (val*nbent);
   }
-  S << "    Nb Total:"<<nbtot<<"  for "<<nbsign<<" items"<<endl;
-  S << "    Highest count of entities : "<<maxent<<" on one item"<<endl;
+  S << "    Nb Total:"<<nbtot<<"  for "<<nbsign<<" items"<<Message_EndLine;
+  S << "    Highest count of entities : "<<maxent<<" on one item"<<Message_EndLine;
   if (nbval > 0) {
-    S<<"    Summary on Integer Values"<<endl;
-    S<<"    Nb Integer Items : "<<nbval<<endl;
-    S<<"    For Nb Entities  : "<<nbve<<endl;
-    S<<"    Cumulated Values : "<<totval<<endl;
-    S<<"    Maximum Value    : "<<maxval<<endl;
+    S<<"    Summary on Integer Values"<<Message_EndLine;
+    S<<"    Nb Integer Items : "<<nbval<<Message_EndLine;
+    S<<"    For Nb Entities  : "<<nbve<<Message_EndLine;
+    S<<"    Cumulated Values : "<<totval<<Message_EndLine;
+    S<<"    Maximum Value    : "<<maxval<<Message_EndLine;
     Standard_Integer avg1, avg2;
     avg1 = totval/nbve;
     avg2 = ((totval - (avg1*nbve)) * 10) / nbve;
-    S<<"    Average Value    : "<<avg1<<" "<<avg2<<"/10"<<endl;
-    S<<"    Minimum Value    : "<<minval<<endl;
+    S<<"    Average Value    : "<<avg1<<" "<<avg2<<"/10"<<Message_EndLine;
+    S<<"    Minimum Value    : "<<minval<<Message_EndLine;
   }
 }
index f130c58..a447f24 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<<endl;
+      sout<<"IFSelect_TransformStandard :  Messages from Modifier n0 "<<i<<" of "<<nb<<Message_EndLine;
       checklist.Print(sout,newmod,Standard_False);
     }
     if (!checklist.IsEmpty(Standard_True)) {
-      sout<<" --  Abandon TransformStandard  --"<<endl;
+      sout<<" --  Abandon TransformStandard  --"<<Message_EndLine;
       res = Standard_False;  break;
     }
   }
index c6a5b0f..e7992db 100644 (file)
@@ -225,7 +225,7 @@ IFSelect_ReturnStatus  IFSelect_WorkSession::ReadFile
     Handle(Message_Messenger) sout = Message::DefaultMessenger();
     sout<<"    ****    Interruption ReadFile par Exception :   ****\n";
     sout << anException.GetMessageString();
-    sout<<"\n    Abandon"<<endl;
+    sout<<"\n    Abandon"<<Message_EndLine;
     status = IFSelect_RetFail;
   }
   if (status != IFSelect_RetDone) return status;
@@ -1248,7 +1248,7 @@ Interface_EntityIterator IFSelect_WorkSession::EvalSelection
       Handle(Message_Messenger) sout = Message::DefaultMessenger();
       sout<<"    ****    Interruption EvalSelection par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<endl;
+      sout<<"\n    Abandon"<<Message_EndLine;
     }
     errhand = theerrhand;
     return iter;
@@ -1291,19 +1291,19 @@ Handle(TColStd_HSequenceOfTransient) IFSelect_WorkSession::SelectionResult
       Handle(Message_Messenger) sout = Message::DefaultMessenger();
       sout<<"    ****    Interruption SelectionResult par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<endl;
+      sout<<"\n    Abandon"<<Message_EndLine;
     }
     errhand = theerrhand;
     return res;
   }
 
   if (!IsLoaded()) {
-    cout<< " ***  Data for Evaluation not available  ***"<<endl;
+    std::cout<< " ***  Data for Evaluation not available  ***"<<std::endl;
     return new TColStd_HSequenceOfTransient();
   }
 //  if (ItemIdent(sel) == 0)
   if (sel.IsNull())
-    {  cout << " Selection :  Unknown"<<endl;  return res;  } //cout<<Handle
+    {  std::cout << " Selection :  Unknown"<<std::endl;  return res;  } //std::cout<<Handle
   return EvalSelection (sel).Content();
 }
 
@@ -1709,7 +1709,7 @@ Standard_Integer IFSelect_WorkSession::RunTransformer
 
   if (!checks.IsEmpty(Standard_False)) {
     Handle(Message_Messenger) sout = Message::DefaultMessenger();
-    sout<<"  **    RunTransformer has produced Check Messages :    **"<<endl;
+    sout<<"  **    RunTransformer has produced Check Messages :    **"<<Message_EndLine;
     checks.Print (sout,myModel,Standard_False);
   }
   thecheckdone = Standard_False;
@@ -2024,7 +2024,7 @@ void IFSelect_WorkSession::EvaluateFile ()
       Handle(Message_Messenger) sout = Message::DefaultMessenger();
       sout<<"    ****    Interruption EvaluateFile par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<endl;
+      sout<<"\n    Abandon"<<Message_EndLine;
       checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
     }
     errhand = theerrhand;
@@ -2036,7 +2036,7 @@ void IFSelect_WorkSession::EvaluateFile ()
   checks = thecopier->Copy (R,thelibrary,theprotocol);
   if (!checks.IsEmpty(Standard_False)) {
     Handle(Message_Messenger) sout = Message::DefaultMessenger();
-    sout<<"  **    EvaluateFile has produced Check Messages :    **"<<endl;
+    sout<<"  **    EvaluateFile has produced Check Messages :    **"<<Message_EndLine;
     checks.Print (sout,myModel,Standard_False);
   } 
   thecopier->SetRemaining (thegraph->CGraph());
@@ -2128,7 +2128,7 @@ Standard_Boolean IFSelect_WorkSession::SendSplit ()
       Handle(Message_Messenger) sout = Message::DefaultMessenger();
       sout<<"    ****    Interruption SendSplit par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<endl;
+      sout<<"\n    Abandon"<<Message_EndLine;
       checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
     }
     errhand = theerrhand;
@@ -2143,7 +2143,7 @@ Standard_Boolean IFSelect_WorkSession::SendSplit ()
   }
   if (!IsLoaded()) {
     Handle(Message_Messenger) sout = Message::DefaultMessenger();
-    sout<< " ***  Data for SendSplit not available  ***"<<endl;
+    sout<< " ***  Data for SendSplit not available  ***"<<Message_EndLine;
     checks.CCheck(0)->AddFail("Data not available");
     thecheckrun = checks;
     return Standard_False;
@@ -2184,10 +2184,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) cout<<"File "<<filnam<<" failed"<<endl;
+       if (stat != IFSelect_RetDone) std::cout<<"File "<<filnam<<" failed"<<std::endl;
       }
     }
-    sout<<" .. Files Written : "<<nf<<endl;
+    sout<<" .. Files Written : "<<nf<<Message_EndLine;
   }
   thecheckrun = checks;
   return Standard_True;
@@ -2271,9 +2271,9 @@ Standard_Boolean IFSelect_WorkSession::SetRemaining
     Interface_CopyTool TC(myModel,theprotocol);
     thecopier->CopiedRemaining (thegraph->Graph(),thelibrary,TC,newmod);
     if (newmod.IsNull()) {
-      sout<<" No Remaining Data recorded"<<endl;  return Standard_False;
+      sout<<" No Remaining Data recorded"<<Message_EndLine;  return Standard_False;
     } else if (newmod == myModel) {
-      sout<<" Remaining causes all original data to be kept"<<endl;
+      sout<<" Remaining causes all original data to be kept"<<Message_EndLine;
       thecopier->SetRemaining (thegraph->CGraph());
       return Standard_False;
     } else {
@@ -2295,20 +2295,20 @@ 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"<<endl;  return Standard_True;
+      sout<<" - All entities are remaining, none yet sent"<<Message_EndLine;  return Standard_True;
     }
     Interface_EntityIterator iter = SentList(0);
     nb = iter.NbEntities();
     if (nb == 0) {
-      sout<<" - No recorded remaining entities"<<endl;  return Standard_True;
+      sout<<" - No recorded remaining entities"<<Message_EndLine;  return Standard_True;
     }
-    sout <<" --  Recorded Remaining (not yet sent) Entities  --"<<endl;
+    sout <<" --  Recorded Remaining (not yet sent) Entities  --"<<Message_EndLine;
     ListEntities(iter,2);
     sout << " -- Maximum Sending Count (i.e. duplication in files) "<<
-      MaxSendingCount() << endl;
+      MaxSendingCount() << Message_EndLine;
 
 /*
-    sout<< " - Now, dispatches are deactivated"<<endl;
+    sout<< " - Now, dispatches are deactivated"<<std::endl;
     nb = theshareout->NbDispatches();
     for (Standard_Integer i = nb; i > theshareout->LastRun(); i --)
       theshareout->RemoveDispatch(i);
@@ -2351,7 +2351,7 @@ IFSelect_ReturnStatus IFSelect_WorkSession::SendAll
       Handle(Message_Messenger) sout = Message::DefaultMessenger();
       sout<<"    ****    Interruption SendAll par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<endl;
+      sout<<"\n    Abandon"<<Message_EndLine;
       errhand = theerrhand;
       checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
       thecheckrun = checks;
@@ -2401,7 +2401,7 @@ IFSelect_ReturnStatus IFSelect_WorkSession::SendSelected
       Handle(Message_Messenger) sout = Message::DefaultMessenger();
       sout<<"    ****    Interruption SendSelected par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<endl;
+      sout<<"\n    Abandon"<<Message_EndLine;
       checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
       errhand = theerrhand;
       thecheckrun = checks;
@@ -2846,48 +2846,48 @@ void IFSelect_WorkSession::TraceStatics
 {
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (use > 0) {
-    if (mode == 0)   sout<<"******************************************"<<endl;
+    if (mode == 0)   sout<<"******************************************"<<Message_EndLine;
     if        (use == 1) {
-      if (mode == 0) sout<<"*****      General  Parameters       *****"<<endl;
+      if (mode == 0) sout<<"*****      General  Parameters       *****"<<Message_EndLine;
     } else if (use == 2) {
-      if (mode == 0) sout<<"*****            Load  File          *****"<<endl;
+      if (mode == 0) sout<<"*****            Load  File          *****"<<Message_EndLine;
     } else if (use == 3) {
-      if (mode == 0) sout<<"*****            Write File          *****"<<endl;
+      if (mode == 0) sout<<"*****            Write File          *****"<<Message_EndLine;
     } else if (use == 4) {
-      if (mode == 0) sout<<"*****            Split File          *****"<<endl;
+      if (mode == 0) sout<<"*****            Split File          *****"<<Message_EndLine;
     } else if (use == 5) {
-      if (mode == 0) sout<<"*****        Transfer (Read)         *****"<<endl;
+      if (mode == 0) sout<<"*****        Transfer (Read)         *****"<<Message_EndLine;
     } else if (use == 6) {
-      if (mode == 0) sout<<"*****        Transfer (Write)        *****"<<endl;
+      if (mode == 0) sout<<"*****        Transfer (Write)        *****"<<Message_EndLine;
     }
-    if (mode == 0)   sout<<"******************************************"<<endl<<endl;
+    if (mode == 0)   sout<<"******************************************"<<Message_EndLine<<Message_EndLine;
   }
 
 //    Echainements particuliers (use > 0)
   if (use == 5) {
     TraceStatics (-2,mode);
-    if (mode == 0) sout<<endl;
+    if (mode == 0) sout<<Message_EndLine;
   } else if (use == 4 || use == 6) {
     TraceStatics (-3,mode);
-    if (mode == 0) sout<<endl;
+    if (mode == 0) sout<<Message_EndLine;
   }
 
 //    Valeurs particulieres
   if (use == 1 || use == -1) {  // General : trace
     if (mode == 0) {
-//      sout << "Trace Level   : "<<Message_PrinterOStream::Default()->GetTraceLevel()<<endl;
+//      sout << "Trace Level   : "<<Message_PrinterOStream::Default()->GetTraceLevel()<<std::endl;
     }
   } 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()<<endl;
-      else sout << "Prefix       not Defined" << endl;
+      if (!str.IsNull()) sout << "Prefix        : "<<str->ToCString()<<Message_EndLine;
+      else sout << "Prefix       not Defined" << Message_EndLine;
       str = theshareout->DefaultRootName();
-      if (!str.IsNull()) sout << "Default Root  : "<<str->ToCString()<<endl;
-      else sout << "Default Root not Defined" << endl;
+      if (!str.IsNull()) sout << "Default Root  : "<<str->ToCString()<<Message_EndLine;
+      else sout << "Default Root not Defined" << Message_EndLine;
       str = theshareout->Extension();
-      if (!str.IsNull()) sout << "Extension     : "<<str->ToCString()<<endl;
-      else sout << "Extension    not defined" << endl;
+      if (!str.IsNull()) sout << "Extension     : "<<str->ToCString()<<Message_EndLine;
+      else sout << "Extension    not defined" << Message_EndLine;
     }
   }
 
@@ -2896,7 +2896,7 @@ void IFSelect_WorkSession::TraceStatics
 
 //    Fin
   if (use > 0) {
-    if (mode == 0)   sout<<"******************************************"<<endl<<endl;
+    if (mode == 0)   sout<<"******************************************"<<Message_EndLine<<Message_EndLine;
   }
 }
 
@@ -2909,42 +2909,42 @@ void IFSelect_WorkSession::TraceStatics
 void IFSelect_WorkSession::DumpShare () const 
 {
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  sout<<"        **********  Definition ShareOut (Complete)  **********"<<endl;
+  sout<<"        **********  Definition ShareOut (Complete)  **********"<<Message_EndLine;
 
   Handle(TCollection_HAsciiString) str = theshareout->Prefix();
-  if (!str.IsNull()) sout << "Prefix       : " << str->ToCString() << endl;
-  else sout << "Prefix       not Defined" << endl;
+  if (!str.IsNull()) sout << "Prefix       : " << str->ToCString() << Message_EndLine;
+  else sout << "Prefix       not Defined" << Message_EndLine;
   str = theshareout->DefaultRootName();
-  if (!str.IsNull()) sout << "Default Root : " << str->ToCString() << endl;
-  else sout << "Default Root not Defined" << endl;
+  if (!str.IsNull()) sout << "Default Root : " << str->ToCString() << Message_EndLine;
+  else sout << "Default Root not Defined" << Message_EndLine;
   str = theshareout->Extension();
-  if (!str.IsNull()) sout << "Extension    : " << str->ToCString() << endl;
-  else sout << "Extension    not defined" << endl;
+  if (!str.IsNull()) sout << "Extension    : " << str->ToCString() << Message_EndLine;
+  else sout << "Extension    not defined" << Message_EndLine;
 
   Standard_Integer lr = theshareout->LastRun();
   Standard_Integer nb = theshareout->NbDispatches();
-  sout << "Nb Dispatches : " << nb <<" (Last Run : " << lr << ") : "<<endl;
+  sout << "Nb Dispatches : " << nb <<" (Last Run : " << lr << ") : "<<Message_EndLine;
   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() << endl;
+    sout << "   Label:" << disp->Label() << Message_EndLine;
     Handle(IFSelect_Selection) sel = disp->FinalSelection();
-    if (sel.IsNull()) sout << "   No Final Selection Defined" << endl;
+    if (sel.IsNull()) sout << "   No Final Selection Defined" << Message_EndLine;
     else if (HasName(sel)) sout << "   Final Selection : Name:"
-      << Name(sel)->ToCString() << "  Label:" << sel->Label() << endl;
-    else sout << "   Final Selection : " << sel->Label() << endl;
+      << Name(sel)->ToCString() << "  Label:" << sel->Label() << Message_EndLine;
+    else sout << "   Final Selection : " << sel->Label() << Message_EndLine;
     if (disp->HasRootName())
-      sout<<"   File Root Name : "<<disp->RootName()->ToCString()<<endl;
-    else sout<<"   No specific file root name (see Default Root)"<<endl;
+      sout<<"   File Root Name : "<<disp->RootName()->ToCString()<<Message_EndLine;
+    else sout<<"   No specific file root name (see Default Root)"<<Message_EndLine;
   }
   Standard_Integer nbm = theshareout->NbModifiers(Standard_True);
   if (nbm > 0) sout<<
-    "  ***   "<<nbm<<" active Model Modifiers : see ListModifiers   ***"<<endl;
+    "  ***   "<<nbm<<" active Model Modifiers : see ListModifiers   ***"<<Message_EndLine;
   Standard_Integer nbf = theshareout->NbModifiers(Standard_False);
   if (nbf > 0) sout<<
-    "  ***   "<<nbf<<" active File  Modifiers : see ListModifiers   ***"<<endl;
-  if (nbm+nbf == 0) sout<<"  ***   No active Modifiers   ***"<<endl;
+    "  ***   "<<nbf<<" active File  Modifiers : see ListModifiers   ***"<<Message_EndLine;
+  if (nbm+nbf == 0) sout<<"  ***   No active Modifiers   ***"<<Message_EndLine;
 }
 
 //  ####    ####    ####    ####    ####    ####    ####    ####    ####
@@ -2958,7 +2958,7 @@ void IFSelect_WorkSession::DumpShare () const
 void IFSelect_WorkSession::ListItems (const Standard_CString lab) const 
 {
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  sout<< "        **********  Items in Session  **********"<<endl;
+  sout<< "        **********  Items in Session  **********"<<Message_EndLine;
   Standard_Integer nb = MaxIdent();
   Handle(TCollection_HAsciiString) str;
   if (lab[0] != '\0') str = new TCollection_HAsciiString (lab);
@@ -2970,7 +2970,7 @@ void IFSelect_WorkSession::ListItems (const Standard_CString lab) const
     sout<<"#"<<i;
     if (HasName(var)) sout<<"  - Named : "<<Name(var)->ToCString()<<"  - ";
     else sout<<" - (no name) - ";
-    sout<<var->DynamicType()->Name()<<endl<<"    "<<label->ToCString()<<endl;
+    sout<<var->DynamicType()->Name()<<Message_EndLine<<"    "<<label->ToCString()<<Message_EndLine;
   }
 }
 
@@ -2989,13 +2989,13 @@ void IFSelect_WorkSession::ListFinalModifiers
   Standard_Integer nb = theshareout->NbModifiers(formodel);
   sout<< "        **********  Modifiers in Session ";
   sout<<(formodel ? "(For Model)" : "(For File)");
-  sout<<": "<<nb<<"  **********"<<endl;
+  sout<<": "<<nb<<"  **********"<<Message_EndLine;
   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<<endl;
+    sout<<Message_EndLine;
   }
 }
 
@@ -3012,21 +3012,21 @@ void IFSelect_WorkSession::DumpSelection
 {
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (ItemIdent(sel) == 0) {
-    sout << "Selection :  Unknown"<<endl;  //sout<<Handle
+    sout << "Selection :  Unknown"<<Message_EndLine;  //sout<<Handle
     return;
   }
   sout << "        **********  Selection";
   if (HasName(sel)) sout << " , Name : " << Name(sel)->ToCString();
-  sout <<"  **********"<<endl;
-  sout<< "Label : " << sel->Label() << " . Input(s) : "<< endl;
+  sout <<"  **********"<<Message_EndLine;
+  sout<< "Label : " << sel->Label() << " . Input(s) : "<< Message_EndLine;
   Standard_Integer nb = 0;
   IFSelect_SelectionIterator iter; sel->FillIterator(iter);
   for (; iter.More(); iter.Next()) {
     nb ++; 
     Handle(IFSelect_Selection) newsel = iter.Value();
-    sout<<" -- "<<newsel->Label()<<endl;
+    sout<<" -- "<<newsel->Label()<<Message_EndLine;
   }
-  sout << " Nb Inputs:"<<nb<<endl;
+  sout << " Nb Inputs:"<<nb<<Message_EndLine;
 }
 
 
@@ -3078,7 +3078,7 @@ Handle(IFSelect_Selection) IFSelect_WorkSession::GiveSelection
     else if (!cnt.IsNull()) selsign =
       new IFSelect_SelectSignature (cnt,&nomsel[debsign],Standard_False);
     else {
-      cout<<selname<<" : neither Signature nor Counter"<<endl;
+      std::cout<<selname<<" : neither Signature nor Counter"<<std::endl;
       return sel;
     }
 
@@ -3214,7 +3214,7 @@ Handle(TColStd_HSequenceOfTransient) IFSelect_WorkSession::GiveListFromList
 
   Handle(IFSelect_Selection) sel = GiveSelection (nomsel);
   if (sel.IsNull())  {
-    cout<<"Neither Entity Number/Label nor Selection :"<<nomsel<<endl;
+    std::cout<<"Neither Entity Number/Label nor Selection :"<<nomsel<<std::endl;
     return list;
   }
 
@@ -3279,15 +3279,15 @@ void IFSelect_WorkSession::DumpModel
   (const Standard_Integer level, const Handle(Message_Messenger)& S)
 {
   if (!IsLoaded())
-    {  S<< " ***  Data for List not available  ***"<<endl;  return;  }
+    {  S<< " ***  Data for List not available  ***"<<Message_EndLine;  return;  }
   S << "\n        *****************************************************************\n";
   if (theloaded.Length() > 0)
-    S << "        ********  Loaded File : "<<theloaded.ToCString()<<Interface_MSG::Blanks(32-theloaded.Length())<<" ********"<<endl;
-  else S << "        ********  No name for Loaded File"<<endl;
+    S << "        ********  Loaded File : "<<theloaded.ToCString()<<Interface_MSG::Blanks(32-theloaded.Length())<<" ********"<<Message_EndLine;
+  else S << "        ********  No name for Loaded File"<<Message_EndLine;
   if (level == 0) {
     S<<"        ********  Short Dump of Header                           ********\n";
   S << "        *****************************************************************\n\n";
-    myModel->DumpHeader(S);  S<<endl;
+    myModel->DumpHeader(S);  S<<Message_EndLine;
   }
 
   Standard_Integer nbent = myModel->NbEntities();
@@ -3299,7 +3299,7 @@ void IFSelect_WorkSession::DumpModel
   }
   S << "        *****************************************************************\n";
   S << "        ********  Model : "<<nbent<<" Entities, of which "<<nbr<<" Root(s)\n";
-  S << "        *****************************************************************\n"<<endl;
+  S << "        *****************************************************************\n"<<Message_EndLine;
 
   if (level <= 0) return;
   else if (level == 1) {
@@ -3315,8 +3315,8 @@ void IFSelect_WorkSession::DumpModel
     if (level == 7 || level == 10) mode = IFSelect_EntitiesByItem;
     PrintCheckList (ModelCheckList(),Standard_False, mode);
   } else {
-    if (level == 3) S << "        ********  Check Model (Fails)  ********"<<endl;
-    else            S << "        ********  Check Model (Complete)  ********"<<endl;
+    if (level == 3) S << "        ********  Check Model (Fails)  ********"<<Message_EndLine;
+    else            S << "        ********  Check Model (Complete)  ********"<<Message_EndLine;
     Interface_CheckTool CT (Graph());
     Interface_CheckIterator C;
     if (theerrhand) {
@@ -3329,7 +3329,7 @@ void IFSelect_WorkSession::DumpModel
        Handle(Message_Messenger) sout = Message::DefaultMessenger();
        sout<<"    ****    Interruption DumpModel (Check) par Exception    ****\n";
        S<<"  ** **  Exception Raised during Check !  ** **\n";
-       S<<"  -->  what could be determined is listed"<<endl;
+       S<<"  -->  what could be determined is listed"<<Message_EndLine;
       }
     }
     else if (level == 3) C = CT.CheckList();
@@ -3344,11 +3344,11 @@ void IFSelect_WorkSession::DumpModel
       Handle(Message_Messenger) sout = Message::DefaultMessenger();
       sout<<"    ****    Interruption DumpModel par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<endl;
+      sout<<"\n    Abandon"<<Message_EndLine;
     }
 
   }
-  S<<endl<<"There are "<<nbent<<" Entities, of which "<<nbr<<" Root(s)"<<endl;
+  S<<Message_EndLine<<"There are "<<nbent<<" Entities, of which "<<nbr<<" Root(s)"<<Message_EndLine;
 }
 
 //  ....        TraceDumpModel        ....  (Model + CheckList)
@@ -3381,12 +3381,12 @@ void IFSelect_WorkSession::DumpEntity
    const Handle(Message_Messenger)& S) const
 {
   if (!IsLoaded())
-    {  S<< " ***  Data for List not available  ***"<<endl;  return;  }
+    {  S<< " ***  Data for List not available  ***"<<Message_EndLine;  return;  }
   Standard_Integer num = myModel->Number(ent);
-  if (num == 0) { S<<" ***  Entity to Dump not in the Model  ***"<<endl; return; }
-  if (thelibrary.IsNull()) { S<<" ***  WorkLibrary not defined  ***"<<endl; return; }
+  if (num == 0) { S<<" ***  Entity to Dump not in the Model  ***"<<Message_EndLine; return; }
+  if (thelibrary.IsNull()) { S<<" ***  WorkLibrary not defined  ***"<<Message_EndLine; return; }
   S << "        ********  Dumping Entity n0 "<<num
-    <<" level:"<<level<<"  ********"<<endl;
+    <<" level:"<<level<<"  ********"<<Message_EndLine;
   thelibrary->DumpEntity (myModel,theprotocol,ent,S,level);
 }
 
@@ -3416,38 +3416,38 @@ void IFSelect_WorkSession::PrintEntityStatus
 {
   Standard_Integer i,nb;
   Standard_Integer num = StartingNumber(ent);
-  if (num == 0)  {  cout<<" --  PrintEntityStatus : unknown"<<endl;  return;  }
+  if (num == 0)  {  std::cout<<" --  PrintEntityStatus : unknown"<<std::endl;  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<<endl;
+  S<<Message_EndLine;
   Handle(IFSelect_Signature) signtype = SignType();
-  if (signtype.IsNull()) S<<"  Type(CDL):"<<ent->DynamicType()->Name()<<endl;
-  else S <<"  Type:"<<signtype->Value (ent,myModel)<<endl;
+  if (signtype.IsNull()) S<<"  Type(CDL):"<<ent->DynamicType()->Name()<<Message_EndLine;
+  else S <<"  Type:"<<signtype->Value (ent,myModel)<<Message_EndLine;
   S <<"    Category : " <<CategoryName (ent)
-    <<"    Validity : " <<ValidityName (ent) << endl;
+    <<"    Validity : " <<ValidityName (ent) << Message_EndLine;
   Interface_CheckIterator chl = CheckOne (ent);
   chl.Print (S,myModel,Standard_False,Standard_False);
 
   Handle(TColStd_HSequenceOfTransient) list = Sharings(ent);
-  if (list.IsNull()) S<<"  Root"<<endl;
+  if (list.IsNull()) S<<"  Root"<<Message_EndLine;
   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<<endl;
+    S<<Message_EndLine;
   }
   list = Shareds (ent);
-  if (list.IsNull()) S<<"  No sub-entity"<<endl;
+  if (list.IsNull()) S<<"  No sub-entity"<<Message_EndLine;
   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<<endl;
+    S<<Message_EndLine;
   }
 }
 
@@ -3511,20 +3511,20 @@ void IFSelect_WorkSession::EvaluateSelection
     catch (Standard_Failure const& anException) {
       sout<<"    ****    Interruption EvaluateSelection par Exception    ****  Intitule\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<endl;
+      sout<<"\n    Abandon"<<Message_EndLine;
     }
     errhand = theerrhand;
     return;
   }
 
   if (!IsLoaded())
-    {  sout<< " ***  Data for Evaluation not available  ***"<<endl;  return;  }
+    {  sout<< " ***  Data for Evaluation not available  ***"<<Message_EndLine;  return;  }
   if (ItemIdent(sel) == 0)
-    {  sout << " Selection :  Unknown"<<endl;  return;  }  //sout<<Handle
+    {  sout << " Selection :  Unknown"<<Message_EndLine;  return;  }  //sout<<Handle
   Interface_EntityIterator iter = EvalSelection (sel);
   ListEntities (iter,1);
   sout << "****  (Unique) RootResult, Selection        : "
-    <<sel->Label()<<endl;
+    <<sel->Label()<<Message_EndLine;
 }
 
 
@@ -3549,7 +3549,7 @@ void IFSelect_WorkSession::EvaluateDispatch
     catch (Standard_Failure const& anException) {
       sout<<"    ****    Interruption EvaluateDispatch par Exception    ****  Intitule\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<endl;
+      sout<<"\n    Abandon"<<Message_EndLine;
     }
     errhand = theerrhand;
     return;
@@ -3557,12 +3557,12 @@ void IFSelect_WorkSession::EvaluateDispatch
 
   Standard_Integer numdisp = DispatchRank(disp);
   if (!IsLoaded())
-    {  sout<< " ***  Data for List not available  ***"<<endl;  return;  }
+    {  sout<< " ***  Data for List not available  ***"<<Message_EndLine;  return;  }
   if (theshareout->NbDispatches() < numdisp || numdisp <= 0)
-    { sout<<"Dispatch :  Unknown"<<endl; return; } //sout<<Handle
+    { sout<<"Dispatch :  Unknown"<<Message_EndLine; return; } //sout<<Handle
   if (disp->FinalSelection().IsNull())
-    { sout<<"Dispatch  : No Final Selection"<<endl; return; }//sout<<Handle
-  sout<<" --- Dispatch Label : "<<disp->Label()<<endl
+    { sout<<"Dispatch  : No Final Selection"<<Message_EndLine; return; }//sout<<Handle
+  sout<<" --- Dispatch Label : "<<disp->Label()<<Message_EndLine
 
   IFSelect_ShareOutResult eval(disp,thegraph->Graph());
   eval.Evaluate();
@@ -3571,34 +3571,34 @@ void IFSelect_WorkSession::EvaluateDispatch
     eval.Packets (mode ? Standard_True : Standard_False);
   Standard_Integer nbpack = evres->NbPackets();
 
-  sout<<"Nb Packets produced : "<<nbpack<<" :"<<endl;
+  sout<<"Nb Packets produced : "<<nbpack<<" :"<<Message_EndLine;
   for (numpack = 1; numpack <= nbpack; numpack ++) {
-    sout<<"\n    ****    Packet n0 : "<<numpack<<" ****"<<endl;
-    if (!mode) cout<<"Root Entities :"<<endl;
+    sout<<"\n    ****    Packet n0 : "<<numpack<<" ****"<<Message_EndLine;
+    if (!mode) std::cout<<"Root Entities :"<<std::endl;
     ListEntities (evres->Entities(numpack), (mode ? 2 : -1));
   }
 
 ////  Interface_EntityIterator iterem = disp->Remainder(thegraph->Graph());
   if (mode == 0) return;
   if (mode == 1 || mode == 3) {
-    sout<<endl;
+    sout<<Message_EndLine;
     if (evres->NbDuplicated(0,Standard_False) == 0)
-      sout<<"    ****    All the Model is taken into account    ****"<<endl;
+      sout<<"    ****    All the Model is taken into account    ****"<<Message_EndLine;
     else {
-      sout<<"    ****    Starting Entities not taken by this Dispatch    ****"<<endl;
+      sout<<"    ****    Starting Entities not taken by this Dispatch    ****"<<Message_EndLine;
       ListEntities (evres->Duplicated(0,Standard_False),2);
     }
   }
   if (mode >= 2) {
     sout<<"    ****    Entites in more than one packet    ****";
     Standard_Integer max = evres->HighestDuplicationCount();
-    if (max < 2) sout<<" :   There are none"<<endl;
+    if (max < 2) sout<<" :   There are none"<<Message_EndLine;
     else {
       Standard_Integer newcount;
-      sout<<endl;
+      sout<<Message_EndLine;
       for (newcount = 2; newcount <= max; newcount ++) {
        if (evres->NbDuplicated(newcount,Standard_False) == 0) continue;
-       sout<<"    ****   Entities put in "<<newcount<<" packets    ****"<<endl;
+       sout<<"    ****   Entities put in "<<newcount<<" packets    ****"<<Message_EndLine;
        ListEntities (evres->Duplicated(newcount,Standard_False),2);
       }
     }
@@ -3627,52 +3627,52 @@ void IFSelect_WorkSession::EvaluateComplete
     catch (Standard_Failure const& anException) {
       sout<<"    ****    Interruption EvaluateComplete par Exception :   ****\n";
       sout<<anException.GetMessageString();
-      sout<<"\n    Abandon"<<endl;
+      sout<<"\n    Abandon"<<Message_EndLine;
     }
     errhand = theerrhand;
     return;
   }
 
   if (!IsLoaded())
-    {  sout<< " ***  Data for List not available  ***"<<endl;  return;  }
+    {  sout<< " ***  Data for List not available  ***"<<Message_EndLine;  return;  }
   IFSelect_ShareOutResult eval(theshareout,thegraph->Graph());
   eval.Evaluate();
   sout<<"\n********    Evaluation ShareOutResult (Complete)    ********\n";
-  sout<<"    ****    List of Packets    ****  Count : "<<eval.NbPackets()<<endl;
-  if (mode == 0) sout << " ** (for each one : Root Entities)  **"<<endl;
-  else sout << " ** (for each one : Evaluated Content)  **"<<endl;
+  sout<<"    ****    List of Packets    ****  Count : "<<eval.NbPackets()<<Message_EndLine;
+  if (mode == 0) sout << " ** (for each one : Root Entities)  **"<<Message_EndLine;
+  else sout << " ** (for each one : Evaluated Content)  **"<<Message_EndLine;
 
   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<<" :"<<endl;
+  sout<<"Nb Packets produced : "<<nbpack<<" :"<<Message_EndLine;
   for (numpack = 1; numpack <= nbpack; numpack ++) {
-    sout<<"\n    ****    Packet n0 : "<<numpack<<" ****"<<endl;
-    if (!mode) cout<<"Root Entities :"<<endl;
+    sout<<"\n    ****    Packet n0 : "<<numpack<<" ****"<<Message_EndLine;
+    if (!mode) std::cout<<"Root Entities :"<<std::endl;
     ListEntities (evres->Entities(numpack), (mode ? 2: -1));
   }
   if (mode == 0) return;
   if (mode == 1 || mode == 3) {
-    sout<<endl;
+    sout<<Message_EndLine;
     if (evres->NbDuplicated(0,Standard_False) == 0)
-      sout<<"    ****    All the Model is taken into account    ****"<<endl;
+      sout<<"    ****    All the Model is taken into account    ****"<<Message_EndLine;
     else {
-      sout<<"    ****    Starting Entities Forgotten    ****"<<endl;
+      sout<<"    ****    Starting Entities Forgotten    ****"<<Message_EndLine;
       ListEntities (evres->Duplicated(0,Standard_False),2);
     }
   }
   if (mode >= 2) {
-    sout<<"    ****    Entites in more than one packet    ****"<<endl;
+    sout<<"    ****    Entites in more than one packet    ****"<<Message_EndLine;
     Standard_Integer max = evres->HighestDuplicationCount();
-    if (max < 2) sout<<" :   There are none"<<endl;
+    if (max < 2) sout<<" :   There are none"<<Message_EndLine;
     else {
       Standard_Integer newcount;
-      sout<<endl;
+      sout<<Message_EndLine;
       for (newcount = 2; newcount <= max; newcount ++) {
        if (evres->NbDuplicated(newcount,Standard_False) == 0) continue;
-       sout<<"    ****   Entities put in "<<newcount<<" packets    ****"<<endl;
+       sout<<"    ****   Entities put in "<<newcount<<" packets    ****"<<Message_EndLine;
        ListEntities (evres->Duplicated(newcount,Standard_False),2);
       }
     }
@@ -3694,9 +3694,9 @@ void IFSelect_WorkSession::ListEntities
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   int titre = 0;
   Standard_Integer mode = (mmode < 0 ? -mmode : mmode);
-  if (mmode >= 0) sout << " List of " << iter.NbEntities() << " Entities :"<<endl;
+  if (mmode >= 0) sout << " List of " << iter.NbEntities() << " Entities :"<<Message_EndLine;
   if (!IsLoaded())
-    {  sout<< " ***  Data for List not available  ***"<<endl;  return;  }
+    {  sout<< " ***  Data for List not available  ***"<<Message_EndLine;  return;  }
   Interface_ShareFlags tool(thegraph->Graph());
 
   try {
@@ -3704,9 +3704,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-----------          ----...."<<endl;
+       << "Number/Id.           Category Validity    Type\n-----------          ----...."<<Message_EndLine;
 //          123456789 123456789 123456  123456789 123456789 123456
-      if (!titre && mode == 0) sout<<"  Keys : R Root   ? Unknown   * Unloaded"<<endl;
+      if (!titre && mode == 0) sout<<"  Keys : R Root   ? Unknown   * Unloaded"<<Message_EndLine;
       if (!titre && mode == 2) sout<<"(";
       titre = 1;
       Handle(Standard_Transient) ent = iter.Value();
@@ -3721,14 +3721,14 @@ void IFSelect_WorkSession::ListEntities
        if (catnum > 0) sout<<"  "<<Interface_Category::Name (catnum);
        sout << "  (" << ValidityName (ent) << ")  ";
 
-       sout<<" Type:"<<myModel->TypeName (ent, Standard_False)<<endl;
+       sout<<" Type:"<<myModel->TypeName (ent, Standard_False)<<Message_EndLine;
       } else if (mode == 2) {
        newcount ++;
        if (newcount > 0) sout<<",";
        sout<<num;
       } else {
        newcount ++;  mods = 0; cnt ++;
-       if      (newcount >= 10) { sout << endl<<"["<<cnt<<"]:"; newcount = 1; }
+       if      (newcount >= 10) { sout << Message_EndLine<<"["<<cnt<<"]:"; newcount = 1; }
        if (newcount > 0)  sout << "    ";
        myModel->Print(ent,sout,0);
        if (!tool.IsShared(ent)) { if(mods == 0) sout<<"("; sout<<"R"; mods++; }
@@ -3737,12 +3737,12 @@ void IFSelect_WorkSession::ListEntities
        if (mods) { sout<<")"; newcount ++; }
       }
     }
-    if (mode == 0) sout<<endl;
-    if (mode == 2) sout<<")"<<endl;
+    if (mode == 0) sout<<Message_EndLine;
+    if (mode == 2) sout<<")"<<Message_EndLine;
   }
   catch (Standard_Failure const& anException) {
     sout<<"    ****    Interruption ListEntities par Exception :   ****\n";
     sout<<anException.GetMessageString();
-    sout<<"\n    Abandon"<<endl;
+    sout<<"\n    Abandon"<<Message_EndLine;
   }
 }
index 373122b..2ac14dd 100644 (file)
@@ -130,14 +130,14 @@ void  IGESAppli_ToolDrilledHole::OwnDump
   (const Handle(IGESAppli_DrilledHole)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
 {
-  S << "IGESAppli_DrilledHole" << endl;
+  S << "IGESAppli_DrilledHole" << Message_EndLine;
 
-  S << "Number of property values : " << ent->NbPropertyValues() << endl;
+  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
   S << "Drill  diameter size :" << ent->DrillDiaSize() << "  ";
-  S << "Finish diameter size : "  << ent->FinishDiaSize() << endl;
+  S << "Finish diameter size : "  << ent->FinishDiaSize() << Message_EndLine;
   S << "Plating indication flag : ";
   if (!ent->IsPlating())   S << "NO"  << "  -  ";
   else                     S << "YES  -  ";
   S << "Lower Numbered Layer  : " << ent->NbLowerLayer() << "  ";
-  S << "Higher Numbered Layer : " << ent->NbHigherLayer() << endl;
+  S << "Higher Numbered Layer : " << ent->NbHigherLayer() << Message_EndLine;
 }
index b77e84a..b7d2741 100644 (file)
@@ -306,31 +306,31 @@ void  IGESAppli_ToolElementResults::OwnDump
    const Handle(Message_Messenger)& S, const Standard_Integer level) const // UNFINISHED
 {
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
-  S << "IGESAppli_ElementResults" << endl;
+  S << "IGESAppli_ElementResults" << Message_EndLine;
   S << "General Note   : ";
   dumper.Dump(ent->Note(),S, sublevel);
-  S << endl;
-  S << "Subcase Number : " << ent->SubCaseNumber() << endl;
-  S << "Time           : " << ent->Time() << endl;
-  S << "Number of Result Values : " << ent->NbResultValues() << endl;
-  S << "Result Report Flag  : " << ent->ResultReportFlag() << endl;
+  S << Message_EndLine;
+  S << "Subcase Number : " << ent->SubCaseNumber() << Message_EndLine;
+  S << "Time           : " << ent->Time() << Message_EndLine;
+  S << "Number of Result Values : " << ent->NbResultValues() << Message_EndLine;
+  S << "Result Report Flag  : " << ent->ResultReportFlag() << Message_EndLine;
   S << "Element Identifiers : ";
   IGESData_DumpVals(S ,level,1, ent->NbElements(),ent->ElementIdentifier);
-  S << endl << "Elements : ";
+  S << Message_EndLine << "Elements : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbElements(),ent->Element);
-  S << endl << "Element Topology Types : ";
+  S << Message_EndLine << "Element Topology Types : ";
   IGESData_DumpVals(S ,level,1, ent->NbElements(),ent->ElementTopologyType);
-  S << endl << "Numbers of Layers      : ";
+  S << Message_EndLine << "Numbers of Layers      : ";
   IGESData_DumpVals(S ,level,1, ent->NbElements(),ent->NbLayers);
-  S << endl << "Data Layer Flags       : ";
+  S << Message_EndLine << "Data Layer Flags       : ";
   IGESData_DumpVals(S ,level,1, ent->NbElements(),ent->DataLayerFlag);
-  S << endl << "Numbers of Result Data Locations : ";
+  S << Message_EndLine << "Numbers of Result Data Locations : ";
   IGESData_DumpVals(S ,level,1, ent->NbElements(),ent->NbResultDataLocs);
-  S << endl << "Result Data Locations : ";  S << " TO BE DONE  ";
+  S << Message_EndLine << "Result Data Locations : ";  S << " TO BE DONE  ";
 
 //  ??  A VERIFIER DE PRES, pas du tout sur que ce soit bon
 //      cf aussi Write et Copy
-  if (level <= 4) S << " [ ask level > 4 for more, > 5 for complete ]" << endl;
+  if (level <= 4) S << " [ ask level > 4 for more, > 5 for complete ]" << Message_EndLine;
   else {
     Standard_Integer i;// svv Jan 10 2000 : porting on DEC 
     for (i = 1; i <= ent->NbElements(); i ++) {
@@ -338,14 +338,14 @@ void  IGESAppli_ToolElementResults::OwnDump
       S << " ["<<i<<":NbLoc="<<nloc<<"]:";
       for (Standard_Integer j = 1; j <= nloc; j ++)
        S << " " << ent->ResultDataLoc (i,j);
-      S << endl;
+      S << Message_EndLine;
     }
     S << "Result Data : ";
 
     for (i = 1; i <= ent->NbElements(); i ++) {
       Standard_Integer nres = ent->NbResults(i);
       S << " ["<<i<<":NbRes="<<nres<<"]:";
-      if (level <= 5) S << " [ ask level > 5 for complete Data ]" << endl;
+      if (level <= 5) S << " [ ask level > 5 for complete Data ]" << Message_EndLine;
       else {
        for (Standard_Integer j = 1; j <= nres; j ++)
          S << " " << ent->ResultData(i,j);    // ?? is it all ?? UNFINISHED
index 789df89..fe88aee 100644 (file)
@@ -128,11 +128,11 @@ void  IGESAppli_ToolFiniteElement::OwnDump
   (const Handle(IGESAppli_FiniteElement)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESAppli_FiniteElement" << endl;
+  S << "IGESAppli_FiniteElement" << Message_EndLine;
 
-  S << "Topology type : " << ent->Topology() << endl;
+  S << "Topology type : " << ent->Topology() << Message_EndLine;
   S << "Nodes : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbNodes(),ent->Node);
-  S << endl << "Element Name : " << ent->Name();
-  S << endl;
+  S << Message_EndLine << "Element Name : " << ent->Name();
+  S << Message_EndLine;
 }
index 02286ef..3ed920c 100644 (file)
@@ -297,34 +297,34 @@ void  IGESAppli_ToolFlow::OwnDump
   (const Handle(IGESAppli_Flow)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESAppli_Flow" << endl;
-  S << "Number of Context Flags : " << ent->NbContextFlags() << endl;
+  S << "IGESAppli_Flow" << Message_EndLine;
+  S << "Number of Context Flags : " << ent->NbContextFlags() << Message_EndLine;
   Standard_Integer tf = ent->TypeOfFlow();
   S << "Type of Flow : " << tf;
-  if      (tf == 1) S << " (logical)" << endl;
-  else if (tf == 2) S << " (physical)" << endl;
-  else              S << " (not specified)" << endl;
+  if      (tf == 1) S << " (logical)" << Message_EndLine;
+  else if (tf == 2) S << " (physical)" << Message_EndLine;
+  else              S << " (not specified)" << Message_EndLine;
   tf = ent->FunctionFlag();
   S << "Function Flag : " << tf;
-  if      (tf == 1) S << " (electrical signal)" << endl;
-  else if (tf == 2) S << " (fluid flow path)" << endl;
-  else              S << " (not specified)" << endl;
+  if      (tf == 1) S << " (electrical signal)" << Message_EndLine;
+  else if (tf == 2) S << " (fluid flow path)" << Message_EndLine;
+  else              S << " (not specified)" << Message_EndLine;
   S << "Flow Associativities : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbFlowAssociativities(),
                        ent->FlowAssociativity);
-  S << endl << "Connect Points : ";
+  S << Message_EndLine << "Connect Points : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbConnectPoints(),
                        ent->ConnectPoint);
-  S << endl << "Joins : ";
+  S << Message_EndLine << "Joins : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbJoins(),ent->Join);
-  S << endl << "Flow Names : ";
+  S << Message_EndLine << "Flow Names : ";
   IGESData_DumpStrings(S ,level,1, ent->NbFlowNames(),ent->FlowName);
-  S << endl << "Text Display Templates : ";
+  S << Message_EndLine << "Text Display Templates : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbTextDisplayTemplates(),
                        ent->TextDisplayTemplate);
-  S << endl << "Continuation Flow Associativities : ";
+  S << Message_EndLine << "Continuation Flow Associativities : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbContFlowAssociativities(),
                        ent->ContFlowAssociativity);
-  S << endl;
+  S << Message_EndLine;
 }
 
index 2033267..4d6ff57 100644 (file)
@@ -108,9 +108,9 @@ void  IGESAppli_ToolFlowLineSpec::OwnDump
   (const Handle(IGESAppli_FlowLineSpec)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESAppli_FlowLineSpec" << endl;
+  S << "IGESAppli_FlowLineSpec" << Message_EndLine;
   S << "Name and Modifiers : ";
   IGESData_DumpStrings(S ,level,1, ent->NbPropertyValues(),ent->Modifier);
-  S << endl;
+  S << Message_EndLine;
 }
 
index bd8b9fd..49d806e 100644 (file)
@@ -122,11 +122,11 @@ void  IGESAppli_ToolLevelFunction::OwnDump
   (const Handle(IGESAppli_LevelFunction)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
 {
-  S << "IGESAppli_LevelFunction" << endl;
+  S << "IGESAppli_LevelFunction" << Message_EndLine;
 
-  S << "Number of property values : " << ent->NbPropertyValues() << endl;
-  S << "Function Description code : " << ent->FuncDescriptionCode() << endl;
+  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
+  S << "Function Description code : " << ent->FuncDescriptionCode() << Message_EndLine;
   S << "Function Description : ";
   IGESData_DumpString(S,ent->FuncDescription());
-  S << endl;
+  S << Message_EndLine;
 }
index 3367fb2..3371c90 100644 (file)
@@ -161,27 +161,27 @@ void  IGESAppli_ToolLevelToPWBLayerMap::OwnDump
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
   Standard_Integer i, num;
-  S << "IGESAppli_LevelToPWBLayerMap" << endl;
-  S << "Number of property values : " << ent->NbPropertyValues() << endl;
-  S << "Exchange File Level Number : " << endl;
-  S << "Native Level Identification : " << endl;
-  S << "Physical Layer Number : " << endl;
+  S << "IGESAppli_LevelToPWBLayerMap" << Message_EndLine;
+  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
+  S << "Exchange File Level Number : " << Message_EndLine;
+  S << "Native Level Identification : " << Message_EndLine;
+  S << "Physical Layer Number : " << Message_EndLine;
   S << "Exchange File Level Identification : ";
   IGESData_DumpStrings
     (S,-level,1, ent->NbLevelToLayerDefs(),ent->ExchangeFileLevelIdent);
-  S << endl;
+  S << Message_EndLine;
   if (level > 4)
     for ( num = ent->NbLevelToLayerDefs(), i = 1; i <= num; i++ )
       {
-       S << "[" << i << "]: " << endl;
+       S << "[" << i << "]: " << Message_EndLine;
        S << "Exchange File Level Number : "
-         << ent->ExchangeFileLevelNumber(i) << endl;
+         << ent->ExchangeFileLevelNumber(i) << Message_EndLine;
        S << "Native Level Identification : ";
        IGESData_DumpString(S,ent->NativeLevel(i));
-       S << endl;
-       S << "Physical Layer Number : " << ent->PhysicalLayerNumber(i) << endl;
+       S << Message_EndLine;
+       S << "Physical Layer Number : " << ent->PhysicalLayerNumber(i) << Message_EndLine;
        S << "Exchange File Level Identification : ";
        IGESData_DumpString(S,ent->ExchangeFileLevelIdent(i));
-       S << endl;
+       S << Message_EndLine;
       }
 }
index d4e9a44..89c0a90 100644 (file)
@@ -138,34 +138,34 @@ void  IGESAppli_ToolLineWidening::OwnDump
   (const Handle(IGESAppli_LineWidening)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
 {
-  S << "IGESAppli_LineWidening" << endl;
+  S << "IGESAppli_LineWidening" << Message_EndLine;
 
-  S << "Number of property values : " << ent->NbPropertyValues()     << endl;
-  S << "Width of metalization : " << ent->WidthOfMetalization()      << endl;
+  S << "Number of property values : " << ent->NbPropertyValues()     << Message_EndLine;
+  S << "Width of metalization : " << ent->WidthOfMetalization()      << Message_EndLine;
   S << "Cornering Code : " ;
-  if      (ent->CorneringCode() == 0) S << "0 (rounded)" << endl;
-  else if (ent->CorneringCode() == 1) S << "1 (squared)" << endl;
-  else                                S << "incorrect value" << endl;
+  if      (ent->CorneringCode() == 0) S << "0 (rounded)" << Message_EndLine;
+  else if (ent->CorneringCode() == 1) S << "1 (squared)" << Message_EndLine;
+  else                                S << "incorrect value" << Message_EndLine;
 
   S << "Extension Flag : " ;
-  if      (ent->ExtensionFlag() == 0) S << "0 (No Extension)" << endl;
-  else if (ent->ExtensionFlag() == 1) S << "1 (One-half width extension)" << endl;
-  else if (ent->ExtensionFlag() == 2) S << "2 (Extension set by ExtensionValue)" << endl;
-  else    S << "incorrect value" << endl;
+  if      (ent->ExtensionFlag() == 0) S << "0 (No Extension)" << Message_EndLine;
+  else if (ent->ExtensionFlag() == 1) S << "1 (One-half width extension)" << Message_EndLine;
+  else if (ent->ExtensionFlag() == 2) S << "2 (Extension set by ExtensionValue)" << Message_EndLine;
+  else    S << "incorrect value" << Message_EndLine;
 
   S << "Justification Flag : " ;
   if (ent->JustificationFlag() == 0)
-    S << "0 (Centre justified)" << endl;
+    S << "0 (Centre justified)" << Message_EndLine;
   else if (ent->JustificationFlag() == 1)
-    S << "1 (left justified)" << endl;
+    S << "1 (left justified)" << Message_EndLine;
   else if (ent->JustificationFlag() == 2)
-    S << "2 (right justified)" << endl;
+    S << "2 (right justified)" << Message_EndLine;
   else
-    S << "incorrect value" << endl;
+    S << "incorrect value" << Message_EndLine;
 
   if (ent->ExtensionFlag() == 2)
-    S << "Extension Value : " << ent->ExtensionValue()  << endl;
+    S << "Extension Value : " << ent->ExtensionValue()  << Message_EndLine;
   else
-    S << "No Extension Value (Extension Flag != 2)" << endl;
+    S << "No Extension Value (Extension Flag != 2)" << Message_EndLine;
 }
 
index 7b4f2fb..1584b2a 100644 (file)
@@ -133,12 +133,12 @@ void  IGESAppli_ToolNodalConstraint::OwnDump
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
-  S << "IGESAppli_NodalConstraint" << endl;
-  S << "Type of Constraint : " << ent->Type() << endl;
+  S << "IGESAppli_NodalConstraint" << Message_EndLine;
+  S << "Type of Constraint : " << ent->Type() << Message_EndLine;
   S << "Node : ";
   dumper.Dump(ent->NodeEntity(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Tabular Data Properties : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbCases(),ent->TabularData);
-  S << endl;
+  S << Message_EndLine;
 }
index d90e1d3..89225a9 100644 (file)
@@ -209,15 +209,15 @@ void  IGESAppli_ToolNodalDisplAndRot::OwnDump
   (const Handle(IGESAppli_NodalDisplAndRot)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESAppli_NodalDisplAndRot" << endl;
+  S << "IGESAppli_NodalDisplAndRot" << Message_EndLine;
 
   Standard_Integer nbcases = ent->NbCases();
   Standard_Integer nbnodes = ent->NbNodes();
 
-  S << "No. of analysis cases : " << nbcases << endl;
+  S << "No. of analysis cases : " << nbcases << Message_EndLine;
   S << "General Notes : ";
   IGESData_DumpEntities(S,dumper ,level,1, nbcases,ent->Note);
-  S << endl;
+  S << Message_EndLine;
 
 //  gp_GTrsf loca;  // true location n.u.
   switch (level)
@@ -232,7 +232,7 @@ void  IGESAppli_ToolNodalDisplAndRot::OwnDump
 //      IGESData_DumpListXYZL(S,-level,1,nbcases,ent->TranslationParameter,loca);
       S << "Rotational Parameters : ";
 //      IGESData_DumpListXYZL(S,-level,1,nbcases,ent->RotationalParameter,loca);
-      S << "  TO BE DONE" << endl;
+      S << "  TO BE DONE" << Message_EndLine;
       break;
     case 5:
     case 6: {
@@ -240,39 +240,39 @@ void  IGESAppli_ToolNodalDisplAndRot::OwnDump
        {
          S << "[" << i << "]: ";
          dumper.Dump (ent->Note(i),S, 1);
-         S << endl;
+         S << Message_EndLine;
        }
-      S << "Nodes : " << endl;
-      S << "Node Identifiers : "  << endl;
-      S << "Translation Parameters : " << endl;
+      S << "Nodes : " << Message_EndLine;
+      S << "Node Identifiers : "  << Message_EndLine;
+      S << "Translation Parameters : " << Message_EndLine;
       S << "Rotational Parameters : Count = " << nbcases;
 //     IGESData_DumpListXYZL(S,-level,1,nbcases,ent->RotationalParameter,loca);
-      S << endl;
+      S << Message_EndLine;
       for (Standard_Integer j = 1; j <= nbnodes; j ++)
        {
          S << "[" << j << "]:  -  NodeIdentifier : "
-           << ent->NodeIdentifier(j) << "  -  Node :"<<endl; ;
+           << ent->NodeIdentifier(j) << "  -  Node :"<<Message_EndLine; ;
          S << "Node : ";
          dumper.Dump (ent->Node(j),S, 1);
-         S << "  -  Parameters : " << endl;
+         S << "  -  Parameters : " << Message_EndLine;
          for (Standard_Integer k = 1; k <= nbcases; k ++)
            {
-             S << " [" << k << "]: "  << endl;
+             S << " [" << k << "]: "  << Message_EndLine;
              S << "Translational Parameter : X="
                << ent->TranslationParameter(j,k).X() << ", Y="
                << ent->TranslationParameter(j,k).Y() << ", Z="
-               << ent->TranslationParameter(j,k).Z() << endl;
+               << ent->TranslationParameter(j,k).Z() << Message_EndLine;
              S << "Rotational Parameter : X="
                << ent->RotationalParameter(j,k).X() << ", Y="
                << ent->RotationalParameter(j,k).Y() << ", Z="
                << ent->RotationalParameter(j,k).Z();
              if (k == nbcases) S << "] ";
-             S << endl;
+             S << Message_EndLine;
            }
        }
     }
       break;
     default: break;
     }
-  S << endl;
+  S << Message_EndLine;
 }
index 06e8159..f09002a 100644 (file)
@@ -216,20 +216,20 @@ void  IGESAppli_ToolNodalResults::OwnDump
 {
 //  Standard_Integer nbnodes = ent->NbNodes();
 //  Standard_Integer nbdata  = ent->NbData ();
-  S << "IGESAppli_NodalResults" << endl;
+  S << "IGESAppli_NodalResults" << Message_EndLine;
 
   S << "General Note : ";
   dumper.Dump(ent->Note(),S, (level <= 4) ? 0 : 1);
-  S << endl;
+  S << Message_EndLine;
   S << "Analysis subcase number : " << ent->SubCaseNumber() << "  ";
-  S << "Time used : " << ent->Time() << endl;
+  S << "Time used : " << ent->Time() << Message_EndLine;
   S << "No. of nodes : " << ent->NbNodes() << "  ";
-  S << "No. of values for a node : " << ent->NbData() << endl;
-  S << "Node Identifiers : " << endl;
-  S << "Nodes : " << endl;
+  S << "No. of values for a node : " << ent->NbData() << Message_EndLine;
+  S << "Node Identifiers : " << Message_EndLine;
+  S << "Nodes : " << Message_EndLine;
   S << "Data : ";  if (level < 6) S << " [ask level > 5]";
 //  IGESData_DumpRectVals(S ,-level,1, ent->NbData(),ent->Data);
-  S << endl;
+  S << Message_EndLine;
   if (level > 4)
     {
       for (Standard_Integer i=1; i <= ent->NbNodes(); i++)
@@ -238,12 +238,12 @@ void  IGESAppli_ToolNodalResults::OwnDump
           S << "NodeIdentifier : " << ent->NodeIdentifier(i) << "  ";
           S << "Node : ";
           dumper.Dump (ent->Node(i),S, 1);
-          S << endl;
+          S << Message_EndLine;
          if (level < 6) continue;
           S << "Data : [ ";
           for (Standard_Integer j = 1; j <= ent->NbData(); j ++)
               S << "  " << ent->Data(i,j);
-         S << " ]" << endl;
+         S << " ]" << Message_EndLine;
        }
     }
 }
index ef02017..c4cd87d 100644 (file)
@@ -112,13 +112,13 @@ void  IGESAppli_ToolNode::OwnDump
   (const Handle(IGESAppli_Node)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESAppli_Node" << endl;
+  S << "IGESAppli_Node" << Message_EndLine;
   S << " Nodal Coords : 1st " << ent->Coord().X()
-    << "  2nd : " << ent->Coord().Y() << "  3rd : " << ent->Coord().Z() <<endl;
+    << "  2nd : " << ent->Coord().Y() << "  3rd : " << ent->Coord().Z() <<Message_EndLine;
   S << "Nodal Displacement Coordinate System : ";
   if (!ent->System().IsNull())
     dumper.Dump(ent->System(),S, level);
   else
     S << "Global Cartesian Coordinate System (default)";
-  S << endl;
+  S << Message_EndLine;
 }
index 0b29ab9..6379015 100644 (file)
@@ -116,12 +116,12 @@ void  IGESAppli_ToolPWBArtworkStackup::OwnDump
   (const Handle(IGESAppli_PWBArtworkStackup)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESAppli_PWBArtworkStackup" << endl;
-  S << "Number of property values : " << ent->NbPropertyValues() << endl;
+  S << "IGESAppli_PWBArtworkStackup" << Message_EndLine;
+  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
   S << "Artwork Stackup Identification : ";
   IGESData_DumpString(S,ent->Identification());
-  S << endl;
+  S << Message_EndLine;
   S << "Level Numbers : ";
   IGESData_DumpVals(S ,level,1, ent->NbLevelNumbers(),ent->LevelNumber);
-  S << endl;
+  S << Message_EndLine;
 }
index c0a40de..a016694 100644 (file)
@@ -120,9 +120,9 @@ void  IGESAppli_ToolPWBDrilledHole::OwnDump
   (const Handle(IGESAppli_PWBDrilledHole)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
 {
-  S << "IGESAppli_PWBDrilledHole" << endl;
-  S << "Number of property values : " << ent->NbPropertyValues() << endl;
-  S << "Drill Diameter Size  : " << ent->DrillDiameterSize() << endl;
-  S << "Finish Diameter Size : " << ent->FinishDiameterSize() << endl;
-  S << "Drilled Hole Function Code : " << ent->FunctionCode() << endl;
+  S << "IGESAppli_PWBDrilledHole" << Message_EndLine;
+  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
+  S << "Drill Diameter Size  : " << ent->DrillDiameterSize() << Message_EndLine;
+  S << "Finish Diameter Size : " << ent->FinishDiameterSize() << Message_EndLine;
+  S << "Drilled Hole Function Code : " << ent->FunctionCode() << Message_EndLine;
 }
index d09a4fd..907aa50 100644 (file)
@@ -133,18 +133,18 @@ void  IGESAppli_ToolPartNumber::OwnDump
    const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
 {
   //Standard_Integer sublevel = (level > 4) ? 1 : 0; //szv#4:S4163:12Mar99 unused
-  S << "IGESAppli_PartNumber" << endl;
-  S << "Number of property values : " << ent->NbPropertyValues() << endl;
+  S << "IGESAppli_PartNumber" << Message_EndLine;
+  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
   S << "Generic  Number or Name : ";
   IGESData_DumpString(S,ent->GenericNumber());
-  S << endl;
+  S << Message_EndLine;
   S << "Military Number or Name : ";
   IGESData_DumpString(S,ent->MilitaryNumber());
-  S << endl;
+  S << Message_EndLine;
   S << "Vendor   Number or Name : ";
   IGESData_DumpString(S,ent->VendorNumber());
-  S << endl;
+  S << Message_EndLine;
   S << "Internal Number or Name : ";
   IGESData_DumpString(S,ent->InternalNumber());
-  S << endl;
+  S << Message_EndLine;
 }
index 57804f3..b506c08 100644 (file)
@@ -118,9 +118,9 @@ void  IGESAppli_ToolPinNumber::OwnDump
   (const Handle(IGESAppli_PinNumber)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
 {
-  S << "IGESAppli_PinNumber" << endl;
-  S << "Number of Property Values : " << ent->NbPropertyValues() << endl;
+  S << "IGESAppli_PinNumber" << Message_EndLine;
+  S << "Number of Property Values : " << ent->NbPropertyValues() << Message_EndLine;
   S << "PinNumber : ";
   IGESData_DumpString(S,ent->PinNumberVal());
-  S << endl;
+  S << Message_EndLine;
 }
index 35d9f09..b0e40c7 100644 (file)
@@ -284,9 +284,9 @@ void  IGESAppli_ToolPipingFlow::OwnDump
   (const Handle(IGESAppli_PipingFlow)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESAppli_PipingFlow" << endl;
-  S << "Number of Context Flags : " << ent->NbContextFlags() << endl;
-  S << "Type of Flow : " << ent->TypeOfFlow() << endl;
+  S << "IGESAppli_PipingFlow" << Message_EndLine;
+  S << "Number of Context Flags : " << ent->NbContextFlags() << Message_EndLine;
+  S << "Type of Flow : " << ent->TypeOfFlow() << Message_EndLine;
   S << "Flow Associativities : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbFlowAssociativities(),
                        ent->FlowAssociativity);
@@ -303,6 +303,6 @@ void  IGESAppli_ToolPipingFlow::OwnDump
   S << "Continuation Flow Associativities : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbContFlowAssociativities(),
                        ent->ContFlowAssociativity);
-  S << endl;
+  S << Message_EndLine;
 }
 
index a8d1aaa..939bdcf 100644 (file)
@@ -123,9 +123,9 @@ void  IGESAppli_ToolReferenceDesignator::OwnDump
   (const Handle(IGESAppli_ReferenceDesignator)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
 {
-  S << "IGESAppli_ReferenceDesignator" << endl;
-  S << "Number of Property Values : " << ent->NbPropertyValues() << endl;
+  S << "IGESAppli_ReferenceDesignator" << Message_EndLine;
+  S << "Number of Property Values : " << ent->NbPropertyValues() << Message_EndLine;
   S << "ReferenceDesignator : ";
   IGESData_DumpString(S,ent->RefDesignatorText());
-  S << endl;
+  S << Message_EndLine;
 }
index eee4441..e6197b8 100644 (file)
@@ -128,12 +128,12 @@ void  IGESAppli_ToolRegionRestriction::OwnDump
   (const Handle(IGESAppli_RegionRestriction)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
 {
-  S << "IGESAppli_RegionRestriction" << endl;
-  S << "Number of property values : " << ent->NbPropertyValues() << endl;
+  S << "IGESAppli_RegionRestriction" << Message_EndLine;
+  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
   S << "Electrical vias restriction       : "
-    << ent->ElectricalViasRestriction() << endl;
+    << ent->ElectricalViasRestriction() << Message_EndLine;
   S << "Electrical components restriction : "
-    << ent->ElectricalComponentRestriction() << endl;
+    << ent->ElectricalComponentRestriction() << Message_EndLine;
   S << "Electrical circuitary restriction : "
-    << ent->ElectricalCktRestriction()  << endl;
+    << ent->ElectricalCktRestriction()  << Message_EndLine;
 }
index 559293a..a180f8d 100644 (file)
@@ -114,10 +114,10 @@ void  IGESBasic_ToolAssocGroupType::OwnDump
   (const Handle(IGESBasic_AssocGroupType)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
 {
-  S << "IGESBasic_AssocGroupType" << endl;
-  S << "Number of data fields : " << ent->NbData() << endl;
-  S << "Type of attached associativity : " << ent->AssocType() << endl;
+  S << "IGESBasic_AssocGroupType" << Message_EndLine;
+  S << "Number of data fields : " << ent->NbData() << Message_EndLine;
+  S << "Type of attached associativity : " << ent->AssocType() << Message_EndLine;
   S << "Name of attached associativity : ";
   IGESData_DumpString(S,ent->Name());
-  S << endl;
+  S << Message_EndLine;
 }
index 7f18d5c..9cae4ea 100644 (file)
@@ -94,8 +94,8 @@ void  IGESBasic_ToolExternalRefFile::OwnDump
   (const Handle(IGESBasic_ExternalRefFile)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
 {
-  S << "IGESBasic_ExternalRefFile" << endl;
+  S << "IGESBasic_ExternalRefFile" << Message_EndLine;
   S << "External Reference File Identifier : ";
   IGESData_DumpString(S,ent->FileId());
-  S << endl;
+  S << Message_EndLine;
 }
index 55228d1..8ea0273 100644 (file)
@@ -135,11 +135,11 @@ void  IGESBasic_ToolExternalRefFileIndex::OwnDump
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
   Standard_Integer i, num;
-  S << "IGESBasic_ExternalRefFileIndex" << endl;
-  S << "External Reference Names : " << endl;
+  S << "IGESBasic_ExternalRefFileIndex" << Message_EndLine;
+  S << "External Reference Names : " << Message_EndLine;
   S << "Internal Entities : ";
   IGESData_DumpEntities(S,dumper,-level,1, ent->NbEntries(),ent->Entity);
-  S << endl;
+  S << Message_EndLine;
   if (level > 4)
     for ( num = ent->NbEntries(), i = 1; i <= num; i++ )
       {
@@ -148,7 +148,7 @@ void  IGESBasic_ToolExternalRefFileIndex::OwnDump
        IGESData_DumpString(S,ent->Name(i));
        S << "  Internal Entity : ";
        dumper.Dump (ent->Entity(i),S, 1);
-       S << endl;
+       S << Message_EndLine;
       }
-  S << endl;
+  S << Message_EndLine;
 }
index 40ccfc3..2746701 100644 (file)
@@ -102,11 +102,11 @@ void  IGESBasic_ToolExternalRefFileName::OwnDump
   (const Handle(IGESBasic_ExternalRefFileName)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
 {
-  S << "IGESBasic_ExternalRefFileName" << endl;
+  S << "IGESBasic_ExternalRefFileName" << Message_EndLine;
   S << "External Reference File Identifier : ";
   IGESData_DumpString(S,ent->FileId());
-  S << endl;
+  S << Message_EndLine;
   S << "External Reference Symbolic Name : ";
   IGESData_DumpString(S,ent->ReferenceName());
-  S << endl;
+  S << Message_EndLine;
 }
index f36b771..1e6ab19 100644 (file)
@@ -99,11 +99,11 @@ void  IGESBasic_ToolExternalRefLibName::OwnDump
   (const Handle(IGESBasic_ExternalRefLibName)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S,const Standard_Integer /* level */) const
 {
-  S << "IGESBasic_ExternalRefLibName" << endl;
+  S << "IGESBasic_ExternalRefLibName" << Message_EndLine;
   S << "Name of Library : ";
   IGESData_DumpString(S,ent->LibraryName());
-  S << endl;
+  S << Message_EndLine;
   S << "External Reference Symbolic Name : ";
   IGESData_DumpString(S,ent->ReferenceName());
-  S << endl;
+  S << Message_EndLine;
 }
index 398e696..8979e91 100644 (file)
@@ -94,8 +94,8 @@ void  IGESBasic_ToolExternalRefName::OwnDump
   (const Handle(IGESBasic_ExternalRefName)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
 {
-  S << "IGESBasic_ExternalRefName" << endl;
+  S << "IGESBasic_ExternalRefName" << Message_EndLine;
   S << "External Reference Symbolic Name : ";
   IGESData_DumpString(S,ent->ReferenceName());
-  S << endl;
+  S << Message_EndLine;
 }
index 1c453e1..cc3e0ce 100644 (file)
@@ -107,8 +107,8 @@ void  IGESBasic_ToolExternalReferenceFile::OwnDump
   (const Handle(IGESBasic_ExternalReferenceFile)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESBasic_ExternalReferenceFile" << endl;
+  S << "IGESBasic_ExternalReferenceFile" << Message_EndLine;
   S << "External Reference Names : ";
   IGESData_DumpStrings(S ,level,1, ent->NbListEntries(),ent->Name);
-  S << endl;
+  S << Message_EndLine;
 }
index 70f1b5a..8b6aacf 100644 (file)
@@ -165,9 +165,9 @@ void IGESBasic_ToolGroup::OwnDump
   (const Handle(IGESBasic_Group)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESBasic_Group" << endl;
+  S << "IGESBasic_Group" << Message_EndLine;
   S << "Entries in the Group : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
-  S << endl;
+  S << Message_EndLine;
 }
 
index 117be55..c1c32a5 100644 (file)
@@ -162,9 +162,9 @@ void  IGESBasic_ToolGroupWithoutBackP::OwnDump
 (const Handle(IGESBasic_GroupWithoutBackP)& ent, const IGESData_IGESDumper& dumper,
  const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESBasic_GroupWithoutBackP" << endl;
+  S << "IGESBasic_GroupWithoutBackP" << Message_EndLine;
   S << "Entries in the Group : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
-  S << endl;
+  S << Message_EndLine;
 }
 
index 03c1a7d..680ee57 100644 (file)
@@ -132,13 +132,13 @@ void  IGESBasic_ToolHierarchy::OwnDump
   (const Handle(IGESBasic_Hierarchy)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
 {
-  S << "IGESBasic_Hierarchy" << endl;
+  S << "IGESBasic_Hierarchy" << Message_EndLine;
 
-  S << "Number of property values : " << ent->NbPropertyValues() << endl;
-  S << "Line Font    : " << ent->NewLineFont() << endl;
-  S << "View Number  : " << ent->NewView() << endl;
-  S << "Entity level : " << ent->NewEntityLevel() << endl;
-  S << "Blank status : " << ent->NewBlankStatus() << endl;
-  S << "Line weight  : " << ent->NewLineWeight() << endl;
-  S << "Color number : " << ent->NewColorNum() << endl;
+  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
+  S << "Line Font    : " << ent->NewLineFont() << Message_EndLine;
+  S << "View Number  : " << ent->NewView() << Message_EndLine;
+  S << "Entity level : " << ent->NewEntityLevel() << Message_EndLine;
+  S << "Blank status : " << ent->NewBlankStatus() << Message_EndLine;
+  S << "Line weight  : " << ent->NewLineWeight() << Message_EndLine;
+  S << "Color number : " << ent->NewColorNum() << Message_EndLine;
 }
index 1c62802..46758be 100644 (file)
@@ -107,10 +107,10 @@ void  IGESBasic_ToolName::OwnDump
   (const Handle(IGESBasic_Name)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
 {
-  S << "IGESBasic_Name" << endl;
+  S << "IGESBasic_Name" << Message_EndLine;
 
-  S << "Number of property values : " << ent->NbPropertyValues() << endl;
+  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
   S << "Name : ";
   IGESData_DumpString(S,ent->Value());
-  S << endl;
+  S << Message_EndLine;
 }
index 276e3b8..9e13d9b 100644 (file)
@@ -153,10 +153,10 @@ void  IGESBasic_ToolOrderedGroup::OwnDump
   (const Handle(IGESBasic_OrderedGroup)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESBasic_OrderedGroup" << endl;
+  S << "IGESBasic_OrderedGroup" << Message_EndLine;
 
   S << "Entries in the Group : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
-  S << endl;
+  S << Message_EndLine;
 }
 
index ac8373a..c017574 100644 (file)
@@ -154,10 +154,10 @@ void  IGESBasic_ToolOrderedGroupWithoutBackP::OwnDump
   (const Handle(IGESBasic_OrderedGroupWithoutBackP)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESBasic_OrderedGroupWithoutBackP" << endl;
+  S << "IGESBasic_OrderedGroupWithoutBackP" << Message_EndLine;
 
   S << "Entries in the Group : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
-  S << endl;
+  S << Message_EndLine;
 }
 
index 0d724d1..76c43e7 100644 (file)
@@ -178,13 +178,13 @@ void  IGESBasic_ToolSingleParent::OwnDump
   (const Handle(IGESBasic_SingleParent)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESBasic_SingleParent" << endl;
+  S << "IGESBasic_SingleParent" << Message_EndLine;
 
-  S << "Number of ParentEntities : " << ent->NbParentEntities() << endl;
+  S << "Number of ParentEntities : " << ent->NbParentEntities() << Message_EndLine;
   S << "ParentEntity : ";
   dumper.Dump(ent->SingleParent(),S,(level <= 4) ? 0 : 1);
-  S << endl;
+  S << Message_EndLine;
   S << "Children : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbChildren(),ent->Child);
-  S << endl;
+  S << Message_EndLine;
 }
index 3987156..9aa9fc8 100644 (file)
@@ -161,13 +161,13 @@ void  IGESBasic_ToolSingularSubfigure::OwnDump
   (const Handle(IGESBasic_SingularSubfigure)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESBasic_SingularSubfigure" << endl;
+  S << "IGESBasic_SingularSubfigure" << Message_EndLine;
 
   S << "Subfigure Definition Entity : " ;
   dumper.Dump(ent->Subfigure(),S,(level <= 4) ? 0 : 1);
-  S << endl;
+  S << Message_EndLine;
   S << " Translation Data : ";
   IGESData_DumpXYZL(S,level, ent->Translation(), ent->Location());
-  S << "  Scale Factors : " << ent->ScaleFactor() << endl;
-  S << endl;
+  S << "  Scale Factors : " << ent->ScaleFactor() << Message_EndLine;
+  S << Message_EndLine;
 }
index 98ac5b0..f09f0f0 100644 (file)
@@ -144,13 +144,13 @@ void  IGESBasic_ToolSubfigureDef::OwnDump
   (const Handle(IGESBasic_SubfigureDef)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESBasic_SubfigureDef" << endl;
+  S << "IGESBasic_SubfigureDef" << Message_EndLine;
 
-  S << "Depth of the subfigure : " << ent->Depth() << endl;
+  S << "Depth of the subfigure : " << ent->Depth() << Message_EndLine;
   S << "Name of subfigure : ";
   IGESData_DumpString(S,ent->Name());
-  S << endl;
+  S << Message_EndLine;
   S << "The Associated Entities : " ;
   IGESData_DumpEntities(S,dumper,level,1,ent->NbEntities(),ent->AssociatedEntity);
-  S << endl;
+  S << Message_EndLine;
 }
index 964be28..635cea9 100644 (file)
@@ -208,7 +208,7 @@ Standard_Boolean IGESCAFControl_Reader::Transfer (Handle(TDocStd_Document) &doc)
           Handle(IGESGraph_Color) color = Handle(IGESGraph_Color)::DownCast ( ent->Color() );
           if ( color.IsNull() ) {
 #ifdef OCCT_DEBUG
-            cout << "Error: Unrecognized type of color definition" << endl;
+            std::cout << "Error: Unrecognized type of color definition" << std::endl;
 #endif
             IsColor = Standard_False;
           }
index 027df6b..fff75cc 100644 (file)
@@ -404,7 +404,7 @@ static void AttachLayer (const Handle(Transfer_FinderProcess) &FP,
       Igesent->InitLevel( 0, localIntName );
     }
 #ifdef OCCT_DEBUG
-    else cout << "Warning: Can't find entity for shape in mapper" << endl;
+    else std::cout << "Warning: Can't find entity for shape in mapper" << std::endl;
 #endif
   }
 }
index 5579001..9a4a54b 100644 (file)
@@ -309,7 +309,7 @@ static Standard_Boolean Connect (const Handle(ShapeAnalysis_Wire)& theSAW,
          if (!IGESToBRep::TransferPCurve (edge2d, edge3d, myface)) continue;
          if (sfe->FixReversed2d (edge3d, myface)) {
 #ifdef OCCT_DEBUG
-           cout << "Warning: IGESToBRep_IGESBoundary: 2D curve of edge was reversed" << endl;
+           std::cout << "Warning: IGESToBRep_IGESBoundary: 2D curve of edge was reversed" << std::endl;
 #endif
          }
          //#74 rln 10.03.99 S4135: handling use of BRepLib::SameParameter by new static parameter
@@ -329,19 +329,19 @@ static Standard_Boolean Connect (const Handle(ShapeAnalysis_Wire)& theSAW,
          //pdn 08.04.99 S4135 recomputing only if deviation is greater than maxtol
          if (maxdev > maxtol) { //:e2
 #ifdef OCCT_DEBUG
-           cout << "Warning: IGESToBRep_IGESBoundary: Deviation = " << maxdev << endl;
+           std::cout << "Warning: IGESToBRep_IGESBoundary: Deviation = " << maxdev << std::endl;
 #endif
            ShapeFix_ShapeTolerance().SetTolerance (edge3d, Precision::Confusion());
            for (Standard_Integer ie = 1; ie <= iedge; ie++)
              ShapeBuild_Edge().RemovePCurve (Lsewd3d->Edge (ie), myface);
            if (Preferred3d) {
 #ifdef OCCT_DEBUG
-             cout << "Warning: IGESToBRep_IGESBoundary: 3D and 2D curves are inconsistent; 2D is ignored" << endl;
+             std::cout << "Warning: IGESToBRep_IGESBoundary: 3D and 2D curves are inconsistent; 2D is ignored" << std::endl;
 #endif
            }
            else {
 #ifdef OCCT_DEBUG
-             cout << "Warning: IGESToBRep_IGESBoundary: 3D and 2D curves are inconsistent; 3D is ignored" << endl;
+             std::cout << "Warning: IGESToBRep_IGESBoundary: 3D and 2D curves are inconsistent; 3D is ignored" << std::endl;
 #endif
              Lsewd = Lsewd2d;
            }
@@ -352,7 +352,7 @@ static Standard_Boolean Connect (const Handle(ShapeAnalysis_Wire)& theSAW,
       okCurve = okCurve && ShapeAlgo::AlgoContainer()->ConnectNextWire (saw, Lsewd, maxtol, distmin, revsewd, revnextsewd);
       if (!okCurve) {
 #ifdef OCCT_DEBUG
-       cout << "Warning: IGESToBRep_IGESBoundary: Curves " << i - 1 << " and " << i << " cannot be connected" << endl;
+       std::cout << "Warning: IGESToBRep_IGESBoundary: Curves " << i - 1 << " and " << i << " cannot be connected" << std::endl;
 #endif
         Gsewd3d = new ShapeExtend_WireData;
         for (Standard_Integer j = 1; j <= len3d; j++) {
index f904b4c..1c0c812 100644 (file)
@@ -172,7 +172,7 @@ void  IGESControl_Reader::PrintTransferInfo
 
         sprintf(mess,"%d\t%d\t%s\t%s", igesEnt->TypeNumber(), igesEnt->FormNumber(),
         "%d", aBinder->ResultTypeName());
-        //cout << mess << endl;
+        //std::cout << mess << std::endl;
         if (aMapCountMapping.IsBound(mess))
           aMapCountMapping.ChangeFind(mess)++;
         else
@@ -209,7 +209,7 @@ void  IGESControl_Reader::PrintTransferInfo
       }
       for(i = 1; i<= nf; i++) {
         sprintf(mess,"\t F\t%d\t%d\t%s",type,form,aCheck->CFail(i));
-        // TF << mess << endl;
+        // TF << mess << std::endl;
         if (aMapCount.IsBound(mess))
           aMapCount.ChangeFind(mess)++;
         else
@@ -247,7 +247,7 @@ void  IGESControl_Reader::PrintTransferInfo
       NCollection_DataMap<TCollection_AsciiString, Handle(TColStd_HSequenceOfInteger)>::Iterator aMapListIter(aMapList);
       for(; aMapCountIter.More() && aMapListIter.More();
             aMapCountIter.Next(), aMapListIter.Next()) {
-        TF << aMapCountIter.Value() << aMapCountIter.Key() << endl;
+        TF << aMapCountIter.Value() << aMapCountIter.Key() << Message_EndLine;
         if (mode == IFSelect_ListByItem) {
           Handle(TColStd_HSequenceOfInteger) entityList = aMapListIter.Value();
           Standard_Integer length = entityList->Length();
@@ -267,7 +267,7 @@ void  IGESControl_Reader::PrintTransferInfo
               TF << line;
             }
           }
-          TF << endl;
+          TF << Message_EndLine;
         }
       }
       break;
@@ -281,7 +281,7 @@ void  IGESControl_Reader::PrintTransferInfo
       NCollection_DataMap<TCollection_AsciiString, Standard_Integer>::Iterator aMapIter(aMapCountResult);
       for (; aMapIter.More(); aMapIter.Next())
       {
-        TF << aMapIter.Key() << aMapIter.Value() << endl;
+        TF << aMapIter.Key() << aMapIter.Value() << Message_EndLine;
       }
       break;
     }
@@ -299,7 +299,7 @@ void  IGESControl_Reader::PrintTransferInfo
 
             sprintf(mess, "%d\t%d \t%s\t%s", root->TypeNumber(), root->FormNumber(),
               "%d", "Failed");
-            //cout << mess << endl;
+            //std::cout << mess << std::endl;
             if (aMapCountMapping.IsBound(mess))
               aMapCountMapping.ChangeFind(mess)++;
             else
@@ -311,7 +311,7 @@ void  IGESControl_Reader::PrintTransferInfo
       for(; aMapCountIter.More(); aMapCountIter.Next()) {
         char mess[80];
         sprintf(mess, aMapCountIter.Key().ToCString(), aMapCountIter.Value());
-        TF << mess << endl; //dicoCountIter.Value() << dicoCountIter.Name() << endl;
+        TF << mess << Message_EndLine; //dicoCountIter.Value() << dicoCountIter.Name() << std::endl;
       }
       break;
     }
index a5f4f65..8c07d4f 100644 (file)
@@ -233,7 +233,7 @@ Standard_Boolean IGESControl_Writer::Write
   ComputeModel();
   Standard_Integer nbEnt = myModel->NbEntities();
 #ifdef OCCT_DEBUG
-  cout<<" IGES Write : "<<nbEnt<<" ent.s"<< flush;
+  std::cout<<" IGES Write : "<<nbEnt<<" ent.s"<< std::flush;
 #endif
   if(!nbEnt)
     return Standard_False;
@@ -241,12 +241,12 @@ Standard_Boolean IGESControl_Writer::Write
 //  ne pas oublier le mode fnes ... a transmettre a IW
   IW.SendModel (IGESSelect_WorkLibrary::DefineProtocol());
 #ifdef OCCT_DEBUG
-  cout<<" ...  ecriture  ..."<<flush;
+  std::cout<<" ...  ecriture  ..."<<std::flush;
 #endif
   if (fnes) IW.WriteMode() = 10;
   Standard_Boolean status = IW.Print(S);
 #ifdef OCCT_DEBUG
-  cout<<" ...  fichier ecrit  ..."<<endl;
+  std::cout<<" ...  fichier ecrit  ..."<<std::endl;
 #endif
   return status;
 }
@@ -254,11 +254,11 @@ Standard_Boolean IGESControl_Writer::Write
 Standard_Boolean IGESControl_Writer::Write
   (const Standard_CString file, const Standard_Boolean fnes)
 {
-  ofstream fout;
-  OSD_OpenStream(fout,file,ios::out);
+  std::ofstream fout;
+  OSD_OpenStream(fout,file,std::ios::out);
   if (!fout) return Standard_False;
 #ifdef OCCT_DEBUG
-  cout<<" Ecriture fichier ("<< (fnes ? "fnes" : "IGES") <<"): "<<file<<endl;
+  std::cout<<" Ecriture fichier ("<< (fnes ? "fnes" : "IGES") <<"): "<<file<<std::endl;
 #endif
   Standard_Boolean res = Write (fout,fnes);
 
index 60f87c9..fa23835 100644 (file)
@@ -142,7 +142,7 @@ static Handle(IGESData_DefaultSpecific)   speci;
   gsys->AssignCat
 #ifdef HPUX
     ("HP-UX");
-  cout<<"--  OSD_Path::SystemVersion, does not work well on HP-UX"<<endl;
+  std::cout<<"--  OSD_Path::SystemVersion, does not work well on HP-UX"<<std::endl;
 #endif
 #ifndef HPUX
     (host.SystemVersion().ToCString());
index 067c34a..5226ac9 100644 (file)
@@ -196,7 +196,7 @@ Standard_Boolean IGESData_BasicEditor::SetUnitName (const Standard_CString name)
        Standard_Integer nums = themodel->Number(sh.Value());
        if (igt == 402 || igt == 404) subs.SetValue (nums,subs.Value(nums) | 2);
        else subs.SetValue (nums,subs.Value(nums) | 1);
-////   cout<<"ComputeStatus : nums = "<<nums<<" ->"<<subs.Value(nums)<<endl;
+////   std::cout<<"ComputeStatus : nums = "<<nums<<" ->"<<subs.Value(nums)<<std::endl;
       }
     }
 //  UseFlag (a propager)
@@ -232,7 +232,7 @@ Standard_Boolean IGESData_BasicEditor::SetUnitName (const Standard_CString name)
     Standard_Integer uf = ent->UseFlag();
     if (uf == 0) uf = G.Status(i);
     Standard_Integer hy = ent->HierarchyStatus();
-////    cout<<" Ent.n0."<<i<<" Subord="<<subs.Value(i)<<" Use="<<uf<<endl;
+////    std::cout<<" Ent.n0."<<i<<" Subord="<<subs.Value(i)<<" Use="<<uf<<std::endl;
     ent->InitStatus(bl,subs.Value(i),uf,hy);
   }
 }
index f471808..cc0d0ad 100644 (file)
@@ -40,7 +40,7 @@ IGESData_DefaultSpecific::IGESData_DefaultSpecific ()
 
   Standard_Integer dstat = lent->DirStatus();
   if (dstat != 0) S
-    << " --  Directory Entry Error Status = " << dstat << "  --" << endl;
+    << " --  Directory Entry Error Status = " << dstat << "  --" << Message_EndLine;
   Handle(Interface_UndefinedContent) cont = lent->UndefinedContent();
   Standard_Integer nb = cont->NbParams();
   S << " UNDEFINED ENTITY ...\n"<<nb
@@ -54,7 +54,7 @@ IGESData_DefaultSpecific::IGESData_DefaultSpecific ()
       dumper.PrintDNum(anent,S);
     }
     else {  S<<"       ["<<i<<"]=" << cont->ParamValue(i);  }
-    if ( i == (i%5)*5) S << endl;
+    if ( i == (i%5)*5) S << Message_EndLine;
   }
-  S << endl;
+  S << Message_EndLine;
 }
index 4c07c3a..98cbe33 100644 (file)
@@ -94,10 +94,10 @@ IGESData_IGESDumper::IGESData_IGESDumper
   case 5 :    S<<"Complete";  break;
   default :   S<<"Complete + Transformed Values";  break;
   }
-  S<<" )    ****"<<endl;
+  S<<" )    ****"<<Message_EndLine;
 
 // ****    Entity 1234:D2467  **  Type:102 Form:56  **  CompositeCurve  **
-  S<<"\n****    Entity ";  PrintShort (ent,S);  S<<endl;
+  S<<"\n****    Entity ";  PrintShort (ent,S);  S<<Message_EndLine;
 
   S<<"              Directory Part\n";
 // **      Status :   Blank:1    Subordinate:2    UseFlag:3    Hierarchy:4
@@ -109,7 +109,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<<endl;
+    if (ent->HasShortLabel())  S<<Message_EndLine;
 
     if (ent->HasTransf())
       {  S<<"**      Transf.Matrix :";  PrintDNum(ent->Transf(),S); S<<"\n"; }
@@ -141,13 +141,13 @@ IGESData_IGESDumper::IGESData_IGESDumper
     if (ent->LineWeightNumber() != 0) {
       S   <<"**      LineWeight Num:"<<ent->LineWeightNumber();
       if (diratt > 0) S<<"    ->  Value:"<<ent->LineWeight();
-      S<<endl;
+      S<<Message_EndLine;
     }
     if (ent->DefColor() == IGESData_DefValue)
       {  S<<"**      Color Value   :"<<ent->RankColor();  }
     else if (ent->DefColor() == IGESData_DefReference)
       {  S<<"**      Color Ref     :";  PrintDNum (ent->Color(),S); }
-    S<<endl;
+    S<<Message_EndLine;
 
     if (own > 3) {
       S<<"****             Own Data             ****\n\n";
@@ -178,7 +178,7 @@ IGESData_IGESDumper::IGESData_IGESDumper
     }
   }
   if (iasuit) {  if (att <= 1) S << "\n";  }
-  S<<"\n****             End of Dump          ****\n"<<endl;
+  S<<"\n****             End of Dump          ****\n"<<Message_EndLine;
 }
 
 
@@ -191,8 +191,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()<<endl;
+    S <<"  ****  Dump impossible. Type "<<ent->DynamicType()->Name()<<Message_EndLine;
   else
     S <<"  ****  Dump Impossible, n0:id:"<<themodel->Number(ent)<<":D"
-      <<themodel->DNum(ent)<<" Type "<<ent->DynamicType()->Name()<<endl;
+      <<themodel->DNum(ent)<<" Type "<<ent->DynamicType()->Name()<<Message_EndLine;
 }
index 98df9cf..a620d49 100644 (file)
@@ -78,11 +78,11 @@ void IGESData_IGESModel::DumpHeader
   (const Handle(Message_Messenger)& S, const Standard_Integer ) const
 {
   Standard_Integer ns = thestart->Length();
-  S<<"****    Dump of IGES Model , Start and Global Sections   ****"<<endl;
+  S<<"****    Dump of IGES Model , Start and Global Sections   ****"<<Message_EndLine;
   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()<<endl;
+      S<<"["<<(i<10 ? " ": "")<<i<<"]:"<<thestart->Value(i)->ToCString()<<Message_EndLine;
   }
   S << "\n****    Global Section    ****\n";
   char sep = theheader.Separator();
@@ -94,16 +94,16 @@ void IGESData_IGESModel::DumpHeader
   S<<"\n";
   Handle(TCollection_HAsciiString) str;
   str = theheader.SendName();
-  if (!str.IsNull()) S<<"[ 3]  Sender                : "<<str->ToCString()<<endl;
+  if (!str.IsNull()) S<<"[ 3]  Sender                : "<<str->ToCString()<<Message_EndLine;
   str = theheader.FileName();
-  if (!str.IsNull()) S<<"[ 4]  (recorded) File Name  : "<<str->ToCString()<<endl;
+  if (!str.IsNull()) S<<"[ 4]  (recorded) File Name  : "<<str->ToCString()<<Message_EndLine;
   str = theheader.SystemId();
-  if (!str.IsNull()) S<<"[ 5]  System Identification : "<<str->ToCString()<<endl;
+  if (!str.IsNull()) S<<"[ 5]  System Identification : "<<str->ToCString()<<Message_EndLine;
   str = theheader.InterfaceVersion();
-  if (!str.IsNull()) S<<"[ 6]  Interface Version     : "<<str->ToCString()<<endl;
-  S<<endl;
+  if (!str.IsNull()) S<<"[ 6]  Interface Version     : "<<str->ToCString()<<Message_EndLine;
+  S<<Message_EndLine;
   S << "[ 7]  Integer Bits          : " << theheader.IntegerBits()
-    << "          Features for Reals : " << endl;
+    << "          Features for Reals : " << Message_EndLine;
   S << "[ 8]  Single Max.Power(10)  : " << theheader.MaxPower10Single();
   S << "         [ 9]  Digits   : " << theheader.MaxDigitsSingle()<<"\n";
   S << "[10]  Double Max.Power(10)  : " << theheader.MaxPower10Double();
@@ -143,21 +143,21 @@ void IGESData_IGESModel::DumpHeader
   num = theheader.DraftingStandard();
   S << "\n[24]  Drafting Standard     : " << num;
   if (num > 0) S<< "   -> Name : " << IGESData_BasicEditor::DraftingName(num);
-  S<<endl;
+  S<<Message_EndLine;
 
   if (theheader.HasLastChangeDate()) {
     str = theheader.LastChangeDate();
     S <<  "[25]  Last Change Date      : " << str->ToCString() 
-      <<"  i.e. "<<IGESData_GlobalSection::NewDateString(str,1)->ToCString()<<endl;
+      <<"  i.e. "<<IGESData_GlobalSection::NewDateString(str,1)->ToCString()<<Message_EndLine;
   }
-  else S<<"[25]  Last Change Date        not defined (version IGES < 5.1)" << endl;
+  else S<<"[25]  Last Change Date        not defined (version IGES < 5.1)" << Message_EndLine;
 
   if (theheader.HasApplicationProtocol()) {
     str = theheader.ApplicationProtocol();
-    S <<  "[26]  Application Protocol  : " << str->ToCString() <<endl;
+    S <<  "[26]  Application Protocol  : " << str->ToCString() <<Message_EndLine;
   }
 
-  S << " ****     End of Dump      ****"<<endl;
+  S << " ****     End of Dump      ****"<<Message_EndLine;
 }
 
 
index 609568e..8a2b9a9 100644 (file)
@@ -121,7 +121,7 @@ void IGESData_IGESWriter::SendStartLine (const Standard_CString startline)
 
   Standard_Integer nb = themodel->NbEntities();
 #ifdef PATIENCELOG
-  sout<< " IGESWriter : " << nb << " Entities (* = 1000 Ent.s)" << endl;
+  sout<< " IGESWriter : " << nb << " Entities (* = 1000 Ent.s)" << std::endl;
 #endif
   SectionS   ();
   Standard_Integer ns = themodel->NbStartLines();
@@ -133,11 +133,11 @@ void IGESData_IGESWriter::SendStartLine (const Standard_CString startline)
     Handle(IGESData_IGESEntity) ent = themodel->Entity(i);
     Handle(IGESData_IGESEntity) cnt = ent;
 #ifdef PATIENCELOG
-    if (i % 1000 == 1) cout << "*" << flush;
+    if (i % 1000 == 1) std::cout << "*" << std::flush;
 #endif
 //  Attention aux cas d erreur : contenu redefini
     if (themodel->IsRedefinedContent(i)) {
-      sout << " --  IGESWriter : Erroneous Entity N0."<<i<<"  --"<<endl;
+      sout << " --  IGESWriter : Erroneous Entity N0."<<i<<"  --"<<Message_EndLine;
       Handle(Interface_ReportEntity) rep = themodel->ReportEntity(i);
       if (!rep.IsNull()) cnt = GetCasted(IGESData_IGESEntity,rep->Content());
       if (cnt.IsNull())  cnt = ent;    // secours
@@ -156,14 +156,14 @@ 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()<<endl;
+      <<cnt->TypeNumber()<<"  Form "<<cnt->FormNumber()<<Message_EndLine;
 
     Associativities (cnt);
     Properties      (cnt);
     EndEntity ();
   }
 #ifdef PATIENCELOG
-  cout << " Envoi des Entites Termine"<<endl;
+  std::cout << " Envoi des Entites Termine"<<std::endl;
 #endif
   SectionT();
 }
@@ -502,12 +502,12 @@ Standard_Boolean IGESData_IGESWriter::Print (Standard_OStream& S) const
   Standard_Integer nbs = 1;
   if (thestar.IsNull()) {
     if (fnes) {
-      S << "                              ***  EUCLID/STRIM  DESKTOP CLIPBOARD  ***"<<endl;
+      S << "                              ***  EUCLID/STRIM  DESKTOP CLIPBOARD  ***"<<std::endl;
       writefnes (S,"                                                                        S0000001");
     }
     else S<<"                                                                        S0000001";
 //      123456789 123456789 123456789 123456789 123456789 123456789 123456789 12
-    S << endl;
+    S << std::endl;
   } else {
     nbs = thestar->Length();
     for (i = 1; i <= nbs; i ++) {
@@ -521,11 +521,11 @@ Standard_Boolean IGESData_IGESWriter::Print (Standard_OStream& S) const
       S << &blancs[line->Length()];
       if (fnes) writefnes (S,finlin);
       else S << finlin;
-      S << endl;
+      S << std::endl;
     }
   }
 #ifdef PATIENCELOG
-  cout << "Global Section : " << flush;
+  std::cout << "Global Section : " << std::flush;
 #endif
   isGood = S.good();
 //  Global Section  :  convertie dans <thehead>
@@ -541,19 +541,19 @@ Standard_Boolean IGESData_IGESWriter::Print (Standard_OStream& S) const
     S << &blancs[line->Length()];
     if (fnes) writefnes (S,finlin);
     else S << finlin;
-    S << endl;
+    S << std::endl;
     isGood = S.good();
   }
   if(!isGood)
     return isGood;
 #ifdef PATIENCELOG
-  cout << nbg << " lines" << endl;
+  std::cout << nbg << " lines" << std::endl;
 #endif
 
 //  Directory Section
   Standard_Integer nbd = thedirs.Upper();   // 0 -> NbEnts
 #ifdef PATIENCELOG
-  cout << "\nDirectory section : " << nbd << " Entites" << endl;
+  std::cout << "\nDirectory section : " << nbd << " Entites" << std::endl;
 #endif
   for (i = 1; i <= nbd && isGood ; i ++) {
     Standard_Integer v[17]; char res1[9],res2[9],lab[9],num[9];
@@ -573,18 +573,18 @@ Standard_Boolean IGESData_IGESWriter::Print (Standard_OStream& S) const
     if (fnes) writefnes (S,ligne);
     else S << ligne;
     S<< "\n";
-//    cout << "Ent.no "<<i<<" No en P "<<thepnum.Value(i)<<
-//      " Lignes P:"<<thepnum.Value(i+1)-thepnum.Value(i)<<endl;
+//    std::cout << "Ent.no "<<i<<" No en P "<<thepnum.Value(i)<<
+//      " Lignes P:"<<thepnum.Value(i+1)-thepnum.Value(i)<<std::endl;
 //    for (j = 0; j < 17; j ++) S<<v[j]<<" ";
-//    S<<res1<<res2<<" label:"<<lab<<" subnum:"<<num<<endl;
+//    S<<res1<<res2<<" label:"<<lab<<" subnum:"<<num<<std::endl;
     isGood = S.good();
   }
   if(!isGood)
     return isGood;
 //  Parameter Section
 #ifdef PATIENCELOG
-  cout<<" Parameter Section : "<<thepnum.Value(nbd)-1
-      <<" lines (* = 1000 lines) "<<flush;
+  std::cout<<" Parameter Section : "<<thepnum.Value(nbd)-1
+      <<" lines (* = 1000 lines) "<<std::flush;
 #endif
 
   blancs[MaxcarsP] = '\0';
@@ -601,11 +601,11 @@ Standard_Boolean IGESData_IGESWriter::Print (Standard_OStream& S) const
       S << &blancs[line->Length()];
       if (fnes) writefnes (S,finlin);
       else S << finlin;
-      S << endl;
+      S << std::endl;
       isGood = S.good();
 #ifdef PATIENCELOG
       lignespatience --;
-      if (lignespatience <= 0) {  cout<<"*"<<flush;  lignespatience = 1000;  }
+      if (lignespatience <= 0) {  std::cout<<"*"<<std::flush;  lignespatience = 1000;  }
 #endif
     }
   }
@@ -622,8 +622,8 @@ Standard_Boolean IGESData_IGESWriter::Print (Standard_OStream& S) const
   S.flush();
   isGood = S.good();
 #ifdef PATIENCELOG
-  cout <<"\n Section T (lines counts) : G "<<nbg<<"   D "<<nbd
-       <<"   P "<<thepnum.Value(thepnum.Length())-1<<"   T 1"<<endl;
+  std::cout <<"\n Section T (lines counts) : G "<<nbg<<"   D "<<nbd
+       <<"   P "<<thepnum.Value(thepnum.Length())-1<<"   T 1"<<std::endl;
 #endif
   return isGood;
 }
index a4a0154..b3889c4 100644 (file)
@@ -42,7 +42,7 @@ void  IGESData_ReadWriteModule::Read
    Handle(Interface_Check)& , const Handle(Standard_Transient)& ) const 
 {
 #ifdef OCCT_DEBUG
-  cout<<"IGESData_ReadWriteModule, Read called"<<endl;
+  std::cout<<"IGESData_ReadWriteModule, Read called"<<std::endl;
 #endif
 }
   // IGESReaderTool fait tout
index 56fd097..86991d5 100644 (file)
@@ -179,37 +179,37 @@ void  IGESDefs_ToolAssociativityDef::OwnDump
   (const Handle(IGESDefs_AssociativityDef)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const 
 { 
-  S << "IGESDefs_AssociativityDef" << endl;
-  S << "Number of Class Definitions : " << ent->NbClassDefs() << endl;
-  S << "Back Pointer Requirement  : " << endl
-  S << "Ordered / Unordered Class : " << endl;
-  S << "Number Of Items per Entry : " << endl;
-  S << "Items : " << endl
+  S << "IGESDefs_AssociativityDef" << Message_EndLine;
+  S << "Number of Class Definitions : " << ent->NbClassDefs() << Message_EndLine;
+  S << "Back Pointer Requirement  : " << Message_EndLine
+  S << "Ordered / Unordered Class : " << Message_EndLine;
+  S << "Number Of Items per Entry : " << Message_EndLine;
+  S << "Items : " << Message_EndLine
   IGESData_DumpVals(S,-level,1, ent->NbClassDefs(),ent->BackPointerReq);
-  S << endl;
+  S << Message_EndLine;
   if (level > 4)
     {
 // Warning : Item is a JAGGED Array
       Standard_Integer upper = ent->NbClassDefs();
       for (Standard_Integer i = 1; i <= upper; i ++) {
-       S << "[" << i << "]: " << endl;
+       S << "[" << i << "]: " << Message_EndLine;
        S << "Back Pointer Requirement : "  << ent->BackPointerReq(i) << "  ";
        if (ent->IsBackPointerReq(i)) S << "(Yes)  ";
        else                          S << "(No)   ";
        S << " Ordered/Unordered Class : "  << ent->ClassOrder(i) << " ";
-       if (ent->IsOrdered(i)) S << "(Yes)" <<endl;
-       else                   S << "(No)"  <<endl;
+       if (ent->IsOrdered(i)) S << "(Yes)" <<Message_EndLine;
+       else                   S << "(No)"  <<Message_EndLine;
        S << "Number Of Items per Entry : " << ent->NbItemsPerClass(i);
        if (level < 6) {
-         S << " [ask level > 5 for more]" << endl;
+         S << " [ask level > 5 for more]" << Message_EndLine;
          continue;
        }
-       S << endl << " [";
+       S << Message_EndLine << " [";
        for (Standard_Integer j = 1; j <= ent->NbItemsPerClass(i); j ++)
          S << "  " << ent->Item(i,j);
-       S << "]" << endl;
+       S << "]" << Message_EndLine;
       }
     }
-  S << endl;
+  S << Message_EndLine;
 }
 
index 1aba523..6d546f2 100644 (file)
@@ -445,19 +445,19 @@ void IGESDefs_ToolAttributeDef::OwnDump
 {
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
 
-  S << "IGESDefs_AttributeDef" << endl;
+  S << "IGESDefs_AttributeDef" << Message_EndLine;
   S << "Attribute Table Name: ";
   IGESData_DumpString(S,ent->TableName());
-  S << endl;
-  S << "Attribute List Type  : " << ent->ListType() << endl;
-  S << "Number of Attributes : " << ent->NbAttributes() << endl;
-  S << "Attribute Types : " << endl;
-  S << "Attribute Value Data Types : " << endl;
-  S << "Attribute Value Counts : " << endl;
-  if (ent->HasValues())       S << "Attribute Values : " << endl;
-  if (ent->HasTextDisplay())  S << "Attribute Value Entities : " << endl;
+  S << Message_EndLine;
+  S << "Attribute List Type  : " << ent->ListType() << Message_EndLine;
+  S << "Number of Attributes : " << ent->NbAttributes() << Message_EndLine;
+  S << "Attribute Types : " << Message_EndLine;
+  S << "Attribute Value Data Types : " << Message_EndLine;
+  S << "Attribute Value Counts : " << Message_EndLine;
+  if (ent->HasValues())       S << "Attribute Values : " << Message_EndLine;
+  if (ent->HasTextDisplay())  S << "Attribute Value Entities : " << Message_EndLine;
   IGESData_DumpVals(S,-level,1, ent->NbAttributes(),ent->AttributeType);
-  S << endl;
+  S << Message_EndLine;
   if (level > 4)
     {
       Standard_Integer upper = ent->NbAttributes();
@@ -478,11 +478,11 @@ void IGESDefs_ToolAttributeDef::OwnDump
            case 6 : S << " : Logical ";  break;
            default :   break;
          }
-          S << "   Count : " << avc << endl;
+          S << "   Count : " << avc << Message_EndLine;
           if (ent->HasValues())
            {
              if (level <= 5) {
-               S << " [ content (Values) : ask level > 5 ]" << endl;
+               S << " [ content (Values) : ask level > 5 ]" << Message_EndLine;
                continue;
              }
               for (Standard_Integer j = 1; j <= avc; j ++)
@@ -512,10 +512,10 @@ void IGESDefs_ToolAttributeDef::OwnDump
                       S << "  Attribute Value Pointer : ";
                       dumper.Dump (ent->AttributeTextDisplay(i,j),S, sublevel);
                    }
-                 S << endl;
+                 S << Message_EndLine;
                }
            }
        }
     }
-  S << endl;
+  S << Message_EndLine;
 }
index a8840d5..9c7d1a7 100644 (file)
@@ -303,18 +303,18 @@ void  IGESDefs_ToolAttributeTable::OwnDump
   (const Handle(IGESDefs_AttributeTable)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 { 
-  S << "IGESDefs_AttributeTable" << endl;
+  S << "IGESDefs_AttributeTable" << Message_EndLine;
 
   Handle(IGESDefs_AttributeDef) ab = ent->Definition();
 
   Standard_Integer na = ent->NbAttributes();
   Standard_Integer nr = ent->NbRows();
   if (ent->FormNumber() == 1)
-    S << "Number of Rows (i.e. complete sets of Attributes) : " << nr << endl;
-  else S << "One set of Attributes" << endl;
-  S << "Number of defined Attributes : " << na << endl;
+    S << "Number of Rows (i.e. complete sets of Attributes) : " << nr << Message_EndLine;
+  else S << "One set of Attributes" << Message_EndLine;
+  S << "Number of defined Attributes : " << na << Message_EndLine;
   if (level <= 4) S <<
-    " [ structure : see Structure in Directory Entry; content : level > 4 ]" <<endl;
+    " [ structure : see Structure in Directory Entry; content : level > 4 ]" <<Message_EndLine;
   else
     for (Standard_Integer k = 1; k <= nr; k ++)
       {
@@ -347,8 +347,8 @@ void  IGESDefs_ToolAttributeTable::OwnDump
                default : break;
              }
            }
-           S << endl;
+           S << Message_EndLine;
          }
       }
-  S << endl;
+  S << Message_EndLine;
 }
index ecd88ba..19708e7 100644 (file)
@@ -257,23 +257,23 @@ void  IGESDefs_ToolGenericData::OwnDump
   (const Handle(IGESDefs_GenericData)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESDefs_GenericData" << endl;
-  S << "Number of property values : " << ent->NbPropertyValues() << endl;
+  S << "IGESDefs_GenericData" << Message_EndLine;
+  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
   S << "Property Name : ";
   IGESData_DumpString(S,ent->Name());
-  S << endl;
+  S << Message_EndLine;
   switch (level)
     {
     case 4:
-      S << "Types  : " << endl;
-      S << "Values : Count = " << ent->NbTypeValuePairs() << endl;
-      S << "      [ as level > 4 for content ]" << endl;
+      S << "Types  : " << Message_EndLine;
+      S << "Values : Count = " << ent->NbTypeValuePairs() << Message_EndLine;
+      S << "      [ as level > 4 for content ]" << Message_EndLine;
       break;
     case 5:
     case 6:
       {
        Standard_Integer i, num;
-       S << "Types & Values : " << endl;
+       S << "Types & Values : " << Message_EndLine;
        for ( num = ent->NbTypeValuePairs(), i = 1; i <= num; i++ )
           {
            S << "[" << i << "]: ";
@@ -293,9 +293,9 @@ void  IGESDefs_ToolGenericData::OwnDump
                << (ent->ValueAsLogical(i) ? "True" : "False");  break;
              default : break;
              }
-           S << endl;
+           S << Message_EndLine;
           }
       }
     }
-  S << endl;
+  S << Message_EndLine;
 }
index 34cb319..1c04816 100644 (file)
@@ -145,14 +145,14 @@ void  IGESDefs_ToolMacroDef::OwnDump
   (const Handle(IGESDefs_MacroDef)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const 
 { 
-  S << "IGESDefs_MacroDef" << endl;
+  S << "IGESDefs_MacroDef" << Message_EndLine;
   S << "MACRO : ";
   IGESData_DumpString(S,ent->MACRO());
-  S << endl;
-  S << "Entity Type ID : " << ent->EntityTypeID() << endl;
+  S << Message_EndLine;
+  S << "Entity Type ID : " << ent->EntityTypeID() << Message_EndLine;
   S << "Language Statement : ";
   IGESData_DumpStrings(S ,level,1, ent->NbStatements(),ent->LanguageStatement);
   S << "END MACRO : ";
   IGESData_DumpString(S,ent->ENDMACRO());
-  S << endl;
+  S << Message_EndLine;
 }
index b36ac44..0817534 100644 (file)
@@ -228,29 +228,29 @@ void IGESDefs_ToolTabularData::OwnDump
   Standard_Integer nbIndeps = ent->NbIndependents(); //szv#4:S4163:12Mar99 i unused
   Standard_Integer nbDeps = ent->NbDependents();
 
-  S << "IGESDefs_TabularData" << endl;
-  S << "No. of property values : " << ent->NbPropertyValues() << endl;
-  S << "Property type : " << ent->PropertyType() << endl;
-  S << "No. of Dependent variables    : " << nbDeps << endl;
-  S << "No. of Independent variables  : " << nbIndeps << endl;
+  S << "IGESDefs_TabularData" << Message_EndLine;
+  S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
+  S << "Property type : " << ent->PropertyType() << Message_EndLine;
+  S << "No. of Dependent variables    : " << nbDeps << Message_EndLine;
+  S << "No. of Independent variables  : " << nbIndeps << Message_EndLine;
   S << "Type of independent variables : ";
   IGESData_DumpVals(S ,level,1, nbIndeps,ent->TypeOfIndependents);
-  S << endl << "Number of values of independent variables : ";
+  S << Message_EndLine << "Number of values of independent variables : ";
   IGESData_DumpVals(S ,level,1, nbIndeps,ent->NbValues);
 // ?? JAGGED ??
-  S << endl << "Values of the independent variable : ";
+  S << Message_EndLine << "Values of the independent variable : ";
   if (level < 5) S << " [ask level > 4]";
   else {
     for (Standard_Integer ind = 1; ind <= nbIndeps; ind ++) {
-      S << endl << "[" << ind << "]:";
+      S << Message_EndLine << "[" << ind << "]:";
       Standard_Integer nbi = ent->NbValues(ind);
       for (Standard_Integer iv = 1; iv <= nbi; iv ++)
        S << " " << ent->IndependentValue(ind,iv);
     }
   }
 //  IGESData_DumpVals(S ,level,1, nbIndeps,ent->IndependentValue);
-  S << endl << "Values of the dependent variable : ";
+  S << Message_EndLine << "Values of the dependent variable : ";
 //  IGESData_DumpVals(S ,level,1, nbDeps,ent->DependentValue);
   S << "  TO BE DONE";
-  S << endl;
+  S << Message_EndLine;
 }
index 70ee924..c92dca5 100644 (file)
@@ -155,27 +155,27 @@ void  IGESDefs_ToolUnitsData::OwnDump
   (const Handle(IGESDefs_UnitsData)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const 
 { 
-  S << "IGESDefs_UnitsData" << endl;
-  S << "Number of Units : " << ent->NbUnits() << endl;
-  S << "Type of Unit : " << endl;
-  S << "Value of Unit : " << endl;
-  S << "Scale Factor : " << endl;
+  S << "IGESDefs_UnitsData" << Message_EndLine;
+  S << "Number of Units : " << ent->NbUnits() << Message_EndLine;
+  S << "Type of Unit : " << Message_EndLine;
+  S << "Value of Unit : " << Message_EndLine;
+  S << "Scale Factor : " << Message_EndLine;
   IGESData_DumpStrings(S,-level,1, ent->NbUnits(),ent->UnitType);
-  S << endl;
+  S << Message_EndLine;
   if (level > 4)
     {
-      S << "Details of the Units" << endl;
+      S << "Details of the Units" << Message_EndLine;
       Standard_Integer upper = ent->NbUnits();
       for (Standard_Integer i = 1; i <= upper; i++)
        {
           S << "[" << i << "] Type  : ";
           IGESData_DumpString(S,ent->UnitType(i));
-          S << endl;
+          S << Message_EndLine;
           S << "     Value : ";
           IGESData_DumpString(S,ent->UnitValue(i));
-          S << endl;
-          S << "     ScaleFactor: " << ent->ScaleFactor(i) << endl;
+          S << Message_EndLine;
+          S << "     ScaleFactor: " << ent->ScaleFactor(i) << Message_EndLine;
        }
     }
-  S << endl;
+  S << Message_EndLine;
 }
index be3a30a..699b06f 100644 (file)
@@ -147,24 +147,24 @@ void  IGESDimen_ToolAngularDimension::OwnDump
 { 
   Standard_Integer sublevel  = (level > 4) ? 1 : 0;
 
-  S << "IGESDimen_AngularDimension" << endl;
+  S << "IGESDimen_AngularDimension" << Message_EndLine;
   S << "General Note Entity   : ";
   dumper.Dump(ent->Note(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "First  Witness Entity : ";
   dumper.Dump(ent->FirstWitnessLine(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Second Witness Entity : ";
   dumper.Dump(ent->SecondWitnessLine(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Vertex Point Co-ords  : ";
-  IGESData_DumpXYL(S,level, ent->Vertex(), ent->Location());  S << endl;
-  S << "Radius of Leader arcs : " << ent->Radius() << endl;
+  IGESData_DumpXYL(S,level, ent->Vertex(), ent->Location());  S << Message_EndLine;
+  S << "Radius of Leader arcs : " << ent->Radius() << Message_EndLine;
   S << "First  Leader Entity  : ";
   dumper.Dump(ent->FirstLeader(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Second Leader Entity  : ";
   dumper.Dump(ent->SecondLeader(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
 }
 
index b684113..b440d4a 100644 (file)
@@ -121,16 +121,16 @@ void  IGESDimen_ToolBasicDimension::OwnDump
   (const Handle(IGESDimen_BasicDimension)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
 { 
-  S << "IGESDimen_BasicDimension" << endl;
-  S << "Number of Property Values : " << ent->NbPropertyValues() << endl;
-  S << endl << "  Lower left corner  : " ;
+  S << "IGESDimen_BasicDimension" << Message_EndLine;
+  S << "Number of Property Values : " << ent->NbPropertyValues() << Message_EndLine;
+  S << Message_EndLine << "  Lower left corner  : " ;
   IGESData_DumpXY(S, ent->LowerLeft());
-  S << endl << "  Lower right corner : " ;
+  S << Message_EndLine << "  Lower right corner : " ;
   IGESData_DumpXY(S, ent->LowerRight());
-  S << endl << "  Upper right corner : " ;
+  S << Message_EndLine << "  Upper right corner : " ;
   IGESData_DumpXY(S, ent->UpperRight());
-  S << endl << "  Upper left corner  : ";
+  S << Message_EndLine << "  Upper left corner  : ";
   IGESData_DumpXY(S, ent->UpperLeft());
-  S << endl;
+  S << Message_EndLine;
 }
 
index 8741ecf..e4334fd 100644 (file)
@@ -159,14 +159,14 @@ void  IGESDimen_ToolCenterLine::OwnDump
   (const Handle(IGESDimen_CenterLine)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const 
 { 
-  S << "IGESDimen_CenterLine" << endl;
-  if (ent->IsCrossHair()) S << "Cross Hair" << endl;
-  else                    S << "Through Circle Centers" << endl;
+  S << "IGESDimen_CenterLine" << Message_EndLine;
+  if (ent->IsCrossHair()) S << "Cross Hair" << Message_EndLine;
+  else                    S << "Through Circle Centers" << Message_EndLine;
   S << "Data Type : "             << ent->Datatype() << "  ";
   S << "Number of Data Points : " << ent->NbPoints()  << "  ";
   S << "Common Z displacement : " << ent->ZDisplacement() << "  ";
-  S << "Data Points : " << endl;
+  S << "Data Points : " << Message_EndLine;
   IGESData_DumpListXYLZ(S ,level,1, ent->NbPoints(),ent->Point,
                        ent->Location(), ent->ZDisplacement());
-  S << endl;
+  S << Message_EndLine;
 }
index ec285b5..e3b4314 100644 (file)
@@ -157,26 +157,26 @@ void  IGESDimen_ToolCurveDimension::OwnDump
 { 
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
 
-  S << "IGESDimen_CurveDimension" << endl;
+  S << "IGESDimen_CurveDimension" << Message_EndLine;
   S << "General Note Entity   : ";
   dumper.Dump(ent->Note(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "First  Curve   Entity : ";
   dumper.Dump(ent->FirstCurve(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Second Curve   Entity : ";
   dumper.Dump(ent->SecondCurve(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "First  Leader  Entity : ";
   dumper.Dump(ent->FirstLeader(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Second Leader  Entity : ";
   dumper.Dump(ent->SecondLeader(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "First  Witness Entity : ";
   dumper.Dump(ent->FirstWitnessLine(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Second Witness Entity : ";
   dumper.Dump(ent->SecondWitnessLine(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
 }
index 7d9e4c1..56082c2 100644 (file)
@@ -123,18 +123,18 @@ void  IGESDimen_ToolDiameterDimension::OwnDump
 { 
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
 
-  S << "IGESDimen_DiameterDimension" << endl;
+  S << "IGESDimen_DiameterDimension" << Message_EndLine;
   S << "General Note Entity : ";
   dumper.Dump(ent->Note(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "First  Leader Entity : ";
   dumper.Dump(ent->FirstLeader(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Second Leader Entity : ";
   dumper.Dump(ent->SecondLeader(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Center Point : ";
   IGESData_DumpXYL(S,level, ent->Center(), ent->Location());
-  S << endl;
+  S << Message_EndLine;
 }
 
index 9c0d46e..0802eea 100644 (file)
@@ -271,88 +271,88 @@ void  IGESDimen_ToolDimensionDisplayData::OwnDump
   (const Handle(IGESDimen_DimensionDisplayData)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESDimen_DimensionDisplayData" << endl;
+  S << "IGESDimen_DimensionDisplayData" << Message_EndLine;
 
-  S << "No. of property values : " << ent->NbPropertyValues() << endl;
+  S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
 
   S << "DimensionType : "  << ent->DimensionType() ;
   switch (ent->DimensionType()) {
-    case 0  :  S << " (Ordinary)"  << endl;  break;
-    case 1  :  S << " (Reference)" << endl;  break;
-    case 2  :  S << " (Basic)"     << endl;  break;
-    default :  S << " (Incorrect Value)" << endl;  break;
+    case 0  :  S << " (Ordinary)"  << Message_EndLine;  break;
+    case 1  :  S << " (Reference)" << Message_EndLine;  break;
+    case 2  :  S << " (Basic)"     << Message_EndLine;  break;
+    default :  S << " (Incorrect Value)" << Message_EndLine;  break;
   }
 
   S << "Preferred Label Position : "  << ent->LabelPosition();
   switch (ent->LabelPosition()) {
-    case 0  :  S << " (Does not exist)"     << endl;  break;
-    case 1  :  S << " (Before Measurement)" << endl;  break;
-    case 2  :  S << " (After Measurement)"  << endl;  break;
-    case 3  :  S << " (Above Measurement)"  << endl;  break;
-    case 4  :  S << " (Below Measurement)"  << endl;  break;
-    default :  S << " (Incorrect Value)"    << endl;  break;
+    case 0  :  S << " (Does not exist)"     << Message_EndLine;  break;
+    case 1  :  S << " (Before Measurement)" << Message_EndLine;  break;
+    case 2  :  S << " (After Measurement)"  << Message_EndLine;  break;
+    case 3  :  S << " (Above Measurement)"  << Message_EndLine;  break;
+    case 4  :  S << " (Below Measurement)"  << Message_EndLine;  break;
+    default :  S << " (Incorrect Value)"    << Message_EndLine;  break;
   }
 
   S << "Character set interpretation : " << ent->CharacterSet() ;
   switch (ent->CharacterSet()) 
     {
-    case 1    : S << " (Standard ASCII)" << endl; break;
-    case 1001 : S << " (Symbol Font 1)" << endl; break;
-    case 1002 : S << " (Symbol Font 2)" << endl; break;
-    case 1003 : S << " (Drafting Font)" << endl; break;
-    default   : S << " (Not meaningful)" << endl; break;
+    case 1    : S << " (Standard ASCII)" << Message_EndLine; break;
+    case 1001 : S << " (Symbol Font 1)" << Message_EndLine; break;
+    case 1002 : S << " (Symbol Font 2)" << Message_EndLine; break;
+    case 1003 : S << " (Drafting Font)" << Message_EndLine; break;
+    default   : S << " (Not meaningful)" << Message_EndLine; break;
   }
 
   S << "LString : ";
   IGESData_DumpString(S,ent->LString());
-  S << endl;
+  S << Message_EndLine;
 
   S << "Decimal Symbol : ";
-  if (ent->DecimalSymbol() == 0)  S << "0 (.)" << endl;
-  else                            S << "1 (,)" << endl;
+  if (ent->DecimalSymbol() == 0)  S << "0 (.)" << Message_EndLine;
+  else                            S << "1 (,)" << Message_EndLine;
 
-  S << "Witness Line Angle : " << ent->WitnessLineAngle() << endl;
+  S << "Witness Line Angle : " << ent->WitnessLineAngle() << Message_EndLine;
   S << "Text Alignment : " ;
-  if      (ent->TextAlignment() == 0 )    S << "0 (Horizontal)" << endl;
-  else if (ent->TextAlignment() == 1 )    S << "1 (Parallel)" << endl;
-  else     S <<  ent->TextAlignment() << " (Incorrect Value)" << endl;
+  if      (ent->TextAlignment() == 0 )    S << "0 (Horizontal)" << Message_EndLine;
+  else if (ent->TextAlignment() == 1 )    S << "1 (Parallel)" << Message_EndLine;
+  else     S <<  ent->TextAlignment() << " (Incorrect Value)" << Message_EndLine;
 
   S << "Text Level : " << ent->TextLevel();
   switch (ent->TextLevel()) {
-    case 0  :  S << " (Neither above nor below)" << endl;  break;
-    case 1  :  S << " (Above)"                   << endl;  break;
-    case 2  :  S << " (Below)"                   << endl;  break;
-    default :  S << " (Incorrect Value)"         << endl;  break;
+    case 0  :  S << " (Neither above nor below)" << Message_EndLine;  break;
+    case 1  :  S << " (Above)"                   << Message_EndLine;  break;
+    case 2  :  S << " (Below)"                   << Message_EndLine;  break;
+    default :  S << " (Incorrect Value)"         << Message_EndLine;  break;
   }
 
   S << "Preferred Text placement : " << ent->TextPlacement();
   switch (ent->TextPlacement()) {
-    case 0  :  S << " (Between witness lines)"               << endl;  break;
-    case 1  :  S << " (Outside near the first witness line)" << endl;  break;
-    case 2  :  S << " (Outside near second witness line)"    << endl;  break;
-    default :  S << " (Incorrect Value)"                     << endl;  break;
+    case 0  :  S << " (Between witness lines)"               << Message_EndLine;  break;
+    case 1  :  S << " (Outside near the first witness line)" << Message_EndLine;  break;
+    case 2  :  S << " (Outside near second witness line)"    << Message_EndLine;  break;
+    default :  S << " (Incorrect Value)"                     << Message_EndLine;  break;
   }
 
   S << "Arrow Head Orientation : "  << ent->ArrowHeadOrientation();
-  if      (ent->ArrowHeadOrientation() == 0) S << " (In, pointing out)" <<endl;
-  else if (ent->ArrowHeadOrientation() == 1) S << " (Out, pointing in)" <<endl;
-  else                                       S << " (Incorrect Value)" << endl;
+  if      (ent->ArrowHeadOrientation() == 0) S << " (In, pointing out)" <<Message_EndLine;
+  else if (ent->ArrowHeadOrientation() == 1) S << " (Out, pointing in)" <<Message_EndLine;
+  else                                       S << " (Incorrect Value)" << Message_EndLine;
 
   Standard_Integer nbnotes = ent->NbSupplementaryNotes();
-  S << " Primary Dimension Value : " << ent->InitialValue() << endl;
-  S << " Number of Supplementary Notes : " << nbnotes <<endl;
+  S << " Primary Dimension Value : " << ent->InitialValue() << Message_EndLine;
+  S << " Number of Supplementary Notes : " << nbnotes <<Message_EndLine;
   S << "Supplementary Notes , ";
   S << " Start Index , ";
-  S << " End   Index : " << endl;
+  S << " End   Index : " << Message_EndLine;
   IGESData_DumpVals(S,-level,1, nbnotes,ent->EndIndex);
-  S << endl;
+  S << Message_EndLine;
   if (level > 4)
     for (Standard_Integer i = 1; i <= nbnotes; i ++)
       {
-       S << "[" << i << "]: " << endl;
+       S << "[" << i << "]: " << Message_EndLine;
        S << "Supplementary Note : " << ent->SupplementaryNote(i);
        S << ", Start Index : " << ent->StartIndex(i);
-       S << ", End Index : "   << ent->EndIndex(i) << endl;
+       S << ", End Index : "   << ent->EndIndex(i) << Message_EndLine;
       }
-  S << endl;
+  S << Message_EndLine;
 }
index 24887e1..6c0e436 100644 (file)
@@ -155,15 +155,15 @@ void  IGESDimen_ToolDimensionTolerance::OwnDump
   (const Handle(IGESDimen_DimensionTolerance)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
 {
-  S << "IGESDimen_DimensionTolerance" << endl;
-  S << "Number of property values : " << ent->NbPropertyValues() << endl;
-  S << "Secondary Tolerance Flag : " << ent->SecondaryToleranceFlag() << endl;
-  S << "Tolerance Type           : " << ent->ToleranceType() << endl;
-  S << "Tolerance Placement Flag : " << ent->TolerancePlacementFlag() << endl;
-  S << "Upper Tolerance          : " << ent->UpperTolerance() << endl;
-  S << "Lower Tolerance          : " << ent->LowerTolerance() << endl;
-  S << "Sign Suppression Flag    : " << ( ent->SignSuppressionFlag() ? "True" : "False" ) << endl;
-  S << "Fraction Flag            : " << ent->FractionFlag() << endl;
-  S << "Precision                : " << ent->Precision() << endl;
+  S << "IGESDimen_DimensionTolerance" << Message_EndLine;
+  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
+  S << "Secondary Tolerance Flag : " << ent->SecondaryToleranceFlag() << Message_EndLine;
+  S << "Tolerance Type           : " << ent->ToleranceType() << Message_EndLine;
+  S << "Tolerance Placement Flag : " << ent->TolerancePlacementFlag() << Message_EndLine;
+  S << "Upper Tolerance          : " << ent->UpperTolerance() << Message_EndLine;
+  S << "Lower Tolerance          : " << ent->LowerTolerance() << Message_EndLine;
+  S << "Sign Suppression Flag    : " << ( ent->SignSuppressionFlag() ? "True" : "False" ) << Message_EndLine;
+  S << "Fraction Flag            : " << ent->FractionFlag() << Message_EndLine;
+  S << "Precision                : " << ent->Precision() << Message_EndLine;
 }
 
index 13f2db3..beeddd4 100644 (file)
@@ -151,16 +151,16 @@ void  IGESDimen_ToolDimensionUnits::OwnDump
   (const Handle(IGESDimen_DimensionUnits)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer /* level */) const
 {
-  S << "IGESDimen_DimensionUnits" << endl;
-  S << "Number of property values : " << ent->NbPropertyValues() << endl;
-  S << "Secondary Dimension Position : " << ent->SecondaryDimenPosition() << endl;
-  S << "Units Indicator : " << ent->UnitsIndicator() << endl;
-  S << "Character Set   : " << ent->CharacterSet() << endl;
+  S << "IGESDimen_DimensionUnits" << Message_EndLine;
+  S << "Number of property values : " << ent->NbPropertyValues() << Message_EndLine;
+  S << "Secondary Dimension Position : " << ent->SecondaryDimenPosition() << Message_EndLine;
+  S << "Units Indicator : " << ent->UnitsIndicator() << Message_EndLine;
+  S << "Character Set   : " << ent->CharacterSet() << Message_EndLine;
   S << "Format String   : ";
   IGESData_DumpString(S,ent->FormatString());
-  S << endl;
+  S << Message_EndLine;
   S << "Fraction Flag   : " << ent->FractionFlag();
   if (ent->FractionFlag() == 0) S << " Decimal  , Precision   : ";
   else                          S << " Fraction , Denominator : ";
-  S << ent->PrecisionOrDenominator() << endl;
+  S << ent->PrecisionOrDenominator() << Message_EndLine;
 }
index 70a0266..7d1b01a 100644 (file)
@@ -149,16 +149,16 @@ void  IGESDimen_ToolDimensionedGeometry::OwnDump
   (const Handle(IGESDimen_DimensionedGeometry)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)&  S, const Standard_Integer level) const 
 { 
-  S << "IGESDimen_DimensionedGeometry" << endl;
+  S << "IGESDimen_DimensionedGeometry" << Message_EndLine;
 
   //Standard_Integer lower = 1; //szv#4:S4163:12Mar99 unused
 //  Standard_Integer upper = ent->NbGeometryEntities();
 
-  S << "Number of Dimensions : " << ent->NbDimensions() << endl;
+  S << "Number of Dimensions : " << ent->NbDimensions() << Message_EndLine;
   S << "Dimension Entity : ";
   dumper.Dump(ent->DimensionEntity(),S,(level <= 4) ? 0 : 1);
-  S << endl;
+  S << Message_EndLine;
   S << "Geometry Entities : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbGeometryEntities(),ent->GeometryEntity);
-  S << endl;
+  S << Message_EndLine;
 }
index 39fe4bd..f6ff385 100644 (file)
@@ -152,14 +152,14 @@ void  IGESDimen_ToolFlagNote::OwnDump
 { 
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
 
-  S << "IGESDimen_FlagNote" << endl;
+  S << "IGESDimen_FlagNote" << Message_EndLine;
   S << "LowerLeftCorner : ";
   IGESData_DumpXYZL(S,level, ent->LowerLeftCorner(), ent->Location());
-  S << endl << "Rotation Angle: " << ent->Angle() << endl;
+  S << Message_EndLine << "Rotation Angle: " << ent->Angle() << Message_EndLine;
   S << "General Note Entity : ";
   dumper.Dump(ent->Note(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Number of Leaders : " << ent->NbLeaders() << "   Leaders : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbLeaders(),ent->Leader);
-  S << endl;
+  S << Message_EndLine;
 }
index a61b607..5b57e17 100644 (file)
@@ -133,13 +133,13 @@ void  IGESDimen_ToolGeneralLabel::OwnDump
 { 
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
 
-  S << "IGESDimen_GeneralLabel" << endl;
+  S << "IGESDimen_GeneralLabel" << Message_EndLine;
   S << "General Note Entity : ";
   dumper.Dump(ent->Note(),S, sublevel);
-  S << endl;
-  S << "Number of Leaders : " << ent->NbLeaders() << endl;
+  S << Message_EndLine;
+  S << "Number of Leaders : " << ent->NbLeaders() << Message_EndLine;
   S << "Leaders : "; 
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbLeaders(),ent->Leader);
-  S << endl;
+  S << Message_EndLine;
 }
 
index 08cf60d..b8f04fc 100644 (file)
@@ -337,48 +337,48 @@ void  IGESDimen_ToolGeneralNote::OwnDump
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
   Standard_Integer upper = ent->NbStrings();
 
-  S << "IGESDimen_GeneralNote" << endl;
-  S << "Number of Text Strings : " << upper << endl;
-  S << "Number of Characters : " << endl;
-  S << "Box Widths : " << endl;
-  S << "Box Heights : " << endl;
-  S << "Font Codes : " << endl;
-  S << "Font Entities : " << endl;
-  S << "Slant Angles : " << endl;
-  S << "Rotation Angles : " << endl;
-  S << "Mirror Flags : " << endl;
-  S << "Rotate Flags : " << endl;
-  S << "Start Points : " << endl;
+  S << "IGESDimen_GeneralNote" << Message_EndLine;
+  S << "Number of Text Strings : " << upper << Message_EndLine;
+  S << "Number of Characters : " << Message_EndLine;
+  S << "Box Widths : " << Message_EndLine;
+  S << "Box Heights : " << Message_EndLine;
+  S << "Font Codes : " << Message_EndLine;
+  S << "Font Entities : " << Message_EndLine;
+  S << "Slant Angles : " << Message_EndLine;
+  S << "Rotation Angles : " << Message_EndLine;
+  S << "Mirror Flags : " << Message_EndLine;
+  S << "Rotate Flags : " << Message_EndLine;
+  S << "Start Points : " << Message_EndLine;
   S << "Texts : ";
   IGESData_DumpVals(S,-level,1, ent->NbStrings(),ent->NbCharacters);
-  S << endl;
+  S << Message_EndLine;
   if (level > 4)
     {
-      S << "Details of each String" << endl;
+      S << "Details of each String" << Message_EndLine;
       for ( Standard_Integer i = 1; i <= upper; i++)
        {
-          S << "[" << i << "]: " << endl;
+          S << "[" << i << "]: " << Message_EndLine;
           S << "Number of Characters : " << ent->NbCharacters(i) << "  ";
           S << "Box Width  : " << ent->BoxWidth(i)  << "  ";
-          S << "Box Height : " << ent->BoxHeight(i) << endl;
+          S << "Box Height : " << ent->BoxHeight(i) << Message_EndLine;
           if (ent->IsFontEntity(i))
            {
               S << "Font Entity : ";
               dumper.Dump (ent->FontEntity(i),S, sublevel);
-              S << endl;
+              S << Message_EndLine;
            }
           else
-           S << "Font Code : " << ent->FontCode(i) << endl;
+           S << "Font Code : " << ent->FontCode(i) << Message_EndLine;
           S << "Slant Angle : " << ent->SlantAngle(i) << "  ";
           S << "Rotation Angle : " << ent->RotationAngle(i) << "  ";
           S << "Mirror Flag : " << ent->MirrorFlag(i) << "  ";
-          S << "Rotate Flag : " << ent->RotateFlag(i) << endl;
+          S << "Rotate Flag : " << ent->RotateFlag(i) << Message_EndLine;
           S << "Start Point : ";
           IGESData_DumpXYZL(S,level, ent->StartPoint(i), ent->Location());
           S << "\nText : ";
           IGESData_DumpString(S,ent->Text(i));
-          S << endl;
+          S << Message_EndLine;
        }
     }
-  S << endl;
+  S << Message_EndLine;
 }
index 83806c5..869047e 100644 (file)
@@ -176,12 +176,12 @@ void  IGESDimen_ToolGeneralSymbol::OwnDump
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
-  S << "IGESDimen_GeneralSymbol" << endl;
+  S << "IGESDimen_GeneralSymbol" << Message_EndLine;
   S << "General Note : ";
   dumper.Dump(ent->Note(),S, sublevel);
-  S << endl << "Geometric Entities : ";
+  S << Message_EndLine << "Geometric Entities : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbGeomEntities(),ent->GeomEntity);
-  S << endl << "Leader Arrows : ";
+  S << Message_EndLine << "Leader Arrows : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbLeaders(),ent->LeaderArrow);
-  S << endl;
+  S << Message_EndLine;
 }
index b50373f..47d5e0a 100644 (file)
@@ -144,15 +144,15 @@ void  IGESDimen_ToolLeaderArrow::OwnDump
   (const Handle(IGESDimen_LeaderArrow)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const 
 { 
-  S << "IGESDimen_LeaderArrow" << endl;
-  S << "Number of Segments : " << ent->NbSegments() << endl;
-  S << "Arrowhead Height   : " << ent->ArrowHeadHeight() << endl;
-  S << "Arrowhead Width    : " << ent->ArrowHeadWidth() << endl;
-  S << "Z depth            : " << ent->ZDepth() << endl;
+  S << "IGESDimen_LeaderArrow" << Message_EndLine;
+  S << "Number of Segments : " << ent->NbSegments() << Message_EndLine;
+  S << "Arrowhead Height   : " << ent->ArrowHeadHeight() << Message_EndLine;
+  S << "Arrowhead Width    : " << ent->ArrowHeadWidth() << Message_EndLine;
+  S << "Z depth            : " << ent->ZDepth() << Message_EndLine;
   S << "Arrowhead co-ords  : ";
   IGESData_DumpXYLZ(S,level,ent->ArrowHead(),ent->Location(),ent->ZDepth());
-  S << endl << "Segment Tails : "; 
+  S << Message_EndLine << "Segment Tails : "; 
   IGESData_DumpListXYLZ(S ,level,1, ent->NbSegments(),ent->SegmentTail,
                        ent->Location(), ent->ZDepth());
-  S << endl;
+  S << Message_EndLine;
 }
index d8cd1bc..ec97681 100644 (file)
@@ -134,24 +134,24 @@ void  IGESDimen_ToolLinearDimension::OwnDump
 { 
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
 
-  S << "IGESDimen_LinearDimension" << endl;
-  if      (ent->FormNumber() == 0) S << "     (Undetermined Form)" << endl;
-  else if (ent->FormNumber() == 1) S << "     (Diameter Form)" << endl;
-  else if (ent->FormNumber() == 2) S << "     (Radius Form)" << endl;
+  S << "IGESDimen_LinearDimension" << Message_EndLine;
+  if      (ent->FormNumber() == 0) S << "     (Undetermined Form)" << Message_EndLine;
+  else if (ent->FormNumber() == 1) S << "     (Diameter Form)" << Message_EndLine;
+  else if (ent->FormNumber() == 2) S << "     (Radius Form)" << Message_EndLine;
   S << "General Note Entity : ";
   dumper.Dump(ent->Note(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "First  Leader  Entity : ";
   dumper.Dump(ent->FirstLeader(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Second Leader  Entity : ";
   dumper.Dump(ent->SecondLeader(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "First  Witness Entity : ";
   dumper.Dump(ent->FirstWitness(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Second Witness Entity : ";
   dumper.Dump(ent->SecondWitness(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
 }
 
index 3a0763b..ec333b5 100644 (file)
@@ -215,28 +215,28 @@ void  IGESDimen_ToolNewDimensionedGeometry::OwnDump
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
   Standard_Integer i, num, sublevel = (level > 4) ? 1 : 0;
-  S << "IGESDimen_NewDimensionedGeometry" << endl;
-  S << "Number of Dimensions : " << ent->NbDimensions() << endl;
+  S << "IGESDimen_NewDimensionedGeometry" << Message_EndLine;
+  S << "Number of Dimensions : " << ent->NbDimensions() << Message_EndLine;
   S << "Dimension Entity : ";
   dumper.Dump(ent->DimensionEntity(),S, sublevel);
-  S << endl;
-  S << "Dimension Orientation Flag : " << ent->DimensionOrientationFlag() << endl;
-  S << "Angle Value Flag : " << ent->AngleValue() << endl;
-  S << "Geometry Entities : " << endl;
-  S << "Dimension Location Flags : " << endl;
+  S << Message_EndLine;
+  S << "Dimension Orientation Flag : " << ent->DimensionOrientationFlag() << Message_EndLine;
+  S << "Angle Value Flag : " << ent->AngleValue() << Message_EndLine;
+  S << "Geometry Entities : " << Message_EndLine;
+  S << "Dimension Location Flags : " << Message_EndLine;
   S << "Points : ";
   IGESData_DumpEntities(S,dumper,-level,1, ent->NbGeometries(),ent->GeometryEntity);
-  S << endl;
+  S << Message_EndLine;
   if (level > 4)
     for ( num = ent->NbGeometries(), i = 1; i <= num; i++ )
       {
-       S << "[" << i << "]: " << endl;
+       S << "[" << i << "]: " << Message_EndLine;
        S << "Geometry Entity : ";
        dumper.Dump (ent->GeometryEntity(i),S, 1);
-       S << endl;
-       S << "Dimension Location Flag : " << ent->DimensionLocationFlag(i) << endl;
+       S << Message_EndLine;
+       S << "Dimension Location Flag : " << ent->DimensionLocationFlag(i) << Message_EndLine;
        S << "Point : ";
        IGESData_DumpXYZL(S,level, ent->Point(i), ent->Location());
       }
-  S << endl;
+  S << Message_EndLine;
 }
index d6c2ba2..d42b25e 100644 (file)
@@ -463,77 +463,77 @@ void  IGESDimen_ToolNewGeneralNote::OwnDump
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
   Standard_Integer nbval = ent->NbStrings();
 
-  S << "IGESDimen_NewGeneralNote" << endl;
+  S << "IGESDimen_NewGeneralNote" << Message_EndLine;
   S << "Text Area  : Width : " << ent->TextWidth() << "  ";
   S << "Height : " << ent->TextHeight() << "  ";
-  S << "Justification Code  : " << ent->JustifyCode() << endl;
+  S << "Justification Code  : " << ent->JustifyCode() << Message_EndLine;
   S << "Text Area Location Point : ";
   IGESData_DumpXYZL(S,level, ent->AreaLocation(), ent->Location());
-  S << "Rotation Angle of Text : " << ent->AreaRotationAngle() << endl;
+  S << "Rotation Angle of Text : " << ent->AreaRotationAngle() << Message_EndLine;
   S << "Base Line Position : ";
   IGESData_DumpXYZL(S,level, ent->BaseLinePosition(), ent->Location());
-  S << "Normal Interline Spacing : " << ent->NormalInterlineSpace() << endl;
-  S << "Number of Text Strings : " << nbval << endl;
-
-  S << "Character Display : " << endl
-  S << "Character Width : " << endl
-  S << "Character Height : " << endl
-  S << "Inter Character Spacing : " << endl
-  S << "Interline Spacing : " << endl
-  S << "Font Styles : " << endl
-  S << "Character Angle : " << endl
-  S << "Control Code String : " << endl
-  S << "Number of Characters : " << endl
-  S << "Box Widths : " << endl
-  S << "Box Heights : " << endl
-  S << "Character Set Codes : " << endl
-  S << "Character Set Entities : " << endl
-  S << "Slant Angles : " << endl
-  S << "Rotation Angles : " << endl
-  S << "Mirror Flags : " << endl
-  S << "Rotate Flags : " << endl
-  S << "Start Points : " << endl
+  S << "Normal Interline Spacing : " << ent->NormalInterlineSpace() << Message_EndLine;
+  S << "Number of Text Strings : " << nbval << Message_EndLine;
+
+  S << "Character Display : " << Message_EndLine
+  S << "Character Width : " << Message_EndLine
+  S << "Character Height : " << Message_EndLine
+  S << "Inter Character Spacing : " << Message_EndLine
+  S << "Interline Spacing : " << Message_EndLine
+  S << "Font Styles : " << Message_EndLine
+  S << "Character Angle : " << Message_EndLine
+  S << "Control Code String : " << Message_EndLine
+  S << "Number of Characters : " << Message_EndLine
+  S << "Box Widths : " << Message_EndLine
+  S << "Box Heights : " << Message_EndLine
+  S << "Character Set Codes : " << Message_EndLine
+  S << "Character Set Entities : " << Message_EndLine
+  S << "Slant Angles : " << Message_EndLine
+  S << "Rotation Angles : " << Message_EndLine
+  S << "Mirror Flags : " << Message_EndLine
+  S << "Rotate Flags : " << Message_EndLine
+  S << "Start Points : " << Message_EndLine
   S << "Texts : "; 
   IGESData_DumpVals(S,-level,1, nbval, ent->NbCharacters);
-  S << endl;
+  S << Message_EndLine;
   if (level > 4)
     {
-      S << "Details of each String" << endl;
+      S << "Details of each String" << Message_EndLine;
       for ( Standard_Integer i = 1; i <= nbval; i++)
        {
-          S << "[" << i << "]: " << endl;
+          S << "[" << i << "]: " << Message_EndLine;
           S << "Character Display : " << ent->CharacterDisplay(i) << "  ";
           S << "Character Width   : " << ent->CharacterWidth(i)   << "  ";
-          S << "Character Height  : " << ent->CharacterHeight(i)  << endl;
+          S << "Character Height  : " << ent->CharacterHeight(i)  << Message_EndLine;
           S << "Inter Character Spacing : "<<ent->InterCharacterSpace(i)<<"  ";
-          S << "Interline Spacing : " << ent->InterlineSpace(i) << endl;
-          S << "Font Styles       : " << ent->FontStyle(i) << endl;
-          S << "Character Angle   : " << ent->CharacterAngle(i) << endl;
+          S << "Interline Spacing : " << ent->InterlineSpace(i) << Message_EndLine;
+          S << "Font Styles       : " << ent->FontStyle(i) << Message_EndLine;
+          S << "Character Angle   : " << ent->CharacterAngle(i) << Message_EndLine;
           S << "Control Code String : " ;
           IGESData_DumpString(S,ent->ControlCodeString(i));
-          S << endl;
+          S << Message_EndLine;
           S << "Number of Characters : " << ent->NbCharacters(i) << "  ";
           S << "Box Width  : " << ent->BoxWidth(i)  << "  ";
-          S << "Box Height : " << ent->BoxHeight(i) << endl;
+          S << "Box Height : " << ent->BoxHeight(i) << Message_EndLine;
           if (ent->IsCharSetEntity(i))
            {
               S << "Character Set Entity : ";
               dumper.Dump (ent->CharSetEntity(i),S, sublevel);
-              S << endl;
+              S << Message_EndLine;
            }
           else
-           S << "Character Set Code : " << ent->CharSetCode(i) << endl;
+           S << "Character Set Code : " << ent->CharSetCode(i) << Message_EndLine;
 
           S << "Slant Angle : "    << ent->SlantAngle(i) << "  ";
           S << "Rotation Angle : " << ent->RotationAngle(i) << "  ";
           S << "Mirror Flag : "    << ent->MirrorFlag(i) << "  ";
-          S << "Rotate Flag : "    << ent->RotateFlag(i) << endl;
+          S << "Rotate Flag : "    << ent->RotateFlag(i) << Message_EndLine;
           S << "Start Point : ";
           IGESData_DumpXYZL(S,level, ent->StartPoint(i), ent->Location());
           S << "Text : ";
           IGESData_DumpString(S,ent->Text(i));
-          S << endl;
+          S << Message_EndLine;
        }
     }
-  else S << endl;
+  else S << Message_EndLine;
 }
index 8b9d2c8..32fb62e 100644 (file)
@@ -153,22 +153,22 @@ void IGESDimen_ToolOrdinateDimension::OwnDump
   (const Handle(IGESDimen_OrdinateDimension)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESDimen_OrdinateDimension" << endl;
+  S << "IGESDimen_OrdinateDimension" << Message_EndLine;
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
   S << "General Note : ";
   dumper.Dump(ent->Note(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   Handle(IGESDimen_WitnessLine) witLine = ent->WitnessLine();
   Handle(IGESDimen_LeaderArrow) leadArr = ent->Leader();
   if (!witLine.IsNull()) {
     S << "Witness line : ";
     dumper.Dump(witLine,S, sublevel);
-    S << endl;
+    S << Message_EndLine;
   }
   if (!leadArr.IsNull()) {
     S << "Leader arrow :";
     dumper.Dump(leadArr,S, sublevel);
-    S << endl;
+    S << Message_EndLine;
   }
 }
index 99aff1a..22e8480 100644 (file)
@@ -113,19 +113,19 @@ void IGESDimen_ToolPointDimension::OwnDump
   (const Handle(IGESDimen_PointDimension)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESDimen_PointDimension" << endl;
+  S << "IGESDimen_PointDimension" << Message_EndLine;
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
   S << "General Note : ";
   dumper.Dump(ent->Note(),S , sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Leader Arrow : ";
   dumper.Dump(ent->LeaderArrow(),S , sublevel);
-  S << endl;
+  S << Message_EndLine;
   if (!ent->Geom().IsNull())
     {
       S << "Enclosing Entity : ";
       dumper.Dump(ent->Geom(),S , sublevel);
-      S << endl;
+      S << Message_EndLine;
     }
 }
index 507266c..4ca9fc7 100644 (file)
@@ -128,22 +128,22 @@ void IGESDimen_ToolRadiusDimension::OwnDump
   (const Handle(IGESDimen_RadiusDimension)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S,const Standard_Integer level) const
 {
-  S << "IGESDimen_RadiusDimension" << endl;
+  S << "IGESDimen_RadiusDimension" << Message_EndLine;
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
   S << "General note : ";
   dumper.Dump(ent->Note(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Leader arrow : ";
   dumper.Dump(ent->Leader(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Arc center : ";
   IGESData_DumpXYLZ(S,level,ent->Center(),ent->Location(),ent->Leader()->ZDepth());
   if (ent->HasLeader2())
     {
-      S << endl << "Leader arrow 2 : ";
+      S << Message_EndLine << "Leader arrow 2 : ";
       dumper.Dump(ent->Leader2(),S, sublevel);
-      S << endl;
+      S << Message_EndLine;
     }
-  S << endl;
+  S << Message_EndLine;
 }
index f978429..7c96992 100644 (file)
@@ -159,12 +159,12 @@ void  IGESDimen_ToolSection::OwnDump
   (const Handle(IGESDimen_Section)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const 
 { 
-  S << "IGESDimen_Section" << endl;
+  S << "IGESDimen_Section" << Message_EndLine;
   S << "Data Type   : "           << ent->Datatype() << "  ";
   S << "Number of Data Points : " << ent->NbPoints()  << "  ";
-  S << "Common Z displacement : " << ent->ZDisplacement() << endl;
+  S << "Common Z displacement : " << ent->ZDisplacement() << Message_EndLine;
   S << "Data Points : "; 
   IGESData_DumpListXYLZ(S ,level,1, ent->NbPoints(),ent->Point,
                        ent->Location(), ent->ZDisplacement());
-  S << endl;
+  S << Message_EndLine;
 }
index addac05..4789837 100644 (file)
@@ -160,18 +160,18 @@ void IGESDimen_ToolSectionedArea::OwnDump
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDimen_SectionedArea" << endl;
+  S << "IGESDimen_SectionedArea" << Message_EndLine;
   S << (ent->IsInverted() ? "Inverted Cross Hatches" : "Standard Cross Hatches");
 
   S << " - Exterior curve : ";
   dumper.Dump(ent->ExteriorCurve(),S, sublevel);
-  S << endl;
-  S << "Fill pattern code : " << ent->Pattern() << endl;
+  S << Message_EndLine;
+  S << "Fill pattern code : " << ent->Pattern() << Message_EndLine;
   S << "Passing point : ";
-  IGESData_DumpXYZL(S,level, ent->PassingPoint(), ent->Location());  S << endl;
-  S << "Distance between lines : " << ent->Distance() << endl;
-  S << "Angle between lines and X axis : " << ent->Angle() << endl;
+  IGESData_DumpXYZL(S,level, ent->PassingPoint(), ent->Location());  S << Message_EndLine;
+  S << "Distance between lines : " << ent->Distance() << Message_EndLine;
+  S << "Angle between lines and X axis : " << ent->Angle() << Message_EndLine;
   S << "Island Curve : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbIslands(),ent->IslandCurve);
-  S << endl;
+  S << Message_EndLine;
 }
index 84f0527..3ba0df7 100644 (file)
@@ -160,12 +160,12 @@ void  IGESDimen_ToolWitnessLine::OwnDump
   (const Handle(IGESDimen_WitnessLine)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const 
 { 
-  S << "IGESDimen_WitnessLine" << endl;
+  S << "IGESDimen_WitnessLine" << Message_EndLine;
   S << "Data Type   : "           << ent->Datatype() << "  ";
   S << "Number of Data Points : " << ent->NbPoints() << "  ";
-  S << "Common Z displacement : " << ent->ZDisplacement() << endl;
+  S << "Common Z displacement : " << ent->ZDisplacement() << Message_EndLine;
   S << "Data Points : "; 
   IGESData_DumpListXYLZ(S ,level,1, ent->NbPoints(),ent->Point,
                    ent->Location(), ent->ZDisplacement());
-  S << endl;
+  S << Message_EndLine;
 }
index 5822fa6..d9b87e2 100644 (file)
@@ -165,21 +165,21 @@ void IGESDraw_ToolCircArraySubfigure::OwnDump
 {
   Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_CircArraySubfigure" << endl;
+  S << "IGESDraw_CircArraySubfigure" << Message_EndLine;
 
   S << "Base Entity : ";
   dumper.Dump(ent->BaseEntity(),S, tempSubLevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Total Number Of Possible Instance Locations : " << ent->NbLocations()
-    << endl;
+    << Message_EndLine;
   S << "Imaginary Circle. Radius : " << ent->CircleRadius() << "  Center : ";
-  IGESData_DumpXYZL(S, level, ent->CenterPoint(), ent->Location());  S << endl;
+  IGESData_DumpXYZL(S, level, ent->CenterPoint(), ent->Location());  S << Message_EndLine;
   S << "Start Angle (in radians) : " << ent->StartAngle() << "  ";
-  S << "Delta Angle (in radians) : " << ent->DeltaAngle() << endl;
+  S << "Delta Angle (in radians) : " << ent->DeltaAngle() << Message_EndLine;
   S << "Do-Dont Flag : ";
-  if (ent->DoDontFlag())     S << "Dont" << endl;
-  else                       S << "Do" << endl;
+  if (ent->DoDontFlag())     S << "Dont" << Message_EndLine;
+  else                       S << "Do" << Message_EndLine;
   S << "The Do-Dont List : ";
   IGESData_DumpVals(S ,level,1, ent->ListCount(),ent->ListPosition);
-  S << endl;
+  S << Message_EndLine;
 }
index 4e6d7e2..866f74b 100644 (file)
@@ -207,28 +207,28 @@ void IGESDraw_ToolConnectPoint::OwnDump
 {
   Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_ConnectPoint" << endl;
+  S << "IGESDraw_ConnectPoint" << Message_EndLine;
 
   S << "Connection Point Coordinate : ";
   IGESData_DumpXYZL(S, level, ent->Point(), ent->Location());
   S << "Display Symbol Geometry Entity : ";
   dumper.Dump(ent->DisplaySymbol(),S, tempSubLevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Type Flag : "     << ent->TypeFlag() << "  "
-    << "Function Flag : " << ent->FunctionFlag() << endl;
+    << "Function Flag : " << ent->FunctionFlag() << Message_EndLine;
   S << "Function Identifier : ";
   IGESData_DumpString(S,ent->FunctionIdentifier());
-  S << endl << "Text Display Template Entity for CID : ";
+  S << Message_EndLine << "Text Display Template Entity for CID : ";
   dumper.Dump(ent->IdentifierTemplate(),S, tempSubLevel);
-  S << endl << "Function Name : ";
+  S << Message_EndLine << "Function Name : ";
   IGESData_DumpString(S,ent->FunctionName());
-  S << endl << "Text Display Template Entity for CFN : ";
+  S << Message_EndLine << "Text Display Template Entity for CFN : ";
   dumper.Dump(ent->FunctionTemplate(),S, tempSubLevel);
-  S << endl;
-  S << "Point Identifier : " << ent->PointIdentifier() << endl
+  S << Message_EndLine;
+  S << "Point Identifier : " << ent->PointIdentifier() << Message_EndLine
     << "Function Code : "    << ent->FunctionCode()
-    << "Swap Flag : "        << ( ent->SwapFlag() ? "True" : "False" ) << endl;
+    << "Swap Flag : "        << ( ent->SwapFlag() ? "True" : "False" ) << Message_EndLine;
   S << "Owner Subfigure Entity : ";
   dumper.Dump(ent->OwnerSubfigure(),S, tempSubLevel);
-  S << endl;
+  S << Message_EndLine;
 }
index 418b255..200803d 100644 (file)
@@ -266,17 +266,17 @@ void IGESDraw_ToolDrawing::OwnDump
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_Drawing" << endl;
+  S << "IGESDraw_Drawing" << Message_EndLine;
 
-  S << "View Entities            : " << endl
+  S << "View Entities            : " << Message_EndLine
     << "Transformed View Origins : ";
   S << "Count = "      << ent->NbViews();
   switch (level)
     {
-    case 4 : S << " [ ask level > 4 for content ]" << endl;
+    case 4 : S << " [ ask level > 4 for content ]" << Message_EndLine;
       break; // Nothing to be dumped here
     case 5 :        // Presently level 5 and 6 have the same Dump
-      S << endl;
+      S << Message_EndLine;
       Standard_FALLTHROUGH
     case 6 :
       {
@@ -284,17 +284,17 @@ void IGESDraw_ToolDrawing::OwnDump
        Standard_Integer up  = ent->NbViews();
        for (I = 1; I <= up; I++)
          {
-           S << endl << "[" << I << "] ";
+           S << Message_EndLine << "[" << I << "] ";
            S << "View Entity : ";
            dumper.Dump (ent->ViewItem(I),S, sublevel);
-           S << endl;
+           S << Message_EndLine;
            S << "Transformed View Origin : ";
            IGESData_DumpXY(S, ent->ViewOrigin(I));
          }
       }
       break;
     }
-  S << endl << "Annotation Entities : ";
+  S << Message_EndLine << "Annotation Entities : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbAnnotations(),ent->Annotation);
-  S << endl;
+  S << Message_EndLine;
 }
index 5c281f9..ea24785 100644 (file)
@@ -286,12 +286,12 @@ void IGESDraw_ToolDrawingWithRotation::OwnDump
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_DrawingWithRotation" << endl;
+  S << "IGESDraw_DrawingWithRotation" << Message_EndLine;
 
-  S << "View Entities            : " << endl
-    << "Transformed View Origins : " << endl
+  S << "View Entities            : " << Message_EndLine
+    << "Transformed View Origins : " << Message_EndLine
     << "Orientation Angles : ";
-  S << "Count = "      << ent->NbViews() << endl;
+  S << "Count = "      << ent->NbViews() << Message_EndLine;
 
   if (level > 4)    // Level = 4 : no Dump. Level = 5 & 6 have same Dump
     {
@@ -299,16 +299,16 @@ void IGESDraw_ToolDrawingWithRotation::OwnDump
       Standard_Integer up  = ent->NbViews();
       for (I = 1; I <= up; I++)
        {
-         S << "[" << I << "]:" << endl;
+         S << "[" << I << "]:" << Message_EndLine;
          S << "View Entity : ";
          dumper.Dump (ent->ViewItem(I),S, sublevel);
-         S << endl;
+         S << Message_EndLine;
          S << "Transformed View Origin : ";
          IGESData_DumpXY(S, ent->ViewOrigin(I));
-         S << "  Orientation Angle : " << ent->OrientationAngle(I) << endl;
+         S << "  Orientation Angle : " << ent->OrientationAngle(I) << Message_EndLine;
        }
     }
   S << "Annotation Entities : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbAnnotations(),ent->Annotation);
-  S << endl;
+  S << Message_EndLine;
 }
index a0c7492..d4b76bf 100644 (file)
@@ -208,35 +208,35 @@ void IGESDraw_ToolLabelDisplay::OwnDump
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_LabelDisplay" << endl;
+  S << "IGESDraw_LabelDisplay" << Message_EndLine;
 
-  S << "View Entities       : " << endl
-    << "Text Locations      : " << endl
-    << "Leader Entities     : " << endl
-    << "Label Level Numbers : " << endl
+  S << "View Entities       : " << Message_EndLine
+    << "Text Locations      : " << Message_EndLine
+    << "Leader Entities     : " << Message_EndLine
+    << "Label Level Numbers : " << Message_EndLine
     << "Displayed Entities  : ";
-  S << "Count = "      << ent->NbLabels() << endl;
+  S << "Count = "      << ent->NbLabels() << Message_EndLine;
   if (level > 4)  // Level = 4 : no Dump. Level = 5 & 6 : same Dump
     {
       Standard_Integer I;
       Standard_Integer up  = ent->NbLabels();
       for (I = 1; I <= up; I ++)
        {
-         S << "[" << I << "]:" << endl;
+         S << "[" << I << "]:" << Message_EndLine;
          S << "View Entity : ";
          dumper.Dump (ent->ViewItem(I),S, sublevel);
-         S << endl;
+         S << Message_EndLine;
          S << "Text Location in View : ";
          IGESData_DumpXYZL(S,level, ent->TextLocation(I), ent->Location());
          S << "  Leader Entity in View : ";
          dumper.Dump (ent->LeaderEntity(I),S, sublevel);
-         S << endl;
+         S << Message_EndLine;
          S << "Entity Label Level Number : ";
          S << ent->LabelLevel(I) << "  ";
          S << "Displayed Entity : ";
          dumper.Dump (ent->DisplayedEntity(I),S, sublevel);
-         S << endl;
+         S << Message_EndLine;
        }
     }
-  S << endl;
+  S << Message_EndLine;
 }
index 3bab598..c5e1748 100644 (file)
@@ -230,20 +230,20 @@ void IGESDraw_ToolNetworkSubfigure::OwnDump
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_NetworkSubfigure" << endl;
+  S << "IGESDraw_NetworkSubfigure" << Message_EndLine;
 
   S << "Network Subfigure Definition Entity : ";
   dumper.Dump(ent->SubfigureDefinition(),S, sublevel);
-  S << endl << "Translation Data : ";
+  S << Message_EndLine << "Translation Data : ";
   IGESData_DumpXYZL(S,level, ent->Translation(), ent->Location());
-  S << endl << "Scale Factors    : ";
+  S << Message_EndLine << "Scale Factors    : ";
   IGESData_DumpXYZ(S, ent->ScaleFactors());
-  S << endl << "Type Flag : " << ent->TypeFlag() << endl;
+  S << Message_EndLine << "Type Flag : " << ent->TypeFlag() << Message_EndLine;
   S << "Primary Reference Designator : ";
   IGESData_DumpString(S,ent->ReferenceDesignator());
-  S << endl << "Text Display Template Entity : ";
+  S << Message_EndLine << "Text Display Template Entity : ";
   dumper.Dump(ent->DesignatorTemplate(),S, sublevel);
-  S << endl << "Connect Points  : ";
+  S << Message_EndLine << "Connect Points  : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbConnectPoints(),ent->ConnectPoint);
-  S << endl;
+  S << Message_EndLine;
 }
index 5911613..faa30fe 100644 (file)
@@ -227,19 +227,19 @@ void IGESDraw_ToolNetworkSubfigureDef::OwnDump
 {
   Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_NetworkSubfigureDef" << endl;
+  S << "IGESDraw_NetworkSubfigureDef" << Message_EndLine;
 
-  S << "Depth Of Subfigure(Nesting)  : " << ent->Depth() << endl;
+  S << "Depth Of Subfigure(Nesting)  : " << ent->Depth() << Message_EndLine;
   S << "Name Of Subfigure            : ";
   IGESData_DumpString(S,ent->Name());
-  S << endl << "Associated Entities          : ";
+  S << Message_EndLine << "Associated Entities          : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
-  S << endl << "Type Flag : " << ent->TypeFlag() << endl;
+  S << Message_EndLine << "Type Flag : " << ent->TypeFlag() << Message_EndLine;
   S << "Primary Reference Designator : ";
   IGESData_DumpString(S,ent->Designator());
-  S << endl << "Text Display Template Entity : ";
+  S << Message_EndLine << "Text Display Template Entity : ";
   dumper.Dump(ent->DesignatorTemplate(),S, tempSubLevel);
-  S << endl << "Connect Point Entities       : ";
+  S << Message_EndLine << "Connect Point Entities       : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbPointEntities(),ent->PointEntity);
-  S << endl;
+  S << Message_EndLine;
 }
index 70cde23..e3c6d40 100644 (file)
@@ -170,32 +170,32 @@ void IGESDraw_ToolPerspectiveView::OwnDump
   (const Handle(IGESDraw_PerspectiveView)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
 {
-  S << "IGESDraw_PerspectiveView" << endl;
+  S << "IGESDraw_PerspectiveView" << Message_EndLine;
 
   S << "View Number  : " << ent->ViewNumber()  << "  ";
-  S << "Scale Factor : " << ent->ScaleFactor() << endl;
+  S << "Scale Factor : " << ent->ScaleFactor() << Message_EndLine;
   S         << "View Plane Normal Vector : ";
   IGESData_DumpXYZL(S,level, ent->ViewNormalVector(), ent->Location());
-  S << endl << "View Reference Point     : ";
+  S << Message_EndLine << "View Reference Point     : ";
   IGESData_DumpXYZL(S,level, ent->ViewReferencePoint() , ent->Location());
-  S << endl << "Center Of Projection     : ";
+  S << Message_EndLine << "Center Of Projection     : ";
   IGESData_DumpXYZL(S,level, ent->CenterOfProjection() , ent->Location());
-  S << endl << "View Up Vector           : ";
+  S << Message_EndLine << "View Up Vector           : ";
   IGESData_DumpXYZL(S,level, ent->ViewUpVector() , ent->Location());
-  S << endl << "View Plane Distance      : " << ent->ViewPlaneDistance()<<endl;
-  S << "Left   Side Of Clipping Window : " << ent->TopLeft().X()     << endl;
-  S << "Right  Side Of Clipping Window : " << ent->BottomRight().X() << endl;
-  S << "Bottom Side Of Clipping Window : " << ent->BottomRight().Y() << endl;
-  S << "Top    Side Of Clipping Window : " << ent->TopLeft().Y()     << endl;
+  S << Message_EndLine << "View Plane Distance      : " << ent->ViewPlaneDistance()<<Message_EndLine;
+  S << "Left   Side Of Clipping Window : " << ent->TopLeft().X()     << Message_EndLine;
+  S << "Right  Side Of Clipping Window : " << ent->BottomRight().X() << Message_EndLine;
+  S << "Bottom Side Of Clipping Window : " << ent->BottomRight().Y() << Message_EndLine;
+  S << "Top    Side Of Clipping Window : " << ent->TopLeft().Y()     << Message_EndLine;
   S << "Depth Clipping : " << ent->DepthClip();
   switch (ent->DepthClip()) {
-    case 0 :  S << " (No Depth Clipping)" << endl;                    break;
-    case 1 :  S << " (Back Clipping Plane ON)" << endl;               break;
-    case 2 :  S << " (Front Clipping Plane ON)" << endl;              break;
-    case 3 :  S << " (Front and Back Clipping Planes ON)" << endl;    break;
-    default : S << " (Invalid Value)" << endl;                        break;
+    case 0 :  S << " (No Depth Clipping)" << Message_EndLine;                    break;
+    case 1 :  S << " (Back Clipping Plane ON)" << Message_EndLine;               break;
+    case 2 :  S << " (Front Clipping Plane ON)" << Message_EndLine;              break;
+    case 3 :  S << " (Front and Back Clipping Planes ON)" << Message_EndLine;    break;
+    default : S << " (Invalid Value)" << Message_EndLine;                        break;
   }
   S << "Back Plane Distance  : " << ent->BackPlaneDistance()  << "  ";
-  S << "Front Plane Distance : " << ent->FrontPlaneDistance() << endl;
-  S << endl;
+  S << "Front Plane Distance : " << ent->FrontPlaneDistance() << Message_EndLine;
+  S << Message_EndLine;
 }
index 0206629..8341646 100644 (file)
@@ -172,7 +172,7 @@ void IGESDraw_ToolPlanar::OwnDump
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_Planar" << endl;
+  S << "IGESDraw_Planar" << Message_EndLine;
 
   S << "No. of Transformation Matrices : " << ent->NbMatrices() << "  ";
   S << "i.e. : ";
@@ -180,8 +180,8 @@ void IGESDraw_ToolPlanar::OwnDump
     S << "Null Handle";
   else
     dumper.OwnDump (ent->TransformMatrix(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Array of Entities on the specified plane : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbEntities(),ent->Entity);
-  S << endl;
+  S << Message_EndLine;
 }
index bcb821a..6595a92 100644 (file)
@@ -178,23 +178,23 @@ void IGESDraw_ToolRectArraySubfigure::OwnDump
 {
   Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_RectArraySubfigure" << endl;
+  S << "IGESDraw_RectArraySubfigure" << Message_EndLine;
 
   S << "Base Entity : ";
   dumper.Dump(ent->BaseEntity(),S, tempSubLevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Scale Factor : " << ent->ScaleFactor() << "  ";
   S << "Lower Left Corner Of Array : ";
   IGESData_DumpXYZL(S,level, ent->LowerLeftCorner(),gp_GTrsf()); // no location
   S << "Number Of Columns : " << ent->NbColumns()   << "  ";
-  S << "Number Of Rows    : " << ent->NbRows()      << endl;
-  S << "Horizontal Distance Between Columns : " << ent->ColumnSeparation()<<endl;
-  S << "Vertical Distance Between Rows      : " << ent->RowSeparation() <<endl;
-  S << "Rotation Angle (in radians)         : " << ent->RotationAngle() <<endl;
+  S << "Number Of Rows    : " << ent->NbRows()      << Message_EndLine;
+  S << "Horizontal Distance Between Columns : " << ent->ColumnSeparation()<<Message_EndLine;
+  S << "Vertical Distance Between Rows      : " << ent->RowSeparation() <<Message_EndLine;
+  S << "Rotation Angle (in radians)         : " << ent->RotationAngle() <<Message_EndLine;
   S << "Do-Dont Flag : ";
   if (ent->DoDontFlag()) S << "(1)Dont  ";
   else                   S << "(0)Do  ";
   S << "Do-Dont List : ";
   IGESData_DumpVals(S ,level,1, ent->ListCount(),ent->ListPosition);
-  S << endl;
+  S << Message_EndLine;
 }
index 76715a1..648ab51 100644 (file)
@@ -281,20 +281,20 @@ void IGESDraw_ToolSegmentedViewsVisible::OwnDump
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_SegmentedViewsVisible" << endl;
+  S << "IGESDraw_SegmentedViewsVisible" << Message_EndLine;
 
-  S << "View Entities            : " << endl
-    << "Breakpoint parameters    : " << endl
-    << "Display flags            : " << endl
-    << "Color Values             : " << endl
-    << "Color Definitions        : " << endl
-    << "LineFont Values          : " << endl
-    << "LineFont Definitions     : " << endl
-    << "Line Weights : " << endl;
-  S << "Count Of Blocks = "      << ent->NbSegmentBlocks() << endl;
+  S << "View Entities            : " << Message_EndLine
+    << "Breakpoint parameters    : " << Message_EndLine
+    << "Display flags            : " << Message_EndLine
+    << "Color Values             : " << Message_EndLine
+    << "Color Definitions        : " << Message_EndLine
+    << "LineFont Values          : " << Message_EndLine
+    << "LineFont Definitions     : " << Message_EndLine
+    << "Line Weights : " << Message_EndLine;
+  S << "Count Of Blocks = "      << ent->NbSegmentBlocks() << Message_EndLine;
   switch (level)
     {
-    case 4 : S << " [ for content, ask level > 4 ]" << endl;
+    case 4 : S << " [ for content, ask level > 4 ]" << Message_EndLine;
       break; // Nothing to be dumped here
     case 5 :        // Presently level 5 and 6 have the same Dump
     case 6 :
@@ -303,12 +303,12 @@ void IGESDraw_ToolSegmentedViewsVisible::OwnDump
        Standard_Integer up  = ent->NbSegmentBlocks();
        for (I = 1; I <= up; I++)
           {
-           S << "[" << I << "]:" << endl;
+           S << "[" << I << "]:" << Message_EndLine;
            S << "View Entity : ";
            dumper.Dump (ent->ViewItem(I),S, sublevel);
-           S << endl;
-           S << "Breakpoint parameter : " <<ent->BreakpointParameter(I)<<endl;
-           S << "Display Flag : " << ent->DisplayFlag(I) << endl;
+           S << Message_EndLine;
+           S << "Breakpoint parameter : " <<ent->BreakpointParameter(I)<<Message_EndLine;
+           S << "Display Flag : " << ent->DisplayFlag(I) << Message_EndLine;
            if ( (ent->ColorDefinition(I)).IsNull() )
               {
                S << "Color Value : ";
@@ -319,7 +319,7 @@ void IGESDraw_ToolSegmentedViewsVisible::OwnDump
                S << "Color Definition : ";
                dumper.Dump (ent->ColorDefinition(I),S, sublevel);
               }
-           S << endl;
+           S << Message_EndLine;
            if ( (ent->LineFontDefinition(I)).IsNull() )
               {
                S << "LineFont Value : " << ent->LineFontValue(I);
@@ -329,11 +329,11 @@ void IGESDraw_ToolSegmentedViewsVisible::OwnDump
                S << "LineFont Definition : ";
                dumper.Dump (ent->LineFontDefinition(I),S, sublevel);
               }
-           S << endl;
-           S << "Line Weight : " << ent->LineWeightItem(I) << endl;
+           S << Message_EndLine;
+           S << "Line Weight : " << ent->LineWeightItem(I) << Message_EndLine;
           }
       }
       break;
     }
-  S << endl;
+  S << Message_EndLine;
 }
index 9e63ceb..ae61b4b 100644 (file)
@@ -157,20 +157,20 @@ void IGESDraw_ToolView::OwnDump
 {
   Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_View" << endl;
+  S << "IGESDraw_View" << Message_EndLine;
 
-  S << "View Number  : " << ent->ViewNumber()  << endl;
-  S << "Scale Factor : " << ent->ScaleFactor() << endl;
+  S << "View Number  : " << ent->ViewNumber()  << Message_EndLine;
+  S << "Scale Factor : " << ent->ScaleFactor() << Message_EndLine;
   S << "Left Plane Of View Volume   : ";
-  dumper.Dump(ent->LeftPlane(),S, tempSubLevel);    S << endl;
+  dumper.Dump(ent->LeftPlane(),S, tempSubLevel);    S << Message_EndLine;
   S << "Top Plane Of View Volume    : ";
-  dumper.Dump(ent->TopPlane(),S, tempSubLevel);     S << endl;
+  dumper.Dump(ent->TopPlane(),S, tempSubLevel);     S << Message_EndLine;
   S << "Right Plane Of View Volume  : ";
-  dumper.Dump(ent->RightPlane(),S, tempSubLevel);   S << endl;
+  dumper.Dump(ent->RightPlane(),S, tempSubLevel);   S << Message_EndLine;
   S << "Bottom Plane Of View Volume : ";
-  dumper.Dump(ent->BottomPlane(),S, tempSubLevel);  S << endl;
+  dumper.Dump(ent->BottomPlane(),S, tempSubLevel);  S << Message_EndLine;
   S << "Back Plane Of View Volume   : ";
-  dumper.Dump(ent->BackPlane(),S, tempSubLevel);    S << endl;
+  dumper.Dump(ent->BackPlane(),S, tempSubLevel);    S << Message_EndLine;
   S << "Front Plane Of View Volume  : ";
-  dumper.Dump(ent->FrontPlane(),S, tempSubLevel);   S << endl;
+  dumper.Dump(ent->FrontPlane(),S, tempSubLevel);   S << Message_EndLine;
 }
index 19ae997..03f89c6 100644 (file)
@@ -229,15 +229,15 @@ void IGESDraw_ToolViewsVisible::OwnDump
   (const Handle(IGESDraw_ViewsVisible)& ent, const IGESData_IGESDumper& dumper,
   const Handle(Message_Messenger)& S, const Standard_Integer level)  const
 {
-  S << "IGESDraw_ViewsVisible" << endl;
+  S << "IGESDraw_ViewsVisible" << Message_EndLine;
 
   S << "Views Visible : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbViews(),ent->ViewItem);
-  S << endl;
+  S << Message_EndLine;
   S << "Entities Displayed : ";
   IGESData_DumpEntities
     (S,dumper ,level,1, ent->NbDisplayedEntities(),ent->DisplayedEntity);
-  S << endl;
+  S << Message_EndLine;
 }
 
 Standard_Boolean  IGESDraw_ToolViewsVisible::OwnCorrect
index 2132164..99bcfae 100644 (file)
@@ -341,44 +341,44 @@ void IGESDraw_ToolViewsVisibleWithAttr::OwnDump
 {
   Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESDraw_ViewsVisibleWithAttr" << endl;
-
-  S << "View Entities            : " << endl
-    << "Line Font Values         : " << endl
-    << "Line Font Definitions    : " << endl
-    << "Color Number/Definitions : " << endl
-    << "Line Weights             : " << endl;
-  S << "Count of View Blocks : "     << ent->NbViews() << endl;
+  S << "IGESDraw_ViewsVisibleWithAttr" << Message_EndLine;
+
+  S << "View Entities            : " << Message_EndLine
+    << "Line Font Values         : " << Message_EndLine
+    << "Line Font Definitions    : " << Message_EndLine
+    << "Color Number/Definitions : " << Message_EndLine
+    << "Line Weights             : " << Message_EndLine;
+  S << "Count of View Blocks : "     << ent->NbViews() << Message_EndLine;
   if (level > 4) {   // Level = 4 : nothing to Dump. Level = 5 & 6 : same Dump
     Standard_Integer I;
     Standard_Integer upper  = ent->NbViews();
     for (I = 1; I <= upper; I++) {
-      S << "[" << I << "]: " << endl;
+      S << "[" << I << "]: " << Message_EndLine;
       S << "View Entity : ";
       dumper.Dump (ent->ViewItem(I),S, tempSubLevel);
-      S << endl;
+      S << Message_EndLine;
 
       if (ent->IsFontDefinition(I)) {
        S << "Line Font Definition  : ";
        dumper.Dump (ent->FontDefinition(I),S, tempSubLevel);
-       S << endl;
+       S << Message_EndLine;
       }
-      else S << "Line Font Value       : " << ent->LineFontValue(I) << endl;
+      else S << "Line Font Value       : " << ent->LineFontValue(I) << Message_EndLine;
 
       if (ent->IsColorDefinition(I)) {
        S << "Color Definition : ";
        dumper.Dump (ent->ColorDefinition(I),S, tempSubLevel);
-       S << endl;
+       S << Message_EndLine;
       }
-      else S << "Color Value      : " << ent->ColorValue(I) << endl;
+      else S << "Color Value      : " << ent->ColorValue(I) << Message_EndLine;
 
-      S      << "Line Weight      : " << ent->LineWeightItem(I) << endl;
+      S      << "Line Weight      : " << ent->LineWeightItem(I) << Message_EndLine;
     }
   }
   S << "Displayed Entities : ";
   IGESData_DumpEntities
     (S,dumper ,level,1, ent->NbDisplayedEntities(),ent->DisplayedEntity);
-  S << endl;
+  S << Message_EndLine;
 }
 
 Standard_Boolean  IGESDraw_ToolViewsVisibleWithAttr::OwnCorrect
index 98caa6b..961ab8a 100644 (file)
@@ -405,23 +405,23 @@ void IGESGeom_ToolBSplineCurve::OwnDump(const Handle(IGESGeom_BSplineCurve)& ent
                                         const Standard_Integer level)  const
 {
   Standard_Integer upind = ent->UpperIndex();
-  S << "BSplineCurve from IGESGeom" << endl;
+  S << "BSplineCurve from IGESGeom" << Message_EndLine;
   S << "Sum UpperIndex : " << upind;
   S << "   Degree : " << ent->Degree() << "  ";
-  S << (ent->IsPlanar() ? "Planar" : "NonPlanar") << endl;
+  S << (ent->IsPlanar() ? "Planar" : "NonPlanar") << Message_EndLine;
   S << (ent->IsClosed() ? "Closed" : "Open") << "  ";
   S << (ent->IsPeriodic() ? "Periodic" : "NonPeriodic") << "  ";//#54 rln 24.12.98 CCI60005
   S << (ent->IsPolynomial(Standard_True) ? "Polynomial" : "Rational");
 
-  S << endl << "Knots : ";
+  S << Message_EndLine << "Knots : ";
   IGESData_DumpVals(S ,level,-ent->Degree(), upind+1,ent->Knot);
-  S << endl << "Weights : ";
+  S << Message_EndLine << "Weights : ";
   IGESData_DumpVals(S ,level,0, upind,ent->Weight);
-  S << endl << "Control Points (Poles) : ";
+  S << Message_EndLine << "Control Points (Poles) : ";
   IGESData_DumpListXYZL(S ,level,0, upind, ent->Pole, ent->Location());
-  S << endl << "Starting Parameter Value : " << ent->UMin();
-  S << "  Ending Parameter Value : " << ent->UMax() << endl;
+  S << Message_EndLine << "Starting Parameter Value : " << ent->UMin();
+  S << "  Ending Parameter Value : " << ent->UMax() << Message_EndLine;
   S << "Unit Normal : ";
   IGESData_DumpXYZL(S,level, ent->Normal(), ent->Location());
-  S << endl;
+  S << Message_EndLine;
 }
index 8a9b11f..f54d8c9 100644 (file)
@@ -469,7 +469,7 @@ void IGESGeom_ToolBSplineSurface::OwnDump(const Handle(IGESGeom_BSplineSurface)&
                                           const Handle(Message_Messenger)& S,
                                           const Standard_Integer level)  const
 {
-  S << "BSplineSurface from IGESGeom" << endl << endl;
+  S << "BSplineSurface from IGESGeom" << Message_EndLine << Message_EndLine;
 
   Standard_Integer indU = ent->UpperIndexU();
   Standard_Integer indV = ent->UpperIndexV();
@@ -480,36 +480,36 @@ void IGESGeom_ToolBSplineSurface::OwnDump(const Handle(IGESGeom_BSplineSurface)&
   S << "   Degree : " << degU << "  ";
   S << (ent->IsClosedU() ? "Closed" : "Open") << "  ";
   S << (ent->IsPeriodicU() ? "Periodic" : "Non Periodic");
-  S << endl;
+  S << Message_EndLine;
   S << "In V : Upper Knot Index : " << indV;
   S << "   Degree : " << degV << "  ";
   S << (ent->IsClosedV() ? "Closed" : "Open") << "  ";
   S << (ent->IsPeriodicV() ? "Periodic" : "Non Periodic") << "  ";
-  S << (ent->IsPolynomial(Standard_True) ? "Polynomial" : "Rational") << endl;
+  S << (ent->IsPolynomial(Standard_True) ? "Polynomial" : "Rational") << Message_EndLine;
 
-  S << "Starting Parameter for U direction : " << ent->UMin() << endl;
-  S << "Ending   Parameter for U direction : " << ent->UMax() << endl;
-  S << "Starting Parameter for V direction : " << ent->VMin() << endl;
-  S << "Ending   Parameter for V direction : " << ent->VMax() << endl;
+  S << "Starting Parameter for U direction : " << ent->UMin() << Message_EndLine;
+  S << "Ending   Parameter for U direction : " << ent->UMax() << Message_EndLine;
+  S << "Starting Parameter for V direction : " << ent->VMin() << Message_EndLine;
+  S << "Ending   Parameter for V direction : " << ent->VMax() << Message_EndLine;
 
   S << " Knots in  U : ";
   IGESData_DumpVals(S ,level,-degU, indU+1,ent->KnotU);
-  S << endl;
+  S << Message_EndLine;
   S << " Knots in  V : ";
   IGESData_DumpVals(S ,level,-degV, indV+1,ent->KnotV);
-  S << endl;
+  S << Message_EndLine;
   S << "Weights : (Row -> IndexU, Col -> IndexV)";
   IGESData_DumpRectVals(S ,level,0, indU,0,indV,ent->Weight);
-  S << endl;
+  S << Message_EndLine;
   S << "Control Points (Poles) : ";
 //IGESData_DumpRectXYZL(S,level,1, ent->NbPoles(),ent->Pole, ent->Location());
-  if (level < 5) {  S << " [ content : ask level > 4 ]" << endl; return;  }
+  if (level < 5) {  S << " [ content : ask level > 4 ]" << Message_EndLine; return;  }
   gp_GTrsf loca = ent->Location();
   for (Standard_Integer JP = 0; JP <= indV; JP ++)
     for (Standard_Integer IP = 0; IP <= indU; IP ++) {
-      if (IP == 0) S << endl;
+      if (IP == 0) S << Message_EndLine;
       S <<"  -  ["<<IP<<","<<JP<<"]: ";
       IGESData_DumpXYZL(S,level,ent->Pole(IP,JP),loca);
     }
-  S << endl;
+  S << Message_EndLine;
 }
index f256fe8..5994f1f 100644 (file)
@@ -434,32 +434,32 @@ void IGESGeom_ToolBoundary::OwnDump(const Handle(IGESGeom_Boundary)& ent,
                                     const Standard_Integer level)  const
 {
   Standard_Integer i, num, sublevel = (level > 4) ? 1 : 0;
-  S << "IGESGeom_Boundary" << endl;
-  S << "Bounded Surface Representation Type : " << ent->BoundaryType() << endl;
-  S << "Trimming Curves Representation : " << ent->PreferenceType() << endl;
+  S << "IGESGeom_Boundary" << Message_EndLine;
+  S << "Bounded Surface Representation Type : " << ent->BoundaryType() << Message_EndLine;
+  S << "Trimming Curves Representation : " << ent->PreferenceType() << Message_EndLine;
   S << "Bounded Surface    : ";
   dumper.Dump(ent->Surface(),S, sublevel);
-  S << endl;
-  S << "Model Space Curves : " << endl;
-  S << "Orientation Flags  : " << endl;
+  S << Message_EndLine;
+  S << "Model Space Curves : " << Message_EndLine;
+  S << "Orientation Flags  : " << Message_EndLine;
   S << "Parameter Curves Set : ";
   IGESData_DumpEntities
     (S,dumper,-level,1,ent->NbModelSpaceCurves(),ent->ModelSpaceCurve);
-  S << endl;
+  S << Message_EndLine;
   if (level > 4)
     for ( num = ent->NbModelSpaceCurves(), i = 1; i <= num; i++ )
       {
        S << "[" << i << "]: ";
        S << "Model Space Curve : ";
        dumper.Dump (ent->ModelSpaceCurve(i),S, 1);
-       S << "  Orientation Flags : " << ent->Sense(i) << endl;
+       S << "  Orientation Flags : " << ent->Sense(i) << Message_EndLine;
        S << "  Parameter Curves : ";
        Handle(IGESData_HArray1OfIGESEntity) curves = ent->ParameterCurves(i);
        if (!curves.IsNull()) {
          IGESData_DumpEntities(S,dumper, level,1,curves->Length(),curves->Value);
        }
        else S << " List Empty";
-       S << endl;
+       S << Message_EndLine;
       }
-  S << endl;
+  S << Message_EndLine;
 }
index d8da8c5..8080c6b 100644 (file)
@@ -254,12 +254,12 @@ void IGESGeom_ToolBoundedSurface::OwnDump(const Handle(IGESGeom_BoundedSurface)&
                                           const Standard_Integer level)  const
 {
   Standard_Integer sublevel = (level > 4) ? 1 : 0;
-  S << "IGESGeom_BoundedSurface" << endl;
-  S << "Representation Type   : " << ent->RepresentationType() << endl;
+  S << "IGESGeom_BoundedSurface" << Message_EndLine;
+  S << "Representation Type   : " << ent->RepresentationType() << Message_EndLine;
   S << "Surface to be Bounded : ";
   dumper.Dump(ent->Surface(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Boundary Entities     : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbBoundaries(),ent->Boundary);
-  S << endl;
+  S << Message_EndLine;
 }
index 5255da1..7bdf9d9 100644 (file)
@@ -143,18 +143,18 @@ void IGESGeom_ToolCircularArc::OwnDump
   (const Handle(IGESGeom_CircularArc)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
 {
-  S << "CircularArc from IGESGeom" << endl;
-  S << "Z-Plane Displacement : " << ent->ZPlane() << endl;
+  S << "CircularArc from IGESGeom" << Message_EndLine;
+  S << "Z-Plane Displacement : " << ent->ZPlane() << Message_EndLine;
   S << "Center      : ";
   IGESData_DumpXYLZ(S,level, ent->Center(), ent->Location(), ent->ZPlane());
-  S << endl;
+  S << Message_EndLine;
   S << "Start Point : ";
   IGESData_DumpXYLZ(S,level, ent->StartPoint(), ent->Location(),ent->ZPlane());
-  S << endl;
+  S << Message_EndLine;
   S << "End Point   : ";
   IGESData_DumpXYLZ(S,level, ent->EndPoint(), ent->Location(), ent->ZPlane());
-  S << endl;
+  S << Message_EndLine;
   if (level <= 5) return;
   S<< "  Normal Axis : ";  IGESData_DumpXYZL(S,level,ent->Axis(),ent->VectorLocation());
-  S << endl;
+  S << Message_EndLine;
 }
index 09960fc..7d13962 100644 (file)
@@ -123,8 +123,8 @@ void  IGESGeom_ToolCompositeCurve::OwnDump
   (const Handle(IGESGeom_CompositeCurve)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
 {
-  S << "IGESGeom_CompositeCurve" << endl;
-  S << "Curve Entities : " << endl;
+  S << "IGESGeom_CompositeCurve" << Message_EndLine;
+  S << "Curve Entities : " << Message_EndLine;
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbCurves(),ent->Curve);
-  S << endl;
+  S << Message_EndLine;
 }
index 150ef66..6ef8a73 100644 (file)
@@ -283,42 +283,42 @@ void IGESGeom_ToolConicArc::OwnDump(const Handle(IGESGeom_ConicArc)& ent,
 {
   Standard_Real A,B,C,D,E,F;
   ent->Equation(A,B,C,D,E,F);
-  S << "IGESGeom_ConicArc" << endl;
+  S << "IGESGeom_ConicArc" << Message_EndLine;
   Standard_Integer cf = ent->FormNumber();
   if (cf == 0) cf = ent->ComputedFormNumber();
-  if (cf == 1)      S << " --     Ellipse     --" << endl;
-  else if (cf == 2) S << " --    Hyperbola    --" << endl;
-  else if (cf == 3) S << " --    Parabola    --"  << endl;
-  else              S << " --    (Undetermined type of Conic)    --" << endl;
-  S << "Conic Coefficient A : " << A << endl;
-  S << "Conic Coefficient B : " << B << endl;
-  S << "Conic Coefficient C : " << C << endl;
-  S << "Conic Coefficient D : " << D << endl;
-  S << "Conic Coefficient E : " << E << endl;
-  S << "Conic Coefficient F : " << F << endl;
-  S << "Z-Plane shift : " << ent->ZPlane() << endl;
+  if (cf == 1)      S << " --     Ellipse     --" << Message_EndLine;
+  else if (cf == 2) S << " --    Hyperbola    --" << Message_EndLine;
+  else if (cf == 3) S << " --    Parabola    --"  << Message_EndLine;
+  else              S << " --    (Undetermined type of Conic)    --" << Message_EndLine;
+  S << "Conic Coefficient A : " << A << Message_EndLine;
+  S << "Conic Coefficient B : " << B << Message_EndLine;
+  S << "Conic Coefficient C : " << C << Message_EndLine;
+  S << "Conic Coefficient D : " << D << Message_EndLine;
+  S << "Conic Coefficient E : " << E << Message_EndLine;
+  S << "Conic Coefficient F : " << F << Message_EndLine;
+  S << "Z-Plane shift : " << ent->ZPlane() << Message_EndLine;
   S << "Start Point : ";
   IGESData_DumpXYLZ(S,level, ent->StartPoint(), ent->Location(),ent->ZPlane());
-  S << endl;
+  S << Message_EndLine;
   S << "End   Point : ";
   IGESData_DumpXYLZ(S,level, ent->EndPoint(), ent->Location(), ent->ZPlane());
-  S << endl;
-  if (level <= 4) S<<" -- Computed Definition : ask level > 4" << endl;
+  S << Message_EndLine;
+  if (level <= 4) S<<" -- Computed Definition : ask level > 4" << Message_EndLine;
   else {
     gp_Pnt Cen;  gp_Dir Ax;  Standard_Real Rmin,Rmax;
     ent->Definition (Cen,Ax,Rmin,Rmax);
-    S << " -- Computed Definition (and Transformed if level > 5)" << endl;
+    S << " -- Computed Definition (and Transformed if level > 5)" << Message_EndLine;
 
     if (cf != 3) {
       S<<" Center        : "; IGESData_DumpXYZL(S,level,Cen,ent->Location());
-      S<<endl;
+      S<<Message_EndLine;
     }
     S << " Main Axis   : "; IGESData_DumpXYZL(S,level,Ax,ent->VectorLocation());
-    S<<endl;
-    if (cf == 3) S << " Focal : " << Rmin << endl;
-    else if (Rmin == Rmax) S << " Radius (Major = Minor) : " << Rmin << endl;
-    else S << " Major Radius : " << Rmax << "  Minor Radius : " << Rmin <<endl;
+    S<<Message_EndLine;
+    if (cf == 3) S << " Focal : " << Rmin << Message_EndLine;
+    else if (Rmin == Rmax) S << " Radius (Major = Minor) : " << Rmin << Message_EndLine;
+    else S << " Major Radius : " << Rmax << "  Minor Radius : " << Rmin <<Message_EndLine;
     S<< "  Normal Axis : ";  IGESData_DumpXYZL(S,level,ent->Axis(),ent->VectorLocation());
-    S << endl;
+    S << Message_EndLine;
   }
 }
index d142897..5d558a4 100644 (file)
@@ -272,7 +272,7 @@ void IGESGeom_ToolCopiousData::OwnDump(const Handle(IGESGeom_CopiousData)& ent,
   gp_GTrsf locv = ent->VectorLocation();
   Standard_Boolean yatr = (level > 5 && ent->HasTransf());
 
-  S << "IGESGeom_CopiousData" << endl;
+  S << "IGESGeom_CopiousData" << Message_EndLine;
 
   if (ent->IsPointSet())          S << "Point Set  ";
   else if (ent->IsPolyline())     S << "Polyline  ";
@@ -281,12 +281,12 @@ void IGESGeom_ToolCopiousData::OwnDump(const Handle(IGESGeom_CopiousData)& ent,
   S << "Number of T-uples = " << nbPnts << "  ";
   if (dtype == 1) {
     S << "(Points 2D)  ";
-    S << "ZPlane = " << ent->ZPlane() << endl;
+    S << "ZPlane = " << ent->ZPlane() << Message_EndLine;
   }
   else if (dtype == 2)
-    S << "(Points 3D)" << endl;
+    S << "(Points 3D)" << Message_EndLine;
   else if (dtype == 3)
-    S << "(Points 3D + Vectors 3D)" << endl;
+    S << "(Points 3D + Vectors 3D)" << Message_EndLine;
 
   if (level > 4) {
     for (i = 1; i <= nbPnts; i ++) {
@@ -309,9 +309,9 @@ void IGESGeom_ToolCopiousData::OwnDump(const Handle(IGESGeom_CopiousData)& ent,
          S << " Transformed ("<< T.X() << "," << T.Y() << "," << T.Z() << ")";
        }
       }
-      S << endl;
+      S << Message_EndLine;
     }
   }
   else S << " [ for content, ask level > 4 ]";
-  S << endl;
+  S << Message_EndLine;
 }
index 1c48a9e..e1bbfbb 100644 (file)
@@ -268,30 +268,30 @@ void IGESGeom_ToolCurveOnSurface::OwnDump(const Handle(IGESGeom_CurveOnSurface)&
                                           const Handle(Message_Messenger)& S,
                                           const Standard_Integer level)  const
 {
-  S << "IGESGeom_CurveOnSurface" << endl << endl;
+  S << "IGESGeom_CurveOnSurface" << Message_EndLine << Message_EndLine;
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
   Standard_Integer crem = ent->CreationMode();
   S << "Creation Mode : " << crem << "  i.e. ";
-  if      (crem == 0) S << " <Unspecified>" << endl;
-  else if (crem == 1) S << " Projection of a Curve on a Surface" << endl;
-  else if (crem == 2) S << " Intersection of two Surfaces" << endl;
-  else if (crem == 3) S << " Isoparametric Curve (either U or V)" << endl;
-  else S << " <Incorrect Value>" << endl;
+  if      (crem == 0) S << " <Unspecified>" << Message_EndLine;
+  else if (crem == 1) S << " Projection of a Curve on a Surface" << Message_EndLine;
+  else if (crem == 2) S << " Intersection of two Surfaces" << Message_EndLine;
+  else if (crem == 3) S << " Isoparametric Curve (either U or V)" << Message_EndLine;
+  else S << " <Incorrect Value>" << Message_EndLine;
   S << "The Surface on which the curve lies : ";
   dumper.Dump(ent->Surface(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "The curve B (in the parametric space (u, v))  : ";
   dumper.Dump(ent->CurveUV(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "The curve C (in the 3D Space) : ";
   dumper.Dump(ent->Curve3D(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   Standard_Integer pref = ent->PreferenceMode();
   S << "Preferred representation mode : " << pref << "  i.e. ";
-  if      (pref == 0) S << " <Unspecified>" << endl;
-  else if (pref == 1) S << " Curve B on Surface" << endl;
-  else if (pref == 2) S << " Curve C in 3D Space" << endl;
-  else if (pref == 3) S << " Curves B & C equally preferred" << endl;
-  else S << " <Incorrect Value>" << endl;
+  if      (pref == 0) S << " <Unspecified>" << Message_EndLine;
+  else if (pref == 1) S << " Curve B on Surface" << Message_EndLine;
+  else if (pref == 2) S << " Curve C in 3D Space" << Message_EndLine;
+  else if (pref == 3) S << " Curves B & C equally preferred" << Message_EndLine;
+  else S << " <Incorrect Value>" << Message_EndLine;
 }
index de6365f..516234e 100644 (file)
@@ -117,9 +117,9 @@ void IGESGeom_ToolDirection::OwnDump
   (const Handle(IGESGeom_Direction)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
 {
-  S << "IGESGeom_Direction" << endl << endl;
+  S << "IGESGeom_Direction" << Message_EndLine << Message_EndLine;
 
   S << "Value : ";
   IGESData_DumpXYZL(S,level, ent->Value(), ent->VectorLocation());
-  S << endl;
+  S << Message_EndLine;
 }
index 5a0a990..de2dfee 100644 (file)
@@ -178,9 +178,9 @@ void IGESGeom_ToolFlash::OwnDump
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
   Standard_Integer fn = ent->FormNumber();
 
-  S << "IGESGeom_Flash" << endl;
+  S << "IGESGeom_Flash" << Message_EndLine;
   switch (fn) {
-    case 0 : S << " --    Form defined by reference entity   --" << endl; break;
+    case 0 : S << " --    Form defined by reference entity   --" << Message_EndLine; break;
     case 1 : S << " --    Circular    --  ";  break;
     case 2 : S << " --    Rectangle   --  ";  break;
     case 3 : S << " --    Donut    --  ";  break;
@@ -191,9 +191,9 @@ void IGESGeom_ToolFlash::OwnDump
   S << "Flash reference point    : ";
   IGESData_DumpXYL(S,level, ent->ReferencePoint(), ent->Location());
   S << " First sizing parameter  : " << ent->Dimension1() << "  ";
-  S << " Second sizing parameter : " << ent->Dimension2() << endl;
-  S << " Rotation about reference entity : " << ent->Rotation() << endl;
+  S << " Second sizing parameter : " << ent->Dimension2() << Message_EndLine;
+  S << " Rotation about reference entity : " << ent->Rotation() << Message_EndLine;
   S << "Reference Entity         : ";
   dumper.Dump(ent->ReferenceEntity(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
 }
index f70e5ca..64c8130 100644 (file)
@@ -112,16 +112,16 @@ void IGESGeom_ToolLine::OwnDump
 {
   Standard_Integer infin = ent->Infinite();
   switch (infin) {
-    case 1 : S << "Semi-Infinite Line"<<endl;  break;
-    case 2 : S << "Infinite Line"<<endl;  break;
-    default : S << "Bounded Line"<<endl; break;
+    case 1 : S << "Semi-Infinite Line"<<Message_EndLine;  break;
+    case 2 : S << "Infinite Line"<<Message_EndLine;  break;
+    default : S << "Bounded Line"<<Message_EndLine; break;
   }
 
-  S << "Line from IGESGeom" << endl;
+  S << "Line from IGESGeom" << Message_EndLine;
   S << "Starting Point : ";
   IGESData_DumpXYZL(S,level, ent->StartPoint(), ent->Location());
-  S << endl;
+  S << Message_EndLine;
   S << "End Point : ";
   IGESData_DumpXYZL(S,level, ent->EndPoint(), ent->Location());
-  S << endl;
+  S << Message_EndLine;
 }
index 6b5c4ec..b3148e6 100644 (file)
@@ -356,22 +356,22 @@ void IGESGeom_ToolOffsetCurve::OwnDump(const Handle(IGESGeom_OffsetCurve)& ent,
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESGeom_OffsetCurve" << endl;
+  S << "IGESGeom_OffsetCurve" << Message_EndLine;
 
-  S << "The curve to be offset     : " << endl;
+  S << "The curve to be offset     : " << Message_EndLine;
   dumper.Dump(ent->BaseCurve(),S, sublevel);
-  S << "Offset Distance Flag       : " << ent->OffsetType() << endl;
+  S << "Offset Distance Flag       : " << ent->OffsetType() << Message_EndLine;
   S << "Curve entity whose coordinate defines the offset : ";
   dumper.Dump(ent->Function(),S, sublevel);
-  S << endl;
-  S << "In which Coordinate to use : " << ent->FunctionParameter()    << endl;
-  S << "Tapered Offset Type Flag   : " << ent->TaperedOffsetType()    << endl;
+  S << Message_EndLine;
+  S << "In which Coordinate to use : " << ent->FunctionParameter()    << Message_EndLine;
+  S << "Tapered Offset Type Flag   : " << ent->TaperedOffsetType()    << Message_EndLine;
   S << "First Offset Distance      : " << ent->FirstOffsetDistance()  << "  ";
-  S << "Arc Length : " << ent->ArcLength1() << endl;
+  S << "Arc Length : " << ent->ArcLength1() << Message_EndLine;
   S << "Second Offset Distance     : " << ent->SecondOffsetDistance() << "  ";
-  S << "Arc Length : " << ent->ArcLength2() << endl;
+  S << "Arc Length : " << ent->ArcLength2() << Message_EndLine;
   S << "Normal Vector : ";
-  IGESData_DumpXYZL(S,level, ent->NormalVector(), ent->VectorLocation());  S<<endl;
+  IGESData_DumpXYZL(S,level, ent->NormalVector(), ent->VectorLocation());  S<<Message_EndLine;
   S << "Offset curve Parameters. Starting : " << ent->StartParameter() << "  ";
-  S << "Ending : " << ent->EndParameter()   << endl;
+  S << "Ending : " << ent->EndParameter()   << Message_EndLine;
 }
index 6a240ae..3857c44 100644 (file)
@@ -151,13 +151,13 @@ void IGESGeom_ToolOffsetSurface::OwnDump
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESGeom_OffsetSurface" << endl;
+  S << "IGESGeom_OffsetSurface" << Message_EndLine;
 
   S << "Offset Indicator     : ";
   IGESData_DumpXYZL(S,level, ent->OffsetIndicator(), ent->VectorLocation());
-  S << endl;
+  S << Message_EndLine;
   S << "Offset Distance      : " << ent->Distance() << "  ";
   S << "Surface to be offset : ";
   dumper.Dump(ent->Surface(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
 }
index 4ae7ef7..9fa0a8b 100644 (file)
@@ -269,18 +269,18 @@ void IGESGeom_ToolPlane::OwnDump(const Handle(IGESGeom_Plane)& ent,
                                  const Handle(Message_Messenger)& S,
                                  const Standard_Integer level)  const
 {
-  S << "IGESGeom_Plane" << endl;
+  S << "IGESGeom_Plane" << Message_EndLine;
   Standard_Real A,B,C,D;
   ent->Equation(A,B,C,D);
 
-  S << "Plane Coefficient A : " << A << endl;
-  S << "Plane Coefficient B : " << B << endl;
-  S << "Plane Coefficient C : " << C << endl;
-  S << "Plane Coefficient D : " << D << endl;
+  S << "Plane Coefficient A : " << A << Message_EndLine;
+  S << "Plane Coefficient B : " << B << Message_EndLine;
+  S << "Plane Coefficient C : " << C << Message_EndLine;
+  S << "Plane Coefficient D : " << D << Message_EndLine;
   S << "The Bounding Curve  : " ;
   dumper.Dump(ent->BoundingCurve(),S, (level <= 4) ? 0 : 1);
-  S << endl;
+  S << Message_EndLine;
   S << "Display Symbol Location : ";
   IGESData_DumpXYZL(S,level, ent->SymbolAttach(), ent->Location());
-  S << "  Size  : " << ent->SymbolSize() << endl;
+  S << "  Size  : " << ent->SymbolSize() << Message_EndLine;
 }
index bc134d8..677032e 100644 (file)
@@ -144,12 +144,12 @@ void IGESGeom_ToolPoint::OwnDump
   (const Handle(IGESGeom_Point)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
 {
-  S << "IGESGeom_Point" << endl;
+  S << "IGESGeom_Point" << Message_EndLine;
 
   S << " Value         : ";
   IGESData_DumpXYZL(S,level, ent->Value(), ent->Location());
-  S << endl;
+  S << Message_EndLine;
   S << " Display Symbol : ";
   dumper.Dump(ent->DisplaySymbol(),S, (level <= 4) ? 0 : 1);
-  S << endl;
+  S << Message_EndLine;
 }
index b627576..2dc97ae 100644 (file)
@@ -157,17 +157,17 @@ void IGESGeom_ToolRuledSurface::OwnDump
 {
   Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESGeom_RuledSurface" << endl;
+  S << "IGESGeom_RuledSurface" << Message_EndLine;
 
   S << "First  Curve   : ";
   dumper.Dump(ent->FirstCurve(),S, tempSubLevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Second Curve   : ";
   dumper.Dump(ent->SecondCurve(),S, tempSubLevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Direction Flag : " << ent->DirectionFlag() << "  i.e.";
-  if (ent->DirectionFlag() == 0) S<< "Join First to First, Last to Last"<<endl;
-  else                           S<< "Join First to Last, Last to First"<<endl;
-  if (ent->IsDevelopable()) S << " .. Is Developable" << endl;
-  else                      S << " .. Is possibly not developable .." << endl;
+  if (ent->DirectionFlag() == 0) S<< "Join First to First, Last to Last"<<Message_EndLine;
+  else                           S<< "Join First to Last, Last to First"<<Message_EndLine;
+  if (ent->IsDevelopable()) S << " .. Is Developable" << Message_EndLine;
+  else                      S << " .. Is possibly not developable .." << Message_EndLine;
 }
index 87984d3..3b7b893 100644 (file)
@@ -322,7 +322,7 @@ void IGESGeom_ToolSplineCurve::OwnDump
   (const Handle(IGESGeom_SplineCurve)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
 {
-  S << "IGESGeom_SplineCurve" << endl;
+  S << "IGESGeom_SplineCurve" << Message_EndLine;
 
   Standard_Integer nbSegments = ent->NbSegments();
   S << "Spline Type          : " << ent->SplineType()    << "  ";
@@ -336,17 +336,17 @@ void IGESGeom_ToolSplineCurve::OwnDump
     case 6 : S << "(B-Spline)"; break;
       default : S << "(Invalid value)"; break;
     }
-  S << endl;
-  S << "Degree Of Continuity : " << ent->Degree()       << endl;
-  S << "Number Of Dimensions : " << ent->NbDimensions() << endl;
-  S << "Number Of Segments   : " << ent->NbSegments()   << endl;
+  S << Message_EndLine;
+  S << "Degree Of Continuity : " << ent->Degree()       << Message_EndLine;
+  S << "Number Of Dimensions : " << ent->NbDimensions() << Message_EndLine;
+  S << "Number Of Segments   : " << ent->NbSegments()   << Message_EndLine;
   S << "Segment Break Points : ";
   IGESData_DumpVals(S ,level,1, nbSegments+1,ent->BreakPoint);
   if (level <= 4) {
-    S << " [ also ask level > 4 for X-Y-Z Polynomials ]" << endl;
+    S << " [ also ask level > 4 for X-Y-Z Polynomials ]" << Message_EndLine;
     return;
   }
-  S << "  --  Polynomial  Values  --" << endl;
+  S << "  --  Polynomial  Values  --" << Message_EndLine;
   Standard_Real AX,BX,CX,DX, AY,BY,CY,DY, AZ,BZ,CZ,DZ;
   for (Standard_Integer I = 1; I <= nbSegments; I++) {
 //no need to declare (hides the same name in an outer scope)
@@ -354,18 +354,18 @@ void IGESGeom_ToolSplineCurve::OwnDump
     ent->XCoordPolynomial(I,AX,BX,CX,DX);
     ent->YCoordPolynomial(I,AY,BY,CY,DY);
     ent->ZCoordPolynomial(I,AZ,BZ,CZ,DZ);
-    S << "Segment "<<I<<" :        X              Y            Z"<<endl;
-    S << " A ...       "<<AX<<"        "<<AY<<"        "<<AZ<<endl;
-    S << " B ...       "<<BX<<"        "<<BY<<"        "<<BZ<<endl;
-    S << " C ...       "<<CX<<"        "<<CY<<"        "<<CZ<<endl;
-    S << " D ...       "<<DX<<"        "<<DY<<"        "<<DZ<<endl;
+    S << "Segment "<<I<<" :        X              Y            Z"<<Message_EndLine;
+    S << " A ...       "<<AX<<"        "<<AY<<"        "<<AZ<<Message_EndLine;
+    S << " B ...       "<<BX<<"        "<<BY<<"        "<<BZ<<Message_EndLine;
+    S << " C ...       "<<CX<<"        "<<CY<<"        "<<CZ<<Message_EndLine;
+    S << " D ...       "<<DX<<"        "<<DY<<"        "<<DZ<<Message_EndLine;
   }
   ent->XValues(AX,BX,CX,DX);
   ent->YValues(AY,BY,CY,DY);
   ent->ZValues(AZ,BZ,CZ,DZ);
-  S << "Terminate Point :          X              Y            Z"<<endl;
-  S << " Value         "<<AX<<"        "<<AY<<"        "<<AZ<<endl;
-  S << " 1st Derivative        "<<BX<<"        "<<BY<<"        "<<BZ<<endl;
-  S << " 2nd Der./2!           "<<CX<<"        "<<CY<<"        "<<CZ<<endl;
-  S << " 3rd Der./3!           "<<DX<<"        "<<DY<<"        "<<DZ<<endl;
+  S << "Terminate Point :          X              Y            Z"<<Message_EndLine;
+  S << " Value         "<<AX<<"        "<<AY<<"        "<<AZ<<Message_EndLine;
+  S << " 1st Derivative        "<<BX<<"        "<<BY<<"        "<<BZ<<Message_EndLine;
+  S << " 2nd Der./2!           "<<CX<<"        "<<CY<<"        "<<CZ<<Message_EndLine;
+  S << " 3rd Der./3!           "<<DX<<"        "<<DY<<"        "<<DZ<<Message_EndLine;
 }
index 38f183a..11cc355 100644 (file)
@@ -312,7 +312,7 @@ void IGESGeom_ToolSplineSurface::OwnDump
   (const Handle(IGESGeom_SplineSurface)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
 {
-  S << "IGESGeom_SplineSurface" << endl;
+  S << "IGESGeom_SplineSurface" << Message_EndLine;
 
   Standard_Integer I, J;
   Standard_Integer nbUSegs = ent->NbUSegments();
@@ -330,39 +330,39 @@ void IGESGeom_ToolSplineSurface::OwnDump
       case 6 : S << "  (B-Spline)"; break;
       default : S << "  (Invalid value)"; break;
     }
-  S << endl;
+  S << Message_EndLine;
   S << "The  Patch Type : " << ent->PatchType();
   if (ent->PatchType() == 1)    S << "  (Cartesian Product)";
   else                          S << "  (Unspecified)";
-  S << endl;
+  S << Message_EndLine;
   S << "Number Of Segments. In U : "
-    << nbUSegs << "    In V : " << nbVSegs << endl;
+    << nbUSegs << "    In V : " << nbVSegs << Message_EndLine;
   S << "The U Break Points : ";
   IGESData_DumpVals(S ,level,1, nbUSegs+1,ent->UBreakPoint);
-  S <<endl<< "The V Break Points : ";
+  S <<Message_EndLine<< "The V Break Points : ";
   IGESData_DumpVals(S ,level,1, nbVSegs+1,ent->VBreakPoint);
 
-  S <<endl<< " X-Y-Z Polynomials Of Segments : ";
-  S << endl;
+  S <<Message_EndLine<< " X-Y-Z Polynomials Of Segments : ";
+  S << Message_EndLine;
   if (level > 4)
     {
       for (I = 1; I <= nbUSegs; I++)
        for (J = 1; J <= nbVSegs; J++) 
           {
-           S << "[" << I <<"," << J << "]: " << endl;
+           S << "[" << I <<"," << J << "]: " << Message_EndLine;
            S << "X Polynomial : ";
            temp = ent->XPolynomial(I,J);
            IGESData_DumpVals(S,level,1, temp->Length(),temp->Value);
-           S << endl;
+           S << Message_EndLine;
            S << "Y Polynomial : ";
            temp = ent->YPolynomial(I,J);
            IGESData_DumpVals(S,level,1, temp->Length(),temp->Value);
-           S << endl;
+           S << Message_EndLine;
            S << "Z Polynomial : ";
            temp = ent->ZPolynomial(I,J);
            IGESData_DumpVals(S,level,1, temp->Length(),temp->Value);
-           S << endl;
+           S << Message_EndLine;
           }
     }
-  else  S << endl;
+  else  S << Message_EndLine;
 }
index bf8227e..4a3904c 100644 (file)
@@ -167,15 +167,15 @@ void IGESGeom_ToolSurfaceOfRevolution::OwnDump
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
 {
 
-  S << "IGESGeom_SurfaceOfRevolution" << endl << endl;
+  S << "IGESGeom_SurfaceOfRevolution" << Message_EndLine << Message_EndLine;
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
   S << "Axis Of Revolution : ";
   dumper.Dump(ent->AxisOfRevolution(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Generatrix         : ";
   dumper.Dump(ent->Generatrix(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Start Angle        : " << ent->StartAngle() << "  ";
-  S << "End Angle   : " << ent->EndAngle() << endl;
+  S << "End Angle   : " << ent->EndAngle() << Message_EndLine;
 }
index 0d9859e..26079be 100644 (file)
@@ -137,12 +137,12 @@ void IGESGeom_ToolTabulatedCylinder::OwnDump
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESGeom_TabulatedCylinder" << endl;
+  S << "IGESGeom_TabulatedCylinder" << Message_EndLine;
 
   S << "Directrix       : ";
   dumper.Dump(ent->Directrix(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Terminate Point : ";
   IGESData_DumpXYZL(S,level, ent->EndPoint(), ent->Location());
-  S << endl;
+  S << Message_EndLine;
 }
index c6f9b93..fc4e73d 100644 (file)
@@ -214,26 +214,26 @@ void IGESGeom_ToolTransformationMatrix::OwnDump
   (const Handle(IGESGeom_TransformationMatrix)& ent, const IGESData_IGESDumper& /*dumper*/,
   const Handle(Message_Messenger)& S, const Standard_Integer /*level*/)  const
 {
-  S << "IGESGeom_TransformationMatrix" << endl;
+  S << "IGESGeom_TransformationMatrix" << Message_EndLine;
 
   S << "| R11, R12, R13, T1 |       "
     << ent->Data(1, 1) << ", " << ent->Data(1, 2) << ", "
-    << ent->Data(1, 3) << ", " << ent->Data(1, 4) << endl;
+    << ent->Data(1, 3) << ", " << ent->Data(1, 4) << Message_EndLine;
 
   S << "| R21, R22, R23, T2 |       "
     << ent->Data(2, 1) << ", " << ent->Data(2, 2) << ", "
-    << ent->Data(2, 3) << ", " << ent->Data(2, 4) << endl;
+    << ent->Data(2, 3) << ", " << ent->Data(2, 4) << Message_EndLine;
 
   S << "| R31, R32, R33, T3 |       "
     << ent->Data(3, 1) << ", " << ent->Data(3, 2) << ", "
-    << ent->Data(3, 3) << ", " << ent->Data(3, 4) << endl;
+    << ent->Data(3, 3) << ", " << ent->Data(3, 4) << Message_EndLine;
 
   switch (ent->FormNumber()) {
-    case  0 : S << "-- Direct Orthogonal Matrix"      << endl;  break;
-    case  1 : S << "-- Reverse Orthogonal Matrix"     << endl;  break;
-    case 10 : S << "-- Cartesien Coordinate System"   << endl;  break;
-    case 11 : S << "-- Cylindrical Coordinate System" << endl;  break;
-    case 12 : S << "-- Spherical Coordinate System"   << endl;  break;
-    default : S << "--  (Incorrect Form Number)"      << endl;  break;
+    case  0 : S << "-- Direct Orthogonal Matrix"      << Message_EndLine;  break;
+    case  1 : S << "-- Reverse Orthogonal Matrix"     << Message_EndLine;  break;
+    case 10 : S << "-- Cartesien Coordinate System"   << Message_EndLine;  break;
+    case 11 : S << "-- Cylindrical Coordinate System" << Message_EndLine;  break;
+    case 12 : S << "-- Spherical Coordinate System"   << Message_EndLine;  break;
+    default : S << "--  (Incorrect Form Number)"      << Message_EndLine;  break;
   }
 }
index 33a4cb1..8c7dd3a 100644 (file)
@@ -304,16 +304,16 @@ void IGESGeom_ToolTrimmedSurface::OwnDump(const Handle(IGESGeom_TrimmedSurface)&
 {
   Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESGeom_TrimmedSurface" << endl;
+  S << "IGESGeom_TrimmedSurface" << Message_EndLine;
 
   S << "Surface to be trimmed : ";
   dumper.Dump(ent->Surface(),S, tempSubLevel);
-  S << endl;
-  S << "Boundary type    : " << ent->OuterBoundaryType() << endl;
+  S << Message_EndLine;
+  S << "Boundary type    : " << ent->OuterBoundaryType() << Message_EndLine;
   S << "Outer Boundary   : ";
   dumper.Dump(ent->OuterContour(),S, tempSubLevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Inner Boundaries : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbInnerContours(),ent->InnerContour);
-  S << endl;
+  S << Message_EndLine;
 }
index d4bb1a4..9cce88f 100644 (file)
@@ -53,7 +53,7 @@ IGESGeom_TransformationMatrix::IGESGeom_TransformationMatrix ()    {  }
     void  IGESGeom_TransformationMatrix::SetFormNumber (const Standard_Integer fm)
 {
   if(theData.IsNull()) 
-    cout<<"Inavalid Transformation Data"<<endl;
+    std::cout<<"Inavalid Transformation Data"<<std::endl;
   if ((fm < 0 || fm > 1) && (fm < 10 || fm > 12)) throw Standard_OutOfRange("IGESGeom_TransformationMatrix : SetFormNumber");
   InitTypeAndForm(124,fm);
 }
index 3e1c885..94e6a39 100644 (file)
@@ -120,14 +120,14 @@ void IGESGraph_ToolColor::OwnDump
   (const Handle(IGESGraph_Color)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer /*level*/)  const
 {
-  S << "IGESGraph_Color" << endl;
+  S << "IGESGraph_Color" << Message_EndLine;
 
   Standard_Real Red,Green,Blue;
   ent->RGBIntensity(Red,Green,Blue);
-  S << "Red   (in % Of Full Intensity) : " << Red   << endl;
-  S << "Green (in % Of Full Intensity) : " << Green << endl;
-  S << "Blue  (in % Of Full Intensity) : " << Blue  << endl;
+  S << "Red   (in % Of Full Intensity) : " << Red   << Message_EndLine;
+  S << "Green (in % Of Full Intensity) : " << Green << Message_EndLine;
+  S << "Blue  (in % Of Full Intensity) : " << Blue  << Message_EndLine;
   S << "Color Name : ";
   IGESData_DumpString(S,ent->ColorName());
-  S << endl;
+  S << Message_EndLine;
 }
index 18f4bce..03e6381 100644 (file)
@@ -114,10 +114,10 @@ void IGESGraph_ToolDefinitionLevel::OwnDump
   (const Handle(IGESGraph_DefinitionLevel)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
 {
-  S << "IGESGraph_DefinitionLevel" << endl;
+  S << "IGESGraph_DefinitionLevel" << Message_EndLine;
 
   S << "Level Numbers : ";
   IGESData_DumpVals(S ,level,1, ent->NbPropertyValues(),ent->LevelNumber);
-  S << endl;
+  S << Message_EndLine;
 }
 
index ca8a464..83dffaf 100644 (file)
@@ -113,10 +113,10 @@ void IGESGraph_ToolDrawingSize::OwnDump
   (const Handle(IGESGraph_DrawingSize)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer /*level*/)  const
 {
-  S << "IGESGraph_DrawingSize" << endl;
+  S << "IGESGraph_DrawingSize" << Message_EndLine;
 
-  S << "No. of property values : " << ent->NbPropertyValues() << endl;
-  S << "Drawing extent along positive X-axis : " << ent->XSize() << endl;
-  S << "Drawing extent along positive Y-axis : " << ent->YSize() << endl;
-  S << endl;
+  S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
+  S << "Drawing extent along positive X-axis : " << ent->XSize() << Message_EndLine;
+  S << "Drawing extent along positive Y-axis : " << ent->YSize() << Message_EndLine;
+  S << Message_EndLine;
 }
index 2cde323..4ab83d2 100644 (file)
@@ -223,12 +223,12 @@ void IGESGraph_ToolDrawingUnits::OwnDump
   (const Handle(IGESGraph_DrawingUnits)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer /*level*/)  const
 {
-  S << "IGESGraph_DrawingUnits" << endl;
+  S << "IGESGraph_DrawingUnits" << Message_EndLine;
 
-  S << "No. of property values : " << ent->NbPropertyValues() << endl;
+  S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
   S << "  Units Flag : " << ent->Flag();
   S << "  Units Name : ";
   IGESData_DumpString(S,ent->Unit());
   S << "  computed Value (in meters) : " << ent->UnitValue();
-  S << endl;
+  S << Message_EndLine;
 }
index 9e73c67..b9549af 100644 (file)
@@ -109,9 +109,9 @@ void IGESGraph_ToolHighLight::OwnDump
   (const Handle(IGESGraph_HighLight)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer /*level*/)  const
 {
-  S << "IGESGraph_HighLight" << endl;
+  S << "IGESGraph_HighLight" << Message_EndLine;
 
-  S << "No. of property values : " << ent->NbPropertyValues() << endl;
-  S << "Highlight Status : " << ent->HighLightStatus() << endl;
-  S << endl;
+  S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
+  S << "Highlight Status : " << ent->HighLightStatus() << Message_EndLine;
+  S << Message_EndLine;
 }
index 88cda99..97948ba 100644 (file)
@@ -111,9 +111,9 @@ void IGESGraph_ToolIntercharacterSpacing::OwnDump
   (const Handle(IGESGraph_IntercharacterSpacing)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer /*level*/)  const
 {
-  S << "IGESGraph_IntercharacterSpacing" << endl;
+  S << "IGESGraph_IntercharacterSpacing" << Message_EndLine;
 
-  S << "No. of property values : " << ent->NbPropertyValues() << endl;
-  S << "Intercharacter space in % of text height : " << ent->ISpace() << endl;
-  S << endl;
+  S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
+  S << "Intercharacter space in % of text height : " << ent->ISpace() << Message_EndLine;
+  S << Message_EndLine;
 }
index 80c58c2..bbda86a 100644 (file)
@@ -132,19 +132,19 @@ void IGESGraph_ToolLineFontDefPattern::OwnDump
   (const Handle(IGESGraph_LineFontDefPattern)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer level)  const
 {
-  S << "IGESGraph_LineFontDefPattern" << endl;
+  S << "IGESGraph_LineFontDefPattern" << Message_EndLine;
 
   S << "Visible-Blank Segments : ";
   Standard_Integer nb = ent->NbSegments();
   IGESData_DumpVals(S ,level,1, nb,ent->Length);
-  S <<endl << "Display Pattern : ";
+  S <<Message_EndLine << "Display Pattern : ";
   IGESData_DumpString(S,ent->DisplayPattern());
-  S << endl;
+  S << Message_EndLine;
   if (level > 4) {
-    S << " -> Which Segments are Visible (the others are Blank) : " << endl;
+    S << " -> Which Segments are Visible (the others are Blank) : " << Message_EndLine;
     for (Standard_Integer I = 1; I <= nb; I ++) {
       if (ent->IsVisible(I)) S << "  " << I;
     }
-    S << endl;
+    S << Message_EndLine;
   }
 }
index 1f7a4ce..68d65df 100644 (file)
@@ -121,14 +121,14 @@ void IGESGraph_ToolLineFontDefTemplate::OwnDump
 {
   Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESGraph_LineFontDefTemplate" << endl;
+  S << "IGESGraph_LineFontDefTemplate" << Message_EndLine;
 
-  S << "Orientation : " << ent->Orientation() << endl;
+  S << "Orientation : " << ent->Orientation() << Message_EndLine;
   S << "Subfigure Display Entity For Template Display : ";
   dumper.Dump(ent->TemplateEntity(),S, tempSubLevel);
-  S << endl;
-  S << "Length Between Successive Template Figure : " << ent->Distance()<<endl;
-  S << "Scale Factor for Subfigure : " << ent->Scale() << endl;
-  S << endl;
+  S << Message_EndLine;
+  S << "Length Between Successive Template Figure : " << ent->Distance()<<Message_EndLine;
+  S << "Scale Factor for Subfigure : " << ent->Scale() << Message_EndLine;
+  S << Message_EndLine;
 }
 
index b4200cf..6360513 100644 (file)
@@ -108,9 +108,9 @@ void IGESGraph_ToolLineFontPredefined::OwnDump
   (const Handle(IGESGraph_LineFontPredefined)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer /*level*/)  const
 {
-  S << "IGESGraph_LineFontPredefined" << endl;
+  S << "IGESGraph_LineFontPredefined" << Message_EndLine;
 
-  S << "No. of property values : " << ent->NbPropertyValues() << endl;
-  S << "Line font pattern code : " << ent->LineFontPatternCode() << endl;
-  S << endl;
+  S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
+  S << "Line font pattern code : " << ent->LineFontPatternCode() << Message_EndLine;
+  S << Message_EndLine;
 }
index f092268..a7b73c1 100644 (file)
@@ -146,14 +146,14 @@ void IGESGraph_ToolNominalSize::OwnDump
   (const Handle(IGESGraph_NominalSize)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer /*level*/)  const
 {
-  S << "IGESGraph_NominalSize" << endl;
+  S << "IGESGraph_NominalSize" << Message_EndLine;
 
-  S << "No. of property values : " << ent->NbPropertyValues() << endl;
-  S << "Nominal size value : "     << ent->NominalSizeValue() << endl;
+  S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
+  S << "Nominal size value : "     << ent->NominalSizeValue() << Message_EndLine;
   S << "Nominal size name  : ";
   IGESData_DumpString(S,ent->NominalSizeName());
-  S << endl;
+  S << Message_EndLine;
   S << "Name of relevant engineering standard : ";
   IGESData_DumpString(S,ent->StandardName());
-  S << endl;
+  S << Message_EndLine;
 }
index 79d02ce..7f8a9ce 100644 (file)
@@ -111,10 +111,10 @@ void IGESGraph_ToolPick::OwnDump
   (const Handle(IGESGraph_Pick)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer /*level*/)  const
 {
-  S << "IGESGraph_Pick" << endl;
+  S << "IGESGraph_Pick" << Message_EndLine;
 
-  S << "No. of property values : " << ent->NbPropertyValues() << endl;
+  S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
   S << "Pick flag : " << ent->PickFlag();
   S << (ent->PickFlag() == 0 ? " NO" : " YES" );
-  S << endl;
+  S << Message_EndLine;
 }
index e419bd0..d1ed697 100644 (file)
@@ -186,10 +186,10 @@ void IGESGraph_ToolTextDisplayTemplate::OwnDump
 {
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESGraph_TextDisplayTemplate" << endl;
+  S << "IGESGraph_TextDisplayTemplate" << Message_EndLine;
 
   S << "Character box width  : "  << ent->BoxWidth() << "  ";
-  S << "Character box height : "  << ent->BoxHeight() << endl;
+  S << "Character box height : "  << ent->BoxHeight() << Message_EndLine;
   if ( ent->IsFontEntity() )
     {
       S << "Font Entity : ";
@@ -197,15 +197,15 @@ void IGESGraph_ToolTextDisplayTemplate::OwnDump
     }
   else
     S << "Font code : " << ent->FontCode();
-  S << endl;
+  S << Message_EndLine;
   S << "Slant angle    : "  << ent->SlantAngle() << "  ";
-  S << "Rotation angle : "  << ent->RotationAngle() << endl;
+  S << "Rotation angle : "  << ent->RotationAngle() << Message_EndLine;
   S << "Mirror flag    : "  << ent->MirrorFlag() << "  ";
-  S << "Rotate flag    : "  << ent->RotateFlag() << endl;
+  S << "Rotate flag    : "  << ent->RotateFlag() << Message_EndLine;
   if ( ent->FormNumber() == 0 )
     S << "Lower Left Corner coordinates : ";
   else
     S << "Increments from coordinates : "; 
   IGESData_DumpXYZL(S,level, ent->StartingCorner(), ent->Location());
-  S << endl;
+  S << Message_EndLine;
 }
index 32c73ab..e1be0fb 100644 (file)
@@ -293,27 +293,27 @@ void IGESGraph_ToolTextFontDef::OwnDump
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
   Standard_Integer nbchars  = ent->NbCharacters();
 
-  S << "IGESGraph_TextFontDef" << endl;
+  S << "IGESGraph_TextFontDef" << Message_EndLine;
 
-  S << "Font Code : " << ent->FontCode() << endl;
+  S << "Font Code : " << ent->FontCode() << Message_EndLine;
   S << "Font Name : ";
   IGESData_DumpString(S,ent->FontName());
-  S << endl;
+  S << Message_EndLine;
   if ( ent->IsSupersededFontEntity() ) {
     S << "Text Definition Entity : ";
     dumper.Dump(ent->SupersededFontEntity(),S, sublevel);
   }
   else  S << "Superseding Font Number : " << ent->SupersededFontCode();
-  S << endl
-  S << "No. of Grid Units eqvt to 1 Text Height : " << ent->Scale() << endl;
-  S << "ASCII Codes                              : " << endl
-    << "Grid Locations of next character origins : " << endl
-    << "Pen Motions                              : " << endl
-    << "Pen Positions                            : " << endl
+  S << Message_EndLine
+  S << "No. of Grid Units eqvt to 1 Text Height : " << ent->Scale() << Message_EndLine;
+  S << "ASCII Codes                              : " << Message_EndLine
+    << "Grid Locations of next character origins : " << Message_EndLine
+    << "Pen Motions                              : " << Message_EndLine
+    << "Pen Positions                            : " << Message_EndLine
     << "Grid Locations the pen moves to          : ";
-  S << "Count = "      << nbchars << endl;
+  S << "Count = "      << nbchars << Message_EndLine;
   IGESData_DumpVals(S,-level,1,nbchars,ent->ASCIICode);
-  S << endl;
+  S << Message_EndLine;
   if (level > 4 )
     {
       Handle(TColgp_HArray1OfXY) arrXY;
@@ -322,25 +322,25 @@ void IGESGraph_ToolTextFontDef::OwnDump
        {
          Standard_Integer IX,IY;
          S << "[" << I << "]: ";
-         S << "ASCII Code : " << ent->ASCIICode(I) << endl;
+         S << "ASCII Code : " << ent->ASCIICode(I) << Message_EndLine;
          S << "Grid Location of next character's origin : ";
          ent->NextCharOrigin(I,IX,IY);
          S << "X=" << IX << " Y=" << IY;
          nbmotions = ent->NbPenMotions(I);
          S << "  No. of Pen Motions : " << nbmotions;
-         if (level <= 5) S << " [ ask level > 5 for Details ]" << endl;
+         if (level <= 5) S << " [ ask level > 5 for Details ]" << Message_EndLine;
          else {
-           S << endl;
+           S << Message_EndLine;
            for (J = 1; J <= nbmotions; J++)
              {
                S << "Pen up(1) / down(0) flag : " << (Standard_Integer)ent->IsPenUp(I,J);
                S << " Next Pen Position : ";
                ent->NextPenPosition(I,J, IX,IY);
                S << " X="<<IX<<" Y="<<IY;
-               S << endl;
+               S << Message_EndLine;
              }
          }
        }
     }
-  S << endl;
+  S << Message_EndLine;
 }
index ac25b72..da39bda 100644 (file)
@@ -161,17 +161,17 @@ void IGESGraph_ToolUniformRectGrid::OwnDump
   (const Handle(IGESGraph_UniformRectGrid)& ent, const IGESData_IGESDumper& /*dumper*/,
    const Handle(Message_Messenger)& S, const Standard_Integer /*level*/)  const
 {
-  S << "IGESGraph_UniformRectGrid" << endl;
+  S << "IGESGraph_UniformRectGrid" << Message_EndLine;
 
-  S << "No. of property values : " << ent->NbPropertyValues() << endl;
+  S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
   S << "Grid         : " << ( ent->IsFinite() ? "Finite" : "Infinite");
   S << "  -  Composed of " << ( ent->IsLine() ? "Lines" : "Points");
-  S << "  -  " << ( ent->IsWeighted() ? "Weighted" : "Unweighted") << endl;
+  S << "  -  " << ( ent->IsWeighted() ? "Weighted" : "Unweighted") << Message_EndLine;
   S << "Grid Point   : ";
   IGESData_DumpXY(S, ent->GridPoint());
   S << "  Grid Spacing : ";
-  IGESData_DumpXY(S, ent->GridSpacing());  S << endl;
+  IGESData_DumpXY(S, ent->GridSpacing());  S << Message_EndLine;
   if (ent->IsFinite())
     S << "No. of points/lines in direction :  X : " << ent->NbPointsX()
-      << "  -  Y : " << ent->NbPointsY() << endl;
+      << "  -  Y : " << ent->NbPointsY() << Message_EndLine;
 }
index 33ab49d..16ba558 100644 (file)
@@ -126,24 +126,24 @@ IGESSelect_Activator::IGESSelect_Activator()
       Standard_Integer listmode = 0;
       if (argc == 2 && arg1[0] == '?') argc = -1;
       if (argc < 2) {
-       cout<<"Ajouter un argument pour avoir :\n"<<
+       std::cout<<"Ajouter un argument pour avoir :\n"<<
          " 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"<<endl;
+         "  sur tout le modele. Ajouter nom selection pour lister sur une partie"<<std::endl;
        return  (argc >= 0 ? IFSelect_RetError : IFSelect_RetVoid);
       }
       if (arg1[0] == 'l') {
-       listmode = 0;  cout<<"Liste resumee";
+       listmode = 0;  std::cout<<"Liste resumee";
       }
       else if (arg1[0] == 'c') {
-       listmode = 1;  cout<<"Liste complete par item (pas pour Remaining)"<<endl;
+       listmode = 1;  std::cout<<"Liste complete par item (pas pour Remaining)"<<std::endl;
       }
       else if (arg1[0] == 'r') {
-       listmode = 2;  cout<<"Liste complete par item et pour Remaining"<<endl;
+       listmode = 2;  std::cout<<"Liste complete par item et pour Remaining"<<std::endl;
       }
       else {
-       cout<<"Parametre de listage non compris"<<endl; return IFSelect_RetError;
+       std::cout<<"Parametre de listage non compris"<<std::endl; return IFSelect_RetError;
       }
 
       Handle(IGESSelect_ViewSorter) vs = new IGESSelect_ViewSorter;
@@ -153,7 +153,7 @@ IGESSelect_Activator::IGESSelect_Activator()
 //   on demande une selection
        DeclareAndCast(IFSelect_Selection,sel,WS->NamedItem(arg2));
        if (sel.IsNull()) {
-         cout<<"Pas une selection : "<<arg2<<endl;
+         std::cout<<"Pas une selection : "<<arg2<<std::endl;
          return IFSelect_RetError;
        }
        vs->AddList (WS->SelectionResult(sel));
@@ -163,24 +163,24 @@ IGESSelect_Activator::IGESSelect_Activator()
       if (number == 7) vs->SortSingleViews(Standard_True);
       Handle(IFSelect_PacketList) sets = vs->Sets(listdr);
       Standard_Integer nb = vs->NbSets(listdr);
-      cout<<" --  ViewSorter for";
-      if (number == 5) cout<<" Views & Drawings";
-      if (number == 6) cout<<" Drawings only (complete)";
-      if (number == 7) cout<<" Single Views & Drawing Frames";
-      cout<<", on "<<vs->NbEntities()<<" ent.s, give "<<nb<<" Sets"<<endl;
+      std::cout<<" --  ViewSorter for";
+      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;
 
       Interface_EntityIterator iter;
       for (Standard_Integer i = 1; i <= nb; i ++) {
-       cout<<" --  Set n0 "<<i<<" Item=entity n0: "<<
+       std::cout<<" --  Set n0 "<<i<<" Item=entity n0: "<<
          WS->Model()->Number(vs->SetItem(i,listdr))<<"  List:";
-        cout<<sets->NbEntities(i)<<" ent.s:"<<endl;
+        std::cout<<sets->NbEntities(i)<<" ent.s:"<<std::endl;
        if (listmode == 0) continue;
        iter = sets->Entities(i);
        WS->ListEntities (iter,0);
       }
 
-      cout <<" --  Remaining Entities (not yet sorted) :"
-       <<sets->NbDuplicated(0,Standard_False)<<endl;
+      std::cout <<" --  Remaining Entities (not yet sorted) :"
+       <<sets->NbDuplicated(0,Standard_False)<<std::endl;
       if (listmode < 2) return IFSelect_RetVoid;
       iter = sets->Duplicated(0,Standard_False);
       WS->ListEntities(iter,0);
@@ -189,8 +189,8 @@ IGESSelect_Activator::IGESSelect_Activator()
 
     case 10 : {   //        ****    IGESType (form Type/Form)
       if (argc < 2) {
-       cout<<"Donner le n0 de type desire, + en option la forme\n"
-         <<"  Si pas de forme, prend toutes les formes du type demande"<<endl;
+       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;
        return IFSelect_RetError;
       }
       char signature[20];
@@ -207,7 +207,7 @@ IGESSelect_Activator::IGESSelect_Activator()
 
     case 12 :  {  //        ****    IGES Name
       if (argc < 2) {
-        cout<<"Donner un Nom de TextParam pour IGESName"<<endl;
+        std::cout<<"Donner un Nom de TextParam pour IGESName"<<std::endl;
         return IFSelect_RetError;
       }
       Handle(IGESSelect_SelectName) sel = new IGESSelect_SelectName;
@@ -222,12 +222,12 @@ IGESSelect_Activator::IGESSelect_Activator()
 
     case 14 : {   //        ****    IGES LevelNumber
       if (argc < 2) {
-        cout<<"Donner nom IntParam pour Level"<<endl;
+        std::cout<<"Donner nom IntParam pour Level"<<std::endl;
         return IFSelect_RetError;
       }
       DeclareAndCast(IFSelect_IntParam,lev,WS->NamedItem(arg1));
       if (lev.IsNull()) {
-        cout<<arg1<<" : pas un IntParam (pour Level)"<<endl;
+        std::cout<<arg1<<" : pas un IntParam (pour Level)"<<std::endl;
         return IFSelect_RetError;
       }
       Handle(IGESSelect_SelectLevelNumber) sel = new IGESSelect_SelectLevelNumber;
@@ -259,7 +259,7 @@ IGESSelect_Activator::IGESSelect_Activator()
       char prem = ' ';
       if (argc < 2) prem = '?';
       else if (argc == 5) {
-        cout<<"floatformat tout court donne les formes admises"<<endl;
+        std::cout<<"floatformat tout court donne les formes admises"<<std::endl;
         return IFSelect_RetError;
       }
       else prem = arg1[0];
@@ -269,21 +269,21 @@ IGESSelect_Activator::IGESSelect_Activator()
       else if (prem == 'Z' || prem == 'z') zerosup = Standard_True;
       else if (prem >= 48  && prem <= 57)  digits  = atoi(arg1);
       else {
-       cout<<"floatformat digits, digits=nb de chiffres signifiants, ou\n"
+       std::cout<<"floatformat digits, digits=nb de chiffres signifiants, ou\n"
          <<  "floatformat NZ %mainformat [%rangeformat [Rmin Rmax]]\n"
          <<"  NZ : N ou n pour Non-zero-suppress, Z ou z pour zero-suppress\n"
          <<" %mainformat  : format principal type printf, ex,: %E\n"
          <<" + optionnel  : format secondaire (flottants autour de 1.) :\n"
          <<" %rangeformat Rmin Rmax : format type printf entre Rmin et Rmax\n"
          <<" %rangeformat tout seul : format type printf entre 0.1 et 1000.\n"
-           <<flush;
+           <<std::flush;
        return (prem == '?' ? IFSelect_RetVoid : IFSelect_RetError);
       }
       Standard_Real Rmin=0., Rmax=0.;
       if (argc > 4) {
        Rmin = Atof(pilot->Word(4).ToCString());
        Rmax = Atof(pilot->Word(5).ToCString());
-       if (Rmin <= 0 || Rmax <= 0) { cout<<"intervalle : donner reels > 0"<<endl; return IFSelect_RetError; }
+       if (Rmin <= 0 || Rmax <= 0) { std::cout<<"intervalle : donner reels > 0"<<std::endl; return IFSelect_RetError; }
       }
       Handle(IGESSelect_FloatFormat) fm = new IGESSelect_FloatFormat;
       if (argc == 2) fm->SetDefault(digits);
@@ -299,17 +299,17 @@ IGESSelect_Activator::IGESSelect_Activator()
 
     case 41 : {   //        ****    SetGlobalParameter
       if (argc < 3) {
-        cout<<"Donner entier=n0 param a changer + nom TextParam pour la valeur"<<endl;
+        std::cout<<"Donner entier=n0 param a changer + nom TextParam pour la valeur"<<std::endl;
         return IFSelect_RetError;
       }
       Standard_Integer numpar = atoi(arg1);
       if (numpar <= 0) {
-        cout<<"Pas un n0 de param global correct:"<<arg1<<endl;
+        std::cout<<"Pas un n0 de param global correct:"<<arg1<<std::endl;
         return IFSelect_RetError;
       }
       DeclareAndCast(TCollection_HAsciiString,val,WS->NamedItem(arg2));
       if (val.IsNull()) {
-        cout<<"Pas un nom de TextParam:"<<arg2<<endl;
+        std::cout<<"Pas un nom de TextParam:"<<arg2<<std::endl;
         return IFSelect_RetError;
       }
       Handle(IGESSelect_SetGlobalParameter) mod =
@@ -349,8 +349,8 @@ IGESSelect_Activator::IGESSelect_Activator()
 
     case 60 : {   //        ****    Spline To BSpline
       if (argc < 2) {
-        cout<<"Pour SplineToBSpline, donner mode :\n"<<
-                       " n pour normal, t pour tryC2"<<endl;
+        std::cout<<"Pour SplineToBSpline, donner mode :\n"<<
+                       " n pour normal, t pour tryC2"<<std::endl;
         return IFSelect_RetError;
       }
       Standard_Boolean tryC2;
@@ -359,7 +359,7 @@ IGESSelect_Activator::IGESSelect_Activator()
       else if (arg1[0] == 't' || arg1[0] == 'T')
         tryC2 = Standard_True;
       else {
-        cout<<" Mode incorrect : "<<arg1<<endl;
+        std::cout<<" Mode incorrect : "<<arg1<<std::endl;
         return IFSelect_RetError;
       }
       Handle(IGESSelect_SplineToBSpline) conv =
index c074ea9..2647f3f 100644 (file)
@@ -136,7 +136,7 @@ IGESSelect_CounterOfLevelNumber::IGESSelect_CounterOfLevelNumber
   (const Handle(Message_Messenger)& S) const
 {
   IFSelect_SignatureList::PrintCount(S);
-  S<<" Highest value : " << thehigh << endl;
+  S<<" Highest value : " << thehigh << Message_EndLine;
   if (thenblists > 0) S<<"REMARK for LEVEL LIST : Entities are counted in"
-    <<" <LEVEL LIST>\n, and in each Level value of their list"<<endl;
+    <<" <LEVEL LIST>\n, and in each Level value of their list"<<Message_EndLine;
 }
index ac73307..9bbb016 100644 (file)
@@ -45,7 +45,7 @@ IGESSelect_SelectName::IGESSelect_SelectName ()    {  }
   if (!igesent->HasName()) return Standard_False;
   if (thename.IsNull()) return Standard_False;
   Handle(TCollection_HAsciiString) name = igesent->NameValue();
-//  cout<<"SelectName:"<<thename->ToCString()<<",with:"<<name->ToCString()<<",IsSameString="<<thename->IsSameString (name,Standard_False)<<endl;
+//  std::cout<<"SelectName:"<<thename->ToCString()<<",with:"<<name->ToCString()<<",IsSameString="<<thename->IsSameString (name,Standard_False)<<std::endl;
   Standard_Integer nb0 = thename->Length();
   Standard_Integer nb1 = name->Length();
   Standard_Integer nbf = (nb1 <= nb0 ? nb1 : nb0);
index 9fb4833..a405fef 100644 (file)
@@ -54,8 +54,8 @@ Standard_Boolean  IGESSelect_SplineToBSpline::Perform
     if (it == 112 || it == 126) {
       thefound = Standard_True;
 #ifdef OCCT_DEBUG
-      cout<<"IGESSelect_SplineToBSpline : n0."<<i
-       << (it == 112 ? ", Curve" : ", Surface")<<" to convert"<<endl;
+      std::cout<<"IGESSelect_SplineToBSpline : n0."<<i
+       << (it == 112 ? ", Curve" : ", Surface")<<" to convert"<<std::endl;
 #endif
     }
   }
index 822ab6c..06882d7 100644 (file)
@@ -84,8 +84,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<<endl;
-  if (status > 0) sout<<"Error when reading file : "<<name<<endl;
+  if (status < 0) sout<<"File not found : "<<name<<Message_EndLine;
+  if (status > 0) sout<<"Error when reading file : "<<name<<Message_EndLine;
   if (status == 0) model = igesmod;
   else             model.Nullify();
   return status;
@@ -101,11 +101,11 @@ static  Handle(IGESData_FileProtocol) IGESProto;
   DeclareAndCast(IGESData_Protocol,prot,ctx.Protocol());
 
   if (igesmod.IsNull() || prot.IsNull()) return Standard_False;
-  ofstream fout;
-  OSD_OpenStream(fout,ctx.FileName(),ios::out );
+  std::ofstream fout;
+  OSD_OpenStream(fout,ctx.FileName(),std::ios::out );
   if (!fout) {
     ctx.CCheck(0)->AddFail("IGES File could not be created");
-    sout<<" - IGES File could not be created : " << ctx.FileName() << endl; return 0;
+    sout<<" - IGES File could not be created : " << ctx.FileName() << Message_EndLine; return 0;
   }
   sout<<" IGES File Name : "<<ctx.FileName();
   IGESData_IGESWriter VW(igesmod);  
@@ -121,20 +121,20 @@ static  Handle(IGESData_FileProtocol) IGESProto;
     sout << " .. FileMod." << numod <<" "<< filemod->Label();
     if (ctx.IsForAll()) sout << " (all model)";
     else  sout << " (" << ctx.NbEntities() << " entities)";
-//    sout << flush;
+//    sout << std::flush;
   }
 
 //  Envoi
   VW.SendModel(prot);            
   sout<<" Write ";
   if (themodefnes) VW.WriteMode() = 10;
-  Standard_Boolean status = VW.Print(fout);                sout<<" Done"<<endl;
+  Standard_Boolean status = VW.Print(fout);                sout<<" Done"<<Message_EndLine;
 
   errno = 0;
   fout.close();
   status = fout.good() && status && !errno;
   if(errno)
-    sout << strerror(errno) << endl;
+    sout << strerror(errno) << Message_EndLine;
 
   return status;
 }
@@ -169,13 +169,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"<<endl; return ;  }
+  if (entity.IsNull()) { S<<" Null"<<Message_EndLine; 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)" << endl;
+    else S << "(undefined)" << Message_EndLine;
     igesent = GetCasted(IGESData_IGESEntity,con);
     con.Nullify();
     Handle(Interface_Check) check = model->ReportEntity(num)->Check();
@@ -192,6 +192,6 @@ static  Handle(IGESData_FileProtocol) IGESProto;
     dump.Dump(igesent,S,level,(level-1)/3);
   }
   catch (Standard_Failure const&) {
-    S << " **  Dump Interrupt **" << endl;
+    S << " **  Dump Interrupt **" << Message_EndLine;
   }
 }
index e88e881..eb7421c 100644 (file)
@@ -187,15 +187,15 @@ void IGESSolid_ToolBlock::OwnDump
   (const Handle(IGESSolid_Block)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_Block" << endl;
+  S << "IGESSolid_Block" << Message_EndLine;
 
   S <<         "Size   : ";
   IGESData_DumpXYZ(S, ent->Size());
-  S << endl << "Corner : ";
+  S << Message_EndLine << "Corner : ";
   IGESData_DumpXYZL(S,level, ent->Corner(), ent->Location());
-  S << endl << "XAxis  : ";
+  S << Message_EndLine << "XAxis  : ";
   IGESData_DumpXYZL(S,level, ent->XAxis(), ent->VectorLocation());
-  S << endl << "ZAxis  : ";
+  S << Message_EndLine << "ZAxis  : ";
   IGESData_DumpXYZL(S,level, ent->ZAxis(), ent->VectorLocation());
-  S << endl;
+  S << Message_EndLine;
 }
index 5ec8254..abddb0d 100644 (file)
@@ -178,31 +178,31 @@ void  IGESSolid_ToolBooleanTree::OwnDump
 {
   Standard_Integer i, length = ent->Length();
 
-  S << "IGESSolid_Boolean Tree" << endl;
+  S << "IGESSolid_Boolean Tree" << Message_EndLine;
 
-  S << "Length of the post-order notation :" << length << endl;
+  S << "Length of the post-order notation :" << length << Message_EndLine;
 
   if (level > 4)
     {
-      S << "Post-order notation of the Boolean Tree :" << endl;
+      S << "Post-order notation of the Boolean Tree :" << Message_EndLine;
       for (i = 1; i <= length; i++)
        {
           if (ent->IsOperand(i))
            {
               S << "[" << i << "] Operand : ";
               dumper.Dump (ent->Operand(i),S, 1);
-              S << endl;
+              S << Message_EndLine;
            }
           else
            {
              Standard_Integer opcode = ent->Operation(i);
              S << "[" << i << "] Operator : " << opcode;
              if      (opcode == 1) S << " (Union)";
-             else if (opcode == 2) S << " (Intersection)" << endl;
-             else if (opcode == 3) S << " (Difference)" << endl;
-             else                  S << " (incorrect value)" << endl;
+             else if (opcode == 2) S << " (Intersection)" << Message_EndLine;
+             else if (opcode == 3) S << " (Difference)" << Message_EndLine;
+             else                  S << " (incorrect value)" << Message_EndLine;
            }
        }
     }
-//  S << endl;
+//  S << std::endl;
 }
index bf11166..7008154 100644 (file)
@@ -171,14 +171,14 @@ void  IGESSolid_ToolConeFrustum::OwnDump
   (const Handle(IGESSolid_ConeFrustum)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_ConeFrustum" << endl;
+  S << "IGESSolid_ConeFrustum" << Message_EndLine;
 
   S << "Height : " << ent->Height() << "  ";
   S << "Larger face Radius : "  << ent->LargerRadius() << "  ";
-  S << "Smaller face Radius : " << ent->SmallerRadius() << endl;
+  S << "Smaller face Radius : " << ent->SmallerRadius() << Message_EndLine;
   S << "Face Center : ";
   IGESData_DumpXYZL(S,level, ent->FaceCenter(), ent->Location());
-  S << endl << "Axis : ";
+  S << Message_EndLine << "Axis : ";
   IGESData_DumpXYZL(S,level, ent->Axis(), ent->VectorLocation());
-  S << endl;
+  S << Message_EndLine;
 }
index d832bb0..d0559cb 100644 (file)
@@ -143,22 +143,22 @@ void  IGESSolid_ToolConicalSurface::OwnDump
   (const Handle(IGESSolid_ConicalSurface)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_ConicalSurface" << endl;
+  S << "IGESSolid_ConicalSurface" << Message_EndLine;
 
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
   S << "Point on axis  : ";
   dumper.Dump(ent->LocationPoint(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Axis direction : ";
   dumper.Dump(ent->Axis(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Radius         : " << ent->Radius() << "  ";
-  S << "Semi-angle     : " << ent->SemiAngle() << endl;
+  S << "Semi-angle     : " << ent->SemiAngle() << Message_EndLine;
   if (ent->IsParametrised())
     {
-      S << "Surface is Parametrised  -  Reference direction : " << endl;
+      S << "Surface is Parametrised  -  Reference direction : " << Message_EndLine;
       dumper.Dump(ent->ReferenceDir(),S, sublevel);
-      S << endl;
+      S << Message_EndLine;
     }
-  else S << "Surface is UnParametrised" << endl;
+  else S << "Surface is UnParametrised" << Message_EndLine;
 }
index 1b383ca..8c72c03 100644 (file)
@@ -165,13 +165,13 @@ void  IGESSolid_ToolCylinder::OwnDump
 //  gp_Pnt TCenter = ent->TransformedFaceCenter();
 //  gp_Dir TAxis   = ent->TransformedAxis();
 
-  S << "IGESSolid_Cylinder" << endl;
+  S << "IGESSolid_Cylinder" << Message_EndLine;
 
   S << "Height : " << ent->Height() << "  ";
-  S << "Radius : " << ent->Radius() << endl;
+  S << "Radius : " << ent->Radius() << Message_EndLine;
   S << "Center : ";
   IGESData_DumpXYZL(S,level, ent->FaceCenter(), ent->Location());
-  S << endl << "Axis : ";
+  S << Message_EndLine << "Axis : ";
   IGESData_DumpXYZL(S,level, ent->Axis(), ent->VectorLocation());
-  S << endl;
+  S << Message_EndLine;
 }
index 813f99f..1666f87 100644 (file)
@@ -136,21 +136,21 @@ void  IGESSolid_ToolCylindricalSurface::OwnDump
   (const Handle(IGESSolid_CylindricalSurface)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_CylindricalSurface" << endl;
+  S << "IGESSolid_CylindricalSurface" << Message_EndLine;
 
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
   S << "Point on axis  : ";
   dumper.Dump(ent->LocationPoint(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Axis direction : ";
   dumper.Dump(ent->Axis(),S, sublevel);
-  S << endl;
-  S << "Radius         : " << ent->Radius() << endl;
+  S << Message_EndLine;
+  S << "Radius         : " << ent->Radius() << Message_EndLine;
   if (ent->IsParametrised())
     {
       S << "Surface is Parametrised  -  Reference direction : ";
       dumper.Dump(ent->ReferenceDir(),S, sublevel);
-      S << endl;
+      S << Message_EndLine;
     }
-  else S << "Surface is UnParametrised" << endl;
+  else S << "Surface is UnParametrised" << Message_EndLine;
 }
index e390ba6..a49d44e 100644 (file)
@@ -351,8 +351,8 @@ void IGESSolid_ToolEdgeList::OwnDump(const Handle(IGESSolid_EdgeList)& ent,
 {
   Standard_Integer i, length = ent->NbEdges();
 
-  S << "IGESSolid_EdgeList" << endl;
-  S << "Number of edge tuples : " << length << endl;
+  S << "IGESSolid_EdgeList" << Message_EndLine;
+  S << "Number of edge tuples : " << length << Message_EndLine;
   switch (level)
     {
     case 4 :
@@ -360,15 +360,15 @@ void IGESSolid_ToolEdgeList::OwnDump(const Handle(IGESSolid_EdgeList)& ent,
       S << "Start Vertex List : ";
       S << "Start Vertex Index : ";
       IGESData_DumpVals(S ,level,1, length,ent->StartVertexIndex);
-      S << endl;
+      S << Message_EndLine;
       S << "End Vertex List : ";
       S << "End Vertex Index : ";
       IGESData_DumpVals(S ,level,1, length,ent->EndVertexIndex);
-      S << endl;
+      S << Message_EndLine;
       break;
     case 5 :
     case 6 :
-      S<<" Curve - Vertices. Start : (VertexList,Index)  End : (VertexList,Index)"<<endl;
+      S<<" Curve - Vertices. Start : (VertexList,Index)  End : (VertexList,Index)"<<Message_EndLine;
       for (i = 1; i <= length; i ++)
        {
 //[123]:Curve : #1234 - Vertices. Start = (#5678 , 3467)  End = (#1234 , 4664)
@@ -380,11 +380,11 @@ void IGESSolid_ToolEdgeList::OwnDump(const Handle(IGESSolid_EdgeList)& ent,
          S << ")  End : (";
          dumper.Dump (ent->EndVertexList(i),S, 0);
          S << " , " << ent->EndVertexIndex(i);
-         S << ")"   << endl;
+         S << ")"   << Message_EndLine;
        }
       break;
       default :
        break;
     }
-  S << endl;
+  S << Message_EndLine;
 }
index f931acb..46e05ae 100644 (file)
@@ -190,15 +190,15 @@ void  IGESSolid_ToolEllipsoid::OwnDump
   (const Handle(IGESSolid_Ellipsoid)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_Ellipsoid" << endl;
+  S << "IGESSolid_Ellipsoid" << Message_EndLine;
 
   S << "Size   : ";
   IGESData_DumpXYZ(S, ent->Size());
-  S << endl << "Center : ";
+  S << Message_EndLine << "Center : ";
   IGESData_DumpXYZL(S,level, ent->Center(), ent->Location());
-  S << endl << "XAxis  : ";
+  S << Message_EndLine << "XAxis  : ";
   IGESData_DumpXYZL(S,level, ent->XAxis(), ent->VectorLocation());
-  S << endl << "ZAxis  : ";
+  S << Message_EndLine << "ZAxis  : ";
   IGESData_DumpXYZL(S,level, ent->ZAxis(), ent->VectorLocation());
-  S << endl;
+  S << Message_EndLine;
 }
index 293ca11..3b2053c 100644 (file)
@@ -249,16 +249,16 @@ void IGESSolid_ToolFace::OwnDump(const Handle(IGESSolid_Face)& ent,
                                  const Handle(Message_Messenger)& S,
                                  const Standard_Integer level) const
 {
-  S << "IGESSolid_Face" << endl;
+  S << "IGESSolid_Face" << Message_EndLine;
 
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
   S << "Surface : ";
   dumper.Dump(ent->Surface(),S, sublevel);
-  S << endl;
-  if (ent->HasOuterLoop())  S << "Outer loop is present (First one)" << endl;
-  else                      S << "Outer loop is not present" << endl;
+  S << Message_EndLine;
+  if (ent->HasOuterLoop())  S << "Outer loop is present (First one)" << Message_EndLine;
+  else                      S << "Outer loop is not present" << Message_EndLine;
   S << "Loops : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbLoops(),ent->Loop);
-  S << endl;
+  S << Message_EndLine;
 }
 
index 4798630..8538592 100644 (file)
@@ -375,15 +375,15 @@ void IGESSolid_ToolLoop::OwnDump(const Handle(IGESSolid_Loop)& ent,
   Standard_Integer nbedges  = ent->NbEdges();
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "IGESSolid_Loop" << endl;
+  S << "IGESSolid_Loop" << Message_EndLine;
 
-  S << "Edge types : " << endl;
-  S << "Edges      : " << endl;
-  S << "List index : " << endl;
-  S << "Orientation flags : " << endl;
+  S << "Edge types : " << Message_EndLine;
+  S << "Edges      : " << Message_EndLine;
+  S << "List index : " << Message_EndLine;
+  S << "Orientation flags : " << Message_EndLine;
   S << "Parametric flags  : ";
   IGESData_DumpEntities(S,dumper,-level,1, nbedges,ent->Edge);
-  S << endl;
+  S << Message_EndLine;
   if (level > 4)
     {
       S << "[ ";
@@ -409,14 +409,14 @@ void IGESSolid_ToolLoop::OwnDump(const Handle(IGESSolid_Loop)& ent,
                      << ( ent->IsIsoparametric(i,j) ? "True" : "False" ) << "  ";
                    S << "Parametric curve : ";
                    dumper.Dump (ent->ParametricCurve(i,j),S, sublevel);
-                   S << endl;
+                   S << Message_EndLine;
                  }
                S << " ]";
              }
            }
-         S << endl;
+         S << Message_EndLine;
        }
       S << " ]";
     }
-  S << endl;
+  S << Message_EndLine;
 }
index 60e8c9b..d87f164 100644 (file)
@@ -209,22 +209,22 @@ void  IGESSolid_ToolManifoldSolid::OwnDump
   (const Handle(IGESSolid_ManifoldSolid)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_ManifoldSolid" << endl;
+  S << "IGESSolid_ManifoldSolid" << Message_EndLine;
 
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
   S << "Shell : ";
   dumper.Dump(ent->Shell(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   if (ent->OrientationFlag())
-    S << "Orientation agrees with the underlying surface" << endl;
+    S << "Orientation agrees with the underlying surface" << Message_EndLine;
   else
-    S << "Orientation does not agrees with the underlying surface" << endl;
-  S << "Void shells :" << endl << "Orientation flags : ";
+    S << "Orientation does not agrees with the underlying surface" << Message_EndLine;
+  S << "Void shells :" << Message_EndLine << "Orientation flags : ";
   IGESData_DumpEntities(S,dumper,-level,1, ent->NbVoidShells(),ent->VoidShell);
-  S << endl;
+  S << Message_EndLine;
   if (level > 4)
     {
-      S << "[ " << endl;
+      S << "[ " << Message_EndLine;
       if (ent->NbVoidShells() > 0)
        {
           Standard_Integer upper = ent->NbVoidShells();
@@ -234,12 +234,12 @@ void  IGESSolid_ToolManifoldSolid::OwnDump
               S << "Void shell : ";
               dumper.Dump (ent->VoidShell(i),S, sublevel);
               S << "  - Orientation flag : ";
-              if (ent->VoidOrientationFlag(i)) S << "True"  << endl;
-              else                            S << "False" << endl;
+              if (ent->VoidOrientationFlag(i)) S << "True"  << Message_EndLine;
+              else                            S << "False" << Message_EndLine;
            }
        }
-      S << " ]" << endl;
+      S << " ]" << Message_EndLine;
     }
-  S << endl;
+  S << Message_EndLine;
 }
 
index d51a835..02a8806 100644 (file)
@@ -257,20 +257,20 @@ void IGESSolid_ToolPlaneSurface::OwnDump(const Handle(IGESSolid_PlaneSurface)& e
                                          const Handle(Message_Messenger)& S,
                                          const Standard_Integer level) const
 {
-  S << "IGESSolid_PlaneSurface" << endl;
+  S << "IGESSolid_PlaneSurface" << Message_EndLine;
 
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
   S << "Point on axis    : ";
   dumper.Dump(ent->LocationPoint(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Normal direction : ";
   dumper.Dump(ent->Normal(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   if (ent->IsParametrised())
     {
       S << "Surface is Parametrised  -  Reference direction : ";
       dumper.Dump(ent->ReferenceDir(),S, sublevel);
-      S << endl;
+      S << Message_EndLine;
     }
-  else S << "Surface is UnParametrised" << endl;
+  else S << "Surface is UnParametrised" << Message_EndLine;
 }
index e7d71c6..c9c698a 100644 (file)
@@ -196,16 +196,16 @@ void  IGESSolid_ToolRightAngularWedge::OwnDump
   (const Handle(IGESSolid_RightAngularWedge)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_RightAngularWedge" << endl;
+  S << "IGESSolid_RightAngularWedge" << Message_EndLine;
 
   S << "Size   : ";
   IGESData_DumpXYZ(S, ent->Size());  S << "  ";
-  S << "XSmall : " << ent->XSmallLength() << endl;
+  S << "XSmall : " << ent->XSmallLength() << Message_EndLine;
   S << "Corner : ";
   IGESData_DumpXYZL(S,level, ent->Corner(), ent->Location());
-  S << endl << "XAxis : ";
+  S << Message_EndLine << "XAxis : ";
   IGESData_DumpXYZL(S,level, ent->XAxis(), ent->VectorLocation());
-  S << endl << "ZAxis : ";
+  S << Message_EndLine << "ZAxis : ";
   IGESData_DumpXYZL(S,level, ent->ZAxis(), ent->VectorLocation());
-  S << endl;
+  S << Message_EndLine;
 }
index 3e15d01..16c91cd 100644 (file)
@@ -107,12 +107,12 @@ void  IGESSolid_ToolSelectedComponent::OwnDump
   (const Handle(IGESSolid_SelectedComponent)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_SelectedComponent" << endl;
+  S << "IGESSolid_SelectedComponent" << Message_EndLine;
 
   // the heading for boolean tree is in BooleanTree OwnDump
-  S << "Boolean Tree Entity : " << endl;
+  S << "Boolean Tree Entity : " << Message_EndLine;
   dumper.Dump(ent->Component(),S, (level <= 4) ? 0 : 1);
   S << "Seleted Point       : ";
   IGESData_DumpXYZL(S,level, ent->SelectPoint(), ent->Location());
-  S << endl;
+  S << Message_EndLine;
 }
index 4e6ceef..d37266f 100644 (file)
@@ -232,25 +232,25 @@ void IGESSolid_ToolShell::OwnDump(const Handle(IGESSolid_Shell)& ent,
                                   const Handle(Message_Messenger)& S,
                                   const Standard_Integer level) const
 {
-  S << "IGESSolid_Shell" << endl;
+  S << "IGESSolid_Shell" << Message_EndLine;
   Standard_Integer upper = ent->NbFaces();
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
-  S << "Faces : " << endl << "Orientation flags : ";
+  S << "Faces : " << Message_EndLine << "Orientation flags : ";
   IGESData_DumpEntities(S,dumper,-level,1, ent->NbFaces(),ent->Face);
-  S << endl;
+  S << Message_EndLine;
   if (level > 4)
     {
-      S << "[" << endl;
+      S << "[" << Message_EndLine;
       for (Standard_Integer i = 1; i <= upper; i ++)
        {
           S << "[" << i << "]:  ";
           S << "Face : ";
           dumper.Dump (ent->Face(i),S, sublevel);
           S << "  - Orientation flag : ";
-          if (ent->Orientation(i)) S << "True" << endl;
-          else                     S << "False" << endl;
+          if (ent->Orientation(i)) S << "True" << Message_EndLine;
+          else                     S << "False" << Message_EndLine;
        }
     }
-  S << endl;
+  S << Message_EndLine;
 }
index 2f0d7a9..4bd250a 100644 (file)
@@ -160,12 +160,12 @@ void  IGESSolid_ToolSolidAssembly::OwnDump
 {
 //  Standard_Integer upper = ent->NbItems();
 
-  S << "IGESSolid_SolidAssembly" << endl;
+  S << "IGESSolid_SolidAssembly" << Message_EndLine;
 
   S << "Items : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbItems(),ent->Item);
-  S << endl;
+  S << Message_EndLine;
   S << "Matrices : ";
   IGESData_DumpEntities(S,dumper ,level,1, ent->NbItems(),ent->TransfMatrix);
-  S << endl;
+  S << Message_EndLine;
 }
index 54e45e8..6825ff9 100644 (file)
@@ -93,9 +93,9 @@ void  IGESSolid_ToolSolidInstance::OwnDump
   (const Handle(IGESSolid_SolidInstance)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_SolidInstance" << endl;
+  S << "IGESSolid_SolidInstance" << Message_EndLine;
 
   S << "Solid entity : ";
   dumper.Dump(ent->Entity(),S, (level <= 4) ? 0 : 1);
-  S << endl;
+  S << Message_EndLine;
 }
index 11f20b2..144c09c 100644 (file)
@@ -137,13 +137,13 @@ void  IGESSolid_ToolSolidOfLinearExtrusion::OwnDump
   (const Handle(IGESSolid_SolidOfLinearExtrusion)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_SolidOfLinearExtrusion" << endl;
+  S << "IGESSolid_SolidOfLinearExtrusion" << Message_EndLine;
 
   S << "Curve entity        : ";
   dumper.Dump(ent->Curve(),S, (level <= 4) ? 0 : 1);
-  S << endl;
-  S << "Extrusion length    : " << ent->ExtrusionLength() << endl;
+  S << Message_EndLine;
+  S << "Extrusion length    : " << ent->ExtrusionLength() << Message_EndLine;
   S << "Extrusion direction : ";
   IGESData_DumpXYZL(S,level, ent->ExtrusionDirection(), ent->VectorLocation());
-  S << endl;
+  S << Message_EndLine;
 }
index 13a78cd..58e2552 100644 (file)
@@ -169,15 +169,15 @@ void  IGESSolid_ToolSolidOfRevolution::OwnDump
   (const Handle(IGESSolid_SolidOfRevolution)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_SolidOfRevolution" << endl;
+  S << "IGESSolid_SolidOfRevolution" << Message_EndLine;
 
   S << "Curve entity   :";
   dumper.Dump(ent->Curve(),S, (level <= 4) ? 0 : 1);
-  S << endl;
-  S << "Fraction of rotation : " << ent->Fraction() << endl;
+  S << Message_EndLine;
+  S << "Fraction of rotation : " << ent->Fraction() << Message_EndLine;
   S << "Axis Point     : ";
   IGESData_DumpXYZL(S,level, ent->AxisPoint(), ent->Location());
-  S << endl << "Axis direction : ";
+  S << Message_EndLine << "Axis direction : ";
   IGESData_DumpXYZL(S,level, ent->Axis(), ent->VectorLocation());
-  S << endl;
+  S << Message_EndLine;
 }
index 131dead..f260734 100644 (file)
@@ -122,10 +122,10 @@ void  IGESSolid_ToolSphere::OwnDump
   (const Handle(IGESSolid_Sphere)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_Sphere" << endl;
+  S << "IGESSolid_Sphere" << Message_EndLine;
 
-  S << "Radius : " << ent->Radius() << endl;
+  S << "Radius : " << ent->Radius() << Message_EndLine;
   S << "Center : ";
   IGESData_DumpXYZL(S,level, ent->Center(), ent->Location());
-  S << endl;
+  S << Message_EndLine;
 }
index 813b8e8..cbc73c1 100644 (file)
@@ -143,22 +143,22 @@ void  IGESSolid_ToolSphericalSurface::OwnDump
   (const Handle(IGESSolid_SphericalSurface)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_SphericalSurface" << endl;
+  S << "IGESSolid_SphericalSurface" << Message_EndLine;
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
   S << "Center : ";
   dumper.Dump(ent->Center(),S, sublevel);
-  S << endl;
-  S << "Radius : " << ent->Radius() << endl;
+  S << Message_EndLine;
+  S << "Radius : " << ent->Radius() << Message_EndLine;
   if (ent->IsParametrised())
     {
-      S << "Surface is Parametrised" << endl;
+      S << "Surface is Parametrised" << Message_EndLine;
       S << "Axis direction      : ";
       dumper.Dump(ent->Axis(),S, sublevel);
-      S << endl;
+      S << Message_EndLine;
       S << "Reference direction : ";
       dumper.Dump(ent->ReferenceDir(),S, sublevel);
-      S << endl;
+      S << Message_EndLine;
     }
-  else S << "Surface is UnParametrised" << endl;
+  else S << "Surface is UnParametrised" << Message_EndLine;
 }
index 1106c16..4683358 100644 (file)
@@ -140,22 +140,22 @@ void  IGESSolid_ToolToroidalSurface::OwnDump
   (const Handle(IGESSolid_ToroidalSurface)& ent, const IGESData_IGESDumper& dumper,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_ToroidalSurface" << endl;
+  S << "IGESSolid_ToroidalSurface" << Message_EndLine;
   Standard_Integer sublevel = (level <= 4) ? 0 : 1;
 
   S << "Center : ";
   dumper.Dump(ent->Center(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Axis direction : ";
   dumper.Dump(ent->Axis(),S, sublevel);
-  S << endl;
+  S << Message_EndLine;
   S << "Major Radius : " << ent->MajorRadius() << "  ";
-  S << "Minor Radius : " << ent->MinorRadius() << endl;
+  S << "Minor Radius : " << ent->MinorRadius() << Message_EndLine;
   if (ent->IsParametrised())
     {
       S << "Surface is Parametrised  -  Reference direction : ";
       dumper.Dump(ent->ReferenceDir(),S, sublevel);
-      S << endl;
+      S << Message_EndLine;
     }
-  else S << "Surface is UnParametrised" << endl;
+  else S << "Surface is UnParametrised" << Message_EndLine;
 }
index 17647e5..0fffb8c 100644 (file)
@@ -161,13 +161,13 @@ void  IGESSolid_ToolTorus::OwnDump
   (const Handle(IGESSolid_Torus)& ent, const IGESData_IGESDumper& /* dumper */,
    const Handle(Message_Messenger)& S, const Standard_Integer level) const
 {
-  S << "IGESSolid_Torus" << endl;
+  S << "IGESSolid_Torus" << Message_EndLine;
 
   S << "Radius of revolution : " << ent->MajorRadius() << "  ";
-  S << "Radius of the disc   : " << ent->DiscRadius()  << endl;
+  S << "Radius of the disc   : " << ent->DiscRadius()  << Message_EndLine;
   S << "Center Point   : ";
   IGESData_DumpXYZL(S,level, ent->AxisPoint(), ent->Location());
-  S << endl << "Axis direction : ";
+  S << Message_EndLine << "Axis direction : ";
   IGESData_DumpXYZL(S,level, ent->Axis(), ent->VectorLocation());
-  S << endl;
+  S << Message_EndLine;
 }
index 2b3486d..60b8d84 100644 (file)
@@ -204,9 +204,9 @@ void IGESSolid_ToolVertexList::OwnDump(const Handle(IGESSolid_VertexList)& ent,
                                        const Handle(Message_Messenger)& S,
                                        const Standard_Integer level) const
 {
-  S << "IGESSolid_VertexList" << endl;
+  S << "IGESSolid_VertexList" << Message_EndLine;
 
   S << "Vertices : ";
   IGESData_DumpListXYZL(S ,level,1, ent->NbVertices(),ent->Vertex,ent->Location());
-  S << endl;
+  S << Message_EndLine;
 }
index 2375baa..41bcff4 100644 (file)
@@ -297,15 +297,15 @@ Standard_Boolean IGESToBRep::IsBRepEntity(const Handle(IGESData_IGESEntity)& sta
        }
        else {
 #ifdef OCCT_DEBUG
-         cout << "Warning: IGESToBRep::TransferPCurve: pcurves are not SameRange" << endl;
+         std::cout << "Warning: IGESToBRep::TransferPCurve: pcurves are not SameRange" << std::endl;
 #endif
          result = Standard_False;
        }
       }
       catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-       cout << "\n**IGESToBRep::TransferPCurve: Exception in SameRange : "; 
-       anException.Print(cout);
+       std::cout << "\n**IGESToBRep::TransferPCurve: Exception in SameRange : "; 
+       anException.Print(std::cout);
 #endif
        (void)anException;
        result = Standard_False;
index d8ad1c4..41a6c70 100644 (file)
@@ -219,8 +219,8 @@ Handle(Geom_Curve) IGESToBRep_BasicCurve::TransferBasicCurve
   } //:36
   catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    cout << "\n** Exception in IGESToBRep_BasicCurve::TransferBasicCurve : "; 
-    anException.Print(cout);
+    std::cout << "\n** Exception in IGESToBRep_BasicCurve::TransferBasicCurve : "; 
+    anException.Print(std::cout);
 #endif
     (void)anException;
   }
@@ -283,8 +283,8 @@ Handle(Geom2d_Curve) IGESToBRep_BasicCurve::Transfer2dBasicCurve
   } //:h8
   catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    cout << "\n** Exception in IGESToBRep_BasicCurve::Transfer2dBasicCurve : "; 
-    anException.Print(cout);
+    std::cout << "\n** Exception in IGESToBRep_BasicCurve::Transfer2dBasicCurve : "; 
+    anException.Print(std::cout);
 #endif
     (void)anException;
   }
@@ -1092,8 +1092,8 @@ Handle(Geom_Curve) IGESToBRep_BasicCurve::TransferBSplineCurve
     }
     catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-      cout << "\n** Exception in IGESToBRep_BasicCurve::TransferBSplineCurve during creation of Geom_BSplineCurve : "; 
-      anException.Print(cout);
+      std::cout << "\n** Exception in IGESToBRep_BasicCurve::TransferBSplineCurve during creation of Geom_BSplineCurve : "; 
+      anException.Print(std::cout);
 #endif
       (void)anException;
     }
index d9aed32..8f62cc7 100644 (file)
@@ -223,8 +223,8 @@ Handle(Geom_Surface) IGESToBRep_BasicSurface::TransferBasicSurface
   } //:36
   catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    cout << "\n** Exception in IGESToBRep_BasicSurface::TransferBasicSurface : "; 
-    anException.Print(cout);
+    std::cout << "\n** Exception in IGESToBRep_BasicSurface::TransferBasicSurface : "; 
+    anException.Print(std::cout);
 #endif
     (void)anException;
   }
index 7b56710..3511d96 100644 (file)
@@ -194,7 +194,7 @@ void IGESToBRep_CurveAndSurface::SetModel(const Handle(IGESData_IGESModel)& mode
   if (unitfactor != 1.)
     {
       if ( myTP->TraceLevel() > 2 )
-       myTP->Messenger() << "UnitFactor = "<< unitfactor << endl;
+       myTP->Messenger() << "UnitFactor = "<< unitfactor << Message_EndLine;
       myUnitFactor = unitfactor;
     }
   UpdateMinMaxTol();
index 56c337c..efe37e6 100644 (file)
@@ -785,9 +785,9 @@ TopoDS_Shape IGESToBRep_TopoSurface::TransferSurfaceOfRevolution
     }
     catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-      cout << "Warning: IgesToBRep_TopoSurface::"
+      std::cout << "Warning: IgesToBRep_TopoSurface::"
                     "TransferSurfaceOfRevolution(): exception by Geom: ";
-      anException.Print ( cout ); cout << endl;
+      anException.Print ( std::cout ); std::cout << std::endl;
 #endif
       (void)anException;
     }//catch (Standard_Failure)
@@ -918,8 +918,8 @@ TopoDS_Shape IGESToBRep_TopoSurface::TransferTabulatedCylinder
   }
   catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: IgesToBRep_TopoSurface::TransferTabulatedCylinder(): exception by Geom: ";
-    anException.Print ( cout ); cout << endl;
+    std::cout << "Warning: IgesToBRep_TopoSurface::TransferTabulatedCylinder(): exception by Geom: ";
+    anException.Print ( std::cout ); std::cout << std::endl;
 #endif
     (void)anException;
   }
@@ -1310,7 +1310,7 @@ TopoDS_Shape  IGESToBRep_TopoSurface::TransferBoundedSurface
   if (myshape.IsNull()) {
     //#55 rln 24.12.98 UKI60878 entity D593
 #ifdef OCCT_DEBUG
-    cout << "Fail: IGESToBRep_TopoSurface::TransferBoundedSurface  UntrimmedSurface is translated into Null" << endl;
+    std::cout << "Fail: IGESToBRep_TopoSurface::TransferBoundedSurface  UntrimmedSurface is translated into Null" << std::endl;
 #endif
     return res;
   }
index 9401662..743caf9 100644 (file)
@@ -249,7 +249,7 @@ void IVtkDraw_Interactor::MoveTo (Standard_Integer theX, Standard_Integer theY)
       Handle(Message_Messenger) anOutput = Message::DefaultMessenger();
       if (!myPipelines->IsBound(aShapeID))
       {
-        anOutput << "Warning: there is no VTK pipeline registered for highlighted shape" << endl;
+        anOutput << "Warning: there is no VTK pipeline registered for highlighted shape" << Message_EndLine;
         continue;
       }
 
@@ -314,7 +314,7 @@ void IVtkDraw_Interactor::OnSelection()
       Handle(Message_Messenger) anOutput = Message::DefaultMessenger();
       if (!myPipelines->IsBound (aShapeID))
       {
-        anOutput << "Warning: there is no VTK pipeline registered for picked shape" << endl;
+        anOutput << "Warning: there is no VTK pipeline registered for picked shape" << Message_EndLine;
         continue;
       }
 
index a3a8a73..312efb9 100644 (file)
@@ -517,7 +517,7 @@ void IntAna_Curve::FindParameter(const gp_Pnt& theP,
 gp_Pnt IntAna_Curve::InternalValue(const Standard_Real U,
                                    const Standard_Real _V) const
 {
-  //-- cout<<" ["<<U<<","<<V<<"]";
+  //-- std::cout<<" ["<<U<<","<<V<<"]";
   Standard_Real V = _V;
   if(V > 100000.0 )   {   V= 100000.0; }       
   if(V < -100000.0 )  {   V=-100000.0; }      
index b1cf38e..e504a68 100644 (file)
@@ -91,9 +91,9 @@ void IntAna_IntLinTorus::Perform (const gp_Lin& L, const gp_Torus& T) {
        if(a0>0.0000000001) { 
           aNbBadSol++;
 #if 0 
-          cout<<" ------- Erreur : P Ligne < > P Tore "<<endl;
-           cout<<"Ligne :  X:"<<PSolL.X()<<"  Y:"<<PSolL.Y()<<"  Z:"<<PSolL.Z()<<" l:"<<t<<endl;
-          cout<<"Tore  :  X:"<<PSolT.X()<<"  Y:"<<PSolT.Y()<<"  Z:"<<PSolT.Z()<<" u:"<<u<<" v:"<<v<<endl;
+          std::cout<<" ------- Erreur : P Ligne < > P Tore "<<std::endl;
+           std::cout<<"Ligne :  X:"<<PSolL.X()<<"  Y:"<<PSolL.Y()<<"  Z:"<<PSolL.Z()<<" l:"<<t<<std::endl;
+          std::cout<<"Tore  :  X:"<<PSolT.X()<<"  Y:"<<PSolT.Y()<<"  Z:"<<PSolT.Z()<<" u:"<<u<<" v:"<<v<<std::endl;
 #endif
           }         
         else { 
@@ -355,12 +355,12 @@ void IntAna_IntLinTorus::Perform (const gp_Lin& L, const gp_Torus& T) {
 
 
 
-  cout<<"\n ---------- Coefficients Line - Torus  : "<<endl;
-  cout<<" a0 : "<<a0<<endl;
-  cout<<" a1 : "<<a1<<endl;
-  cout<<" a2 : "<<a2<<endl;
-  cout<<" a3 : "<<a3<<endl;
-  cout<<" a4 : "<<a4<<endl;
+  std::cout<<"\n ---------- Coefficients Line - Torus  : "<<std::endl;
+  std::cout<<" a0 : "<<a0<<std::endl;
+  std::cout<<" a1 : "<<a1<<std::endl;
+  std::cout<<" a2 : "<<a2<<std::endl;
+  std::cout<<" a3 : "<<a3<<std::endl;
+  std::cout<<" a4 : "<<a4<<std::endl;
 
   Standard_Real u,v;
   math_DirectPolynomialRoots mdpr(a4,a3,a2,a1,a0);
@@ -375,9 +375,9 @@ void IntAna_IntLinTorus::Perform (const gp_Lin& L, const gp_Torus& T) {
         
         a0 = PSolT.SquareDistance(PSolL); 
        if(a0>0.0000000001) { 
-          cout<<" ------- Erreur : P Ligne < > P Tore ";
-           cout<<"Ligne :  X:"<<PSolL.X()<<"  Y:"<<PSolL.Y()<<"  Z:"<<PSolL.Z()<<" l:"<<t<<endl;
-          cout<<"Tore  :  X:"<<PSolL.X()<<"  Y:"<<PSolL.Y()<<"  Z:"<<PSolL.Z()<<" u:"<<u<<" v:"<<v<<endl;
+          std::cout<<" ------- Erreur : P Ligne < > P Tore ";
+           std::cout<<"Ligne :  X:"<<PSolL.X()<<"  Y:"<<PSolL.Y()<<"  Z:"<<PSolL.Z()<<" l:"<<t<<std::endl;
+          std::cout<<"Tore  :  X:"<<PSolL.X()<<"  Y:"<<PSolL.Y()<<"  Z:"<<PSolL.Z()<<" u:"<<u<<" v:"<<v<<std::endl;
           }         
         else { 
          theParam[nbsolvalid] = t;
index e2fd66f..73ff100 100644 (file)
@@ -581,7 +581,7 @@ void IntAna_IntQuadQuad::Perform(const gp_Cylinder& Cyl,
            //-- Si il n y a que 2 racines alors on prend tout l interval
            //----------------------------------------------------------------
            if(Abs(Theta2-Theta1)<=1e-12) {
-             //-- cout<<"\n####### Un Point de Tangence en Theta = "<<Theta1<<endl;
+             //-- std::cout<<"\n####### Un Point de Tangence en Theta = "<<Theta1<<std::endl;
              //-- i++;
            }
            else {  //-- On evite les pbs numeriques (Tout est du meme signe entre les racines) 
@@ -760,10 +760,10 @@ void IntAna_IntQuadQuad::Perform(const gp_Cone& Cone,
          Standard_Real Theta=PolZ1.Value(ii);
          if(Abs(MTFZ1.Value(Theta))<=myEpsilon) {
            //-- Une droite Solution  Z=  -INF -> +INF  pour Theta
-           //-- cout<<"######## Droite Solution Pour Theta = "<<Theta<<endl;
+           //-- std::cout<<"######## Droite Solution Pour Theta = "<<Theta<<std::endl;
          }
          else {
-           //-- cout<<"\n#### _+_+_+_+_+ CAS A(t) Z + B = 0   avec A et B ==0 "<<endl;
+           //-- std::cout<<"\n#### _+_+_+_+_+ CAS A(t) Z + B = 0   avec A et B ==0 "<<std::endl;
          }
        }
        */
@@ -1242,7 +1242,7 @@ void IntAna_IntQuadQuad::Parameters (const Standard_Integer, //i,
                                     Standard_Real& , 
                                     Standard_Real& ) const
 {
-  cout << "IntAna_IntQuadQuad::Parameters(...) is not yet implemented" << endl;
+  std::cout << "IntAna_IntQuadQuad::Parameters(...) is not yet implemented" << std::endl;
 }
 
 /*********************************************************************************
index b58d58b..6fcae32 100644 (file)
@@ -61,7 +61,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()) {
-     cout << "\n\nmath_TrigonometricFunctionRoots -> NotDone\n\n"<<endl;
+     std::cout << "\n\nmath_TrigonometricFunctionRoots -> NotDone\n\n"<<std::endl;
      done=Standard_False;
      return;
    }
index 9356364..84ebf32 100644 (file)
@@ -80,7 +80,7 @@ void IntAna2d_AnaIntersection::Perform(const gp_Hypr2d& H,
     MyDirectPolynomialRoots Sol(px4,px3,px2,px1,px0);
 
     if(!Sol.IsDone()) {
-      //-- cout<<" Done = False ds IntAna2d_AnaIntersection_8.cxx "<<endl;
+      //-- std::cout<<" Done = False ds IntAna2d_AnaIntersection_8.cxx "<<std::endl;
       done=Standard_False;
       return;
     }
index 1016fcb..62c0992 100644 (file)
@@ -23,7 +23,7 @@ MyDirectPolynomialRoots::MyDirectPolynomialRoots(const Standard_Real A4,
                                                 const Standard_Real A2,
                                                 const Standard_Real A1,
                                                 const Standard_Real A0) { 
-  //-- cout<<" IntAna2d : A4..A0 "<<A4<<" "<<A3<<" "<<A2<<" "<<A1<<" "<<A0<<" "<<endl;
+  //-- std::cout<<" IntAna2d : A4..A0 "<<A4<<" "<<A3<<" "<<A2<<" "<<A1<<" "<<A0<<" "<<std::endl;
   nbsol = 0;
   same = Standard_False;
 //  Modified by Sergey KHROMOV - Thu Oct 24 13:10:14 2002 Begin
@@ -53,7 +53,7 @@ MyDirectPolynomialRoots::MyDirectPolynomialRoots(const Standard_Real A4,
     NbsolPolyComplet = nbp;
     for(i=1;i<=nbp;i++) { 
       Standard_Real x = MATH_A43210.Value(i);
-      //-- cout<<" IntAna2d : x Pol Complet :"<<x<<endl;
+      //-- std::cout<<" IntAna2d : x Pol Complet :"<<x<<std::endl;
       val[nbsol] = A0 + x*(A1+x*(A2+x*(A3+x*A4)));
       sol[nbsol] = x;
       if(val[nbsol]> tol  ||  val[nbsol]<-tol) {
@@ -153,7 +153,7 @@ MyDirectPolynomialRoots::MyDirectPolynomialRoots(const Standard_Real A4,
     //------------------------------------------------------------
     //-- On trie les valeurs par ordre decroissant de val
     //-- for(i=0;i<nbsol;i++) { 
-    //--  cout<<" IntAna2d Sol,Val"<<sol[i]<<"  "<<val[i]<<endl;
+    //--  std::cout<<" IntAna2d Sol,Val"<<sol[i]<<"  "<<val[i]<<std::endl;
     //-- }
     Standard_Boolean TriOK = Standard_False;
     do {
@@ -177,7 +177,7 @@ MyDirectPolynomialRoots::MyDirectPolynomialRoots(const Standard_Real A4,
     //-- Au moins autant que le polynome Complet 
     //-- 
     for(nbsol=0; nbsol<NbsolPolyComplet || Abs(val[nbsol])<Epsilon(10000.0); nbsol++) ;
-    //-- cout<<" IntAna2d : nbsol:"<<nbsol<<endl;
+    //-- std::cout<<" IntAna2d : nbsol:"<<nbsol<<std::endl;
   }
   if(nbsol==0) { 
     nbsol=-1;
@@ -192,7 +192,7 @@ MyDirectPolynomialRoots::MyDirectPolynomialRoots(const Standard_Real A4,
 MyDirectPolynomialRoots::MyDirectPolynomialRoots(const Standard_Real A2,
                                                 const Standard_Real A1,
                                                 const Standard_Real A0) { 
-  //-- cout<<" IntAna2d : A2..A0 "<<A2<<" "<<A1<<" "<<A0<<" "<<endl;
+  //-- std::cout<<" IntAna2d : A2..A0 "<<A2<<" "<<A1<<" "<<A0<<" "<<std::endl;
   nbsol=0;
   if((Abs(A2)+Abs(A1)+Abs(A0))<Epsilon(10000.0))  { 
     same = Standard_True;
@@ -205,7 +205,7 @@ MyDirectPolynomialRoots::MyDirectPolynomialRoots(const Standard_Real A2,
       Standard_Real x = MATH_A210.Value(i);
       val[nbsol] = A0 + x*(A1+x*A2);
       sol[nbsol] = x;
-      //-- cout<<" IntAna2d : x Pol Complet :"<<x<<"  Val:"<<val[nbsol]<<endl;
+      //-- std::cout<<" IntAna2d : x Pol Complet :"<<x<<"  Val:"<<val[nbsol]<<std::endl;
       nbsol++;
     }
   }
index d07500b..d4e8586 100644 (file)
@@ -114,7 +114,7 @@ gp_Pnt2d IntCurve_IConicTool::Value(const Standard_Real X) const {
   case GeomAbs_Circle:    return(ElCLib::CircleValue(X,Axis,Circle_r));
   case GeomAbs_Parabola:  return(ElCLib::ParabolaValue(X,Axis,Parab_f));
   case GeomAbs_Hyperbola: return(ElCLib::HyperbolaValue(X,Axis,Hypr_a,Hypr_b));
-  default: { cout<<"### Erreur sur le  type de la courbe ###";
+  default: { std::cout<<"### Erreur sur le  type de la courbe ###";
            return(gp_Pnt2d(0.0,0.0)); }
   }
 }
@@ -130,7 +130,7 @@ void IntCurve_IConicTool::D1(const Standard_Real X,
   case GeomAbs_Circle:     ElCLib::CircleD1(X,Axis,Circle_r,Pt,Tan); break;
   case GeomAbs_Parabola:     ElCLib::ParabolaD1(X,Axis,Parab_f,Pt,Tan); break;
   case GeomAbs_Hyperbola:     ElCLib::HyperbolaD1(X,Axis,Hypr_a,Hypr_b,Pt,Tan); break;
-  default: { cout<<"### Erreur sur le  type de la courbe ###"; }
+  default: { std::cout<<"### Erreur sur le  type de la courbe ###"; }
   }
 }
 
@@ -146,7 +146,7 @@ void IntCurve_IConicTool::D2(const Standard_Real X,
   case GeomAbs_Circle:     ElCLib::CircleD2(X,Axis,Circle_r,Pt,Tan,Norm); break;
   case GeomAbs_Parabola:     ElCLib::ParabolaD2(X,Axis,Parab_f,Pt,Tan,Norm); break;
   case GeomAbs_Hyperbola:     ElCLib::HyperbolaD2(X,Axis,Hypr_a,Hypr_b,Pt,Tan,Norm); break;
-  default: { cout<<"### Erreur sur le  type de la courbe ###"; }
+  default: { std::cout<<"### Erreur sur le  type de la courbe ###"; }
   }                         
 }
 //----------------------------------------------------------------------
@@ -207,7 +207,7 @@ Standard_Real IntCurve_IConicTool::Distance(const gp_Pnt2d& ThePoint) const {
        return((-P.X()*P.X())/Hypr_aa 
               -(P.Y()*P.Y())/Hypr_bb -1.0);
     }                       
-  default: { cout<<"### Erreur sur le  type de la courbe ###";
+  default: { std::cout<<"### Erreur sur le  type de la courbe ###";
            return(0.0); }
   }
 }
@@ -290,7 +290,7 @@ gp_Vec2d IntCurve_IConicTool::GradDistance(const gp_Pnt2d& ThePoint) const {
     Gradient.Transform(Object_To_Abs);
     return(Gradient);
   }
-  default: { cout<<"### Erreur sur le  type de la courbe ###";
+  default: { std::cout<<"### Erreur sur le  type de la courbe ###";
            return(gp_Vec2d(0.0,0.0)); }
   }
 }
index 3b4b883..b5915ac 100644 (file)
@@ -549,7 +549,7 @@ void IntCurve_IntConicConic::Perform(const gp_Elips2d&      E,
     D.SetEquivalentParameters(DE.FirstParameter(),DE.FirstParameter()+M_PI+M_PI);
   }  
 
-  //-- cout<<" Parab Elips "<<endl;
+  //-- std::cout<<" Parab Elips "<<std::endl;
 
   Standard_Real binf = Precision::Infinite(),bsup = -Precision::Infinite(),maxtol;
   gp_Pnt2d Pntinf,Pntsup;
@@ -568,7 +568,7 @@ void IntCurve_IntConicConic::Perform(const gp_Elips2d&      E,
     theIntAna2d.Perform(P,Ep);
     SetBinfBsupFromIntAna2d(theIntAna2d,binf,Pntinf,bsup,Pntsup,P,maxtol,PARAM_MAX_ON_PARABOLA);
   }
-  //-- cout<<" binf,bsup "<<binf<<" "<<bsup<<endl;
+  //-- std::cout<<" binf,bsup "<<binf<<" "<<bsup<<std::endl;
   if(binf<=bsup) { 
     if(!BOUNDED_DOMAIN(DP)) { 
       Standard_Real tolinf = 0.0;
@@ -599,8 +599,8 @@ void IntCurve_IntConicConic::Perform(const gp_Elips2d&      E,
          done=Standard_True; return;
        }
       }
-      //-- cout<<"BOUNDED  binf,bsup "<<binf<<" "<<bsup<<endl;
-      //-- cout<<"Domain   "<<DP.FirstParameter()<<" "<<DP.LastParameter()<<endl;
+      //-- std::cout<<"BOUNDED  binf,bsup "<<binf<<" "<<bsup<<std::endl;
+      //-- std::cout<<"Domain   "<<DP.FirstParameter()<<" "<<DP.LastParameter()<<std::endl;
       IntRes2d_Domain DPModif(Pntinf,binf,ft,Pntsup,bsup,lt);
       Inter.Perform(ITool,D,PCurve,DPModif,TolConf,Tol);
     }
index c5734ae..33f33b7 100644 (file)
@@ -251,10 +251,10 @@ void CircleCircleGeometricIntersection(const gp_Circ2d& C1
     }
   }
 
-  //-- cout<<" C1_binf1:"<<C1_binf1;
-  //-- cout<<" C1_bsup1:"<<C1_bsup1;
-  //-- cout<<" C1_binf2:"<<C1_binf2;
-  //-- cout<<" C1_bsup2:"<<C1_bsup2<<endl;
+  //-- std::cout<<" C1_binf1:"<<C1_binf1;
+  //-- std::cout<<" C1_bsup1:"<<C1_bsup1;
+  //-- std::cout<<" C1_binf2:"<<C1_binf2;
+  //-- std::cout<<" C1_bsup2:"<<C1_bsup2<<std::endl;
   //----------------------------------------------------------------
   //-- Mise en forme des resultats : 
   //--    Les calculs ont ete fait dans le repere x1,y1, (O1,O2)
@@ -868,8 +868,8 @@ void IntCurve_IntConicConic::Perform(const gp_Circ2d& Circle1
     ((Circle1.Location().SquareDistance(Circle2.Location())) > (R1*R1+R2*R2)) ? 
           Standard_True : Standard_False;
 
-  //if(Circle1.IsDirect()) { cout<<" C1 Direct"<<endl; } else { cout<<" C1 INDirect"<<endl; }
-  //if(Circle2.IsDirect()) { cout<<" C2 Direct"<<endl; } else { cout<<" C2 INDirect"<<endl; }
+  //if(Circle1.IsDirect()) { std::cout<<" C1 Direct"<<std::endl; } else { std::cout<<" C1 INDirect"<<std::endl; }
+  //if(Circle2.IsDirect()) { std::cout<<" C2 Direct"<<std::endl; } else { std::cout<<" C2 INDirect"<<std::endl; }
 
   for(i=0; i<NbSolTotal; i++)
   {
index b9b1117..a65b32c 100644 (file)
@@ -260,7 +260,7 @@ Standard_Real IntCurve_Polygon2dGen::ApproxParamOnCurve( const Standard_Integer
   Standard_Integer Indexp1,Index = Aindex;
   Standard_Real    ParamOnLine = TheParamOnLine;
   if (Index > NbPntIn) {
-    cout << "OutOfRange Polygon2d::ApproxParamOnCurve " <<endl;
+    std::cout << "OutOfRange Polygon2d::ApproxParamOnCurve " <<std::endl;
   }
   if((Index == NbPntIn) && (ParamOnLine == 0.0)) { 
     Index--; ParamOnLine=1.0;
@@ -306,21 +306,21 @@ void IntCurve_Polygon2dGen::Dump(void) const {
   if(debug) { 
     Standard_Real bx0,bx1,by0,by1;
     
-    cout<<"\n ----- Dump of IntCurve_Polygon2dGen -----"<<endl;
+    std::cout<<"\n ----- Dump of IntCurve_Polygon2dGen -----"<<std::endl;
     if(myBox.IsVoid()) { 
-      cout<<"  Polygone Vide "<<endl;
+      std::cout<<"  Polygone Vide "<<std::endl;
       return;
     }
     myBox.Get(bx0,by0,bx1,by1);
-    cout<<"  bx0:"<<bx0  <<endl;
-    cout<<"  by0:"<<by0<<endl;
-    cout<<"  bx1:"<<bx1<<endl;
-    cout<<"  by1:"<<by1<<endl;
+    std::cout<<"  bx0:"<<bx0  <<std::endl;
+    std::cout<<"  by0:"<<by0<<std::endl;
+    std::cout<<"  bx1:"<<bx1<<std::endl;
+    std::cout<<"  by1:"<<by1<<std::endl;
     
     Standard_Integer i;
     for(i=1;i<=NbPntIn; i++) { 
       const gp_Pnt2d& P = ThePnts(TheIndex(i));
-      cout<<"  ("<<i<<") u:"<<TheParams.Value(TheIndex(i))<<" X:"<<P.X()<<"  Y:"<<P.Y()<<endl;
+      std::cout<<"  ("<<i<<") u:"<<TheParams.Value(TheIndex(i))<<" X:"<<P.X()<<"  Y:"<<P.Y()<<std::endl;
     }
   }
 } 
index ebd5edc..25f2a2f 100644 (file)
@@ -84,7 +84,7 @@ Standard_Real IntCurve_ProjectOnPConicTool::FindParameter
                                        const gp_Pnt2d& P,
                                        const Standard_Real)  {
 
-  //cout<<"\n\n---- Dans ProjectOnPConicTool::FindParameter  Point : "<<P.X()<<","<<P.Y();
+  //std::cout<<"\n\n---- Dans ProjectOnPConicTool::FindParameter  Point : "<<P.X()<<","<<P.Y();
 
   Standard_Real Param=0;
 
index 02da392..49b88d9 100644 (file)
@@ -1251,11 +1251,11 @@ void IntCurveSurface_Inter::AppendIntAna(const TheCurve& curve,
                                         const IntAna_IntConicQuad& intana_ConicQuad) {
   if(intana_ConicQuad.IsDone()) { 
     if(intana_ConicQuad.IsInQuadric()) { 
-      //-- cout<<" Courbe Dans la Quadrique !!! Non Traite !!!"<<endl;
+      //-- std::cout<<" Courbe Dans la Quadrique !!! Non Traite !!!"<<std::endl;
       myIsParallel = Standard_True;
     }
     else if(intana_ConicQuad.IsParallel()) { 
-      //-- cout<<" Courbe // a la Quadrique !!! Non Traite !!!"<<endl;
+      //-- std::cout<<" Courbe // a la Quadrique !!! Non Traite !!!"<<std::endl;
       myIsParallel = Standard_True;
     }
     else { 
@@ -1270,7 +1270,7 @@ void IntCurveSurface_Inter::AppendIntAna(const TheCurve& curve,
     }
   }
   else { 
-    //-- cout<<" IntAna Conic Quad Not Done  "<<endl;
+    //-- std::cout<<" IntAna Conic Quad Not Done  "<<std::endl;
   }
 }
 //=======================================================================
@@ -1334,8 +1334,8 @@ void IntCurveSurface_Inter::AppendSegment(const TheCurve& ,
                                          const Standard_Real ,
                                          const Standard_Real ,
                                          const TheSurface& ) { 
-  //cout<<" !!! Not Yet Implemented 
-  //IntCurveSurface_Inter::Append(const IntCurveSurf ...)"<<endl;
+  //std::cout<<" !!! Not Yet Implemented 
+  //IntCurveSurface_Inter::Append(const IntCurveSurf ...)"<<std::endl;
 }
 
 //=======================================================================
@@ -1400,7 +1400,7 @@ void SectionPointToParameters(const Intf_SectionPoint&              Sp,
     }
   default: 
     {
-      cout<<" Default dans SectionPointToParameters "<<endl;
+      std::cout<<" Default dans SectionPointToParameters "<<std::endl;
       break;
     }
   }
@@ -1694,9 +1694,9 @@ void ProjectIntersectAndEstLim(const gp_Lin&        theLine,
   ProjLib_Plane aLineProj( thePln, theLine );
   if (!aLineProj.IsDone()) {
 #ifdef OCCT_DEBUG
-  cout
+  std::cout
   << "Info: IntCurveSurface_Inter::ProjectIntersectAndEstLim(), !aLineProj.IsDone()"
-  << endl;
+  << std::endl;
 #endif
     return;
   }
@@ -1821,7 +1821,7 @@ void EstLimForInfRevl(const gp_Lin&   Line,
   }
   if (!aBasCurvProj.IsDone()) {
 #ifdef OCCT_DEBUG
-    cout << "Info: IntCurveSurface_Inter::EstLimForInfRevl(), !aBasCurvProj.IsDone()" << endl;
+    std::cout << "Info: IntCurveSurface_Inter::EstLimForInfRevl(), !aBasCurvProj.IsDone()" << std::endl;
 #endif
     return;
   }
@@ -1859,7 +1859,7 @@ void EstLimForInfRevl(const gp_Lin&   Line,
   if (V1inf) V1new = aVmin;
   if (V2inf) V2new = aVmax;
 
-  //cout << "EstLimForInfRevl: Vmin " << V1new << " Vmax " << V2new << endl;
+  //std::cout << "EstLimForInfRevl: Vmin " << V1new << " Vmax " << V2new << std::endl;
   
   return;
 }
index e3f8e9c..dff050f 100644 (file)
@@ -137,6 +137,6 @@ void IntCurveSurface_Intersection::Dump() const {
     for(i=1;i<=ni;i++) {   Segment(i).Dump(); }
   }
   else { 
-    cout<<" Intersection NotDone"<<endl;
+    std::cout<<" Intersection NotDone"<<std::endl;
   }
 }
index 9d7762c..fc267ee 100644 (file)
@@ -56,18 +56,18 @@ void IntCurveSurface_IntersectionPoint::Values(gp_Pnt& P,
 }
 //================================================================================
 void IntCurveSurface_IntersectionPoint::Dump() const { 
-  cout<<"IntersectionPoint: P("<<myP.X()<<","<<myP.Y()<<","<<myP.Z()<<")"<<endl;
-  cout<<"                 : USurf("<<myUSurf<<")  VSurf("<<myVSurf<<")   UCurve("<<myUCurv<<")"<<endl;
-  cout<<"                 : TransitionOnSurf ";
+  std::cout<<"IntersectionPoint: P("<<myP.X()<<","<<myP.Y()<<","<<myP.Z()<<")"<<std::endl;
+  std::cout<<"                 : USurf("<<myUSurf<<")  VSurf("<<myVSurf<<")   UCurve("<<myUCurv<<")"<<std::endl;
+  std::cout<<"                 : TransitionOnSurf ";
 
   switch(myTrOnCurv) { 
-  case IntCurveSurface_Tangent: cout<<" Tangent "; break;
-  case IntCurveSurface_In: cout<<" In "; break;
-  case IntCurveSurface_Out: cout<<" Out "; break;
+  case IntCurveSurface_Tangent: std::cout<<" Tangent "; break;
+  case IntCurveSurface_In: std::cout<<" In "; break;
+  case IntCurveSurface_Out: std::cout<<" Out "; break;
 
-  default: cout<< " XXXXX ";
+  default: std::cout<< " XXXXX ";
   }  
-  cout<<endl;
+  std::cout<<std::endl;
 }
 
 
index 85ccb95..1509a77 100644 (file)
@@ -59,9 +59,9 @@ const IntCurveSurface_IntersectionPoint &
 }
 //================================================================================
 void IntCurveSurface_IntersectionSegment::Dump() const { 
-  cout<<"\nIntersectionSegment : "<<endl;
+  std::cout<<"\nIntersectionSegment : "<<std::endl;
   myP1.Dump();
   myP2.Dump();
-  cout<<endl;
+  std::cout<<std::endl;
 }
 
index c412b56..723b08f 100644 (file)
@@ -195,8 +195,8 @@ Standard_Real IntCurveSurface_Polygon::ApproxParamOnCurve(const Standard_Integer
   //ddout << "IntCurveSurface_Polygon::ApproxParamOnCurve" << endl;
   if(TheParamOnLine < 0.0 || TheParamOnLine >1.0) { 
 #ifdef OCCT_DEBUG
-    cout<<" ParamOnLine  =  "<<TheParamOnLine<<"  avec Index = "
-      <<TheIndex<<"  dans IntCurveSurface_Polygon::ApproxParamOnCurve"<<endl;
+    std::cout<<" ParamOnLine  =  "<<TheParamOnLine<<"  avec Index = "
+      <<TheIndex<<"  dans IntCurveSurface_Polygon::ApproxParamOnCurve"<<std::endl;
 #endif
     return(Binf+(TheParamOnLine*(Bsup-Binf))/(Standard_Real)(NbPntIn-1));
   }
@@ -205,7 +205,7 @@ Standard_Real IntCurveSurface_Polygon::ApproxParamOnCurve(const Standard_Integer
   Standard_Real    ParamOnLine = TheParamOnLine;
 #ifdef OCCT_DEBUG
   if (Index > NbPntIn) {
-    cout << "OutOfRange Polygon::ApproxParamOnCurve " <<endl;
+    std::cout << "OutOfRange Polygon::ApproxParamOnCurve " <<std::endl;
   }
 #endif
   if((Index == NbPntIn) && (ParamOnLine == 0.0)) { 
@@ -236,11 +236,11 @@ void IntCurveSurface_Polygon::Dump(void) const {
   char tamp[100];
   Compteur++;
   sprintf(tamp,"Poly%d",Compteur);
-  cout<<"  @@@@@@@@@@@ F i c h i e r   :   "<<tamp<<" @@@@@@@@@@"<<endl;
+  std::cout<<"  @@@@@@@@@@@ F i c h i e r   :   "<<tamp<<" @@@@@@@@@@"<<std::endl;
   FILE *fp;
   fp=fopen(tamp,"w");
   if(fp==NULL) {
-    cout<<"PolyGonGen::Erreur en Ouverture Fichier"<<tamp<<endl;
+    std::cout<<"PolyGonGen::Erreur en Ouverture Fichier"<<tamp<<std::endl;
     return;
   }
   fprintf(fp,"\n#Discretisation de : %f ---> %f \n",Binf,Bsup);
index 5d76c79..e0fec2b 100644 (file)
@@ -19,15 +19,15 @@ void IntCurveSurface_PolygonTool::Dump(const ThePolygon& L) {
   static Standard_Integer num=0;
   num++;
   Standard_Integer nbs = IntCurveSurface_PolygonTool::NbSegments(L);
-  cout<<"\npol2d "<<num<<" "<<nbs<<endl;
-  cout<<"Deflection "<<IntCurveSurface_PolygonTool::DeflectionOverEstimation(L)<<endl;
+  std::cout<<"\npol2d "<<num<<" "<<nbs<<std::endl;
+  std::cout<<"Deflection "<<IntCurveSurface_PolygonTool::DeflectionOverEstimation(L)<<std::endl;
   
   for(Standard_Integer i=1;i<=nbs;i++) {
     gp_Pnt P(IntCurveSurface_PolygonTool::BeginOfSeg(L,i));
-    cout<<"pnt "<<num<<" "<<i<<" "<<P.X()<<" "<<P.Y()<<" "<<P.Z()<<endl;
+    std::cout<<"pnt "<<num<<" "<<i<<" "<<P.X()<<" "<<P.Y()<<" "<<P.Z()<<std::endl;
   }
   gp_Pnt PF(IntCurveSurface_PolygonTool::EndOfSeg(L,nbs));
-  cout<<"pnt "<<num<<" "<<nbs<<" "<< PF.X()<<" "<<PF.Y()<<" "<<PF.Z()<<endl;
+  std::cout<<"pnt "<<num<<" "<<nbs<<" "<< PF.X()<<" "<<PF.Y()<<" "<<PF.Z()<<std::endl;
 }
 
 
index e386e10..e41f0d7 100644 (file)
@@ -84,7 +84,7 @@ void IntPatch_ALine::AddVertex (const IntPatch_Point& VTXj) {
        if((VTXi.IsOnDomS1()==Standard_False) && (VTXi.IsOnDomS2()==Standard_False)) {
          if(Abs(par-VTXi.ParameterOnLine())<=PCONFUSION) { 
 #if DEBUG
-           cout<<" Rejet  IntPatch_ALine::AddVertex   (0) "<<endl;
+           std::cout<<" Rejet  IntPatch_ALine::AddVertex   (0) "<<std::endl;
 #endif
            return;
          }
@@ -98,7 +98,7 @@ void IntPatch_ALine::AddVertex (const IntPatch_Point& VTXj) {
          if(Abs(VTXi.ParameterOnArc1()-VTXj.ParameterOnArc1())<=PCONFUSION) { 
            if(VTXi.ArcOnS1() == VTXj.ArcOnS1()) {
 #if DEBUG
-             cout<<" Rejet  IntPatch_ALine::AddVertex   (1) "<<endl;
+             std::cout<<" Rejet  IntPatch_ALine::AddVertex   (1) "<<std::endl;
 #endif
              return;
            }
@@ -113,7 +113,7 @@ void IntPatch_ALine::AddVertex (const IntPatch_Point& VTXj) {
          if(Abs(VTXi.ParameterOnArc2()-VTXj.ParameterOnArc2())<=PCONFUSION) { 
            if(VTXi.ArcOnS2() == VTXj.ArcOnS2()) {
 #if DEBUG
-             cout<<" Rejet  IntPatch_ALine::AddVertex   (2) "<<endl;
+             std::cout<<" Rejet  IntPatch_ALine::AddVertex   (2) "<<std::endl;
 #endif
              return;
            }
@@ -130,7 +130,7 @@ void IntPatch_ALine::AddVertex (const IntPatch_Point& VTXj) {
              if(VTXi.ArcOnS2() == VTXj.ArcOnS2()) {
                if(VTXi.ArcOnS1() == VTXj.ArcOnS1()) {
 #if DEBUG
-                 cout<<" Rejet  IntPatch_ALine::AddVertex   (3) "<<endl;
+                 std::cout<<" Rejet  IntPatch_ALine::AddVertex   (3) "<<std::endl;
 #endif
                  return;
                }
@@ -148,12 +148,12 @@ void IntPatch_ALine::AddVertex (const IntPatch_Point& VTXj) {
        if((VTXi.IsOnDomS2()==Standard_False) && (VTXi.IsOnDomS1()==Standard_True)) {
          Standard_Real p = Abs(VTXi.ParameterOnArc1()-VTXj.ParameterOnArc1());
 #if DEBUG
-         cout<<" Est ce que VTXj present sur 1 et 2  remplace un point VTXi present sur 1 : "<<p<<endl;
+         std::cout<<" Est ce que VTXj present sur 1 et 2  remplace un point VTXi present sur 1 : "<<p<<std::endl;
 #endif
          if(p<=PCONFUSION) { 
            if(VTXi.ArcOnS1() == VTXj.ArcOnS1()) {
 #if DEBUG
-             cout<<" Replace  IntPatch_ALine::AddVertex   (1) "<<endl;
+             std::cout<<" Replace  IntPatch_ALine::AddVertex   (1) "<<std::endl;
 #endif
              Replace(i,VTXj);
              return;
@@ -169,12 +169,12 @@ void IntPatch_ALine::AddVertex (const IntPatch_Point& VTXj) {
        if((VTXi.IsOnDomS2()==Standard_True) && (VTXi.IsOnDomS1()==Standard_False)) {
          Standard_Real p = Abs(VTXi.ParameterOnArc2()-VTXj.ParameterOnArc2());
 #if DEBUG
-         cout<<" Est ce que VTXj present sur 1 et 2  remplace un point VTXi present sur 2 : "<<p<<endl;
+         std::cout<<" Est ce que VTXj present sur 1 et 2  remplace un point VTXi present sur 2 : "<<p<<std::endl;
 #endif
          if(p<=PCONFUSION) { 
            if(VTXi.ArcOnS2() == VTXj.ArcOnS2()) {
 #if DEBUG
-             cout<<" Replace  IntPatch_ALine::AddVertex   (2) "<<endl;
+             std::cout<<" Replace  IntPatch_ALine::AddVertex   (2) "<<std::endl;
 #endif
              Replace(i,VTXj);
              return;
@@ -194,7 +194,7 @@ void IntPatch_ALine::AddVertex (const IntPatch_Point& VTXj) {
          if(p<=PCONFUSION) { 
            if(VTXi.ArcOnS1() == VTXj.ArcOnS1()) {
 #if DEBUG
-             cout<<" Replace  IntPatch_ALine::AddVertex   (1)  -> RIEN "<<endl;
+             std::cout<<" Replace  IntPatch_ALine::AddVertex   (1)  -> RIEN "<<std::endl;
 #endif
              return;
            }
@@ -639,7 +639,7 @@ void IntPatch_ALine::ComputeVertexParameters(const Standard_Real Tol) {
          
 
          SortIsOK=Standard_False;
-         //-- cout<<" IntPatch_ALine : ComputeVertexParameters : Ajust "<<endl;
+         //-- std::cout<<" IntPatch_ALine : ComputeVertexParameters : Ajust "<<std::endl;
        }
       }
     }
index 072397b..5f90008 100644 (file)
@@ -1917,7 +1917,7 @@ static Standard_Boolean InsertSeamVertices(Handle(IntSurf_LineOn2S)&       Line,
               // Line->InsertBefore(ip,Line->Value(ipn));
               // Line->RemovePoint(ip+2);
               // result = Standard_True;
-              // cout << "swap vertex " << endl;
+              // std::cout << "swap vertex " << std::endl;
               // break;
             }
           }
index 65b1837..a6beb6f 100644 (file)
@@ -696,12 +696,12 @@ void IntPatch_InterferencePolyhedron::Intersect
            Standard_Real d=piOT(-ideb).Pnt().Distance(piOT(-ifin).Pnt());        
            if(d<Tolerance) { 
              Insert(piOT(-ideb), piOT(-ifin));       
-             //-- cout<<"Insertion Point IntPatch_InterferencePolyhedron 1,2 d="<<d<<" Tol="<<Tolerance<<" num:"<<++nisp<<endl;
+             //-- std::cout<<"Insertion Point IntPatch_InterferencePolyhedron 1,2 d="<<d<<" Tol="<<Tolerance<<" num:"<<++nisp<<std::endl;
              //-- piOT(-ideb).Dump(1);  piOT(-ifin).Dump(0);
-             //-- cout<<"point p"<<++nisp<<" "<<piOT(-ideb).Pnt().X()<<" "<<piOT(-ideb).Pnt().Y()<<" "<<piOT(-ideb).Pnt().Z()<<endl;
+             //-- std::cout<<"point p"<<++nisp<<" "<<piOT(-ideb).Pnt().X()<<" "<<piOT(-ideb).Pnt().Y()<<" "<<piOT(-ideb).Pnt().Z()<<std::endl;
            }
            else { 
-             //-- cout<<"Insertion Point IntPatch_InterferencePolyhedron 1,2 d="<<d<<" Tol="<<Tolerance<<" NON INSERE "<<endl;
+             //-- std::cout<<"Insertion Point IntPatch_InterferencePolyhedron 1,2 d="<<d<<" Tol="<<Tolerance<<" NON INSERE "<<std::endl;
            }
          }
        }
index f749781..97b931b 100644 (file)
@@ -1562,15 +1562,15 @@ void IntPatch_Intersection::Perform(const Handle(Adaptor3d_HSurface)&  S1,
   myTolTang = TolTang;
   if(myFleche == 0.0) {
 #if DEBUG
-    //cout<<" -- IntPatch_Intersection::myFleche fixe par defaut a 0.01 --"<<endl;
-    //cout<<" -- Utiliser la Methode SetTolerances( ... ) "<<endl;
+    //std::cout<<" -- IntPatch_Intersection::myFleche fixe par defaut a 0.01 --"<<std::endl;
+    //std::cout<<" -- Utiliser la Methode SetTolerances( ... ) "<<std::endl;
 #endif
     myFleche = 0.01;
   }
   if(myUVMaxStep==0.0) {
 #if DEBUG
-    //cout<<" -- IntPatch_Intersection::myUVMaxStep fixe par defaut a 0.01 --"<<endl;
-    //cout<<" -- Utiliser la Methode SetTolerances( ... ) "<<endl;
+    //std::cout<<" -- IntPatch_Intersection::myUVMaxStep fixe par defaut a 0.01 --"<<std::endl;
+    //std::cout<<" -- Utiliser la Methode SetTolerances( ... ) "<<std::endl;
 #endif
     myUVMaxStep = 0.01;
   }
index 8581ae0..f061752 100644 (file)
@@ -899,7 +899,7 @@ static Standard_Boolean TestIfWLineIsRestriction(const IntPatch_SequenceOfLine&
   }
   if(allon1==NbPnts || allon2==NbPnts) {
 #ifdef OCCT_DEBUG
-    cout<<" IntPatch_LineConstructor.gxx :  CC**ONS"<<(allon1==NbPnts?1:2)<<"** Traitement WLIne + ARC CLASS "<<endl;
+    std::cout<<" IntPatch_LineConstructor.gxx :  CC**ONS"<<(allon1==NbPnts?1:2)<<"** Traitement WLIne + ARC CLASS "<<std::endl;
 #endif
     Standard_Real tol2d = Max(tol2d1,tol2d2);
     return TestWLineIsARLine(slinref,wlin,tol2d);
@@ -1060,7 +1060,7 @@ static void TestWLineToRLine(const IntPatch_SequenceOfLine& slinref,
        }
        if (!iv1 || !iv2) {
 #ifdef OCCT_DEBUG
-         cout<<" Pb getting vertices linked with arc"<<endl;
+         std::cout<<" Pb getting vertices linked with arc"<<std::endl;
 #endif
          continue;
        }
@@ -1071,7 +1071,7 @@ static void TestWLineToRLine(const IntPatch_SequenceOfLine& slinref,
                              ? (WLine->Vertex(iv2).*pParOnArc)()
                              : paramsResolved(iv2));
 #ifdef OCCT_DEBUG
-       cout<<"****** Parameters on arc on S"<<is+1<<": "<<par1<<" "<<par2<<endl;
+       std::cout<<"****** Parameters on arc on S"<<is+1<<": "<<par1<<" "<<par2<<std::endl;
 #endif
 
        // check that the middle point is on arc
@@ -1085,7 +1085,7 @@ static void TestWLineToRLine(const IntPatch_SequenceOfLine& slinref,
        Standard_Real par,dist;
        if (!ProjectOnArc(utst,vtst,arc,surf,TolArc,par,dist)) {
 #ifdef OCCT_DEBUG
-         cout<<" Pb en projection ds IntPatch_LineConstructor"<<endl;
+         std::cout<<" Pb en projection ds IntPatch_LineConstructor"<<std::endl;
 #endif
          continue;
        }
@@ -1224,7 +1224,7 @@ void IntPatch_LineConstructor::Perform(const IntPatch_SequenceOfLine& slinref,
        if(in1 == TopAbs_OUT || in2 == TopAbs_OUT) { 
        }
        else { 
-         //-- cout<<"Analytic   : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<endl;        
+         //-- std::cout<<"Analytic   : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<std::endl;      
          TabIndex[i]=TabIndex[i+1]=++numline;
          AddLine(L,i,i+1,typs1,typs2,TabIndex,slin);
        }
@@ -1380,7 +1380,7 @@ void IntPatch_LineConstructor::Perform(const IntPatch_SequenceOfLine& slinref,
              }
            }
            if(LignetropPetite==Standard_False) {           
-             //-- cout<<"WLine      : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<endl;
+             //-- std::cout<<"WLine      : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<std::endl;
              TabIndex[i]=TabIndex[i+1]=++numline;
              AddLine(L,i,i+1,typs1,typs2,TabIndex,slin);
              TestWLineToRLine(slinref,slin,mySurf1,myDom1,mySurf2,myDom2,TolArc); //-- on teste la derniere entree de slin
@@ -1468,7 +1468,7 @@ void IntPatch_LineConstructor::Perform(const IntPatch_SequenceOfLine& slinref,
        if(in1 == TopAbs_OUT || in2 == TopAbs_OUT) { 
        }
        else { 
-         //-- cout<<"GLine      : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<endl;
+         //-- std::cout<<"GLine      : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<std::endl;
          TabIndex[i]=TabIndex[i+1]=++numline;
          AddLine(L,i,i+1,typs1,typs2,TabIndex,slin); 
        }
@@ -1505,7 +1505,7 @@ void IntPatch_LineConstructor::Perform(const IntPatch_SequenceOfLine& slinref,
          if(in1 == TopAbs_OUT || in2 == TopAbs_OUT) { 
          }
          else { 
-           //-- cout<<"GLine  bis : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<endl;
+           //-- std::cout<<"GLine  bis : firtsp="<<firstp<<" lastp="<<lastp<<" Vtx:"<<i<<","<<i+1<<std::endl;
            TabIndex[nbvtx]=TabIndex[1]=++numline;
            AddLine(L,nbvtx,1,typs1,typs2,TabIndex,slin); 
          }
@@ -1630,7 +1630,7 @@ void IntPatch_LineConstructor::Perform(const IntPatch_SequenceOfLine& slinref,
            }
            
            if(in2!=TopAbs_OUT) { 
-             //-- cout<<"RLine ons1 : u0    ="<<u0<<" u1   ="<<u1<<" Vtx:"<<i<<","<<i+1<<endl;
+             //-- std::cout<<"RLine ons1 : u0    ="<<u0<<" u1   ="<<u1<<" Vtx:"<<i<<","<<i+1<<std::endl;
              AddLine(L,i,i+1,typs1,typs2,TabIndex,slin); 
            }
          }
@@ -1710,7 +1710,7 @@ void IntPatch_LineConstructor::Perform(const IntPatch_SequenceOfLine& slinref,
            }
            
            if(in2!=TopAbs_OUT) { 
-             //-- cout<<"RLine ons2 : u0    ="<<u0<<" u1   ="<<u1<<" Vtx:"<<i<<","<<i+1<<endl;
+             //-- std::cout<<"RLine ons2 : u0    ="<<u0<<" u1   ="<<u1<<" Vtx:"<<i<<","<<i+1<<std::endl;
              
              AddLine(L,i,i+1,typs1,typs2,TabIndex,slin); 
            }
index e928c45..228c84f 100644 (file)
@@ -128,28 +128,28 @@ void IntPatch_Point::ReverseTransition()
 static void DumpTransition(const IntSurf_Transition& T)
 {
   IntSurf_TypeTrans typetrans = T.TransitionType(); 
-  if(typetrans == IntSurf_In)             cout<<" In  ";
-  else if(typetrans == IntSurf_Out)       cout<<" Out ";
-  else if(typetrans == IntSurf_Undecided) cout<<" Und.";
+  if(typetrans == IntSurf_In)             std::cout<<" In  ";
+  else if(typetrans == IntSurf_Out)       std::cout<<" Out ";
+  else if(typetrans == IntSurf_Undecided) std::cout<<" Und.";
   else if(typetrans == IntSurf_Touch) { 
-    cout<<" Touch ";
-    if(T.Situation() == IntSurf_Inside)       cout<<" Inside ";
-    else if(T.Situation() == IntSurf_Outside) cout<<" Outside";
-    else                                      cout<<" Unknown";
-    if(T.IsOpposite()) cout<<"     Opposite "; 
-    else               cout<<" Non_Opposite ";
+    std::cout<<" Touch ";
+    if(T.Situation() == IntSurf_Inside)       std::cout<<" Inside ";
+    else if(T.Situation() == IntSurf_Outside) std::cout<<" Outside";
+    else                                      std::cout<<" Unknown";
+    if(T.IsOpposite()) std::cout<<"     Opposite "; 
+    else               std::cout<<" Non_Opposite ";
   }
 
   if(typetrans != IntSurf_Undecided) { 
-    if(T.IsTangent()) cout<<" Tangent    ";
-    else              cout<<" Non_Tangent";
+    if(T.IsTangent()) std::cout<<" Tangent    ";
+    else              std::cout<<" Non_Tangent";
   }
 }
     
 #include <Standard_Transient.hxx>
 
 void IntPatch_Point::Dump() const { 
-  cout<<"----------- IntPatch_Point : "<<endl;
+  std::cout<<"----------- IntPatch_Point : "<<std::endl;
   Standard_Real u1,v1,u2,v2;
   pt.Parameters(u1,v1,u2,v2);
 
@@ -173,17 +173,17 @@ void IntPatch_Point::Dump() const {
   fflush(stdout);
 
   if(onS1 || onS2) { 
-    cout<<" tgt:"<<((tgt)? 1 : 0) <<"   mult:"<<((mult)? 1 :0);
+    std::cout<<" tgt:"<<((tgt)? 1 : 0) <<"   mult:"<<((mult)? 1 :0);
     if(onS1) { 
-      cout<<"\n-traline1  : ";   DumpTransition(traline1);
-      cout<<"  -tra1  : ";       DumpTransition(tra1);
+      std::cout<<"\n-traline1  : ";   DumpTransition(traline1);
+      std::cout<<"  -tra1  : ";       DumpTransition(tra1);
     }
     if(onS2) { 
-      cout<<"\n-traline2  : ";   DumpTransition(traline2);
-      cout<<"  -tra2  : ";      DumpTransition(tra2);
+      std::cout<<"\n-traline2  : ";   DumpTransition(traline2);
+      std::cout<<"  -tra2  : ";      DumpTransition(tra2);
     }
-    cout<<endl;
+    std::cout<<std::endl;
   }
-  cout << "\nToler = " << Tolerance();
-  cout << endl;
+  std::cout << "\nToler = " << Tolerance();
+  std::cout << std::endl;
 }
index ea12960..83d9436 100644 (file)
@@ -137,7 +137,7 @@ IntPatch_PolyArc::IntPatch_PolyArc(const Handle(Adaptor2d_HCurve2d)& Line ,
     if(IndexInf > IndexSup) { 
       r+=r; 
       r2 = r*r*49.;
-      //-- cout<<" Le rayon : "<<r<<" est insuffisant "<<endl;
+      //-- std::cout<<" Le rayon : "<<r<<" est insuffisant "<<std::endl;
     }
     else {
       //----------------------------------------------
@@ -146,7 +146,7 @@ IntPatch_PolyArc::IntPatch_PolyArc(const Handle(Adaptor2d_HCurve2d)& Line ,
       //-- encore
       //----------------------------------------------
       if((IndexSup-IndexInf)<(NbSample/2)) { 
-       //-- cout<<" --- On remet ca entre les index "<<IndexInf<<" et "<<IndexSup<<endl;
+       //-- std::cout<<" --- On remet ca entre les index "<<IndexInf<<" et "<<IndexSup<<std::endl;
        nbloop = 10;
        //if(IndexInf>1) IndexInf--;
        //if(IndexSup<NbSample) IndexSup++;
index 7f663d9..d2e43a2 100644 (file)
@@ -36,18 +36,18 @@ void IntPatch_Polygo::Dump () const
 {
   static int num=0;
   num++; 
-  cout<<"\n#------------- D u m p     B o x 2 d   ("<<num<<")"<<endl;
+  std::cout<<"\n#------------- D u m p     B o x 2 d   ("<<num<<")"<<std::endl;
   Bounding().Dump();
-  cout<<"\n#-----------------------------------------------"<<endl;
+  std::cout<<"\n#-----------------------------------------------"<<std::endl;
   
   const Standard_Integer nbs = NbSegments();
-  cout<<"\npol2d "<<num<<" "<<nbs<<" ";
-  cout<<DeflectionOverEstimation()<<endl;
+  std::cout<<"\npol2d "<<num<<" "<<nbs<<" ";
+  std::cout<<DeflectionOverEstimation()<<std::endl;
   
   gp_Pnt2d P, PF;
   for(Standard_Integer i=1;i<=nbs;i++) {
     Segment(i,P,PF);
-    cout<<"pnt2d "<<num<<"  "<< P.X()<<" "<<P.Y()<<endl;
+    std::cout<<"pnt2d "<<num<<"  "<< P.X()<<" "<<P.Y()<<std::endl;
   }
-  cout<<"pnt2d "<<num<<"  "<< PF.X()<<" "<<PF.Y()<<endl;
+  std::cout<<"pnt2d "<<num<<"  "<< PF.X()<<" "<<PF.Y()<<std::endl;
 }
index 55fcae4..48f4e87 100644 (file)
@@ -508,13 +508,13 @@ Standard_Integer IntPatch_Polyhedron::TriConnex (const Standard_Integer Triang,
     OtherP=0;
     TriCon=Triang;
 #if MSG_DEBUG
-    cout<<" Probleme ds IntCurveSurface_Polyhedron : Pivot et PEdge Confondus "<<endl;
+    std::cout<<" Probleme ds IntCurveSurface_Polyhedron : Pivot et PEdge Confondus "<<std::endl;
 #endif
     return(TriCon);
   }
   if(Point(OtherP).SquareDistance(Point(Pedge))<=LONGUEUR_MINI_EDGE_TRIANGLE) { 
 #if MSG_DEBUG
-    cout<<" Probleme ds IntCurveSurface_Polyhedron : OtherP et PEdge Confondus "<<endl;
+    std::cout<<" Probleme ds IntCurveSurface_Polyhedron : OtherP et PEdge Confondus "<<std::endl;
 #endif
     return(0); //-- BUG NON CORRIGE ( a revoir le role de nbdeltaU et nbdeltaV)
 //    Standard_Integer TempTri,TempOtherP;
index 054467b..684866c 100644 (file)
@@ -1397,7 +1397,7 @@ void SectionPointToParameters(const Intf_SectionPoint& Sp,
     }
   default: 
     {
-      //-- cout<<" Default dans SectionPointToParameters "<<endl;
+      //-- std::cout<<" Default dans SectionPointToParameters "<<std::endl;
       break;
     }
   }
@@ -1442,7 +1442,7 @@ void SectionPointToParameters(const Intf_SectionPoint& Sp,
     }
   default: 
     {
-      //-- cout<<" Default dans SectionPointToParameters "<<endl;
+      //-- std::cout<<" Default dans SectionPointToParameters "<<std::endl;
       break;
     }
   }
@@ -1882,7 +1882,7 @@ void IntPatch_PrmPrmIntersection::Perform(const Handle(Adaptor3d_HSurface)&    S
   //    Standard_Real nIncrement=Increment;
   //    if(MaxOscill>10) { 
   //  #ifdef OCCT_DEBUG
-  //      cout<<"\n IntPatch_PrmPrmIntersection.gxx : Increment:"<<Increment<<" -> "<<Increment/(0.5*MaxOscill)<<endl;
+  //      std::cout<<"\n IntPatch_PrmPrmIntersection.gxx : Increment:"<<Increment<<" -> "<<Increment/(0.5*MaxOscill)<<std::endl;
   //  #endif
   //      nIncrement/=0.5*MaxOscill;
   //    }
@@ -2740,7 +2740,7 @@ void IntPatch_PrmPrmIntersection::Perform (const Handle(Adaptor3d_HSurface)& Sur
               }
               else
               {
-                //-- cout<<" ----- REJET DE LIGNE (POINT DE DEPART) ----- "<<endl;
+                //-- std::cout<<" ----- REJET DE LIGNE (POINT DE DEPART) ----- "<<std::endl;
               }
               //------------------------------------------------------------           
             }
@@ -2938,7 +2938,7 @@ void IntPatch_PrmPrmIntersection::Perform (const Handle(Adaptor3d_HSurface)& Sur
             }
             else
             { 
-              //-- cout<<" ----- REJET DE LIGNE (POINT DE DEPART) ----- "<<endl;
+              //-- std::cout<<" ----- REJET DE LIGNE (POINT DE DEPART) ----- "<<std::endl;
             }
             //------------------------------------------------------------             
           }
@@ -3227,7 +3227,7 @@ void IntPatch_PrmPrmIntersection::PointDepart(Handle(IntSurf_LineOn2S)& LineOn2S
       }
     }
   }
-  //-- cout<<" Grille  du 1 fini "<<endl;
+  //-- std::cout<<" Grille  du 1 fini "<<std::endl;
   for(i=0;i<SU2;i++) { 
     for(j=0;j<SV2;j++) { 
       aIPD.xIP2(i, j)=-1;
index dafe0fe..2214b76 100644 (file)
@@ -347,7 +347,7 @@ void IntPatch_RLine::ComputeVertexParameters(const Standard_Real )
 
 void IntPatch_RLine::Dump(const Standard_Integer theMode) const
 { 
-  cout<<" ----------- D u m p    I n t P a t c h  _  R L i n e  -(begin)------"<<endl;
+  std::cout<<" ----------- D u m p    I n t P a t c h  _  R L i n e  -(begin)------"<<std::endl;
   const Standard_Integer aNbPoints = NbPnts();
   const Standard_Integer aNbVertex = NbVertex();
 
@@ -372,10 +372,10 @@ void IntPatch_RLine::Dump(const Standard_Integer theMode) const
 
       if(pol>=1 && pol<=aNbVertex)
       {
-        cout<<"----> IntSurf_PntOn2S : "<<
+        std::cout<<"----> IntSurf_PntOn2S : "<<
                       polr <<", Pnt (" << Vertex(pol).Value().X() << "," <<
                                           Vertex(pol).Value().Y() << "," <<
-                                          Vertex(pol).Value().Z() <<")" <<endl;
+                                          Vertex(pol).Value().Z() <<")" <<std::endl;
       }
     }
 
@@ -409,6 +409,6 @@ void IntPatch_RLine::Dump(const Standard_Integer theMode) const
 
     break;
   }
-  cout<<"\n--------------------------------------------------- (end) -------"<<endl;  
+  std::cout<<"\n--------------------------------------------------- (end) -------"<<std::endl;  
 }
 
index 0475179..b37d858 100644 (file)
@@ -480,7 +480,7 @@ void IntPatch_RstInt::PutVertexOnLine (const Handle(IntPatch_Line)& L,
       PLast = myInfinite;
     //if (Precision::IsNegativeInfinite(PFirst) || 
           // Precision::IsPositiveInfinite(PLast)) { 
-    //  //-- cout<<" IntPatch_RstInt::PutVertexOnLine  ---> Restrictions Infinies :"<<endl;
+    //  //-- std::cout<<" IntPatch_RstInt::PutVertexOnLine  ---> Restrictions Infinies :"<<std::endl;
     //  return;
     //}
 
@@ -596,7 +596,7 @@ void IntPatch_RstInt::PutVertexOnLine (const Handle(IntPatch_Line)& L,
        
        static int debug_polygon2d =0;
        if(debug_polygon2d) { 
-         cout<<" ***** Numero Restriction : "<<NumeroEdge<<" *****"<<endl;
+         std::cout<<" ***** Numero Restriction : "<<NumeroEdge<<" *****"<<std::endl;
          PLin.Dump();
          Brise.Dump();
        }
@@ -891,7 +891,7 @@ void IntPatch_RstInt::PutVertexOnLine (const Handle(IntPatch_Line)& L,
                    }
                  }
                  else {
-                   //-- cout << "pb dans RstInt  Type 1 " << endl;
+                   //-- std::cout << "pb dans RstInt  Type 1 " << std::endl;
                  }
                }
                else {
@@ -974,7 +974,7 @@ void IntPatch_RstInt::PutVertexOnLine (const Handle(IntPatch_Line)& L,
 
                  }
                  else {
-                   //-- cout << "pb dans RstInt  Type 2 " << endl;
+                   //-- std::cout << "pb dans RstInt  Type 2 " << std::endl;
                  }
                }
              }
@@ -1020,14 +1020,14 @@ void IntPatch_RstInt::PutVertexOnLine (const Handle(IntPatch_Line)& L,
        }
        else if(Surf1->IsUClosed()) { 
          pu1=Surf1->LastUParameter() - Surf1->FirstUParameter();
-         //cout<<" UClosed1 "<<pu1<<endl;
+         //std::cout<<" UClosed1 "<<pu1<<std::endl;
        }
        if(   Surf1->IsVPeriodic()) {
          pv1=Surf1->VPeriod();
        }
        else if(Surf1->IsVClosed()) { 
          pv1=Surf1->LastVParameter() - Surf1->FirstVParameter();
-         //cout<<" VClosed1 "<<pv1<<endl;
+         //std::cout<<" VClosed1 "<<pv1<<std::endl;
        }
 
        break;
@@ -1051,7 +1051,7 @@ void IntPatch_RstInt::PutVertexOnLine (const Handle(IntPatch_Line)& L,
        }
        else if(Surf2->IsUClosed()) { 
          pu2=Surf2->LastUParameter() - Surf2->FirstUParameter();
-         //cout<<" UClosed2 "<<pu2<<endl;
+         //std::cout<<" UClosed2 "<<pu2<<std::endl;
        }
 
        if(   Surf2->IsVPeriodic())  {
@@ -1059,7 +1059,7 @@ void IntPatch_RstInt::PutVertexOnLine (const Handle(IntPatch_Line)& L,
        }
        else if(Surf2->IsVClosed()) { 
          pv2=Surf2->LastVParameter() - Surf2->FirstVParameter();
-         //cout<<" VClosed2 "<<pv2<<endl;
+         //std::cout<<" VClosed2 "<<pv2<<std::endl;
        }
 
        break;
index 31aade4..60eb578 100644 (file)
@@ -460,9 +460,9 @@ Standard_Boolean IntPatch_SpecialPoints::ProcessSphere(const IntSurf_PntOn2S& th
     //of the pole.
 
 #ifdef INTPATCH_ADDSPECIALPOINTS_DEBUG
-    cout << "Cannot find UV-coordinate for quadric in the pole."
+    std::cout << "Cannot find UV-coordinate for quadric in the pole."
       " See considered comment above. IntPatch_SpecialPoints.cxx,"
-      " ProcessSphere(...)" << endl;
+      " ProcessSphere(...)" << std::endl;
 #endif
     Standard_Real aUIso = 0.0, aVIso = 0.0;
     if (theIsReversed)
@@ -672,8 +672,8 @@ Standard_Boolean IntPatch_SpecialPoints::ProcessCone(const IntSurf_PntOn2S& theP
   if (theIsIsoChoosen)
   {
 #ifdef INTPATCH_ADDSPECIALPOINTS_DEBUG
-    cout << "Cannot find UV-coordinate for quadric in the pole."
-      " IntPatch_AddSpecialPoints.cxx, ProcessCone(...)" << endl;
+    std::cout << "Cannot find UV-coordinate for quadric in the pole."
+      " IntPatch_AddSpecialPoints.cxx, ProcessCone(...)" << std::endl;
 #endif
     theIsIsoChoosen = Standard_True;
 
index ba635ce..a6b52c4 100644 (file)
@@ -269,18 +269,18 @@ void IntPatch_WLine::ComputeVertexParameters( const Standard_Real RTol)
   nbvtx = NbVertex();
 
 #if DEBUGV  
-  cout<<"\n----------- avant ComputeVertexParameters -------------"<<endl;
+  std::cout<<"\n----------- avant ComputeVertexParameters -------------"<<std::endl;
   for(i=1;i<=nbvtx;i++) { 
     Vertex(i).Dump();
     Standard_Real  polr = Vertex(i).ParameterOnLine();
     Standard_Real pol = (Standard_Integer)polr;
     if(pol>=1 && pol<=nbvtx) { 
-      cout<<"----> IntSurf_PntOn2S : "<<polr<<"  Pnt ("<<Vertex(pol).Value().X()
+      std::cout<<"----> IntSurf_PntOn2S : "<<polr<<"  Pnt ("<<Vertex(pol).Value().X()
        <<","<<Vertex(pol).Value().Y()
-         <<","<<Vertex(pol).Value().Z()<<")"<<endl;
+         <<","<<Vertex(pol).Value().Z()<<")"<<std::endl;
     }
   }
-  cout<<"\n----------------------------------------------------------"<<endl;
+  std::cout<<"\n----------------------------------------------------------"<<std::endl;
 #endif  
 
   
@@ -924,18 +924,18 @@ void IntPatch_WLine::ComputeVertexParameters( const Standard_Real RTol)
   //-- Dump();
 
 #if DEBUGV  
-  cout<<"\n----------- apres ComputeVertexParameters -------------"<<endl;
+  std::cout<<"\n----------- apres ComputeVertexParameters -------------"<<std::endl;
   for(i=1;i<=nbvtx;i++) { 
     Vertex(i).Dump();
     Standard_Real  polr = Vertex(i).ParameterOnLine();
     Standard_Real pol = (Standard_Integer)polr;
     if(pol>=1 && pol<=nbvtx) { 
-      cout<<"----> IntSurf_PntOn2S : "<<polr<<"  Pnt ("<<Vertex(pol).Value().X()
+      std::cout<<"----> IntSurf_PntOn2S : "<<polr<<"  Pnt ("<<Vertex(pol).Value().X()
        <<","<<Vertex(pol).Value().Y()
-         <<","<<Vertex(pol).Value().Z()<<")"<<endl;
+         <<","<<Vertex(pol).Value().Z()<<")"<<std::endl;
     }
   }
-  cout<<"\n----------------------------------------------------------"<<endl;
+  std::cout<<"\n----------------------------------------------------------"<<std::endl;
 #endif  
 
 
@@ -970,7 +970,7 @@ const Handle(Adaptor2d_HCurve2d)& IntPatch_WLine::GetArcOnS2() const  {
 
 void IntPatch_WLine::Dump(const Standard_Integer theMode) const
 { 
-  cout<<" ----------- D u m p    I n t P a t c h  _  W L i n e  -(begin)------"<<endl;
+  std::cout<<" ----------- D u m p    I n t P a t c h  _  W L i n e  -(begin)------"<<std::endl;
   const Standard_Integer aNbPoints = NbPnts();
   const Standard_Integer aNbVertex = NbVertex();
 
@@ -995,10 +995,10 @@ void IntPatch_WLine::Dump(const Standard_Integer theMode) const
 
       if(pol>=1 && pol<=aNbVertex)
       {
-        cout<<"----> IntSurf_PntOn2S : "<<
+        std::cout<<"----> IntSurf_PntOn2S : "<<
                       polr <<", Pnt (" << Vertex(pol).Value().X() << "," <<
                                           Vertex(pol).Value().Y() << "," <<
-                                          Vertex(pol).Value().Z() <<")" <<endl;
+                                          Vertex(pol).Value().Z() <<")" <<std::endl;
       }
     }
 
@@ -1032,6 +1032,6 @@ void IntPatch_WLine::Dump(const Standard_Integer theMode) const
 
     break;
   }
-  cout<<"\n--------------------------------------------------- (end) -------"<<endl;  
+  std::cout<<"\n--------------------------------------------------- (end) -------"<<std::endl;  
 }
 
index 2fdaf80..c8b248e 100644 (file)
@@ -143,7 +143,7 @@ void IntPolyh_SectionLine::Dump() const{
     //(*this)[i].Dump(i);
     Value(i).Dump(i);
 //     const IntPolyh_StartPoint& SP = Value(i);
-//     cout << "point P" << i << " " << SP.X() << " " << SP.Y() << " " << SP.Z() << endl;
+//     std::cout << "point P" << i << " " << SP.X() << " " << SP.Y() << " " << SP.Z() << std::endl;
   }
   printf("\n");
 }
index 0cf5659..315390f 100644 (file)
@@ -363,9 +363,9 @@ void IntRes2d_Intersection::Append( const IntRes2d_Intersection& Other
 #if DEBUGPOSITION
 void AffPosition(IntRes2d_Transition& T,const Standard_Real u,const char *Texte);
 void AffPosition(IntRes2d_Transition& T,const Standard_Real u,const char *Texte) { 
-  if(T.PositionOnCurve() == IntRes2d_End) { cout <<Texte<<" Param :"<<u<<" End "<<endl; } 
-  if(T.PositionOnCurve() == IntRes2d_Middle) { cout <<Texte<<" Param :"<<u<<" Middle "<<endl; } 
-  if(T.PositionOnCurve() == IntRes2d_Head) { cout <<Texte<<" Param :"<<u<<" Head "<<endl; }
+  if(T.PositionOnCurve() == IntRes2d_End) { std::cout <<Texte<<" Param :"<<u<<" End "<<std::endl; } 
+  if(T.PositionOnCurve() == IntRes2d_Middle) { std::cout <<Texte<<" Param :"<<u<<" Middle "<<std::endl; } 
+  if(T.PositionOnCurve() == IntRes2d_Head) { std::cout <<Texte<<" Param :"<<u<<" Head "<<std::endl; }
 } 
 #endif
 
@@ -413,7 +413,7 @@ AffPosition(T2,PParamOnSecond," Point 2 ");
 
 #if 0 
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-#define Debug(q) cout<<"IntRes2d_Intersectionq ="<<q<<endl;
+#define Debug(q) std::cout<<"IntRes2d_Intersectionq ="<<q<<std::endl;
 
 char *DebugPos(const IntRes2d_Position P);
 
@@ -423,7 +423,7 @@ Debug(FirstParam2);
 Debug(LastParam2);
 Debug(PParamOnFirst);
 Debug(PParamOnSecond);
-cout<<" ##### T1  <> Middle ###### "<<DebugPos(T1.PositionOnCurve())<<endl;
+std::cout<<" ##### T1  <> Middle ###### "<<DebugPos(T1.PositionOnCurve())<<std::endl;
 char *DebugPos(const IntRes2d_Position P) {
   if(P==IntRes2d_Middle) return(" Middle ");
   if(P==IntRes2d_Head) return(" Head ");
index 9783816..a1b7503 100644 (file)
@@ -27,7 +27,7 @@ IntRes2d_Transition::IntRes2d_Transition() : tangent(Standard_True),
 }
 
 
-ostream& operator << (ostream& os, IntRes2d_Transition& Trans) {
+std::ostream& operator << (std::ostream& os, IntRes2d_Transition& Trans) {
 
   os << "   Position : ";
   if (Trans.PositionOnCurve()==IntRes2d_Head) {
index 2028266..223447d 100644 (file)
@@ -16,7 +16,7 @@
 
 #include <Standard_DomainError.hxx>
 
-ostream& operator << (ostream&, IntRes2d_Transition&);
+std::ostream& operator << (std::ostream&, IntRes2d_Transition&);
 
 inline IntRes2d_Transition::IntRes2d_Transition (const Standard_Boolean Tangent, 
                                          const IntRes2d_Position Pos,
index abbcbff..538baef 100644 (file)
@@ -873,8 +873,8 @@ void PointProcess (const gp_Pnt& Pt,
     toler = TheSOBTool::Tolerance(vtx,A);
 #ifdef OCCT_DEBUG
     if(toler>0.1) { 
-      cout<<"IntStart_SearchOnBoundaries_1.gxx  : ** WARNING ** Tol Vertex="<<toler<<endl;
-      cout<<"                                     Ou Edge degenere Ou Kro pointu"<<endl;
+      std::cout<<"IntStart_SearchOnBoundaries_1.gxx  : ** WARNING ** Tol Vertex="<<toler<<std::endl;
+      std::cout<<"                                     Ou Edge degenere Ou Kro pointu"<<std::endl;
       if(toler>10000) toler=1e-7;
     }
 #endif
index 759e5dd..f2a572f 100644 (file)
@@ -534,7 +534,7 @@ void IntTools_FaceFace::Perform(const TopoDS_Face& aF1,
         Sprintf(aBuff, "%s -p %+10.20f %+10.20f %+10.20f %+10.20f", aBuff, u1, v1, u2, v2);
       }
 
-      cout << aBuff << endl;
+      std::cout << aBuff << std::endl;
     }
 #endif
 
index 63f0485..55d44a4 100644 (file)
@@ -19,7 +19,7 @@
 
 inline void IntWalk_IWLine::Cut(const Standard_Integer Index)
 {
-//--   cout<<" split : "<<Index<<endl;
+//--   std::cout<<" split : "<<Index<<std::endl;
   Handle(IntSurf_LineOn2S) lost = line->Split(Index);
 }
 
@@ -146,7 +146,7 @@ inline void IntWalk_IWLine::SetTangentVector (const gp_Vec& V,
   indextg = Index;
   vcttg = V;
   
-  //-- cout<<"\n IntWalk_IWLine::SetTangentVector : "<<V.X()<<" "<<V.Y()<<" "<<V.Z()<<"   Ind:"<<Index<<"  NbPts:"<<NbPoints()<<endl;
+  //-- std::cout<<"\n IntWalk_IWLine::SetTangentVector : "<<V.X()<<" "<<V.Y()<<" "<<V.Z()<<"   Ind:"<<Index<<"  NbPts:"<<NbPoints()<<std::endl;
   
 }
 
@@ -165,7 +165,7 @@ inline void IntWalk_IWLine::SetTangencyAtEnd
 inline const gp_Vec& IntWalk_IWLine::TangentVector
   (Standard_Integer& Index) const {
 //--    if(istgtend == Standard_False && istgtbeg == Standard_False) { 
-//--      cout<<" IntWalk_IWLine.lxx : Pb "<<endl;
+//--      std::cout<<" IntWalk_IWLine.lxx : Pb "<<std::endl;
 //--    }
   Index = indextg;
   return vcttg;
index 69db4cd..17def91 100644 (file)
@@ -833,7 +833,7 @@ void IntWalk_IWalking::TestArretCadre
            }
 #ifdef OCCT_DEBUG
            else { 
-             cout<<" IntWalk_IWalking_2.gxx : bizarrerie 30 10 97 "<<endl;
+             std::cout<<" IntWalk_IWalking_2.gxx : bizarrerie 30 10 97 "<<std::endl;
            }
 #endif
          }
index e3b9e75..add2c50 100644 (file)
@@ -1210,7 +1210,7 @@ void IntWalk_PWalking::Perform(const TColStd_Array1OfReal& ParDep,
             {
               Arrive=Standard_True;
 #ifdef OCCT_DEBUG
-              cout << "IntWalk_PWalking_1.gxx: Problems with intersection"<<endl;
+              std::cout << "IntWalk_PWalking_1.gxx: Problems with intersection"<<std::endl;
 #endif
             }
 
@@ -1705,7 +1705,7 @@ Standard_Boolean IntWalk_PWalking::ExtendLineInCommonZone(const IntImp_ConstIsop
 
     if((nbIterWithoutAppend > 20) || (nbEqualPoints > 20)) {
 #ifdef OCCT_DEBUG
-      cout<<"Infinite loop detected. Stop iterations (IntWalk_PWalking_1.gxx)" << endl;
+      std::cout<<"Infinite loop detected. Stop iterations (IntWalk_PWalking_1.gxx)" << std::endl;
 #endif
       bStop = Standard_True;
       break;
index c1b77bb..a54d5be 100644 (file)
@@ -692,7 +692,7 @@ void Interface_Check::Print(const Handle(Message_Messenger)& S, const Standard_I
 
   if (level >= 1) {
     nb = NbFails();
-//    if (nb > 0) S<<" -->   Fails    : "<<nb<<endl;
+//    if (nb > 0) S<<" -->   Fails    : "<<nb<<std::endl;
     for (j = 1; j <= nb; j ++) {
       if (final >= 0) 
        S<<CFail(j,Standard_True)<<"\n";
@@ -706,7 +706,7 @@ void Interface_Check::Print(const Handle(Message_Messenger)& S, const Standard_I
 
   if (level >= 2) {
     nb = NbWarnings();
-//    if (nb > 0) S<<" -->   Warnings : "<<nb<<endl;
+//    if (nb > 0) S<<" -->   Warnings : "<<nb<<std::endl;
     for (j = 1; j <= nb; j ++) {
       if (final >= 0)
        S<<CWarning(j,Standard_True)<<"\n";
@@ -721,7 +721,7 @@ void Interface_Check::Print(const Handle(Message_Messenger)& S, const Standard_I
 //   InfoMsg : regle causant (user message)
   if (level >= 0) {
     nb = NbInfoMsgs();
-//    if (nb > 0) S<<" -->   Infos    : "<<nb<<endl;
+//    if (nb > 0) S<<" -->   Infos    : "<<nb<<std::endl;
     for (j = 1; j <= nb; j ++) {
       if (final >= 0) 
        S<<CInfoMsg(j,Standard_True)<<"\n";
index ca13da9..07d5fbd 100644 (file)
@@ -540,11 +540,11 @@ void Interface_CheckIterator::Print(const Handle(Message_Messenger)& S,
 //  mesnum = mesnum0;
 //    if (yamod) mesnum = (nm0 > 0 ? mesnum1 : mesnum2);
 
-    if (!titre)        S<<" **  " << Name() << "  **"<<endl;
+    if (!titre)        S<<" **  " << Name() << "  **"<<Message_EndLine;
     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"<<endl;
+    if      (num <  0) S<<" -- Global Check"<<Message_EndLine;
     else if (num == 0) S<<" -- Entity n0 ??:";
     else {
       if (yamod) { S<<" -- Entity (n0:id) "; model->Print (ent,S); }
@@ -552,16 +552,16 @@ void Interface_CheckIterator::Print(const Handle(Message_Messenger)& S,
 //      S<<" -- Entity n0 "<<num<<mesnum;
 //      if (yamod) model->PrintLabel(ent,S);
     }
-    if      (num >= 0 &&  entnul) S<<" (unknown Type)"<<endl;
+    if      (num >= 0 &&  entnul) S<<" (unknown Type)"<<Message_EndLine;
     else if (num >= 0 && !entnul) {
-      if (yamod) S<<"   Type:"<<model->TypeName(ent)<<endl;
-      else       S<<"   Type:"<<ent->DynamicType()->Name()<<endl;
+      if (yamod) S<<"   Type:"<<model->TypeName(ent)<<Message_EndLine;
+      else       S<<"   Type:"<<ent->DynamicType()->Name()<<Message_EndLine;
     }
 
     nbch ++;
     ach->Print (S, (failsonly ? 1 : 3));
   }
-//  if (nbch > 0)  S<<" ----  Checks : "<<nbch<<"  ----"<<endl;
+//  if (nbch > 0)  S<<" ----  Checks : "<<nbch<<"  ----"<<std::endl;
 }
 
 
index 4349a63..e7558a8 100644 (file)
@@ -207,7 +207,7 @@ const Handle(Standard_Transient)& Interface_FileReaderData::BoundEntity
     }
   ////sln 21.01.2002 OCC133: Exception handling
  // catch (Standard_OutOfRange) {
- //   cout<<" Catch of sln"<<endl;
+ //   std::cout<<" Catch of sln"<<std::endl;
 
  //   return dummy;
  // }
@@ -216,12 +216,12 @@ const Handle(Standard_Transient)& Interface_FileReaderData::BoundEntity
     // some work-around, the best would be to modify CDL to
     // return "Handle(Standard_Transient)" not "const Handle(Standard_Transient)&"
       static Handle(Standard_Transient) dummy;
-     // cout<<" Catch of smh"<<endl;
+     // std::cout<<" Catch of smh"<<std::endl;
     return dummy;
     }
   }
-   //cout<<" Normal"<<endl;
-  if (theents.Value(num).IsImmutable()) cout << "IMMUTABLE:"<<num<<endl;
+   //std::cout<<" Normal"<<std::endl;
+  if (theents.Value(num).IsImmutable()) std::cout << "IMMUTABLE:"<<num<<std::endl;
   return theents(num);
 }
 */
@@ -232,7 +232,7 @@ void Interface_FileReaderData::BindEntity
 {
 //  #ifdef OCCT_DEBUG
 //    if (ent.IsImmutable())
-//      cout << "Bind IMMUTABLE:"<<num<<endl;
+//      std::cout << "Bind IMMUTABLE:"<<num<<std::endl;
 //  #endif
   theents.SetValue(num,ent);
 }
index 114ad4d..cc86f44 100644 (file)
@@ -30,7 +30,7 @@
 
 //! This class converts a floting number (Real) to a string
 //! It can be used if the standard C-C++ output functions
-//! (sprintf or cout<<) are not convenient. That is to say :
+//! (sprintf or std::cout<<) are not convenient. That is to say :
 //! - to suppress trailing '0' and 'E+00' (if desired)
 //! - to control exponant output and floating point output
 //!
index be84fd2..4cb9b6b 100644 (file)
@@ -144,7 +144,7 @@ Standard_Integer  Interface_MSG::Read (Standard_IStream& S)
 
     Standard_Integer  Interface_MSG::Read (const Standard_CString file)
 {
-  ifstream S(file);
+  std::ifstream S(file);
   if (!S) return -1;
   return Read (S);
 }
@@ -154,7 +154,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<<endl;
+  if (rootkey[0] != '\0') S<<"@@ ROOT:"<<rootkey<<std::endl;
   NCollection_DataMap<TCollection_AsciiString, Handle(TCollection_HAsciiString)>::Iterator iter(thedic);
   for (; iter.More(); iter.Next()) {
     if (!iter.Key().StartsWith(rootkey)) continue;
@@ -164,7 +164,7 @@ Standard_Integer  Interface_MSG::Read (Standard_IStream& S)
     nb ++;
     S<<str->ToCString()<<"\n";
   }
-  S<<flush;
+  S<<std::flush;
   return nb;
 }
 
@@ -185,7 +185,7 @@ Standard_CString  Interface_MSG::Translated (const Standard_CString key)
     if (thedic.Find(key, str))
       return str->ToCString();
   }
-  if (theprint) cout<<" **  Interface_MSG:Translate ?? "<<key<<"  **"<<endl;
+  if (theprint) std::cout<<" **  Interface_MSG:Translate ?? "<<key<<"  **"<<std::endl;
   if (therec) {
     if (thelist.IsBound(key)) {
       thelist.ChangeFind(key)++;
@@ -208,7 +208,7 @@ void  Interface_MSG::Record
     thedic.Bind(key,str);
     return;
   }
-  if (theprint) cout<<" **  Interface_MSG:Record ?? "<<key<<" ** "<<item<<"  **"<<endl;
+  if (theprint) std::cout<<" **  Interface_MSG:Record ?? "<<key<<" ** "<<item<<"  **"<<std::endl;
   if (therec) {
     if (thedup.IsNull()) thedup = new TColStd_HSequenceOfHAsciiString();
     dup = new TCollection_HAsciiString(key);
@@ -244,13 +244,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()<<endl;
+    S<<" ** "<<dup->ToCString()<<std::endl;
   }
 
   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()<<endl;
+    S<<"** MSG(NB="<<iter.Value()<<"): "<<iter.Key()<<std::endl;
   }
 }
 
index 984d09b..e370f81 100644 (file)
@@ -211,5 +211,5 @@ Interface_ShareTool::Interface_ShareTool (const Handle(Interface_HGraph)& ahgrap
     Handle(Standard_Transient) ent = iter.Value();
     S << " n0/id:"; Model()->Print(ent,S);
   }
-  S<<endl;
+  S<<Message_EndLine;
 }
index bde44bc..bc9dd50 100644 (file)
@@ -89,10 +89,10 @@ void  Interface_Static::PrintStatic (const Handle(Message_Messenger)& S) const
   S<<"--- Static Value : "<<Name()<<"  Family:"<<Family();
   Print (S);
   if (!thewild.IsNull())
-    S<<" -- Attached to wild-card : "<<thewild->Name()<<endl;
+    S<<" -- Attached to wild-card : "<<thewild->Name()<<Message_EndLine;
   S<<"--- Actual status : "<<(theupdate ? "" : "original")<<"  Value : ";
 
-  if (thesatisf) S<<" -- Specific Function for Satisfies : "<<thesatisn.ToCString()<<endl;
+  if (thesatisf) S<<" -- Specific Function for Satisfies : "<<thesatisn.ToCString()<<Message_EndLine;
 }
 
 
@@ -304,7 +304,7 @@ Standard_CString  Interface_Static::CVal  (const Standard_CString name)
   Handle(Interface_Static) item = Interface_Static::Static(name);
   if (item.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: Interface_Static::CVal: incorrect parameter " << name << endl;
+    std::cout << "Warning: Interface_Static::CVal: incorrect parameter " << name << std::endl;
 #endif
     return "";
   }
@@ -317,7 +317,7 @@ Standard_Integer  Interface_Static::IVal  (const Standard_CString name)
   Handle(Interface_Static) item = Interface_Static::Static(name);
   if (item.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: Interface_Static::IVal: incorrect parameter " << name << endl;
+    std::cout << "Warning: Interface_Static::IVal: incorrect parameter " << name << std::endl;
 #endif
     return 0;
   }
@@ -330,7 +330,7 @@ Standard_Real Interface_Static::RVal (const Standard_CString name)
   Handle(Interface_Static) item = Interface_Static::Static(name);
   if (item.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: Interface_Static::RVal: incorrect parameter " << name << endl;
+    std::cout << "Warning: Interface_Static::RVal: incorrect parameter " << name << std::endl;
 #endif
     return 0.0;
   }
index d2e835d..bb34733 100644 (file)
@@ -260,15 +260,15 @@ Standard_Boolean Intf_Interference::Contains
 //----------------------------------------------------
 void Intf_Interference::Dump() const
 {
-  cout << "Mes SectionPoint :" << endl;
+  std::cout << "Mes SectionPoint :" << std::endl;
   for (Standard_Integer p=1; p<=mySPoins.Length(); p++) {
     mySPoins(p).Dump(2);
   }
-  cout << "Mes SectionLine :" << endl;
+  std::cout << "Mes SectionLine :" << std::endl;
   for (Standard_Integer l=1; l<=mySLines.Length(); l++) {
     mySLines(l).Dump(2);
   }
-  cout << "Mes TangentZone :" << endl;
+  std::cout << "Mes TangentZone :" << std::endl;
   for (Standard_Integer t=1; t<=myTZones.Length(); t++) {
     myTZones(t).Dump(2);
   }
index 87c36f5..301e55b 100644 (file)
@@ -179,10 +179,10 @@ Standard_Boolean Intf_SectionLine::IsEqual
 void Intf_SectionLine::Dump
  (const Standard_Integer Indent) const
 {
-  for (Standard_Integer id=0; id<Indent; id++) cout << " ";
-  cout << "LS ";
-  if (IsClosed()) cout << "Closed :" << endl;
-  else cout << "Open :" << endl;
+  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;
   for (Standard_Integer p=1; p<=myPoints.Length(); p++) {
     myPoints.Value(p).Dump(Indent+2);
   }
index 31e5621..a200dc9 100644 (file)
@@ -123,7 +123,7 @@ Standard_Boolean Intf_SectionPoint::IsOnSameEdge
     }
     else if (Other.DimenObje==Intf_VERTEX) {
 #if DEBUG_INTFSECTIONPOINT
-      cout << " IsOnSameEdge on Intersection VERTEX VERTEX Obje !" << endl;
+      std::cout << " IsOnSameEdge on Intersection VERTEX VERTEX Obje !" << std::endl;
 #endif
        isOn=(IndexT1==Other.IndexT1);
     }
@@ -143,7 +143,7 @@ Standard_Boolean Intf_SectionPoint::IsOnSameEdge
       }
       else if (Other.DimenTool==Intf_VERTEX) {
 #if DEBUG_INTFSECTIONPOINT
-       cout << " IsOnSameEdge on Intersection VERTEX VERTEX Tool !" << endl;
+       std::cout << " IsOnSameEdge on Intersection VERTEX VERTEX Tool !" << std::endl;
 #endif
        isOn=(IndexT1==Other.IndexT1);
       }
@@ -253,19 +253,19 @@ void Intf_SectionPoint::Dump (const Standard_Integer
                              ) const
 {
 #if DEBUG_INTFSECTIONPOINT 
-  for (Standard_Integer id=0; id<Indent; id++) cout << " ";
+  for (Standard_Integer id=0; id<Indent; id++) std::cout << " ";
 
-  cout << "PIType(" << DimenObje << "," << DimenTool << ")  entre(" 
+  std::cout << "PIType(" << DimenObje << "," << DimenTool << ")  entre(" 
         << IndexO1 << "," << IndexO2 << ") par(" << ParamObje 
          << ") et ("
        << IndexT1 << "," << IndexT2 << ") par(" << ParamTool  
-         << ")" << endl;
+         << ")" << std::endl;
 
-  for (id=0; id<Indent; id++) cout << " ";
+  for (id=0; id<Indent; id++) std::cout << " ";
 
-  cout << "  Lieu(" << myPnt.X() << ","
+  std::cout << "  Lieu(" << myPnt.X() << ","
                     << myPnt.Y() << "," 
                     << myPnt.Z() << 
-        ")  Incidence(" << Incide << ")" << endl;
+        ")  Incidence(" << Incide << ")" << std::endl;
 #endif
 }
index 9fbc8af..361b2fd 100644 (file)
@@ -84,7 +84,7 @@ void Intf_TangentZone::Append            (const Intf_TangentZone& Tzi)
 Standard_Boolean Intf_TangentZone::Insert (const Intf_SectionPoint& )
 {
 #if DEBUG_TANGENTZONE
-  cout<<" Standard_Boolean Intf_TangentZone::Insert (const Intf_SectionPoint& Pi) ???? "<<endl;
+  std::cout<<" Standard_Boolean Intf_TangentZone::Insert (const Intf_SectionPoint& Pi) ???? "<<std::endl;
 #endif
   Standard_Boolean Inserted=Standard_False;
 /*
@@ -334,10 +334,10 @@ Standard_Boolean Intf_TangentZone::HasCommonRange
 void Intf_TangentZone::Dump (const Standard_Integer /*Indent*/) const
 {
 #if DEBUG_TANGENTZONE
-  for (Standard_Integer id=0; id<Indent; id++) cout << " ";
-  cout << "TZ \n" ;
-  cout<<"  ParamOnFirstMin Max    : "<<ParamOnFirstMin<<" "<<ParamOnFirstMax<<endl;
-  cout<<"  ParamOnSecondMin Max   : "<<ParamOnSecondMin<<" "<<ParamOnSecondMax<<endl;
+  for (Standard_Integer id=0; id<Indent; id++) std::cout << " ";
+  std::cout << "TZ \n" ;
+  std::cout<<"  ParamOnFirstMin Max    : "<<ParamOnFirstMin<<" "<<ParamOnFirstMax<<std::endl;
+  std::cout<<"  ParamOnSecondMin Max   : "<<ParamOnSecondMin<<" "<<ParamOnSecondMax<<std::endl;
   for (Standard_Integer p=1; p<=Result.Length(); p++) {
     Result(p).Dump(Indent+2);
   }
index c646412..09843e7 100644 (file)
@@ -356,7 +356,7 @@ char * db_pretty_print (const LDOMBasicString * aString, int fl, char *)
     out << str;
   out << '\"';
  finis:
-  out << ends;
+  out << std::ends;
   return (char *)out.str();
 }
 #endif
index cf682c0..82730ed 100644 (file)
@@ -13,7 +13,7 @@
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
-//AGV 060302: Input from istream
+//AGV 060302: Input from std::istream
 //            AGV 130302: Return error if there are data after the root element
 
 //#define LDOM_PARSER_TRACE
@@ -111,7 +111,7 @@ const TCollection_AsciiString& LDOMParser::GetError
 //purpose  :
 //=======================================================================
 
-Standard_Boolean LDOMParser::parse (istream& anInput,
+Standard_Boolean LDOMParser::parse (std::istream& anInput,
                                     const Standard_Boolean theTagPerStep,
                                     const Standard_Boolean theWithoutRoot)
 {
@@ -153,7 +153,7 @@ Standard_Boolean LDOMParser::parse (const char * const aFileName)
 //purpose  : parse the whole document (abstracted from the XML source)
 //=======================================================================
 
-Standard_Boolean LDOMParser::ParseDocument (istream& theIStream, const Standard_Boolean theWithoutRoot)
+Standard_Boolean LDOMParser::ParseDocument (std::istream& theIStream, const Standard_Boolean theWithoutRoot)
 {
   Standard_Boolean      isError   = Standard_False;
   Standard_Boolean      isElement = Standard_False;
index 6fc1bf0..85919de 100644 (file)
@@ -13,7 +13,7 @@
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
-//AGV 060302: Input from istream
+//AGV 060302: Input from std::istream
 
 #ifndef LDOMParser_HeaderFile
 #define LDOMParser_HeaderFile
@@ -22,7 +22,7 @@
 #include <LDOM_OSStream.hxx>
 
 class LDOM_XmlReader;
-//class istream;
+//class std::istream;
 
 //  Class LDOMParser
 //
@@ -48,7 +48,7 @@ class LDOMParser
   // Returns True if error occurred, then GetError() can be called
 
   Standard_EXPORT Standard_Boolean
-                        parse           (istream& anInput,
+                        parse           (std::istream& anInput,
                                          const Standard_Boolean theTagPerStep  = Standard_False,
                                          const Standard_Boolean theWithoutRoot = Standard_False);
   // Parse a C++ stream
index 5d6ee63..24f4d6a 100644 (file)
@@ -73,27 +73,27 @@ char * db_pretty_print (const LDOM_BasicNode * aBNode, int fl, char *)
         aBNode = aBElem.GetFirstChild();
         int counter = MAX_SIBLINGS;
         if (aBNode) {
-          out << endl << " == Children:" << endl;
+          out << std::endl << " == Children:" << std::endl;
           while (aBNode && counter--) {
             if (aBNode -> getNodeType() == LDOM_Node::ATTRIBUTE_NODE) break;
             out << "  *(LDOM_BasicNode*)" << aBNode << " : " <<
-              db_pretty_print (aBNode, FLITERAL, 0) << endl;
+              db_pretty_print (aBNode, FLITERAL, 0) << std::endl;
             aBNode = aBNode -> GetSibling();
           }
         }
         aBNode = aBElem.GetSibling();
         if (aBNode) {
-          out << " == Siblings:" << endl;
+          out << " == Siblings:" << std::endl;
           counter = MAX_SIBLINGS;
           while (aBNode && counter--) {
             if (aBNode -> getNodeType() == LDOM_Node::ATTRIBUTE_NODE) break;
             out << "  *(LDOM_BasicNode*)" << aBNode << " : " <<
-              db_pretty_print (aBNode, FLITERAL, 0) << endl;
+              db_pretty_print (aBNode, FLITERAL, 0) << std::endl;
             aBNode = aBNode -> GetSibling();
           }
         }
       }
-      out << ends;
+      out << std::ends;
       break;
     }
   case LDOM_Node::ATTRIBUTE_NODE:
@@ -101,7 +101,7 @@ char * db_pretty_print (const LDOM_BasicNode * aBNode, int fl, char *)
       const LDOM_BasicAttribute& aBAtt = * (const LDOM_BasicAttribute *) aBNode;
       if ((fl & FLITERAL) == 0) out << "LDOM_BasicAttribute: ";
       out << aBAtt.GetName() << '='
-        << db_pretty_print (&aBAtt.GetValue(), FLITERAL, 0) << ends;
+        << db_pretty_print (&aBAtt.GetValue(), FLITERAL, 0) << std::ends;
       break;
     }
   case LDOM_Node::TEXT_NODE:
@@ -110,11 +110,11 @@ char * db_pretty_print (const LDOM_BasicNode * aBNode, int fl, char *)
     {
       const LDOM_BasicText& aBText = * (const LDOM_BasicText *) aBNode;
       if ((fl & FLITERAL) == 0) out << "LDOM_BasicText: ";
-      out << db_pretty_print (&aBText.GetData(), FLITERAL, 0) << ends;
+      out << db_pretty_print (&aBText.GetData(), FLITERAL, 0) << std::ends;
       break;
     }
   default:
-    out << "UNKNOWN" << ends;
+    out << "UNKNOWN" << std::ends;
     break;
   }
   return (char *)out.str();
index 5492166..b65287b 100644 (file)
@@ -258,8 +258,8 @@ LDOM_MemManager::~LDOM_MemManager ()
     aBlock = aBlock -> Next();
   }
   if (aCount > 1)
-    cout << ".. Destroying " << aCount << " LDOM memory allocations: "
-         << aSomme / 256 << " kB" << endl;
+    std::cout << ".. Destroying " << aCount << " LDOM memory allocations: "
+         << aSomme / 256 << " kB" << std::endl;
 //fclose (out);
 #endif
   delete myFirstBlock;
index 2f60c7a..63330db 100644 (file)
@@ -24,7 +24,7 @@
 #include <stdlib.h>
 #include <stdio.h> /* EOF */
 
-//! Class LDOM_SBuffer inherits streambuf and
+//! Class LDOM_SBuffer inherits std::streambuf and
 //! redefines some virtual methods of it (overflow() and xsputn()).
 //! This class contains pointers on first and current element 
 //! of sequence, also it has methods for the sequence management.
@@ -67,7 +67,7 @@ public:
   //! Clears first element of sequence and removes all others
   Standard_EXPORT void Clear ();
 
-  // Methods of streambuf
+  // Methods of std::streambuf
 
   Standard_EXPORT virtual int overflow(int c = EOF) Standard_OVERRIDE;
   Standard_EXPORT virtual int underflow() Standard_OVERRIDE;
@@ -93,8 +93,8 @@ private:
 //! of outputting data into a string avoiding reallocation of buffer.
 //! Class LDOM_OSStream implements output into a sequence of
 //! strings and getting the result as a string.
-//! It inherits Standard_OStream (ostream).
-//! Beside methods of ostream, it also has additional
+//! It inherits Standard_OStream (std::ostream).
+//! Beside methods of std::ostream, it also has additional
 //! useful methods: str(), Length() and Clear().
 class LDOM_OSStream : public Standard_OStream
 {
index 2380632..944a966 100644 (file)
@@ -13,7 +13,7 @@
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
-//AGV 060302: Input from istream
+//AGV 060302: Input from std::istream
 //            AGV 130302: bug corr: was error if strlen(root_elem_name) < 7
 
 #include <LDOM_XmlReader.hxx>
index a0d42e1..16b923e 100644 (file)
@@ -13,7 +13,7 @@
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
-//AGV 060302: Input from istream
+//AGV 060302: Input from std::istream
 //            AGV 130302: bug corr: was error if strlen(root_elem_name) < 7
 
 #ifndef LDOM_XmlReader_HeaderFile
@@ -51,7 +51,7 @@ class LDOM_XmlReader
                   TCollection_AsciiString& anErrorString,
                   const Standard_Boolean theTagPerStep = Standard_False);
   // Constructor - takes a file descriptor for input
-  // Constructor - takes an istream for input
+  // Constructor - takes an std::istream for input
 
   RecordType            ReadRecord      (Standard_IStream& theIStream, LDOM_OSStream& theData);
   // reading a markup or other element of XML format
index b2210e5..950d569 100644 (file)
@@ -311,8 +311,8 @@ void LDOM_XmlWriter::Write (Standard_OStream& theOStream, const LDOM_Node& theNo
     }
   default:
 #ifndef _MSC_VER
-      cerr << "Unrecognized node type = "
-        << (long)theNode.getNodeType() << endl
+      std::cerr << "Unrecognized node type = "
+        << (long)theNode.getNodeType() << std::endl
 #endif
   ; }
 }
index ed785c0..58f8004 100644 (file)
@@ -406,7 +406,7 @@ static Standard_Boolean IsInside(const TopoDS_Shape& S1,
     }
   }
 #ifdef OCCT_DEBUG
-  cout << "Classification impossible sur vertex " << endl;
+  std::cout << "Classification impossible sur vertex " << std::endl;
 #endif
   
   return Standard_True;
index 8da855d..6b3de64 100644 (file)
@@ -708,8 +708,8 @@ Handle(Geom_Curve) LocOpe_DPrism::BarycCurve() const
 #ifdef OCCT_DEBUG
     Standard_Boolean trc = BRepFeat_GettraceFEAT();
     if (trc) {
-      cout << "LocOpe_DPrism::BarycCurve()" << endl;
-      cout << " Reversed Spine orientation" << endl;
+      std::cout << "LocOpe_DPrism::BarycCurve()" << std::endl;
+      std::cout << " Reversed Spine orientation" << std::endl;
     }
 #endif
 //    Normale.Reverse();  //cts20871
index e55d32c..57af7d4 100644 (file)
@@ -152,7 +152,7 @@ void LocOpe_FindEdges::Set(const TopoDS_Shape& FFrom,
          else {
            // Cas non traite : on est a cheval
 #ifdef OCCT_DEBUG
-           cout <<" cas a cheval."<< endl;
+           std::cout <<" cas a cheval."<< std::endl;
 #endif
 
 //         myLFrom.Append(edgf);
@@ -204,7 +204,7 @@ void LocOpe_FindEdges::Set(const TopoDS_Shape& FFrom,
          else {
            // Cas non traite : on est a cheval
 #ifdef OCCT_DEBUG
-           cout <<" cas a cheval."<< endl;
+           std::cout <<" cas a cheval."<< std::endl;
 #endif
 //         myLFrom.Append(edgf);
 //         myLTo.Append(edgt);
@@ -287,7 +287,7 @@ void LocOpe_FindEdges::Set(const TopoDS_Shape& FFrom,
 
              if (IsSame) {
 #ifdef OCCT_DEBUG
-               cout <<"memes bsplines."<< endl;
+               std::cout <<"memes bsplines."<< std::endl;
 #endif
                myLFrom.Append(edgf);
                myLTo.Append(edgt);
@@ -347,7 +347,7 @@ void LocOpe_FindEdges::Set(const TopoDS_Shape& FFrom,
            
            if (IsSame) {
 #ifdef OCCT_DEBUG
-             cout <<"memes beziers."<< endl;
+             std::cout <<"memes beziers."<< std::endl;
 #endif
              myLFrom.Append(edgf);
              myLTo.Append(edgt);
index 05b6746..4debc42 100644 (file)
@@ -574,7 +574,7 @@ void LocOpe_Generator::Perform(const Handle(LocOpe_GeneratedShape)& G)
                      B.UpdateEdge(edg,C2d,newface,tol);
                    }
                    //          else {
-                   //            cout << "Edge double bizarre... " << endl;
+                   //            std::cout << "Edge double bizarre... " << std::endl;
                    //          }
                  }
                }
@@ -890,7 +890,7 @@ void LocOpe_Generator::Perform(const Handle(LocOpe_GeneratedShape)& G)
                    B.UpdateEdge(edg,C2d,newface,tol);
                  }
                  //            else {
-                 //              cout << "Edge double bizarre... " << endl;
+                 //              std::cout << "Edge double bizarre... " << std::endl;
                  //            }
                }
              }
index 553623f..5f824f0 100644 (file)
@@ -160,7 +160,7 @@ void LocOpe_SplitDrafts::Perform(const TopoDS_Face& F,
   }
 
   if (!FinS) {
-    cout << "LocOpe_SplitDrafts:!Fins throw Standard_ConstructionError()" << endl;
+    std::cout << "LocOpe_SplitDrafts:!Fins throw Standard_ConstructionError()" << std::endl;
     throw Standard_ConstructionError();
   }    
 
@@ -197,7 +197,7 @@ void LocOpe_SplitDrafts::Perform(const TopoDS_Face& F,
 
   TopoDS_Wire theW = W;
   if (i2s.IsDone() && i2s.NbLines() > 0) {
-    // on split le wire" << endl;
+    // on split le wire" << std::endl;
 
     GeomFill_Pipe thePipe;
     thePipe.GenerateParticularCase(Standard_True);
@@ -658,7 +658,7 @@ void LocOpe_SplitDrafts::Perform(const TopoDS_Face& F,
          }
        }
        if (!itl.More()) {
-         cout << "LocOpe_SplitDrafts: betite probleme "<< endl;
+         std::cout << "LocOpe_SplitDrafts: betite probleme "<< std::endl;
          return;
        }
 
@@ -907,7 +907,7 @@ void LocOpe_SplitDrafts::Perform(const TopoDS_Face& F,
       }
       else {
 #ifdef OCCT_DEBUG
-       cout << "Pb d'analyse" << endl;
+       std::cout << "Pb d'analyse" << std::endl;
 #endif
        return;
       }
@@ -1253,7 +1253,7 @@ void LocOpe_SplitDrafts::Perform(const TopoDS_Face& F,
        if (theSubs.IsCopied(itl.Value())) {
          if (theSubs.Copy(itl.Value()).Extent() != 1) {
 #ifdef OCCT_DEBUG
-           cout << "Invalid number of descendant" << endl;
+           std::cout << "Invalid number of descendant" << std::endl;
 #endif
            return;
          }
@@ -1388,7 +1388,7 @@ static Standard_Boolean NewPlane(const TopoDS_Face& F,
       }
     }
   }
-  cout << "fin newplane return standard_false" << endl;
+  std::cout << "fin newplane return standard_false" << std::endl;
   return Standard_False;
 }
 
@@ -1457,7 +1457,7 @@ static void MakeFace(TopoDS_Face& F,
        }
       }
       if (C2d.IsNull()) {
-       cout << "Ca merde violemment" << endl;
+       std::cout << "Ca merde violemment" << std::endl;
       }
     }
   }
@@ -1547,7 +1547,7 @@ static void MakeFace(TopoDS_Face& F,
     B.Add(F,lwires.First());
   }
   else {
-    cout << "Not yet implemented : nbwire >= 2" << endl;
+    std::cout << "Not yet implemented : nbwire >= 2" << std::endl;
   }
 
 }
@@ -1728,7 +1728,7 @@ static TopoDS_Edge  NewEdge(const TopoDS_Edge& edg,
       Standard_Real ptol = Precision::PConfusion();
       if (prmf < imf - ptol || prmf > iml + ptol ||
          prml < imf - ptol || prml > iml + ptol) {
-       cout << "Ca ne va pas aller" << endl;
+       std::cout << "Ca ne va pas aller" << std::endl;
       }
 #endif
 
index 35c2935..4d292c9 100644 (file)
@@ -589,7 +589,7 @@ Standard_Boolean LocOpe_SplitShape::Add(const TopoDS_Wire& W,
     }
   } catch (Standard_Failure const&) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: SpliShape internal problem detected, some faces may be lost. Check input edges/wires" <<endl;
+    std::cout << "Warning: SpliShape internal problem detected, some faces may be lost. Check input edges/wires" <<std::endl;
 #endif
     return Standard_False;
   }
@@ -961,7 +961,7 @@ Standard_Boolean LocOpe_SplitShape::AddOpenWire(const TopoDS_Wire& W,
       }
       //MODIFICATION PIERRE SMEYERS : si pas de possibilite, on sort avec erreur
       else{
-        cout<<"erreur Spliter : pas de chainage du wire"<<endl;
+        std::cout<<"erreur Spliter : pas de chainage du wire"<<std::endl;
         return Standard_False;
       }
       //fin MODIF.
@@ -1045,7 +1045,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
-          cout << "WARNING: LocOpe_SPlitShape : Ce wire est ni dans newF2 ni dans newF1" << endl;
+          std::cout << "WARNING: LocOpe_SPlitShape : Ce wire est ni dans newF2 ni dans newF1" << std::endl;
         }
       }
     }
@@ -1227,7 +1227,7 @@ const TopTools_ListOfShape& LocOpe_SplitShape::DescendantShapes
   }
 #ifdef OCCT_DEBUG
   if (!myDblE.IsEmpty()) {
-    cout << "Le shape comporte des faces invalides" << endl;
+    std::cout << "Le shape comporte des faces invalides" << std::endl;
   }
 #endif
   return myMap(S);
@@ -1373,7 +1373,7 @@ static Standard_Boolean IsInside(const TopoDS_Face& F,
   Handle(Geom2d_Curve) C2d = BRep_Tool::CurveOnSurface(edg,F,f,l);
   if(C2d.IsNull()) {
 #ifdef OCCT_DEBUG
-         cout << "Edge is not on surface" <<endl;
+         std::cout << "Edge is not on surface" <<std::endl;
 #endif
       return Standard_False;
   }
index 547998a..6852f8b 100644 (file)
@@ -292,7 +292,7 @@ void LocOpe_Spliter::Perform(const Handle(LocOpe_WiresOnShape)& PW)
     }
     else {
 #ifdef OCCT_DEBUG
-      cout << "Pb pour substitution" << endl;
+      std::cout << "Pb pour substitution" << std::endl;
 #endif
     }
   }
index d463cf9..3bbfc98 100644 (file)
@@ -686,8 +686,8 @@ Standard_Boolean Project(const TopoDS_Vertex& V,
   }
 #ifdef OCCT_DEBUG_MESH
   else {
-    cout <<"LocOpe_WiresOnShape::Project --> le vertex projete est a une "; 
-    cout <<"distance / la face = "<<dmin <<" superieure a la tolerance = "<<ttol<<endl;
+    std::cout <<"LocOpe_WiresOnShape::Project --> le vertex projete est a une "; 
+    std::cout <<"distance / la face = "<<dmin <<" superieure a la tolerance = "<<ttol<<std::endl;
   }
 #endif
   return valret;
index 9bc5daf..ec530a0 100644 (file)
 /*********************************************************************************/
 void LocalAnalysis::Dump(const LocalAnalysis_SurfaceContinuity& surfconti, Standard_OStream& o)
 { if (!surfconti.IsDone()) 
-      { o<<"Problem in the computation "<<endl;
+      { o<<"Problem in the computation "<<std::endl;
         if (surfconti.StatusError()==LocalAnalysis_NullFirstDerivative) 
-           o<<"one of the first derivatives is null" <<endl;
+           o<<"one of the first derivatives is null" <<std::endl;
         else if(surfconti.StatusError()==LocalAnalysis_NullSecondDerivative)
-            o<<"one of the  second derivatives is null" <<endl; 
+            o<<"one of the  second derivatives is null" <<std::endl; 
         else if(surfconti.StatusError()==LocalAnalysis_NormalNotDefined) 
-            o<<"one (or both) normal is undefined" <<endl;
+            o<<"one (or both) normal is undefined" <<std::endl;
         else if(surfconti.StatusError()==LocalAnalysis_CurvatureNotDefined) 
-            o<<"one of the mean curvatures is undefined" <<endl; } 
+            o<<"one of the mean curvatures is undefined" <<std::endl; } 
   else 
   switch(surfconti.ContinuityStatus())
     { case GeomAbs_C0 :{  if (surfconti.IsC0() )
-                             o<<" Continuity Status : C0 " <<endl;
-                          else o<<" Continuity Status : No C0 "<<endl; 
-                          o<<" C0Value = "<<surfconti.C0Value() <<endl;
+                             o<<" Continuity Status : C0 " <<std::endl;
+                          else o<<" Continuity Status : No C0 "<<std::endl; 
+                          o<<" C0Value = "<<surfconti.C0Value() <<std::endl;
                       } break; 
       case GeomAbs_C1 :{ if (surfconti.IsC1()) 
-                          o<<" Continuity Status : C1 " <<endl;
+                          o<<" Continuity Status : C1 " <<std::endl;
                          else 
                            {if (surfconti.IsC0() ) 
-                               o<<" Continuity Status : C0 " <<endl;
-                             else o<<" Continuity Status : NoC0 "<<endl;
+                               o<<" Continuity Status : C0 " <<std::endl;
+                             else o<<" Continuity Status : NoC0 "<<std::endl;
                            }  
-                        o<<" C0Value = "<<surfconti.C0Value()<<endl;
-                        o<<" C1UAngle = "<<surfconti.C1UAngle()<<endl;
-                         o<<" C1URatio = "<<surfconti.C1URatio()<<endl; 
-                        o<<" C1VAngle = "<<surfconti.C1VAngle()<<endl;
-                         o<<" C1VRatio = "<<surfconti.C1VRatio()<<endl;
+                        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;
                          
                       } break;  
       case GeomAbs_C2 :{  if (surfconti.IsC2()) 
-                          o<<" Continuity Status : C2 " <<endl;
+                          o<<" Continuity Status : C2 " <<std::endl;
                          else 
                            {if (surfconti.IsC1() )
-                                o<<" Continuity Status : C1 " <<endl;
+                                o<<" Continuity Status : C1 " <<std::endl;
                             else
                               { if (surfconti.IsC0() )
-                                  o<<" Continuity Status : C0 " <<endl;
-                                else o<<" Continuity Status : NoC0 "<<endl;}
+                                  o<<" Continuity Status : C0 " <<std::endl;
+                                else o<<" Continuity Status : NoC0 "<<std::endl;}
                            } 
                          
-                        o<<" C0Value = "<<surfconti.C0Value()<<endl;
-                        o<<" C1UAngle = "<<surfconti.C1UAngle()<<endl;
-                        o<<" C1VAngle = "<<surfconti.C1VAngle()<<endl;
-                        o<<" C2UAngle = "<<surfconti.C2UAngle()<<endl;
-                        o<<" C2VAngle = "<<surfconti.C2VAngle()<<endl;
-                        o<<" C1URatio = "<<surfconti.C1URatio()<<endl;
-                        o<<" C1VRatio = "<<surfconti.C1VRatio()<<endl;
-                        o<<" C2URatio = "<<surfconti.C2URatio()<<endl;
-                        o<<" C2VRatio = "<<surfconti.C2VRatio()<<endl;
+                        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;
                       } break; 
       case GeomAbs_G1 :{ if (surfconti.IsG1()) 
-                          o<<" Continuity Status : G1 " <<endl;
+                          o<<" Continuity Status : G1 " <<std::endl;
                           else 
                            {if (surfconti.IsC0() ) 
-                               o<<" Continuity Status : G0 " <<endl;
-                            else o<<" Continuity Status : NoG0 "<<endl;
+                               o<<" Continuity Status : G0 " <<std::endl;
+                            else o<<" Continuity Status : NoG0 "<<std::endl;
                            }  
-                        o<<" G0Value = "<<surfconti.C0Value()<<endl; 
-                        o<<" G1Angle = "<<surfconti.G1Angle()<<endl<<endl;
+                        o<<" G0Value = "<<surfconti.C0Value()<<std::endl; 
+                        o<<" G1Angle = "<<surfconti.G1Angle()<<std::endl<<std::endl;
                       } break;
       case GeomAbs_G2 :{ if (surfconti.IsG2()) 
-                          o<<" Continuity Status : G2 " <<endl;
+                          o<<" Continuity Status : G2 " <<std::endl;
                          else 
                            {if (surfconti.IsG1() )
-                                o<<" Continuity Status : G1 " <<endl;
+                                o<<" Continuity Status : G1 " <<std::endl;
                             else
                               { if (surfconti.IsC0() )
-                                  o<<" Continuity Status : G0 " <<endl;
-                                else o<<" Continuity Status : NoG0 "<<endl;}
+                                  o<<" Continuity Status : G0 " <<std::endl;
+                                else o<<" Continuity Status : NoG0 "<<std::endl;}
                            } 
-                        o<<" G0Value = "<<surfconti.C0Value()<<endl; 
-                        o<<" G1Value = "<<surfconti.G1Angle()<<endl;
-                        o<<" G2CurvatureGap = "<<surfconti.G2CurvatureGap()<<endl;
+                        o<<" G0Value = "<<surfconti.C0Value()<<std::endl; 
+                        o<<" G1Value = "<<surfconti.G1Angle()<<std::endl;
+                        o<<" G2CurvatureGap = "<<surfconti.G2CurvatureGap()<<std::endl;
                        } 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 "<<endl;
+      { o<<"Problem in the computation "<<std::endl;
         if (curvconti.StatusError()==LocalAnalysis_NullFirstDerivative) 
-           o<<"one (or both) first derivative is null" <<endl;
+           o<<"one (or both) first derivative is null" <<std::endl;
         else if(curvconti.StatusError()==LocalAnalysis_NullSecondDerivative)
-            o<<"one (or both) second derivative is null" <<endl; 
+            o<<"one (or both) second derivative is null" <<std::endl; 
         else if(curvconti.StatusError()==LocalAnalysis_TangentNotDefined)
-             o<<"one (or both) tangent is undefined " <<endl; 
+             o<<"one (or both) tangent is undefined " <<std::endl; 
         else if(curvconti.StatusError()==LocalAnalysis_NormalNotDefined) 
-             o<<"one (or both) normal is undefined" <<endl;}  
+             o<<"one (or both) normal is undefined" <<std::endl;}  
   else     
   switch(curvconti.ContinuityStatus())
     { case GeomAbs_C0 :{  if (curvconti.IsC0() )
-                             o<<" Continuity Status : C0 " <<endl;
-                          else o<<" Continuity Status : No C0 "<<endl; 
-                          o<<" C0Value = "<<curvconti.C0Value() <<endl;
+                             o<<" Continuity Status : C0 " <<std::endl;
+                          else o<<" Continuity Status : No C0 "<<std::endl; 
+                          o<<" C0Value = "<<curvconti.C0Value() <<std::endl;
                       } break; 
       case GeomAbs_C1 :{ if (curvconti.IsC1()) 
-                          o<<" Continuity Status : C1 " <<endl;
+                          o<<" Continuity Status : C1 " <<std::endl;
                          else 
                            {if (curvconti.IsC0() ) 
-                               o<<" Continuity Status : C0 " <<endl;
-                             else o<<" Continuity Status : NoC0 "<<endl;
+                               o<<" Continuity Status : C0 " <<std::endl;
+                             else o<<" Continuity Status : NoC0 "<<std::endl;
                            }  
-                        o<<" C0Value = "<<curvconti.C0Value()<<endl;
-                        o<<" C1Angle = "<<curvconti.C1Angle()<<endl;
-                         o<<" C1Ratio = "<<curvconti.C1Ratio()<<endl;
+                        o<<" C0Value = "<<curvconti.C0Value()<<std::endl;
+                        o<<" C1Angle = "<<curvconti.C1Angle()<<std::endl;
+                         o<<" C1Ratio = "<<curvconti.C1Ratio()<<std::endl;
                                
                       } break; 
       case GeomAbs_C2 :{ if (curvconti.IsC2()) 
-                          o<<" Continuity Status : C2 " <<endl;
+                          o<<" Continuity Status : C2 " <<std::endl;
                          else 
                            {if (curvconti.IsC1() )
-                                o<<" Continuity Status : C1 " <<endl;
+                                o<<" Continuity Status : C1 " <<std::endl;
                             else
                               { if (curvconti.IsC0() )
-                                  o<<" Continuity Status : C0 " <<endl;
-                                else o<<" Continuity Status : NoC0 "<<endl;}
+                                  o<<" Continuity Status : C0 " <<std::endl;
+                                else o<<" Continuity Status : NoC0 "<<std::endl;}
                            } 
-                        o<<" C0Value = "<<curvconti.C0Value()<<endl;
-                        o<<" C1Angle = "<<curvconti.C1Angle()<<endl;
-                        o<<" C2Angle = "<<curvconti.C2Angle()<<endl;
-                        o<<" C1Ratio = "<<curvconti.C1Ratio()<<endl;
-                        o<<" C2Ratio = "<<curvconti.C2Ratio()<<endl;
+                        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;
                       }break; 
                          
       case GeomAbs_G1 :{  if (curvconti.IsG1()) 
-                          o<<" Continuity Status : G1 " <<endl;
+                          o<<" Continuity Status : G1 " <<std::endl;
                           else 
                            {if (curvconti.IsC0() ) 
-                               o<<" Continuity Status : G0 " <<endl;
-                            else o<<" Continuity Status : NoG0 "<<endl;
+                               o<<" Continuity Status : G0 " <<std::endl;
+                            else o<<" Continuity Status : NoG0 "<<std::endl;
                            }  
-                        o<<" G0Value = "<<curvconti.C0Value()<<endl; 
-                        o<<" G1Angle = "<<curvconti.G1Angle()<<endl;
+                        o<<" G0Value = "<<curvconti.C0Value()<<std::endl; 
+                        o<<" G1Angle = "<<curvconti.G1Angle()<<std::endl;
                       } break;
       case GeomAbs_G2 :{ if (curvconti.IsG2()) 
-                          o<<" Continuity Status : G2 " <<endl;
+                          o<<" Continuity Status : G2 " <<std::endl;
                          else 
                            {if (curvconti.IsG1() )
-                                o<<" Continuity Status : G1 " <<endl;
+                                o<<" Continuity Status : G1 " <<std::endl;
                             else
                               { if (curvconti.IsC0() )
-                                  o<<" Continuity Status : G0 " <<endl;
-                                else o<<" Continuity Status : NoG0 "<<endl;}
+                                  o<<" Continuity Status : G0 " <<std::endl;
+                                else o<<" Continuity Status : NoG0 "<<std::endl;}
                            } 
-                        o<<" G0Value = "<<curvconti.C0Value()<<endl; 
-                        o<<" G1Angle = "<<curvconti.G1Angle()<<endl;
-                        o<<" G2Angle = "<<curvconti.G2Angle()<<endl;
-                        o<<" Relative curvature variation = "<<curvconti.G2CurvatureVariation()<<endl;
+                        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;
 
                       } break;  
 
index e7b0e88..efb4155 100644 (file)
@@ -175,20 +175,20 @@ void MAT_Bisector::Dump(const Standard_Integer ashift,
 {
   Standard_Integer i;
 
-  for(i=0; i<ashift; i++)cout<<"  ";
-  cout<<" BISECTOR : "<<thebisectornumber<<endl;
-  for(i=0; i<ashift; i++)cout<<"  ";
-  cout<<"   First edge     : "<<thefirstedge->EdgeNumber()<<endl;
-  for(i=0; i<ashift; i++)cout<<"  ";
-  cout<<"   Second edge    : "<<thesecondedge->EdgeNumber()<<endl;
-  for(i=0; i<ashift; i++)cout<<"  ";
+  for(i=0; i<ashift; i++)std::cout<<"  ";
+  std::cout<<" BISECTOR : "<<thebisectornumber<<std::endl;
+  for(i=0; i<ashift; i++)std::cout<<"  ";
+  std::cout<<"   First edge     : "<<thefirstedge->EdgeNumber()<<std::endl;
+  for(i=0; i<ashift; i++)std::cout<<"  ";
+  std::cout<<"   Second edge    : "<<thesecondedge->EdgeNumber()<<std::endl;
+  for(i=0; i<ashift; i++)std::cout<<"  ";
   if(alevel)
     {
       if(!thelistofbisectors->More())
        {
-         cout<<"   Bisectors List : "<<endl;
+         std::cout<<"   Bisectors List : "<<std::endl;
          thelistofbisectors->Dump(ashift+1,1);
        }
     }
-  cout<<endl;
+  std::cout<<std::endl;
 }
index fd97af1..3d9ddd5 100644 (file)
@@ -512,8 +512,8 @@ static Handle(MAT_Arc) MakeArc(const Handle(MAT_Bisector)&     aBisector,
   Standard_Real                DistExt;
   
 #ifdef OCCT_DEBUG_Graph
-  cout<<"Construction Arc : Index"<<aBisector->IndexNumber()<<endl;
-  cout<<"Construction Arc : Bisector"<<aBisector->BisectorNumber()<<endl;
+  std::cout<<"Construction Arc : Index"<<aBisector->IndexNumber()<<std::endl;
+  std::cout<<"Construction Arc : Bisector"<<aBisector->BisectorNumber()<<std::endl;
 #endif
   
   CurrentArc = new MAT_Arc(IndTabArcs,
@@ -525,7 +525,7 @@ static Handle(MAT_Arc) MakeArc(const Handle(MAT_Bisector)&     aBisector,
   if (DistExt == Precision::Infinite()) {
     DistExt = 1.0;
 #ifdef OCCT_DEBUG_Graph
-    cout<<"PB:RECUPERATION DISTANCE SUR ISSUEPOINT."<<endl;
+    std::cout<<"PB:RECUPERATION DISTANCE SUR ISSUEPOINT."<<std::endl;
 #endif
   }
   
@@ -563,8 +563,8 @@ static Handle(MAT_Arc) MakeArc(const Handle(MAT_Bisector)&     aBisector,
   }
   
 #ifdef OCCT_DEBUG_Graph
-  cout<<"IndTabArcs = "<<IndTabArcs<<endl;
-  cout<<"ArcIndex   = "<<CurrentArc->ArcIndex()<<endl;
+  std::cout<<"IndTabArcs = "<<IndTabArcs<<std::endl;
+  std::cout<<"ArcIndex   = "<<CurrentArc->ArcIndex()<<std::endl;
 #endif  
   CurrentArc->SetIndex(IndTabArcs);
   TheArcs.Bind(IndTabArcs,CurrentArc);
index 2d307ea..cf0d037 100644 (file)
@@ -627,7 +627,7 @@ const
 #ifdef OCCT_DEBUG
     if (AffichCircuit) {
       for (i = 1; i <= 2*NbItems - 2; i++) {
-        cout<< "Correspondance "<< i<<" -> "<<Corres(i)<<endl;
+        std::cout<< "Correspondance "<< i<<" -> "<<Corres(i)<<std::endl;
       }
     }
 #endif
index 973a7e5..d0cb8ff 100644 (file)
@@ -253,7 +253,7 @@ Standard_Boolean MAT2d_Connexion::IsAfter(const Handle(MAT2d_Connexion)& C2,
 
 static void Indent(const Standard_Integer Offset) {
   if (Offset > 0) {
-    for (Standard_Integer i = 0; i <Offset; i++) {cout <<" ";}
+    for (Standard_Integer i = 0; i <Offset; i++) {std::cout <<" ";}
   }
 }
 
@@ -266,28 +266,28 @@ void MAT2d_Connexion::Dump (const Standard_Integer ,
 {
   Standard_Integer MyOffset = Offset;
   Indent (Offset);
-  cout<<"MAT2d_Connexion :"<<endl;
+  std::cout<<"MAT2d_Connexion :"<<std::endl;
   MyOffset++;
   Indent (MyOffset);
-  cout <<"IndexFirstLine    :"<<lineA<<endl;
+  std::cout <<"IndexFirstLine    :"<<lineA<<std::endl;
   Indent (MyOffset);
-  cout <<"IndexSecondLine   :"<<lineB<<endl;
+  std::cout <<"IndexSecondLine   :"<<lineB<<std::endl;
   Indent (MyOffset);
-  cout <<"IndexItemOnFirst  :"<<itemA<<endl;
+  std::cout <<"IndexItemOnFirst  :"<<itemA<<std::endl;
   Indent (MyOffset);
-  cout <<"IndexItemOnSecond :"<<itemB<<endl;
+  std::cout <<"IndexItemOnSecond :"<<itemB<<std::endl;
   Indent (MyOffset);
-  cout <<"ParameterOnFirst  :"<<parameterOnA<<endl;
+  std::cout <<"ParameterOnFirst  :"<<parameterOnA<<std::endl;
   Indent (MyOffset);
-  cout <<"ParameterOnSecond :"<<parameterOnB<<endl;
+  std::cout <<"ParameterOnSecond :"<<parameterOnB<<std::endl;
   Indent (MyOffset);
-  cout <<"PointOnFirst      :"<<endl;
-  cout <<"  X = "<<pointA.X()<<endl;
-  cout <<"  Y = "<<pointA.Y()<<endl;
+  std::cout <<"PointOnFirst      :"<<std::endl;
+  std::cout <<"  X = "<<pointA.X()<<std::endl;
+  std::cout <<"  Y = "<<pointA.Y()<<std::endl;
   Indent (MyOffset);
-  cout <<"PointOnSecond     :"<<endl;
-  cout <<"  X = "<<pointB.X()<<endl;
-  cout <<"  Y = "<<pointB.Y()<<endl;
+  std::cout <<"PointOnSecond     :"<<std::endl;
+  std::cout <<"  X = "<<pointB.X()<<std::endl;
+  std::cout <<"  Y = "<<pointB.Y()<<std::endl;
   Indent (MyOffset);
-  cout <<"Distance          :"<<distance<<endl;
+  std::cout <<"Distance          :"<<distance<<std::endl;
 }
index cfd3546..96d190e 100644 (file)
@@ -253,7 +253,7 @@ void MAT2d_Mat2d::CreateMatOpen(MAT2d_Tool2d& atool)
 #ifdef OCCT_DEBUG_Mat
       atool.Dump(bisectormap(i)->BisectorNumber(),1);
 #ifdef ICONTINUE
-      cin>>Icontinue;
+      std::cin>>Icontinue;
 #endif
 #endif
     }
@@ -430,7 +430,7 @@ void MAT2d_Mat2d::CreateMatOpen(MAT2d_Tool2d& atool)
         //-------------------------------------------
 
 #ifdef ICONTINUE
-      cin>>Icontinue;
+      std::cin>>Icontinue;
 #endif
     } //--------------
       // Fin Boucle 2.
@@ -525,14 +525,14 @@ void MAT2d_Mat2d::CreateMatOpen(MAT2d_Tool2d& atool)
       //-----------------------------------------------------------------
 
 #ifdef OCCT_DEBUG_Mat
-      cout <<" Test sur les parametres pour elimination"<<endl;
-      cout << " Edge number :"<<theedgelist->Current()->EdgeNumber()<<endl;
+      std::cout <<" Test sur les parametres pour elimination"<<std::endl;
+      std::cout << " Edge number :"<<theedgelist->Current()->EdgeNumber()<<std::endl;
 #endif
 
       if(paramb[0] > 0 && parama[1] > 0) {
 
 #ifdef OCCT_DEBUG_Mat
-      cout <<" A ELIMINER "<<endl;
+      std::cout <<" A ELIMINER "<<std::endl;
 #endif 
        if(narea < 0) {
          firstarea(++narea) = theedgelist->Index();
@@ -628,7 +628,7 @@ void MAT2d_Mat2d::CreateMatOpen(MAT2d_Tool2d& atool)
        shift++;
 
 #ifdef OCCT_DEBUG_Mat
-       cout<<" Suppression de l'arete : "<<edgetoremove->EdgeNumber()<<endl;
+       std::cout<<" Suppression de l'arete : "<<edgetoremove->EdgeNumber()<<std::endl;
 #endif
 
        if(all == 0 || j+1 != noofarea(i)) {
@@ -915,7 +915,7 @@ void MAT2d_Mat2d::CreateMat(MAT2d_Tool2d& atool)
 #ifdef OCCT_DEBUG_Mat
       atool.Dump(bisectormap(i)->BisectorNumber(),1);
 #ifdef ICONTINUE
-      cin>>Icontinue;
+      std::cin>>Icontinue;
 #endif
 #endif
     }
@@ -1131,7 +1131,7 @@ void MAT2d_Mat2d::CreateMat(MAT2d_Tool2d& atool)
       //-------------------------------------------
 
 #ifdef ICONTINUE
-      cin>>Icontinue;
+      std::cin>>Icontinue;
 #endif
     } //--------------
     // Fin Boucle 2.
@@ -1225,14 +1225,14 @@ void MAT2d_Mat2d::CreateMat(MAT2d_Tool2d& atool)
       //-----------------------------------------------------------------
 
 #ifdef OCCT_DEBUG_Mat
-      cout <<" Test sur les parametres pour elimination"<<endl;
-      cout << " Edge number :"<<theedgelist->Current()->EdgeNumber()<<endl;
+      std::cout <<" Test sur les parametres pour elimination"<<std::endl;
+      std::cout << " Edge number :"<<theedgelist->Current()->EdgeNumber()<<std::endl;
 #endif
 
       if(paramb[0] > 0 && parama[1] > 0) {
 
 #ifdef OCCT_DEBUG_Mat
-        cout <<" A ELIMINER "<<endl;
+        std::cout <<" A ELIMINER "<<std::endl;
 #endif 
         if(narea < 0) {
           firstarea(++narea) = theedgelist->Index();
@@ -1334,7 +1334,7 @@ void MAT2d_Mat2d::CreateMat(MAT2d_Tool2d& atool)
         shift++;
 
 #ifdef OCCT_DEBUG_Mat
-        cout<<" Suppression de l'arete : "<<edgetoremove->EdgeNumber()<<endl;
+        std::cout<<" Suppression de l'arete : "<<edgetoremove->EdgeNumber()<<std::endl;
 #endif
 
         if(all == 0 || j+1 != noofarea(i)) {
@@ -1532,9 +1532,9 @@ void MAT2d_Mat2d::LoadBisectorsToRemove
 
     if(found != -1) {
 #ifdef OCCT_DEBUG_Mat
-      cout<<" first last bisector to remove :"<<
+      std::cout<<" first last bisector to remove :"<<
         firstbisectortoremove[index]->BisectorNumber()<<" "<<
-        lastbisectortoremove[index]->BisectorNumber()<<endl;
+        lastbisectortoremove[index]->BisectorNumber()<<std::endl;
 #endif
       bisectoronetoremove.Bind(found,firstbisectortoremove[index]);
       bisectortwotoremove.Bind(found,lastbisectortoremove[index]);
index eb5b683..6c303a3 100644 (file)
@@ -14,7 +14,7 @@
 // Alternatively, this file may be used under the terms of Open CASCADE
 // commercial license or contractual agreement.
 
-#define Debug(expr)  cout<<" MAT2d_Tool2d.cxx  :  expr :"<<expr<<endl;
+#define Debug(expr)  std::cout<<" MAT2d_Tool2d.cxx  :  expr :"<<expr<<std::endl;
 //#define OCCT_DEBUG
 //#define DRAW
 #ifdef DRAW
@@ -339,18 +339,18 @@ void MAT2d_Tool2d::CreateBisector(const Handle(MAT_Bisector)& abisector)
 #ifdef OCCT_DEBUG
   Standard_Boolean Affich = Standard_False;
   if (Affich) {
-    cout<<endl; 
-    cout<<"BISECTOR number :  "<<theNumberOfBisectors+1<<endl;
-    cout<<"  Item 1 : "<<endl;
-    cout<<edge1number<<endl;
-    cout<<endl;
+    std::cout<<std::endl; 
+    std::cout<<"BISECTOR number :  "<<theNumberOfBisectors+1<<std::endl;
+    std::cout<<"  Item 1 : "<<std::endl;
+    std::cout<<edge1number<<std::endl;
+    std::cout<<std::endl;
     //    elt1->Dump(1,1);
-    cout<<endl;
-    cout<<"  Item 2 : "<<endl;
-    cout<<edge2number<<endl;
-    cout<<endl;
+    std::cout<<std::endl;
+    std::cout<<"  Item 2 : "<<std::endl;
+    std::cout<<edge2number<<std::endl;
+    std::cout<<std::endl;
     //  elt2->Dump(1,1);
-    cout<<endl;
+    std::cout<<std::endl;
   }
 #endif
 
@@ -500,7 +500,7 @@ Standard_Boolean MAT2d_Tool2d::TrimBisector
 
 #ifdef OCCT_DEBUG
   Standard_Boolean Affich = Standard_False;
-  if (Affich) cout<<"TRIM de "<<abisector->BisectorNumber()<<endl;
+  if (Affich) std::cout<<"TRIM de "<<abisector->BisectorNumber()<<std::endl;
 #endif
 
   Handle(Geom2d_TrimmedCurve) bisector = 
@@ -717,7 +717,7 @@ Standard_Boolean MAT2d_Tool2d::IsSameDistance (
 #ifdef OCCT_DEBUG
   if (AffichDist)
     for (Standard_Integer j = 1; j <= 4;j++){
-      cout <<"Distance number : "<<j<<" is :"<< Dist(j)<<endl;
+      std::cout <<"Distance number : "<<j<<" is :"<< Dist(j)<<std::endl;
     }
 #endif
 
@@ -806,21 +806,21 @@ Standard_Real MAT2d_Tool2d::IntersectBisector (
 #ifdef OCCT_DEBUG
   Standard_Boolean Affich = Standard_False;
   if (Affich) {
-    cout<<endl;
-    cout<<"INTERSECTION de "<<BisectorOne->BisectorNumber()<<
-      " et de "<<BisectorTwo->BisectorNumber()<<endl;
-    cout<<"  Bisector 1 : "<<endl;
+    std::cout<<std::endl;
+    std::cout<<"INTERSECTION de "<<BisectorOne->BisectorNumber()<<
+      " et de "<<BisectorTwo->BisectorNumber()<<std::endl;
+    std::cout<<"  Bisector 1 : "<<std::endl;
     //    (Bisector1->BasisCurve())->Dump(-1,1);
-    cout<<endl;
+    std::cout<<std::endl;
     Debug(Domain1.FirstParameter());
     Debug(Domain1.LastParameter());
-    cout<<"-----------------"<<endl;
-    cout<<"  Bisector 2 : "<<endl;
+    std::cout<<"-----------------"<<std::endl;
+    std::cout<<"  Bisector 2 : "<<std::endl;
     //    (Bisector2->BasisCurve())->Dump(-1,1);
-    cout<<endl;
+    std::cout<<std::endl;
     Debug(Domain2.FirstParameter());
     Debug(Domain2.LastParameter());
-    cout<<"-----------------"<<endl;
+    std::cout<<"-----------------"<<std::endl;
   }
 #endif
 
@@ -1034,10 +1034,10 @@ Standard_Real MAT2d_Tool2d::IntersectBisector (
   
 #ifdef OCCT_DEBUG
   if (Affich) {
-    cout<<"   coordonnees    : "<<GeomPnt  (IntPnt).X()<<" "
-      <<GeomPnt  (IntPnt).Y()<<endl;
-    cout<<"   parametres     : "<<Param1<<" "<<Param2<<endl;
-    cout<<"   distancemini   : "<<DistanceMini<<endl;
+    std::cout<<"   coordonnees    : "<<GeomPnt  (IntPnt).X()<<" "
+      <<GeomPnt  (IntPnt).Y()<<std::endl;
+    std::cout<<"   parametres     : "<<Param1<<" "<<Param2<<std::endl;
+    std::cout<<"   distancemini   : "<<DistanceMini<<std::endl;
   }
 #endif
 
index 732f7b4..5c3b92b 100644 (file)
@@ -80,7 +80,7 @@ void MeshTest_CheckTopology::Perform (Draw_Interpretor& di)
       BRep_Tool::PolygonOnTriangulation(aEdge, aT1, aLoc1);
     if (aPoly1.IsNull() || aT1.IsNull()) {
 #ifdef OCCT_DEBUG
-      cout<<"problem getting PolygonOnTriangulation of edge "<<ie<<endl;
+      std::cout<<"problem getting PolygonOnTriangulation of edge "<<ie<<std::endl;
 #endif
       continue;
     }
@@ -97,7 +97,7 @@ void MeshTest_CheckTopology::Perform (Draw_Interpretor& di)
        BRep_Tool::PolygonOnTriangulation(aEdge, aT2, aLoc2);
       if (aPoly2.IsNull() || aT2.IsNull()) {
 #ifdef OCCT_DEBUG
-       cout<<"problem getting PolygonOnTriangulation of edge "<<ie<<endl;
+       std::cout<<"problem getting PolygonOnTriangulation of edge "<<ie<<std::endl;
 #endif
        continue;
       }
index 8a32609..1118d11 100644 (file)
@@ -42,7 +42,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();
-    cout << "nblink=" << nbLinks << endl;
+    std::cout << "nblink=" << nbLinks << std::endl;
     TCollection_AsciiString aName(theNameStr);
     for (Standard_Integer i = 1; i <= nbLinks; i++)
     {
@@ -83,7 +83,7 @@ Standard_EXPORT const char* MeshTest_DrawTriangles(const char* theNameStr, void*
     if (aMeshData.IsNull())
       return "Null mesh data structure";
     Standard_Integer nbElem = aMeshData->NbElements();
-    cout << "nbelem=" << nbElem << endl;
+    std::cout << "nbelem=" << nbElem << std::endl;
     TCollection_AsciiString aName(theNameStr);
     for (Standard_Integer i = 1; i <= nbElem; i++)
     {
index dafaf1b..f65194a 100644 (file)
@@ -300,7 +300,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()) {
-        cout << "face "<<i<<" has no triangulation"<<endl;
+        std::cout << "face "<<i<<" has no triangulation"<<std::endl;
         continue;
       }
       const Poly_Array1OfTriangle& triangles = aPoly->Triangles();
index 57bb641..e1cf169 100644 (file)
@@ -1063,11 +1063,11 @@ void MeshVS_Mesh::HilightSelected ( const Handle(PrsMgr_PresentationManager3d)&
     Standard_Integer min, hour;
 
     gTimer.Show ( sec, min, hour, cpu );
-    cout << "HilightSelected : " << endl;
-    cout << aSelNodes.Extent() << " nodes " << endl;
-    cout << aSelElements.Extent() << " elements " << endl;
-    cout << "Time : " << sec << " sec" << endl;
-    cout << "CPU time : " << cpu << " sec" << endl << endl;
+    std::cout << "HilightSelected : " << std::endl;
+    std::cout << aSelNodes.Extent() << " nodes " << std::endl;
+    std::cout << aSelElements.Extent() << " elements " << std::endl;
+    std::cout << "Time : " << sec << " sec" << std::endl;
+    std::cout << "CPU time : " << cpu << " sec" << std::endl << std::endl;
     gTimer.Stop();
 #endif
 }
index 72693ce..4be7113 100644 (file)
@@ -48,7 +48,7 @@ public:
   
   //! Defines default messenger for OCCT applications.
   //! This is global static instance of the messenger.
-  //! By default, it contains single printer directed to cout.
+  //! By default, it contains single printer directed to std::cout.
   //! It can be customized according to the application needs.
   Standard_EXPORT static const Handle(Message_Messenger)& DefaultMessenger();
   
index 0779461..76873bd 100644 (file)
@@ -53,7 +53,7 @@ class Message_Messenger : public Standard_Transient
   DEFINE_STANDARD_RTTIEXT(Message_Messenger, Standard_Transient)
 public:
 
-  //! Empty constructor; initializes by single printer directed to cout.
+  //! Empty constructor; initializes by single printer directed to std::cout.
   //! Note: the default messenger is not empty but directed to cout
   //! in order to protect against possibility to forget defining printers.
   //! If printing to cout is not needed, clear messenger by GetPrinters().Clear()
@@ -178,6 +178,13 @@ inline const Handle(Message_Messenger)&
   return pman (theMessenger);
 }
 
+// Message_EndLine
+inline const Handle(Message_Messenger)& Message_EndLine (const Handle(Message_Messenger)& theMessenger)
+{
+  theMessenger->Send ("", Message_Info, Standard_True);
+  return theMessenger;
+}
+
 // endl
 inline const Handle(Message_Messenger)& endl (const Handle(Message_Messenger)& theMessenger)
 {
index b3c7e23..d2ed843 100644 (file)
@@ -39,7 +39,7 @@ Message_PrinterOStream::Message_PrinterOStream (const Message_Gravity theTraceLe
 
 //=======================================================================
 //function : Constructor
-//purpose  : Opening a file as an ostream
+//purpose  : Opening a file as an std::ostream
 //           for specific file names standard streams are created
 //=======================================================================
 Message_PrinterOStream::Message_PrinterOStream (const Standard_CString theFileName,
@@ -115,7 +115,7 @@ void Message_PrinterOStream::Send (const Standard_CString theString,
   if ( theGravity < myTraceLevel || ! myStream ) return;
   Standard_OStream* ostr = (Standard_OStream*)myStream;
   (*ostr) << theString;
-  if ( putEndl ) (*ostr) << endl;
+  if ( putEndl ) (*ostr) << std::endl;
 }
 
 //=======================================================================
index e593f94..3c505c5 100644 (file)
@@ -23,8 +23,8 @@
 class Message_PrinterOStream;
 DEFINE_STANDARD_HANDLE(Message_PrinterOStream, Message_Printer)
 
-//! Implementation of a message printer associated with an ostream
-//! The ostream may be either externally defined one (e.g. cout),
+//! Implementation of a message printer associated with an std::ostream
+//! The std::ostream may be either externally defined one (e.g. std::cout),
 //! or file stream maintained internally (depending on constructor).
 class Message_PrinterOStream : public Message_Printer
 {
index b58a58b..fb7021f 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 << endl;
+  ostr << buff << std::endl;
 }
 
 //=======================================================================
@@ -93,7 +93,7 @@ void MoniTool_Timer::DumpTimers (Standard_OStream &ostr)
 
   Standard_Integer NbTimers = dic.Extent();
 
-  ostr << "DUMP OF TIMERS:" << endl;
+  ostr << "DUMP OF TIMERS:" << std::endl;
   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() ) cerr << "Warning: timer " << stmp << " is running" << endl;
+    if ( Timer(stmp)->IsRunning() ) std::cerr << "Warning: timer " << stmp << " is running" << std::endl;
   }
   delete[] keys;
 }
@@ -194,12 +194,12 @@ void MoniTool_Timer::ComputeAmendments ()
   amAccess   += ( 0.5 * ( cpu3 - cpu1 ) ) / NBTESTS;
   amError     = Abs ( cpu1 + cpu3 - 2 * cpu2 ) / NBTESTS;
   
-  cout << "CPU 0: " << cpu0 << endl;
-  cout << "CPU 1: " << cpu1 << " INTERNAL: " << cput1 << endl;
-  cout << "CPU 2: " << cpu2 << " INTERNAL: " << cput2 << endl;
-  cout << "CPU 3: " << cpu3 << " INTERNAL: " << cput3 << endl;
-  cout << "Access: " << amAccess << ", External: " << amExternal << 
-          ", Internal: " << amInternal << ", Error: " << amError << endl;
+  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 << "Access: " << amAccess << ", External: " << amExternal << 
+          ", Internal: " << amInternal << ", Error: " << amError << std::endl;
   
 }
   
index 34b38cf..d964b76 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<<endl<<"--- Type : "<<Definition()<<endl<<"--- Value : ";
+  S<<Message_EndLine<<"--- Type : "<<Definition()<<Message_EndLine<<"--- Value : ";
 
   PrintValue (S);
-  S<<endl;
+  S<<Message_EndLine;
 
-  if (thesatisf) S<<" -- Specific Function for Satisfies : "<<thesatisn.ToCString()<<endl;
+  if (thesatisf) S<<" -- Specific Function for Satisfies : "<<thesatisn.ToCString()<<Message_EndLine;
 }
 
 
index 7001ae5..60754c5 100644 (file)
@@ -155,7 +155,7 @@ void NCollection_BaseMap::Statistics(Standard_OStream& S) const
     if (sizes[i] > 0) 
     {
       l += sizes[i] * i;
-      S << setw(5) << sizes[i] <<" buckets of size "<<i<<"\n";
+      S << std::setw(5) << sizes[i] <<" buckets of size "<<i<<"\n";
     }
   }
 
index 3171200..401d666 100644 (file)
@@ -93,7 +93,7 @@ template <class TheObjType, class TheBndType> class NCollection_UBTreeFiller
 
   /**
    * Check the filled tree for the total number of items and the balance
-   * outputting these results to ostream.
+   * outputting these results to std::ostream.
    * @return
    *   the tree size (the same value is returned by method Fill()).
    */ 
@@ -107,8 +107,8 @@ template <class TheObjType, class TheBndType> class NCollection_UBTreeFiller
   {
     if (mySeqPtr.Length() > 0)
 #ifdef OCCT_DEBUG_UBTREE
-      cout << "~NCollection_UBTreeFiller: " << Fill()
-           << " objects added to the tree" << endl;
+      std::cout << "~NCollection_UBTreeFiller: " << Fill()
+           << " objects added to the tree" << std::endl;
 #else
       Fill();
 #endif
@@ -181,7 +181,7 @@ Standard_Integer NCollection_UBTreeFiller<TheObjType,TheBndType>::CheckTree
   char buf[128];
   sprintf (buf,  "Checking UBTree:%8d leaves, balance =%7.2f",
            aNumber, aLen1 / aLen0);
-  theStream << buf << endl;
+  theStream << buf << std::endl;
   return aNumber;
 }
 
index edd5189..cca6172 100644 (file)
@@ -44,11 +44,11 @@ static OSD_SysType whereAmI()
 #else
   struct utsname info;
   uname(&info);
-  cout << info.sysname << endl;
-  cout << info.nodename << endl;
-  cout << info.release << endl;
-  cout << info.version << endl;
-  cout << info.machine << endl;
+  std::cout << info.sysname << std::endl;
+  std::cout << info.nodename << std::endl;
+  std::cout << info.release << std::endl;
+  std::cout << info.version << std::endl;
+  std::cout << info.machine << std::endl;
   return OSD_Default;
 #endif
 }
@@ -356,7 +356,7 @@ OSD_Path::OSD_Path(const TCollection_AsciiString& aDependentName,
      break;
   default:
 #ifdef OCCT_DEBUG
-       cout << " WARNING WARNING : OSD Path for an Unknown SYSTEM : " << (Standard_Integer)todo << endl;
+       std::cout << " WARNING WARNING : OSD Path for an Unknown SYSTEM : " << (Standard_Integer)todo << std::endl;
 #endif 
      break ;
  } 
index 0b36bd6..e8bc5d9 100644 (file)
@@ -135,7 +135,7 @@ void OSD_Timer::Restart ()
 
 void OSD_Timer::Show() const
 {
-  Show (cout);
+  Show (std::cout);
 }
 
 //=======================================================================
index 79031e6..1b712de 100644 (file)
@@ -115,59 +115,59 @@ static LONG CallHandler (DWORD dwExceptionCode,
 
   buffer[0] = '\0' ;
 
-// cout << "CallHandler " << dwExceptionCode << endl ;
+// std::cout << "CallHandler " << dwExceptionCode << std::endl ;
   switch ( dwExceptionCode ) {
     case EXCEPTION_FLT_DENORMAL_OPERAND:
-//      cout << "CallHandler : EXCEPTION_FLT_DENORMAL_OPERAND:" << endl ;
+//      std::cout << "CallHandler : EXCEPTION_FLT_DENORMAL_OPERAND:" << std::endl ;
       StringCchCopyW (buffer, _countof(buffer), L"FLT DENORMAL OPERAND");
       flterr = 1 ;
       break ;
     case EXCEPTION_FLT_DIVIDE_BY_ZERO:
-//      cout << "CallHandler : EXCEPTION_FLT_DIVIDE_BY_ZERO:" << endl ;
+//      std::cout << "CallHandler : EXCEPTION_FLT_DIVIDE_BY_ZERO:" << std::endl ;
       StringCchCopyW (buffer, _countof(buffer), L"FLT DIVIDE BY ZERO");
       flterr = 1 ;
       break ;
     case EXCEPTION_FLT_INEXACT_RESULT:
-//      cout << "CallHandler : EXCEPTION_FLT_INEXACT_RESULT:" << endl ;
+//      std::cout << "CallHandler : EXCEPTION_FLT_INEXACT_RESULT:" << std::endl ;
       StringCchCopyW (buffer, _countof(buffer), L"FLT INEXACT RESULT");
       flterr = 1 ;
       break ;
     case EXCEPTION_FLT_INVALID_OPERATION:
-//      cout << "CallHandler : EXCEPTION_FLT_INVALID_OPERATION:" << endl ;
+//      std::cout << "CallHandler : EXCEPTION_FLT_INVALID_OPERATION:" << std::endl ;
       StringCchCopyW (buffer, _countof(buffer), L"FLT INVALID OPERATION");
       flterr = 1 ;
       break ;
     case EXCEPTION_FLT_OVERFLOW:
-//      cout << "CallHandler : EXCEPTION_FLT_OVERFLOW:" << endl ;
+//      std::cout << "CallHandler : EXCEPTION_FLT_OVERFLOW:" << std::endl ;
       StringCchCopyW (buffer, _countof(buffer), L"FLT OVERFLOW");
       flterr = 1 ;
       break ;
     case EXCEPTION_FLT_STACK_CHECK:
-//      cout << "CallHandler : EXCEPTION_FLT_STACK_CHECK:" << endl ;
+//      std::cout << "CallHandler : EXCEPTION_FLT_STACK_CHECK:" << std::endl ;
       StringCchCopyW (buffer, _countof(buffer), L"FLT STACK CHECK");
       flterr = 1 ;
       break ;
     case EXCEPTION_FLT_UNDERFLOW:
-//      cout << "CallHandler : EXCEPTION_FLT_UNDERFLOW:" << endl ;
+//      std::cout << "CallHandler : EXCEPTION_FLT_UNDERFLOW:" << std::endl ;
       StringCchCopyW (buffer, _countof(buffer), L"FLT UNDERFLOW");
       flterr = 1 ;
       break ;
     case STATUS_FLOAT_MULTIPLE_TRAPS:
-//      cout << "CallHandler : EXCEPTION_FLT_UNDERFLOW:" << endl ;
+//      std::cout << "CallHandler : EXCEPTION_FLT_UNDERFLOW:" << std::endl ;
       StringCchCopyW (buffer, _countof(buffer), L"FLT MULTIPLE TRAPS (possible overflow in conversion of double to integer)");
       flterr = 1 ;
       break ;
     case STATUS_FLOAT_MULTIPLE_FAULTS:
-//      cout << "CallHandler : EXCEPTION_FLT_UNDERFLOW:" << endl ;
+//      std::cout << "CallHandler : EXCEPTION_FLT_UNDERFLOW:" << std::endl ;
       StringCchCopyW (buffer, _countof(buffer), L"FLT MULTIPLE FAULTS");
       flterr = 1 ;
       break ;
     case STATUS_NO_MEMORY:
-//      cout << "CallHandler : STATUS_NO_MEMORY:" << endl ;
+//      std::cout << "CallHandler : STATUS_NO_MEMORY:" << std::endl ;
       THROW_OR_JUMP (OSD_Exception_STATUS_NO_MEMORY, "MEMORY ALLOCATION ERROR ( no room in the process heap )");
       break;
     case EXCEPTION_ACCESS_VIOLATION:
-//      cout << "CallHandler : EXCEPTION_ACCESS_VIOLATION:" << endl ;
+//      std::cout << "CallHandler : EXCEPTION_ACCESS_VIOLATION:" << std::endl ;
       StringCchPrintfW (buffer, _countof(buffer), L"%s%s%s0x%.8p%s%s%s", L"ACCESS VIOLATION",
                  fMsgBox ? L"\n" : L" ", L"at address ",
                  ExceptionInformation1 ,
@@ -176,51 +176,51 @@ static LONG CallHandler (DWORD dwExceptionCode,
                  L"' operation");
       break;
     case EXCEPTION_ARRAY_BOUNDS_EXCEEDED:
-//      cout << "CallHandler : EXCEPTION_ARRAY_BOUNDS_EXCEEDED:" << endl ;
+//      std::cout << "CallHandler : EXCEPTION_ARRAY_BOUNDS_EXCEEDED:" << std::endl ;
       StringCchCopyW (buffer, _countof(buffer), L"ARRAY BOUNDS EXCEEDED");
       break;
     case EXCEPTION_DATATYPE_MISALIGNMENT:
-//      cout << "CallHandler : EXCEPTION_DATATYPE_MISALIGNMENT:" << endl ;
+//      std::cout << "CallHandler : EXCEPTION_DATATYPE_MISALIGNMENT:" << std::endl ;
       StringCchCopyW (buffer, _countof(buffer), L"DATATYPE MISALIGNMENT");
       break;
 
     case EXCEPTION_ILLEGAL_INSTRUCTION:
-//      cout << "CallHandler : EXCEPTION_ILLEGAL_INSTRUCTION:" << endl ;
+//      std::cout << "CallHandler : EXCEPTION_ILLEGAL_INSTRUCTION:" << std::endl ;
       StringCchCopyW (buffer, _countof(buffer), L"ILLEGAL INSTRUCTION");
       break;
 
     case EXCEPTION_IN_PAGE_ERROR:
-//      cout << "CallHandler : EXCEPTION_IN_PAGE_ERROR:" << endl ;
+//      std::cout << "CallHandler : EXCEPTION_IN_PAGE_ERROR:" << std::endl ;
       StringCchCopyW (buffer, _countof(buffer), L"IN_PAGE ERROR");
       break;
 
     case EXCEPTION_INT_DIVIDE_BY_ZERO:
-//      cout << "CallHandler : EXCEPTION_INT_DIVIDE_BY_ZERO:" << endl ;
+//      std::cout << "CallHandler : EXCEPTION_INT_DIVIDE_BY_ZERO:" << std::endl ;
       StringCchCopyW (buffer, _countof(buffer), L"INTEGER DIVISION BY ZERO");
       break;
 
     case EXCEPTION_INT_OVERFLOW:
-//      cout << "CallHandler : EXCEPTION_INT_OVERFLOW:" << endl ;
+//      std::cout << "CallHandler : EXCEPTION_INT_OVERFLOW:" << std::endl ;
       StringCchCopyW (buffer, _countof(buffer), L"INTEGER OVERFLOW");
       break;
 
     case EXCEPTION_INVALID_DISPOSITION:
-//      cout << "CallHandler : EXCEPTION_INVALID_DISPOSITION:" << endl ;
+//      std::cout << "CallHandler : EXCEPTION_INVALID_DISPOSITION:" << std::endl ;
       StringCchCopyW (buffer, _countof(buffer), L"INVALID DISPOSITION");
       break;
 
     case EXCEPTION_NONCONTINUABLE_EXCEPTION:
-//      cout << "CallHandler : EXCEPTION_NONCONTINUABLE_EXCEPTION:" << endl ;
+//      std::cout << "CallHandler : EXCEPTION_NONCONTINUABLE_EXCEPTION:" << std::endl ;
       StringCchCopyW (buffer, _countof(buffer), L"NONCONTINUABLE EXCEPTION");
       break;
 
     case EXCEPTION_PRIV_INSTRUCTION:
-//      cout << "CallHandler : EXCEPTION_PRIV_INSTRUCTION:" << endl ;
+//      std::cout << "CallHandler : EXCEPTION_PRIV_INSTRUCTION:" << std::endl ;
       StringCchCopyW (buffer, _countof(buffer), L"PRIVELEGED INSTRUCTION ENCOUNTERED");
       break;
 
     case EXCEPTION_STACK_OVERFLOW:
-//      cout << "CallHandler : EXCEPTION_STACK_OVERFLOW:" << endl ;
+//      std::cout << "CallHandler : EXCEPTION_STACK_OVERFLOW:" << std::endl ;
 #if defined( _MSC_VER ) && ( _MSC_VER >= 1300 ) && !defined(OCCT_UWP)
     // try recovering from stack overflow: available in MS VC++ 7.0
       if (!_resetstkoflw())
@@ -262,7 +262,7 @@ static LONG CallHandler (DWORD dwExceptionCode,
    _fpreset () ;
    _clearfp() ;
    _controlfp ( 0, _OSD_FPX ) ;          // JR add :
-//     cout << "OSD::WntHandler _controlfp( 0, _OSD_FPX ) " << hex << _controlfp(0,0) << dec << endl ;
+//     std::cout << "OSD::WntHandler _controlfp( 0, _OSD_FPX ) " << std::hex << _controlfp(0,0) << std::dec << std::endl ;
   }
 
   char aBufferA[2048];
@@ -282,7 +282,7 @@ static void SIGWntHandler (int signum, int sub_code)
   switch( signum ) {
     case SIGFPE :
       if ( signal( signum , (void(*)(int))SIGWntHandler ) == SIG_ERR )
-        cout << "signal error" << endl ;
+        std::cout << "signal error" << std::endl ;
       switch( sub_code ) {
         case _FPE_INVALID :
           CallHandler( EXCEPTION_FLT_INVALID_OPERATION ,0,0) ;
@@ -303,23 +303,23 @@ static void SIGWntHandler (int signum, int sub_code)
           CallHandler( EXCEPTION_FLT_INEXACT_RESULT ,0,0) ;
           break ;
         default:
-          cout << "SIGWntHandler(default) -> throw Standard_NumericError(\"Floating Point Error\");" << endl;
+          std::cout << "SIGWntHandler(default) -> throw Standard_NumericError(\"Floating Point Error\");" << std::endl;
          THROW_OR_JUMP (Standard_NumericError, "Floating Point Error");
           break ;
       }
       break ;
     case SIGSEGV :
       if ( signal( signum, (void(*)(int))SIGWntHandler ) == SIG_ERR )
-        cout << "signal error" << endl ;
+        std::cout << "signal error" << std::endl ;
       CallHandler( EXCEPTION_ACCESS_VIOLATION ,0,0) ;
       break ;
     case SIGILL :
       if ( signal( signum, (void(*)(int))SIGWntHandler ) == SIG_ERR )
-        cout << "signal error" << endl ;
+        std::cout << "signal error" << std::endl ;
       CallHandler( EXCEPTION_ILLEGAL_INSTRUCTION ,0,0) ;
       break ;
     default:
-      cout << "SIGWntHandler unexpected signal : " << signum << endl ;
+      std::cout << "SIGWntHandler unexpected signal : " << signum << std::endl ;
       break ;
   }
 #ifndef OCCT_UWP
@@ -379,7 +379,7 @@ void OSD::SetSignal (const Standard_Boolean theFloatingSignal)
   TCollection_AsciiString val = env.Value();
   if (!env.Failed())
   {
-    cout << "Environment variable CSF_DEBUG_MODE setted.\n";
+    std::cout << "Environment variable CSF_DEBUG_MODE setted.\n";
     fMsgBox = Standard_True;
   }
   else
@@ -397,11 +397,11 @@ void OSD::SetSignal (const Standard_Boolean theFloatingSignal)
   // Signal handlers will only be used when the method ::raise() will be used
   // Handlers must be set for every thread
   if (signal (SIGSEGV, (void(*)(int))SIGWntHandler) == SIG_ERR)
-    cout << "signal(OSD::SetSignal) error\n";
+    std::cout << "signal(OSD::SetSignal) error\n";
   if (signal (SIGFPE,  (void(*)(int))SIGWntHandler) == SIG_ERR)
-    cout << "signal(OSD::SetSignal) error\n";
+    std::cout << "signal(OSD::SetSignal) error\n";
   if (signal (SIGILL,  (void(*)(int))SIGWntHandler) == SIG_ERR)
-    cout << "signal(OSD::SetSignal) error\n";
+    std::cout << "signal(OSD::SetSignal) error\n";
 
   // Set Ctrl-C and Ctrl-Break handler
   fCtrlBrk = Standard_False;
@@ -562,40 +562,40 @@ LONG _osd_debug ( void ) {
       si.cb      = sizeof ( STARTUPINFO );
       si.dwFlags = STARTF_FORCEONFEEDBACK;
 
-  //   cout << "_osd_debug -> CreateProcess" << endl ;
+  //   std::cout << "_osd_debug -> CreateProcess" << std::endl ;
       if (  !CreateProcess (
               NULL, cmdLine, NULL, NULL, TRUE, CREATE_DEFAULT_ERROR_MODE,
               NULL, NULL, &si, &pi
              )
       ) __leave;
 
-  //   cout << "_osd_debug -> WaitForSingleObject " << endl ;
+  //   std::cout << "_osd_debug -> WaitForSingleObject " << std::endl ;
       WaitForSingleObject ( hEvent, INFINITE );
-  //   cout << "_osd_debug <- WaitForSingleObject -> CloseHandle " << endl ;
+  //   std::cout << "_osd_debug <- WaitForSingleObject -> CloseHandle " << std::endl ;
 
       CloseHandle ( pi.hProcess );
       CloseHandle ( pi.hThread  );
 
-  //   cout << "_osd_debug fDbgLoaded  " << endl ;
+  //   std::cout << "_osd_debug fDbgLoaded  " << std::endl ;
       fDbgLoaded = TRUE;
 
     }  // end __try
 
     __finally {
 
-//   cout << "_osd_debug -> CloseHandle(hKey) " << endl ;
+//   std::cout << "_osd_debug -> CloseHandle(hKey) " << std::endl ;
       if ( hKey   != INVALID_HANDLE_VALUE ) CloseHandle ( hKey   );
-//   cout << "_osd_debug -> CloseHandle(hEvent) " << endl ;
+//   std::cout << "_osd_debug -> CloseHandle(hEvent) " << std::endl ;
       if ( hEvent != INVALID_HANDLE_VALUE ) CloseHandle ( hEvent );
-//   cout << "_osd_debug end __finally " << endl ;
+//   std::cout << "_osd_debug end __finally " << std::endl ;
 
     }  // end __finally
 
   }  /* end if */
 
   action = fDbgLoaded ? EXCEPTION_CONTINUE_EXECUTION : EXCEPTION_EXECUTE_HANDLER;
-// cout << "_osd_debug return " << action << " EXCEPTION_CONTINUE_EXECUTION("
-//      << EXCEPTION_CONTINUE_EXECUTION << ")" << endl ;
+// std::cout << "_osd_debug return " << action << " EXCEPTION_CONTINUE_EXECUTION("
+//      << EXCEPTION_CONTINUE_EXECUTION << ")" << std::endl ;
   return action ;
 
 }  // end _osd_debug
@@ -686,14 +686,14 @@ static void Handler (const int theSignal)
   struct sigaction oldact, act;
   // re-install the signal
   if ( ! sigaction (theSignal, NULL, &oldact) ) {
-    // cout << " signal is " << theSignal << " handler is " <<  oldact.sa_handler << endl;
+    // std::cout << " signal is " << theSignal << " handler is " <<  oldact.sa_handler << std::endl;
     if (sigaction (theSignal, &oldact, &act)) perror ("sigaction");
   }
   else {
     perror ("sigaction");
   }
 
-  // cout << "OSD::Handler: signal " << (int) theSignal << " occured inside a try block " <<  endl ;
+  // std::cout << "OSD::Handler: signal " << (int) theSignal << " occured inside a try block " <<  std::endl ;
   if ( ADR_ACT_SIGIO_HANDLER != NULL )
     (*ADR_ACT_SIGIO_HANDLER)() ;
 #ifdef __linux__
@@ -796,7 +796,7 @@ static void Handler (const int theSignal)
 #endif
   default:
 #ifdef OCCT_DEBUG
-    cout << "Unexpected signal " << theSignal << endl ;
+    std::cout << "Unexpected signal " << theSignal << std::endl ;
 #endif
     break;
   }
@@ -819,7 +819,7 @@ static void SegvHandler(const int theSignal,
     feenableexcept (FE_INVALID | FE_DIVBYZERO | FE_OVERFLOW);
     //feenableexcept (FE_INVALID | FE_DIVBYZERO);
 #endif
-//  cout << "OSD::SegvHandler activated(SA_SIGINFO)" << endl ;
+//  std::cout << "OSD::SegvHandler activated(SA_SIGINFO)" << std::endl ;
   if ( ip != NULL ) {
      sigset_t set;
      sigemptyset(&set);
@@ -835,7 +835,7 @@ static void SegvHandler(const int theSignal,
   }
 #ifdef OCCT_DEBUG
   else {
-    cout << "Wrong undefined address." << endl ;
+    std::cout << "Wrong undefined address." << std::endl ;
   }
 #endif
   exit(SIGSEGV);
@@ -856,7 +856,7 @@ static void SegvHandler(const int theSignal,
   if ( theContext != NULL ) {
     Space = ((struct sigcontext *)theContext)->sc_sl.sl_ss.ss_cr20 ;
     Offset = ((struct sigcontext *)theContext)->sc_sl.sl_ss.ss_cr21 ;
-//    cout << "Wrong address = " << hex(Offset) << endl ;
+//    std::cout << "Wrong address = " << hex(Offset) << std::endl ;
     {
       sprintf(Msg,"SIGSEGV 'segmentation violation' detected. Address %lx",Offset) ;
       OSD_SIGSEGV::Jump(Msg);
@@ -866,7 +866,7 @@ static void SegvHandler(const int theSignal,
   }
 #ifdef OCCT_DEBUG
   else {
-    cout << "Wrong undefined address." << endl ;
+    std::cout << "Wrong undefined address." << std::endl ;
   }
 #endif
   exit(SIGSEGV);
@@ -897,7 +897,7 @@ void OSD::SetSignal(const Standard_Boolean aFloatingSignal)
 
     if (stat) {
 #ifdef OCCT_DEBUG
-      cerr << "ieee_handler does not work !!! KO " << endl;
+      std::cerr << "ieee_handler does not work !!! KO " << std::endl;
 #endif
     }
 #elif defined (__linux__)
@@ -917,9 +917,9 @@ void OSD::SetSignal(const Standard_Boolean aFloatingSignal)
  char *TRAP_FPE = getenv("TRAP_FPE") ;
  if ( TRAP_FPE == NULL ) {
 #ifdef OCCT_DEBUG
-   cout << "On SGI you must set TRAP_FPE environment variable : " << endl ;
-   cout << "set env(TRAP_FPE) \"UNDERFL=FLUSH_ZERO;OVERFL=DEFAULT;DIVZERO=DEFAULT;INT_OVERFL=DEFAULT\" or" << endl ;
-   cout << "setenv TRAP_FPE \"UNDERFL=FLUSH_ZERO;OVERFL=DEFAULT;DIVZERO=DEFAULT;INT_OVERFL=DEFAULT\"" << endl ;
+   std::cout << "On SGI you must set TRAP_FPE environment variable : " << std::endl ;
+   std::cout << "set env(TRAP_FPE) \"UNDERFL=FLUSH_ZERO;OVERFL=DEFAULT;DIVZERO=DEFAULT;INT_OVERFL=DEFAULT\" or" << std::endl ;
+   std::cout << "setenv TRAP_FPE \"UNDERFL=FLUSH_ZERO;OVERFL=DEFAULT;DIVZERO=DEFAULT;INT_OVERFL=DEFAULT\"" << std::endl ;
 #endif
  }
 #endif
@@ -944,7 +944,7 @@ void OSD::SetSignal(const Standard_Boolean aFloatingSignal)
   stat = sigaction(SIGFPE,&act,&oact);   // ...... floating point exception
   if (stat) {
 #ifdef OCCT_DEBUG
-     cerr << "sigaction does not work !!! KO " << endl;
+     std::cerr << "sigaction does not work !!! KO " << std::endl;
 #endif
      perror("sigaction ");
   }
index 9f900fe..7f1cf49 100644 (file)
@@ -29,8 +29,6 @@
 #include "../Shaders/Shaders_RaytraceSmooth_fs.pxx"
 #include "../Shaders/Shaders_Display_fs.pxx"
 
-using namespace OpenGl_Raytrace;
-
 //! Use this macro to output ray-tracing debug info
 // #define RAY_TRACE_PRINT_INFO
 
index cb23cb2..c47b436 100644 (file)
@@ -252,7 +252,7 @@ Standard_Integer PCDM_ReadWriter_1::ReadReferenceCounter(const TCollection_Exten
       if(refUserInfo(i).Search(REFERENCE_COUNTER) != -1) {
        try { OCC_CATCH_SIGNALS theReferencesCounter=refUserInfo(i).Token(" ",2).IntegerValue();}
     catch (Standard_Failure const&) {
-//       cout << "warning: could not read the reference counter in " << aFileName << endl;
+//       std::cout << "warning: could not read the reference counter in " << aFileName << std::endl;
          TCollection_ExtendedString aMsg("Warning: ");
          aMsg = aMsg.Cat("could not read the reference counter in ").Cat(aFileName).Cat("\0");
          if(!theMsgDriver.IsNull()) 
@@ -305,7 +305,7 @@ void PCDM_ReadWriter_1::ReadReferences(const TCollection_ExtendedString& aFileNa
        if(!theAbsolutePath.IsEmpty()) thePath=theAbsolutePath;
       }
       if(!theMsgDriver.IsNull()) {
-//      cout << "reference found; ReferenceIdentifier: " << theReferenceIdentifier << "; File:" << thePath << ", version:" << theDocumentVersion;
+//      std::cout << "reference found; ReferenceIdentifier: " << theReferenceIdentifier << "; File:" << thePath << ", version:" << theDocumentVersion;
        TCollection_ExtendedString aMsg("Warning: ");
        aMsg = aMsg.Cat("reference found; ReferenceIdentifier:  ").Cat(theReferenceIdentifier).Cat("; File:").Cat(thePath).Cat(", version:").Cat(theDocumentVersion).Cat("\0");
        theMsgDriver->Send(aMsg.ToExtString());
@@ -401,7 +401,7 @@ Standard_Integer PCDM_ReadWriter_1::ReadDocumentVersion(const TCollection_Extend
       if(refUserInfo(i).Search(MODIFICATION_COUNTER) != -1) {
        try { OCC_CATCH_SIGNALS theVersion=refUserInfo(i).Token(" ",2).IntegerValue();}
     catch (Standard_Failure const&) {
-//       cout << "warning: could not read the version in " << aFileName << endl;
+//       std::cout << "warning: could not read the version in " << aFileName << std::endl;
          TCollection_ExtendedString aMsg("Warning: ");
          aMsg = aMsg.Cat("could not read the version in ").Cat(aFileName).Cat("\0");
          if(!theMsgDriver.IsNull()) 
index d67c4f8..4016a70 100644 (file)
@@ -1791,10 +1791,10 @@ Standard_Boolean PLib::HermiteInterpolate
   //  If FirstOrder=LastOrder=0 then 2,3,5,6th rows and 3,4,5,6th columns are missing
 
   math_Gauss Equations(A);
-  //  cout << "A=" << A << endl;
+  //  std::cout << "A=" << A << std::endl;
 
   for (Standard_Integer idim=1; idim<=Dimension; idim++) {
-    //  cout << "idim=" << idim << endl;
+    //  std::cout << "idim=" << idim << std::endl;
 
     math_Vector B(0,FirstOrder+LastOrder+1);
     Standard_Integer icol ;
@@ -1803,11 +1803,11 @@ Standard_Boolean PLib::HermiteInterpolate
 
     for (icol=0; icol<=LastOrder; icol++) 
       B(FirstOrder+1+icol) = LastConstr(idim,icol);
-    //  cout << "B=" << B << endl;
+    //  std::cout << "B=" << B << std::endl;
 
     //  The solving of equations system A * X = B. Then B = X
     Equations.Solve(B);         
-    //  cout << "After Solving" << endl << "B=" << B << endl;
+    //  std::cout << "After Solving" << std::endl << "B=" << B << std::endl;
 
     if (Equations.IsDone()==Standard_False) return Standard_False;
     
index 04b7f59..b478296 100644 (file)
@@ -49,9 +49,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() << endl;
+      aMsg << theResource.ToCString() << std::endl;
       if (theVerbose)
-        cout << "could not find the resource:" << theResource.ToCString() << endl;
+        std::cout << "could not find the resource:" << theResource.ToCString() << std::endl;
       throw Plugin_Failure(aMsg.str().c_str());
     }
     
@@ -77,7 +77,7 @@ Handle(Standard_Transient) Plugin::Load (const Standard_GUID& aGUID,
       aMsg << "; reason:";
       aMsg << error.ToCString();
       if (theVerbose)
-        cout << "could not open: "  << PluginResource->Value(theResource.ToCString())<< " ; reason: "<< error.ToCString() << endl;
+        std::cout << "could not open: "  << PluginResource->Value(theResource.ToCString())<< " ; reason: "<< error.ToCString() << std::endl;
       throw Plugin_Failure(aMsg.str().c_str());
     }
     f = theSharedLibrary.DlSymb("PLUGINFACTORY");
index 06272fa..179a657 100644 (file)
@@ -98,8 +98,8 @@ void Poly::Write(const Handle(Poly_Triangulation)& T,
     OS << ((T->HasUVNodes()) ? "1" : "0") << "\n";
   }
   else {
-    OS << setw(8) << T->NbNodes() << " Nodes\n";
-    OS << setw(8) << T->NbTriangles() << " Triangles\n";
+    OS << std::setw(8) << T->NbNodes() << " Nodes\n";
+    OS << std::setw(8) << T->NbTriangles() << " Triangles\n";
     OS << ((T->HasUVNodes()) ? "with" : "without") << " UV nodes\n";
   }
 
@@ -115,12 +115,12 @@ void Poly::Write(const Handle(Poly_Triangulation)& T,
   Standard_Integer i, nbNodes = T->NbNodes();
   const TColgp_Array1OfPnt& Nodes = T->Nodes();
   for (i = 1; i <= nbNodes; i++) {
-    if (!Compact) OS << setw(10) << i << " : ";
-    if (!Compact) OS << setw(17);
+    if (!Compact) OS << std::setw(10) << i << " : ";
+    if (!Compact) OS << std::setw(17);
     OS << Nodes(i).X() << " ";
-    if (!Compact) OS << setw(17);
+    if (!Compact) OS << std::setw(17);
     OS << Nodes(i).Y() << " ";
-    if (!Compact) OS << setw(17);
+    if (!Compact) OS << std::setw(17);
     OS << Nodes(i).Z() << "\n";
   }
 
@@ -128,10 +128,10 @@ void Poly::Write(const Handle(Poly_Triangulation)& T,
     if (!Compact) OS << "\nUV Nodes :\n";
     const TColgp_Array1OfPnt2d& UVNodes = T->UVNodes();
     for (i = 1; i <= nbNodes; i++) {
-      if (!Compact) OS << setw(10) << i << " : ";
-    if (!Compact) OS << setw(17);
+      if (!Compact) OS << std::setw(10) << i << " : ";
+    if (!Compact) OS << std::setw(17);
       OS << UVNodes(i).X() << " ";
-    if (!Compact) OS << setw(17);
+    if (!Compact) OS << std::setw(17);
       OS << UVNodes(i).Y() << "\n";
     }
   }
@@ -141,13 +141,13 @@ void Poly::Write(const Handle(Poly_Triangulation)& T,
   Standard_Integer n1, n2, n3;
   const Poly_Array1OfTriangle& Triangles = T->Triangles();
   for (i = 1; i <= nbTriangles; i++) {
-    if (!Compact) OS << setw(10) << i << " : ";
+    if (!Compact) OS << std::setw(10) << i << " : ";
     Triangles(i).Get(n1, n2, n3);
-    if (!Compact) OS << setw(10);
+    if (!Compact) OS << std::setw(10);
     OS << n1 << " ";
-    if (!Compact) OS << setw(10);
+    if (!Compact) OS << std::setw(10);
     OS << n2 << " ";
-    if (!Compact) OS << setw(10);
+    if (!Compact) OS << std::setw(10);
     OS << n3 << "\n";
   }
 
@@ -168,7 +168,7 @@ void Poly::Write(const Handle(Poly_Polygon3D)& P,
     OS << ((P->HasParameters()) ? "1" : "0") << "\n";
   }
   else {
-    OS << setw(8) << P->NbNodes() << " Nodes\n";
+    OS << std::setw(8) << P->NbNodes() << " Nodes\n";
     OS << ((P->HasParameters()) ? "with" : "without") << " parameters\n";
   }
 
@@ -184,12 +184,12 @@ void Poly::Write(const Handle(Poly_Polygon3D)& P,
   Standard_Integer i, nbNodes = P->NbNodes();
   const TColgp_Array1OfPnt& Nodes = P->Nodes();
   for (i = 1; i <= nbNodes; i++) {
-    if (!Compact) OS << setw(10) << i << " : ";
-    if (!Compact) OS << setw(17);
+    if (!Compact) OS << std::setw(10) << i << " : ";
+    if (!Compact) OS << std::setw(17);
     OS << Nodes(i).X() << " ";
-    if (!Compact) OS << setw(17);
+    if (!Compact) OS << std::setw(17);
     OS << Nodes(i).Y() << " ";
-    if (!Compact) OS << setw(17);
+    if (!Compact) OS << std::setw(17);
     OS << Nodes(i).Z() << "\n";
   }
 
@@ -220,7 +220,7 @@ void Poly::Write(const Handle(Poly_Polygon2D)& P,
     OS << P->NbNodes() << " ";
   }
   else {
-    OS << setw(8) << P->NbNodes() << " Nodes\n";
+    OS << std::setw(8) << P->NbNodes() << " Nodes\n";
   }
 
   // write the deflection
@@ -235,10 +235,10 @@ void Poly::Write(const Handle(Poly_Polygon2D)& P,
   Standard_Integer i, nbNodes = P->NbNodes();
   const TColgp_Array1OfPnt2d& Nodes = P->Nodes();
   for (i = 1; i <= nbNodes; i++) {
-    if (!Compact) OS << setw(10) << i << " : ";
-    if (!Compact) OS << setw(17);
+    if (!Compact) OS << std::setw(10) << i << " : ";
+    if (!Compact) OS << std::setw(17);
     OS << Nodes(i).X() << " ";
-    if (!Compact) OS << setw(17);
+    if (!Compact) OS << std::setw(17);
     OS << Nodes(i).Y() << "\n";
   }
 }
@@ -291,7 +291,7 @@ Handle(Poly_Triangulation) Poly::ReadTriangulation(Standard_IStream& IS)
   IS >> line;
   if (strcmp(line,"Poly_Triangulation")) {
 #ifdef OCCT_DEBUG
-    cout << "Not a Triangulation in the file" << endl;
+    std::cout << "Not a Triangulation in the file" << std::endl;
 #endif
     return Handle(Poly_Triangulation)();
   }
@@ -357,7 +357,7 @@ Handle(Poly_Polygon3D) Poly::ReadPolygon3D(Standard_IStream& IS)
   IS >> line;
   if (strcmp(line,"Poly_Polygon3D")) {
 #ifdef OCCT_DEBUG
-    cout << "Not a Polygon3D in the file" << endl;
+    std::cout << "Not a Polygon3D in the file" << std::endl;
 #endif
     return Handle(Poly_Polygon3D)();
   }
@@ -412,7 +412,7 @@ Handle(Poly_Polygon2D) Poly::ReadPolygon2D(Standard_IStream& IS)
   IS >> line;
   if (strcmp(line,"Poly_Polygon2D")) {
 #ifdef OCCT_DEBUG
-    cout << "Not a Polygon2D in the file" << endl;
+    std::cout << "Not a Polygon2D in the file" << std::endl;
 #endif
     return Handle(Poly_Polygon2D)();
   }
index 73e716e..d842656 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 << endl;
+  theStream << buf << std::endl;
   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 << endl;
+    theStream << buf << std::endl;
   }
 }
index c9701bc..a235a69 100644 (file)
@@ -178,10 +178,10 @@ Standard_Integer Poly_MakeLoops::Perform()
       if (aStartNumber > 1)
         if (doDebug)
         {
-          cout << "--- found contour with hanging links:" << endl;
+          std::cout << "--- found contour with hanging links:" << std::endl;
           for (i = 1; i <= aContour.Extent(); i++)
-            cout << " " << aContour(i);
-          cout << endl;
+            std::cout << " " << aContour(i);
+          std::cout << std::endl;
         }
 #endif
       if (aStartNumber == 0)
@@ -223,8 +223,8 @@ Standard_Integer Poly_MakeLoops::Perform()
   }
 #ifdef OCCT_DEBUG
   if (doDebug && nbLoopsOnPass2)
-    cout << "MakeLoops: " << nbLoopsOnPass2
-      << " contours accepted on the second pass" << endl;
+    std::cout << "MakeLoops: " << nbLoopsOnPass2
+      << " contours accepted on the second pass" << std::endl;
 #endif
 
   if (!myLoops.IsEmpty())
@@ -545,13 +545,13 @@ void Poly_MakeLoops::showBoundaryBreaks() const
       if (isFirst)
       {
         isFirst = Standard_False;
-        cout << "boundary breaks are found in the following nodes:" << endl;
+        std::cout << "boundary breaks are found in the following nodes:" << std::endl;
       }
-      cout << aNode << " ";
+      std::cout << aNode << " ";
     }
   }
   if (!isFirst)
-    cout << endl;
+    std::cout << std::endl;
 }
 #endif
 
index c8a38d8..919db15 100644 (file)
@@ -805,7 +805,7 @@ void ProjLib_CompProjectedCurve::Init()
             myTolU, myTolV, myCurve, mySurface)) 
           {
 #ifdef OCCT_DEBUG
-            cout<<"There is a problem with ExactBound computation"<<endl;
+            std::cout<<"There is a problem with ExactBound computation"<<std::endl;
 #endif
             DichExactBound(Triple, t - Step, Tol, myTolU, myTolV, 
               myCurve, mySurface);
@@ -879,7 +879,7 @@ void ProjLib_CompProjectedCurve::Init()
             myCurve, mySurface)) 
           {
 #ifdef OCCT_DEBUG
-            cout<<"There is a problem with ExactBound computation"<<endl;
+            std::cout<<"There is a problem with ExactBound computation"<<std::endl;
 #endif
             DichExactBound(Triple, t, Tol, myTolU, myTolV, 
               myCurve, mySurface);
@@ -1548,7 +1548,7 @@ void ProjLib_CompProjectedCurve::BuildIntervals(const GeomAbs_Shape S) const
   TColStd_SequenceOfReal TUdisc;
 
   for(k = 2; k <= NbIntSurU; k++) {
-    //    cout<<"CutPntsU("<<k<<") = "<<CutPntsU(k)<<endl;
+    //    std::cout<<"CutPntsU("<<k<<") = "<<CutPntsU(k)<<std::endl;
     for(i = 1; i <= myNbCurves; i++)
     {
       for(j = 1; j < mySequence->Value(i)->Length(); j++)
@@ -1616,7 +1616,7 @@ void ProjLib_CompProjectedCurve::BuildIntervals(const GeomAbs_Shape S) const
   {
     for(i = 1; i <= myNbCurves; i++)
     {
-      //      cout<<"CutPntsV("<<k<<") = "<<CutPntsV(k)<<endl;
+      //      std::cout<<"CutPntsV("<<k<<") = "<<CutPntsV(k)<<std::endl;
       for(j = 1; j < mySequence->Value(i)->Length(); j++) {
 
         Vl = mySequence->Value(i)->Value(j).Z();
index e71fe84..cdf6442 100644 (file)
@@ -1105,8 +1105,8 @@ void ProjLib_ComputeApprox::Perform
     //  for ( Standard_Integer i = 1; i <= Nb+1; i++) {
     //   U = U1 + (i-1)*dU;
     //   Poles(i) = F.Value(U);
-    //   cout << "i = " << i << ": U = " << U << 
-    //      ", p(" << Poles(i).X() << ", " << Poles(i).Y() << ");" << endl;
+    //   std::cout << "i = " << i << ": U = " << U << 
+    //      ", p(" << Poles(i).X() << ", " << Poles(i).Y() << ");" << std::endl;
     //   Knots(i) = i;
     //   Mults(i) = 1;
     //  }
index 14a5f98..bc17381 100644 (file)
@@ -1984,7 +1984,7 @@ Handle(Geom2d_BSplineCurve)
     }
 #ifdef OCCT_DEBUG
     if (!OK) {
-      cout << "ProjLib_ComputeApproxOnPolarSurface : Smoothing echoue"<<endl;
+      std::cout << "ProjLib_ComputeApproxOnPolarSurface : Smoothing echoue"<<std::endl;
     }
 #endif 
     return Dummy;
index 68fc43e..24291af 100644 (file)
@@ -111,11 +111,11 @@ ProjLib_PrjFunc::ProjLib_PrjFunc(const Adaptor3d_CurvePtr & C,const Standard_Rea
     D(2, 2) = (DS1_v*DS1_u + V*DS2_uv)*myNorm;// dE2/du
   }
 
-/*  cout<<"F = ("<<F(1)<<", "<<F(2)<<")"<<endl;
-  cout<<"dE1/dt = "<<D(1,1)<<endl;
-  cout<<"dE1/dv = "<<D(1,2)<<endl;
-  cout<<"dE2/dt = "<<D(2,1)<<endl;
-  cout<<"dE2/dv = "<<D(2,2)<<endl;
+/*  std::cout<<"F = ("<<F(1)<<", "<<F(2)<<")"<<std::endl;
+  std::cout<<"dE1/dt = "<<D(1,1)<<std::endl;
+  std::cout<<"dE1/dv = "<<D(1,2)<<std::endl;
+  std::cout<<"dE2/dt = "<<D(2,1)<<std::endl;
+  std::cout<<"dE2/dv = "<<D(2,2)<<std::endl;
 */
 
 
index 667302d..fb37866 100644 (file)
@@ -53,7 +53,7 @@ static gp_Pnt OnSurface_Value(const Standard_Real U,
     }
   }
   if ( Index == 0 ) {
-    cout << " Extrema non trouve pour U = " << U << endl;
+    std::cout << " Extrema non trouve pour U = " << U << std::endl;
     return gp_Pnt(0.,0.,0.);
   }
   else {
index e4c097e..bce0b3b 100644 (file)
@@ -148,18 +148,18 @@ static Standard_Integer OCC73_SelectionMode (Draw_Interpretor& di, Standard_Inte
   }
 
   Handle(TDocStd_Document) D;
-  //cout << "OCC73_SelectionMode  1" << endl;
+  //std::cout << "OCC73_SelectionMode  1" << std::endl;
   if (!DDocStd::GetDocument(argv[1],D)) return 1;  
   TDF_Label L;
-  //cout << "OCC73_SelectionMode  2" << endl;
+  //std::cout << "OCC73_SelectionMode  2" << std::endl;
   if (!DDF::FindLabel(D->GetData(),argv[2],L)) return 1;  
 
   Handle(TPrsStd_AISViewer) viewer;
-  //cout << "OCC73_SelectionMode  3" << endl;
+  //std::cout << "OCC73_SelectionMode  3" << std::endl;
   if( !TPrsStd_AISViewer::Find(L, viewer) ) return 1;  
 
   Handle(TPrsStd_AISPresentation) prs;
-  //cout << "OCC73_SelectionMode  4" << endl;
+  //std::cout << "OCC73_SelectionMode  4" << std::endl;
   if(L.FindAttribute( TPrsStd_AISPresentation::GetID(), prs) ) {   
     if( argc == 4 ) {
       prs->SetSelectionMode((Standard_Integer)Draw::Atoi(argv[3]));
@@ -167,11 +167,11 @@ static Standard_Integer OCC73_SelectionMode (Draw_Interpretor& di, Standard_Inte
     }
     else {
       Standard_Integer SelectionMode = prs->SelectionMode();
-      //cout << "SelectionMode = " << SelectionMode << endl;
+      //std::cout << "SelectionMode = " << SelectionMode << std::endl;
       di<<SelectionMode;
     }
   }
-  //cout << "OCC73_SelectionMode  5" << endl;
+  //std::cout << "OCC73_SelectionMode  5" << std::endl;
 
   return 0;
 }
index b74bb22..a05b613 100644 (file)
@@ -150,7 +150,7 @@ static Standard_Integer OCC426 (Draw_Interpretor& di, Standard_Integer argc, con
   di << "Adding Edges ..... \n";
   for(int i = 1; i <= edgemap.Extent(); i++)
     {
-      // cout << "Adding Edge : " << i << endl;
+      // std::cout << "Adding Edge : " << i << std::endl;
       TopoDS_Edge edg = TopoDS::Edge( edgemap.FindKey(i) );
       if(!edg.IsNull()) blend.Add(1, edg);
     }
@@ -372,9 +372,9 @@ static Standard_Integer OCC712 (Draw_Interpretor& di, Standard_Integer argc, con
                 }
             }
 
-         di << "All Faces added. Building... \n"; //cout.flush();
+         di << "All Faces added. Building... \n"; //std::cout.flush();
          draftSlab.Build();
-         di << "Build done...\n"; //cout.flush();
+         di << "Build done...\n"; //std::cout.flush();
          if (!draftSlab.IsDone())  //--------------> STEP:1
             {
              di << " Error in Build \n";
@@ -1017,13 +1017,13 @@ static Standard_Integer OCC828 (Draw_Interpretor& di,Standard_Integer argc, cons
         }
       if (index < argc) DBRep::Set(argv[index++], slab.Shape());
 
-//       cout << "Slab Successfully Created !   Now Blending ..." << endl;
+//       std::cout << "Slab Successfully Created !   Now Blending ..." << std::endl;
 //       TopoDS_Shape aShape;
 //       int ret = performBlend(slab.Shape(), radius, aShape);
 //       if (ret) return 1;
 //       if (index < argc) DBRep::Set(argv[index++], aShape);
 
-//       cout << "Blending Successfully Done !   Now Triangulating ..." << endl;
+//       std::cout << "Blending Successfully Done !   Now Triangulating ..." << std::endl;
 //       performTriangulation(aShape);
     }
   catch ( Standard_Failure const& )
index 3b44114..1e97855 100644 (file)
@@ -1296,15 +1296,15 @@ static Standard_Integer OCC524 (Draw_Interpretor& di, Standard_Integer argc, con
   math_Vector Vector(LowerVector, UpperVector, InitialValueVector);
   math_Matrix Matrix(LowerRowMatrix, UpperRowMatrix, LowerColMatrix, UpperColMatrix, InitialValueMatrix);
 
-  //Vector.Dump(cout);
-  //cout<<endl;
+  //Vector.Dump(std::cout);
+  //std::cout<<std::endl;
 
-  //Matrix.Dump(cout);
-  //cout<<endl;
+  //Matrix.Dump(std::cout);
+  //std::cout<<std::endl;
 
   Vector1.Multiply(Vector, Matrix);
 
-  //Vector1.Dump(cout);
+  //Vector1.Dump(std::cout);
   Standard_SStream aSStream1;
   Vector1.Dump(aSStream1);
   di << aSStream1;
@@ -1315,7 +1315,7 @@ static Standard_Integer OCC524 (Draw_Interpretor& di, Standard_Integer argc, con
   }
   Vector2.TMultiply(Vector, Matrix);
 
-  //Vector2.Dump(cout);
+  //Vector2.Dump(std::cout);
   Standard_SStream aSStream2;
   Vector2.Dump(aSStream2);
   di << aSStream2;
@@ -1452,7 +1452,7 @@ static Standard_Integer OCC669 (Draw_Interpretor& di, Standard_Integer argc, con
     return -1;
   }
   Standard_GUID guid(argv[1]);
-  //guid.ShallowDump(cout);
+  //guid.ShallowDump(std::cout);
   Standard_SStream aSStream;
   guid.ShallowDump(aSStream);
   di << aSStream;
@@ -1472,7 +1472,7 @@ static Standard_Integer OCC738_ShapeRef (Draw_Interpretor& di, Standard_Integer
     return -1;
   }
   const Standard_GUID& guid = XCAFDoc::ShapeRefGUID ();
-  //guid.ShallowDump(cout);
+  //guid.ShallowDump(std::cout);
   Standard_SStream aSStream;
   guid.ShallowDump(aSStream);
   di << aSStream;
@@ -1490,7 +1490,7 @@ static Standard_Integer OCC738_Assembly (Draw_Interpretor& di, Standard_Integer
     return -1;
   }
   const Standard_GUID& guid = XCAFDoc::AssemblyGUID ();
-  //guid.ShallowDump(cout);
+  //guid.ShallowDump(std::cout);
   Standard_SStream aSStream;
   guid.ShallowDump(aSStream);
   di << aSStream;
@@ -1510,7 +1510,7 @@ static Standard_Integer OCC739_DrawPresentation (Draw_Interpretor& di, Standard_
     return -1;
   }
   const Standard_GUID& guid = DDataStd_DrawPresentation::GetID() ;
-  //guid.ShallowDump(cout);
+  //guid.ShallowDump(std::cout);
   Standard_SStream aSStream;
   guid.ShallowDump(aSStream);
   di << aSStream;
@@ -1576,7 +1576,7 @@ static Standard_Integer OCC670 (Draw_Interpretor& di, Standard_Integer argc, con
   }
   catch (Standard_Failure const& anException) {
     std::cout << "Caught successfully: ";
-    std::cout << anException << endl;
+    std::cout << anException << std::endl;
   }
   return 0;
 }
@@ -2137,7 +2137,7 @@ static Standard_Integer OCC6046 (Draw_Interpretor& di, Standard_Integer argc, co
     pv[i] = new math_Vector (1, sz, val);
     if ((i % (nb/10)) == 0) {
       di<<" "<<i;
-      //cout.flush();
+      //std::cout.flush();
       di<<"\n";
     }
   }
@@ -2147,7 +2147,7 @@ static Standard_Integer OCC6046 (Draw_Interpretor& di, Standard_Integer argc, co
     delete pv[i];
     if ((i % (nb/10)) == 0) {
       di<<" "<<i;
-      //cout.flush();
+      //std::cout.flush();
       di<<"\n";
     }
   }
@@ -2184,7 +2184,7 @@ static Standard_Integer OCC5698 (Draw_Interpretor& di, Standard_Integer argc, co
   // check that points are coinsiding
   Standard_Real error_dist = pnt.Distance(check_pnt);
   if (error_dist > Precision::Confusion()) {
-    //cout.precision(3);
+    //std::cout.precision(3);
     di<<"error_dist = "<<error_dist<<
       "  ( "<<error_dist/need_length*100<<" %)\n";
     return 0;
@@ -2213,7 +2213,7 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
 {
   if (argc != 1)
     {
-      cout << "Usage : " << argv[0] << "\n";
+      std::cout << "Usage : " << argv[0] << "\n";
       return 1;
     }
   Standard_Boolean Succes;
@@ -2224,9 +2224,9 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
   {//==== Test Divide ByZero (Integer) ========================================
     try{
       OCC_CATCH_SIGNALS
-      cout << "(Integer) Divide By Zero..." << endl;
+      std::cout << "(Integer) Divide By Zero..." << std::endl;
       di << "(Integer) Divide By Zero...";
-      //cout.flush();
+      //std::cout.flush();
       di << "\n";
       Standard_Integer res, a =4, b = 0 ;
       res = a / b;
@@ -2257,9 +2257,9 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
   {//==== Test Divide ByZero (Real) ===========================================
     try{
       OCC_CATCH_SIGNALS
-      cout << "(Real) Divide By Zero..." << endl;
+      std::cout << "(Real) Divide By Zero..." << std::endl;
       di << "(Real) Divide By Zero...";
-      //cout.flush();
+      //std::cout.flush();
       di << "\n";
       Standard_Real res, a= 4.0, b=0.0;
       res = a / b;
@@ -2275,7 +2275,7 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
       di << "Caught, OK\n";
     }
     catch(Standard_Failure const& anException) {
-      //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
+      //std::cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << std::endl;
       di << " Caught (";
       di << anException.GetMessageString();
       di << ")... KO\n";
@@ -2286,13 +2286,13 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
   {//==== Test Overflow (Integer) =============================================
     try{
       OCC_CATCH_SIGNALS
-      cout << "(Integer) Overflow..." << endl;
+      std::cout << "(Integer) Overflow..." << std::endl;
       di << "(Integer) Overflow...";
-      //cout.flush();
+      //std::cout.flush();
       di << "\n";
       Standard_Integer res, i=IntegerLast();
       res = i + 1;
-      //++++ cout << " -- "<<res<<"="<<i<<"+1   Does not Caught... KO"<< endl;
+      //++++ std::cout << " -- "<<res<<"="<<i<<"+1   Does not Caught... KO"<< std::endl;
       //++++ Succes = Standard_False;
       di << "Not caught: " << i << " + 1 = " << res << ", still OK\n";
     }
@@ -2300,7 +2300,7 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
       di << "Caught, OK\n";
     }
     catch(Standard_Failure const& anException) {
-      //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
+      //std::cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << std::endl;
       di << " Caught (";
       di << anException.GetMessageString();
       di << ")... KO\n";
@@ -2311,9 +2311,9 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
   {//==== Test Overflow (Real) ================================================ 
     try{
       OCC_CATCH_SIGNALS
-      cout << "(Real) Overflow..." << endl;
+      std::cout << "(Real) Overflow..." << std::endl;
       di << "(Real) Overflow...";
-      //cout.flush();
+      //std::cout.flush();
       di << "\n";
       Standard_Real res, r=RealLast();
       res = r * r;
@@ -2332,7 +2332,7 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
       di << "Caught, OK\n";
     }
     catch(Standard_Failure const& anException) {
-      //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
+      //std::cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << std::endl;
       di << " Caught (";
       di << anException.GetMessageString();
       di << ")... KO\n";
@@ -2343,14 +2343,14 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
   {//==== Test Underflow (Real) ===============================================
     try{
       OCC_CATCH_SIGNALS
-      cout << "(Real) Underflow" << endl; // to have message in log even if process crashed
+      std::cout << "(Real) Underflow" << std::endl; // to have message in log even if process crashed
       di << "(Real) Underflow";
-      //cout.flush();
+      //std::cout.flush();
       di << "\n";
       Standard_Real res, r = RealSmall();
       res = r * r;
       //res = res + 1.;
-      //++++ cout<<"-- "<<res<<"="<<r<<"*"<<r<<"   Does not Caught... KO"<<endl;
+      //++++ std::cout<<"-- "<<res<<"="<<r<<"*"<<r<<"   Does not Caught... KO"<<std::endl;
       //++++ Succes = Standard_False;
       di << "Not caught: " << r << "*" << r << " = " << res << ", still OK\n";
     }
@@ -2365,7 +2365,7 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
       Succes = Standard_False;
     }
     catch(Standard_Failure const& anException) {
-      //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
+      //std::cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << std::endl;
       di << " Caught (";
       di << anException.GetMessageString();
       di << ")... KO\n";
@@ -2376,9 +2376,9 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
   {//==== Test Invalid Operation (Real) ===============================================
     try{
       OCC_CATCH_SIGNALS
-      cout << "(Real) Invalid Operation..." << endl;
+      std::cout << "(Real) Invalid Operation..." << std::endl;
       di << "(Real) Invalid Operation...";
-      //cout.flush();
+      //std::cout.flush();
       di << "\n";
       Standard_Real res, r=-1;
       res = sqrt(r);
@@ -2389,7 +2389,7 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
       di << "Caught, OK\n";
     }
     catch(Standard_Failure const& anException) {
-      //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
+      //std::cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << std::endl;
       di << " Caught (";
       di << anException.GetMessageString();
       di << ")... KO\n";
@@ -2400,9 +2400,9 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
   {//==== Test Access Violation ===============================================
     try {
       OCC_CATCH_SIGNALS
-      cout << "Segmentation Fault..." << endl;
+      std::cout << "Segmentation Fault..." << std::endl;
       di << "Segmentation Fault...";
-      //cout.flush();
+      //std::cout.flush();
       di << "\n";
       int* pint=NULL;
       *pint = 4;
@@ -2417,7 +2417,7 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
     {
       di << "Caught, OK\n";
     } catch(Standard_Failure const& anException) {
-      //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
+      //std::cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << std::endl;
       di << " Caught (";
       di << anException.GetMessageString();
       di << ")... KO\n";
@@ -2429,9 +2429,9 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
   {//==== Test Stack Overflow ===============================================
     try {
       OCC_CATCH_SIGNALS
-      cout << "Stack Overflow..." << endl;
+      std::cout << "Stack Overflow..." << std::endl;
       di << "Stack Overflow...";
-      //cout.flush();
+      //std::cout.flush();
       di << "\n";
       StackOverflow();
       di << "Error - no exception is raised!\n";
@@ -2441,7 +2441,7 @@ static Standard_Integer OCC6143 (Draw_Interpretor& di, Standard_Integer argc, co
       di << "Caught, OK\n";
     }
     catch(Standard_Failure const& anException) {
-      //cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << endl;
+      //std::cout << " Caught (" << Standard_Failure::Caught() << ")... KO" << std::endl;
       di << " Caught (";
       di << anException.GetMessageString();
       di << ")... KO\n";
@@ -2513,7 +2513,7 @@ static Standard_Integer OCC7141 (Draw_Interpretor& di, Standard_Integer argc, co
   }
   catch (Standard_Failure const& anException) {
     di << "Failed :\n\n";
-    //cout << Standard_Failure::Caught() << endl;
+    //std::cout << Standard_Failure::Caught() << std::endl;
     di << anException.GetMessageString();
   }
   di << argv[0] << " : Finish\n";
@@ -2665,10 +2665,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)
-    cout<<"1: OK"<<endl;
+    std::cout<<"1: OK"<<std::endl;
   else
   {
-    cout<<"1: Failed.."<<endl;
+    std::cout<<"1: Failed.."<<std::endl;
     return 1;
   }
   doc->CommitCommand();
@@ -2682,11 +2682,11 @@ static Standard_Integer OCC10138 (Draw_Interpretor& di, Standard_Integer argc, c
   {  
     if (array->Value(i) != i)
     {
-      cout<<"2: Failed.."<<endl;
+      std::cout<<"2: Failed.."<<std::endl;
       return 2;
     }
   }
-  cout<<"2: OK"<<endl;
+  std::cout<<"2: OK"<<std::endl;
   doc->CommitCommand();
 
   //! 3. Re-init the array
@@ -2694,7 +2694,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)
   {
-    cout<<"3: Failed.."<<endl;
+    std::cout<<"3: Failed.."<<std::endl;
     return 3;
   }
   for (i = LOWER + 2; i <= UPPER + 4; i++)
@@ -2703,11 +2703,11 @@ static Standard_Integer OCC10138 (Draw_Interpretor& di, Standard_Integer argc, c
   {  
     if (array->Value(i) != i)
     {
-      cout<<"3: Failed.."<<endl;
+      std::cout<<"3: Failed.."<<std::endl;
       return 3;
     }
   }
-  cout<<"3: OK"<<endl;
+  std::cout<<"3: OK"<<std::endl;
   doc->CommitCommand();
 
   //! 4. Change array
@@ -2720,11 +2720,11 @@ static Standard_Integer OCC10138 (Draw_Interpretor& di, Standard_Integer argc, c
   {  
     if (array->Value(i) != i)
     {
-      cout<<"4: Failed.."<<endl;
+      std::cout<<"4: Failed.."<<std::endl;
       return 4;
     }
   }
-  cout<<"4: OK"<<endl;
+  std::cout<<"4: OK"<<std::endl;
   doc->CommitCommand();
 
   //! 5. Copy the array
@@ -2733,24 +2733,24 @@ static Standard_Integer OCC10138 (Draw_Interpretor& di, Standard_Integer argc, c
   copier.Perform();
   if (!copier.IsDone())
   {
-    cout<<"5: Failed.."<<endl;
+    std::cout<<"5: Failed.."<<std::endl;
     return 5;
   }
   Handle(TDataStd_RealArray) array2;
   if (!label2.FindAttribute(TDataStd_RealArray::GetID(), array2))
   {
-    cout<<"5: Failed.."<<endl;
+    std::cout<<"5: Failed.."<<std::endl;
     return 5;
   }
   for (i = LOWER + 5; i <= UPPER + 5; i++)
   {  
     if (array->Value(i) != i)
     {
-      cout<<"5: Failed.."<<endl;
+      std::cout<<"5: Failed.."<<std::endl;
       return 5;
     }
   }
-  cout<<"5: OK"<<endl;
+  std::cout<<"5: OK"<<std::endl;
   doc->CommitCommand();
 
   //! 6. Undo/Redo
@@ -2759,7 +2759,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))
   {
-    cout<<"6.a: Failed.."<<endl;
+    std::cout<<"6.a: Failed.."<<std::endl;
     return 6;
   }
   //! 6.b: undoes the 4th action: the array should be changed to (lower+2,upper+4)
@@ -2768,14 +2768,14 @@ static Standard_Integer OCC10138 (Draw_Interpretor& di, Standard_Integer argc, c
       array->Lower() != LOWER + 2 ||
       array->Upper() != UPPER + 4)
   {
-    cout<<"6.b: Failed.."<<endl;
+    std::cout<<"6.b: Failed.."<<std::endl;
     return 6;
   }
   for (i = LOWER + 2; i <= UPPER + 4; i++)
   {
     if (array->Value(i) != i)
     {
-      cout<<"6.b: Failed.."<<endl;
+      std::cout<<"6.b: Failed.."<<std::endl;
       return 6;
     }
   }
@@ -2785,14 +2785,14 @@ static Standard_Integer OCC10138 (Draw_Interpretor& di, Standard_Integer argc, c
       array->Lower() != LOWER ||
       array->Upper() != UPPER)
   {
-    cout<<"6.c: Failed.."<<endl;
+    std::cout<<"6.c: Failed.."<<std::endl;
     return 6;
   }
   for (i = LOWER; i <= UPPER; i++)
   {
     if (array->Value(i) != i)
     {
-      cout<<"6.c: Failed.."<<endl;
+      std::cout<<"6.c: Failed.."<<std::endl;
       return 6;
     }
   }
@@ -2803,25 +2803,25 @@ static Standard_Integer OCC10138 (Draw_Interpretor& di, Standard_Integer argc, c
       array->Lower() != LOWER ||
       array->Upper() != UPPER)
   {
-    cout<<"6.d: Failed.."<<endl;
+    std::cout<<"6.d: Failed.."<<std::endl;
     return 6;
   }
   for (i = LOWER; i <= UPPER; i++)
   {
     if (array->Value(i) != i)
     {
-      cout<<"6.d: Failed.."<<endl;
+      std::cout<<"6.d: Failed.."<<std::endl;
       return 6;
     }
   }
-  cout<<"6: OK"<<endl;
+  std::cout<<"6: OK"<<std::endl;
 
   //! 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)
   {
-    cout<<"7: Failed.."<<endl;
+    std::cout<<"7: Failed.."<<std::endl;
     return 7;
   }
   for (i = LOWER + 1; i <= UPPER + 1; i++)
@@ -2830,11 +2830,11 @@ static Standard_Integer OCC10138 (Draw_Interpretor& di, Standard_Integer argc, c
   {  
     if (array->Value(i) != i)
     {
-      cout<<"7: Failed.."<<endl;
+      std::cout<<"7: Failed.."<<std::endl;
       return 7;
     }
   }
-  cout<<"7: OK"<<endl;
+  std::cout<<"7: OK"<<std::endl;
   doc->CommitCommand();
 
   //! 8.Test of speed: set LOWER and UPPER equal to great integer number and 
@@ -2924,16 +2924,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);
-  cout<<"Length Spline(abcissa_Pnt): "<<l_abcissa<<endl;
+  std::cout<<"Length Spline(abcissa_Pnt): "<<l_abcissa<<std::endl;
 
   //length!! 2.
   TopoDS_Edge edge = BRepBuilderAPI_MakeEdge (spline);
   GProp_GProps prop;
   BRepGProp::LinearProperties(edge,prop);
   l_gprop=prop.Mass();
-  cout<<"Length Spline(GProp_GProps): "<<l_gprop<<endl;
+  std::cout<<"Length Spline(GProp_GProps): "<<l_gprop<<std::endl;
 
-  cout<<"Difference (abcissa_Pnt<->GProp_GProps): "<<l_gprop-l_abcissa<<endl;
+  std::cout<<"Difference (abcissa_Pnt<->GProp_GProps): "<<l_gprop-l_abcissa<<std::endl;
 
   return 0;
 }
index 3cb5c23..23dd840 100644 (file)
@@ -932,7 +932,7 @@ static Standard_Integer OCC817 (Draw_Interpretor& di, Standard_Integer argc, con
       BRepGProp::VolumeProperties (SubvolumeSolid(l), subvolumeVProps);
       const Standard_Real vol = subvolumeVProps.Mass();
       const Standard_Boolean err = (vol > SubvolumeVol(l)) || (vol <= 0.0);
-      //cout << (err? "ERROR" : "Info") << ": final subvolume " << l << " volume = " << vol << endl;
+      //std::cout << (err? "ERROR" : "Info") << ": final subvolume " << l << " volume = " << vol << std::endl;
       if (err)
        di << "ERROR: final subvolume " << l << " volume = " << vol << "\n";
       else
index 7eed91b..796f048 100644 (file)
@@ -380,7 +380,7 @@ static Standard_Integer BUC60944 (Draw_Interpretor& di, Standard_Integer argc, c
   else
     di << "Faulty : The convertion is incorrect : " << out.ToCString() << "\n";
   di << out.ToCString() << "\n";
-//  cout << aPath->Trek() << " !" << endl;
+//  std::cout << aPath->Trek() << " !" << std::endl;
   return 0;
 }
 
@@ -587,7 +587,7 @@ static Standard_Integer  BUC60920(Draw_Interpretor& di, Standard_Integer /*argc*
 
   Handle(AIS_InteractiveContext) myAISContext = ViewerTest::GetAISContext();
   if(myAISContext.IsNull()) {
-    cerr << "use 'vinit' command before " << argv[0] << "\n";
+    std::cerr << "use 'vinit' command before " << argv[0] << "\n";
     return -1;
   }
 
@@ -608,17 +608,17 @@ static Standard_Integer  BUC60920(Draw_Interpretor& di, Standard_Integer /*argc*
   
   double Xv,Yv;
   myV3dView->Project(20,20,0,Xv,Yv);
-//  cout<<Xv<<"\t"<<Yv<<endl;
+//  std::cout<<Xv<<"\t"<<Yv<<std::endl;
   
   Standard_Integer Xp,Yp;
   myV3dView->Convert(Xv,Yv,Xp,Yp);
-//  cout<<Xp<<"\t"<<Yp<<endl;
+//  std::cout<<Xp<<"\t"<<Yp<<std::endl;
 
   myAISContext->MoveTo (Xp,Yp, myV3dView, Standard_True);
 
 //   if (myAISContext->IsHilighted(anAISShape)) 
-//              cout << "has hilighted shape : OK"   << endl;
-//   else       cout << "has hilighted shape : bugged - Faulty "   << endl;
+//              std::cout << "has hilighted shape : OK"   << std::endl;
+//   else       std::cout << "has hilighted shape : bugged - Faulty "   << std::endl;
   
   return 0;
 }
@@ -716,7 +716,7 @@ static Standard_Integer  OCC984 (Draw_Interpretor& di, Standard_Integer argc, co
 //{
 //  if( argc != 1)
 //  {
-//    cout << "Usage : " << argv[0] << endl;
+//    std::cout << "Usage : " << argv[0] << std::endl;
 //    return 1;
 //  }
 //
@@ -733,7 +733,7 @@ static Standard_Integer  OCC984 (Draw_Interpretor& di, Standard_Integer argc, co
 //    }
 //    catch ( Standard_Failure ) {
 //      isCaught = Standard_True;
-//      cout << "OCC1723 Case 1 : OK" << endl;
+//      std::cout << "OCC1723 Case 1 : OK" << std::endl;
 //    }
 //  }
 //  isBad = isBad || !isCaught;
@@ -748,7 +748,7 @@ static Standard_Integer  OCC984 (Draw_Interpretor& di, Standard_Integer argc, co
 //    }
 //    catch ( Standard_Failure ) {
 //      isCaught = Standard_True;
-//      cout << "OCC1723 Case 2 : OK" << endl;
+//      std::cout << "OCC1723 Case 2 : OK" << std::endl;
 //    }
 //  }
 //  isBad = isBad || !isCaught;
@@ -764,7 +764,7 @@ static Standard_Integer  OCC984 (Draw_Interpretor& di, Standard_Integer argc, co
 //    }
 //    catch ( Standard_Failure ) {
 //      isCaught = Standard_True;
-//      cout << "OCC1723 Case 3 : OK" << endl;
+//      std::cout << "OCC1723 Case 3 : OK" << std::endl;
 //    }
 //  }
 //  // MSV: underflow is not caught
@@ -781,15 +781,15 @@ static Standard_Integer  OCC984 (Draw_Interpretor& di, Standard_Integer argc, co
 //    }
 //    catch ( Standard_Failure ) {
 //      isCaught = Standard_True;
-//      cout << "OCC1723 Case 4 : OK" << endl;
+//      std::cout << "OCC1723 Case 4 : OK" << std::endl;
 //    }
 //  }
 //  isBad = isBad || !isCaught;
 //
 //  if (isBad) {
-//    cout << "OCC1723 : Error" << endl;
+//    std::cout << "OCC1723 : Error" << std::endl;
 //  } else {
-//    cout << "OCC1723 : OK" << endl;
+//    std::cout << "OCC1723 : OK" << std::endl;
 //  }
 //
 //  return 0;
@@ -955,7 +955,7 @@ static Standard_Integer OCC3277 (Draw_Interpretor& di, Standard_Integer argc, co
   TCollection_ExtendedString ExtendedString;
   TCollection_ExtendedString InputString(argv[1]);
   ExtendedString.Cat(InputString);
-  //ExtendedString.Print(cout);
+  //ExtendedString.Print(std::cout);
   Standard_SStream aSStream;
   ExtendedString.Print(aSStream);
   di << aSStream;
@@ -1022,15 +1022,15 @@ static Standard_Integer OCC16485 (Draw_Interpretor& di, Standard_Integer argc, c
   
   Standard_Real xmin, ymin, zmin, xmax, ymax, zmax;
   Box.Get (xmin, ymin, zmin, xmax, ymax, zmax);
-  //cout.precision(16);
-  //cout << "Resulting dimensions: Xmin = " << xmin << " , Xmax = " << xmax << " , Tolerance = " << tol << endl;
+  //std::cout.precision(16);
+  //std::cout << "Resulting dimensions: Xmin = " << xmin << " , Xmax = " << xmax << " , Tolerance = " << tol << std::endl;
   di << "Resulting dimensions: Xmin = " << xmin << " , Xmax = " << xmax << " , Tolerance = " << tol << "\n";
   if ( Abs ( xmin + tol ) > 1e-10 )
       di << "TEST FAILED: Xmin must be equal to -1e3!\n";
   else
       di << "TEST OK\n";
-      //cout << "TEST FAILED: Xmin must be equal to -1e3!" << endl;
-      //cout << "TEST OK" << endl;
+      //std::cout << "TEST FAILED: Xmin must be equal to -1e3!" << std::endl;
+      //std::cout << "TEST OK" << std::endl;
       //di << "TEST FAILED: Xmin must be equal to -1e3!\n";
       //di << "TEST OK\n";
   return 0;
index db12430..6638171 100644 (file)
@@ -1362,7 +1362,7 @@ static Standard_Integer OCC1642 (Draw_Interpretor& di, Standard_Integer argc, co
     IntRes2d_SequenceOfIntersectionPoint points2d;
     TColgp_SequenceOfPnt points3d;
 
-    cout << "\n j =" << j << ",  CheckSelfIntersectingEdge = " <<
+    std::cout << "\n j =" << j << ",  CheckSelfIntersectingEdge = " <<
       advWA->CheckSelfIntersectingEdge(j, points2d, points3d);
 
 
index 22827e8..dfce9c3 100644 (file)
@@ -397,23 +397,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()) {
-    cout << "Error: ApproxSurface is not done!" << endl;
+    std::cout << "Error: ApproxSurface is not done!" << std::endl;
     return 0;
   }
   const Handle(Geom_BSplineSurface)& aBSurf = aGAS.Surface();
   if (aBSurf.IsNull()) {
-    cout << "Error: BSplineSurface is not created!" << endl;
+    std::cout << "Error: BSplineSurface is not created!" << std::endl;
     return 0;
   }
-  cout << "Number of UPoles:" << aBSurf->NbUPoles();
+  std::cout << "Number of UPoles:" << aBSurf->NbUPoles();
   if (aBSurf->NbUPoles() == info->nbupoles)
   {
-    cout << ": OK" << endl;
+    std::cout << ": OK" << std::endl;
     return data; // any non-null pointer
   }
   else
   {
-    cout << ": Error, must be " << info->nbupoles << endl;
+    std::cout << ": Error, must be " << info->nbupoles << std::endl;
     return 0;
   }
 }
@@ -421,7 +421,7 @@ static Standard_Address GeomConvertTest (Standard_Address data)
 static Standard_Integer OCC23952sweep (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if (argc != 3) {
-    cout << "Error: invalid number of arguments" << endl;
+    std::cout << "Error: invalid number of arguments" << std::endl;
     return 1;
   }
 
@@ -430,7 +430,7 @@ static Standard_Integer OCC23952sweep (Draw_Interpretor& di, Standard_Integer ar
   aStorage.surf = DrawTrSurf::GetSurface(argv[2]);
   if (aStorage.surf.IsNull())
   {
-    cout << "Error: " << argv[2] << " is not a DRAW surface!" << endl;
+    std::cout << "Error: " << argv[2] << " is not a DRAW surface!" << std::endl;
     return 0;
   }
 
@@ -471,19 +471,19 @@ static Standard_Address GeomIntSSTest (Standard_Address data)
   GeomInt_IntSS anInter;
   anInter.Perform (info->surf1, info->surf2, Precision::Confusion(), Standard_True);
   if (!anInter.IsDone()) {
-    cout << "An intersection is not done!" << endl;
+    std::cout << "An intersection is not done!" << std::endl;
     return 0;
   }
 
-  cout << "Number of Lines:" << anInter.NbLines();
+  std::cout << "Number of Lines:" << anInter.NbLines();
   if (anInter.NbLines() == info->nbsol)
   {
-    cout << ": OK" << endl;
+    std::cout << ": OK" << std::endl;
     return data; // any non-null pointer
   }
   else
   {
-    cout << ": Error, must be " << info->nbsol << endl;
+    std::cout << ": Error, must be " << info->nbsol << std::endl;
     return 0;
   }
 }
@@ -491,7 +491,7 @@ static Standard_Address GeomIntSSTest (Standard_Address data)
 static Standard_Integer OCC23952intersect (Draw_Interpretor& di, Standard_Integer argc, const char ** argv)
 {
   if (argc != 4) {
-    cout << "Error: invalid number of arguments" << endl;
+    std::cout << "Error: invalid number of arguments" << std::endl;
     return 1;
   }
 
@@ -501,7 +501,7 @@ static Standard_Integer OCC23952intersect (Draw_Interpretor& di, Standard_Intege
   aStorage.surf2 = DrawTrSurf::GetSurface(argv[3]);
   if (aStorage.surf1.IsNull() || aStorage.surf2.IsNull())
   {
-    cout << "Error: Either " << argv[2] << " or " << argv[3] << " is not a DRAW surface!" << endl;
+    std::cout << "Error: Either " << argv[2] << " or " << argv[3] << " is not a DRAW surface!" << std::endl;
     return 0;
   }
 
@@ -3288,7 +3288,7 @@ static Standard_Integer OCC24881 (Draw_Interpretor& di, Standard_Integer narg ,
     di<<"Usage: "<<a[0]<<" invalid number of arguments\n";
     return 1;
   }
-//    cout <<"FileName1: " << argv[1] <<endl;
+//    std::cout <<"FileName1: " << argv[1] <<std::endl;
 
   TopoDS_Shape aShape = DBRep::Get (a[1]);
 
@@ -4424,7 +4424,7 @@ static Standard_Integer OCC24537(
     aF.open(argv[1]);
     if (!aF.is_open())
     {
-      cout << "cannot create file " << argv[1] << endl;
+      std::cout << "cannot create file " << argv[1] << std::endl;
       return 1;
     }
   }
@@ -4636,7 +4636,7 @@ static Standard_Integer OCC24537(
     theDI << "Conversion was done OK";
   if (aF.is_open())
   {
-    cout << "the file " << argv[1] << " has been created" << endl;
+    std::cout << "the file " << argv[1] << " has been created" << std::endl;
     aF.close();
   }
   return 0;
index 4641055..996c7b8 100644 (file)
@@ -1415,7 +1415,7 @@ static Standard_Integer OCC27021(Draw_Interpretor& theDI,
 {
   if (theNArg != 2)
   {
-    cout << "Use: " << theArgVal[0] << " shape" << endl;
+    std::cout << "Use: " << theArgVal[0] << " shape" << std::endl;
     return 1;
   }
 
@@ -1547,7 +1547,7 @@ static Standard_Integer OCC26930(Draw_Interpretor& theDI,
 {
   if (theNArg != 5)
   {
-    cout << "Use: " << theArgVal[0] <<" surface curve start end" << endl;
+    std::cout << "Use: " << theArgVal[0] <<" surface curve start end" << std::endl;
     return 1;
   }
 
@@ -1599,7 +1599,7 @@ static Standard_Integer OCC27466(Draw_Interpretor& theDI,
 {
   if (theNArg != 4)
   {
-    cout << "Use: " << theArgVal[0] << " face point start_pnt2d" << endl;
+    std::cout << "Use: " << theArgVal[0] << " face point start_pnt2d" << std::endl;
     return 1;
   }
 
@@ -2517,11 +2517,11 @@ Standard_Boolean IsSameGuid (const Standard_GUID& aGuidNull, const Standard_GUID
 {
   Standard_Boolean isSame (Standard_False);
   if(Standard_GUID::IsEqual(aGuidNull, aGuid2)) {
-    aGuid2.ShallowDump(cout);
+    aGuid2.ShallowDump(std::cout);
     isSame = Standard_True;
   } else {
-    aGuid2.ShallowDump(cout);
-    cout <<endl;
+    aGuid2.ShallowDump(std::cout);
+    std::cout <<std::endl;
   }
   return isSame;
 }
@@ -2722,7 +2722,7 @@ static Standard_Integer OCC29064 (Draw_Interpretor& theDI, Standard_Integer theA
 {
   if (theArgc < 2)
   {
-    cout << "Error: give argument indicating type of map (map, doublemap, datamap, indexedmap, indexeddatamap)" << endl;
+    std::cout << "Error: give argument indicating type of map (map, doublemap, datamap, indexedmap, indexeddatamap)" << std::endl;
     return 1;
   }
 
@@ -2739,7 +2739,7 @@ static Standard_Integer OCC29064 (Draw_Interpretor& theDI, Standard_Integer theA
     AllocDummyArr<NCollection_IndexedDataMap<int, int> > (theDI, nbm1, nbm2);
   else
   {
-    cout << "Error: unrecognized argument " << theArgv[1] << endl;
+    std::cout << "Error: unrecognized argument " << theArgv[1] << std::endl;
     return 1;
   }
   return 0;
index e62df60..c3d6882 100644 (file)
@@ -525,7 +525,7 @@ static Standard_Integer coordload (Draw_Interpretor& theDi,
     return 1;
   }
 
-  std::ifstream aFile (theArgVec[2], ios::in);
+  std::ifstream aFile (theArgVec[2], std::ios::in);
   if (!aFile)
   {
     theDi << "unable to open " << theArgVec[2] << " for input\n";
@@ -951,7 +951,7 @@ static int BUC60836(Draw_Interpretor& di, Standard_Integer argc, const char ** a
     Handle(TDF_Delta) D = IDL.Value();
     TCollection_ExtendedString S(Names[i-1]);
     D->SetName(S);
-//    cout<<" U"<<i<<"="<<D->Name()<<endl;
+//    std::cout<<" U"<<i<<"="<<D->Name()<<std::endl;
   }
   
   aDocument->Undo();
@@ -962,7 +962,7 @@ static int BUC60836(Draw_Interpretor& di, Standard_Integer argc, const char ** a
 
   for(IDL.Initialize(Us),i=1;IDL.More();IDL.Next(),i++){
     Handle(TDF_Delta) D = IDL.Value();
-//    cout<<" U"<<i<<"="<<D->Name()<<endl;
+//    std::cout<<" U"<<i<<"="<<D->Name()<<std::endl;
   }
 
   TCollection_ExtendedString n2name ("n2");
@@ -1151,7 +1151,7 @@ static int AISWidth(Draw_Interpretor& di, Standard_Integer argc, const char ** a
       }
       else {
        if (prs->HasOwnWidth()){ 
-//         cout << "Width = " << prs->Width() << endl;
+//         std::cout << "Width = " << prs->Width() << std::endl;
          di<<prs->Width();
        }
        else{
index 6a72be8..2eeba16 100644 (file)
@@ -33,7 +33,7 @@ static Standard_Integer OCC281bug (Draw_Interpretor& di, Standard_Integer argc,
   Handle(AIS_InteractiveContext) aContext = ViewerTest::GetAISContext();
   if(aContext.IsNull()) 
     { 
-    cerr << "use 'vinit' command before " << argv[0] << "\n";
+    std::cerr << "use 'vinit' command before " << argv[0] << "\n";
     return -1;
     }
   if(argc < 4) {
index b48dadd..371a287 100644 (file)
@@ -86,7 +86,7 @@ TopoDS_Shape QADNaming::CurrentShape (const Standard_CString  LabelName,
   TDF_Label Label; 
   Standard_Boolean Found =  DDF::AddLabel (DF, LabelName, Label);
   if (!Found) {
-    cout <<"no labels"<<endl;
+    std::cout <<"no labels"<<std::endl;
     return S;
   }
   if (Found) { 
@@ -94,7 +94,7 @@ TopoDS_Shape QADNaming::CurrentShape (const Standard_CString  LabelName,
     Label.FindAttribute(TNaming_NamedShape::GetID(),NS);
     S =  TNaming_Tool::CurrentShape(NS);
     if (S.IsNull())
-      cout <<"current shape from "<< LabelName <<" is deleted"<<endl;
+      std::cout <<"current shape from "<< LabelName <<" is deleted"<<std::endl;
     return S;
   }
   return S;
@@ -138,12 +138,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)) {
-    cout<<"Wrong df"<<endl;
+    std::cout<<"Wrong df"<<std::endl;
     return Standard_False;
   }
   DDF::AddLabel(DF,arg[2],theLabel);
   if (!theLabel.IsNull()) return Standard_True;
-  cout<<"Wrong entry"<<endl;
+  std::cout<<"Wrong entry"<<std::endl;
   return Standard_False;
 }
 
index 7448927..45f1f51 100644 (file)
@@ -290,7 +290,7 @@ static Standard_Integer Exploreshape (Draw_Interpretor& di, Standard_Integer n,
     return 0;
   }
 
-  //TNaming::Print(NS->Evolution(),cout);
+  //TNaming::Print(NS->Evolution(),std::cout);
   Standard_SStream aSStream;
   TNaming::Print(NS->Evolution(),aSStream);
   di << aSStream;
index acbeb60..e9538a7 100644 (file)
@@ -81,13 +81,13 @@ static void DumpNaming (const Handle(TNaming_Naming)& naming, Draw_Interpretor&
   TCollection_AsciiString Entry;
   const TNaming_Name& AName = naming->GetName();
 
-  //TNaming::Print(AName.Type(),cout);
+  //TNaming::Print(AName.Type(),std::cout);
   Standard_SStream aSStream1;
   TNaming::Print(AName.Type(),aSStream1);
   di << aSStream1;
   di << " ";
 
-  //TopAbs::Print(AName.ShapeType(),cout);
+  //TopAbs::Print(AName.ShapeType(),std::cout);
   Standard_SStream aSStream2;
   TopAbs::Print(AName.ShapeType(),aSStream2);
   di << aSStream2;
index aabc6f6..4876f79 100644 (file)
@@ -132,7 +132,7 @@ static Standard_Integer QADNaming_TCopyShape (Draw_Interpretor& di,
   TR.Perform();
 
   if(TR.IsDone()){
-//    cout << "QADNaming_CopyShape:: Copy is Done " << endl;
+//    std::cout << "QADNaming_CopyShape:: Copy is Done " << std::endl;
 
     DNaming_DataMapIteratorOfDataMapOfShapeOfName itrn(aDMapOfShapeOfName);
     for(;itrn.More();itrn.Next()) {
index e42e145..8183bfd 100644 (file)
@@ -731,8 +731,8 @@ static void CompDoubleMap (Draw_Interpretor& theDI,
     }
   printAllMeters(theDI);
   if (iFail1 || iFail2)
-    cout << "Warning : N map failed " << iFail1 << " times, T map - " << 
-      iFail2 << endl;
+    std::cout << "Warning : N map failed " << iFail1 << " times, T map - " << 
+      iFail2 << std::endl;
 }
 
 // ===================== Test perform of IndexedMap type ==========================
index e09c1d4..3454695 100644 (file)
@@ -348,11 +348,11 @@ static void TestMap(QANCollection_MapFunc& theM, Draw_Interpretor& theDI)
     Standard_Integer i;
 
     printf ("Info: testing Map(l=%d)\n", iExt);
-    theM.Statistics(cout);
+    theM.Statistics(std::cout);
     // Resize
     theM.ReSize(8);
-    theM.Statistics(cout);
-    cout.flush();
+    theM.Statistics(std::cout);
+    std::cout.flush();
     // Constructor
     ////////////////////////////////QANCollection_Map aM;
     QANCollection_MapFunc aM;
@@ -371,7 +371,7 @@ static void TestMap(QANCollection_MapFunc& theM, Draw_Interpretor& theDI)
     else
     {
       aM.Remove(aKey);
-      cout << "      successfully removed item, l=%d\n" << aM.Size() << "\n";
+      std::cout << "      successfully removed item, l=%d\n" << aM.Size() << "\n";
     }
     // Copy constructor (including operator=)
     ////////////////////////////////QANCollection_Map aM2 = QANCollection_Map(aM);
@@ -416,11 +416,11 @@ static void TestDataMap  (QANCollection_DataMapFunc& theM)
   Standard_Integer i;
 
   printf ("Info: testing DataMap(l=%d)\n", iExt);
-  theM.Statistics(cout);
+  theM.Statistics(std::cout);
   // Resize
   theM.ReSize(8);
-  theM.Statistics(cout);
-  cout.flush();
+  theM.Statistics(std::cout);
+  std::cout.flush();
   // Constructor
   ////////////////////////////////QANCollection_DataMap aM;
   QANCollection_DataMapFunc aM;
@@ -467,11 +467,11 @@ static void TestDoubleMap  (QANCollection_DoubleMapFunc& theM)
   Standard_Integer i;
 
   printf ("Info: testing DoubleMap(l=%d)\n", iExt);
-  theM.Statistics(cout);
+  theM.Statistics(std::cout);
   // Resize
   theM.ReSize(8);
-  theM.Statistics(cout);
-  cout.flush();
+  theM.Statistics(std::cout);
+  std::cout.flush();
   // Constructor
   ////////////////////////////////QANCollection_DoubleMap aM;
   QANCollection_DoubleMapFunc aM;
@@ -530,11 +530,11 @@ static void TestIndexedMap  (QANCollection_IndexedMapFunc& theM)
   Standard_Integer i;
 
   printf ("Info: testing IndexedMap(l=%d)\n", iExt);
-  theM.Statistics(cout);
+  theM.Statistics(std::cout);
   // Resize
   theM.ReSize(8);
-  theM.Statistics(cout);
-  cout.flush();
+  theM.Statistics(std::cout);
+  std::cout.flush();
   // Constructor
   ////////////////////////////////QANCollection_IndexedMap aM;
   QANCollection_IndexedMapFunc aM;
@@ -591,11 +591,11 @@ static void TestIndexedDataMap  (QANCollection_IDMapFunc& theM)
   Standard_Integer i;
 
   printf ("Info: testing IndexedDataMap(l=%d)\n", iExt);
-  theM.Statistics(cout);
+  theM.Statistics(std::cout);
   // Resize
   theM.ReSize(8);
-  theM.Statistics(cout);
-  cout.flush();
+  theM.Statistics(std::cout);
+  std::cout.flush();
   // Constructor
   ////////////////////////////////QANCollection_IDMap aM;
   QANCollection_IDMapFunc aM;
@@ -865,14 +865,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!" << endl;
+    std::cout << "Error: wrong value in original vector!" << std::endl;
   aVec2.Append(5);
   if (aVec2(0) != 5)
-    std::cout << "Error: wrong value in copy-constructed vector!" << endl;
+    std::cout << "Error: wrong value in copy-constructed vector!" << std::endl;
   aVec3.Append(5);
   if (aVec3(0) != 5)
-    std::cout << "Error: wrong value in copied vector!" << endl;
-  std::cout << "Test OK" << endl;
+    std::cout << "Error: wrong value in copied vector!" << std::endl;
+  std::cout << "Test OK" << std::endl;
 
   return 0;
 }
index 1662a57..ae29401 100644 (file)
@@ -3634,7 +3634,7 @@ void TestOfColor ();
        }
 
        catch (Standard_Failure const& anException) {
-               cout << anException << endl;
+               std::cout << anException << std::endl;
        }
 
 }
@@ -3646,7 +3646,7 @@ Standard_Real R, G, B;
 Standard_Real DC, DI;
 Standard_Integer i;
 
-cout << "definition color tests\n----------------------\n";
+std::cout << "definition color tests\n----------------------\n";
 
 Quantity_Color C1;
 Quantity_Color C2 (Quantity_NOC_ROYALBLUE2);
@@ -3662,20 +3662,20 @@ Standard_Real RR, GG, BB;
 
 const Standard_Real DELTA = 1.0e-4;
 
-cout << "Get values and names of color tests\n-----------------------------------\n";
+std::cout << "Get values and names of color tests\n-----------------------------------\n";
 
        C1.Values (R, G, B, Quantity_TOC_RGB);
        if ( (R!=1.0) || (G!=1.0) || (B!=0.0) ) {
-               cout << "TEST_ERROR : Values () bad default color\n";
-               cout << "R, G, B values: " << R << " " << G << " " << B << "\n";
+               std::cout << "TEST_ERROR : Values () bad default color\n";
+               std::cout << "R, G, B values: " << R << " " << G << " " << B << "\n";
        }
        if ( (C1.Red ()!=1.0) || (C1.Green ()!=1.0) || (C1.Blue ()!=0.0) ) {
-               cout << "TEST_ERROR : Values () bad default color\n";
-               cout << "R, G, B values: " << C1.Red () << " " << C1.Green ()
+               std::cout << "TEST_ERROR : Values () bad default color\n";
+               std::cout << "R, G, B values: " << C1.Red () << " " << C1.Green ()
                        << " " << C1.Blue () << "\n";
        }
        if (strcmp (Quantity_Color::StringName (C1.Name()), cyan) != 0)
-               cout << "TEST_ERROR : StringName () " <<
+               std::cout << "TEST_ERROR : StringName () " <<
                        Quantity_Color::StringName (C1.Name()) << 
                                         " != YELLOW\n";
 
@@ -3685,66 +3685,66 @@ cout << "Get values and names of color tests\n----------------------------------
        if ( (Abs (RR-R) > DELTA) ||
             (Abs (GG-G) > DELTA) ||
             (Abs (BB-B) > DELTA) ) {
-               cout << "TEST_ERROR : Values () bad default color\n";
-               cout << "R, G, B values: " << R << " " << G << " " << B << "\n";
+               std::cout << "TEST_ERROR : Values () bad default color\n";
+               std::cout << "R, G, B values: " << R << " " << G << " " << B << "\n";
        }
 
        if (C2 != C1) {
-               cout << "TEST_ERROR : IsDifferent ()\n";
+               std::cout << "TEST_ERROR : IsDifferent ()\n";
        }
        if (C3 == C1) {
-               cout << "TEST_ERROR : IsEqual ()\n";
+               std::cout << "TEST_ERROR : IsEqual ()\n";
        }
 
-       cout << "Distance C1,C2 " << C1.Distance (C2) << "\n";
-       cout << "Distance C1,C3 " << C1.Distance (C3) << "\n";
-       cout << "Distance C2,C3 " << C2.Distance (C3) << "\n";
-       cout << "SquareDistance C1,C2 " << C1.SquareDistance (C2) << "\n";
-       cout << "SquareDistance C1,C3 " << C1.SquareDistance (C3) << "\n";
-       cout << "SquareDistance C2,C3 " << C2.SquareDistance (C3) << "\n";
+       std::cout << "Distance C1,C2 " << C1.Distance (C2) << "\n";
+       std::cout << "Distance C1,C3 " << C1.Distance (C3) << "\n";
+       std::cout << "Distance C2,C3 " << C2.Distance (C3) << "\n";
+       std::cout << "SquareDistance C1,C2 " << C1.SquareDistance (C2) << "\n";
+       std::cout << "SquareDistance C1,C3 " << C1.SquareDistance (C3) << "\n";
+       std::cout << "SquareDistance C2,C3 " << C2.SquareDistance (C3) << "\n";
 
        if (strcmp (Quantity_Color::StringName (C2.Name()), blue) != 0)
-               cout << "TEST_ERROR : StringName () " <<
+               std::cout << "TEST_ERROR : StringName () " <<
                        Quantity_Color::StringName (C2.Name()) << 
                         " != ROYALBLUE2\n";
 
-cout << "conversion rgbhls tests\n-----------------------\n";
+std::cout << "conversion rgbhls tests\n-----------------------\n";
        Quantity_Color::RgbHls (R, G, B, H, L, S);
        Quantity_Color::HlsRgb (H, L, S, R, G, B);
        RR=0.262745; GG=0.431373; BB=0.933333;
        if ( (Abs (RR-R) > DELTA) ||
             (Abs (GG-G) > DELTA) ||
             (Abs (BB-B) > DELTA) ) {
-               cout << "TEST_ERROR : RgbHls or HlsRgb bad conversion\n";
-               cout << "RGB init : " << RR << " " << GG << " " << BB << "\n";
-               cout << "RGB values : " << R << " " << G << " " << B << "\n";
-               cout << "Difference RGB : "
+               std::cout << "TEST_ERROR : RgbHls or HlsRgb bad conversion\n";
+               std::cout << "RGB init : " << RR << " " << GG << " " << BB << "\n";
+               std::cout << "RGB values : " << R << " " << G << " " << B << "\n";
+               std::cout << "Difference RGB : "
                        << RR-R << " " << GG-G << " " << BB-B << "\n";
        }
 
-cout << "distance tests\n--------------\n";
+std::cout << "distance tests\n--------------\n";
        R = (float ) 0.9568631; G = (float ) 0.6431371; B = (float ) 0.3764711;
        C2.SetValues (R, G, B, Quantity_TOC_RGB);
        if (C2.Distance (C3) > DELTA) {
-               cout << "TEST_ERROR : Distance () bad result\n";
-               cout << "Distance C2 and C3 : " << C2.Distance (C3) << "\n";
+               std::cout << "TEST_ERROR : Distance () bad result\n";
+               std::cout << "Distance C2 and C3 : " << C2.Distance (C3) << "\n";
        }
 
        C2.Delta (C3, DC, DI);
        if (Abs (DC) > DELTA)
-               cout << "TEST_ERROR : Delta () bad result for DC\n";
+               std::cout << "TEST_ERROR : Delta () bad result for DC\n";
        if (Abs (DI) > DELTA)
-               cout << "TEST_ERROR : Delta () bad result for DI\n";
+               std::cout << "TEST_ERROR : Delta () bad result for DI\n";
 
-cout << "name tests\n----------\n";
+std::cout << "name tests\n----------\n";
        R = (float ) 0.9568631; G = (float ) 0.6431371; B = (float ) 0.3764711;
        C2.SetValues (R, G, B, Quantity_TOC_RGB);
        if (strcmp (Quantity_Color::StringName (C2.Name()), brown) != 0)
-               cout << "TEST_ERROR : StringName () " <<
+               std::cout << "TEST_ERROR : StringName () " <<
                        Quantity_Color::StringName (C2.Name()) << 
                         " != SANDYBROWN\n";
 
-cout << "contrast change tests\n---------------------\n";
+std::cout << "contrast change tests\n---------------------\n";
        for (i=1; i<=10; i++) {
                C2.ChangeContrast (10.);
                C2.ChangeContrast (-9.09090909);
@@ -3754,9 +3754,9 @@ cout << "contrast change tests\n---------------------\n";
        if ( (Abs (RR-R) > DELTA) ||
             (Abs (GG-G) > DELTA) ||
             (Abs (BB-B) > DELTA) ) {
-               cout << "TEST_ERROR : ChangeContrast () bad values\n";
-               cout << "RGB init : " << RR << " " << GG << " " << BB << "\n";
-               cout << "RGB values : " << R << " " << G << " " << B << "\n";
+               std::cout << "TEST_ERROR : ChangeContrast () bad values\n";
+               std::cout << "RGB init : " << RR << " " << GG << " " << BB << "\n";
+               std::cout << "RGB values : " << R << " " << G << " " << B << "\n";
        }
 
 }
index 4957a2e..1ef5efc 100644 (file)
@@ -66,7 +66,7 @@ Standard_Integer RWHeaderSection_ReadWriteModule::CaseStep (const TColStd_Sequen
 {
   Standard_Integer NbComp = types.Length();
   if (NbComp < 2) {
-    cout << "Plex Instance illegal " << endl;
+    std::cout << "Plex Instance illegal " << std::endl;
   }
   return 0;
 }
index 2290ccf..3f1af6d 100644 (file)
@@ -3278,7 +3278,7 @@ Standard_Integer RWStepAP214_ReadWriteModule::CaseStep
   Standard_Integer NbComp = theTypes.Length();
   if (NbComp < 2) {
 #ifdef OCCT_DEBUG
-    cout << "Not a Plex" << endl;
+    std::cout << "Not a Plex" << std::endl;
 #endif
   }
   else {
@@ -4897,7 +4897,7 @@ void RWStepAP214_ReadWriteModule::ReadStep(const Standard_Integer CN,
 {
   if (CN == 0) {
 #ifdef OCCT_DEBUG
-    cout << "CN = 0 for num = " << num << endl;
+    std::cout << "CN = 0 for num = " << num << std::endl;
 #endif
     return;
   }
index 8911fcf..0a64fd3 100644 (file)
@@ -254,8 +254,8 @@ void RWStepGeom_RWBSplineCurveWithKnots::Check
   Standard_Integer nbMult = ent->NbKnotMultiplicities();
   Standard_Integer nbKno  = ent->NbKnots();
   Standard_Integer sumMult = 0;
-//  cout << "BSplineCurveWithKnots: nbMult=" << nbMult << " nbKno= " << 
-//    nbKno << " nbCPL= " << nbCPL << " degree= " << dgBSC << endl;
+//  std::cout << "BSplineCurveWithKnots: nbMult=" << nbMult << " nbKno= " << 
+//    nbKno << " nbCPL= " << nbCPL << " degree= " << dgBSC << std::endl;
   if(nbMult != nbKno) {
     ach->AddFail("ERROR: No.of KnotMultiplicities not equal No.of Knots");
   }
@@ -266,8 +266,8 @@ void RWStepGeom_RWBSplineCurveWithKnots::Check
   Standard_Integer sumNonP = nbCPL + dgBSC + 1;
   Standard_Integer mult1 = ent->KnotMultiplicitiesValue(1);
   Standard_Integer multN = ent->KnotMultiplicitiesValue(nbMult);
-//  cout << "BSplineCurveWithKnots: mult1=" << mult1 << " multN= " <<
-//    multN << " sumMult= " << sumMult << endl;
+//  std::cout << "BSplineCurveWithKnots: mult1=" << mult1 << " multN= " <<
+//    multN << " sumMult= " << sumMult << std::endl;
   if((sumMult + multN) == sumNonP) {
   }
   else if((sumMult == nbCPL) && (mult1 == multN)) {
index 5d51cb8..a15faef 100644 (file)
@@ -353,10 +353,10 @@ void RWStepGeom_RWBSplineSurfaceWithKnots::Check
   Standard_Integer sumMulU = 0;
   Standard_Integer sumMulV = 0;
   Standard_Integer i;
-//  cout << "BSplineSurfaceWithKnots: nbMulU=" << nbMulU << " nbKnoU= " << 
-//    nbKnoU << " nbCPLU= " << nbCPLU << " degreeU= " << dgBSSU << endl;
-//  cout << "                         nbMulV=" << nbMulV << " nbKnoV= " << 
-//    nbKnoV << " nbCPLV= " << nbCPLV << " degreeV= " << dgBSSV << endl;
+//  std::cout << "BSplineSurfaceWithKnots: nbMulU=" << nbMulU << " nbKnoU= " << 
+//    nbKnoU << " nbCPLU= " << nbCPLU << " degreeU= " << dgBSSU << std::endl;
+//  std::cout << "                         nbMulV=" << nbMulV << " nbKnoV= " << 
+//    nbKnoV << " nbCPLV= " << nbCPLV << " degreeV= " << dgBSSV << std::endl;
   if(nbMulU != nbKnoU) {
     ach->AddFail("ERROR: No.of KnotMultiplicities not equal No.of Knots in U");
   }
@@ -372,8 +372,8 @@ void RWStepGeom_RWBSplineSurfaceWithKnots::Check
   Standard_Integer sumNonPU = nbCPLU + dgBSSU + 1;
   Standard_Integer mult1U = ent->UMultiplicitiesValue(1);
   Standard_Integer multNU = ent->UMultiplicitiesValue(nbMulU);
-//  cout << "BSplineSurfaceWithKnots: mult1U=" << mult1U << " multNU= " <<
-//    multNU << " sumMulU= " << sumMulU << endl;
+//  std::cout << "BSplineSurfaceWithKnots: mult1U=" << mult1U << " multNU= " <<
+//    multNU << " sumMulU= " << sumMulU << std::endl;
   if((sumMulU + multNU) == sumNonPU) {
   }
   else if((sumMulU == nbCPLU) && (mult1U == multNU)) {
@@ -397,8 +397,8 @@ void RWStepGeom_RWBSplineSurfaceWithKnots::Check
   Standard_Integer sumNonPV = nbCPLV + dgBSSV + 1;
   Standard_Integer mult1V = ent->VMultiplicitiesValue(1);
   Standard_Integer multNV = ent->VMultiplicitiesValue(nbMulV);
-//  cout << "                       : mult1V=" << mult1V << " multNV= " <<
-//    multNV << " sumMulV= " << sumMulV << endl;
+//  std::cout << "                       : mult1V=" << mult1V << " multNV= " <<
+//    multNV << " sumMulV= " << sumMulV << std::endl;
   if((sumMulV + multNV) == sumNonPV) {
   }
   else if((sumMulV == nbCPLV) && (mult1V == multNV)) {
index ff442e2..e4df636 100644 (file)
@@ -193,8 +193,8 @@ void RWStepGeom_RWRationalBSplineCurve::Check
 {
   Standard_Integer nbWght = ent->NbWeightsData();
   Standard_Integer nbCPL  = ent->NbControlPointsList();
-//  cout << "RationalBSplineCurve: nbWght=" << nbWght << " nbCPL: " << 
-//    nbCPL << endl;
+//  std::cout << "RationalBSplineCurve: nbWght=" << nbWght << " nbCPL: " << 
+//    nbCPL << std::endl;
   if(nbWght != nbCPL) {
     ach->AddFail("ERROR: No.of ControlPoints not equal No.of Weights");
   }
index d2f405c..26bd640 100644 (file)
@@ -259,10 +259,10 @@ void RWStepGeom_RWRationalBSplineSurface::Check
   Standard_Integer nbCPLV = ent->NbControlPointsListJ();
   Standard_Integer i;
   Standard_Integer j;
-//  cout << "RationalBSplineCurve: nbWgtU=" << nbWgtU << " nbCPLU: " << 
-//    nbCPLU << endl;
-//  cout << "                      nbWgtV=" << nbWgtV << " nbCPLV: " << 
-//    nbCPLV << endl;
+//  std::cout << "RationalBSplineCurve: nbWgtU=" << nbWgtU << " nbCPLU: " << 
+//    nbCPLU << std::endl;
+//  std::cout << "                      nbWgtV=" << nbWgtV << " nbCPLV: " << 
+//    nbCPLV << std::endl;
   if(nbWgtU != nbCPLU) {
     ach->AddFail("ERROR: No.of ControlPoints not equal No.of Weights in U");
   }
index 8b55005..62fedc7 100644 (file)
@@ -102,7 +102,7 @@ void RWStepGeom_RWToroidalSurface::Check
    const Interface_ShareTool& ,
    Handle(Interface_Check)& ach) const
 {
-//  cout << "------ calling CheckToroidalSurface ------" << endl;
+//  std::cout << "------ calling CheckToroidalSurface ------" << std::endl;
   if (ent->MajorRadius() < 0.0)
     ach->AddFail("ERROR: ToroidalSurface: MajorRadius < 0.0");
   if (ent->MinorRadius() < 0.0)
index 89c38a6..d0a0535 100644 (file)
@@ -120,7 +120,7 @@ void RWStepShape_RWEdgeCurve::Check
    const Interface_ShareTool& aShto,
    Handle(Interface_Check)& ach) const
 {
-//  cout << "------ calling CheckEdgeCurve ------" << endl;
+//  std::cout << "------ calling CheckEdgeCurve ------" << std::endl;
   
   Handle(StepShape_OrientedEdge) theOE1, theOE2;
   Handle(StepShape_FaceBound)    theFOB1, theFOB2;
@@ -190,7 +190,7 @@ void RWStepShape_RWEdgeCurve::Check
       Standard_Boolean sharOE1 = aShto.IsShared(theOE1);
       if(!sharOE1){
 #ifdef OCCT_DEBUG
-       cout << "OrientedEdge1 not shared" <<endl;
+       std::cout << "OrientedEdge1 not shared" <<std::endl;
 #endif
       }
       else {
@@ -204,7 +204,7 @@ void RWStepShape_RWEdgeCurve::Check
          Standard_Boolean sharEL1 = aShto.IsShared(theEL1);
          if(!sharEL1) {
 #ifdef OCCT_DEBUG
-           cout << "EdgeLoop1 not shared" <<endl;
+           std::cout << "EdgeLoop1 not shared" <<std::endl;
 #endif
          }
          else {
@@ -221,7 +221,7 @@ void RWStepShape_RWEdgeCurve::Check
            }
            else {
 #ifdef OCCT_DEBUG
-             cout << "EdgeLoop not referenced by FaceBound" << endl;
+             std::cout << "EdgeLoop not referenced by FaceBound" << std::endl;
 #endif
            }
          }
@@ -229,14 +229,14 @@ void RWStepShape_RWEdgeCurve::Check
        else {
          if (nbRef == 0) {
 #ifdef OCCT_DEBUG
-           cout << "OrientedEdge not referenced" << endl;
+           std::cout << "OrientedEdge not referenced" << std::endl;
 #endif
           }
          else {
            if (aShto.NbTypedSharings(theOE1,
                                      STANDARD_TYPE(StepShape_EdgeLoop)) > 1) {
 #ifdef OCCT_DEBUG
-             cout << "OrientedEdge referenced more than once" << endl;
+             std::cout << "OrientedEdge referenced more than once" << std::endl;
 #endif
             }
           }
@@ -248,7 +248,7 @@ void RWStepShape_RWEdgeCurve::Check
       Standard_Boolean sharOE2 = aShto.IsShared(theOE2);
       if(!sharOE2){
 #ifdef OCCT_DEBUG
-       cout << "OrientedEdge2 not shared" <<endl;
+       std::cout << "OrientedEdge2 not shared" <<std::endl;
 #endif
       }
       else {
@@ -263,7 +263,7 @@ void RWStepShape_RWEdgeCurve::Check
        Standard_Boolean sharEL2 = aShto.IsShared(theEL2);
        if(!sharEL2){
 #ifdef OCCT_DEBUG
-         cout << "EdgeLoop2 not shared" <<endl;
+         std::cout << "EdgeLoop2 not shared" <<std::endl;
 #endif
        }
        else {
@@ -276,7 +276,7 @@ void RWStepShape_RWEdgeCurve::Check
          }
          else {
 #ifdef OCCT_DEBUG
-           cout << "EdgeLoop not referenced by FaceBound" << endl;
+           std::cout << "EdgeLoop not referenced by FaceBound" << std::endl;
 #endif
          }
        }
index 4d1fc2c..dd00978 100644 (file)
@@ -102,7 +102,7 @@ void RWStepShape_RWEdgeLoop::Check
    const Interface_ShareTool& ,
    Handle(Interface_Check)& ach) const
 {
-//  cout << "------ calling CheckEdgeLoop ------" << endl;
+//  std::cout << "------ calling CheckEdgeLoop ------" << std::endl;
   Standard_Boolean headToTail = Standard_True;
   //Standard_Boolean noIdentVtx = Standard_True; //szv#4:S4163:12Mar99 unused
   Standard_Integer nbEdg = ent->NbEdgeList();
index df6d20f..da7fbfe 100644 (file)
@@ -125,7 +125,7 @@ void RWStepShape_RWFaceBound::Check
        Standard_Boolean sharOE2 = aShto.IsShared(theOE2);
        if(!sharOE2){
 #ifdef OCCT_DEBUG
-         cout << "OrientedEdge2 not shared" <<endl;
+         std::cout << "OrientedEdge2 not shared" <<std::endl;
 #endif
        }
        else {
@@ -137,7 +137,7 @@ void RWStepShape_RWFaceBound::Check
          Standard_Boolean sharEL2 = aShto.IsShared(theEL2);
          if(!sharEL2){
 #ifdef OCCT_DEBUG
-           cout << "EdgeLoop2 not shared" <<endl;
+           std::cout << "EdgeLoop2 not shared" <<std::endl;
 #endif
          }
          else {
@@ -151,7 +151,7 @@ void RWStepShape_RWFaceBound::Check
            }
            else {
 #ifdef OCCT_DEBUG
-             cout << "EdgeLoop not referenced by FaceBound" << endl;
+             std::cout << "EdgeLoop not referenced by FaceBound" << std::endl;
 #endif
            }
          }
@@ -174,7 +174,7 @@ void RWStepShape_RWFaceBound::Check
   } //end if(!theEL1.IsNull)
   else {
 #ifdef OCCT_DEBUG
-    cout << "no EdgeLoop in FaceBound" << endl;
+    std::cout << "no EdgeLoop in FaceBound" << std::endl;
 #endif
   }
 }
index a9c1290..f7a5e0e 100644 (file)
@@ -226,9 +226,9 @@ Standard_Boolean RWStl_Reader::IsAscii (Standard_IStream& theStream)
   #define sscanf_l(theBuffer, theLocale, theFormat, ...) sscanf(theBuffer, theFormat, __VA_ARGS__)
 #endif
 
-// Macro to get 64-bit position of the file from streampos
+// Macro to get 64-bit position of the file from std::streampos
 #if defined(_MSC_VER) && _MSC_VER < 1700
-  // In MSVC 2010, cast of streampos to 64-bit int is implemented incorrectly;
+  // In MSVC 2010, cast of std::streampos to 64-bit int is implemented incorrectly;
   // work-around (relevant for files larger than 4 GB) is to use internal function seekpos(). 
   // Since MSVC 15.8, seekpos() is deprecated and is said to always return 0.
   #define GETPOS(aPos) aPos.seekpos()
index 8090c29..0ba8431 100644 (file)
@@ -73,7 +73,7 @@ Resource_Manager::Resource_Manager(const Standard_CString aName,
   }
   else
     if (myVerbose)
-      cout << "Resource Manager Warning: aDefaultsDirectory is empty." << endl;
+      std::cout << "Resource Manager Warning: aDefaultsDirectory is empty." << std::endl;
 
   if ( !anUserDefaultsDirectory.IsEmpty() ) {
     OSD_Path anOSDPath(anUserDefaultsDirectory);
@@ -89,7 +89,7 @@ Resource_Manager::Resource_Manager(const Standard_CString aName,
   }
   else
     if (myVerbose)
-      cout << "Resource Manager Warning: anUserDefaultsDirectory is empty." << endl;
+      std::cout << "Resource Manager Warning: anUserDefaultsDirectory is empty." << std::endl;
 }
 
 Resource_Manager::Resource_Manager(const Standard_CString aName,
@@ -111,12 +111,12 @@ Resource_Manager::Resource_Manager(const Standard_CString aName,
   if (!aPath.IsEmpty())
     Load(aPath,myRefMap);
   else if (myVerbose)
-    cout << "Resource Manager Warning: Environment variable \"CSF_" << aName << "Defaults\" not set." << endl;
+    std::cout << "Resource Manager Warning: Environment variable \"CSF_" << aName << "Defaults\" not set." << std::endl;
 
   if (!aUserPath.IsEmpty())
     Load(aUserPath,myRefMap);
   else if (myVerbose)
-    cout << "Resource Manager Warning: Environment variable \"CSF_" << aName << "UserDefaults\" not set." << endl;
+    std::cout << "Resource Manager Warning: Environment variable \"CSF_" << aName << "UserDefaults\" not set." << std::endl;
 }
 
 void Resource_Manager::Load(TCollection_AsciiString& aPath,
@@ -130,8 +130,8 @@ void Resource_Manager::Load(TCollection_AsciiString& aPath,
   File.Open(OSD_ReadOnly,OSD_Protection());
   if (File.Failed()) {
     if (myVerbose)
-      cout << "Resource Manager Warning: Cannot read file \"" << FileName
-          << "\". File not found or permission denied." << endl;
+      std::cout << "Resource Manager Warning: Cannot read file \"" << FileName
+          << "\". File not found or permission denied." << std::endl;
     return;
   }
   Standard_Integer LineNumber = 1;
@@ -147,16 +147,16 @@ void Resource_Manager::Load(TCollection_AsciiString& aPath,
       break;
     case Resource_KOL_Error:
       if (myVerbose)
-       cout << "Resource Manager: Syntax error at line "
-         << LineNumber << " in file : " << FileName << endl;
+       std::cout << "Resource Manager: Syntax error at line "
+         << LineNumber << " in file : " << FileName << std::endl;
       break;
     }
     LineNumber++;
   }
   File.Close();
   if (myVerbose)
-    cout << "Resource Manager: " << ((&aMap == &myUserMap) ? "User" : "Reference")
-         << " file \"" << FileName << "\" loaded" << endl;
+    std::cout << "Resource Manager: " << ((&aMap == &myUserMap) ? "User" : "Reference")
+         << " file \"" << FileName << "\" loaded" << std::endl;
 }
 
 static Resource_KindOfLine WhatKindOfLine(OSD_File& aFile,
@@ -185,7 +185,7 @@ static Resource_KindOfLine WhatKindOfLine(OSD_File& aFile,
   aToken1 = Line.SubString(Pos1, Pos);
 
   if (Debug)
-    cout << "Key = '" << aToken1 << flush ;
+    std::cout << "Key = '" << aToken1 << std::flush ;
 
   Pos = Line.FirstLocationNotInSet(WhiteSpace, Pos2+1, Line.Length());
   if (Pos) {
@@ -206,7 +206,7 @@ static Resource_KindOfLine WhatKindOfLine(OSD_File& aFile,
     aToken2 = Line;
   }
   if (Debug)
-    cout << "'\t Value = '" << aToken2 << "'" << endl << flush;
+    std::cout << "'\t Value = '" << aToken2 << "'" << std::endl << std::flush;
   return Resource_KOL_Resource;
 }
 
@@ -247,8 +247,8 @@ Standard_Boolean Resource_Manager::Save() const
   dir = anEnv.Value();
   if (dir.IsEmpty()) {
     if (myVerbose)
-      cout << "Resource Manager Warning: environment variable \""
-          << anEnvVar << "\" not set.  Cannot save resources." << endl ;
+      std::cout << "Resource Manager Warning: environment variable \""
+          << anEnvVar << "\" not set.  Cannot save resources." << std::endl ;
     return Standard_False;
   }
 
@@ -269,8 +269,8 @@ Standard_Boolean Resource_Manager::Save() const
     aStatus = aStatus && !Dir.Failed();
     if (!aStatus) {
       if (myVerbose)
-        cout << "Resource Manager: Error opening or creating directory \"" << aFilePath
-             << "\". Permission denied. Cannot save resources." << endl;
+        std::cout << "Resource Manager: Error opening or creating directory \"" << aFilePath
+             << "\". Permission denied. Cannot save resources." << std::endl;
       return Standard_False;
     }
   }
@@ -298,8 +298,8 @@ Standard_Boolean Resource_Manager::Save() const
   aStatus = aStatus && !File.Failed();
   if (!aStatus) {
     if (myVerbose)
-      cout << "Resource Manager: Error opening or creating file \"" << aFilePath
-           << "\". Permission denied. Cannot save resources." << endl;
+      std::cout << "Resource Manager: Error opening or creating file \"" << aFilePath
+           << "\". Permission denied. Cannot save resources." << std::endl;
     return Standard_False;
   }
 
@@ -329,12 +329,12 @@ Standard_Boolean Resource_Manager::Save() const
       Line = KeyArray(Index) + ":\t" + Value + "\n";
 
       if (Debug)
-        cout << "Line = '" << Line << "'" << endl;
+        std::cout << "Line = '" << Line << "'" << std::endl;
 
       File.Write(Line, Line.Length());
     }
     if (myVerbose)
-      cout << "Resource Manager: Resources saved in file " << aFilePath << endl;
+      std::cout << "Resource Manager: Resources saved in file " << aFilePath << std::endl;
   }
   File.Close();
   return Standard_True;
index d8d2247..2573a8d 100644 (file)
@@ -615,26 +615,26 @@ Standard_Boolean STEPCAFControl_Reader::Transfer(STEPControl_Reader &reader,
       if (!format->IsSameString(ap203, Standard_False) &&
         !format->IsSameString(ap214, Standard_False)) {
 #ifdef OCCT_DEBUG
-        cout << "Warning: STEPCAFControl_Reader::Transfer: Extern document is neither STEP AP203 nor AP214" << endl;
+        std::cout << "Warning: STEPCAFControl_Reader::Transfer: Extern document is neither STEP AP203 nor AP214" << std::endl;
 #else
         continue;
 #endif
       }
     }
 #ifdef OCCT_DEBUG
-    else cout << "Warning: STEPCAFControl_Reader::Transfer: Extern document format not defined" << endl;
+    else std::cout << "Warning: STEPCAFControl_Reader::Transfer: Extern document format not defined" << std::endl;
 #endif
 
     // get and check filename of the current extern ref
     const Standard_CString filename = ExtRefs.FileName(i);
 
 #ifdef OCCT_DEBUG
-    cout << "filename=" << filename << endl;
+    std::cout << "filename=" << filename << std::endl;
 #endif
 
     if (!filename || !filename[0]) {
 #ifdef OCCT_DEBUG
-      cout << "Warning: STEPCAFControl_Reader::Transfer: Extern reference file name is empty" << endl;
+      std::cout << "Warning: STEPCAFControl_Reader::Transfer: Extern reference file name is empty" << std::endl;
 #endif
       continue; // not a valid extern ref
     }
@@ -785,9 +785,9 @@ TDF_Label STEPCAFControl_Reader::AddShape(const TopoDS_Shape &S,
       }
 #ifdef OCCT_DEBUG
       if (!EF->GetLabel().IsNull())
-        cout << "Warning: STEPCAFControl_Reader::AddShape: Non-empty shape with external ref; ref is ignored" << endl;
+        std::cout << "Warning: STEPCAFControl_Reader::AddShape: Non-empty shape with external ref; ref is ignored" << std::endl;
       else if (nbComponents <= 0)
-        cout << "Warning: STEPCAFControl_Reader::AddShape: Result of reading extern ref is Null" << endl;
+        std::cout << "Warning: STEPCAFControl_Reader::AddShape: Result of reading extern ref is Null" << std::endl;
 #endif
     }
   }
@@ -835,7 +835,7 @@ Handle(STEPCAFControl_ExternFile) STEPCAFControl_Reader::ReadExternFile(const St
   }
 
 #ifdef OCCT_DEBUG
-  cout << "Reading extern file: " << fullname << endl;
+  std::cout << "Reading extern file: " << fullname << std::endl;
 #endif
 
   // create new WorkSession and Reader
@@ -939,7 +939,7 @@ Standard_Boolean STEPCAFControl_Reader::ReadColors(const Handle(XSControl_WorkSe
   STEPConstruct_Styles Styles(WS);
   if (!Styles.LoadStyles()) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: no styles are found in the model" << endl;
+    std::cout << "Warning: no styles are found in the model" << std::endl;
 #endif
     return Standard_False;
   }
@@ -1147,7 +1147,7 @@ TDF_Label STEPCAFControl_Reader::FindInstance(const Handle(StepRepr_NextAssembly
   Handle(Transfer_Binder) binder = TP->Find(NAUO);
   if (binder.IsNull() || !binder->HasResult()) {
 #ifdef OCCT_DEBUG
-    cout << "Error: STEPCAFControl_Reader::FindInstance: NAUO is not mapped to shape" << endl;
+    std::cout << "Error: STEPCAFControl_Reader::FindInstance: NAUO is not mapped to shape" << std::endl;
 #endif
     return L;
   }
@@ -1155,7 +1155,7 @@ TDF_Label STEPCAFControl_Reader::FindInstance(const Handle(StepRepr_NextAssembly
   TopoDS_Shape S = TransferBRep::ShapeResult(TP, binder);
   if (S.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "Error: STEPCAFControl_Reader::FindInstance: NAUO is not mapped to shape" << endl;
+    std::cout << "Error: STEPCAFControl_Reader::FindInstance: NAUO is not mapped to shape" << std::endl;
 #endif
     return L;
   }
@@ -1300,7 +1300,7 @@ Standard_Boolean STEPCAFControl_Reader::ReadValProps(const Handle(XSControl_Work
   STEPConstruct_ValidationProps Props(WS);
   if (!Props.LoadProps(props)) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: no validation props found in the model" << endl;
+    std::cout << "Warning: no validation props found in the model" << std::endl;
 #endif
     return Standard_False;
   }
@@ -1463,7 +1463,7 @@ Standard_Boolean STEPCAFControl_Reader::ReadLayers(const Handle(XSControl_WorkSe
     for (subs.Start(); subs.More(); subs.Next()) {
       if (!subs.Value()->IsKind(STANDARD_TYPE(StepVisual_Invisibility))) continue;
 #ifdef OCCT_DEBUG
-      cout << "\tLayer \"" << aLayerName << "\" is invisible" << endl;
+      std::cout << "\tLayer \"" << aLayerName << "\" is invisible" << std::endl;
 #endif
       //TDF_Label InvLayerLab = LTool->FindLayer(aLayerName);
       TDF_Label InvLayerLab = LTool->AddLayer(aLayerName); //skl for OCC3926
@@ -1537,7 +1537,7 @@ static TDF_Label setSHUOintoDoc(const Handle(XSControl_WorkSession) &WS,
   Handle(StepRepr_NextAssemblyUsageOccurrence) NUNAUO = SHUO->NextUsage();
   if (UUNAUO.IsNull() || NUNAUO.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: " << __FILE__ << ": Upper_usage or Next_usage of styled SHUO is null. Skip it" << endl;
+    std::cout << "Warning: " << __FILE__ << ": Upper_usage or Next_usage of styled SHUO is null. Skip it" << std::endl;
 #endif
     return aMainLabel;
   }
@@ -1596,7 +1596,7 @@ Standard_Boolean STEPCAFControl_Reader::ReadSHUOs(const Handle(XSControl_WorkSes
   STEPConstruct_Styles Styles(WS);
   if (!Styles.LoadStyles()) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: no styles are found in the model" << endl;
+    std::cout << "Warning: no styles are found in the model" << std::endl;
 #endif
     return Standard_False;
   }
@@ -1616,7 +1616,7 @@ Standard_Boolean STEPCAFControl_Reader::ReadSHUOs(const Handle(XSControl_WorkSes
         continue;
       // found that current style is invisible.
 #ifdef OCCT_DEBUG
-      cout << "Warning: item No " << i << "(" << style->Item()->DynamicType()->Name() << ") is invisible" << endl;
+      std::cout << "Warning: item No " << i << "(" << style->Item()->DynamicType()->Name() << ") is invisible" << std::endl;
 #endif
       IsVisible = Standard_False;
       break;
@@ -1655,7 +1655,7 @@ Standard_Boolean STEPCAFControl_Reader::ReadSHUOs(const Handle(XSControl_WorkSes
       TDF_Label aLabelForStyle = setSHUOintoDoc(WS, SHUO, STool, PDFileMap, ShapeLabelMap);
       if (aLabelForStyle.IsNull()) {
 #ifdef OCCT_DEBUG
-        cout << "Warning: " << __FILE__ << ": coudnot create SHUO structure in the document" << endl;
+        std::cout << "Warning: " << __FILE__ << ": coudnot create SHUO structure in the document" << std::endl;
 #endif
         continue;
       }
@@ -2867,7 +2867,7 @@ TDF_Label STEPCAFControl_Reader::createGDTObjectInXCAF(const Handle(Standard_Tra
             }
             if (dim1 < 0) continue;
             if (dim2 < 0) dim2 = dim1;
-            //cout<<"DimensionalSize: dim1="<<dim1<<"  dim2="<<dim2<<endl;
+            //std::cout<<"DimensionalSize: dim1="<<dim1<<"  dim2="<<dim2<<std::endl;
             // now we know edge_curve and value range therefore
             // we can create corresponding D&GT labels
             Standard_Integer index = aTP->MapIndex(EC);
@@ -2900,7 +2900,7 @@ TDF_Label STEPCAFControl_Reader::createGDTObjectInXCAF(const Handle(Standard_Tra
             STEPConstruct_UnitContext anUnitCtx;
             anUnitCtx.ComputeFactors(NU);
             dim = dim * anUnitCtx.LengthFactor();
-            //cout<<"GeometricTolerance: Magnitude = "<<dim<<endl;
+            //std::cout<<"GeometricTolerance: Magnitude = "<<dim<<std::endl;
             Handle(TColStd_HArray1OfReal) arr = new TColStd_HArray1OfReal(1, 1);
             arr->SetValue(1, dim);
             Handle(TCollection_HAsciiString) aName = GT->Name();
@@ -2947,7 +2947,7 @@ TDF_Label STEPCAFControl_Reader::createGDTObjectInXCAF(const Handle(Standard_Tra
               else if (GTWDR->IsKind(STANDARD_TYPE(StepDimTol_PerpendicularityTolerance))) kind = 29;
               else if (GTWDR->IsKind(STANDARD_TYPE(StepDimTol_SymmetryTolerance)))         kind = 30;
               else if (GTWDR->IsKind(STANDARD_TYPE(StepDimTol_TotalRunoutTolerance)))      kind = 31;
-              //cout<<"GTWDR: kind="<<kind<<endl;
+              //std::cout<<"GTWDR: kind="<<kind<<std::endl;
               TDF_Label TolerL = aDGTTool->SetDimTol(shL, kind, arr, aName, aDescription);
               ReadDatums(aSTool, aDGTTool, aGraph, aTP, TolerL, GTWDR);
             }
index 8fb1496..c89fee4 100644 (file)
@@ -349,7 +349,7 @@ IFSelect_ReturnStatus STEPCAFControl_Writer::Write (const Standard_CString filen
     TCollection_AsciiString fname = OSD_Path::AbsolutePath ( dpath, EF->GetName()->String() );
     if ( fname.Length() <= 0 ) fname = EF->GetName()->String();
 #ifdef OCCT_DEBUG
-    cout << "Writing external file: " << fname.ToCString() << endl;
+    std::cout << "Writing external file: " << fname.ToCString() << std::endl;
 #endif
     
     EF->SetWriteStatus ( EF->GetWS()->SendAll ( fname.ToCString() ) );
@@ -829,7 +829,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteExternRefs (const Handle(XSControl_
     Handle(TransferBRep_ShapeMapper) mapper = TransferBRep::ShapeMapper ( FP, S );
     if ( ! FP->FindTypedTransient ( mapper, STANDARD_TYPE(StepShape_ShapeDefinitionRepresentation), SDR ) ) {
 #ifdef OCCT_DEBUG
-      cout << "Warning: Cannot find SDR for " << S.TShape()->DynamicType()->Name() << endl;
+      std::cout << "Warning: Cannot find SDR for " << S.TShape()->DynamicType()->Name() << std::endl;
 #endif
       continue;
     }
@@ -841,7 +841,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteExternRefs (const Handle(XSControl_
     Handle(StepRepr_PropertyDefinition) aPropDef = RD.PropertyDefinition();
     if (aPropDef.IsNull()) {
 #ifdef OCCT_DEBUG
-      cout << "Warning: STEPCAFControl_Writer::WriteExternRefs StepRepr_PropertyDefinition is null for " << S.TShape()->DynamicType()->Name() << endl;
+      std::cout << "Warning: STEPCAFControl_Writer::WriteExternRefs StepRepr_PropertyDefinition is null for " << S.TShape()->DynamicType()->Name() << std::endl;
 #endif
       continue;
     }
@@ -849,7 +849,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteExternRefs (const Handle(XSControl_
     Handle(StepBasic_ProductDefinition) PD = CharDef.ProductDefinition();
     if (PD.IsNull()) {
 #ifdef OCCT_DEBUG
-      cout << "Warning: STEPCAFControl_Writer::WriteExternRefs StepBasic_ProductDefinition is null for " << S.TShape()->DynamicType()->Name() << endl;
+      std::cout << "Warning: STEPCAFControl_Writer::WriteExternRefs StepBasic_ProductDefinition is null for " << S.TShape()->DynamicType()->Name() << std::endl;
 #endif
       continue;
     }
@@ -1082,7 +1082,7 @@ static void MakeSTEPStyles (STEPConstruct_Styles &Styles,
       TColStd_SequenceOfTransient seqRI;
       Standard_Integer nb = FindEntities ( Styles.FinderProcess(), S, L, seqRI );
 #ifdef OCCT_DEBUG
-      if ( nb <=0 ) cout << "Warning: Cannot find RI for " << S.TShape()->DynamicType()->Name() << endl;
+      if ( nb <=0 ) std::cout << "Warning: Cannot find RI for " << S.TShape()->DynamicType()->Name() << std::endl;
 #endif
       //Get overridden style gka 10.06.03
       if ( isComponent && nb) 
@@ -1176,8 +1176,8 @@ Standard_Boolean STEPCAFControl_Writer::WriteColors (const Handle(XSControl_Work
     // are not supported (it is not clear how to encode that in STEP)
     if ( XCAFDoc_ShapeTool::IsAssembly ( L ) ) {
 #ifdef OCCT_DEBUG
-      cout << "Warning: Cannot write color  for Assembly" << endl;
-      cout << "Info: Check for colors assigned to components in assembly" << endl;
+      std::cout << "Warning: Cannot write color  for Assembly" << std::endl;
+      std::cout << "Info: Check for colors assigned to components in assembly" << std::endl;
 #endif
       // PTV 22.01.2003 Write color for instances.
       TDF_LabelSequence compLabels;
@@ -1262,7 +1262,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteColors (const Handle(XSControl_Work
     if (!isComponent) {
       if ( myMapCompMDGPR.IsBound( aTopSh )) {
 #ifdef OCCT_DEBUG
-        cerr << "Error: Current Top-Level shape have MDGPR already " << endl;
+        std::cerr << "Error: Current Top-Level shape have MDGPR already " << std::endl;
 #endif
       }
       Styles.CreateMDGPR ( Context, aMDGPR );
@@ -1371,7 +1371,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteNames (const Handle(XSControl_WorkS
     Handle(TransferBRep_ShapeMapper) mapper = TransferBRep::ShapeMapper ( FP, S );
     if ( ! FP->FindTypedTransient ( mapper, STANDARD_TYPE(StepShape_ShapeDefinitionRepresentation), SDR ) ) {
 #ifdef OCCT_DEBUG
-      cout << "Warning: Cannot find SDR for " << S.TShape()->DynamicType()->Name() << endl;
+      std::cout << "Warning: Cannot find SDR for " << S.TShape()->DynamicType()->Name() << std::endl;
 #endif
       continue;
     }
@@ -1607,7 +1607,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteLayers (const Handle(XSControl_Work
       Standard_Integer nb = 
        FindEntities ( FP, oneShape, Loc, seqRI );
       if ( nb <=0 ) 
-       FP->Messenger() << "Warning: Cannot find RI for " << oneShape.TShape()->DynamicType()->Name() << endl;
+       FP->Messenger() << "Warning: Cannot find RI for " << oneShape.TShape()->DynamicType()->Name() << Message_EndLine;
     }
     if ( seqRI.Length() <= 0 ) continue;
 
@@ -1619,7 +1619,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteLayers (const Handle(XSControl_Work
     if (L.FindAttribute(XCAFDoc::InvisibleGUID(), aUAttr)) {
       descr = new TCollection_HAsciiString ("invisible");
 #ifdef OCCT_DEBUG
-      FP->Messenger() << "\tLayer \"" << hName->String().ToCString() << "\" is invisible"<<endl;
+      FP->Messenger() << "\tLayer \"" << hName->String().ToCString() << "\" is invisible"<<Message_EndLine;
 #endif
       isLinv = Standard_True;
     }
@@ -1788,7 +1788,7 @@ static Standard_Boolean writeSHUO (const Handle(XCAFDoc_GraphNode)& theSHUO,
     // store SHUO recursive
 #ifdef OCCT_DEBUG
     if ( aNextUsageLabs.Length() > 1 )
-      cout << "Warning: store only one next_usage of current SHUO"  << endl;
+      std::cout << "Warning: store only one next_usage of current SHUO"  << std::endl;
 #endif    
     theSTool->GetSHUO( aNextUsageLabs.Value(1), NuSHUO );
     Handle(StepRepr_SpecifiedHigherUsageOccurrence) aNUEntSHUO =
@@ -1807,7 +1807,7 @@ static Standard_Boolean writeSHUO (const Handle(XCAFDoc_GraphNode)& theSHUO,
     if (!getProDefinitionOfNAUO( WS, aUUSh, nullPD, UUNAUO, Standard_True ) ||
         !getProDefinitionOfNAUO( WS, aNUSh, aRelatedPD, NUNAUO, Standard_False )) {
 #ifdef OCCT_DEBUG
-      cout << "Warning: cannot get related or relating PD" << endl;
+      std::cout << "Warning: cannot get related or relating PD" << std::endl;
 #endif
       return Standard_False;
     }
@@ -1892,7 +1892,7 @@ static Standard_Boolean createSHUOStyledItem (const XCAFPrs_Style& style,
   FindEntities ( FP, Sh, L, seqRI );
 #ifdef OCCT_DEBUG
   if ( seqRI.Length() <=0 ) 
-    FP->Messenger() << "Warning: Cannot find RI for " << Sh.TShape()->DynamicType()->Name() << endl;
+    FP->Messenger() << "Warning: Cannot find RI for " << Sh.TShape()->DynamicType()->Name() << Message_EndLine;
 #endif
   item = Handle(StepRepr_RepresentationItem)::DownCast(seqRI(1));
   //get overridden styled item
@@ -1908,7 +1908,7 @@ static Standard_Boolean createSHUOStyledItem (const XCAFPrs_Style& style,
   if ( !aTopSh.IsNull() &&  !myMapCompMDGPR.IsBound( aTopSh ) ) {
     // create MDGPR and record it in model
 #ifdef OCCT_DEBUG
-    cout << "Warning: " << __FILE__ << ": Create new MDGPR for SHUO instance"  << endl;
+    std::cout << "Warning: " << __FILE__ << ": Create new MDGPR for SHUO instance"  << std::endl;
 #endif
     Handle(StepVisual_MechanicalDesignGeometricPresentationRepresentation) aMDGPR;
     Styles.CreateMDGPR ( Context, aMDGPR );
@@ -1939,7 +1939,7 @@ static Standard_Boolean createSHUOStyledItem (const XCAFPrs_Style& style,
   else {
     WS->Model()->AddWithRefs ( STEPstyle ); // add as root to the model, but it is not good
 #ifdef OCCT_DEBUG
-    cout << "Warning: " << __FILE__ << ": adds styled item of SHUO as root, casue cannot find MDGPR" << endl;
+    std::cout << "Warning: " << __FILE__ << ": adds styled item of SHUO as root, casue cannot find MDGPR" << std::endl;
 #endif
   }
   // create invisibility item for the styled item
@@ -2011,7 +2011,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteSHUOs (const Handle(XSControl_WorkS
           XCAFPrs_Style SHUOstyle;
           if ( !getSHUOstyle ( aSHUOlab, CTool, SHUOstyle ) ) {
 #ifdef OCCT_DEBUG
-            cout << "Warning: " << __FILE__ << ": do not store SHUO without any style to the STEP model" << endl;
+            std::cout << "Warning: " << __FILE__ << ": do not store SHUO without any style to the STEP model" << std::endl;
 #endif
             continue;
           }
@@ -2024,13 +2024,13 @@ Standard_Boolean STEPCAFControl_Writer::WriteSHUOs (const Handle(XSControl_WorkS
           writeSHUO( aSHUO, CTool->ShapeTool(), WS, anEntOfSHUO, NAUOShape, aRelatingPD, isDeepest );
           if ( anEntOfSHUO.IsNull() || NAUOShape.IsNull() ) {
 #ifdef OCCT_DEBUG
-            cout << "Warning: " << __FILE__ << ": Cannot store SHUO" << endl;
+            std::cout << "Warning: " << __FILE__ << ": Cannot store SHUO" << std::endl;
 #endif
             continue;
           }
           // create new Product Definition Shape for TOP SHUO
 #ifdef OCCT_DEBUG
-            cout << "Info: " << __FILE__ << ": Create NEW PDS for current SHUO " << endl;
+            std::cout << "Info: " << __FILE__ << ": Create NEW PDS for current SHUO " << std::endl;
 #endif
           Handle(StepRepr_ProductDefinitionShape) PDS = new StepRepr_ProductDefinitionShape;
           Handle(TCollection_HAsciiString) aPDSname = new TCollection_HAsciiString("SHUO");
@@ -2320,7 +2320,7 @@ Handle(StepRepr_ShapeAspect) STEPCAFControl_Writer::WriteShapeAspect (const Hand
   TColStd_SequenceOfTransient aSeqRI;
   FindEntities( FP, theShape, aLoc, aSeqRI );
   if ( aSeqRI.Length() <= 0 ) {
-    FP->Messenger() << "Warning: Cannot find RI for "<<theShape.TShape()->DynamicType()->Name()<<endl;
+    FP->Messenger() << "Warning: Cannot find RI for "<<theShape.TShape()->DynamicType()->Name()<<Message_EndLine;
     return NULL;
   }
 
@@ -2492,7 +2492,7 @@ Handle(StepDimTol_Datum) STEPCAFControl_Writer::WriteDatumAP242(const Handle(XSC
     aShape = XCAFDoc_ShapeTool::GetShape(theShapeL.Value(i));
     FindEntities(FP, aShape, aLoc, aSeqRI);
     if (aSeqRI.Length() <= 0) {
-      FP->Messenger() << "Warning: Cannot find RI for " << aShape.TShape()->DynamicType()->Name() << endl;
+      FP->Messenger() << "Warning: Cannot find RI for " << aShape.TShape()->DynamicType()->Name() << Message_EndLine;
       continue;
     }
     anEnt = aSeqRI.Value(1);
@@ -3404,7 +3404,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteDGTs (const Handle(XSControl_WorkSe
     TColStd_SequenceOfTransient seqRI;
     FindEntities( FP, aShape, Loc, seqRI );
     if ( seqRI.Length() <= 0 ) {
-      FP->Messenger() << "Warning: Cannot find RI for "<<aShape.TShape()->DynamicType()->Name()<<endl;
+      FP->Messenger() << "Warning: Cannot find RI for "<<aShape.TShape()->DynamicType()->Name()<<Message_EndLine;
       continue;
     }
     Handle(StepRepr_ProductDefinitionShape) PDS;
@@ -3414,7 +3414,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteDGTs (const Handle(XSControl_WorkSe
     Handle(StepShape_EdgeCurve) EC;
     FindPDSforDGT(aGraph,ent,PDS,RC,AF,EC);
     if(PDS.IsNull()) continue;
-    //cout<<"Model->Number(PDS)="<<Model->Number(PDS)<<endl;
+    //std::cout<<"Model->Number(PDS)="<<Model->Number(PDS)<<std::endl;
     Handle(XCAFDoc_Datum) DatumAttr;
     if(!DatumL.FindAttribute(XCAFDoc_Datum::GetID(),DatumAttr)) continue;
     Handle(TCollection_HAsciiString) aName = DatumAttr->GetName();
@@ -3486,7 +3486,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteDGTs (const Handle(XSControl_WorkSe
     TColStd_SequenceOfTransient seqRI;
     FindEntities( FP, aShape, Loc, seqRI );
     if ( seqRI.Length() <= 0 ) {
-      FP->Messenger() << "Warning: Cannot find RI for "<<aShape.TShape()->DynamicType()->Name()<<endl;
+      FP->Messenger() << "Warning: Cannot find RI for "<<aShape.TShape()->DynamicType()->Name()<<Message_EndLine;
       continue;
     }
     Handle(StepRepr_ProductDefinitionShape) PDS;
@@ -3496,7 +3496,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteDGTs (const Handle(XSControl_WorkSe
     Handle(StepShape_EdgeCurve) EC;
     FindPDSforDGT(aGraph,ent,PDS,RC,AF,EC);
     if(PDS.IsNull()) continue;
-    //cout<<"Model->Number(PDS)="<<Model->Number(PDS)<<endl;
+    //std::cout<<"Model->Number(PDS)="<<Model->Number(PDS)<<std::endl;
 
     Handle(XCAFDoc_DimTol) DimTolAttr;
     if(!DimTolL.FindAttribute(XCAFDoc_DimTol::GetID(),DimTolAttr)) continue;
index 16a1063..dd704c7 100644 (file)
@@ -42,8 +42,8 @@ Handle(StepRepr_RepresentationItem) STEPConstruct::FindEntity (const Handle(Tran
   Handle(TransferBRep_ShapeMapper) mapper = TransferBRep::ShapeMapper ( FinderProcess, Shape );
   FinderProcess->FindTypedTransient (mapper,STANDARD_TYPE(StepRepr_RepresentationItem), item);
 #ifdef OCCT_DEBUG
-  if ( item.IsNull() ) cout << Shape.TShape()->DynamicType()->Name() << ": RepItem not found" << endl;
-  else cout << Shape.TShape()->DynamicType()->Name() << ": RepItem found: " << item->DynamicType()->Name() << endl;
+  if ( item.IsNull() ) std::cout << Shape.TShape()->DynamicType()->Name() << ": RepItem not found" << std::endl;
+  else std::cout << Shape.TShape()->DynamicType()->Name() << ": RepItem found: " << item->DynamicType()->Name() << std::endl;
 #endif
   return item;
 }
@@ -69,9 +69,9 @@ Handle(StepRepr_RepresentationItem) STEPConstruct::FindEntity (const Handle(Tran
       FinderProcess->FindTypedTransient (mapper,STANDARD_TYPE(StepRepr_RepresentationItem), item);
   }
 #ifdef OCCT_DEBUG
-  if ( item.IsNull() ) cout << Shape.TShape()->DynamicType()->Name() << ": RepItem not found" << endl;
-  else if ( Loc != Shape.Location() ) cout << Shape.TShape()->DynamicType()->Name() << ": RepItem found for shape without location: " << item->DynamicType()->Name() << endl;
-  else cout << Shape.TShape()->DynamicType()->Name() << ": RepItem found: " << item->DynamicType()->Name() << endl;
+  if ( item.IsNull() ) std::cout << Shape.TShape()->DynamicType()->Name() << ": RepItem not found" << std::endl;
+  else if ( Loc != Shape.Location() ) std::cout << Shape.TShape()->DynamicType()->Name() << ": RepItem found for shape without location: " << item->DynamicType()->Name() << std::endl;
+  else std::cout << Shape.TShape()->DynamicType()->Name() << ": RepItem found: " << item->DynamicType()->Name() << std::endl;
 #endif  
   return item;
 }
index 9c511fb..5bfbed9 100644 (file)
@@ -189,7 +189,7 @@ Standard_Boolean STEPConstruct_Assembly::CheckSRRReversesNAUO(const Interface_Gr
          ( CDSR->RepresentedProductRelation()->Definition().ProductDefinitionRelationship() );
   if ( nauo.IsNull() ) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: No NAUO found in CDSR !" << endl;
+    std::cout << "Warning: No NAUO found in CDSR !" << std::endl;
 #endif
     return Standard_False;
   }
@@ -235,15 +235,15 @@ Standard_Boolean STEPConstruct_Assembly::CheckSRRReversesNAUO(const Interface_Gr
   }
 
 #ifdef OCCT_DEBUG
-  cout << "Warning: SRR and NAUO are incompatible" << endl;
-//  cout << "NAUO = " << Model->StringLabel(nauo)->ToCString() << 
-//       ",\tCDSR = " << Model->StringLabel(CDSR)->ToCString() << endl;
-//  cout << "Rep1 = " << Model->StringLabel(rep1)->ToCString() << 
-//       ",\tRep2 = " << Model->StringLabel(rep2)->ToCString() << endl;
-//  cout << "PD1  = " << Model->StringLabel(pd1)->ToCString() << 
-//       ",\tPD2  = " << Model->StringLabel(pd2)->ToCString() << endl;
-//  cout << "Rel1 = " << Model->StringLabel(nauo->RelatingProductDefinition())->ToCString() << 
-//       ",\tRel2 = " << Model->StringLabel(nauo->RelatedProductDefinition())->ToCString() << endl;
+  std::cout << "Warning: SRR and NAUO are incompatible" << std::endl;
+//  std::cout << "NAUO = " << Model->StringLabel(nauo)->ToCString() << 
+//       ",\tCDSR = " << Model->StringLabel(CDSR)->ToCString() << std::endl;
+//  std::cout << "Rep1 = " << Model->StringLabel(rep1)->ToCString() << 
+//       ",\tRep2 = " << Model->StringLabel(rep2)->ToCString() << std::endl;
+//  std::cout << "PD1  = " << Model->StringLabel(pd1)->ToCString() << 
+//       ",\tPD2  = " << Model->StringLabel(pd2)->ToCString() << std::endl;
+//  std::cout << "Rel1 = " << Model->StringLabel(nauo->RelatingProductDefinition())->ToCString() << 
+//       ",\tRel2 = " << Model->StringLabel(nauo->RelatedProductDefinition())->ToCString() << std::endl;
 #endif
 
   if ( pd2 == nauo->RelatedProductDefinition() || //:k3 abv 25 Nov 98: rp1sd.stp - bad assemblies
index a4cb702..565e13d 100644 (file)
@@ -312,7 +312,7 @@ Handle(StepRepr_RepresentationContext) STEPConstruct_Styles::FindContext (const
   Handle(StepShape_ShapeRepresentation) sr;
   if ( FinderProcess()->FindTypedTransient (mapper,STANDARD_TYPE(StepShape_ShapeRepresentation), sr) ) {
 #ifdef OCCT_DEBUG
-//    cout << "Context of " << Shape.TShape()->DynamicType()->Name() << ": SR found: " << sr->DynamicType()->Name() << endl;
+//    std::cout << "Context of " << Shape.TShape()->DynamicType()->Name() << ": SR found: " << sr->DynamicType()->Name() << std::endl;
 #endif
     Context = sr->ContextOfItems();
   }
@@ -320,12 +320,12 @@ Handle(StepRepr_RepresentationContext) STEPConstruct_Styles::FindContext (const
     Handle(StepGeom_GeometricRepresentationItem) item;
     if ( FinderProcess()->FindTypedTransient (mapper,STANDARD_TYPE(StepGeom_GeometricRepresentationItem), item) ) {
 #ifdef OCCT_DEBUG
-//      cout << "Context of " << Shape.TShape()->DynamicType()->Name() << ": GeomRepItem found: " << item->DynamicType()->Name() << endl;
+//      std::cout << "Context of " << Shape.TShape()->DynamicType()->Name() << ": GeomRepItem found: " << item->DynamicType()->Name() << std::endl;
 #endif
       Interface_EntityIterator subs = Graph().Sharings(item);
       for (subs.Start(); Context.IsNull() && subs.More(); subs.Next()) {
 #ifdef OCCT_DEBUG
-//     cout << "Parsing back refs: found " << subs.Value()->DynamicType()->Name() << endl;
+//     std::cout << "Parsing back refs: found " << subs.Value()->DynamicType()->Name() << std::endl;
 #endif
        if ( ! subs.Value()->IsKind(STANDARD_TYPE(StepShape_ShapeRepresentation)) ) continue;
        sr = Handle(StepShape_ShapeRepresentation)::DownCast ( subs.Value() );
@@ -335,7 +335,7 @@ Handle(StepRepr_RepresentationContext) STEPConstruct_Styles::FindContext (const
   }
 #ifdef OCCT_DEBUG
   if ( Context.IsNull() ) {
-    cout << Shape.TShape()->DynamicType()->Name() << ": Cannot find context" << endl;
+    std::cout << Shape.TShape()->DynamicType()->Name() << ": Cannot find context" << std::endl;
   }
 #endif
 
@@ -495,7 +495,7 @@ Handle(StepVisual_PresentationStyleAssignment) STEPConstruct_Styles::MakeColorPS
   
   if ( items.Length() <1 ) {
 #ifdef OCCT_DEBUG
-    cout << "Error: no color is supplied" << endl;
+    std::cout << "Error: no color is supplied" << std::endl;
 #endif
     return PSA;
   }
@@ -724,7 +724,7 @@ Standard_Boolean STEPConstruct_Styles::DecodeColor (const Handle(StepVisual_Colo
     else if ( name.IsEqual ( "white"   ) ) Col.SetValues ( Quantity_NOC_WHITE );
     else {
 #ifdef OCCT_DEBUG
-      cout << "Error: color name \"" << name << "\" is not recognized" << endl;
+      std::cout << "Error: color name \"" << name << "\" is not recognized" << std::endl;
 #endif
       return Standard_False;
     }
index 1de10cf..461b0b1 100644 (file)
@@ -235,7 +235,7 @@ Standard_Boolean STEPConstruct_UnitContext::SiUnitNameFactor(const Handle(StepBa
   case StepBasic_sunSteradian: 
     return Standard_True;
   default:
-//     cout << "Unknown SiUnitName : " << aSiUnit->Name() << endl;
+//     std::cout << "Unknown SiUnitName : " << aSiUnit->Name() << std::endl;
     return Standard_False;
   }
 }
@@ -260,7 +260,7 @@ Standard_Integer STEPConstruct_UnitContext::ComputeFactors(const Handle(StepRepr
   
   if (aContext.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout<<" -- STEPConstruct_UnitContext:ComputeFactor, Context undefined -> default"<<endl;
+    std::cout<<" -- STEPConstruct_UnitContext:ComputeFactor, Context undefined -> default"<<std::endl;
 #endif
     return 1;
   }
@@ -274,7 +274,7 @@ Standard_Integer STEPConstruct_UnitContext::ComputeFactors(const Handle(StepRepr
     status = ComputeFactors(theNamedUnit);
 #ifdef OCCT_DEBUG
     if(status == -1)
-      cout << " -- STEPConstruct_UnitContext:ComputeFactor: Unit item no." << i << " is not recognized" << endl;
+      std::cout << " -- STEPConstruct_UnitContext:ComputeFactor: Unit item no." << i << " is not recognized" << std::endl;
 #endif    
   }
   return status;
@@ -327,11 +327,11 @@ Standard_Integer STEPConstruct_UnitContext::ComputeFactors(const Handle(StepBasi
        }
        // Treat the SiUnitName
        if (!SiUnitNameFactor(theSIU,theSIUNF)) status = 11; // et continue
-       //cout << "The SiUnitNameFactor is :";
-       //cout << theSIUNF << endl;
+       //std::cout << "The SiUnitNameFactor is :";
+       //std::cout << theSIUNF << std::endl;
       }
       else {
-       //      cout << "Recursive algo required - Aborted" << endl;
+       //      std::cout << "Recursive algo required - Aborted" << std::endl;
        return 3;
       }
       Standard_Real theMVAL = theMWU->ValueComponent();
@@ -344,7 +344,7 @@ Standard_Integer STEPConstruct_UnitContext::ComputeFactors(const Handle(StepBasi
     else {
       status = 14;
 #ifdef OCCT_DEBUG
-      cout << "Error in the file : parameter double defined" << endl;
+      std::cout << "Error in the file : parameter double defined" << std::endl;
 #endif
     }
   }    
@@ -369,7 +369,7 @@ Standard_Integer STEPConstruct_UnitContext::ComputeFactors(const Handle(StepBasi
     else {
       status = 14;
 #ifdef OCCT_DEBUG
-      cout << "Error in the file : parameter double defined" << endl;
+      std::cout << "Error in the file : parameter double defined" << std::endl;
 #endif
     }
   }
@@ -377,7 +377,7 @@ Standard_Integer STEPConstruct_UnitContext::ComputeFactors(const Handle(StepBasi
   // Defining a type of unit
   if(!parameterDone) {
 #ifdef OCCT_DEBUG
-    cout << "Unit Type not implemented" << endl;
+    std::cout << "Unit Type not implemented" << std::endl;
 #endif 
     return 0;
   }
@@ -394,7 +394,7 @@ Standard_Integer STEPConstruct_UnitContext::ComputeFactors(const Handle(StepBasi
     else {
       status = 14;
 #ifdef OCCT_DEBUG
-      cout << "Error in the file : LengthFactor double defined" << endl;
+      std::cout << "Error in the file : LengthFactor double defined" << std::endl;
 #endif    
     }
   }  // end of LengthUnit
@@ -455,7 +455,7 @@ Standard_Integer STEPConstruct_UnitContext::ComputeTolerance
     Handle(StepBasic_UncertaintyMeasureWithUnit) aUMWU = aContext->UncertaintyValue(un);
     if (aUMWU.IsNull()) {
 #ifdef OCCT_DEBUG
-      cout<<"BAD Uncertainty Measure with Units, n0."<<un<<endl;
+      std::cout<<"BAD Uncertainty Measure with Units, n0."<<un<<std::endl;
 #endif
       continue;
     }
@@ -485,7 +485,7 @@ Standard_Integer STEPConstruct_UnitContext::ComputeTolerance
   }
 
 #ifdef OCCT_DEBUG
-  if (hasUncertainty) cout << "UNCERTAINTY read as " << theUncertainty << endl;
+  if (hasUncertainty) std::cout << "UNCERTAINTY read as " << theUncertainty << std::endl;
 #endif
   return status;
 }
index 8172591..0ad3cf5 100644 (file)
@@ -149,11 +149,11 @@ Standard_Boolean STEPConstruct_ValidationProps::FindTarget (const TopoDS_Shape &
         Context = CDSR->RepresentationRelation()->Rep2()->ContextOfItems();
       }
 #ifdef OCCT_DEBUG
-      else cout << "INSTANCE: CDRS from NAUO NOT found" << endl;
+      else std::cout << "INSTANCE: CDRS from NAUO NOT found" << std::endl;
 #endif
     }
 #ifdef OCCT_DEBUG
-    else cout << "INSTANCE: NAUO NOT found" << endl;
+    else std::cout << "INSTANCE: NAUO NOT found" << std::endl;
 #endif
 */
   }
@@ -169,12 +169,12 @@ Standard_Boolean STEPConstruct_ValidationProps::FindTarget (const TopoDS_Shape &
       }
       target.SetValue ( PDS );
 #ifdef OCCT_DEBUG
-//      cout << "COMPOUND: SDR found: " << sdr->DynamicType()->Name() << endl;
+//      std::cout << "COMPOUND: SDR found: " << sdr->DynamicType()->Name() << std::endl;
 #endif
     }
     else {
 #ifdef OCCT_DEBUG
-      cout << "COMPOUND: ProdDef NOT found" << endl;
+      std::cout << "COMPOUND: ProdDef NOT found" << std::endl;
 #endif
       Handle(StepShape_ShapeRepresentation) SR;
       if(FinderProcess()->FindTypedTransient(mapper,STANDARD_TYPE(StepShape_ShapeRepresentation),SR)) {
@@ -220,14 +220,14 @@ Standard_Boolean STEPConstruct_ValidationProps::FindTarget (const TopoDS_Shape &
     Handle(StepGeom_GeometricRepresentationItem) item;
     if ( FinderProcess()->FindTypedTransient (mapper,STANDARD_TYPE(StepGeom_GeometricRepresentationItem), item) ) {
 #ifdef OCCT_DEBUG
-//      cout << Shape.TShape()->DynamicType()->Name() << ": GeomRepItem found: " << item->DynamicType()->Name() << endl;
+//      std::cout << Shape.TShape()->DynamicType()->Name() << ": GeomRepItem found: " << item->DynamicType()->Name() << std::endl;
 #endif
       // find PDS (GRI <- SR <- SDR -> PDS)
       Handle(StepRepr_ProductDefinitionShape) PDS;
       Interface_EntityIterator subs = Graph().Sharings(item);
       for (subs.Start(); PDS.IsNull() && subs.More(); subs.Next()) {
 #ifdef OCCT_DEBUG
-//     cout << "Parsing back refs: found " << subs.Value()->DynamicType()->Name() << endl;
+//     std::cout << "Parsing back refs: found " << subs.Value()->DynamicType()->Name() << std::endl;
 #endif
         if ( ! subs.Value()->IsKind(STANDARD_TYPE(StepShape_ShapeRepresentation)) ) continue;
         Handle(StepShape_ShapeRepresentation) sr = 
@@ -262,7 +262,7 @@ Standard_Boolean STEPConstruct_ValidationProps::FindTarget (const TopoDS_Shape &
 //     if ( ! FinderProcess()->FindTypedTransient (mapper,STANDARD_TYPE(StepRepr_ShapeAspect), aspect ) ||
 //          aspect->OfShape() != PDS )
 #ifdef OCCT_DEBUG
-          cout << Shape.TShape()->DynamicType()->Name() << ": SHAPE_ASPECT NOT found, creating" << endl;
+          std::cout << Shape.TShape()->DynamicType()->Name() << ": SHAPE_ASPECT NOT found, creating" << std::endl;
 #endif
          // create aspect and all related data
           Handle(TCollection_HAsciiString) AspectName = new TCollection_HAsciiString ( "" );
@@ -299,7 +299,7 @@ Standard_Boolean STEPConstruct_ValidationProps::FindTarget (const TopoDS_Shape &
        // SHAPE_ASPECT found, but we also need context: FIND IT !!!!
         else { 
 #ifdef OCCT_DEBUG
-          cout << Shape.TShape()->DynamicType()->Name() << ": SHAPE_ASPECT found" << endl;
+          std::cout << Shape.TShape()->DynamicType()->Name() << ": SHAPE_ASPECT found" << std::endl;
 #endif
           Handle(StepRepr_ProductDefinitionShape) aPDS = aspect->OfShape();
           Interface_EntityIterator asubs = Graph().Sharings(aPDS);
@@ -314,11 +314,11 @@ Standard_Boolean STEPConstruct_ValidationProps::FindTarget (const TopoDS_Shape &
         if ( ! aspect.IsNull() ) target.SetValue ( aspect );
       }
 #ifdef OCCT_DEBUG
-      else  cout << Shape.TShape()->DynamicType()->Name() << ": PDS NOT found, fail to create SHAPE_ASPECT" << endl;
+      else  std::cout << Shape.TShape()->DynamicType()->Name() << ": PDS NOT found, fail to create SHAPE_ASPECT" << std::endl;
 #endif
     }
 #ifdef OCCT_DEBUG
-    else cout << Shape.TShape()->DynamicType()->Name() << ": GeomRepItem NOT found" << endl;
+    else std::cout << Shape.TShape()->DynamicType()->Name() << ": GeomRepItem NOT found" << std::endl;
 #endif
   }
 
@@ -533,7 +533,7 @@ Handle(StepBasic_ProductDefinition) STEPConstruct_ValidationProps::GetPropPD (co
       Handle(Message_Messenger) sout = Message::DefaultMessenger();
       sout << "Error: Cannot find target entity (SA) for geometric_validation_property "; 
       Model()->PrintLabel ( PD, sout ); 
-      sout << endl;
+      sout << Message_EndLine;
 #endif
       return ProdDef;
     }
@@ -558,7 +558,7 @@ Handle(StepBasic_ProductDefinition) STEPConstruct_ValidationProps::GetPropPD (co
     Handle(Message_Messenger) sout = Message::DefaultMessenger();
     sout << "Error: Cannot find target entity (SDR) for geometric_validation_property "; 
     Model()->PrintLabel ( PD, sout ); 
-    sout << endl;
+    sout << Message_EndLine;
   }
 #endif
   return ProdDef;
@@ -611,7 +611,7 @@ TopoDS_Shape STEPConstruct_ValidationProps::GetPropShape (const Handle(StepBasic
     Handle(Message_Messenger) sout = Message::DefaultMessenger();
     sout << "Warning: Entity "; 
     Model()->PrintLabel ( ProdDef, sout ); 
-    sout << " is not mapped to shape" << endl;
+    sout << " is not mapped to shape" << Message_EndLine;
   }
 #endif
   return S;
@@ -682,7 +682,7 @@ Standard_Boolean STEPConstruct_ValidationProps::GetPropReal (const Handle(StepRe
   else if ( Name == "VOLUME_MEASURE" ) isArea = Standard_False; 
   else {
 #ifdef OCCT_DEBUG
-    cout << "Warning: Measure " << Model()->StringLabel ( M )->String() << " is neither area not volume" << endl;
+    std::cout << "Warning: Measure " << Model()->StringLabel ( M )->String() << " is neither area not volume" << std::endl;
 #endif
     return Standard_False;
   }
@@ -705,7 +705,7 @@ Standard_Boolean STEPConstruct_ValidationProps::GetPropPnt (const Handle(StepRep
   Handle(StepGeom_CartesianPoint) P = Handle(StepGeom_CartesianPoint)::DownCast ( item );
   if ( P.IsNull() || P->NbCoordinates() != 3 ) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: Point " << Model()->StringLabel ( P )->String() << " is not valid for centroid" << endl;
+    std::cout << "Warning: Point " << Model()->StringLabel ( P )->String() << " is not valid for centroid" << std::endl;
 #endif
     return Standard_False;;
   }
index 11fece1..37463e7 100644 (file)
@@ -176,15 +176,15 @@ static void DumpWhatIs(const TopoDS_Shape& S) {
     }
   }
 
-  cout << "//What is?// NB COMPOUNDS: " << nbCompounds << endl;
-  cout << "//What is?// NB SOLIDS: " << nbSolids << endl;
-  cout << "//What is?// NB SHELLS: " << nbShells << endl;
-  cout << "//What is?//    OPEN SHELLS: " << nbOpenShells << endl;
-  cout << "//What is?//    CLOSED SHELLS: " << nbShells - nbOpenShells << endl;
-  cout << "//What is?// NB FACES: " << nbFaces << endl;
-  cout << "//What is?// NB WIRES: " << nbWires << endl;
-  cout << "//What is?// NB EDGES: " << nbEdges << endl;
-  cout << "//What is?// NB VERTEXES: " << nbVertexes << endl;
+  std::cout << "//What is?// NB COMPOUNDS: " << nbCompounds << std::endl;
+  std::cout << "//What is?// NB SOLIDS: " << nbSolids << std::endl;
+  std::cout << "//What is?// NB SHELLS: " << nbShells << std::endl;
+  std::cout << "//What is?//    OPEN SHELLS: " << nbOpenShells << std::endl;
+  std::cout << "//What is?//    CLOSED SHELLS: " << nbShells - nbOpenShells << std::endl;
+  std::cout << "//What is?// NB FACES: " << nbFaces << std::endl;
+  std::cout << "//What is?// NB WIRES: " << nbWires << std::endl;
+  std::cout << "//What is?// NB EDGES: " << nbEdges << std::endl;
+  std::cout << "//What is?// NB VERTEXES: " << nbVertexes << std::endl;
 }
 #endif
 
@@ -284,12 +284,12 @@ Handle(Transfer_Binder)  STEPControl_ActorRead::Transfer
       if(aPPVersion.IsNull())
         continue;
       #ifdef OCCT_DEBUG
-      cout << "Preprocessor version detected: " << aPPVersion->ToCString() << endl;
+      std::cout << "Preprocessor version detected: " << aPPVersion->ToCString() << std::endl;
       #endif
       Standard_Integer anIDeasResult = aPPVersion->Search("I-DEAS");
       if (anIDeasResult != -1) {
         #ifdef OCCT_DEBUG
-        cout << "Recognized as I-DEAS STP" << endl;
+        std::cout << "Recognized as I-DEAS STP" << std::endl;
         #endif
         myNMTool.SetIDEASCase(Standard_True);
       }
@@ -542,7 +542,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)<<endl;
+      sout<<" -- Actor : Ent.n0 "<<TP->Model()->Number(PD)<<" -> Shared Ent.no"<<TP->Model()->Number(NAUO)<<Message_EndLine;
 #endif
     Handle(Transfer_Binder) binder;
     if (!TP->IsBound(NAUO)) binder = TransferEntity(NAUO,TP);
@@ -762,7 +762,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity(const Han
   Handle(Message_Messenger) sout = TP->Messenger();
   #ifdef TRANSLOG
   if (TP->TraceLevel() > 2) 
-    sout<<" -- Actor : case  ShapeRepr. NbItems="<<nb<<endl;
+    sout<<" -- Actor : case  ShapeRepr. NbItems="<<nb<<Message_EndLine;
   #endif
   
     // Compute unit convertion factors and geometric Accuracy
@@ -784,7 +784,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity(const Han
     NM_DETECTED = Standard_True;
     #ifdef OCCT_DEBUG
     Standard_Integer NMSSRItemsLen = sr->Items()->Length();
-    cout << "NMSSR with " << NMSSRItemsLen << " items detected" << endl;
+    std::cout << "NMSSR with " << NMSSRItemsLen << " items detected" << std::endl;
     #endif
   } 
   // Special processing for I-DEAS STP case (ssv; 15.11.2010)
@@ -794,12 +794,12 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity(const Han
       isManifold = Standard_False;
       NM_DETECTED = Standard_True;
       #ifdef OCCT_DEBUG
-      cout << "I-DEAS post processing for non-manifold topology ENABLED" << endl;
+      std::cout << "I-DEAS post processing for non-manifold topology ENABLED" << std::endl;
       #endif
     }
     #ifdef OCCT_DEBUG
     else if ( myNMTool.IsIDEASCase() )
-      cout << "I-DEAS post processing for non-manifold topology DISABLED" << endl;
+      std::cout << "I-DEAS post processing for non-manifold topology DISABLED" << std::endl;
     #endif
   }
   myNMTool.CleanUp();
@@ -811,7 +811,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity(const Han
   //for (i = 1; i <= nb ; i ++) {
     #ifdef TRANSLOG
     if (TP->TraceLevel() > 2) 
-      sout<<" -- Actor, shape_representation.item n0. "<<i<<endl;
+      sout<<" -- Actor, shape_representation.item n0. "<<i<<Message_EndLine;
     #endif
     Handle(StepRepr_RepresentationItem) anitem = sr->ItemsValue(i);
     Handle(Transfer_Binder) binder;
@@ -1099,7 +1099,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::OldWay(const Handle(Stan
     
 #ifdef TRANSLOG
   if (TP->TraceLevel() > 2) 
-    sout<<" -- Actor : case  shape_definition_representation."<<endl;
+    sout<<" -- Actor : case  shape_definition_representation."<<Message_EndLine;
 #endif
   Handle(Transfer_Binder) binder = TP->Find(rep);
   if (binder.IsNull()) binder = TP->Transferring(rep);
@@ -1140,7 +1140,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::OldWay(const Handle(Stan
 //      if (anitem.IsNull()) continue;
 #ifdef TRANSLOG
     if (TP->TraceLevel() > 1) 
-      sout<<" -- Actor : Ent.n0 "<<TP->Model()->Number(start)<<" -> Shared Ent.no"<<TP->Model()->Number(anitem)<<endl;
+      sout<<" -- Actor : Ent.n0 "<<TP->Model()->Number(start)<<" -> Shared Ent.no"<<TP->Model()->Number(anitem)<<Message_EndLine;
 #endif
 
     if (!TP->IsBound(anitem)) binder = TP->Transferring(anitem);
@@ -1179,7 +1179,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity(const Han
   OSD_Timer chrono;
   if (TP->TraceLevel() > 2) 
     sout << "Begin transfer STEP -> CASCADE, Type "
-         << start->DynamicType()->Name() << endl;
+         << start->DynamicType()->Name() << Message_EndLine;
   chrono.Start();
 #endif
   
@@ -1260,7 +1260,7 @@ Handle(TransferBRep_ShapeBinder) STEPControl_ActorRead::TransferEntity(const Han
 #ifdef TRANSLOG
   chrono.Stop();
   if (TP->TraceLevel() > 2) 
-    sout<<"End transfer STEP -> CASCADE :" << (found ? "OK" : " : no result")<<endl;
+    sout<<"End transfer STEP -> CASCADE :" << (found ? "OK" : " : no result")<<Message_EndLine;
   if (TP->TraceLevel() > 2) 
     chrono.Show();
 #endif
@@ -1419,7 +1419,7 @@ Handle(Transfer_Binder) STEPControl_ActorRead::TransferShape(const Handle(Standa
 #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()<<endl;
+    sout<<" -- Actor : Transfer Ent.n0 "<<TP->Model()->Number(start)<<"  Type "<<start->DynamicType()->Name()<<Message_EndLine;
 #endif
   
   Handle(TransferBRep_ShapeBinder) shbinder;
@@ -1576,7 +1576,7 @@ void STEPControl_ActorRead::PrepareUnits(const Handle(StepRepr_Representation)&
   // Assign uncertainty
 #ifdef TRANSLOG
   if (TP->TraceLevel() > 1) 
-    TP->Messenger() <<"  Cc1ToTopoDS : Length Unit = "<<myUnit.LengthFactor()<<"  Tolerance CASCADE = "<<myPrecision<<endl;
+    TP->Messenger() <<"  Cc1ToTopoDS : Length Unit = "<<myUnit.LengthFactor()<<"  Tolerance CASCADE = "<<myPrecision<<Message_EndLine;
 #endif
 }
 
@@ -1757,7 +1757,7 @@ TopoDS_Shell STEPControl_ActorRead::closeIDEASShell(const TopoDS_Shell& shell,
       brepBuilder.Add(result, currentFace);
     else {
       #ifdef OCCT_DEBUG
-      cout << "Redundant closing face detected: REMOVED from shell";
+      std::cout << "Redundant closing face detected: REMOVED from shell";
       #endif
     }
   }
index e47775d..6a6ee5b 100644 (file)
@@ -157,14 +157,14 @@ static void DumpWhatIs(const TopoDS_Shape& S) {
     }
   }
 
-  cout << "//What is?// NB SOLIDS: " << nbSolids << endl;
-  cout << "//What is?// NB SHELLS: " << nbShells << endl;
-  cout << "//What is?//    OPEN SHELLS: " << nbOpenShells << endl;
-  cout << "//What is?//    CLOSED SHELLS: " << nbShells - nbOpenShells << endl;
-  cout << "//What is?// NB FACES: " << nbFaces << endl;
-  cout << "//What is?// NB WIRES: " << nbWires << endl;
-  cout << "//What is?// NB EDGES: " << nbEdges << endl;
-  cout << "//What is?// NB VERTEXES: " << nbVertexes << endl;
+  std::cout << "//What is?// NB SOLIDS: " << nbSolids << std::endl;
+  std::cout << "//What is?// NB SHELLS: " << nbShells << std::endl;
+  std::cout << "//What is?//    OPEN SHELLS: " << nbOpenShells << std::endl;
+  std::cout << "//What is?//    CLOSED SHELLS: " << nbShells - nbOpenShells << std::endl;
+  std::cout << "//What is?// NB FACES: " << nbFaces << std::endl;
+  std::cout << "//What is?// NB WIRES: " << nbWires << std::endl;
+  std::cout << "//What is?// NB EDGES: " << nbEdges << std::endl;
+  std::cout << "//What is?// NB VERTEXES: " << nbVertexes << std::endl;
 }
 #endif
 
@@ -199,7 +199,7 @@ static Standard_Boolean IsManifoldShape(const TopoDS_Shape& theShape) {
 
   Standard_Integer aNbEdges = aMapEdgeFaces.Extent();
   #ifdef OCCT_DEBUG
-  cout << "Checking whether the topology passed is manifold..." << endl;
+  std::cout << "Checking whether the topology passed is manifold..." << std::endl;
   #endif
 
   // Check topology
@@ -215,8 +215,8 @@ static Standard_Boolean IsManifoldShape(const TopoDS_Shape& theShape) {
   }
 
   #ifdef OCCT_DEBUG
-  cout << "Check result: "
-       << (aResult ? "TRUE" : "FALSE") << endl;
+  std::cout << "Check result: "
+       << (aResult ? "TRUE" : "FALSE") << std::endl;
   #endif
 
   return aResult;
@@ -256,13 +256,13 @@ Handle(StepShape_NonManifoldSurfaceShapeRepresentation) STEPControl_ActorWrite::
 
   if ( aResult.IsNull() ) {
     #ifdef OCCT_DEBUG
-    cout << "\nNew NMSSR created" << endl;
+    std::cout << "\nNew NMSSR created" << std::endl;
     #endif
     aResult = new StepShape_NonManifoldSurfaceShapeRepresentation;
     isNMSSRCreated = Standard_True;
   } else {
     #ifdef OCCT_DEBUG
-    cout << "\nExisting NMSSR is used" << endl;
+    std::cout << "\nExisting NMSSR is used" << std::endl;
     #endif
     isNMSSRCreated = Standard_False;
   }
@@ -633,7 +633,7 @@ Handle(Transfer_Binder) STEPControl_ActorWrite::TransferShape (const Handle(Tran
     // as assembly - while face already translated, it should be 
     // re-translated to break sharing
 #ifdef OCCT_DEBUG
-    cout << "Warning: STEPControl_ActorWrite::TransferShape(): shape already translated" << endl;
+    std::cout << "Warning: STEPControl_ActorWrite::TransferShape(): shape already translated" << std::endl;
 #endif
 //    return binder;
   }
@@ -1299,7 +1299,7 @@ Handle(Transfer_Binder) STEPControl_ActorWrite::TransferCompound (const Handle(T
  
   #ifdef OCCT_DEBUG
   if (!isManifold)
-    cout << "Exploding Solids to Shells if any..." << endl;
+    std::cout << "Exploding Solids to Shells if any..." << std::endl;
   #endif
 
   for (TopoDS_Iterator iter(theShape); iter.More(); iter.Next()) {
index 4997b11..a4a1c63 100644 (file)
@@ -166,7 +166,7 @@ Standard_Integer STEPControl_Reader::NbRootsForTransfer()
         }
         if (iSexclude) {
 #ifdef OCCT_DEBUG
-          cout << "Warning: STEPControl_Reader::NbRootsForTransfer exclude PDWAD from roots" << endl;
+          std::cout << "Warning: STEPControl_Reader::NbRootsForTransfer exclude PDWAD from roots" << std::endl;
 #endif
           continue;
         }
index 118b1d8..c40b583 100644 (file)
@@ -166,7 +166,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())<<endl;
+  os << "Product: "<<GetProductName(cmp->GetSDR())<<std::endl;
   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";
@@ -186,7 +186,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<<endl<<endl;
+    os<<"Assembly N: "<<i<<std::endl<<std::endl;
     PrintSubAssembly(os,myRoots.Value(i),model,0);
   }
 }
index 53452db..401c896 100644 (file)
@@ -656,7 +656,7 @@ static Standard_Integer XSHAPE_comptoledge
          if ( ! num1 ) di << "Concerned faces saved to shapes ";
          Sprintf ( name, "%.10s_%d", prefix, num1+1 );
          DBRep::Set (name,face);
-         //cout << ( num1 ? ", " : "" ) << name;
+         //std::cout << ( num1 ? ", " : "" ) << name;
          if (num1 == 0) {
            di << "" << name;
          } else {
index 4d84a36..a22fc9d 100644 (file)
@@ -40,7 +40,7 @@ static Standard_Integer sortcompound (Draw_Interpretor& di, Standard_Integer arg
     for (int i = 0; i < 2; i ++) {
       Standard_Boolean viaCompound = (i != 0);
       TopAbs_ShapeEnum ts = sbx.ShapeType(Shape, viaCompound);
-      //cout<<"   Type "<<(i ? " (via Compound) : " : "(True) : ");
+      //std::cout<<"   Type "<<(i ? " (via Compound) : " : "(True) : ");
       if (!viaCompound) {
        di<<"   Type (True) : ";
       } else {
index 9ede795..1dcd8af 100644 (file)
@@ -214,7 +214,7 @@ static Standard_Integer stwire (Draw_Interpretor& di, Standard_Integer argc, con
     Standard_Integer nb = sfw->NbEdges();
     for (i = 1; i <= nb; i ++) {
       Standard_Boolean stat = sfw->FixSmall (i, Standard_True, 0.0);
-      //cout<<"FixSmall for"<<i<<(stat ? " done" : " not done"); //:sw <<" StatusFix="<<STW.StatusFix()<<"\n";
+      //std::cout<<"FixSmall for"<<i<<(stat ? " done" : " not done"); //:sw <<" StatusFix="<<STW.StatusFix()<<"\n";
       di<<"FixSmall for"<<i;
       if (!stat) {
        di<<" not done";
@@ -355,7 +355,7 @@ static Standard_Integer reface (Draw_Interpretor& di, Standard_Integer argc, con
     char opt = argv[i][0];
     if (opt == '+')   opt = argv[i][1];
     if (opt == '-') { opt = argv[i][1]; valopt = Standard_False; }
-    //cout<<(valopt ? ".." : ".. NO");
+    //std::cout<<(valopt ? ".." : ".. NO");
     if (!valopt) {
       di<<".. NO";
     } else {
@@ -515,11 +515,11 @@ static Standard_Integer fixshape (Draw_Interpretor& di, Standard_Integer argc, c
       }
     }
     
-    aSStream << " Fix" << setw (58) << "Count\n";
+    aSStream << " Fix" << std::setw (58) << "Count\n";
     aSStream << " ------------------------------------------------------------\n";
     for ( TColStd_DataMapIteratorOfDataMapOfAsciiStringInteger anIter ( aMapOfNumberOfFixes ); anIter.More(); anIter.Next() )
     {
-      aSStream << " " << anIter.Key() << setw ( 60 - anIter.Key().Length() ) << anIter.Value() << "\n";
+      aSStream << " " << anIter.Key() << std::setw ( 60 - anIter.Key().Length() ) << anIter.Value() << "\n";
     }
     aSStream << " ------------------------------------------------------------\n";
     di << aSStream;
index 215f882..bc04d76 100644 (file)
@@ -1029,7 +1029,7 @@ static Standard_Integer splitface
   if ( uval.Length() >0 ) {
     di << "Splitting by U: ";
     for ( Standard_Integer j=1; j <= uval.Length(); j++ ) {
-      //cout << ( i >j ? ", " : "" ) << uval(j);
+      //std::cout << ( i >j ? ", " : "" ) << uval(j);
       if (i >j) {
        di << ", ";
       } else {
@@ -1042,7 +1042,7 @@ static Standard_Integer splitface
   if ( vval.Length() >0 ) {
     di << "Splitting by V: ";
     for ( Standard_Integer j=1; j <= vval.Length(); j++ ) {
-      //cout << ( j >1 ? ", " : "" ) << vval(j);
+      //std::cout << ( j >1 ? ", " : "" ) << vval(j);
       if (j >1) {
        di << ", ";
       } else {
@@ -1401,14 +1401,14 @@ static Standard_Integer reshape(Draw_Interpretor& /*theDI*/,
 {
   if ( theArgc < 4 )
   {
-    cout << "Error: wrong number of arguments. Type 'help " << theArgv[0] << "'\n";
+    std::cout << "Error: wrong number of arguments. Type 'help " << theArgv[0] << "'\n";
     return 1;
   }
 
   TopoDS_Shape aSource = DBRep::Get(theArgv[2]);
   if ( aSource.IsNull() )
   {
-    cout << "Error: source shape ('" << theArgv[2] << "') is null\n";
+    std::cout << "Error: source shape ('" << theArgv[2] << "') is null\n";
     return 1;
   }
 
@@ -1425,21 +1425,21 @@ static Standard_Integer reshape(Draw_Interpretor& /*theDI*/,
     {
       if ( theArgc - i < 3 )
       {
-        cout << "Error: not enough arguments for replacement\n";
+        std::cout << "Error: not enough arguments for replacement\n";
         return 1;
       }
 
       TopoDS_Shape aWhat = DBRep::Get(theArgv[++i]);
       if ( aWhat.IsNull() )
       {
-        cout << "Error: argument shape ('" << theArgv[i] << "') is null\n";
+        std::cout << "Error: argument shape ('" << theArgv[i] << "') is null\n";
         return 1;
       }
 
       TopoDS_Shape aWith = DBRep::Get(theArgv[++i]);
       if ( aWith.IsNull() )
       {
-        cout << "Error: replacement shape ('" << theArgv[i] << "') is null\n";
+        std::cout << "Error: replacement shape ('" << theArgv[i] << "') is null\n";
         return 1;
       }
 
@@ -1449,14 +1449,14 @@ static Standard_Integer reshape(Draw_Interpretor& /*theDI*/,
     {
       if ( theArgc - i < 2 )
       {
-        cout << "Error: not enough arguments for removal\n";
+        std::cout << "Error: not enough arguments for removal\n";
         return 1;
       }
 
       TopoDS_Shape aWhat = DBRep::Get(theArgv[++i]);
       if ( aWhat.IsNull() )
       {
-        cout << "Error: shape to remove ('" << theArgv[i] << "') is null\n";
+        std::cout << "Error: shape to remove ('" << theArgv[i] << "') is null\n";
         return 1;
       }
 
@@ -1464,7 +1464,7 @@ static Standard_Integer reshape(Draw_Interpretor& /*theDI*/,
     }
     else
     {
-      cout << "Error: invalid syntax at " << anOpt << "\n" ;
+      std::cout << "Error: invalid syntax at " << anOpt << "\n" ;
       return 1;
     }
   }
@@ -1473,7 +1473,7 @@ static Standard_Integer reshape(Draw_Interpretor& /*theDI*/,
   TopoDS_Shape aResult = aReShaper->Apply(aSource);
   if ( aResult.IsNull() )
   {
-    cout << "Error: result shape is null\n";
+    std::cout << "Error: result shape is null\n";
     return 1;
   }
 
index 800d2f4..3e7f669 100644 (file)
@@ -653,7 +653,7 @@ Standard_Boolean  ShapeAnalysis_CheckSmallFace::CheckPin (const TopoDS_Face& F,
   case 2: myStatusPin = ShapeExtend::EncodeStatus (ShapeExtend_DONE2); break;
     default : break;
   }
-  //  cout<<(whatstat == 1 ? "Smooth" : "Sharp")<<" Pin on "<<(sens == 1 ? "U" : "V")<<" Row n0 "<<whatrow<<endl;
+  //  std::cout<<(whatstat == 1 ? "Smooth" : "Sharp")<<" Pin on "<<(sens == 1 ? "U" : "V")<<" Row n0 "<<whatrow<<std::endl;
   if (stat == 1 ) 
     {
       // Standard_Boolean EqualPoles = Standard_False;
@@ -878,11 +878,11 @@ Standard_Boolean  ShapeAnalysis_CheckSmallFace::CheckTwisted (const TopoDS_Face&
 //   }
 //   catch (Standard_Failure)
 //     {
-//       cout << "Couldn't compute angle between derivative vectors"  <<endl;
+//       std::cout << "Couldn't compute angle between derivative vectors"  <<std::endl;
 //       return Standard_False;
 //     }
-//   cout << "angle1 "   << angle1<< endl;
-//   cout << "angle2 "   << angle2<< endl;
+//   std::cout << "angle1 "   << angle1<< std::endl;
+//   std::cout << "angle2 "   << angle2<< std::endl;
 //   if (angle1<=0.0001) return Standard_True;
   gp_Pnt proj;
   if (p1.Distance(p2)<pp1.Distance(pp2)) 
@@ -927,12 +927,12 @@ Standard_Boolean  ShapeAnalysis_CheckSmallFace::CheckTwisted (const TopoDS_Face&
       catch (Standard_Failure const&)
        {
 #ifdef OCCT_DEBUG
-          cout << "Couldn't compute angle between derivative vectors"  <<endl;
+          std::cout << "Couldn't compute angle between derivative vectors"  <<std::endl;
 #endif
          return Standard_False;
        }
-//       cout << "angle1 "   << angle1<< endl;
-//       cout << "angle2 "   << angle2<< endl;
+//       std::cout << "angle1 "   << angle1<< std::endl;
+//       std::cout << "angle2 "   << angle2<< std::endl;
       if ((angle1<=0.001 && angle2<=0.01) || ((M_PI-angle2)<= 0.001 && (M_PI-angle2)<= 0.01)) return Standard_True;
       else return Standard_False;
     } 
index 3c622e7..9813fb2 100644 (file)
@@ -79,7 +79,7 @@ static void ProjectOnSegments (const Adaptor3d_Curve& AC, const gp_Pnt& P3D,
   if (aHasChanged)
     distmin = Sqrt (distmin2);
 #ifdef OCCT_DEBUG
-  cout<<"ShapeAnalysis_Geom:Project, param="<<param<<" -> distmin="<<distmin<<endl;
+  std::cout<<"ShapeAnalysis_Geom:Project, param="<<param<<" -> distmin="<<distmin<<std::endl;
 #endif
 
   uMax = Min (uMax, param+delta);
@@ -259,8 +259,8 @@ Standard_Real ShapeAnalysis_Curve::ProjectAct(const Adaptor3d_Curve& C3D,
   catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
  //:s5
-    cout << "\nWarning: ShapeAnalysis_Curve::ProjectAct(): Exception in Extrema_ExtPC: "; 
-    anException.Print(cout); cout << endl;
+    std::cout << "\nWarning: ShapeAnalysis_Curve::ProjectAct(): Exception in Extrema_ExtPC: "; 
+    anException.Print(std::cout); std::cout << std::endl;
 #endif
     (void)anException;
     OK = Standard_False;
@@ -362,7 +362,7 @@ Standard_Real ShapeAnalysis_Curve::ProjectAct(const Adaptor3d_Curve& C3D,
           if (aDistNewton < aModMin)
             return aDistNewton;
         }
-        // cout <<"newton failed"<<endl;    
+        // std::cout <<"newton failed"<<std::endl;    
        ProjectOnSegments (C3D,P3D,40,uMin,uMax,distmin,proj,param);
        if (distmin <= preci) return distmin;
        ProjectOnSegments (C3D,P3D,20,uMin,uMax,distmin,proj,param);
@@ -497,25 +497,25 @@ Standard_Boolean ShapeAnalysis_Curve::ValidateRange (const Handle(Geom_Curve)& t
   if (theCurve->IsKind(STANDARD_TYPE(Geom_BoundedCurve)) && !theCurve->IsClosed()) {
     if (First < cf) {
 #ifdef OCCT_DEBUG
-      cout << "Update Edge First Parameter to Curve First Parameter" << endl;
+      std::cout << "Update Edge First Parameter to Curve First Parameter" << std::endl;
 #endif
       First = cf;
     }
     else if (First > cl) {
 #ifdef OCCT_DEBUG
-      cout << "Update Edge First Parameter to Curve Last Parameter" << endl;
+      std::cout << "Update Edge First Parameter to Curve Last Parameter" << std::endl;
 #endif
       First = cl;
     }
     if (Last < cf) {
 #ifdef OCCT_DEBUG
-      cout << "Update Edge Last Parameter to Curve First Parameter" << endl;
+      std::cout << "Update Edge Last Parameter to Curve First Parameter" << std::endl;
 #endif
       Last = cf;
     }
     else if (Last > cl) {
 #ifdef OCCT_DEBUG
-      cout << "Update Edge Last Parameter to Curve Last Parameter" << endl;
+      std::cout << "Update Edge Last Parameter to Curve Last Parameter" << std::endl;
 #endif
       Last = cl;
     }
@@ -547,7 +547,7 @@ Standard_Boolean ShapeAnalysis_Curve::ValidateRange (const Handle(Geom_Curve)& t
       if ( theCurve->Value(Last).Distance(theCurve->Value(cl)) < preci ) Last = cl;
       if ( First > Last ) {
 #ifdef OCCT_DEBUG
-       cout << "Warning : parameter range of edge crossing non periodic curve origin" << endl;
+       std::cout << "Warning : parameter range of edge crossing non periodic curve origin" << std::endl;
 #endif
        Standard_Real tmp = First;
        First = Last;
@@ -575,7 +575,7 @@ Standard_Boolean ShapeAnalysis_Curve::ValidateRange (const Handle(Geom_Curve)& t
       // on inverse quand meme les parametres !!!!!!
       else {
 #ifdef OCCT_DEBUG
-       cout << "Warning : parameter range of edge crossing non periodic curve origin" << endl;
+       std::cout << "Warning : parameter range of edge crossing non periodic curve origin" << std::endl;
 #endif
        Standard_Real tmp = First;
        First = Last;
@@ -585,7 +585,7 @@ Standard_Boolean ShapeAnalysis_Curve::ValidateRange (const Handle(Geom_Curve)& t
     //abv 15.03.00 #72 bm1_pe_t4 protection of exceptions in draw
     else if ( First > Last ) {
 #ifdef OCCT_DEBUG
-      cout << "Warning: parameter range is bad; curve reversed" << endl;
+      std::cout << "Warning: parameter range is bad; curve reversed" << std::endl;
 #endif
       First = theCurve->ReversedParameter ( First );
       Last = theCurve->ReversedParameter ( Last );
@@ -599,15 +599,15 @@ Standard_Boolean ShapeAnalysis_Curve::ValidateRange (const Handle(Geom_Curve)& t
   }
   else {
 #ifdef OCCT_DEBUG
-    cout << "UpdateParam3d Failed" << endl;
-    cout << "  - Curve Type : " << theCurve->DynamicType() << endl;
-    cout << "  - Param 1    : " << First << endl;
-    cout << "  - Param 2    : " << Last << endl;
+    std::cout << "UpdateParam3d Failed" << std::endl;
+    std::cout << "  - Curve Type : " << theCurve->DynamicType() << std::endl;
+    std::cout << "  - Param 1    : " << First << std::endl;
+    std::cout << "  - Param 2    : " << Last << std::endl;
 #endif
     //abv 15.03.00 #72 bm1_pe_t4 protection of exceptions in draw
     if ( First > Last ) {
 #ifdef OCCT_DEBUG
-      cout << "Warning: parameter range is bad; curve reversed" << endl;
+      std::cout << "Warning: parameter range is bad; curve reversed" << std::endl;
 #endif
       First = theCurve->ReversedParameter ( First );
       Last = theCurve->ReversedParameter ( Last );
index 93c2d0f..2d61d04 100644 (file)
@@ -508,8 +508,8 @@ static Handle(Geom_Curve) ComputeIso
   catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
     //:s5
-    cout << "\nWarning: ShapeAnalysis_Surface, ComputeIso(): Exception in UVIso(): ";
-    anException.Print(cout); cout << endl;
+    std::cout << "\nWarning: ShapeAnalysis_Surface, ComputeIso(): Exception in UVIso(): ";
+    anException.Print(std::cout); std::cout << std::endl;
 #endif
     (void)anException;
     iso.Nullify();
@@ -1044,12 +1044,12 @@ Standard_Integer ShapeAnalysis_Surface::SurfaceNewton(const gp_Pnt2d &p2dPrev,
     //  if ( rs2 > 100 * preci * preci ) { fail = 6; break; }
 
     // OK, return the result
-    // cout << "Newton: solution found in " << i+1 << " iterations" << endl;
+    // std::cout << "Newton: solution found in " << i+1 << " iterations" << std::endl;
     sol.SetCoord(U, V);
 
     return (nrm2 < 0.01 * ru2 * rv2 ? 2 : 1); //:q6
   }
-  //      cout << "Newton: failed after " << i+1 << " iterations (fail " << fail << " )" << endl;
+  //      std::cout << "Newton: failed after " << i+1 << " iterations (fail " << fail << " )" << std::endl;
   return Standard_False;
 }
 
@@ -1200,12 +1200,12 @@ gp_Pnt2d ShapeAnalysis_Surface::ValueOfUV(const gp_Pnt& P3D, const Standard_Real
           if (SurfaceNewton(prev, P3D, preci, solution) != 0)
           {
 #ifdef OCCT_DEBUG
-            cout << "Newton found point on conic extrusion" << endl;
+            std::cout << "Newton found point on conic extrusion" << std::endl;
 #endif
             return solution;
           }
 #ifdef OCCT_DEBUG
-          cout << "Newton failed point on conic extrusion" << endl;
+          std::cout << "Newton failed point on conic extrusion" << std::endl;
 #endif
           uf = -500;
           ul = 500;
@@ -1318,7 +1318,7 @@ gp_Pnt2d ShapeAnalysis_Surface::ValueOfUV(const gp_Pnt& P3D, const Standard_Real
         }
         else {
 #ifdef OCCT_DEBUG
-          cout << "Warning: ShapeAnalysis_Surface::ValueOfUV(): Extrema failed, doing Newton" << endl;
+          std::cout << "Warning: ShapeAnalysis_Surface::ValueOfUV(): Extrema failed, doing Newton" << std::endl;
 #endif
           // on essai sur les bords
           Standard_Real UU = S, VV = T;//, DistMinOnIso;
@@ -1355,8 +1355,8 @@ gp_Pnt2d ShapeAnalysis_Surface::ValueOfUV(const gp_Pnt& P3D, const Standard_Real
       //   En attendant, on met une valeur "pas idiote" mais surement fausse ...
       //szv#4:S4163:12Mar99 optimized
       //:s5
-      cout << "\nWarning: ShapeAnalysis_Surface::ValueOfUV(): Exception: ";
-      anException.Print(cout); cout << endl;
+      std::cout << "\nWarning: ShapeAnalysis_Surface::ValueOfUV(): Exception: ";
+      anException.Print(std::cout); std::cout << std::endl;
 #endif
       (void)anException;
       S = (Precision::IsInfinite(uf)) ? 0 : (uf + ul) / 2.;
@@ -1403,7 +1403,7 @@ Standard_Real ShapeAnalysis_Surface::UVFromIso(const gp_Pnt& P3d, const Standard
       Bnd_Box aPBox;
     aPBox.Set(P3d);
 
-    //cout<<"Adaptor3d()->Surface().GetType() = "<<Adaptor3d()->Surface().GetType()<<endl;
+    //std::cout<<"Adaptor3d()->Surface().GetType() = "<<Adaptor3d()->Surface().GetType()<<std::endl;
 
     //modified by rln on 04/12/97 in order to use theese variables later
     Standard_Boolean UV = Standard_True;
@@ -1551,8 +1551,8 @@ Standard_Real ShapeAnalysis_Surface::UVFromIso(const gp_Pnt& P3d, const Standard
   catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
     //:s5
-    cout << "\nWarning: ShapeAnalysis_Curve::UVFromIso(): Exception: ";
-    anException.Print(cout); cout << endl;
+    std::cout << "\nWarning: ShapeAnalysis_Curve::UVFromIso(): Exception: ";
+    anException.Print(std::cout); std::cout << std::endl;
 #endif
     (void)anException;
     theMin = RealLast();    // theMin de depart
index 184057f..0d6f9e0 100644 (file)
@@ -540,7 +540,7 @@ void ShapeAnalysis_WireOrder::SetChains(const Standard_Real gap)
  void ShapeAnalysis_WireOrder::SetCouples(const Standard_Real /*gap*/) 
 {
 #ifdef OCCT_DEBUG
-  cout<<"ShapeAnalysis_WireOrder:SetCouple not yet implemented"<<endl;
+  std::cout<<"ShapeAnalysis_WireOrder:SetCouple not yet implemented"<<std::endl;
 #endif
 }
 
index c17a4e4..90383de 100644 (file)
@@ -639,8 +639,8 @@ Standard_Boolean ShapeBuild_Edge::BuildCurve3d (const TopoDS_Edge& edge) const
   }
   catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    cout << "\nWarning: ShapeBuild_Edge: Exception in BuildCurve3d: "; 
-    anException.Print(cout); cout << endl;
+    std::cout << "\nWarning: ShapeBuild_Edge: Exception in BuildCurve3d: "; 
+    anException.Print(std::cout); std::cout << std::endl;
 #endif
     (void)anException;
   }
@@ -668,7 +668,7 @@ void ShapeBuild_Edge::MakeEdge(TopoDS_Edge& edge,const Handle(Geom_Curve)& curve
   BRepBuilderAPI_MakeEdge ME (curve, p1, p2);
   if (!ME.IsDone()) {
 #ifdef OCCT_DEBUG
-    cout << "\nWarning: ShapeBuild_Edge::MakeEdge BRepAPI_NotDone";
+    std::cout << "\nWarning: ShapeBuild_Edge::MakeEdge BRepAPI_NotDone";
 #endif
     return;
   }
@@ -733,7 +733,7 @@ void ShapeBuild_Edge::MakeEdge(TopoDS_Edge& edge,const Handle(Geom2d_Curve)& pcu
   BRepBuilderAPI_MakeEdge ME (pcurve, S, p1, p2);
   if (!ME.IsDone()) {
 #ifdef OCCT_DEBUG
-    cout << "\nWarning: ShapeBuild_Edge::MakeEdge BRepAPI_NotDone";
+    std::cout << "\nWarning: ShapeBuild_Edge::MakeEdge BRepAPI_NotDone";
 #endif
     return;
   }
index 9251333..89b9d69 100644 (file)
@@ -139,7 +139,7 @@ TopoDS_Shape ShapeBuild_ReShape::Apply (const TopoDS_Shape& shape,
       return S;
     }
   }
-  cout<<"BRepTools_ReShape::Apply NOT YET IMPLEMENTED"<<endl;
+  std::cout<<"BRepTools_ReShape::Apply NOT YET IMPLEMENTED"<<std::endl;
   return shape;
 }
 
index b8b6b1f..ca873ab 100644 (file)
@@ -90,8 +90,8 @@ Handle(Geom_BSplineCurve) ShapeConstruct::ConvertCurveToBSpline(const Handle(Geo
     }
     catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-           cout << "Warning: GeomConvert_ApproxSurface Exception:  ";
-           anException.Print(cout); cout << endl;
+           std::cout << "Warning: GeomConvert_ApproxSurface Exception:  ";
+           anException.Print(std::cout); std::cout << std::endl;
 #endif 
            (void)anException;
            aBSpline = GeomConvert::CurveToBSplineCurve(C3D,Convert_QuasiAngular);    
@@ -222,7 +222,7 @@ Handle(Geom_BSplineSurface) ShapeConstruct::ConvertSurfaceToBSpline(const Handle
       gp_Ax1 axis = revol->Axis();
       Handle(Geom_SurfaceOfRevolution) newRevol = new Geom_SurfaceOfRevolution(bspl,axis);
 #ifdef OCCT_DEBUG
-      cout <<" Revolution on offset converted" << endl;
+      std::cout <<" Revolution on offset converted" << std::endl;
 #endif
       S = newRevol;
     }
@@ -240,8 +240,8 @@ Handle(Geom_BSplineSurface) ShapeConstruct::ConvertSurfaceToBSpline(const Handle
        
 #ifdef OCCT_DEBUG
        Standard_Integer nbOfSpan = (anApprox.Surface()->NbUKnots()-1)*(anApprox.Surface()->NbVKnots()-1);
-       cout << "\terror = " << anApprox.MaxError() << "\tspans = " << nbOfSpan << endl;
-       cout << " Surface is aproximated with continuity " << (GeomAbs_Shape)cnt <<endl;
+       std::cout << "\terror = " << anApprox.MaxError() << "\tspans = " << nbOfSpan << std::endl;
+       std::cout << " Surface is aproximated with continuity " << (GeomAbs_Shape)cnt <<std::endl;
 #endif
        S = anApprox.Surface();
        Handle(Geom_BSplineSurface) Bsc = Handle(Geom_BSplineSurface)::DownCast(S);
@@ -251,7 +251,7 @@ Handle(Geom_BSplineSurface) ShapeConstruct::ConvertSurfaceToBSpline(const Handle
        if(anApprox.HasResult()) 
          errSpl = anApprox.Surface();
 #ifdef OCCT_DEBUG
-       cout << "\terror = " << anApprox.MaxError() <<endl;
+       std::cout << "\terror = " << anApprox.MaxError() <<std::endl;
 #endif
        break;
       }
@@ -259,8 +259,8 @@ Handle(Geom_BSplineSurface) ShapeConstruct::ConvertSurfaceToBSpline(const Handle
        
     catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-      cout << "Warning: GeomConvert_ApproxSurface Exception: try to decrease continuity ";
-      anException.Print(cout); cout << endl;
+      std::cout << "Warning: GeomConvert_ApproxSurface Exception: try to decrease continuity ";
+      anException.Print(std::cout); std::cout << std::endl;
 #endif
       (void)anException;
       if(cnt > 0) cnt--;
@@ -364,8 +364,8 @@ Standard_Boolean ShapeConstruct::JoinPCurves(const Handle(TopTools_HSequenceOfSh
   }
   catch ( Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    cout<<"Error: ShapeConstruct::JoinPCurves Exception in GeomConvert_CompCurveToBSplineCurve: ";
-    anException.Print(cout); cout<<endl;
+    std::cout<<"Error: ShapeConstruct::JoinPCurves Exception in GeomConvert_CompCurveToBSplineCurve: ";
+    anException.Print(std::cout); std::cout<<std::endl;
 #endif
     (void)anException;
   }
index 13a199e..9180f63 100644 (file)
@@ -155,8 +155,8 @@ Handle(Geom_BSplineCurve) ShapeConstruct_Curve::ConvertToBSpline (const Handle(G
     }
     catch ( Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-      cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in GeomConvert: ";
-      anException.Print(cout); cout << endl;
+      std::cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in GeomConvert: ";
+      anException.Print(std::cout); std::cout << std::endl;
 #endif
       (void)anException;
     }
@@ -177,8 +177,8 @@ Handle(Geom_BSplineCurve) ShapeConstruct_Curve::ConvertToBSpline (const Handle(G
     }
     catch ( Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-      cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Segment: ";
-      anException.Print(cout); cout << endl;
+      std::cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Segment: ";
+      anException.Print(std::cout); std::cout << std::endl;
 #endif
       (void)anException;
     }
@@ -196,8 +196,8 @@ Handle(Geom_BSplineCurve) ShapeConstruct_Curve::ConvertToBSpline (const Handle(G
   }
   catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Approx_Curve3d: ";
-    anException.Print(cout); cout << endl;
+    std::cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Approx_Curve3d: ";
+    anException.Print(std::cout); std::cout << std::endl;
 #endif
     (void)anException;
   }
@@ -228,8 +228,8 @@ Handle(Geom2d_BSplineCurve) ShapeConstruct_Curve::ConvertToBSpline (const Handle
     }
     catch ( Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-      cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Geom2dConvert: ";
-      anException.Print(cout); cout << endl;
+      std::cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Geom2dConvert: ";
+      anException.Print(std::cout); std::cout << std::endl;
 #endif
       (void)anException;
     }
@@ -250,8 +250,8 @@ Handle(Geom2d_BSplineCurve) ShapeConstruct_Curve::ConvertToBSpline (const Handle
     }
     catch ( Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-      cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Segment: ";
-      anException.Print(cout); cout << endl;
+      std::cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Segment: ";
+      anException.Print(std::cout); std::cout << std::endl;
 #endif
       (void)anException;
     }
@@ -270,8 +270,8 @@ Handle(Geom2d_BSplineCurve) ShapeConstruct_Curve::ConvertToBSpline (const Handle
   }
   catch ( Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Approx_Curve3d: ";
-    anException.Print(cout); cout << endl;
+    std::cout << "Warning: ShapeConstruct_Curve::ConvertToBSpline(): Exception in Approx_Curve3d: ";
+    anException.Print(std::cout); std::cout << std::endl;
 #endif
     (void)anException;
   }
index 117680e..0568000 100644 (file)
@@ -262,7 +262,7 @@ Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::Perform (Handle(Geom_Curv
     while ( nbPini < minPnt ) nbPini += NCONTROL - 1;
 #ifdef OCCT_DEBUG
     if ( nbPini > NCONTROL ) 
-      cout << "Warning: number of points for projecting is " << nbPini << endl;
+      std::cout << "Warning: number of points for projecting is " << nbPini << std::endl;
 #endif
   }
 
@@ -481,8 +481,8 @@ Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::PerformByProjLib(Handle(G
   }
   catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::PerformByProjLib(): Exception: ";
-    anException.Print(cout); cout << endl;
+    std::cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::PerformByProjLib(): Exception: ";
+    anException.Print(std::cout); std::cout << std::endl;
 #endif
     (void)anException;
     myStatus = ShapeExtend::EncodeStatus (ShapeExtend_FAIL3);
@@ -1127,7 +1127,7 @@ Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::PerformByProjLib(Handle(G
   const Standard_Real TolOnVPeriod = Precision::Confusion() * Vp;
 #ifdef OCCT_DEBUG
   if (mySurf->IsUClosed(myPreci) && mySurf->IsVClosed(myPreci)) {//#78 rln 12.03.99 S4135
-    cout << "WARNING : Recadrage incertain sur U & VClosed" << endl;
+    std::cout << "WARNING : Recadrage incertain sur U & VClosed" << std::endl;
   }
 #endif
   // Si la surface est UCLosed, on recadre les points
@@ -1330,7 +1330,7 @@ Standard_Boolean ShapeConstruct_ProjectCurveOnSurface::PerformByProjLib(Handle(G
 #ifdef OCCT_DEBUG
        dist2d = pnt2d (aPntIter - 1).Distance(pnt2d (aPntIter));
        if (dist2d > ( Vp / 2) ) {
-         cout << "Echec dans le recadrage" << endl;
+         std::cout << "Echec dans le recadrage" << std::endl;
        }
 #endif
       }
@@ -1518,9 +1518,9 @@ Handle(Geom2d_Curve) ShapeConstruct_ProjectCurveOnSurface::ApproximatePCurve(con
     //    debug ...
     Standard_Integer nbp = params->Length();
     Standard_Integer nb2 = points2d->Length();
-    cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::ApproximatePCurve(): Exception: ";
-    anException.Print(cout); 
-    cout<<"Pb Geom2dAPI_Approximate, tol2d="<<theTolerance2d<<" NbParams="<<nbp<<" NbPnts="<<nb2<<endl;
+    std::cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::ApproximatePCurve(): Exception: ";
+    anException.Print(std::cout); 
+    std::cout<<"Pb Geom2dAPI_Approximate, tol2d="<<theTolerance2d<<" NbParams="<<nbp<<" NbPnts="<<nb2<<std::endl;
 //     if (nb2 > nbp) nb2 = nbp;
 //     Standard_Real rbp,rb2; rbp = nbp; rb2 = nb2;
 //     //    dbl.AddString ("NbP2d/NbParams puis  X Y Param -> mini");
@@ -1564,9 +1564,9 @@ Handle(Geom2d_Curve) ShapeConstruct_ProjectCurveOnSurface::ApproximatePCurve(con
 // //    debug ...
     Standard_Integer nbp = params->Length();
     Standard_Integer nb2 = points2d->Length();
-    cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::InterpolatePCurve(): Exception: ";
-    anException.Print(cout); 
-    cout<<"Pb Geom2dAPI_Interpolate, tol2d="<<theTolerance2d<<" NbParams="<<nbp<<" NbPnts="<<nb2<<endl;
+    std::cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::InterpolatePCurve(): Exception: ";
+    anException.Print(std::cout); 
+    std::cout<<"Pb Geom2dAPI_Interpolate, tol2d="<<theTolerance2d<<" NbParams="<<nbp<<" NbPnts="<<nb2<<std::endl;
 //     if (nb2 > nbp) nb2 = nbp;
 //     Standard_Real rbp,rb2; rbp = nbp; rb2 = nb2;
 // //    dbl.AddString ("NbP2d/NbParams puis  X Y Param -> mini");
@@ -1604,8 +1604,8 @@ Handle(Geom_Curve) ShapeConstruct_ProjectCurveOnSurface::InterpolateCurve3d(cons
   catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
  //:s5
-    cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::InterpolateCurve3d(): Exception: ";
-    anException.Print(cout); cout << endl;
+    std::cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::InterpolateCurve3d(): Exception: ";
+    anException.Print(std::cout); std::cout << std::endl;
 #endif
     (void)anException;
     C3d.Nullify();
@@ -1855,13 +1855,13 @@ InsertAdditionalPointOrAdjust(Standard_Boolean& ToAdjust,
     return;
 
 #ifdef OCCT_DEBUG
-  cout << "Warning : removing 3d points for interpolation" << endl;
+  std::cout << "Warning : removing 3d points for interpolation" << std::endl;
 #endif
   // Build new HArrays
   Standard_Integer newLast = lastElem - nbPntDropped;
   if ((newLast - firstElem + 1)  < 2) {
 #ifdef OCCT_DEBUG
-    cout << "Too many degenerated points for 3D interpolation" << endl;
+    std::cout << "Too many degenerated points for 3D interpolation" << std::endl;
 #endif
     return;
   }
@@ -1926,13 +1926,13 @@ InsertAdditionalPointOrAdjust(Standard_Boolean& ToAdjust,
     return;
 
 #ifdef OCCT_DEBUG
-  cout << "Warning : removing 2d points for interpolation" << endl;
+  std::cout << "Warning : removing 2d points for interpolation" << std::endl;
 #endif
   // Build new HArrays
   Standard_Integer newLast = lastElem - nbPntDropped;
   if ((newLast - firstElem + 1)  < 2) {
 #ifdef OCCT_DEBUG
-    cout << "Too many degenerated points for 2D interpolation" << endl;
+    std::cout << "Too many degenerated points for 2D interpolation" << std::endl;
 #endif
     //pdn 12.02.99 S4135 Creating pcurve with minimal length.
     tmpParam.SetValue(firstElem,1);
@@ -1951,7 +1951,7 @@ InsertAdditionalPointOrAdjust(Standard_Boolean& ToAdjust,
   for (i = firstElem; i <= lastElem ; i++) {
     if (tmpParam.Value(i) == 1) { 
 #ifdef OCCT_DEBUG
-      cout << "Point " << i << " : " << points->Value(i).X() << " " << points->Value(i).Y() << " at param " <<  params->Value(i) << endl;
+      std::cout << "Point " << i << " : " << points->Value(i).X() << " " << points->Value(i).Y() << " at param " <<  params->Value(i) << std::endl;
 #endif
       newPnts->SetValue(newCurr, points->Value(i));
       newParams->SetValue(newCurr, params->Value(i));
@@ -1959,7 +1959,7 @@ InsertAdditionalPointOrAdjust(Standard_Boolean& ToAdjust,
     }
     else {
 #ifdef OCCT_DEBUG
-      cout << "Removed " << i << " : " << points->Value(i).X() << " " << points->Value(i).Y() << " at param " <<  params->Value(i) << endl;
+      std::cout << "Removed " << i << " : " << points->Value(i).X() << " " << points->Value(i).Y() << " at param " <<  params->Value(i) << std::endl;
 #endif
     }
   }
@@ -2209,11 +2209,11 @@ InsertAdditionalPointOrAdjust(Standard_Boolean& ToAdjust,
 #ifdef OCCT_DEBUG
 //  pb : on affiche ce qu on peut
     for (Standard_Integer numpnt = 1; numpnt <= nbrPnt; numpnt ++) {
-      cout<<"["<<numpnt<<"]param="<<params(numpnt)<<" point=("<<
-       points(numpnt).X()<<"  "<<points(numpnt).Y()<<"  "<<points(numpnt).Z()<<")"<<endl;
+      std::cout<<"["<<numpnt<<"]param="<<params(numpnt)<<" point=("<<
+       points(numpnt).X()<<"  "<<points(numpnt).Y()<<"  "<<points(numpnt).Z()<<")"<<std::endl;
     }
-    cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::IsAnIsoparametric(): Exception: ";
-    anException.Print(cout); cout << endl;
+    std::cout << "Warning: ShapeConstruct_ProjectCurveOnSurface::IsAnIsoparametric(): Exception: ";
+    anException.Print(std::cout); std::cout << std::endl;
 #endif
     (void)anException;
     return Standard_False;
index 9a5e73b..c934aa4 100644 (file)
@@ -481,7 +481,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertSurface(const Handle(Geo
           Handle(Geom_SurfaceOfRevolution) newRevol = new Geom_SurfaceOfRevolution(ResCurve,Surface->Axis());
           aSurf = newRevol;
 #ifdef OCCT_DEBUG
-          cout <<" Revolution on offset converted" << endl;
+          std::cout <<" Revolution on offset converted" << std::endl;
 #endif
         }
       }
@@ -683,10 +683,10 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertSurface(const Handle(Geo
             nbOfSpan = (anApprox.Surface()->NbUKnots()-1)*(anApprox.Surface()->NbVKnots()-1);
 #ifdef OCCT_DEBUG
             if((imax-i+1)!=1) {
-              cout << " iteration = " << i
+              std::cout << " iteration = " << i
                 <<    "\terror = " << anApprox.MaxError()
-                <<    "\tspans = " << nbOfSpan << endl;
-              cout<< " Surface is aproximated with continuity " << IntegerToGeomAbsShape(Min(aCU,aCV)) <<endl;
+                <<    "\tspans = " << nbOfSpan << std::endl;
+              std::cout<< " Surface is aproximated with continuity " << IntegerToGeomAbsShape(Min(aCU,aCV)) <<std::endl;
             }
 #endif
             S = anApprox.Surface();
@@ -729,8 +729,8 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertSurface(const Handle(Geo
 
         catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-          cout << "Warning: GeomConvert_ApproxSurface Exception: try to decrease continuity ";
-          anException.Print(cout); cout << endl;
+          std::cout << "Warning: GeomConvert_ApproxSurface Exception: try to decrease continuity ";
+          anException.Print(std::cout); std::cout << std::endl;
 #endif
           (void)anException;
           //szv: protection against loop
@@ -757,7 +757,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertSurface(const Handle(Geo
       }
       else { 
 #ifdef OCCT_DEBUG
-        cout<<" Approximation iteration out. Surface is not aproximated." << endl;
+        std::cout<<" Approximation iteration out. Surface is not aproximated." << std::endl;
 #endif
         return Standard_False;
       }
@@ -767,7 +767,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertSurface(const Handle(Geo
       { MaxDeg = myParameters->GMaxDegree(); continue;}
       else {
 #ifdef OCCT_DEBUG      
-        cout<<" Approximation iteration out. Surface is not aproximated." << endl;
+        std::cout<<" Approximation iteration out. Surface is not aproximated." << std::endl;
 #endif
         return Standard_False;
       }
@@ -1033,7 +1033,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertCurve(const Handle(Geom_
                   if(MaxSeg < myParameters->GMaxSeg()) { MaxSeg = myParameters->GMaxSeg(); aC =aC1; continue;}
                   else {
 #ifdef OCCT_DEBUG
-                    cout << "Curve is not aproxed with continuity  "<< aCont<<endl;
+                    std::cout << "Curve is not aproxed with continuity  "<< aCont<<std::endl;
 #endif       
                     if(IsConvert) {
                       C = Handle(Geom_Curve)::DownCast(aCurve->Copy());
@@ -1049,7 +1049,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertCurve(const Handle(Geom_
                   }
                   else {
 #ifdef OCCT_DEBUG
-                    cout << "Curve is not aproxed with continuity  "<< aCont<<endl;
+                    std::cout << "Curve is not aproxed with continuity  "<< aCont<<std::endl;
 #endif
                     if(IsConvert) {
                       C = Handle(Geom_Curve)::DownCast(aCurve->Copy());
@@ -1066,8 +1066,8 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertCurve(const Handle(Geom_
         }
         catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-          cout << "Warning: GeomConvert_ApproxCurve Exception: Wrong Coefficient : Decrease continuity    ";
-          anException.Print(cout); cout << endl;
+          std::cout << "Warning: GeomConvert_ApproxCurve Exception: Wrong Coefficient : Decrease continuity    ";
+          anException.Print(std::cout); std::cout << std::endl;
 #endif
           (void)anException;
           continue;
@@ -1342,7 +1342,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertCurve2d(const Handle(Geo
               if(MaxSeg < myParameters->GMaxSeg()) { MaxSeg = myParameters->GMaxSeg(); aC =aC1; continue;}
               else {
 #ifdef OCCT_DEBUG
-                cout << "Curve is not aproxed with continuity  "<< aCont<<endl;
+                std::cout << "Curve is not aproxed with continuity  "<< aCont<<std::endl;
 #endif
                 if(IsConvert) {
                   C = Handle(Geom2d_Curve)::DownCast(aCurve->Copy());
@@ -1358,7 +1358,7 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertCurve2d(const Handle(Geo
               }
               else {
 #ifdef OCCT_DEBUG
-                cout << "Curve is not aproxed with continuity  "<< aCont<<endl;
+                std::cout << "Curve is not aproxed with continuity  "<< aCont<<std::endl;
 #endif
                 if(IsConvert) {
                   C = Handle(Geom2d_Curve)::DownCast(aCurve->Copy());
@@ -1375,8 +1375,8 @@ Standard_Boolean ShapeCustom_BSplineRestriction::ConvertCurve2d(const Handle(Geo
         }
         catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-          cout << "Warning: Geom2dConvert_ApproxCurve Exception: Wrong Cofficient :Decrease Continuity    ";
-          anException.Print(cout); cout << endl;
+          std::cout << "Warning: Geom2dConvert_ApproxCurve Exception: Wrong Cofficient :Decrease Continuity    ";
+          anException.Print(std::cout); std::cout << std::endl;
 #endif
           (void)anException;
           continue;
index 54153af..64231db 100644 (file)
@@ -106,7 +106,7 @@ Handle(Geom_Curve) ShapeCustom_Curve::ConvertToPeriodic (const Standard_Boolean
     }
   }
 #ifdef OCCT_DEBUG
-  cout << "Warning: ShapeCustom_Surface: Closed BSplineSurface is caused to be periodic" << endl;
+  std::cout << "Warning: ShapeCustom_Surface: Closed BSplineSurface is caused to be periodic" << std::endl;
 #endif
   if ( ! converted ) return newCurve;
   newCurve = BSpl;
index 9085d63..aeda99a 100644 (file)
@@ -190,7 +190,7 @@ Handle(Geom_Surface) ShapeCustom_Surface::ConvertToAnalytical (const Standard_Re
                     0.5*(p1(i).Y()+p2(i).Y()), 
                     0.5*(p1(i).Z()+p2(i).Z()));
       R(i) = p3(i).Distance(p1(i));
-//     cout<<"sphere, i="<<i<<" V="<<V<<" R="<<R(i)<<" p1="<<p1(i).X()<<","<<p1(i).Y()<<","<<p1(i).Z()<<" p2="<<p2(i).X()<<","<<p2(i).Y()<<","<<p2(i).Z()<<" p3="<<p3(i).X()<<","<<p3(i).Y()<<","<<p3(i).Z()<<endl;
+//     std::cout<<"sphere, i="<<i<<" V="<<V<<" R="<<R(i)<<" p1="<<p1(i).X()<<","<<p1(i).Y()<<","<<p1(i).Z()<<" p2="<<p2(i).X()<<","<<p2(i).Y()<<","<<p2(i).Z()<<" p3="<<p3(i).X()<<","<<p3(i).Y()<<","<<p3(i).Z()<<std::endl;
     }
       
     iso->D1 (0.,origPnt,origD1U);
@@ -203,7 +203,7 @@ Handle(Geom_Surface) ShapeCustom_Surface::ConvertToAnalytical (const Standard_Re
     //gp_Dir AXY = aAx3.YDirection(); // AXY not used (skl)
     if (aAx3.YDirection().Dot (origD1U) < 0) {
 #ifdef OCCT_DEBUG
-      cout<<" Surface Analytique : sens a inverser"<<endl;
+      std::cout<<" Surface Analytique : sens a inverser"<<std::endl;
 #endif
       aAx3.YReverse();    //  mais X reste !
     }
@@ -303,7 +303,7 @@ Handle(Geom_Surface) ShapeCustom_Surface::ConvertToAnalytical (const Standard_Re
        anObject->D1 (0.,0.,resPnt,resD1U,resD1V);
 #ifdef OCCT_DEBUG
        if (resD1U.Dot(origD1U) < 0 && j != 2)
-         cout<<" Tore a inverser !"<<endl;
+         std::cout<<" Tore a inverser !"<<std::endl;
 #endif
        newSurf = anObject;
        isFound = Standard_True;
@@ -508,7 +508,7 @@ Handle(Geom_Surface) ShapeCustom_Surface::ConvertToPeriodic (const Standard_Bool
   }
   
 #ifdef OCCT_DEBUG
-  cout << "Warning: ShapeCustom_Surface: Closed BSplineSurface is caused to be periodic" << endl;
+  std::cout << "Warning: ShapeCustom_Surface: Closed BSplineSurface is caused to be periodic" << std::endl;
 #endif
   if ( ! converted ) return newSurf;
   newSurf = BSpl;
index 4d85258..478cac4 100644 (file)
@@ -130,7 +130,7 @@ ShapeExtend_ComplexCurve::ShapeExtend_ComplexCurve()
       (Curve (i + 1)->Value (Curve(i + 1)->FirstParameter()), Preci);
   }
 #ifdef OCCT_DEBUG
-  if (!ok) cout << "Warning: ShapeExtend_ComplexCurve: not connected in 3d" << endl;
+  if (!ok) std::cout << "Warning: ShapeExtend_ComplexCurve: not connected in 3d" << std::endl;
 #endif
   return ok;
 }
index c493274..f71bc21 100644 (file)
@@ -91,7 +91,7 @@ Standard_Boolean ShapeExtend_CompositeSurface::Init (const Handle(TColGeom_HArra
     ok = Standard_False;
     ComputeJointValues ( ShapeExtend_Natural );
 #ifdef OCCT_DEBUG
-    cout << "Warning: ShapeExtend_CompositeSurface::Init: bad joint values" << endl;
+    std::cout << "Warning: ShapeExtend_CompositeSurface::Init: bad joint values" << std::endl;
 #endif
   }
   
@@ -838,7 +838,7 @@ Standard_Boolean ShapeExtend_CompositeSurface::CheckConnectivity (const Standard
   }
 
 #ifdef OCCT_DEBUG
-  if ( ! ok ) cout << "Warning: ShapeExtend_CompositeSurface: not connected in 3d" << endl;
+  if ( ! ok ) std::cout << "Warning: ShapeExtend_CompositeSurface: not connected in 3d" << std::endl;
 #endif
   return ok;
 }
index 0d00565..0e03962 100644 (file)
@@ -42,7 +42,7 @@ void ShapeExtend_MsgRegistrator::Send(const Handle(Standard_Transient)& object,
 {
   if (object.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: ShapeExtend_MsgRegistrator::Send: null object" << endl;
+    std::cout << "Warning: ShapeExtend_MsgRegistrator::Send: null object" << std::endl;
 #endif
     return;
   }
@@ -68,7 +68,7 @@ void ShapeExtend_MsgRegistrator::Send(const Handle(Standard_Transient)& object,
 {
   if (shape.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: ShapeExtend_MsgRegistrator::Send: null shape" << endl;
+    std::cout << "Warning: ShapeExtend_MsgRegistrator::Send: null shape" << std::endl;
 #endif
     return;
   }
index 75679bd..abeeff3 100644 (file)
@@ -247,9 +247,9 @@ Standard_Boolean ShapeFix::SameParameter(const TopoDS_Shape& shape,
 
   if (!status) {
 #ifdef OCCT_DEBUG
-    cout<<"** SameParameter not complete. On "<<numedge<<" Edges:";
-    if (nbfail > 0) cout<<"  "<<nbfail<<" Failed";
-    cout<<endl;
+    std::cout<<"** SameParameter not complete. On "<<numedge<<" Edges:";
+    if (nbfail > 0) std::cout<<"  "<<nbfail<<" Failed";
+    std::cout<<std::endl;
 #endif
   }
   return status;
index acfc5f1..9eb487d 100644 (file)
@@ -383,7 +383,7 @@ static Standard_Integer ApplyContext (ShapeFix_WireSegment &wire,
     TopoDS_Edge E = TopoDS::Edge ( it.Value() );
     if ( ! E.IsNull() ) segw->Add ( E );
 #ifdef OCCT_DEBUG
-    else cout << "Error: ShapeFix_ComposeShell, ApplyContext: wrong mapping of edge" << endl;
+    else std::cout << "Error: ShapeFix_ComposeShell, ApplyContext: wrong mapping of edge" << std::endl;
 #endif
   }
 
@@ -400,7 +400,7 @@ static Standard_Integer ApplyContext (ShapeFix_WireSegment &wire,
     }
   }
 #ifdef OCCT_DEBUG
-  else cout << "Warning: ShapeFix_ComposeShell, ApplyContext: edge is to remove - not implemented" << endl;
+  else std::cout << "Warning: ShapeFix_ComposeShell, ApplyContext: edge is to remove - not implemented" << std::endl;
 #endif
 
   return index - iedge;
@@ -707,7 +707,7 @@ Standard_Integer ShapeFix_ComposeShell::ComputeCode (const Handle(ShapeExtend_Wi
     code = IOR_LEFT;
     myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_FAIL2 );
 #ifdef OCCT_DEBUG
-    cout << "Warning: ShapeFix_ComposeShell::ComputeCode: lost intersection point" << endl;
+    std::cout << "Warning: ShapeFix_ComposeShell::ComputeCode: lost intersection point" << std::endl;
 #endif
   }
   return code;
@@ -828,7 +828,7 @@ ShapeFix_WireSegment ShapeFix_ComposeShell::SplitWire (ShapeFix_WireSegment &wir
       DistributeSplitPoints ( wire.WireData(), myFace, i, nsplit, indexes, values );
       if ( nsplit <=0 ) {
 #ifdef OCCT_DEBUG
-        cout << "Error: ShapeFix_ComposeShell::SplitWire: edge dismissed" << endl;
+        std::cout << "Error: ShapeFix_ComposeShell::SplitWire: edge dismissed" << std::endl;
 #endif
         i--;
         continue;
@@ -1612,7 +1612,7 @@ void ShapeFix_ComposeShell::SplitByLine (ShapeFix_SequenceOfWireSegment &wires,
     if ( tanglevel <0 ) {
 //      myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_FAIL4 );
 #ifdef OCCT_DEBUG
-      cout << "Warning: ShapeFix_ComposeShell::SplitByLine: tangency level <0 !" << endl;
+      std::cout << "Warning: ShapeFix_ComposeShell::SplitByLine: tangency level <0 !" << std::endl;
 #endif
     }
     if ( ! interior ) continue;
@@ -1627,7 +1627,7 @@ void ShapeFix_ComposeShell::SplitByLine (ShapeFix_SequenceOfWireSegment &wires,
     if ( SplitLinePar(i) - SplitLinePar(i-1) < ::Precision::PConfusion() ) {
 
 #ifdef OCCT_DEBUG
-      cout << "Info: ShapeFix_ComposeShell::SplitByLine: Short segment ignored" << endl;
+      std::cout << "Info: ShapeFix_ComposeShell::SplitByLine: Short segment ignored" << std::endl;
 #endif
       if ( ! V1.IsSame ( V2 ) ) { // merge coincident vertices
         ShapeBuild_Vertex sbv;
@@ -1636,7 +1636,7 @@ void ShapeFix_ComposeShell::SplitByLine (ShapeFix_SequenceOfWireSegment &wires,
         Context()->Replace ( V2, V.Oriented ( V2.Orientation() ) );
         V1 = V2 = V;
 #ifdef OCCT_DEBUG
-        cout << "Info: ShapeFix_ComposeShell::SplitByLine: Coincided vertices merged" << endl;
+        std::cout << "Info: ShapeFix_ComposeShell::SplitByLine: Coincided vertices merged" << std::endl;
 #endif
       }
       continue;
@@ -1680,7 +1680,7 @@ void ShapeFix_ComposeShell::SplitByLine (ShapeFix_SequenceOfWireSegment &wires,
   if ( parity % 2 ) {
     myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_FAIL4 );
 #ifdef OCCT_DEBUG
-    cout << "Error: ShapeFix_ComposeShell::SplitByLine: parity error" << endl;
+    std::cout << "Error: ShapeFix_ComposeShell::SplitByLine: parity error" << std::endl;
 #endif
   }
 
@@ -2006,7 +2006,7 @@ void ShapeFix_ComposeShell::CollectWires (ShapeFix_SequenceOfWireSegment &wires,
 #ifdef OCCT_DEBUG
     for ( Standard_Integer k=1; ! myClosedMode && k <= seqw(i).NbEdges(); k++ ) 
       if ( ! seqw(i).CheckPatchIndex ( k ) ) {
-        cout << "Warning: ShapeFix_ComposeShell::CollectWires: Wrong patch indices" << endl;
+        std::cout << "Warning: ShapeFix_ComposeShell::CollectWires: Wrong patch indices" << std::endl;
         break;
       }
 #endif
@@ -2018,7 +2018,7 @@ void ShapeFix_ComposeShell::CollectWires (ShapeFix_SequenceOfWireSegment &wires,
            ( seqw(i).NbEdges() == 1 && //:abv 13.05.02: OCC320 - remove if degenerated 
              BRep_Tool::Degenerated ( seqw(i).Edge(1) ) ) ) ) {
 #ifdef OCCT_DEBUG
-      cout << "Info: ShapeFix_ComposeShell::CollectWires: Short segment ignored" << endl;
+      std::cout << "Info: ShapeFix_ComposeShell::CollectWires: Short segment ignored" << std::endl;
 #endif
       seqw(i).Orientation ( TopAbs_INTERNAL );
     }
@@ -2225,7 +2225,7 @@ void ShapeFix_ComposeShell::CollectWires (ShapeFix_SequenceOfWireSegment &wires,
       if ( ! endV.IsSame ( sae.FirstVertex ( firstEdge ) ) ) {
         myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_FAIL5 );
 #ifdef OCCT_DEBUG
-        cout << "Warning: ShapeFix_ComposeShell::CollectWires: can't close wire" << endl;
+        std::cout << "Warning: ShapeFix_ComposeShell::CollectWires: can't close wire" << std::endl;
 #endif
       }
       ShapeFix_WireSegment s ( sbwd, TopAbs_FORWARD );
@@ -2285,7 +2285,7 @@ void ShapeFix_ComposeShell::CollectWires (ShapeFix_SequenceOfWireSegment &wires,
       ShapeFix_WireSegment s ( wd, TopAbs_FORWARD );
       wires.Append ( s );
 #ifdef OCCT_DEBUG
-      cout <<"Warning: Short segment processed as separate wire"<<endl;
+      std::cout <<"Warning: Short segment processed as separate wire"<<std::endl;
 #endif
       continue;
     }
@@ -2471,7 +2471,7 @@ void ShapeFix_ComposeShell::MakeFacesOnPatch (TopTools_SequenceOfShape &faces,
   // check for lost wires, and if they are, make them roots
   if ( roots.Length() <=0 && loops.Length() >0 ) {
 #ifdef OCCT_DEBUG
-    cout << "Error: ShapeFix_ComposeShell::MakeFacesOnPatch: can't dispatch wires" << endl;
+    std::cout << "Error: ShapeFix_ComposeShell::MakeFacesOnPatch: can't dispatch wires" << std::endl;
 #endif
     for ( Standard_Integer j=1; j <= loops.Length(); j++ ) {
       roots.Append ( loops(j) );
@@ -2490,7 +2490,7 @@ void ShapeFix_ComposeShell::MakeFacesOnPatch (TopTools_SequenceOfShape &faces,
     if ( clas.PerformInfinitePoint() == TopAbs_IN ) {
       reverse = Standard_True;
 #ifdef OCCT_DEBUG
-      cout << "Warning: ShapeFix_ComposeShell::MakeFacesOnPatch: badly oriented wire" << endl;
+      std::cout << "Warning: ShapeFix_ComposeShell::MakeFacesOnPatch: badly oriented wire" << std::endl;
 #endif
     }
 
@@ -2542,7 +2542,7 @@ void ShapeFix_ComposeShell::MakeFacesOnPatch (TopTools_SequenceOfShape &faces,
     // check for lost wires, and if they are, make them roots
     if ( i == roots.Length() && loops.Length() >0 ) {
 #ifdef OCCT_DEBUG
-      cout << "Error: ShapeFix_ComposeShell::MakeFacesOnPatch: can't dispatch wires" << endl;
+      std::cout << "Error: ShapeFix_ComposeShell::MakeFacesOnPatch: can't dispatch wires" << std::endl;
 #endif
       for ( j=1; j <= loops.Length(); j++ ) {
         TopoDS_Shape aSh = loops(j);
index 46fbfbd..d7ff00f 100644 (file)
@@ -267,7 +267,7 @@ static Handle(Geom2d_Curve) TranslatePCurve (const Handle(Geom_Surface)& aSurf,
 */
     // Other case not yet implemented
 #ifdef OCCT_DEBUG
-    cout << "TranslatePCurve not performed" << endl;
+    std::cout << "TranslatePCurve not performed" << std::endl;
 #endif
     return theNewL2d;//*theL2d;
   }
@@ -277,7 +277,7 @@ static Handle(Geom2d_Curve) TranslatePCurve (const Handle(Geom_Surface)& aSurf,
       aBC = Handle(Geom2d_BSplineCurve)::DownCast(aC2d);
     if (aBC.IsNull()) {
 #ifdef OCCT_DEBUG
-      cout << "Untreated curve type in TranslatePCurve" << endl;
+      std::cout << "Untreated curve type in TranslatePCurve" << std::endl;
 #endif
       return aC2d;
     }
@@ -558,8 +558,8 @@ Standard_Boolean ShapeFix_Edge::FixAddPCurve (const TopoDS_Edge& edge,
   catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
 //:s5
-    cout << "Warning: ShapeFix_Edge::FixAddPCurve(): Exception: ";
-    anException.Print(cout); cout << endl;
+    std::cout << "Warning: ShapeFix_Edge::FixAddPCurve(): Exception: ";
+    anException.Print(std::cout); std::cout << std::endl;
 #endif
     (void)anException;
     myStatus |= ShapeExtend::EncodeStatus (ShapeExtend_FAIL2);
@@ -787,8 +787,8 @@ Standard_Boolean ShapeFix_Edge::FixSameParameter(const TopoDS_Edge& edge,
     }
     catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-      cout << "\nWarning: ShapeFix_Edge: Exception in SameParameter: "; 
-      anException.Print(cout); cout << endl;
+      std::cout << "\nWarning: ShapeFix_Edge: Exception in SameParameter: "; 
+      anException.Print(std::cout); std::cout << std::endl;
 #endif
       (void)anException;
       myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_FAIL2 );
index 5b2fb48..3c678f2 100644 (file)
@@ -101,7 +101,7 @@ void ShapeFix_EdgeProjAux::Compute (const Standard_Real preci)
     Standard_Real U2 = LastParam();
     if (U1>=U2) {
 #ifdef OCCT_DEBUG
-      cout << "Parametres inverses ... " << endl;
+      std::cout << "Parametres inverses ... " << std::endl;
 #endif
       Standard_Real tmp = U1;
       U1 = U2; U2 = tmp;
@@ -212,8 +212,8 @@ static Standard_Boolean FindParameterWithExt (const gp_Pnt& Pt1,
   catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
 //:s5
-    cout << "Warning: ShapeFix_EdgeProjAux, FindParameterWithExt(): Exception: ";
-    anException.Print(cout); cout << endl;
+    std::cout << "Warning: ShapeFix_EdgeProjAux, FindParameterWithExt(): Exception: ";
+    anException.Print(std::cout); std::cout << std::endl;
 #endif
     (void)anException;
     return Standard_False;
@@ -268,7 +268,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci)
         }
       } 
 #ifdef OCCT_DEBUG
-      else cout <<"Other type of deg curve"<<endl;
+      else std::cout <<"Other type of deg curve"<<std::endl;
 #endif
 
     }
@@ -357,7 +357,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci)
         cl= 10000;
         //pdn not cutted by bounds
 #ifdef OCCT_DEBUG
-        cout<<"Infinite Surface"<<endl;
+        std::cout<<"Infinite Surface"<<std::endl;
 #endif 
       }
     }
@@ -377,7 +377,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci)
       }
 
 #ifdef OCCT_DEBUG
-      cout<<"Some infinite curve"<<endl;
+      std::cout<<"Some infinite curve"<<std::endl;
 #endif 
     }
   }
@@ -424,7 +424,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci)
     myLastParam  = theCurve2d->ReversedParameter(Uinf);
     theCurve2d->Reverse();
 #ifdef OCCT_DEBUG
-    cout << "Warning: ShapeFix_EdgeProjAux: pcurve reversed" << endl;
+    std::cout << "Warning: ShapeFix_EdgeProjAux: pcurve reversed" << std::endl;
 #endif
     return;
   }
@@ -465,7 +465,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci)
       else {
         myLastParam+=period;
 #ifdef OCCT_DEBUG
-        cout <<" Added"<<endl;
+        std::cout <<" Added"<<std::endl;
 #endif 
       }
     }
@@ -474,7 +474,7 @@ void ShapeFix_EdgeProjAux::Init2d (const Standard_Real preci)
         myLastParam -=period;
         UpdateParam2d(theCurve2d);
 #ifdef OCCT_DEBUG
-        cout <<" Added & Inverted"<<endl;
+        std::cout <<" Added & Inverted"<<std::endl;
 #endif 
       } else if (w2 < wmid) {
         myFirstParam += period;
@@ -587,8 +587,8 @@ void ShapeFix_EdgeProjAux::UpdateParam2d (const Handle(Geom2d_Curve)& theCurve2d
     else if ( Abs ( myLastParam  - cf ) <= preci2d ) myLastParam  = cl;
     else {
 #ifdef OCCT_DEBUG
-      cout << "Error : curve 2d range crossing non periodic curve origin";
-      cout <<  endl;
+      std::cout << "Error : curve 2d range crossing non periodic curve origin";
+      std::cout <<  std::endl;
 #endif
       // add fail result;
       return;
@@ -605,13 +605,13 @@ void ShapeFix_EdgeProjAux::UpdateParam2d (const Handle(Geom2d_Curve)& theCurve2d
   }
   else {
 #ifdef OCCT_DEBUG
-    cout << "Warning : non increasing parameters for 2d curve." << endl;
-    cout << "          update parameter 2d uncertain." << endl;
+    std::cout << "Warning : non increasing parameters for 2d curve." << std::endl;
+    std::cout << "          update parameter 2d uncertain." << std::endl;
 #endif
     Standard_Real tmp1 = myFirstParam, tmp2 = myLastParam;
     myFirstParam = theCurve2d->ReversedParameter(tmp1);
     myLastParam = theCurve2d->ReversedParameter(tmp2);
     theCurve2d->Reverse();
-    //cout<<"Reversed case 2"<<endl;
+    //std::cout<<"Reversed case 2"<<std::endl;
   }
 }
index 9ebadf5..a452925 100644 (file)
@@ -348,7 +348,7 @@ static Standard_Boolean SplitWire(const TopoDS_Face &face, const TopoDS_Wire& wi
 
   if(aResWires.Length()>1) {
 #ifdef OCCT_DEBUG
-    cout<<"Wire was splitted on "<<aResWires.Length()<<" wires"<< endl;
+    std::cout<<"Wire was splitted on "<<aResWires.Length()<<" wires"<< std::endl;
 #endif
   }
 
@@ -995,7 +995,7 @@ Standard_Boolean ShapeFix_Face::FixAddNaturalBound()
   
 /**/
 #ifdef OCCT_DEBUG
-  cout<<"Natural bound on sphere or torus with holes added"<<endl; // mise au point !
+  std::cout<<"Natural bound on sphere or torus with holes added"<<std::endl; // mise au point !
 #endif
   SendWarning ( myFace, Message_Msg ( "FixAdvFace.FixOrientation.MSG0" ) );// Face created with natural bounds
   return Standard_True;
@@ -1106,7 +1106,7 @@ Standard_Boolean ShapeFix_Face::FixOrientation(TopTools_DataMapOfShapeListOfShap
       SendWarning ( sbdw->Wire(), Message_Msg ( "FixAdvFace.FixOrientation.MSG5" ) );// Wire on face was reversed
       done = Standard_True;
 #ifdef OCCT_DEBUG
-      cout<<"Wire reversed"<<endl; // mise au point !
+      std::cout<<"Wire reversed"<<std::endl; // mise au point !
 #endif
     }
   }
@@ -1403,7 +1403,7 @@ Standard_Boolean ShapeFix_Face::FixOrientation(TopTools_DataMapOfShapeListOfShap
     for( ; k <= aSeqReversed.Length(); k++ )
     {
 #ifdef OCCT_DEBUG
-      cout<<"Wire no "<<aSeqReversed.Value(k)<<" of "<<nb<<" reversed"<<endl; // mise au point !
+      std::cout<<"Wire no "<<aSeqReversed.Value(k)<<" of "<<nb<<" reversed"<<std::endl; // mise au point !
 #endif
     }
       
@@ -1567,18 +1567,18 @@ Standard_Boolean ShapeFix_Face::FixMissingSeam()
         else {
           w2.Reverse();
 #ifdef OCCT_DEBUG
-          if ( ! isdeg2 ) cout << "Warning: ShapeFix_Face::FixMissingSeam(): wire reversed" << endl;
+          if ( ! isdeg2 ) std::cout << "Warning: ShapeFix_Face::FixMissingSeam(): wire reversed" << std::endl;
 #endif
         }
       }
 #ifdef OCCT_DEBUG
-      else cout << "Warning: ShapeFix_Face::FixMissingSeam(): incompatible open wires" << endl;
+      else std::cout << "Warning: ShapeFix_Face::FixMissingSeam(): incompatible open wires" << std::endl;
 #endif
     }
 //    else return Standard_False; //  abort
     else {
 #ifdef OCCT_DEBUG
-      cout << "Warning: ShapeFix_Face::FixMissingSeam(): more than two open wires detected!" << endl;
+      std::cout << "Warning: ShapeFix_Face::FixMissingSeam(): more than two open wires detected!" << std::endl;
 #endif
       //:abv 30.08.09: if more than one open wires and more than two of them are
       // completely degenerated, remove any of them
@@ -1588,7 +1588,7 @@ Standard_Boolean ShapeFix_Face::FixMissingSeam()
         w2.Nullify();
         i = 0;
 #ifdef OCCT_DEBUG
-        cout << "Warning: ShapeFix_Face::FixMissingSeam(): open degenerated wire removed" << endl;
+        std::cout << "Warning: ShapeFix_Face::FixMissingSeam(): open degenerated wire removed" << std::endl;
 #endif
         continue;
       }
@@ -1921,7 +1921,7 @@ Standard_Boolean ShapeFix_Face::FixSmallAreaWire(const Standard_Boolean theIsRem
   if ( nbWires <= 0 )
   {
 #ifdef OCCT_DEBUG
-    cout << "Warning: ShapeFix_Face: All wires on a face have small area; left untouched" << endl;
+    std::cout << "Warning: ShapeFix_Face: All wires on a face have small area; left untouched" << std::endl;
 #endif
     if ( theIsRemoveSmallFace && !Context().IsNull() )
       Context()->Remove(myFace);
@@ -1929,7 +1929,7 @@ Standard_Boolean ShapeFix_Face::FixSmallAreaWire(const Standard_Boolean theIsRem
     return Standard_False;
   }
 #ifdef OCCT_DEBUG
-  cout << "Warning: ShapeFix_Face: " << nbRemoved << " small area wire(s) removed" << endl;
+  std::cout << "Warning: ShapeFix_Face: " << nbRemoved << " small area wire(s) removed" << std::endl;
 #endif
   if ( !Context().IsNull() )
     Context()->Replace(myFace, aFace);
@@ -2146,7 +2146,7 @@ Standard_Boolean ShapeFix_Face::FixLoopWire(TopTools_SequenceOfShape& aResWires)
   if(isDone && aResWires.Length() >1)
   {
 #ifdef OCCT_DEBUG
-    cout<<"Wire was splitted on "<<aResWires.Length()<<" wires"<< endl;
+    std::cout<<"Wire was splitted on "<<aResWires.Length()<<" wires"<< std::endl;
 #endif
   }
 
@@ -2421,7 +2421,7 @@ Standard_Boolean ShapeFix_Face::FixSplitFace(const TopTools_DataMapOfShapeListOf
       V2=sae.LastVertex(E2);
       if(!V1.IsSame(V2)) {
 #ifdef OCCT_DEBUG
-        cout<<"wire not closed --> stop split"<<endl;
+        std::cout<<"wire not closed --> stop split"<<std::endl;
 #endif
         return Standard_False;
       }
index 9f950db..d679568 100644 (file)
@@ -171,15 +171,15 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
   //szv debug - preparation results
   //-------------------------------
   if (!myOriFreeEdges.IsEmpty()) {
-    cout<<endl<<"FACE CONNECT PREPARATION RESULTS:"<<endl;
-    cout<<"---------------------------------"<<endl;
+    std::cout<<std::endl<<"FACE CONNECT PREPARATION RESULTS:"<<std::endl;
+    std::cout<<"---------------------------------"<<std::endl;
     Standard_Integer freenum = 0, facenum = 0;
     for ( TopTools_DataMapIteratorOfDataMapOfShapeListOfShape theOFIter( myOriFreeEdges );
          theOFIter.More(); theOFIter.Next() ) {
       freenum += theOFIter.Value().Extent();
       facenum++;
     }
-    cout<<"TOTAL: "<<facenum<<" faces containing "<<freenum<<" free edges"<<endl;
+    std::cout<<"TOTAL: "<<facenum<<" faces containing "<<freenum<<" free edges"<<std::endl;
   }
   //-------------------------------
 #endif
@@ -245,7 +245,7 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
              // Process second face for the pair of different faces only
              if (theFirstFace.IsSame(theSecondFace)) {
 #ifdef OCCT_DEBUG
-               cout<<"Warning: ShapeFix_FaceConnect::Build: Self-connected face"<<endl;
+               std::cout<<"Warning: ShapeFix_FaceConnect::Build: Self-connected face"<<std::endl;
 #endif
              }
              else theNumOfFacesToSew = 2;
@@ -346,9 +346,9 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
     //-------------------------------
     //szv debug - sewing results
     //-------------------------------
-    cout<<endl<<"FACE CONNECT SEWING RESULTS:"<<endl;
-    cout<<"----------------------------"<<endl;
-    cout<<"Sewing tolerance was set to "<<sewtoler<<endl;
+    std::cout<<std::endl<<"FACE CONNECT SEWING RESULTS:"<<std::endl;
+    std::cout<<"----------------------------"<<std::endl;
+    std::cout<<"Sewing tolerance was set to "<<sewtoler<<std::endl;
     Standard_Integer totfree = 0, totshared = 0;
     for ( TopTools_DataMapIteratorOfDataMapOfShapeListOfShape theOF2Iter( myOriFreeEdges );
          theOF2Iter.More(); theOF2Iter.Next() ) {
@@ -359,7 +359,7 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
        totshared += myResSharEdges(theOFL2Iter.Value()).Extent();
       }
     }
-    cout<<"TOTAL: "<<totfree<<" free, "<<totshared<<" shared edges"<<endl;
+    std::cout<<"TOTAL: "<<totfree<<" free, "<<totshared<<" shared edges"<<std::endl;
     //-------------------------------
 #endif
 
@@ -476,12 +476,12 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
       result = TopoDS::Shell(tmpReShape);
       if (theReShape->Status(ShapeExtend_OK)) {
 #ifdef OCCT_DEBUG
-       cout<<"Warning: ShapeFix_FaceConnect::Build: Edges not replaced by ReShape"<<endl;
+       std::cout<<"Warning: ShapeFix_FaceConnect::Build: Edges not replaced by ReShape"<<std::endl;
 #endif 
       }
       else if (theReShape->Status(ShapeExtend_FAIL1)) {
 #ifdef OCCT_DEBUG
-       cout<<"Error: ShapeFix_FaceConnect::Build: ReShape failed on edges"<<endl;
+       std::cout<<"Error: ShapeFix_FaceConnect::Build: ReShape failed on edges"<<std::endl;
 #endif 
       }
       else {
@@ -631,7 +631,7 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
 
          if (theReShape->Status(ShapeExtend_FAIL1)) {
 #ifdef OCCT_DEBUG
-           cout<<"Error: ShapeFix_FaceConnect::Build: ReShape failed on vertices"<<endl;
+           std::cout<<"Error: ShapeFix_FaceConnect::Build: ReShape failed on vertices"<<std::endl;
 #endif 
          }
        }
@@ -640,8 +640,8 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
        //-------------------------------
        //szv debug - reshape results
        //-------------------------------
-       cout<<endl<<"FACE CONNECT REPLACEMENT RESULTS:"<<endl;
-       cout<<"---------------------------------"<<endl;
+       std::cout<<std::endl<<"FACE CONNECT REPLACEMENT RESULTS:"<<std::endl;
+       std::cout<<"---------------------------------"<<std::endl;
        TopTools_MapOfShape theTmpMap;
        Standard_Integer toteold = 0, totenew = 0;
        for ( TopTools_DataMapIteratorOfDataMapOfShapeShape theR1Iter( theRepEdges );
@@ -662,8 +662,8 @@ ShapeFix_FaceConnect::ShapeFix_FaceConnect() {}
            totvnew++;
          }
        }
-       cout<<"TOTAL: "<<toteold<<" edges, "<<totvold<<" vertices replaced by "
-           <<totenew<<" edges, "<<totvnew<<" vertices"<<endl<<endl;
+       std::cout<<"TOTAL: "<<toteold<<" edges, "<<totvold<<" vertices replaced by "
+           <<totenew<<" edges, "<<totvnew<<" vertices"<<std::endl<<std::endl;
        //-------------------------------
 #endif
 
index f1a940f..2125327 100644 (file)
@@ -252,7 +252,7 @@ ShapeFix_FixSmallFace::ShapeFix_FixSmallFace()
          TopoDS_Shell Sh = TopoDS::Shell (exp_s.Current());
          TopExp_Explorer ex_sh(Sh,TopAbs_FACE);
          if (!ex_sh.More())  { Context()->Remove(Sh);
-//                             cout << "Empty shell was removed" << endl; 
+//                             std::cout << "Empty shell was removed" << std::endl; 
                              }
        }
        myShape = Context()->Apply(myShape);
@@ -449,7 +449,7 @@ ShapeFix_FixSmallFace::ShapeFix_FixSmallFace()
        } 
       else {
 #ifdef OCCT_DEBUG
-       cout << "The face is not strip face"  << endl;
+       std::cout << "The face is not strip face"  << std::endl;
 #endif
        return theNewEdge;
       }
index 223143e..f738e9f 100644 (file)
@@ -462,7 +462,7 @@ Standard_Boolean ShapeFix_IntersectionTool::UnionVertexes(const Handle(ShapeExte
       // union vertexes V1F and V2F
       B.UpdateVertex(V1F,tolv);
       TopoDS_Edge NewE = sbe.CopyReplaceVertices(edge2,V1F,V2L);
-//      cout<<"union vertexes V1F and V2F"<<endl;
+//      std::cout<<"union vertexes V1F and V2F"<<std::endl;
 //      gp_Pnt Ptmp = BRep_Tool::Pnt(V1F);
 //      B.MakeVertex(V,Ptmp,tolv);
 //      myContext->Replace(V1F,V);
@@ -525,7 +525,7 @@ Standard_Boolean ShapeFix_IntersectionTool::UnionVertexes(const Handle(ShapeExte
       // union vertexes V1F and V2L
       B.UpdateVertex(V1F,tolv);
       TopoDS_Edge NewE = sbe.CopyReplaceVertices(edge2,V2F,V1F);
-//      cout<<"union vertexes V1F and V2L"<<endl;
+//      std::cout<<"union vertexes V1F and V2L"<<std::endl;
 //      gp_Pnt Ptmp = BRep_Tool::Pnt(V1F);
 //      B.MakeVertex(V,Ptmp,tolv);
 //      myContext->Replace(V1F,V);
@@ -589,7 +589,7 @@ Standard_Boolean ShapeFix_IntersectionTool::UnionVertexes(const Handle(ShapeExte
       // union vertexes V1L and V2F
       B.UpdateVertex(V1L,tolv);
       TopoDS_Edge NewE = sbe.CopyReplaceVertices(edge2,V1L,V2L);
-//      cout<<"union vertexes V1L and V2F"<<endl;
+//      std::cout<<"union vertexes V1L and V2F"<<std::endl;
 //      gp_Pnt Ptmp = BRep_Tool::Pnt(V1L);
 //      B.MakeVertex(V,Ptmp,tolv);
 //      myContext->Replace(V1L,V);
@@ -652,7 +652,7 @@ Standard_Boolean ShapeFix_IntersectionTool::UnionVertexes(const Handle(ShapeExte
       // union vertexes V1L and V2L
       B.UpdateVertex(V1L,tolv);
       TopoDS_Edge NewE = sbe.CopyReplaceVertices(edge2,V2F,V1L);
-//      cout<<"union vertexes V1L and V2L"<<endl;
+//      std::cout<<"union vertexes V1L and V2L"<<std::endl;
 //      gp_Pnt Ptmp = BRep_Tool::Pnt(V1L);
 //      B.MakeVertex(V,Ptmp,tolv);
 //      myContext->Replace(V1L,V);
index db2a1bf..cddd763 100644 (file)
@@ -223,8 +223,8 @@ static void CollectSolids(const TopTools_SequenceOfShape& aSeqShells ,
     }
     catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-      cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
-      anException.Print(cout); cout << endl;
+      std::cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
+      anException.Print(std::cout); std::cout << std::endl;
 #endif
       (void)anException;
       continue;
@@ -301,8 +301,8 @@ static Standard_Boolean CreateSolids(const TopoDS_Shape theShape,TopTools_Indexe
       }
     catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-      cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
-      anException.Print(cout); cout << endl;
+      std::cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
+      anException.Print(std::cout); std::cout << std::endl;
 #endif
       (void)anException;
       ShellSolid.Add(aShell,aSolid);
@@ -584,8 +584,8 @@ TopoDS_Solid ShapeFix_Solid::SolidFromShell (const TopoDS_Shell& shell)
   }
   catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
-    anException.Print(cout); cout << endl;
+    std::cout << "Warning: ShapeFix_Solid::SolidFromShell: Exception: ";
+    anException.Print(std::cout); std::cout << std::endl;
 #endif
     (void)anException;
     return solid;
index 8158033..0152fef 100644 (file)
@@ -608,7 +608,7 @@ Standard_Boolean ShapeFix_Wire::FixEdgeCurves()
          }
          if ( seq.Length() >0 ) { // supposed that edge is SP
 #ifdef OCCT_DEBUG
-           cout << "Edge going over singularity detected; splitted" << endl;
+           std::cout << "Edge going over singularity detected; splitted" << std::endl;
 #endif
       Standard_Boolean isFwd = ( E.Orientation() == TopAbs_FORWARD );
       E.Orientation ( TopAbs_FORWARD );
@@ -723,7 +723,7 @@ Standard_Boolean ShapeFix_Wire::FixEdgeCurves()
        myFixEdge->FixAddPCurve ( sbwd->Edge(overdegen), face, sbwd->IsSeam(overdegen), myAnalyzer->Surface(), Precision());
       }
 #ifdef OCCT_DEBUG
-      cout << "Edge going over singularity detected; pcurve adjusted" << endl;
+      std::cout << "Edge going over singularity detected; pcurve adjusted" << std::endl;
 #endif
     }
   }
@@ -960,7 +960,7 @@ Standard_Boolean ShapeFix_Wire::FixSelfIntersection()
         num = ( myClosedMode ? 1 : 2 );
         nb = sbwd->NbEdges();
 #ifdef OCCT_DEBUG
-        cout << "Warning: ShapeFix_Wire::FixSelfIntersection: Edge removed" << endl;
+        std::cout << "Warning: ShapeFix_Wire::FixSelfIntersection: Edge removed" << std::endl;
 #endif
       }
       else
@@ -996,8 +996,8 @@ Standard_Boolean ShapeFix_Wire::FixSelfIntersection()
     }
 #ifdef OCCT_DEBUG
     if (StatusSelfIntersection (ShapeExtend_DONE5))
-      cout<<"Warning: ShapeFix_Wire::FixIntersection: Non-adjacent intersection fixed (split-"
-        <<NbSplit<<", cut-"<<NbCut<<", removed-"<<NbRemoved<<")"<<endl;
+      std::cout<<"Warning: ShapeFix_Wire::FixIntersection: Non-adjacent intersection fixed (split-"
+        <<NbSplit<<", cut-"<<NbCut<<", removed-"<<NbRemoved<<")"<<std::endl;
 #endif   
 
 /*
@@ -1043,7 +1043,7 @@ Standard_Boolean ShapeFix_Wire::FixSelfIntersection()
       myStatusSelfIntersection |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE5 );
 #ifdef OCCT_DEBUG
     if (StatusSelfIntersection (ShapeExtend_DONE5))
-      cout << "Warning: ShapeFix_Wire::FixSelfIntersection: Non ajacent intersection fixed" << endl;
+      std::cout << "Warning: ShapeFix_Wire::FixSelfIntersection: Non ajacent intersection fixed" << std::endl;
 #endif   
 */
   }
@@ -1388,7 +1388,7 @@ Standard_Boolean ShapeFix_Wire::FixShifted()
       VRange = aBaseCrv->Period();
       IsVCrvClosed = Standard_True;
 #ifdef OCCT_DEBUG
-      cout << "Warning: ShapeFix_Wire::FixShifted set vclosed True for Surface of Revolution" << endl;
+      std::cout << "Warning: ShapeFix_Wire::FixShifted set vclosed True for Surface of Revolution" << std::endl;
 #endif
     }
   }
@@ -1572,7 +1572,7 @@ Standard_Boolean ShapeFix_Wire::FixShifted()
             }
             myLastFixStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE1 );
 #ifdef OCCT_DEBUG
-            cout << "Info: ShapeFix_Wire::FixShifted(): bi - meridian case fixed" << endl;
+            std::cout << "Info: ShapeFix_Wire::FixShifted(): bi - meridian case fixed" << std::endl;
 #endif
             continue;
           }
@@ -1869,14 +1869,14 @@ static Standard_Boolean RemoveLoop (TopoDS_Edge &E, const TopoDS_Face &face,
     return Standard_False;
 
 #ifdef OCCT_DEBUG
-  cout << "Cut Loop: params (" << t1 << ", " << t2;
+  std::cout << "Cut Loop: params (" << t1 << ", " << t2;
 #endif
   GeomAdaptor_Curve GAC ( crv, f, l );
   Standard_Real dt = tolfact * GAC.Resolution(prec);
   t1 -= dt; //1e-3;//::Precision::PConfusion();
   t2 += dt; //1e-3;//::Precision::PConfusion();
 #ifdef OCCT_DEBUG
-  cout << ") -> (" << t1 << ", " << t2 << ")" << endl;
+  std::cout << ") -> (" << t1 << ", " << t2 << ")" << std::endl;
 #endif
       
   if ( t1 <= a || t2 >= b ) { // should not be so, but to be sure ..
@@ -1946,7 +1946,7 @@ static Standard_Boolean RemoveLoop (TopoDS_Edge &E, const TopoDS_Face &face,
   
     Standard_Real tol = BRep_Tool::Tolerance ( E );
 #ifdef OCCT_DEBUG
-    cout << "Cut Loop: tol orig " << tol << ", prec " << prec << ", new tol " << newtol << endl;
+    std::cout << "Cut Loop: tol orig " << tol << ", prec " << prec << ", new tol " << newtol << std::endl;
 #endif
     if ( newtol > Max ( prec, tol ) ) return Standard_False;
     //:s2  bs = BRep_Tool::CurveOnSurface ( edge, face, a, b );
@@ -2055,7 +2055,7 @@ static Standard_Boolean RemoveLoop (TopoDS_Edge &E, const TopoDS_Face &face,
                                     TopoDS_Edge &E2)
 {
 #ifdef OCCT_DEBUG
-  cout<<"Info: ShapeFix_Wire::FixSelfIntersection : Try insert vertex"<<endl;
+  std::cout<<"Info: ShapeFix_Wire::FixSelfIntersection : Try insert vertex"<<std::endl;
 #endif
 
   if ( BRep_Tool::IsClosed ( E, face ) ) return Standard_False;
@@ -2484,8 +2484,8 @@ Standard_Boolean ShapeFix_Wire::FixIntersectingEdges (const Standard_Integer num
         if ( BRep_Tool::Tolerance(E1) < te1 || BRep_Tool::Tolerance(E2) < te2 )
         {
 #ifdef OCCT_DEBUG
-          cout << "Warning: ShapeFix_Wire::FixIE: edges tolerance increased: (" <<
-            te1 << ", " << te2 << ") / " << newtol << endl;
+          std::cout << "Warning: ShapeFix_Wire::FixIE: edges tolerance increased: (" <<
+            te1 << ", " << te2 << ") / " << newtol << std::endl;
 #endif
 
           // Make copy of edges.
@@ -2915,7 +2915,7 @@ static Standard_Boolean TryBendingPCurve (const TopoDS_Edge &E, const TopoDS_Fac
   }
   catch ( Standard_Failure const& ) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: ShapeFix_Wire::FixLacking: Exception in Geom2d_BSplineCurve::Segment()" << endl;
+    std::cout << "Warning: ShapeFix_Wire::FixLacking: Exception in Geom2d_BSplineCurve::Segment()" << std::endl;
 #endif
     return Standard_False;
   }
@@ -3146,7 +3146,7 @@ Standard_Boolean ShapeFix_Wire::FixLacking (const Standard_Integer num,
     if ( doAddDegen ) {
       myLastFixStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE3 );
 #ifdef OCCT_DEBUG
-      cout << "Warning: ShapeFix_Wire::FixLacking: degenerated edge added" << endl;
+      std::cout << "Warning: ShapeFix_Wire::FixLacking: degenerated edge added" << std::endl;
 #endif
     }
     else if ( ! doAddLong ) {
@@ -3179,7 +3179,7 @@ Standard_Boolean ShapeFix_Wire::FixLacking (const Standard_Integer num,
     FixSelfIntersectingEdge ( n2 );
     FixIntersectingEdges ( n2 ); //skl 24.04.2003 for OCC58
 #ifdef OCCT_DEBUG
-    cout << "Info: ShapeFix_Wire::FixLacking: Bending pcurves" << endl;
+    std::cout << "Info: ShapeFix_Wire::FixLacking: Bending pcurves" << std::endl;
 #endif
     myLastFixStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE5 );
   }
index cca114e..f90b041 100644 (file)
@@ -243,7 +243,7 @@ void ShapeFix_WireSegment::DefineIUMin (const Standard_Integer i,
   if ( myIUMin->Value(i) < iumin ) myIUMin->SetValue ( i, iumin );
 #ifdef OCCT_DEBUG
   if ( myIUMin->Value(i) > myIUMax->Value(i) )
-    cout << "Warning: ShapeFix_WireSegment::DefineIUMin: indexation error" << endl;
+    std::cout << "Warning: ShapeFix_WireSegment::DefineIUMin: indexation error" << std::endl;
 #endif
 }
 
@@ -259,7 +259,7 @@ void ShapeFix_WireSegment::DefineIUMax (const Standard_Integer i,
 #ifdef OCCT_DEBUG
   Standard_Integer iun = myIUMin->Value(i), iux = myIUMax->Value(i);
   if ( iun > iux )
-    cout << "Warning: ShapeFix_WireSegment::DefineIUMax: indexation error" << endl;
+    std::cout << "Warning: ShapeFix_WireSegment::DefineIUMax: indexation error" << std::endl;
 #endif
 }
 
@@ -275,7 +275,7 @@ void ShapeFix_WireSegment::DefineIVMin (const Standard_Integer i,
 #ifdef OCCT_DEBUG
   Standard_Integer ivn = myIVMin->Value(i), ivx = myIVMax->Value(i);
   if ( ivn > ivx )
-    cout << "Warning: ShapeFix_WireSegment::DefineIVMin: indexation error" << endl;
+    std::cout << "Warning: ShapeFix_WireSegment::DefineIVMin: indexation error" << std::endl;
 #endif
 }
 
@@ -291,7 +291,7 @@ void ShapeFix_WireSegment::DefineIVMax (const Standard_Integer i,
 #ifdef OCCT_DEBUG
   Standard_Integer ivn = myIVMin->Value(i), ivx = myIVMax->Value(i);
   if ( ivn > ivx )
-    cout << "Warning: ShapeFix_WireSegment::DefineIVMax: indexation error" << endl;
+    std::cout << "Warning: ShapeFix_WireSegment::DefineIVMax: indexation error" << std::endl;
 #endif
 }
 
@@ -324,7 +324,7 @@ Standard_Boolean ShapeFix_WireSegment::CheckPatchIndex (const Standard_Integer i
   Standard_Boolean ok = ( dU ==0 || dU ==1 ) && ( dV ==0 || dV ==1 );
 #ifdef OCCT_DEBUG
   if ( ! ok )
-    cout << "Warning: ShapeFix_WireSegment::CheckPatchIndex: incomplete indexation" << endl;
+    std::cout << "Warning: ShapeFix_WireSegment::CheckPatchIndex: incomplete indexation" << std::endl;
 #endif
   return ok;
 }
index 9c51d4d..00ab4a2 100644 (file)
@@ -367,8 +367,8 @@ static Standard_Real AdjustOnPeriodic3d (const Handle(Geom_Curve)& c,
        }
        catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-         cout << "Warning: ShapeFix_Wire_1::FixGap3d: Exception in TrimmedCurve" <<first<<" " <<last<<endl;
-         anException.Print(cout); cout << endl; 
+         std::cout << "Warning: ShapeFix_Wire_1::FixGap3d: Exception in TrimmedCurve" <<first<<" " <<last<<std::endl;
+         anException.Print(std::cout); std::cout << std::endl; 
 #endif  
          (void)anException;
        }
@@ -642,8 +642,8 @@ static Standard_Real AdjustOnPeriodic3d (const Handle(Geom_Curve)& c,
       }
       catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-       cout << "Warning: ShapeFix_Wire_1::FixGap3d: Exception in TrimmedCurve      :"<<endl;
-       anException.Print(cout); cout << endl;
+       std::cout << "Warning: ShapeFix_Wire_1::FixGap3d: Exception in TrimmedCurve      :"<<std::endl;
+       anException.Print(std::cout); std::cout << std::endl;
 #endif
        (void)anException;
       }  
@@ -950,8 +950,8 @@ static Standard_Real AdjustOnPeriodic2d (const Handle(Geom2d_Curve)& pc,
        }
        catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-         cout << "Warning: ShapeFix_Wire_1::FixGap2d: Exception in TrimmedCurve2d" <<first<<" " <<last<<endl;
-         anException.Print(cout); cout << endl; 
+         std::cout << "Warning: ShapeFix_Wire_1::FixGap2d: Exception in TrimmedCurve2d" <<first<<" " <<last<<std::endl;
+         anException.Print(std::cout); std::cout << std::endl; 
 #endif  
          (void)anException;
        }
@@ -1529,8 +1529,8 @@ static Standard_Real AdjustOnPeriodic2d (const Handle(Geom2d_Curve)& pc,
       }
       catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-       cout << "Warning: ShapeFix_Wire_1::FixGap2d: Exception in TrimmedCurve2d  :"<<endl;
-       anException.Print(cout); cout << endl;
+       std::cout << "Warning: ShapeFix_Wire_1::FixGap2d: Exception in TrimmedCurve2d  :"<<std::endl;
+       anException.Print(std::cout); std::cout << std::endl;
 #endif 
        (void)anException;
       }  
index 9d979c5..0b1bdf0 100644 (file)
@@ -392,8 +392,8 @@ ShapeFix_Wireframe::ShapeFix_Wireframe(const TopoDS_Shape& shape)
   }
   catch ( Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    cout<<"Error: ShapeFix_Wireframe::FixSmallEdges: JoinEdges: Exception in GeomConvert_CompCurveToBSplineCurve: ";
-    anException.Print(cout); cout<<endl;
+    std::cout<<"Error: ShapeFix_Wireframe::FixSmallEdges: JoinEdges: Exception in GeomConvert_CompCurveToBSplineCurve: ";
+    anException.Print(std::cout); std::cout<<std::endl;
 #endif
     (void)anException;
     return ReplaceFirst;
index 6e88066..bdc8431 100644 (file)
@@ -35,7 +35,7 @@ Standard_Boolean ShapeProcess::RegisterOperator (const Standard_CString name,
 {
   if (aMapOfOperators.IsBound(name)) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: operator with name " << name << " is already registered!" << endl;
+    std::cout << "Warning: operator with name " << name << " is already registered!" << std::endl;
 #endif
     return Standard_False;
   }
@@ -53,7 +53,7 @@ Standard_Boolean ShapeProcess::FindOperator (const Standard_CString name,
 {
   if (!aMapOfOperators.IsBound(name)) {
 #ifdef OCCT_DEBUG
-    cout << "Error: no operator with name " << name << " registered!" << endl;
+    std::cout << "Error: no operator with name " << name << " registered!" << std::endl;
 #endif
     return Standard_False;
   }
@@ -75,7 +75,7 @@ Standard_Boolean ShapeProcess::Perform (const Handle(ShapeProcess_Context)& cont
   TCollection_AsciiString sequence;
   if ( ! context->GetString ( "exec.op", sequence ) ) {
 #ifdef OCCT_DEBUG
-    cout << "Error: ShapeProcess_Performer::Perform: sequence not defined for " << seq << endl;
+    std::cout << "Error: ShapeProcess_Performer::Perform: sequence not defined for " << seq << std::endl;
 #endif
     if ( context->TraceLevel() >0 ) {
       Message_Msg SMSG3 ("SP.Sequence.Warn.NoSeq"); // Sequence %s not found
index 160a7ec..93bc0c0 100644 (file)
@@ -117,8 +117,8 @@ Handle(Resource_Manager) ShapeProcess_Context::LoadResourceManager (const Standa
   }
   if ( sRC.IsNull() ) {
 #ifdef OCCT_DEBUG
-    cout << "Info: ShapeProcess_Context: Reload Resource_Manager: " 
-         << sName.ToCString() << " -> " << name << endl;
+    std::cout << "Info: ShapeProcess_Context: Reload Resource_Manager: " 
+         << sName.ToCString() << " -> " << name << std::endl;
 #endif
     sRC = new Resource_Manager ( name );
     if (!isFileModified)
@@ -205,7 +205,7 @@ Standard_Boolean ShapeProcess_Context::GetString (const Standard_CString param,
   Handle(TCollection_HAsciiString) pname = MakeName ( myScope, param );
   if ( ! myRC->Find ( pname->ToCString() ) ) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << pname->ToCString() << " is not defined" << endl;
+    std::cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << pname->ToCString() << " is not defined" << std::endl;
 #endif
     return Standard_False;
   }
@@ -239,7 +239,7 @@ Standard_Boolean ShapeProcess_Context::GetReal (const Standard_CString param,
     ref.RightAdjust();
     if ( ! myRC->Find ( ref.ToCString() ) ) {
 #ifdef OCCT_DEBUG
-      cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << ref.ToCString() << " is not defined" << endl;
+      std::cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << ref.ToCString() << " is not defined" << std::endl;
 #endif
       return Standard_False;
     }
@@ -250,7 +250,7 @@ Standard_Boolean ShapeProcess_Context::GetReal (const Standard_CString param,
     }
   }
 #ifdef OCCT_DEBUG
-  cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << param << " is neither Real nor reference to Real";
+  std::cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << param << " is neither Real nor reference to Real";
 #endif
   return Standard_False;
 }
@@ -281,7 +281,7 @@ Standard_Boolean ShapeProcess_Context::GetInteger (const Standard_CString param,
     ref.RightAdjust();
     if ( ! myRC->Find ( ref.ToCString() ) ) {
 #ifdef OCCT_DEBUG
-      cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << ref.ToCString() << " is not defined" << endl;
+      std::cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << ref.ToCString() << " is not defined" << std::endl;
 #endif
       return Standard_False;
     }
@@ -292,7 +292,7 @@ Standard_Boolean ShapeProcess_Context::GetInteger (const Standard_CString param,
     }
   }
 #ifdef OCCT_DEBUG
-  cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << param << " is neither Integer nor reference to Integer";
+  std::cout << "Warning: ShapeProcess_Context::GetInteger(): Parameter " << param << " is neither Integer nor reference to Integer";
 #endif
   return Standard_False;
 }
@@ -313,8 +313,8 @@ Standard_Boolean ShapeProcess_Context::GetBoolean (const Standard_CString param,
   }
   catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: ShapeProcess_Context::GetInteger(): " << param << ": ";
-    anException.Print(cout); cout << endl;
+    std::cout << "Warning: ShapeProcess_Context::GetInteger(): " << param << ": ";
+    anException.Print(std::cout); std::cout << std::endl;
 #endif
     (void)anException;
   }
@@ -372,8 +372,8 @@ Standard_CString ShapeProcess_Context::StringVal (const Standard_CString param,
   }
   catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    cout << "Warning: ShapeProcess_Context::GetInteger(): " << param << ": ";
-    anException.Print(cout); cout << endl;
+    std::cout << "Warning: ShapeProcess_Context::GetInteger(): " << param << ": ";
+    anException.Print(std::cout); std::cout << std::endl;
 #endif
     (void)anException;
   }
index a16e6b6..91898d7 100644 (file)
@@ -207,7 +207,7 @@ static Standard_Boolean splitangle (const Handle(ShapeProcess_Context)& context)
 
   if ( ! SDA.Perform() && SDA.Status (ShapeExtend_FAIL) ) {
 #ifdef OCCT_DEBUG
-    cout<<"ShapeDivideAngle failed"<<endl;
+    std::cout<<"ShapeDivideAngle failed"<<std::endl;
 #endif
     return Standard_False;
   }
@@ -382,7 +382,7 @@ static Standard_Boolean shapetobezier (const Handle(ShapeProcess_Context)& conte
  
   if ( ! SCB.Perform() && SCB.Status (ShapeExtend_FAIL) ) { 
 #ifdef OCCT_DEBUG
-    cout<<"Shape::ShapeConvertToBezier failed"<<endl; // !!!!
+    std::cout<<"Shape::ShapeConvertToBezier failed"<<std::endl; // !!!!
 #endif
     return Standard_False;
   }
@@ -458,7 +458,7 @@ static Standard_Boolean splitcontinuity (const Handle(ShapeProcess_Context)& con
   
   if ( ! tool.Perform() && tool.Status (ShapeExtend_FAIL) ) { 
 #ifdef OCCT_DEBUG
-    cout<<"SplitContinuity failed"<<endl; 
+    std::cout<<"SplitContinuity failed"<<std::endl; 
 #endif
     return Standard_False; 
   }
@@ -500,7 +500,7 @@ static Standard_Boolean splitclosedfaces (const Handle(ShapeProcess_Context)& co
   tool.SetSurfaceSegmentMode(hasSeg);
   if ( ! tool.Perform() && tool.Status (ShapeExtend_FAIL) ) { 
 #ifdef OCCT_DEBUG
-    cout<<"Splitting of closed faces failed"<<endl; 
+    std::cout<<"Splitting of closed faces failed"<<std::endl; 
 #endif
     return Standard_False; 
   }
@@ -819,7 +819,7 @@ static Standard_Boolean spltclosededges (const Handle(ShapeProcess_Context)& con
   
   if ( ! tool.Perform() && tool.Status (ShapeExtend_FAIL) ) { 
 #ifdef OCCT_DEBUG
-    cout<<"Splitting of closed edges failed"<<endl; 
+    std::cout<<"Splitting of closed edges failed"<<std::endl; 
 #endif
     return Standard_False; 
   }
index 2e717c6..53381db 100644 (file)
@@ -160,14 +160,14 @@ void ShapeProcess_ShapeContext::SetResult (const TopoDS_Shape &res)
 #ifdef OCCT_DEBUG
 static void DumpMap (const TopTools_DataMapOfShapeShape &map)
 {
-  cout << "----" << endl;
-  cout << "Map:" << endl;
+  std::cout << "----" << std::endl;
+  std::cout << "Map:" << std::endl;
   for (TopTools_DataMapIteratorOfDataMapOfShapeShape It (map); It.More(); It.Next()) {
     TopoDS_Shape S0 = It.Key(), S = It.Value();
-    cout << S0.TShape()->DynamicType()->Name() << "\t" << *(void**)&S0.TShape() << 
-      "     \t->    " << S.TShape()->DynamicType()->Name() << "\t" << *(void**)&S.TShape() << endl;
+    std::cout << S0.TShape()->DynamicType()->Name() << "\t" << *(void**)&S0.TShape() << 
+      "     \t->    " << S.TShape()->DynamicType()->Name() << "\t" << *(void**)&S.TShape() << std::endl;
   }
-  cout << "----" << endl;
+  std::cout << "----" << std::endl;
 }           
 #endif
 */
@@ -258,7 +258,7 @@ void ShapeProcess_ShapeContext::RecordModification (const TopTools_DataMapOfShap
   RecModif ( myShape, repl, msg, myMap, myMsg, myUntil );
   if ( myMap.IsBound(myShape) ) myResult = myMap.Find ( myShape );
 #ifdef OCCT_DEBUG
-//  cout << "Modifier: " << endl; DumpMap (myMap);
+//  std::cout << "Modifier: " << std::endl; DumpMap (myMap);
 #endif
 }
 
@@ -333,7 +333,7 @@ void ShapeProcess_ShapeContext::RecordModification (const Handle(ShapeBuild_ReSh
     myResult.Location(myShape.Location());
   }
 #ifdef OCCT_DEBUG
-//  cout << "ReShape: " << endl; DumpMap (myMap);
+//  std::cout << "ReShape: " << std::endl; DumpMap (myMap);
 #endif
 }
 
index c534bce..a411d69 100644 (file)
@@ -180,7 +180,7 @@ Standard_Boolean ShapeUpgrade_ClosedFaceDivide::SplitSurface()
          isUSplit = Standard_True;
        }
 #ifdef OCCT_DEBUG
-       else cout << "Warning: SU_ClosedFaceDivide: Thin face, not splitted" << endl;
+       else std::cout << "Warning: SU_ClosedFaceDivide: Thin face, not splitted" << std::endl;
 #endif
       }
     }
@@ -201,7 +201,7 @@ Standard_Boolean ShapeUpgrade_ClosedFaceDivide::SplitSurface()
          isUSplit = Standard_False;
        }
 #ifdef OCCT_DEBUG
-       else cout << "Warning: SU_ClosedFaceDivide: Thin face, not splitted" << endl;
+       else std::cout << "Warning: SU_ClosedFaceDivide: Thin face, not splitted" << std::endl;
 #endif
       }
     }
index 88fb71d..7e2f45b 100644 (file)
@@ -160,14 +160,14 @@ void ShapeUpgrade_ConvertCurve2dToBezier::Compute()
       Last = bl;
     if(First < bf){
 #ifdef OCCT_DEBUG
-      cout <<"Warning: The range of the edge exceeds the pcurve domain" <<endl;
+      std::cout <<"Warning: The range of the edge exceeds the pcurve domain" <<std::endl;
 #endif
       First = bf;
       mySplitValues->SetValue(1,First);
     }
     if(Last > bl){
 #ifdef OCCT_DEBUG
-      cout <<"Warning: The range of the edge exceeds the pcurve domain" <<endl;
+      std::cout <<"Warning: The range of the edge exceeds the pcurve domain" <<std::endl;
 #endif
       Last = bl;
       mySplitValues->SetValue(mySplitValues->Length(),Last);
index d05b7c1..802e1d5 100644 (file)
@@ -144,14 +144,14 @@ void ShapeUpgrade_ConvertCurve3dToBezier::Compute()
       Last = bl;
     if(First < bf){
 #ifdef OCCT_DEBUG
-      cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
+      std::cout <<"Warning: The range of the edge exceeds the curve domain" <<std::endl;
 #endif
       First = bf;
       mySplitValues->SetValue(1,First);
     }
     if(Last > bl){
 #ifdef OCCT_DEBUG
-      cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
+      std::cout <<"Warning: The range of the edge exceeds the curve domain" <<std::endl;
 #endif
       Last = bl;
       mySplitValues->SetValue(mySplitValues->Length(),Last);
index 25da8ee..7da3a3a 100644 (file)
@@ -189,7 +189,7 @@ void ShapeUpgrade_ConvertSurfaceToBezierBasis::Compute(const Standard_Boolean Se
 
 #ifdef OCCT_DEBUG
     if(NbVFiltered || NbUFiltered)
-      cout<<"Warning: ShapeUpgrade_ConvertSurfaceToBezierBasis: thin patches dropped."<<endl;
+      std::cout<<"Warning: ShapeUpgrade_ConvertSurfaceToBezierBasis: thin patches dropped."<<std::endl;
 #endif
     
     TColGeom_Array2OfBezierSurface Surfaces(1, nbUPatches, 1, nbVPatches);
@@ -455,7 +455,7 @@ static Handle(Geom_Surface) GetSegment(const Handle(Geom_Surface) surf,
     }
     else {
 #ifdef OCCT_DEBUG
-      cout <<"Warning: Resulting path is not surface of revolution basis on bezier curve"<<endl;
+      std::cout <<"Warning: Resulting path is not surface of revolution basis on bezier curve"<<std::endl;
 #endif
     }
     if(Abs(U1-Umin) < Precision::PConfusion() &&
index 0f0bb44..3c280fc 100644 (file)
@@ -82,8 +82,8 @@ Standard_Boolean ShapeUpgrade_FixSmallBezierCurves::Approx(Handle(Geom_Curve)& C
     }
     catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-      cout << "Warning: ShapeUpgrade_FixSmallBezierCurve::Approx(): Exception in Segment      :";
-      anException.Print(cout); cout << endl;
+      std::cout << "Warning: ShapeUpgrade_FixSmallBezierCurve::Approx(): Exception in Segment      :";
+      anException.Print(std::cout); std::cout << std::endl;
 #endif
       (void)anException;
       return Standard_False;
@@ -119,8 +119,8 @@ Standard_Boolean ShapeUpgrade_FixSmallBezierCurves::Approx(Handle(Geom_Curve)& C
     }
     catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-      cout << "Warning: ShapeUpgrade_FixSmallBezierCurve::Approx(): Exception in Segment      :";
-      anException.Print(cout); cout << endl;
+      std::cout << "Warning: ShapeUpgrade_FixSmallBezierCurve::Approx(): Exception in Segment      :";
+      anException.Print(std::cout); std::cout << std::endl;
 #endif
       (void)anException;
       return Standard_False;
@@ -157,8 +157,8 @@ Standard_Boolean ShapeUpgrade_FixSmallBezierCurves::Approx(Handle(Geom_Curve)& C
       }
       catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-         cout << "Warning: ShapeUpgrade_FixSmallBezierCurve::Approx(): Exception in Segment      :";
-         anException.Print(cout); cout << endl;
+         std::cout << "Warning: ShapeUpgrade_FixSmallBezierCurve::Approx(): Exception in Segment      :";
+         anException.Print(std::cout); std::cout << std::endl;
 #endif
          (void)anException;
          return Standard_False;
index c63a2a5..e379767 100644 (file)
@@ -45,7 +45,7 @@ ShapeUpgrade_SplitCurve::ShapeUpgrade_SplitCurve() : myStatus(0)
                                    const Standard_Real Last) 
 {
   myStatus = ShapeExtend::EncodeStatus (ShapeExtend_OK);
-//  if (ShapeUpgrade::Debug()) cout << "SplitCurve::Init"<<endl;
+//  if (ShapeUpgrade::Debug()) std::cout << "SplitCurve::Init"<<std::endl;
 
   myNbCurves = 1;
  // mySplitValues.Clear();
index c533c51..23783b9 100644 (file)
@@ -61,7 +61,7 @@ ShapeUpgrade_SplitCurve2d::ShapeUpgrade_SplitCurve2d()
                                      const Standard_Real First,
                                      const Standard_Real Last) 
 {
-//  if (ShapeUpgrade::Debug()) cout << "SplitCurve2d::Init"<<endl;
+//  if (ShapeUpgrade::Debug()) std::cout << "SplitCurve2d::Init"<<std::endl;
   Handle(Geom2d_Curve) CopyOfC = Handle(Geom2d_Curve)::DownCast(C->Copy());
   myCurve = CopyOfC;
   
@@ -81,13 +81,13 @@ ShapeUpgrade_SplitCurve2d::ShapeUpgrade_SplitCurve2d()
       lastPar = lP;
     if(firstPar < fP){
 #ifdef OCCT_DEBUG
-      cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
+      std::cout <<"Warning: The range of the edge exceeds the curve domain" <<std::endl;
 #endif
       firstPar = fP;
     }
     if(lastPar > lP){
 #ifdef OCCT_DEBUG
-      cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
+      std::cout <<"Warning: The range of the edge exceeds the curve domain" <<std::endl;
 #endif
       lastPar = lP;
     }
@@ -98,7 +98,7 @@ ShapeUpgrade_SplitCurve2d::ShapeUpgrade_SplitCurve2d()
   ShapeUpgrade_SplitCurve::Init (firstPar, lastPar);
 
   // first, we make a copy of C to prevent modification:
-//  if (ShapeUpgrade::Debug()) cout << ". copy of the curve"<<endl;
+//  if (ShapeUpgrade::Debug()) std::cout << ". copy of the curve"<<std::endl;
   
   myNbCurves = 1;
 }
@@ -110,7 +110,7 @@ ShapeUpgrade_SplitCurve2d::ShapeUpgrade_SplitCurve2d()
 
  void ShapeUpgrade_SplitCurve2d::Build(const Standard_Boolean Segment) 
 {
-//  if (ShapeUpgrade::Debug()) cout<<"ShapeUpgrade_SplitCurve2d::Build"<<endl;
+//  if (ShapeUpgrade::Debug()) std::cout<<"ShapeUpgrade_SplitCurve2d::Build"<<std::endl;
   Standard_Real First =  mySplitValues->Value(1);
   Standard_Real Last = mySplitValues->Value(mySplitValues->Length());
   //PrepareKnots();
@@ -176,8 +176,8 @@ ShapeUpgrade_SplitCurve2d::ShapeUpgrade_SplitCurve2d()
        }
        catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-         cout << "Warning: ShapeUpgrade_Split2dCurve::Build(): Exception in Segment      :";
-         anException.Print(cout); cout << endl;
+         std::cout << "Warning: ShapeUpgrade_Split2dCurve::Build(): Exception in Segment      :";
+         anException.Print(std::cout); std::cout << std::endl;
 #endif
          (void)anException;
          theNewCurve = new Geom2d_TrimmedCurve(Handle(Geom2d_Curve)::DownCast(myCurve->Copy()),First,Last);
@@ -230,8 +230,8 @@ ShapeUpgrade_SplitCurve2d::ShapeUpgrade_SplitCurve2d()
        }
        catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-         cout << "Warning: ShapeUpgrade_Split2dCurve::Build(): Exception in Segment      :";
-         anException.Print(cout); cout << endl;
+         std::cout << "Warning: ShapeUpgrade_Split2dCurve::Build(): Exception in Segment      :";
+         anException.Print(std::cout); std::cout << std::endl;
 #endif
          (void)anException;
          theNewCurve = new Geom2d_TrimmedCurve(Handle(Geom2d_Curve)::DownCast(myCurve->Copy()),Firstt,Lastt);
index ffe0864..1bc531f 100644 (file)
@@ -105,9 +105,9 @@ void ShapeUpgrade_SplitCurve2dContinuity::Compute()
       default         :
       case GeomAbs_C1 : BasCriterion = GeomAbs_C2; break;
       case GeomAbs_C2 : BasCriterion = GeomAbs_C3; break;
-      case GeomAbs_C3 : //if (ShapeUpgrade::Debug()) cout<<". this criterion is not suitable for a Offset curve"<<endl; 
+      case GeomAbs_C3 : //if (ShapeUpgrade::Debug()) std::cout<<". this criterion is not suitable for a Offset curve"<<std::endl; 
 #ifdef OCCT_DEBUG
-                       cout << "Warning: ShapeUpgrade_SplitCurve2dContinuity: criterion C3 for Offset curve" << endl; 
+                       std::cout << "Warning: ShapeUpgrade_SplitCurve2dContinuity: criterion C3 for Offset curve" << std::endl; 
 #endif
       case GeomAbs_CN : BasCriterion = GeomAbs_CN; break;
     }
@@ -129,14 +129,14 @@ void ShapeUpgrade_SplitCurve2dContinuity::Compute()
 
   Handle(Geom2d_BSplineCurve) MyBSpline = Handle(Geom2d_BSplineCurve)::DownCast (myCurve);
   if (MyBSpline.IsNull()) {
-//    if (ShapeUpgrade::Debug()) cout<<". curve is not a Bspline"<<endl;
+//    if (ShapeUpgrade::Debug()) std::cout<<". curve is not a Bspline"<<std::endl;
     return;
   }
   
   myNbCurves=1;
   Standard_Integer Deg=MyBSpline->Degree();
   Standard_Integer NbKnots= MyBSpline->NbKnots(); 
-//  if (ShapeUpgrade::Debug()) cout<<". NbKnots="<<NbKnots<<endl;
+//  if (ShapeUpgrade::Debug()) std::cout<<". NbKnots="<<NbKnots<<std::endl;
   if (NbKnots <= 2) {
     return;
   }
@@ -171,7 +171,7 @@ void ShapeUpgrade_SplitCurve2dContinuity::Compute()
        }
        if (corrected) {
          // at this knot, the continuity is now C1. Nothing else to do.
-//       if (ShapeUpgrade::Debug()) cout<<". Correction at Knot "<<iknot<<endl;
+//       if (ShapeUpgrade::Debug()) std::cout<<". Correction at Knot "<<iknot<<std::endl;
          myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE3 );
        }
        else {
@@ -179,7 +179,7 @@ void ShapeUpgrade_SplitCurve2dContinuity::Compute()
          // this knot will be a splitting value.
          mySplitValues->InsertBefore(j++,MyBSpline->Knot(iknot));
          myNbCurves++;
-//       if (ShapeUpgrade::Debug()) cout<<". Splitting at Knot "<<iknot<<endl;
+//       if (ShapeUpgrade::Debug()) std::cout<<". Splitting at Knot "<<iknot<<std::endl;
        }
       }
     }
index f3cf452..fb2a168 100644 (file)
@@ -61,7 +61,7 @@ ShapeUpgrade_SplitCurve3d::ShapeUpgrade_SplitCurve3d()
                                      const Standard_Real First,
                                      const Standard_Real Last) 
 {
-//  if (ShapeUpgrade::Debug()) cout << "SplitCurve3d::Init"<<endl;
+//  if (ShapeUpgrade::Debug()) std::cout << "SplitCurve3d::Init"<<std::endl;
   Handle(Geom_Curve) CopyOfC = Handle(Geom_Curve)::DownCast(C->Copy());
   myCurve = CopyOfC;
   Standard_Real precision = Precision::PConfusion();
@@ -80,13 +80,13 @@ ShapeUpgrade_SplitCurve3d::ShapeUpgrade_SplitCurve3d()
       lastPar = lP;
     if(firstPar < fP){
 #ifdef OCCT_DEBUG
-      cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
+      std::cout <<"Warning: The range of the edge exceeds the curve domain" <<std::endl;
 #endif
       firstPar = fP;
     }
     if(lastPar > lP){
 #ifdef OCCT_DEBUG
-      cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
+      std::cout <<"Warning: The range of the edge exceeds the curve domain" <<std::endl;
 #endif
       lastPar = lP;
     }
@@ -97,7 +97,7 @@ ShapeUpgrade_SplitCurve3d::ShapeUpgrade_SplitCurve3d()
   ShapeUpgrade_SplitCurve::Init (firstPar, lastPar);
 
   // first, we make a copy of C to prevent modification:
-//  if (ShapeUpgrade::Debug()) cout << ". copy of the curve"<<endl;
+//  if (ShapeUpgrade::Debug()) std::cout << ". copy of the curve"<<std::endl;
   
   myNbCurves = 1;
 }
@@ -109,7 +109,7 @@ ShapeUpgrade_SplitCurve3d::ShapeUpgrade_SplitCurve3d()
 
  void ShapeUpgrade_SplitCurve3d::Build(const Standard_Boolean Segment) 
 {
-//  if (ShapeUpgrade::Debug()) cout<<"ShapeUpgrade_SplitCurve3d::Build"<<endl;
+//  if (ShapeUpgrade::Debug()) std::cout<<"ShapeUpgrade_SplitCurve3d::Build"<<std::endl;
   Standard_Real First =  mySplitValues->Value(1);
   Standard_Real Last =  mySplitValues->Value(mySplitValues->Length());
     
@@ -167,14 +167,14 @@ ShapeUpgrade_SplitCurve3d::ShapeUpgrade_SplitCurve3d()
       Last = lastPar;
     if(First < firstPar){
 #ifdef OCCT_DEBUG
-      cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
+      std::cout <<"Warning: The range of the edge exceeds the curve domain" <<std::endl;
 #endif
       First = firstPar;
       mySplitValues->SetValue(1,First);
     }
     if(Last > lastPar){
 #ifdef OCCT_DEBUG
-      cout <<"Warning: The range of the edge exceeds the curve domain" <<endl;
+      std::cout <<"Warning: The range of the edge exceeds the curve domain" <<std::endl;
 #endif
       Last = lastPar;
       mySplitValues->SetValue(mySplitValues->Length(),Last);
@@ -203,8 +203,8 @@ ShapeUpgrade_SplitCurve3d::ShapeUpgrade_SplitCurve3d()
        }
       catch (Standard_Failure) {
 #ifdef OCCT_DEBUG
-         cout << "Warning: ShapeUpgrade_Split3dCurve::Build(): Exception in Segment      :";
-         Standard_Failure::Caught()->Print(cout); cout << endl;
+         std::cout << "Warning: ShapeUpgrade_Split3dCurve::Build(): Exception in Segment      :";
+         Standard_Failure::Caught()->Print(std::cout); std::cout << std::endl;
 #endif
          theNewCurve = new Geom_TrimmedCurve(Handle(Geom_Curve)::DownCast(myCurve->Copy()),First,Last);  
        }
@@ -252,8 +252,8 @@ ShapeUpgrade_SplitCurve3d::ShapeUpgrade_SplitCurve3d()
        }
        catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-         cout << "Warning: ShapeUpgrade_Split3dCurve::Build(): Exception in Segment      :";
-         anException.Print(cout); cout << endl;
+         std::cout << "Warning: ShapeUpgrade_Split3dCurve::Build(): Exception in Segment      :";
+         anException.Print(std::cout); std::cout << std::endl;
 #endif
          (void)anException;
          theNewCurve = new Geom_TrimmedCurve(Handle(Geom_Curve)::DownCast(myCurve->Copy()),Firstt,Lastt);  
index 3494d48..8900e21 100644 (file)
@@ -104,9 +104,9 @@ void ShapeUpgrade_SplitCurve3dContinuity::Compute()
       default         :
       case GeomAbs_C1 : BasCriterion = GeomAbs_C2; break;
       case GeomAbs_C2 : BasCriterion = GeomAbs_C3; break;
-      case GeomAbs_C3 : // if (ShapeUpgrade::Debug()) cout<<". this criterion is not suitable for a Offset curve"<<endl; 
+      case GeomAbs_C3 : // if (ShapeUpgrade::Debug()) std::cout<<". this criterion is not suitable for a Offset curve"<<std::endl; 
 #ifdef OCCT_DEBUG
-                       cout << "Warning: ShapeUpgrade_SplitCurve3dContinuity: criterion C3 for Offset curve" << endl; 
+                       std::cout << "Warning: ShapeUpgrade_SplitCurve3dContinuity: criterion C3 for Offset curve" << std::endl; 
 #endif
       case GeomAbs_CN : BasCriterion = GeomAbs_CN; break;
     }
@@ -129,16 +129,16 @@ void ShapeUpgrade_SplitCurve3dContinuity::Compute()
   
   Handle(Geom_BSplineCurve) MyBSpline = Handle(Geom_BSplineCurve)::DownCast (myCurve);
   if (MyBSpline.IsNull()) {
-//    if (ShapeUpgrade::Debug()) cout<<". curve is not a Bspline"<<endl;
+//    if (ShapeUpgrade::Debug()) std::cout<<". curve is not a Bspline"<<std::endl;
     return ;
   }
   // it is a BSplineCurve
-//  if (ShapeUpgrade::Debug()) cout<<". curve is a Bspline"<<endl;
+//  if (ShapeUpgrade::Debug()) std::cout<<". curve is a Bspline"<<std::endl;
 
   myNbCurves=1;
   Standard_Integer Deg=MyBSpline->Degree();
   Standard_Integer NbKnots= MyBSpline->NbKnots(); 
-//  if (ShapeUpgrade::Debug()) cout<<". NbKnots="<<NbKnots<<endl;
+//  if (ShapeUpgrade::Debug()) std::cout<<". NbKnots="<<NbKnots<<std::endl;
   if (NbKnots <= 2) {
     return;
   }
@@ -174,7 +174,7 @@ void ShapeUpgrade_SplitCurve3dContinuity::Compute()
        }
        if (corrected) {
          // at this knot, the continuity is now C1. Nothing else to do.
-//       if (ShapeUpgrade::Debug()) cout<<". Correction at Knot "<<iknot<<endl;
+//       if (ShapeUpgrade::Debug()) std::cout<<". Correction at Knot "<<iknot<<std::endl;
          myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE3 );
           if(newMultiplicity == 0) {
             //in case if knot is completelly removed
@@ -188,7 +188,7 @@ void ShapeUpgrade_SplitCurve3dContinuity::Compute()
          // this knot will be a splitting value.
          mySplitValues->InsertBefore(j++,MyBSpline->Knot(iknot));
          myNbCurves++;
-//       if (ShapeUpgrade::Debug()) cout<<". Splitting at Knot "<<iknot<<endl;
+//       if (ShapeUpgrade::Debug()) std::cout<<". Splitting at Knot "<<iknot<<std::endl;
        }
       }
     }
index 2aa1d06..8d40b31 100644 (file)
@@ -412,8 +412,8 @@ void ShapeUpgrade_SplitSurface::Build(const Standard_Boolean Segment)
     for(Standard_Integer  icol = 2; icol <= myVSplitValues->Length(); icol++) {
       V2 = myVSplitValues->Value(icol);
 //      if (ShapeUpgrade::Debug())  {
-//     cout<<".. bounds    ="<<U1    <<","<<U2   <<","<<V1    <<","<<V2   <<endl;
-//     cout<<".. -> pos ="<<irow  <<","<<icol<<endl;
+//     std::cout<<".. bounds    ="<<U1    <<","<<U2   <<","<<V1    <<","<<V2   <<std::endl;
+//     std::cout<<".. -> pos ="<<irow  <<","<<icol<<std::endl;
 //      }
       // creates a copy of theSurf before to segment:
       Handle(Geom_Surface) theNew = Handle(Geom_Surface)::DownCast ( mySurface->Copy() );
@@ -439,8 +439,8 @@ void ShapeUpgrade_SplitSurface::Build(const Standard_Boolean Segment)
        }
        catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-         cout << "Warning: ShapeUpgrade_SplitSurface::Build(): Exception in Segment      :";
-         anException.Print(cout); cout << endl;
+         std::cout << "Warning: ShapeUpgrade_SplitSurface::Build(): Exception in Segment      :";
+         anException.Print(std::cout); std::cout << std::endl;
 #endif
          (void)anException;
          Handle(Geom_Surface) theNewSurf = theNew;
@@ -471,7 +471,7 @@ void ShapeUpgrade_SplitSurface::Build(const Standard_Boolean Segment)
   for(i = 1; i <= nbV; i++)
     VJoints(i) = myVSplitValues->Value(i);
   myResSurfaces->Init(Surfaces,UJoints,VJoints);
-//  if (ShapeUpgrade::Debug()) cout<<"SplitSurface::Build - end"<<endl;
+//  if (ShapeUpgrade::Debug()) std::cout<<"SplitSurface::Build - end"<<std::endl;
 }
 
 
index 1c7ce5b..3da6393 100644 (file)
@@ -94,7 +94,7 @@ ShapeUpgrade_SplitSurfaceContinuity::ShapeUpgrade_SplitSurfaceContinuity()
   Standard_Real VFirst = myVSplitValues->Value(1);
   Standard_Real VLast  = myVSplitValues->Value(myVSplitValues->Length());
   Standard_Real precision = Precision::Confusion();
-//  if (ShapeUpgrade::Debug()) cout << "SplitSurfaceContinuity::Build" << endl;
+//  if (ShapeUpgrade::Debug()) std::cout << "SplitSurfaceContinuity::Build" << std::endl;
   if(mySurface->Continuity() < myCriterion) 
     myStatus = ShapeExtend::EncodeStatus (ShapeExtend_DONE2);
   if (myUSplitValues->Length() >2 || myVSplitValues->Length() >2 )
@@ -176,9 +176,9 @@ ShapeUpgrade_SplitSurfaceContinuity::ShapeUpgrade_SplitSurfaceContinuity()
       default         :
       case GeomAbs_C1 : BasCriterion = GeomAbs_C2; break;
       case GeomAbs_C2 : BasCriterion = GeomAbs_C3; break;
-      case GeomAbs_C3 : //if (ShapeUpgrade::Debug()) cout<<". this criterion is not suitable for a Offset Surface"<<endl;; 
+      case GeomAbs_C3 : //if (ShapeUpgrade::Debug()) std::cout<<". this criterion is not suitable for a Offset Surface"<<std::endl;; 
 #ifdef OCCT_DEBUG
-                       cout << "Warning: ShapeUpgrade_SplitSurfaceContinuity: criterion C3 for Offset surface" << endl; 
+                       std::cout << "Warning: ShapeUpgrade_SplitSurfaceContinuity: criterion C3 for Offset surface" << std::endl; 
 #endif
       case GeomAbs_CN : BasCriterion = GeomAbs_CN; break;
       
@@ -207,7 +207,7 @@ ShapeUpgrade_SplitSurfaceContinuity::ShapeUpgrade_SplitSurfaceContinuity()
   if(mySurface->IsKind(STANDARD_TYPE(Geom_BSplineSurface)))
     MyBSpline = Handle(Geom_BSplineSurface)::DownCast(mySurface->Copy());
   if (MyBSpline.IsNull()) {
-//    if (ShapeUpgrade::Debug()) cout<<".  Surface is not a Bspline"<<endl;
+//    if (ShapeUpgrade::Debug()) std::cout<<".  Surface is not a Bspline"<<std::endl;
     return;
   } 
   if(mySurface->Continuity() >= myCriterion) {
@@ -224,7 +224,7 @@ ShapeUpgrade_SplitSurfaceContinuity::ShapeUpgrade_SplitSurfaceContinuity()
   VLastInd = MyBSpline->LastVKnotIndex()-1;
   Standard_Integer NbVKnots= MyBSpline->NbVKnots();
   
-//  if (ShapeUpgrade::Debug()) cout<<". NbUKnots="<<NbUKnots<<endl;
+//  if (ShapeUpgrade::Debug()) std::cout<<". NbUKnots="<<NbUKnots<<std::endl;
   if (NbUKnots>2) {
     // Only the internal knots are checked.
     Standard_Integer iknot= UFirstInd;
@@ -248,7 +248,7 @@ ShapeUpgrade_SplitSurfaceContinuity::ShapeUpgrade_SplitSurfaceContinuity()
                }
          if (corrected) {
            // at this knot, the continuity is now C1. Nothing else to do.
-//         if (ShapeUpgrade::Debug()) cout<<". Correction at UKnot "<<iknot<<endl;
+//         if (ShapeUpgrade::Debug()) std::cout<<". Correction at UKnot "<<iknot<<std::endl;
             // PTV 15.05.2002 decrease iknot and ULastIndex values if knot removed
             if (newMultiplicity ==0) { iknot--; ULastInd--; }
            myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE3 );
@@ -259,14 +259,14 @@ ShapeUpgrade_SplitSurfaceContinuity::ShapeUpgrade_SplitSurfaceContinuity()
            Standard_Real u=MyBSpline->UKnot(iknot);
            myUSplitValues->InsertBefore(j++,u);
            myNbResultingRow++;
-//         if (ShapeUpgrade::Debug()) cout<<". Splitting at Knot "<<iknot<<endl;
+//         if (ShapeUpgrade::Debug()) std::cout<<". Splitting at Knot "<<iknot<<std::endl;
          }
        }
       }
       UFirst = ULast;
     }
   }
-//  if (ShapeUpgrade::Debug()) cout<<". NbVKnots="<<NbVKnots<<endl;
+//  if (ShapeUpgrade::Debug()) std::cout<<". NbVKnots="<<NbVKnots<<std::endl;
   if (NbVKnots>2) {
     // Only the internal knots are checked.
     Standard_Integer iknot=VFirstInd;
@@ -289,7 +289,7 @@ ShapeUpgrade_SplitSurfaceContinuity::ShapeUpgrade_SplitSurfaceContinuity()
          }
          if (corrected ) {
            // at this knot, the continuity is now Criterion. Nothing else to do.
-//         if (ShapeUpgrade::Debug()) cout<<". Correction at VKnot "<<iknot<<endl;
+//         if (ShapeUpgrade::Debug()) std::cout<<". Correction at VKnot "<<iknot<<std::endl;
             // PTV 15.05.2002 decrease iknot and ULastIndex values if knot removed
             if (newMultiplicity ==0) { iknot--; VLastInd--; }
            myStatus |= ShapeExtend::EncodeStatus ( ShapeExtend_DONE3 );
@@ -299,7 +299,7 @@ ShapeUpgrade_SplitSurfaceContinuity::ShapeUpgrade_SplitSurfaceContinuity()
            Standard_Real v=MyBSpline->VKnot(iknot);
            myVSplitValues->InsertBefore(j1++,v);
            myNbResultingCol++;
-//         if (ShapeUpgrade::Debug()) cout<<". Splitting at Knot "<<iknot<<endl;
+//         if (ShapeUpgrade::Debug()) std::cout<<". Splitting at Knot "<<iknot<<std::endl;
          }
        }
       }
index c3575dc..4d41721 100644 (file)
@@ -1450,7 +1450,7 @@ static Standard_Boolean MergeSubSeq(const TopTools_SequenceOfShape& theChain,
     }
     if(NeedUnion) {
 #ifdef OCCT_DEBUG
-      cout<<"can not make analitical union => make approximation"<<endl;
+      std::cout<<"can not make analitical union => make approximation"<<std::endl;
 #endif
       TopoDS_Edge E = GlueEdgesWithPCurves(theChain, VF, VL);
       OutEdge = E;
@@ -1458,7 +1458,7 @@ static Standard_Boolean MergeSubSeq(const TopTools_SequenceOfShape& theChain,
     }
     else {
 #ifdef OCCT_DEBUG
-      cout<<"can not make approximation for such types of curves"<<endl;
+      std::cout<<"can not make approximation for such types of curves"<<std::endl;
 #endif
       return Standard_False;
     }
index 9987a8f..06167aa 100644 (file)
@@ -72,7 +72,7 @@ IMPLEMENT_STANDARD_RTTIEXT(ShapeUpgrade_WireDivide,ShapeUpgrade_Tool)
 ShapeUpgrade_WireDivide::ShapeUpgrade_WireDivide():
        ShapeUpgrade_Tool(), myStatus(0)
 {
-//  if (ShapeUpgrade::Debug()) cout <<"ShapeUpgrade_WireDivide"<<endl;
+//  if (ShapeUpgrade::Debug()) std::cout <<"ShapeUpgrade_WireDivide"<<std::endl;
   mySplitCurve3dTool = new ShapeUpgrade_SplitCurve3d;
   mySplitCurve2dTool = new ShapeUpgrade_SplitCurve2d;
   myTransferParamTool = new ShapeAnalysis_TransferParametersProj;
@@ -89,7 +89,7 @@ ShapeUpgrade_WireDivide::ShapeUpgrade_WireDivide():
 void ShapeUpgrade_WireDivide::Init(const TopoDS_Wire& W,
                                   const TopoDS_Face& F) 
 {
-//  if (ShapeUpgrade::Debug()) cout <<"ShapeUpgrade_WireDivide::Init with Wire, Face"<<endl;
+//  if (ShapeUpgrade::Debug()) std::cout <<"ShapeUpgrade_WireDivide::Init with Wire, Face"<<std::endl;
   myWire = W;
   myFace = F;
   myStatus = ShapeExtend::EncodeStatus ( ShapeExtend_OK );
@@ -103,7 +103,7 @@ void ShapeUpgrade_WireDivide::Init(const TopoDS_Wire& W,
 void ShapeUpgrade_WireDivide::Init(const TopoDS_Wire& W,
                                   const Handle(Geom_Surface)& S) 
 {
-//  if (ShapeUpgrade::Debug()) cout <<"ShapeUpgrade_WireDivide::Init with Wire, Surface "<<endl;
+//  if (ShapeUpgrade::Debug()) std::cout <<"ShapeUpgrade_WireDivide::Init with Wire, Surface "<<std::endl;
   myWire = W;
   BRepLib_MakeFace mkf(S, Precision::Confusion());
   myFace = mkf.Face();
@@ -275,7 +275,7 @@ void ShapeUpgrade_WireDivide::Perform ()
   
   myStatus = ShapeExtend::EncodeStatus ( ShapeExtend_OK );
   
-//  if (ShapeUpgrade::Debug()) cout << "ShapeUpgrade_WireDivide::Perform" << endl;
+//  if (ShapeUpgrade::Debug()) std::cout << "ShapeUpgrade_WireDivide::Perform" << std::endl;
   
   BRep_Builder B;
   ShapeAnalysis_Edge sae;
@@ -302,7 +302,7 @@ void ShapeUpgrade_WireDivide::Perform ()
     TopoDS_Shape sh = Context()->Apply(ItW.Value(),TopAbs_SHAPE);
     for(TopExp_Explorer exp(sh,TopAbs_EDGE); exp.More(); exp.Next()) {
       TopoDS_Edge E = TopoDS::Edge(exp.Current());
-//      if (ShapeUpgrade::Debug()) cout << ".. Edge " << (void*) &(*E.TShape()) << endl;
+//      if (ShapeUpgrade::Debug()) std::cout << ".. Edge " << (void*) &(*E.TShape()) << std::endl;
       
       // skip degenerated edges (and also INTERNAL/EXTERNAL, to avoid failures)
       if ( E.Orientation() == TopAbs_INTERNAL || E.Orientation() == TopAbs_EXTERNAL ) {
@@ -380,7 +380,7 @@ void ShapeUpgrade_WireDivide::Perform ()
          if(revKnots2d->Length()!=theKnots2d->Length()) {
            isSeam = Standard_False;
 #ifdef OCCT_DEBUG
-           cout << "Error: ShapeUpgrade_WireDivide: seam has different splitting values on pcurvesd" << endl;
+           std::cout << "Error: ShapeUpgrade_WireDivide: seam has different splitting values on pcurvesd" << std::endl;
 #endif
          }
          else
@@ -460,7 +460,7 @@ void ShapeUpgrade_WireDivide::Perform ()
          Standard_Integer nbc2d = theSegments2d->Length();
          if (nbc!=nbc2d) {
 #ifdef OCCT_DEBUG
-           cout<<"Error: Number of intervals are not equal for 2d 3d. Ignored."<<endl;
+           std::cout<<"Error: Number of intervals are not equal for 2d 3d. Ignored."<<std::endl;
 #endif
            nbc = Min( nbc,nbc2d);
          }
@@ -597,9 +597,9 @@ void ShapeUpgrade_WireDivide::Perform ()
          else V = V2;
         // else  V2;
         // }
-//       if (ShapeUpgrade::Debug()) cout <<"... New intermediate Vertex (" 
+//       if (ShapeUpgrade::Debug()) std::cout <<"... New intermediate Vertex (" 
 //         <<P.X()<<","<<P.Y()<<","<<P.Z()<<") :"<<(void*) &(*V.TShape())
-//           <<" with Tolerance "<<TolEdge <<endl;
+//           <<" with Tolerance "<<TolEdge <<std::endl;
        }
        //else V = V2;
        
@@ -728,10 +728,10 @@ void ShapeUpgrade_WireDivide::Perform ()
           n--;
         }
 
-//     if (ShapeUpgrade::Debug()) cout <<"... New Edge "
+//     if (ShapeUpgrade::Debug()) std::cout <<"... New Edge "
 //       <<(void*) &(*newEdge.TShape())<<" on vertices "
 //         <<(void*) &(*V1.TShape())<<", " <<(void*) &(*V.TShape())
-//           <<" with Tolerance "<<TolEdge <<endl;
+//           <<" with Tolerance "<<TolEdge <<std::endl;
        B.Add ( resWire, newEdge );
        B.Add ( newWire, newEdge );
        numE++;
index 0b76c3c..49ac0de 100644 (file)
@@ -154,9 +154,9 @@ void Standard_ErrorHandler::Abort (const Handle(Standard_Failure)& theError)
 
   //==== Check if can do the "longjmp" =======================================
   if(anActive == NULL) {
-    cerr << "*** Abort *** an exception was raised, but no catch was found." << endl;
+    std::cerr << "*** Abort *** an exception was raised, but no catch was found." << std::endl;
     if (!theError.IsNull())
-      cerr << "\t... The exception is:" << theError->GetMessageString() << endl;
+      std::cerr << "\t... The exception is:" << theError->GetMessageString() << std::endl;
     exit(1);
   }
 
index 011a252..6383445 100644 (file)
@@ -75,7 +75,7 @@ Standard_PCharacter Standard_GUID_GetValue16(Standard_PCharacter tmpBuffer,
     my32b = (Standard_ExtCharacter) strtoul(strtmp, (char **)NULL, 16);
   }
   else return NULL;
-//  cout << "V16 :" << hex(my32b) << endl;
+//  std::cout << "V16 :" << hex(my32b) << std::endl;
   return &tmpBuffer[pos+1];
 }
 //=======================================================================
@@ -90,7 +90,7 @@ Standard_PCharacter Standard_GUID_GetValue8(Standard_PCharacter tmpBuffer,
   strncpy(strtmp,tmpBuffer,2);
   strtmp[2] = '\0';
   my32b = (Standard_Byte) strtoul(strtmp, (char **)NULL, 16);
-//  cout << "V8 :" << hex(my32b) << endl;
+//  std::cout << "V8 :" << hex(my32b) << std::endl;
   return &tmpBuffer[2];
 }
 //=======================================================================
index 1f2cbac..d9791b7 100644 (file)
@@ -255,7 +255,7 @@ Standard_Real     ATanh(const Standard_Real Value)
 { 
   if ( (Value <= -1.) || (Value >= 1.) ){
 #ifdef OCCT_DEBUG
-    cout << "Illegal agument in ATanh" << endl ;
+    std::cout << "Illegal agument in ATanh" << std::endl ;
 #endif
     throw Standard_NumericError("Illegal agument in ATanh");
   }
@@ -273,7 +273,7 @@ Standard_Real     ACosh (const Standard_Real Value)
 { 
   if ( Value < 1. ){
 #ifdef OCCT_DEBUG
-    cout << "Illegal agument in ACosh" << endl ;
+    std::cout << "Illegal agument in ACosh" << std::endl ;
 #endif
     throw Standard_NumericError("Illegal agument in ACosh");
   }
@@ -291,7 +291,7 @@ Standard_Real     Cosh (const Standard_Real Value)
 { 
   if ( Abs(Value) > 0.71047586007394394e+03 ){
 #ifdef OCCT_DEBUG
-    cout << "Result of Cosh exceeds the maximum value Standard_Real" << endl ;
+    std::cout << "Result of Cosh exceeds the maximum value Standard_Real" << std::endl ;
 #endif
     throw Standard_NumericError("Result of Cosh exceeds the maximum value Standard_Real");
   } 
@@ -305,7 +305,7 @@ Standard_Real     Sinh (const Standard_Real Value)
 { 
   if ( Abs(Value) > 0.71047586007394394e+03 ){
 #ifdef OCCT_DEBUG
-    cout << "Result of Sinh exceeds the maximum value Standard_Real" << endl ;
+    std::cout << "Result of Sinh exceeds the maximum value Standard_Real" << std::endl ;
 #endif
     throw Standard_NumericError("Result of Sinh exceeds the maximum value Standard_Real");
   } 
@@ -318,7 +318,7 @@ Standard_Real     Sinh (const Standard_Real Value)
 Standard_Real     Log (const Standard_Real Value) 
 {   if ( Value <= 0. ){
 #ifdef OCCT_DEBUG
-    cout << "Illegal agument in Log" << endl ;
+    std::cout << "Illegal agument in Log" << std::endl ;
 #endif
     throw Standard_NumericError("Illegal agument in Log");
   } 
@@ -331,7 +331,7 @@ Standard_Real     Sqrt (const Standard_Real Value)
 { 
   if (  Value < 0. ){
 #ifdef OCCT_DEBUG
-    cout << "Illegal agument in Sqrt" << endl ;
+    std::cout << "Illegal agument in Sqrt" << std::endl ;
 #endif
     throw Standard_NumericError("Illegal agument in Sqrt");
   } 
index a07b487..9516915 100644 (file)
@@ -63,7 +63,7 @@ Standard_Boolean Standard_Type::SubType (const Standard_CString theName) const
 // ------------------------------------------------------------------
 void Standard_Type::Print (Standard_OStream& AStream) const
 {
-  AStream << hex << (Standard_Address)this << " : " << dec << myName ;
+  AStream << std::hex << (Standard_Address)this << " : " << std::dec << myName ;
 }
 
 //============================================================================
@@ -120,7 +120,7 @@ Standard_Type* Standard_Type::Register (const char* theSystemName, const char* t
   // then add it to registry and return (the reference to the handle stored in the registry)
   aRegistry.Bind (aType->mySystemName, aType);
 
-//  cout << "Registering " << theSystemName << ": " << aRegistry.Extent() << endl;
+//  std::cout << "Registering " << theSystemName << ": " << aRegistry.Extent() << std::endl;
 
   return aType;
 }
@@ -131,7 +131,7 @@ Standard_Type::~Standard_Type ()
   registry_type& aRegistry = GetRegistry();
   Standard_ASSERT(aRegistry.UnBind (mySystemName), "Standard_Type::~Standard_Type() cannot find itself in registry",);
 
-//  cout << "Unregistering " << mySystemName << ": " << aRegistry.Extent() << endl;
+//  std::cout << "Unregistering " << mySystemName << ": " << aRegistry.Extent() << std::endl;
   Standard::Free (mySystemName);
   Standard::Free (myName);
 }
index 1b934a6..4d15883 100644 (file)
@@ -39,7 +39,7 @@ Handle(Standard_Transient) StdDrivers::Factory (const Standard_GUID& aGUID)
   if (aGUID == StdRetrievalDriver)
   {
 #ifdef OCCT_DEBUG
-    cout << "StdDrivers : Retrieval Plugin" << endl;
+    std::cout << "StdDrivers : Retrieval Plugin" << std::endl;
 #endif
 
     static Handle(StdDrivers_DocumentRetrievalDriver) model_rd = new StdDrivers_DocumentRetrievalDriver;
index 1ae738e..03c8bdf 100644 (file)
@@ -36,7 +36,7 @@ Handle(Standard_Transient) StdLDrivers::Factory (const Standard_GUID& aGUID)
   if (aGUID == StdLRetrievalDriver)
   {
 #ifdef OCCT_DEBUG
-    cout << "StdLDrivers : Retrieval Plugin" << endl;
+    std::cout << "StdLDrivers : Retrieval Plugin" << std::endl;
 #endif
 
     static Handle(StdLDrivers_DocumentRetrievalDriver) model_rd = new StdLDrivers_DocumentRetrievalDriver;
index 9ef6dc7..8dd6398 100644 (file)
@@ -100,7 +100,7 @@ Handle(StdObjMgt_Persistent) StdLDrivers_DocumentRetrievalDriver::read (
     myReaderStatus = PCDM_RS_OpenError;
 
     Standard_SStream aMsg;
-    aMsg << anException << endl;
+    aMsg << anException << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
   }
   
@@ -123,7 +123,7 @@ Handle(StdObjMgt_Persistent) StdLDrivers_DocumentRetrievalDriver::read (
     myReaderStatus = PCDM_RS_NoDocument;
 
     Standard_SStream aMsg;
-    aMsg << "could not find any document in this file" << endl;
+    aMsg << "could not find any document in this file" << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
   }
 
@@ -161,7 +161,7 @@ Handle(StdObjMgt_Persistent) StdLDrivers_DocumentRetrievalDriver::read (
       {
         aMsg << anUnknownTypes(i);
         if (i < anUnknownTypes.Length()) aMsg << ",";
-        else                             aMsg << endl;
+        else                             aMsg << std::endl;
       }
 
       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" << endl;
+    aMsg << "Stream Open Error" << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
 
   case Storage_VSModeError:
     myReaderStatus = PCDM_RS_WrongStreamMode;
-    aMsg << "Stream is opened with a wrong mode for operation" << endl;
+    aMsg << "Stream is opened with a wrong mode for operation" << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
 
   case Storage_VSSectionNotFound:
     myReaderStatus = PCDM_RS_FormatFailure;
-    aMsg << "Section is not found" << endl;
+    aMsg << "Section is not found" << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
 
   case Storage_VSFormatError:
     myReaderStatus = PCDM_RS_FormatFailure;
-    aMsg << "Wrong format error" << endl;
+    aMsg << "Wrong format error" << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
 
   case Storage_VSUnknownType:
     myReaderStatus = PCDM_RS_TypeFailure;
-    aMsg << "Try to read an unknown type" << endl;
+    aMsg << "Try to read an unknown type" << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
 
   case Storage_VSTypeMismatch:
     myReaderStatus = PCDM_RS_TypeFailure;
-    aMsg << "Try to read a wrong primitive type" << endl;
+    aMsg << "Try to read a wrong primitive type" << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
 
   default:
     myReaderStatus = PCDM_RS_DriverFailure;
-    aMsg << "Retrieval Driver Failure" << endl;
+    aMsg << "Retrieval Driver Failure" << std::endl;
     throw Standard_Failure(aMsg.str().c_str());
   }
 }
index d212da9..2f14447 100644 (file)
@@ -182,7 +182,7 @@ void StdPrs_WFDeflectionRestrictedFace::Add
        }
 #ifdef OCCT_DEBUG
        else {
-         cout << "Cannot evaluate curve on surface"<<endl;
+         std::cout << "Cannot evaluate curve on surface"<<std::endl;
        }
 #endif
       }
@@ -456,7 +456,7 @@ Standard_Boolean StdPrs_WFDeflectionRestrictedFace::Match
       }
 #ifdef OCCT_DEBUG
       else {
-       cout << "Cannot evaluate curve on surface"<<endl;
+       std::cout << "Cannot evaluate curve on surface"<<std::endl;
       }
 #endif
   }
index 36f2db8..6c74978 100644 (file)
@@ -637,7 +637,7 @@ Standard_Boolean StdSelect_BRepSelectionTool::GetSensitiveForFace (const TopoDS_
     if (Abs (wf - wl) <= Precision::Confusion())
     {
     #ifdef OCCT_DEBUG
-      cout<<" StdSelect_BRepSelectionTool : Curve where ufirst = ulast ...."<<endl;
+      std::cout<<" StdSelect_BRepSelectionTool : Curve where ufirst = ulast ...."<<std::endl;
     #endif
       continue;
     }
index f2c20cd..efe90ed 100644 (file)
@@ -809,14 +809,14 @@ Standard_Boolean StepAP209_Construct::CreateFeaStructure (const Handle(StepBasic
 {
   if(Prod.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout<<"Prod.IsNull()"<<endl;
+    std::cout<<"Prod.IsNull()"<<std::endl;
 #endif
     return Standard_False;
   }
   Handle(StepShape_ShapeRepresentation) AnaSR = IdealShape(Prod);
   if(AnaSR.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout<<"AnaSR.IsNull()"<<endl;
+    std::cout<<"AnaSR.IsNull()"<<std::endl;
 #endif
     return Standard_False;
   }
index 74be32e..c94aed9 100644 (file)
@@ -77,7 +77,7 @@ void StepBasic_SiUnit::SetDimensions(const Handle(StepBasic_DimensionalExponents
   // WARNING : the field is redefined.
   // field set up forbidden.
 #ifdef OCCT_DEBUG
-  cout << "Field is redefined, SetUp Forbidden" << endl;
+  std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
 #endif
 }
 
index 5e95539..3c12430 100644 (file)
@@ -125,28 +125,28 @@ static Interface_ReaderLib lib;
   Standard_Integer nb = thenames.Length();
   Standard_Integer lng = 0;  Standard_Integer ln1;
   S << " ---  StepData_HeaderTool : List of Protocol Names  ---  Count : "
-    << nb << endl;
+    << nb << std::endl;
   Standard_Integer i; // svv Jan11 2000 : porting on DEC
   for (i = 1; i <= nb; i ++) {
     ln1 = thenames.Value(i).Length() + 8;  lng += ln1;
-    if (lng > 80) {  S << endl;  lng = ln1;  }
+    if (lng > 80) {  S << std::endl;  lng = ln1;  }
     S << "  " << i << " : " << thenames.Value(i);
   }
-  if (lng == 0) S << endl;
+  if (lng == 0) S << std::endl;
 
   nb = theignored.Length();
   if (!thedone) {
-    S << " ---   Evaluation of Protocol not Done   ---" << endl;
+    S << " ---   Evaluation of Protocol not Done   ---" << std::endl;
   } else if (nb == 0) {
-    S << " ---   All Names correspond to a known Protocol  ---" << endl;
+    S << " ---   All Names correspond to a known Protocol  ---" << std::endl;
   } else {
     lng = ln1 = 0;
-    S << " ---   Among them, " << nb << " remain unrecognized  ---" << endl;
+    S << " ---   Among them, " << nb << " remain unrecognized  ---" << std::endl;
     for (i = 1; i <= nb; i ++) {
       ln1 = theignored.Value(i).Length() + 3;  lng += ln1;
-      if (lng > 80) {  S << endl;  lng = ln1;  }
+      if (lng > 80) {  S << std::endl;  lng = ln1;  }
       S << " : " << theignored.Value(i);
     }
-    if (lng == 0) S << endl;
+    if (lng == 0) S << std::endl;
   }
 }
index 1448cbc..22f65ac 100644 (file)
@@ -64,18 +64,18 @@ Standard_Boolean  StepData_StepDumper::Dump
        TColStd_SequenceOfAsciiString listypes;
        if (!module->ComplexType(CN,listypes))
          S << "(Complex Type : ask level > 0) cdl = "
-           << ent->DynamicType()->Name() << " (...);" << endl;
+           << ent->DynamicType()->Name() << " (...);" << Message_EndLine;
        else {
          Standard_Integer n = listypes.Length();
          for (i = 1; i <= n; i ++) S << listypes.Value(i) << " (...)";
-         S << endl;
+         S << Message_EndLine;
        }
       }
-      else S << module->StepType(CN)  << " (...);" << endl;
+      else S << module->StepType(CN)  << " (...);" << Message_EndLine;
     }
     else S << "(Unrecognized Type for protocol) cdl = "
-        << ent->DynamicType()->Name() << " (...);" << endl;
-    if (nlab > 0) S << "/*   Ident in file for "<<num<<" : #"<<nlab<<"   */"<<endl;
+        << ent->DynamicType()->Name() << " (...);" << Message_EndLine;
+    if (nlab > 0) S << "/*   Ident in file for "<<num<<" : #"<<nlab<<"   */"<<Message_EndLine;
   }
 
   else if (level == 1) {
@@ -98,7 +98,7 @@ Standard_Boolean  StepData_StepDumper::Dump
   }
   else {
     Handle(Standard_Transient) anent;
-//    S << " --  Dumping Entity n0 " << num << "  --" << endl;
+//    S << " --  Dumping Entity n0 " << num << "  --" << std::endl;
 //  ...  Envoi  ...
     TColStd_Array1OfInteger tab(0,nb); tab.Init(0);
     tab.SetValue(num,1);
@@ -146,39 +146,39 @@ Standard_Boolean  StepData_StepDumper::Dump
       S<<" (no ident): ";
       for (i = 1; i <= nb; i ++)
        {  if (ids.Value(i) >=  0) continue;    S<<" #"<<i;      }
-      S<<endl;
+      S<<Message_EndLine;
     }
     if (nbq > 0) {
       S<<" (ident = num): ";
       for (i = 1; i <= nb; i ++)  {  if (ids.Value(i) == i) S<<" #"<<i;  }
-      S<<endl;
+      S<<Message_EndLine;
     }
     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"<<endl;
-      S<<" (proper ident):  num:#ident  num:#ident  ..."<<endl;
+//      S<<" (proper ident):  #num          #ident"<<std::endl;
+      S<<" (proper ident):  num:#ident  num:#ident  ..."<<Message_EndLine;
       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<<endl; }
+       if (nbl+nbr0 > 79) { nbl  = nbc;  S<<Message_EndLine; }
        else               { nbl += nbr0; for (; nbr0 > 0; nbr0 --) S << " "; }
        S<<unid;
        nbr0 = nbr;
 
-//     if (nbl+nbc > 79) { S<<endl<<unid; nbl  = 0; }
+//     if (nbl+nbc > 79) { S<<std::endl<<unid; nbl  = 0; }
 //     else              { S<<unid;       }
 //     nbl += (nbc+nbr);
 //     nbr = ((80-nbc) % 4) +1;
 //     S<<"  "<<i<<" ->#"<<ids.Value(i);
-//     nbl ++; if (nbl > 5) {  nbl = nbr = 0;  S<<endl;  }
+//     nbl ++; if (nbl > 5) {  nbl = nbr = 0;  S<<std::endl;  }
       }
-      if (nbl > 0) S<<endl;
+      if (nbl > 0) S<<Message_EndLine;
     }
-    if (nbi > 0) S<<"In dump, iii:#jjj means : entity rank iii has step ident #jjj"<<endl;
-//    S <<" --   Dumping data, entity "<<num<<"  level "<<level<<" :"<<endl;
+    if (nbi > 0) S<<"In dump, iii:#jjj means : entity rank iii has step ident #jjj"<<Message_EndLine;
+//    S <<" --   Dumping data, entity "<<num<<"  level "<<level<<" :"<<std::endl;
   }
   if (level > 0) 
   {
index 306609c..109a751 100644 (file)
@@ -119,9 +119,9 @@ void StepData_StepModel::DumpHeader
     S << "  "  << iter.Value()->DynamicType()->Name() << "\n";
   }
   if (!iapro || nb == 0) return;
-  S << " --  --        STEP MODEL    HEADER  CONTENT      --  --" << endl;
+  S << " --  --        STEP MODEL    HEADER  CONTENT      --  --" << Message_EndLine;
   S << " --   Dumped with Protocol : " << stepro->DynamicType()->Name()
-    << "   --"<<endl;
+    << "   --"<<Message_EndLine;
 
   Standard_SStream aSStream;
   Handle(StepData_StepModel) me (this);
index db53128..0a36095 100644 (file)
@@ -192,7 +192,7 @@ void StepData_StepReaderData::SetRecord(const Standard_Integer num,
             sout << "  ***  Error on Record " << num << " (on " << NbRecords()
               << " -> " << num * 100 / NbRecords() << " % in File)  ***";
             if (prev > 0) sout << "  Ident #" << theidents(prev);
-            sout << "\n" << errm << endl;
+            sout << "\n" << errm << Message_EndLine;
 #endif
             thecheck->AddWarning(errm.ToCString(), "Complex Type incorrect : ");
           }
@@ -1563,7 +1563,7 @@ void StepData_StepReaderData::SetEntityNumbers(const Standard_Boolean withmap)
       if (letype == Interface_ParamSub) {
         Standard_Integer numsub = FP.EntityNumber();
         if (numsub > thelastn) {
-          sout << "Bad Sub.N0, Record " << num << " Param " << na << ":$" << numsub << endl;
+          sout << "Bad Sub.N0, Record " << num << " Param " << na << ":$" << numsub << Message_EndLine;
           continue;
         }
         FP.SetEntityNumber(subn(numsub));
@@ -1586,7 +1586,7 @@ void StepData_StepReaderData::SetEntityNumbers(const Standard_Boolean withmap)
           //  ...  Et sortir message un peu plus complet
           sout << "*** ERR StepReaderData *** Pour Entite #" << ident
             << "\n    Type:" << RecordType(num)
-            << "  Param.n0 " << na << ": #" << id << " Non trouve" << endl;
+            << "  Param.n0 " << na << ": #" << id << " Non trouve" << Message_EndLine;
         }      // FIN  Mapping
       }        // FIN  Traitement Reference
     }          // FIN  Boucle Parametres
@@ -1653,7 +1653,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 << endl;
+            sout << "StepReaderData:SetEntityNumbers, " << ligne << Message_EndLine;
           }
           if (indm(indmap) > 0) indm(indmap) = -indm(indmap);  // Pas pour Map
       //  Cas Normal pour la Map
@@ -1846,7 +1846,7 @@ void StepData_StepReaderData::SetEntityNumbers(const Standard_Boolean withmap)
           sout << "*** ERR StepReaderData *** Pour Entite " << nument
             << ", a " << (nr * 100) / nbseq << "% de DATA : #" << ident
             << "\n    Type:" << RecordType(num)
-            << "  Param.n0 " << na << ": #" << id << " Non trouve" << endl;
+            << "  Param.n0 " << na << ": #" << id << " Non trouve" << Message_EndLine;
           FP.SetEntityNumber(0);  // -> Reference non resolue
         }
       }
index 134fdf7..1751f8e 100644 (file)
@@ -184,7 +184,7 @@ void StepData_StepReaderTool::BeginRead
       Handle(Interface_Check) mch = model->GlobalCheck();
       Standard_Integer nbmess = ach->NbWarnings();
       sout<<nbmess<<" Warnings on Reading Header Entity N0."<<i<<":";
-      if (!ent.IsNull()) sout << ent->DynamicType()->Name() << endl;
+      if (!ent.IsNull()) sout << ent->DynamicType()->Name() << Message_EndLine;
       for (Standard_Integer nf = 1; nf <= nbmess; nf ++)
        sout << ach->CWarning(nf) << "\n";
     }
@@ -192,7 +192,7 @@ void StepData_StepReaderTool::BeginRead
       Handle(Interface_Check) mch = model->GlobalCheck();
       Standard_Integer nbmess = ach->NbFails();
       sout << " Errors on Reading Header Entity N0."<<i<<":";
-      if (!ent.IsNull()) sout << ent->DynamicType()->Name() << endl;
+      if (!ent.IsNull()) sout << ent->DynamicType()->Name() << Message_EndLine;
       for (Standard_Integer nf = 1; nf <= nbmess; nf ++)
        sout << ach->CFail(nf) << "\n";
     }
index 8186299..dc3695d 100644 (file)
@@ -127,8 +127,8 @@ void StepData_StepWriter::SetScope (const Standard_Integer numscope,
   }
   else if (thescopenext->Value(numin) != 0) {
 #ifdef OCCT_DEBUG
-    cout << "StepWriter : SetScope (scope : " << numscope << " entity : "
-      << numin << "), Entity already in a Scope"<<endl;
+    std::cout << "StepWriter : SetScope (scope : " << numscope << " entity : "
+      << numin << "), Entity already in a Scope"<<std::endl;
 #endif
     throw Interface_InterfaceMismatch("StepWriter : SetScope, already set");
   }
@@ -1153,7 +1153,7 @@ Standard_Boolean StepData_StepWriter::Print (Standard_OStream& S)
   for (Standard_Integer i = 1; i <= nb && isGood; i ++) 
     S << thefile->Value(i)->ToCString() << "\n";
   
-  S<< flush;
+  S<< std::flush;
   isGood = (S && S.good());
   
   return  isGood;
index 9ce4327..ca16bd2 100644 (file)
@@ -129,7 +129,7 @@ Standard_Integer StepFile_Read
   OSD_Timer c ; 
   c.Reset () ; 
   c.Start();
-  sout << "      ...    Step File Reading : " << ficnom << "" << endl;  
+  sout << "      ...    Step File Reading : " << ficnom << "" << Message_EndLine;  
 #endif
 
   try {
@@ -138,9 +138,9 @@ Standard_Integer StepFile_Read
   }
   catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-    sout << " ...  Exception Raised while reading Step File : " << ficnom << ":\n" << endl;
+    sout << " ...  Exception Raised while reading Step File : " << ficnom << ":\n" << Message_EndLine;
     sout << anException.GetMessageString();  
-    sout << "    ..." << endl;
+    sout << "    ..." << Message_EndLine;
 #endif
     (void)anException;
     lir_file_fin(3);  
@@ -150,7 +150,7 @@ Standard_Integer StepFile_Read
   // Continue reading of file despite of possible fails
   //if (checkread->HasFailed()) {  lir_file_fin(3);  stepread_endinput (newin,ficnom);  return 1;  }
 #ifdef CHRONOMESURE
-  sout << "      ...    STEP File   Read    ... " << endl;  
+  sout << "      ...    STEP File   Read    ... " << Message_EndLine;  
   c.Show(); 
 #endif
 
@@ -193,10 +193,10 @@ Standard_Integer StepFile_Read
 //  on a undirec pret pour la suite
 
 #ifdef CHRONOMESURE
-  sout << "      ... Step File loaded  ... " << endl
+  sout << "      ... Step File loaded  ... " << Message_EndLine
   c.Show();
   sout << "   "<< undirec->NbRecords () <<
-      " records (entities,sub-lists,scopes), "<< nbpar << " parameters\n" << endl;
+      " records (entities,sub-lists,scopes), "<< nbpar << " parameters\n" << Message_EndLine;
 #endif
 
 //   Analyse : par StepReaderTool
@@ -219,10 +219,10 @@ Standard_Integer StepFile_Read
   readtool.Clear();
   undirec.Nullify();
 #ifdef CHRONOMESURE
-  sout << "      ...   Objets analysed  ... " << endl
+  sout << "      ...   Objets analysed  ... " << Message_EndLine
   c.Show();
   n = stepmodel->NbEntities() ;
-  sout << "  STEP Loading done : " << n << " Entities" << endl;
+  sout << "  STEP Loading done : " << n << " Entities" << Message_EndLine;
 #endif
   
   stepread_endinput (newin,ficnom);  return 0 ;
@@ -232,7 +232,7 @@ void StepFile_Interrupt (char* mess)
 {
 #ifdef OCCT_DEBUG
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  sout << "    ****    StepFile Error : " << mess << "    ****" << endl;
+  sout << "    ****    StepFile Error : " << mess << "    ****" << Message_EndLine;
 #endif
   checkread->AddFail(mess);
 }
index c97bfbe..fe4697b 100644 (file)
@@ -61,41 +61,41 @@ IFSelect_ReturnStatus  StepSelect_Activator::Do
 
     case  1 : {   //        ****    StepSchema
       if (argc < 2) {
-        cout<<"Identify an entity"<<endl;
+        std::cout<<"Identify an entity"<<std::endl;
         return IFSelect_RetError;
       }
       Standard_Integer num = pilot->Number(arg1);
       if (num <= 0) {
-        cout<<"Not an entity : "<<arg2<<endl;
+        std::cout<<"Not an entity : "<<arg2<<std::endl;
         return IFSelect_RetError;
       }
       Handle(Standard_Transient) ent = pilot->Session()->StartingEntity(num);
       DeclareAndCast(StepData_UndefinedEntity,und,ent);
       if (!und.IsNull()) {
-       cout<<"Entity "<<arg2<<" : No Binding known"<<endl;
+       std::cout<<"Entity "<<arg2<<" : No Binding known"<<std::endl;
        return IFSelect_RetVoid;
       }
       DeclareAndCast(StepData_Simple,sim,ent);
       if (!sim.IsNull()) {
-       cout<<"Entity "<<arg2<<" : Late Binding"<<endl;
-       cout<<"Simple Type : "<<sim->StepType()<<endl;
+       std::cout<<"Entity "<<arg2<<" : Late Binding"<<std::endl;
+       std::cout<<"Simple Type : "<<sim->StepType()<<std::endl;
        return IFSelect_RetVoid;
       }
       DeclareAndCast(StepData_Plex,plx,ent);
       if (!plx.IsNull()) {
-       cout<<"Entity "<<arg2<<" : Late Binding"<<endl;
-       cout<<"Complex Type"<<endl;
+       std::cout<<"Entity "<<arg2<<" : Late Binding"<<std::endl;
+       std::cout<<"Complex Type"<<std::endl;
       }
 //       reste Early Binding
-      cout<<"Entity "<<arg2<<" : Early Binding"<<endl;
-      cout<<"CDL Type : "<<ent->DynamicType()->Name()<<endl;
+      std::cout<<"Entity "<<arg2<<" : Early Binding"<<std::endl;
+      std::cout<<"CDL Type : "<<ent->DynamicType()->Name()<<std::endl;
       return IFSelect_RetVoid;
     }
 
     case 40 : {   //        ****    FloatFormat
       char prem = ' ';
       if (argc < 2) prem = '?';
-      else if (argc == 5) { cout<<"floatformat tout court donne les formes admises"<<endl; return IFSelect_RetError; }
+      else if (argc == 5) { std::cout<<"floatformat tout court donne les formes admises"<<std::endl; return IFSelect_RetError; }
       else prem = arg1[0];
       Standard_Boolean zerosup=Standard_False;
       Standard_Integer digits = 0;
@@ -103,21 +103,21 @@ IFSelect_ReturnStatus  StepSelect_Activator::Do
       else if (prem == 'Z' || prem == 'z') zerosup = Standard_True;
       else if (prem >= 48  && prem <= 57)  digits  = atoi(arg1);
       else {
-       cout<<"floatformat digits, digits=nb de chiffres signifiants, ou\n"
+       std::cout<<"floatformat digits, digits=nb de chiffres signifiants, ou\n"
          <<  "floatformat NZ %mainformat [%rangeformat [Rmin Rmax]]\n"
          <<"  NZ : N ou n pour Non-zero-suppress, Z ou z pour zero-suppress\n"
          <<" %mainformat  : format principal type printf, ex,: %E\n"
          <<" + optionnel  : format secondaire (flottants autour de 1.) :\n"
          <<" %rangeformat Rmin Rmax : format type printf entre Rmin et Rmax\n"
          <<" %rangeformat tout seul : format type printf entre 0.1 et 1000.\n"
-           <<flush;
+           <<std::flush;
        return (prem == '?' ? IFSelect_RetVoid : IFSelect_RetError);
       }
       Standard_Real Rmin=0., Rmax=0.;
       if (argc > 4) {
        Rmin = Atof(pilot->Word(4).ToCString());
        Rmax = Atof(pilot->Word(5).ToCString());
-       if (Rmin <= 0 || Rmax <= 0) { cout<<"intervalle : donner reels > 0"<<endl; return IFSelect_RetError; }
+       if (Rmin <= 0 || Rmax <= 0) { std::cout<<"intervalle : donner reels > 0"<<std::endl; return IFSelect_RetError; }
       }
       Handle(StepSelect_FloatFormat) fm = new StepSelect_FloatFormat;
       if (argc == 2) fm->SetDefault(digits);
index 623d88c..03f303c 100644 (file)
@@ -88,12 +88,12 @@ Standard_Boolean  StepSelect_WorkLibrary::WriteFile
   DeclareAndCast(StepData_Protocol,stepro,ctx.Protocol());
   if (stepmodel.IsNull() || stepro.IsNull()) return Standard_False;
 
-  ofstream fout;
-  OSD_OpenStream(fout,ctx.FileName(),ios::out|ios::trunc);
+  std::ofstream fout;
+  OSD_OpenStream(fout,ctx.FileName(),std::ios::out|std::ios::trunc);
 
   if (!fout || !fout.is_open()) {
     ctx.CCheck(0)->AddFail("Step File could not be created");
-    sout<<" Step File could not be created : " << ctx.FileName() << endl; return 0;
+    sout<<" Step File could not be created : " << ctx.FileName() << Message_EndLine; return 0;
   }
   sout << " Step File Name : "<<ctx.FileName();
   StepData_StepWriter SW(stepmodel);
@@ -109,7 +109,7 @@ Standard_Boolean  StepSelect_WorkLibrary::WriteFile
     sout << " .. FileMod." << numod << filemod->Label();
     if (ctx.IsForAll()) sout << " (all model)";
     else  sout << " (" << ctx.NbEntities() << " entities)";
-//    sout << flush;
+//    sout << std::flush;
   }
 
 //  Envoi
@@ -119,13 +119,13 @@ Standard_Boolean  StepSelect_WorkLibrary::WriteFile
     ctx.CCheck(chl.Number())->GetMessages(chl.Value());
   sout<<" Write ";
   Standard_Boolean isGood = SW.Print(fout);                 
-  sout<<" Done"<<endl;
+  sout<<" Done"<<Message_EndLine;
       
   errno = 0;
   fout.close();
   isGood = fout.good() && isGood && !errno;
   if(errno)
-    sout << strerror(errno) << endl;
+    sout << strerror(errno) << Message_EndLine;
   return isGood;  
 }
 
@@ -154,14 +154,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"<<endl; return;  }
+  if (entity.IsNull()) {  S<<" Null"<<Message_EndLine; return;  }
 
 //  On attaque le dump : d abord cas de l Erreur
-  S << " Type cdl : " << entity->DynamicType()->Name() << endl;
+  S << " Type cdl : " << entity->DynamicType()->Name() << Message_EndLine;
   if (iserr)
-    S<<" ***  NOT WELL LOADED : CONTENT FROM FILE  ***"<<endl;
+    S<<" ***  NOT WELL LOADED : CONTENT FROM FILE  ***"<<Message_EndLine;
   else if (model->IsUnknownEntity(nument))
-    S<<" ***  UNKNOWN TYPE  ***"<<endl;
+    S<<" ***  UNKNOWN TYPE  ***"<<Message_EndLine;
 
   StepData_StepDumper dump(GetCasted(StepData_StepModel,model),
                            GetCasted(StepData_Protocol,protocol),thelabmode);
index 01e2901..9625053 100644 (file)
@@ -61,7 +61,7 @@ void StepShape_OrientedClosedShell::SetCfsFaces(const Handle(StepShape_HArray1Of
 {
        // WARNING : the field is redefined.
        // field set up forbidden.
-       cout << "Field is redefined, SetUp Forbidden" << endl;
+       std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
 }
 
 Handle(StepShape_HArray1OfFace) StepShape_OrientedClosedShell::CfsFaces() const
index 62cd57c..82bbf36 100644 (file)
@@ -64,7 +64,7 @@ void StepShape_OrientedEdge::SetEdgeStart(const Handle(StepShape_Vertex)& /*aEdg
 {
        // WARNING : the field is redefined.
        // field set up forbidden.
-       cout << "Field is redefined, SetUp Forbidden" << endl;
+       std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
 }
 
 Handle(StepShape_Vertex) StepShape_OrientedEdge::EdgeStart() const
@@ -85,7 +85,7 @@ void StepShape_OrientedEdge::SetEdgeEnd(const Handle(StepShape_Vertex)& /*aEdgeE
 {
        // WARNING : the field is redefined.
        // field set up forbidden.
-       cout << "Field is redefined, SetUp Forbidden" << endl;
+       std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
 }
 
 Handle(StepShape_Vertex) StepShape_OrientedEdge::EdgeEnd() const
index af5e397..a6be662 100644 (file)
@@ -61,7 +61,7 @@ void StepShape_OrientedFace::SetBounds(const Handle(StepShape_HArray1OfFaceBound
 {
        // WARNING : the field is redefined.
        // field set up forbidden.
-       cout << "Field is redefined, SetUp Forbidden" << endl;
+       std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
 }
 
 Handle(StepShape_HArray1OfFaceBound) StepShape_OrientedFace::Bounds() const
index 58ab4b2..3027144 100644 (file)
@@ -61,7 +61,7 @@ void StepShape_OrientedOpenShell::SetCfsFaces(const Handle(StepShape_HArray1OfFa
 {
        // WARNING : the field is redefined.
        // field set up forbidden.
-       cout << "Field is redefined, SetUp Forbidden" << endl;
+       std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
 }
 
 Handle(StepShape_HArray1OfFace) StepShape_OrientedOpenShell::CfsFaces() const
index 5f51b78..7b875d4 100644 (file)
@@ -61,7 +61,7 @@ void StepShape_OrientedPath::SetEdgeList(const Handle(StepShape_HArray1OfOriente
 {
        // WARNING : the field is redefined.
        // field set up forbidden.
-       cout << "Field is redefined, SetUp Forbidden" << endl;
+       std::cout << "Field is redefined, SetUp Forbidden" << std::endl;
 }
 
 Handle(StepShape_HArray1OfOrientedEdge) StepShape_OrientedPath::EdgeList() const
index 5edea1a..7b9c377 100644 (file)
@@ -1544,8 +1544,8 @@ Handle(Geom_Surface) StepToGeom::MakeSurface (const Handle(StepGeom_Surface)& SS
 #ifdef OCCT_DEBUG
 //   ShapeTool_DB ?
 //:s5
-    cout<<"Warning: MakeSurface: Exception:";
-    anException.Print(cout); cout << endl;
+    std::cout<<"Warning: MakeSurface: Exception:";
+    anException.Print(std::cout); std::cout << std::endl;
 #endif
     (void)anException;
   }
index 043b419..d7ecabf 100644 (file)
@@ -75,8 +75,8 @@
       if (i == 1)       aFMulDiff = aCurrentVal - Deg - 1;
       if (i == NbUniqueKnots) aLMulDiff = aCurrentVal - Deg - 1;
 #ifdef OCCT_DEBUG
-      cout << "\nWrong multiplicity " << aCurrentVal <<  " on " << i 
-           << " knot!" << "\nChanged to " << Deg + 1 << endl;
+      std::cout << "\nWrong multiplicity " << aCurrentVal <<  " on " << i 
+           << " knot!" << "\nChanged to " << Deg + 1 << std::endl;
 #endif
       aCurrentVal = Deg + 1;
     }
index 9de804b..892c2dd 100644 (file)
@@ -215,16 +215,16 @@ void StepToTopoDS_Builder::Init
 
     if ( TP->TraceLevel() > 2 )
     {
-      sout << "Geometric Statitics : " << endl;
-      sout << "   Surface Continuity : - C0 : " << myTool.C0Surf() << endl;
-      sout << "                        - C1 : " << myTool.C1Surf() << endl;
-      sout << "                        - C2 : " << myTool.C2Surf() << endl;
-      sout << "   Curve Continuity :   - C0 : " << myTool.C0Cur3() << endl;
-      sout << "                        - C1 : " << myTool.C1Cur3() << endl;
-      sout << "                        - C2 : " << myTool.C2Cur3() << endl;
-      sout << "   PCurve Continuity :  - C0 : " << myTool.C0Cur2() << endl;
-      sout << "                        - C1 : " << myTool.C1Cur2() << endl;
-      sout << "                        - C2 : " << myTool.C2Cur2() << endl;
+      sout << "Geometric Statitics : " << Message_EndLine;
+      sout << "   Surface Continuity : - C0 : " << myTool.C0Surf() << Message_EndLine;
+      sout << "                        - C1 : " << myTool.C1Surf() << Message_EndLine;
+      sout << "                        - C2 : " << myTool.C2Surf() << Message_EndLine;
+      sout << "   Curve Continuity :   - C0 : " << myTool.C0Cur3() << Message_EndLine;
+      sout << "                        - C1 : " << myTool.C1Cur3() << Message_EndLine;
+      sout << "                        - C2 : " << myTool.C2Cur3() << Message_EndLine;
+      sout << "   PCurve Continuity :  - C0 : " << myTool.C0Cur2() << Message_EndLine;
+      sout << "                        - C1 : " << myTool.C1Cur2() << Message_EndLine;
+      sout << "                        - C2 : " << myTool.C2Cur2() << Message_EndLine;
     }
 
 //:S4136    ShapeFix::SameParameter (S,Standard_False);
@@ -323,16 +323,16 @@ void StepToTopoDS_Builder::Init
   
   if ( TP->TraceLevel() > 2 )
   {
-    sout << "Geometric Statitics : " << endl;
-    sout << "   Surface Continuity : - C0 : " << myTool.C0Surf() << endl;
-    sout << "                        - C1 : " << myTool.C1Surf() << endl;
-    sout << "                        - C2 : " << myTool.C2Surf() << endl;
-    sout << "   Curve Continuity :   - C0 : " << myTool.C0Cur3() << endl;
-    sout << "                        - C1 : " << myTool.C1Cur3() << endl;
-    sout << "                        - C2 : " << myTool.C2Cur3() << endl;
-    sout << "   PCurve Continuity :  - C0 : " << myTool.C0Cur2() << endl;
-    sout << "                        - C1 : " << myTool.C1Cur2() << endl;
-    sout << "                        - C2 : " << myTool.C2Cur2() << endl;
+    sout << "Geometric Statitics : " << Message_EndLine;
+    sout << "   Surface Continuity : - C0 : " << myTool.C0Surf() << Message_EndLine;
+    sout << "                        - C1 : " << myTool.C1Surf() << Message_EndLine;
+    sout << "                        - C2 : " << myTool.C2Surf() << Message_EndLine;
+    sout << "   Curve Continuity :   - C0 : " << myTool.C0Cur3() << Message_EndLine;
+    sout << "                        - C1 : " << myTool.C1Cur3() << Message_EndLine;
+    sout << "                        - C2 : " << myTool.C2Cur3() << Message_EndLine;
+    sout << "   PCurve Continuity :  - C0 : " << myTool.C0Cur2() << Message_EndLine;
+    sout << "                        - C1 : " << myTool.C1Cur2() << Message_EndLine;
+    sout << "                        - C2 : " << myTool.C2Cur2() << Message_EndLine;
   }
 
 //:S4136  ShapeFix::SameParameter (S,Standard_False);
@@ -530,16 +530,16 @@ void StepToTopoDS_Builder::Init
   
   if ( TP->TraceLevel() > 2 )
   {
-    sout << "Geometric Statitics : " << endl;
-    sout << "   Surface Continuity : - C0 : " << myTool.C0Surf() << endl;
-    sout << "                        - C1 : " << myTool.C1Surf() << endl;
-    sout << "                        - C2 : " << myTool.C2Surf() << endl;
-    sout << "   Curve Continuity :   - C0 : " << myTool.C0Cur3() << endl;
-    sout << "                        - C1 : " << myTool.C1Cur3() << endl;
-    sout << "                        - C2 : " << myTool.C2Cur3() << endl;
-    sout << "   PCurve Continuity :  - C0 : " << myTool.C0Cur2() << endl;
-    sout << "                        - C1 : " << myTool.C1Cur2() << endl;
-    sout << "                        - C2 : " << myTool.C2Cur2() << endl;
+    sout << "Geometric Statitics : " << Message_EndLine;
+    sout << "   Surface Continuity : - C0 : " << myTool.C0Surf() << Message_EndLine;
+    sout << "                        - C1 : " << myTool.C1Surf() << Message_EndLine;
+    sout << "                        - C2 : " << myTool.C2Surf() << Message_EndLine;
+    sout << "   Curve Continuity :   - C0 : " << myTool.C0Cur3() << Message_EndLine;
+    sout << "                        - C1 : " << myTool.C1Cur3() << Message_EndLine;
+    sout << "                        - C2 : " << myTool.C2Cur3() << Message_EndLine;
+    sout << "   PCurve Continuity :  - C0 : " << myTool.C0Cur2() << Message_EndLine;
+    sout << "                        - C1 : " << myTool.C1Cur2() << Message_EndLine;
+    sout << "                        - C2 : " << myTool.C2Cur2() << Message_EndLine;
   }
 
 //:S4136  ShapeFix::SameParameter (S,Standard_False);
@@ -772,7 +772,7 @@ void StepToTopoDS_Builder::Init
         catch (Standard_Failure const& anException) {
           Handle(Message_Messenger) sout = TP->Messenger();
           sout << "StepToTopoDS, GeometricSet, elem " << i << " of " << nbElem << ": exception ";
-          sout << anException.GetMessageString() << endl;
+          sout << anException.GetMessageString() << Message_EndLine;
         }
         if (!aGeomCrv.IsNull()) {
           BRepBuilderAPI_MakeEdge anEdge(aGeomCrv, aGeomCrv->FirstParameter(), aGeomCrv->LastParameter());
index d764aaa..3a6bec4 100644 (file)
@@ -239,26 +239,26 @@ Standard_Boolean  StepToTopoDS_GeometricTool::UpdateParam3d(
     if (w1 < cf)
     {
 #ifdef OCCT_DEBUG
-      cout << "Update Edge First Parameter to Curve First Parameter" << endl;
+      std::cout << "Update Edge First Parameter to Curve First Parameter" << std::endl;
 #endif
       w1 = cf;
     }
     else if (w1 > cl)
     {
 #ifdef OCCT_DEBUG
-      cout << "Update Edge First Parameter to Curve Last Parameter" << endl;
+      std::cout << "Update Edge First Parameter to Curve Last Parameter" << std::endl;
 #endif
       w1 = cl;
     }
     if (w2 < cf) {
 #ifdef OCCT_DEBUG
-      cout << "Update Edge Last Parameter to Curve First Parameter" << endl;
+      std::cout << "Update Edge Last Parameter to Curve First Parameter" << std::endl;
 #endif
       w2 = cf;
     }
     else if (w2 > cl) {
 #ifdef OCCT_DEBUG
-      cout << "Update Edge Last Parameter to Curve Last Parameter" << endl;
+      std::cout << "Update Edge Last Parameter to Curve Last Parameter" << std::endl;
 #endif
       w2 = cl;
     }
@@ -308,7 +308,7 @@ Standard_Boolean  StepToTopoDS_GeometricTool::UpdateParam3d(
       else if (w1 > w2)
       {
 #ifdef OCCT_DEBUG
-        cout << "Warning : parameter range of edge crossing non periodic curve origin" << endl;
+        std::cout << "Warning : parameter range of edge crossing non periodic curve origin" << std::endl;
 #endif
         Standard_Real tmp = w1;
         w1 = w2;
@@ -344,7 +344,7 @@ Standard_Boolean  StepToTopoDS_GeometricTool::UpdateParam3d(
       else
       {
 #ifdef OCCT_DEBUG
-        cout << "Warning : parameter range of edge crossing non periodic curve origin" << endl;
+        std::cout << "Warning : parameter range of edge crossing non periodic curve origin" << std::endl;
 #endif
         Standard_Real tmp = w1;
         w1 = w2;
@@ -355,7 +355,7 @@ Standard_Boolean  StepToTopoDS_GeometricTool::UpdateParam3d(
     else if (w1 > w2)
     {
 #ifdef OCCT_DEBUG
-      cout << "Warning: parameter range is bad; curve reversed" << endl;
+      std::cout << "Warning: parameter range is bad; curve reversed" << std::endl;
 #endif
       w1 = theCurve->ReversedParameter(w1);
       w2 = theCurve->ReversedParameter(w2);
@@ -372,16 +372,16 @@ Standard_Boolean  StepToTopoDS_GeometricTool::UpdateParam3d(
   else
   {
 #ifdef OCCT_DEBUG
-    cout << "UpdateParam3d Failed" << endl;
-    cout << "  - Curve Type : " << theCurve->DynamicType() << endl;
-    cout << "  - Param 1    : " << w1 << endl;
-    cout << "  - Param 2    : " << w2 << endl;
+    std::cout << "UpdateParam3d Failed" << std::endl;
+    std::cout << "  - Curve Type : " << theCurve->DynamicType() << std::endl;
+    std::cout << "  - Param 1    : " << w1 << std::endl;
+    std::cout << "  - Param 2    : " << w2 << std::endl;
 #endif
     //abv 15.03.00 #72 bm1_pe_t4 protection of exceptions in draw
     if (w1 > w2)
     {
 #ifdef OCCT_DEBUG
-      cout << "Warning: parameter range is bad; curve reversed" << endl;
+      std::cout << "Warning: parameter range is bad; curve reversed" << std::endl;
 #endif
       w1 = theCurve->ReversedParameter(w1);
       w2 = theCurve->ReversedParameter(w2);
index 6d57831..774c0d2 100644 (file)
@@ -196,8 +196,8 @@ Standard_Boolean StepToTopoDS_TranslateCompositeCurve::Init (const Handle(StepGe
       }
       catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-       cout << "Warning: StepToTopoDS_TranslateCompositeCurve: Exception: ";
-       anException.Print(cout); cout << endl;
+       std::cout << "Warning: StepToTopoDS_TranslateCompositeCurve: Exception: ";
+       anException.Print(std::cout); std::cout << std::endl;
 #endif
        (void)anException;
       }
@@ -234,8 +234,8 @@ Standard_Boolean StepToTopoDS_TranslateCompositeCurve::Init (const Handle(StepGe
       }
       catch(Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-       cout << "Warning: StepToTopoDS_TranslateCompositeCurve: Exception: ";
-       anException.Print(cout); cout << endl;
+       std::cout << "Warning: StepToTopoDS_TranslateCompositeCurve: Exception: ";
+       anException.Print(std::cout); std::cout << std::endl;
 #endif
        (void)anException;
       }
index aa818d2..47d948f 100644 (file)
@@ -87,8 +87,8 @@ static void DecodeMakeEdgeError(const BRepLib_MakeEdge&   ME,
   Handle(Transfer_TransientProcess) TP = aTool.TransientProcess();
 
 #ifdef OCCT_DEBUG
-  cout << "------------------------------------" << endl;
-  cout << "MakeEdge Error  : " << ME.Error()<<" - ";
+  std::cout << "------------------------------------" << std::endl;
+  std::cout << "MakeEdge Error  : " << ME.Error()<<" - ";
 #endif
   switch(ME.Error())
     {
@@ -116,22 +116,22 @@ static void DecodeMakeEdgeError(const BRepLib_MakeEdge&   ME,
       break;
     }
 #ifdef OCCT_DEBUG
-  cout << "Original Type   : " << orig->DynamicType() << endl;
-  cout << "3D Curve Type   : " << myCurve->DynamicType() << endl;
-  cout << "First Parameter : " << U1 << endl;
+  std::cout << "Original Type   : " << orig->DynamicType() << std::endl;
+  std::cout << "3D Curve Type   : " << myCurve->DynamicType() << std::endl;
+  std::cout << "First Parameter : " << U1 << std::endl;
   gp_Pnt p1 = BRep_Tool::Pnt(V1);
-//  cout << "First Point     : ";
-  cout << "First Vertex    : "<<p1.X()<<"  "<<p1.Y()<<"  "<<p1.Z()<<"  ";
-  cout << "Distance Point - Vertex : ";
+//  std::cout << "First Point     : ";
+  std::cout << "First Vertex    : "<<p1.X()<<"  "<<p1.Y()<<"  "<<p1.Z()<<"  ";
+  std::cout << "Distance Point - Vertex : ";
   Standard_Real d1 = p1.Distance(myCurve->Value(U1)); 
-  cout << d1 << endl;
-  cout << "Last  Parameter : " << U2 << endl;
+  std::cout << d1 << std::endl;
+  std::cout << "Last  Parameter : " << U2 << std::endl;
   gp_Pnt p2 = BRep_Tool::Pnt(V2);
-//  cout << "Last  Point     : ";
-  cout << "Last  Vertex    : "<<p2.X()<<"  "<<p2.Y()<<"  "<<p2.Z()<<"  ";
-  cout << "Distance Point - Vertex : ";
+//  std::cout << "Last  Point     : ";
+  std::cout << "Last  Vertex    : "<<p2.X()<<"  "<<p2.Y()<<"  "<<p2.Z()<<"  ";
+  std::cout << "Distance Point - Vertex : ";
   Standard_Real d2 = BRep_Tool::Pnt(V2).Distance(myCurve->Value(U2)); 
-  cout << d2 << endl;
+  std::cout << d2 << std::endl;
 #endif
 }
 
index b2b1774..ab1d6f0 100644 (file)
@@ -144,7 +144,7 @@ static void CheckPCurves (TopoDS_Wire& aWire, const TopoDS_Face& aFace,
     if (w1 == w2) {
       RemoveSinglePCurve(myEdge,aFace);
 #ifdef OCCT_DEBUG
-      cout<<"Removing pcuve w1=w2"<<endl;
+      std::cout<<"Removing pcuve w1=w2"<<std::endl;
 #endif      
       continue;
     }
@@ -307,8 +307,8 @@ void StepToTopoDS_TranslateEdgeLoop::Init(const Handle(StepShape_FaceBound)& Fac
       }
       catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-        cout << "Warning: StepToTopoDS_TranslateEdgeLoop: Exception: ";
-        anException.Print(cout); cout << endl;
+        std::cout << "Warning: StepToTopoDS_TranslateEdgeLoop: Exception: ";
+        anException.Print(std::cout); std::cout << std::endl;
 #endif
         (void)anException;
         TP->AddFail(C,"Exeption was raised. Curve geometry definition is incorrect");
@@ -405,7 +405,7 @@ void StepToTopoDS_TranslateEdgeLoop::Init(const Handle(StepShape_FaceBound)& Fac
     Standard_Boolean ThereIsLikeSeam = Standard_False;
     
 #ifdef OCCT_DEBUG
-    cout << "      Processing Edge :" << j << endl;
+    std::cout << "      Processing Edge :" << j << std::endl;
 #endif
 
     OrEdge1  = EL->EdgeListValue(j);
@@ -674,7 +674,7 @@ void StepToTopoDS_TranslateEdgeLoop::Init(const Handle(StepShape_FaceBound)& Fac
       else {
         RemoveSinglePCurve(edge, Face);
 #ifdef OCCT_DEBUG
-        cout <<"Removing after prj"<<endl;
+        std::cout <<"Removing after prj"<<std::endl;
 #endif
       }
     }       
index 7b99345..a1f6731 100644 (file)
@@ -229,7 +229,7 @@ void StepToTopoDS_TranslateFace::Init
   for (Standard_Integer i = 1; i <= NbBnd; i ++) {
 
 #ifdef OCCT_DEBUG
-    cout << "    Processing Wire : " << i << endl;
+    std::cout << "    Processing Wire : " << i << std::endl;
 #endif    
     FaceBound = FS->BoundsValue(i);
     Loop      = FaceBound->Bound();
@@ -354,7 +354,7 @@ void StepToTopoDS_TranslateFace::Init
       // Type not yet implemented or non sens
       TP->AddFail(Loop," Type of loop not yet implemented");
 #ifdef OCCT_DEBUG
-      cout << Loop->DynamicType() << endl;
+      std::cout << Loop->DynamicType() << std::endl;
 #endif
       continue;
     }
index 2ad083f..8a0e210 100644 (file)
@@ -83,7 +83,7 @@ void StepToTopoDS_TranslateShell::Init
     Message_ProgressSentry PS ( TP->GetProgress(), "Face", 0, NbFc, 1 );
     for (Standard_Integer i = 1; i <= NbFc && PS.More(); i++, PS.Next()) {
 #ifdef OCCT_DEBUG
-      cout << "Processing Face : " << i << endl;
+      std::cout << "Processing Face : " << i << std::endl;
 #endif
       StepFace = CFS->CfsFacesValue(i);
       Handle(StepShape_FaceSurface) theFS =
index da80ee0..e070d8d 100644 (file)
@@ -761,7 +761,7 @@ Standard_Boolean Storage_Schema::CheckTypeMigration(
              break;
            }
 #ifdef OCCT_DEBUG
-           cout << "Storage_Sheme:: Line: = " << aLine <<endl;
+           std::cout << "Storage_Sheme:: Line: = " << aLine <<std::endl;
 #endif
            TCollection_AsciiString aKey, aValue;
            aKey = aLine.Token();
@@ -785,7 +785,7 @@ Standard_Boolean Storage_Schema::CheckTypeMigration(
         aDMap.Bind("TPrsStd_AISPresentation", "TDataXtd_Presentation");
       }
 #ifdef OCCT_DEBUG
-      cout << "Storage_Sheme:: aDataMap.Size = " << aDMap.Extent() << endl;
+      std::cout << "Storage_Sheme:: aDataMap.Size = " << aDMap.Extent() << std::endl;
 #endif
     }
   }
@@ -796,7 +796,7 @@ Standard_Boolean Storage_Schema::CheckTypeMigration(
       newName = aDMap.Find(oldName);
       aMigration = Standard_True;
 #ifdef OCCT_DEBUG
-      cout << " newName = " << newName << endl;
+      std::cout << " newName = " << newName << std::endl;
 #endif
     }
   } 
@@ -840,7 +840,7 @@ TCollection_AsciiString Storage_Schema::ICreationDate()
   if (time(&nowbin) == (time_t)-1)
   {
 #ifdef OCCT_DEBUG
-    cerr << "Storage ERROR : Could not get time of day from time()" << endl;
+    std::cerr << "Storage ERROR : Could not get time of day from time()" << std::endl;
 #endif
   }
 
@@ -849,7 +849,7 @@ TCollection_AsciiString Storage_Schema::ICreationDate()
   if (strftime(nowstr, SLENGTH, "%m/%d/%Y", nowstruct) == (size_t) 0)
   {
 #ifdef OCCT_DEBUG
-    cerr << "Storage ERROR : Could not get string from strftime()" << endl;
+    std::cerr << "Storage ERROR : Could not get string from strftime()" << std::endl;
 #endif
   }
 
index ed15bdd..5cd1b13 100644 (file)
@@ -1256,16 +1256,16 @@ TCollection_AsciiString TCollection_AsciiString::Token
   Standard_Integer BeginIndex=0 ;
   Standard_Integer EndIndex=0 ;
 
-//  cout << "'" << mystring <<  "'" << endl ;
+//  std::cout << "'" << mystring <<  "'" << std::endl ;
   for ( theOne = 0 ; theOne < whichone ; theOne++ ) {
      BeginIndex = 0 ;
      EndIndex = 0 ;
-//     cout << "theOne " << theOne << endl ;
+//     std::cout << "theOne " << theOne << std::endl ;
      if ( StringIndex == mylength )
        break ;
      for (; StringIndex < mylength && EndIndex == 0 ; StringIndex++ ) {
         SeparatorIndex = 0 ;
-//        cout << "StringIndex " << StringIndex << endl ;
+//        std::cout << "StringIndex " << StringIndex << std::endl ;
         while ( separators [ SeparatorIndex ] ) {
              if ( mystring [ StringIndex ] == separators [ SeparatorIndex ] ) {
                break ;
@@ -1275,22 +1275,22 @@ TCollection_AsciiString TCollection_AsciiString::Token
         if ( separators [ SeparatorIndex ] != '\0' ) { // We have a Separator
           if ( BeginIndex && EndIndex == 0 ) {
             EndIndex = StringIndex ;
-//            cout << "EndIndex " << EndIndex << " '" << SubString( BeginIndex , EndIndex ).ToCString() << "'" << endl ;
+//            std::cout << "EndIndex " << EndIndex << " '" << SubString( BeginIndex , EndIndex ).ToCString() << "'" << std::endl ;
             break ;
           }
         }
         else if ( BeginIndex == 0 ) {               // We have not a Separator
           BeginIndex = StringIndex + 1 ;
-//          cout << "BeginIndex " << BeginIndex << endl ;
+//          std::cout << "BeginIndex " << BeginIndex << std::endl ;
         }
      }
-//     cout << "BeginIndex " << BeginIndex << " EndIndex " << EndIndex << endl ;
+//     std::cout << "BeginIndex " << BeginIndex << " EndIndex " << EndIndex << std::endl ;
   }
   if ( BeginIndex == 0 )
     return TCollection_AsciiString("",0) ;
   if ( EndIndex == 0 )
     EndIndex = mylength ;
-//    cout << "'" << SubString( BeginIndex , EndIndex ).ToCString() << "'" << endl ;
+//    std::cout << "'" << SubString( BeginIndex , EndIndex ).ToCString() << "'" << std::endl ;
   return TCollection_AsciiString( &mystring [ BeginIndex - 1 ] ,
                                   EndIndex - BeginIndex + 1 ) ;
 }
index 14efb75..831ffaf 100644 (file)
@@ -141,7 +141,7 @@ void TCollection_BasicMap::Statistics(Standard_OStream& S) const
   for (i = 0; i<= mySize; i++) {
     if (sizes[i] > 0) {
       l += sizes[i] * i;
-      S << setw(5) << sizes[i] <<" buckets of size "<<i<<"\n";
+      S << std::setw(5) << sizes[i] <<" buckets of size "<<i<<"\n";
     }
   }
 
index 190151e..2c81d2e 100644 (file)
@@ -286,7 +286,7 @@ const TCollection_ExtendedString& TCollection_HExtendedString::String() const
 //---------------------------------------------------------------------
 void TCollection_HExtendedString::Print(Standard_OStream& S) const
 {
-  S << "begin class HExtendedString "<<endl;
+  S << "begin class HExtendedString "<<std::endl;
   myString.Print(S);
 }
 
index 056eb9d..524f6f3 100644 (file)
@@ -389,7 +389,7 @@ Standard_OStream& TDF_Attribute::Dump(Standard_OStream& anOS) const
   //
   pStr=toto;
   ID().ToCString(pStr);
-  anOS<<";\tID = "<<toto<<endl;
+  anOS<<";\tID = "<<toto<<std::endl;
   return anOS;
 }
 
index 33eaf90..84da9cb 100644 (file)
@@ -68,7 +68,7 @@ public:
   //! (it.Initialize(aLabel,Standard_True);
   //! it.More(); it.Next()){
   //! TDF_Tool::Entry(it.Value(),es);
-  //! cout << as.ToCString() << endl;
+  //! std::cout << as.ToCString() << std::endl;
   //! }
   //! }
   Standard_EXPORT void Initialize (const TDF_Label& aLabel, const Standard_Boolean allLevels = Standard_False);
index fe1e93e..f18947e 100644 (file)
@@ -82,12 +82,12 @@ void TDF_CopyLabel::ExternalReferences(const TDF_Label& aRefLabel, const TDF_Lab
     itr.Value()->References(ds);
     const TDF_AttributeMap& attMap = ds->Attributes(); //attMap
 //     TDF_Tool::Entry(itr.Value()->Label(), entr1);  //d
-//     cout<<"\tSource Attribute dynamic type = "<<itr.Value()->DynamicType()<<" Label = "<<entr1 <<endl;
+//     std::cout<<"\tSource Attribute dynamic type = "<<itr.Value()->DynamicType()<<" Label = "<<entr1 <<std::endl;
     for (TDF_MapIteratorOfAttributeMap attMItr(attMap);attMItr.More(); attMItr.Next()) {
       Handle(TDF_Attribute) att = attMItr.Key();
 
 //       TDF_Tool::Entry(att->Label(), entr1);  
-//       cout<<"\t\tReferences attribute dynamic type = "<<att->DynamicType()<<" Label = "<<entr1 <<endl;
+//       std::cout<<"\t\tReferences attribute dynamic type = "<<att->DynamicType()<<" Label = "<<entr1 <<std::endl;
       if (!att.IsNull() && !att->Label().IsNull())
       {
         if (aFilter.IsKept(att) && att->Label().IsDifferent(aRefLabel) &&
@@ -100,7 +100,7 @@ void TDF_CopyLabel::ExternalReferences(const TDF_Label& aRefLabel, const TDF_Lab
 //     const TDF_LabelMap& labMap = ds->Labels();
 //     for (TDF_MapIteratorOfLabelMap labMItr(labMap);labMItr.More(); labMItr.Next()) {
 //       TDF_Tool::Entry(labMItr.Key(), entr1);  
-//     cout<<"\t\tLABELS from DS of Attr:: Lab = "<<entr1<<endl;
+//     std::cout<<"\t\tLABELS from DS of Attr:: Lab = "<<entr1<<std::endl;
 //       if (!labMItr.Key().IsDescendant(aRefLabel) && labMItr.Key().IsDifferent(aRefLabel)) {
 // //  aExternals.Add(itr.Value()); // ??? LabelMap of Attribute has label which don't
 //     // belongs to source hierarchy. So, what we should do ?
@@ -109,7 +109,7 @@ void TDF_CopyLabel::ExternalReferences(const TDF_Label& aRefLabel, const TDF_Lab
 //     TCollection_AsciiString entr1, entr2;
 //     TDF_Tool::Entry(labMItr.Key(), entr1); 
 //     TDF_Tool::Entry(aRefLabel, entr2);
-//     cout<<"\t\t\tNot descendant label:: Lab1 = "<<entr1<<" and RefLab = "<<entr2<<endl;
+//     std::cout<<"\t\t\tNot descendant label:: Lab1 = "<<entr1<<" and RefLab = "<<entr2<<std::endl;
 //       }
 //     }
 
@@ -142,12 +142,12 @@ static void PrintEntry(const TDF_Label&       label, const Standard_Boolean allL
 {
   TCollection_AsciiString entry;
   TDF_Tool::Entry(label, entry);
-  cout << "\tShareable attribute on the label = "<< entry << endl;
+  std::cout << "\tShareable attribute on the label = "<< entry << std::endl;
   TDF_ChildIterator it (label, allLevels);
   for (; it.More(); it.Next())
     {
       TDF_Tool::Entry(it.Value(), entry);
-       cout << "\tChildLabelEntry = "<< entry << endl;
+       std::cout << "\tChildLabelEntry = "<< entry << std::endl;
     }  
 }
 #endif
index a6d8df8..a5407cb 100644 (file)
@@ -48,18 +48,18 @@ IMPLEMENT_STANDARD_RTTIEXT(TDF_Data,Standard_Transient)
 
 #ifdef OCCT_DEBUG_DELTA
 #define TDF_Data_DebugModified(ACTION) \
-  cout<<"After "<<ACTION<<" #"<<myTransaction+1<<", DF "<<this<<" had "<<myNbTouchedAtt<<" attribute(s) touched. Time = "<<myTime<<endl; \
+  std::cout<<"After "<<ACTION<<" #"<<myTransaction+1<<", DF "<<this<<" had "<<myNbTouchedAtt<<" attribute(s) touched. Time = "<<myTime<<std::endl; \
 if (!myTransaction) { \
   TCollection_AsciiString entry; \
   for (TDF_ChildIterator itr(Root(),Standard_True); itr.More(); itr.Next()) { \
     const TDF_LabelNode* lnp = itr.Value().myLabelNode; \
     if (lnp->AttributesModified() || lnp->MayBeModified()) { \
       TDF_Tool::Entry(itr.Value(),entry); \
-      cout<<ACTION<<" on "<<entry<<" : flag(s) "; \
-      if (lnp->AttributesModified()) cout<<"AttributesModified "; \
-      if (lnp->MayBeModified()) cout<<"MayBeModified already set in transaction 0! Please contact TDF developer."; \
-      cout<<endl; \
-      cout<<itr.Value()<<endl; \
+      std::cout<<ACTION<<" on "<<entry<<" : flag(s) "; \
+      if (lnp->AttributesModified()) std::cout<<"AttributesModified "; \
+      if (lnp->MayBeModified()) std::cout<<"MayBeModified already set in transaction 0! Please contact TDF developer."; \
+      std::cout<<std::endl; \
+      std::cout<<itr.Value()<<std::endl; \
       entry.Clear(); \
     }}}
 #else
@@ -71,7 +71,7 @@ if (!myTransaction) { \
 { \
 TCollection_AsciiString entry; \
 TDF_Tool::Entry(currentAtt->Label(),entry); \
-cout<<"Creation of a DeltaOn"<<DELTATYPE<<" \tat "<<entry<<" \ton "<<currentAtt->DynamicType()<<endl; \
+std::cout<<"Creation of a DeltaOn"<<DELTATYPE<<" \tat "<<entry<<" \ton "<<currentAtt->DynamicType()<<std::endl; \
 }
 #else
 #define TDF_DataDebugDeltaCreation(DELTATYPE)
@@ -138,7 +138,7 @@ Handle(TDF_Delta) TDF_Data::CommitTransaction
   if (myTransaction>0) {
     if (withDelta) delta = new TDF_Delta();
 #ifdef OCCT_DEBUG_DELTA
-    cout<<"TDF_Data::Begin Commit #"<<myTransaction<<endl;    
+    std::cout<<"TDF_Data::Begin Commit #"<<myTransaction<<std::endl;    
 #endif
 #ifdef TDF_DATA_COMMIT_OPTIMIZED
     myNbTouchedAtt = 0;
@@ -154,15 +154,15 @@ Handle(TDF_Delta) TDF_Data::CommitTransaction
         delta->Validity(myTimes.First(),myTime);
 #ifdef OCCT_DEBUG_DELTA
         if (myTransaction == 0) {
-          cout<<"TDF_Data::Commit generated this delta in t=0:"<<endl;
-          delta->Dump(cout);
+          std::cout<<"TDF_Data::Commit generated this delta in t=0:"<<std::endl;
+          delta->Dump(std::cout);
         }
 #endif
       }
 #ifdef OCCT_DEBUG_DELTA
       else {
         if (myTransaction == 0)
-          cout<<"TDF_Data::Commit generated NO delta."<<endl;
+          std::cout<<"TDF_Data::Commit generated NO delta."<<std::endl;
       }
 #endif
     }
@@ -408,8 +408,8 @@ Handle(TDF_Delta) TDF_Data::Undo(const Handle(TDF_Delta)& aDelta,
     if (aDelta->IsApplicable(myTime)) {
       if (withDelta) OpenTransaction();
 #ifdef OCCT_DEBUG_DELTA
-      cout<<"TDF_Data::Undo applies this delta:"<<endl;
-      aDelta->Dump(cout);
+      std::cout<<"TDF_Data::Undo applies this delta:"<<std::endl;
+      aDelta->Dump(std::cout);
 #endif
       aDelta->BeforeOrAfterApply(Standard_True);
       myNotUndoMode = Standard_False;
@@ -420,7 +420,7 @@ Handle(TDF_Delta) TDF_Data::Undo(const Handle(TDF_Delta)& aDelta,
         newDelta = CommitTransaction(Standard_True);
         newDelta->Validity(aDelta->EndTime(),aDelta->BeginTime());
 #ifdef OCCT_DEBUG_DELTA
-        cout<<"TDF_Data::Undo, after validity correction, Delta is now available from time \t#"<<newDelta->BeginTime()<<" to time \t#"<<newDelta->EndTime()<<endl;
+        std::cout<<"TDF_Data::Undo, after validity correction, Delta is now available from time \t#"<<newDelta->BeginTime()<<" to time \t#"<<newDelta->EndTime()<<std::endl;
 #endif
       }
       myTime = aDelta->BeginTime();
@@ -439,8 +439,8 @@ Handle(TDF_Delta) TDF_Data::Undo(const Handle(TDF_Delta)& aDelta,
 
 Standard_OStream& TDF_Data::Dump(Standard_OStream& anOS) const
 {
-  anOS<<"Dump of a TDF_Data."<<endl;
+  anOS<<"Dump of a TDF_Data."<<std::endl;
   anOS<<"Current transaction: "<<myTransaction;
-  anOS<<"; Current tick: "<<myTime<<";"<<endl;
+  anOS<<"; Current tick: "<<myTime<<";"<<std::endl;
   return anOS;
 }
index fbc3516..b71c288 100644 (file)
@@ -56,27 +56,27 @@ void TDF_DataSet::Clear()
 
 Standard_OStream& TDF_DataSet::Dump(Standard_OStream& anOS) const
 {
-  anOS<<"\t\t=====< TDF_DataSet dump >====="<<endl;
-  anOS<<"Root Labels :"<<endl<<"============="<<endl;
+  anOS<<"\t\t=====< TDF_DataSet dump >====="<<std::endl;
+  anOS<<"Root Labels :"<<std::endl<<"============="<<std::endl;
   for (TDF_ListIteratorOfLabelList itr1(myRootLabels);
        itr1.More(); itr1.Next()) {
     itr1.Value().EntryDump(anOS);
     anOS<<" | ";
   }
-  anOS<<endl<<"Labels :"<<endl<<"========"<<endl;
+  anOS<<std::endl<<"Labels :"<<std::endl<<"========"<<std::endl;
   for (TDF_MapIteratorOfLabelMap itr2(myLabelMap);
        itr2.More(); itr2.Next()) {
     itr2.Key().EntryDump(anOS);
     anOS<<" | ";
   }
-  anOS<<endl<<"Attributes :"<<endl<<"============"<<endl<<endl;
+  anOS<<std::endl<<"Attributes :"<<std::endl<<"============"<<std::endl<<std::endl;
   for (TDF_MapIteratorOfAttributeMap itr3(myAttributeMap);
        itr3.More(); itr3.Next()) {
     itr3.Key()->Label().EntryDump(anOS);
     anOS<<" \t";
     itr3.Key()->Dump(anOS);
-    anOS<<endl;
+    anOS<<std::endl;
   }
-  anOS<<endl;
+  anOS<<std::endl;
   return anOS;
 }
index 59c81fb..ce36db1 100644 (file)
@@ -112,15 +112,15 @@ void TDF_Delta::BeforeOrAfterApply(const Standard_Boolean before) const
 
   if (!noDeadLock) {
 #ifdef OCCT_DEBUG
-    if (before) cout<<"Before"; else cout<<"After";
-    cout<<"Undo(): dead lock between these attributes:"<<endl;
+    if (before) std::cout<<"Before"; else std::cout<<"After";
+    std::cout<<"Undo(): dead lock between these attributes:"<<std::endl;
     for (itr.Initialize(ADlist); itr.More(); itr.Next()) {
-      cout<<"AttributeDelta type = "<<itr.Value()->DynamicType()->Name();
-      cout<<"  Attribute type = "<<itr.Value()->Attribute()->DynamicType()->Name()<<endl;;
+      std::cout<<"AttributeDelta type = "<<itr.Value()->DynamicType()->Name();
+      std::cout<<"  Attribute type = "<<itr.Value()->Attribute()->DynamicType()->Name()<<std::endl;;
     if (before)
-      cout<<"BeforeUndo(): dead lock."<<endl;
+      std::cout<<"BeforeUndo(): dead lock."<<std::endl;
     else
-      cout<<"AfterUndo(): dead lock."<<endl;
+      std::cout<<"AfterUndo(): dead lock."<<std::endl;
     }
 #endif
     for (itr.Initialize(ADlist); itr.More(); itr.Next()) {
@@ -161,7 +161,7 @@ void TDF_Delta::Labels(TDF_LabelList& aLabelList) const
   // If <aLabelList> is not empty...
 #ifdef OCCT_DEBUG_DELTA
   Standard_Boolean inList;
-  if (aLabelList.Extent() > 0) cout<<"Previously added as modified label(s) ";
+  if (aLabelList.Extent() > 0) std::cout<<"Previously added as modified label(s) ";
 #endif
   for (TDF_ListIteratorOfLabelList it1(aLabelList);
        it1.More(); it1.Next()) {
@@ -169,17 +169,17 @@ void TDF_Delta::Labels(TDF_LabelList& aLabelList) const
     const TDF_Label& lab1 = it1.Value();
     inList = labMap.Add(lab1);
     if (!inList) {
-      lab1.EntryDump(cout);cout<<" | ";
+      lab1.EntryDump(std::cout);std::cout<<" | ";
     }
 #endif
   }
 #ifdef OCCT_DEBUG_DELTA
-  cout<<endl;
+  std::cout<<std::endl;
 #endif
 
   // New labels to add.
 #ifdef OCCT_DEBUG_DELTA
-  if (myAttDeltaList.Extent() > 0) cout<<"New added as modified label(s) ";
+  if (myAttDeltaList.Extent() > 0) std::cout<<"New added as modified label(s) ";
 #endif
   for (TDF_ListIteratorOfAttributeDeltaList it2(myAttDeltaList);
        it2.More();
@@ -188,12 +188,12 @@ void TDF_Delta::Labels(TDF_LabelList& aLabelList) const
     const TDF_Label& lab1 = it2.Value()->Label();
     inList = labMap.Add(lab1);
     if (!inList) {
-      lab1.EntryDump(cout);cout<<" | ";
+      lab1.EntryDump(std::cout);std::cout<<" | ";
     }
 #endif
   }
 #ifdef OCCT_DEBUG_DELTA
-  cout<<endl;
+  std::cout<<std::endl;
 #endif
 
   // Now put labels into <aLabelList>.
@@ -211,14 +211,14 @@ 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<<endl;
+  OS<<"DELTA available from time \t#"<<myBeginTime<<" to time \t#"<<myEndTime<<std::endl;
   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<<endl;
+  OS<<"Nb Attribute Delta(s): "<<n<<std::endl;
   for (itr.Initialize(myAttDeltaList); itr.More(); itr.Next()) {
     const Handle(TDF_AttributeDelta)& attDelta = itr.Value();
-    OS<<"| "; attDelta->Dump(OS); OS<<endl;
+    OS<<"| "; attDelta->Dump(OS); OS<<std::endl;
   }
 }
index 05e845b..ed8e309 100644 (file)
@@ -46,6 +46,6 @@ void TDF_DeltaOnForget::Apply()
   Label().ResumeAttribute(Attribute());
   Attribute()->mySavedTransaction = 0;
 #ifdef OCCT_DEBUG
-  cout<<"Resume attribute"<<endl;
+  std::cout<<"Resume attribute"<<std::endl;
 #endif
 }
index 9a909d0..f8f8b97 100644 (file)
@@ -45,6 +45,6 @@ void TDF_DeltaOnResume::Apply()
   // Undo = Forget.
   Label().ForgetAttribute (Attribute());
 #ifdef OCCT_DEBUG
-  cout<<"Forget attribute"<<endl;
+  std::cout<<"Forget attribute"<<std::endl;
 #endif
 }
index d631ecb..328d277 100644 (file)
@@ -165,11 +165,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:"<<endl;
+    anOS<<" BUT:"<<std::endl;
     for (; itr.More(); itr.Next()) {
       const Standard_GUID& guid = itr.Key();
       guid.ShallowDump(anOS);
-      anOS<<endl;
+      anOS<<std::endl;
     }
   }
 }
index eba97eb..9fac8c3 100644 (file)
@@ -375,7 +375,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<<"."<<endl;
+      anOS<<"has "<<nba<<" attribute"; if (nba > 1) anOS<<"s"; anOS<<"."<<std::endl;
       for (TDF_AttributeIterator itr(myLabelNode); itr.More(); itr.Next()) {
         // CLE
         // const Handle(TDF_Attribute)& att = itr.Value();
@@ -386,7 +386,7 @@ void TDF_Label::InternalDump
       }
     }
     else {
-      anOS<<" has no attribute"<<endl;
+      anOS<<" has no attribute"<<std::endl;
     }
   }
 }
index 97dec54..9b95993 100644 (file)
@@ -267,14 +267,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"<<endl;
+  anOS<<" after relocate"<<std::endl;
   anOS<<"Nb labels="<<myLabelTable.Extent();
   anOS<<"  Nb attributes="<<myAttributeTable.Extent();
-  anOS<<"  Nb transients="<<myTransientTable.Extent()<<endl;
+  anOS<<"  Nb transients="<<myTransientTable.Extent()<<std::endl;
 
   Standard_Integer nb = 0;
   if (dumpLabels) {
-    anOS<<"Label Table:"<<endl;
+    anOS<<"Label Table:"<<std::endl;
     for (TDF_DataMapIteratorOfLabelDataMap itr(myLabelTable);
         itr.More(); itr.Next()) {
       ++nb;
@@ -284,12 +284,12 @@ Standard_OStream& TDF_RelocationTable::Dump
       itr.Value().EntryDump(anOS);
       anOS<<"| ";
     }
-    cout<<endl;
+    std::cout<<std::endl;
   }
 
   nb = 0;
   if (dumpAttributes) {
-    anOS<<"Attribute Table:"<<endl;
+    anOS<<"Attribute Table:"<<std::endl;
     for (TDF_DataMapIteratorOfAttributeDataMap itr(myAttributeTable);
         itr.More(); itr.Next()) {
       ++nb;
@@ -298,12 +298,12 @@ Standard_OStream& TDF_RelocationTable::Dump
       anOS<<"<=>";
       itr.Value()->Dump(anOS);
       anOS<<"| ";
-      anOS<<endl;
+      anOS<<std::endl;
     }
   }
   
   if (dumpTransients) {
-    anOS<<"Transient Table:"<<myTransientTable.Extent()<<" transient(s) in table."<<endl;
+    anOS<<"Transient Table:"<<myTransientTable.Extent()<<" transient(s) in table."<<std::endl;
   }
 
   return anOS;
index 7e309c1..f587c69 100644 (file)
@@ -624,9 +624,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."<<endl;
+  anOS<<" referenced by the label structure."<<std::endl;
 
-  anOS<<endl<<"Extended dump of filtered attribute(s):"<<endl;
+  anOS<<std::endl<<"Extended dump of filtered attribute(s):"<<std::endl;
   Standard_Integer nba = 0;
   TCollection_AsciiString entry;
   Standard_Integer i ;
@@ -636,18 +636,18 @@ void TDF_Tool::ExtendedDeepDump
       ++nba;
       anOS<<"# "<<i;
       if (att->Label().IsNull()) {
-       anOS<<" (no label)"<<endl;
+       anOS<<" (no label)"<<std::endl;
       }
       else {
        TDF_Tool::Entry(att->Label(),entry);
-       anOS<<" (label: "<<entry<<")"<<endl;
+       anOS<<" (label: "<<entry<<")"<<std::endl;
       }
-      att->ExtendedDump(anOS,aFilter,map); anOS<<endl;
+      att->ExtendedDump(anOS,aFilter,map); anOS<<std::endl;
     }
   }
-  anOS<<endl<<nba<<" attribute";
+  anOS<<std::endl<<nba<<" attribute";
   if (nba>1) anOS<<"s";
-  anOS<<" dumped between "<<--i<<endl;
+  anOS<<" dumped between "<<--i<<std::endl;
 }
 
 
index ef67054..a74121f 100644 (file)
@@ -91,7 +91,7 @@ void TDF_Transaction::Initialize(const Handle(TDF_Data)& aDF)
 Standard_Integer TDF_Transaction::Open()
 {
 #ifdef OCCT_DEBUG_TRANSACTION
-  cout<<"Transaction "<<myName<<" opens #"<<myDF->Transaction()+1<<endl;
+  std::cout<<"Transaction "<<myName<<" opens #"<<myDF->Transaction()+1<<std::endl;
 #endif
   if (IsOpen())
     throw Standard_DomainError("This transaction is already open.");
@@ -109,27 +109,27 @@ Standard_Integer TDF_Transaction::Open()
 Handle(TDF_Delta) TDF_Transaction::Commit(const Standard_Boolean withDelta)
 {
 #ifdef OCCT_DEBUG_TRANSACTION
-  cout<<"Transaction "<<myName<<" commits ";
+  std::cout<<"Transaction "<<myName<<" commits ";
 #endif
   Handle(TDF_Delta) delta;
   if (IsOpen()) {
 #ifdef OCCT_DEBUG_TRANSACTION
-    cout<<"from #"<<myDF->Transaction()<<" until #"<<myUntilTransaction<<" while current is #"<<myDF->Transaction()<<endl;
+    std::cout<<"from #"<<myDF->Transaction()<<" until #"<<myUntilTransaction<<" while current is #"<<myDF->Transaction()<<std::endl;
 #endif
 #ifdef OCCT_DEBUG_TRANSACTION_DUMP
-    cout<<"DF before commit"<<endl;
-    TDF_Tool::DeepDump(cout,myDF);
+    std::cout<<"DF before commit"<<std::endl;
+    TDF_Tool::DeepDump(std::cout,myDF);
 #endif
     Standard_Integer until = myUntilTransaction;
     myUntilTransaction = 0;
     delta = myDF->CommitUntilTransaction(until, withDelta);
 #ifdef OCCT_DEBUG_TRANSACTION_DUMP
-    cout<<"DF after commit"<<endl;
-    TDF_Tool::DeepDump(cout,myDF);
+    std::cout<<"DF after commit"<<std::endl;
+    TDF_Tool::DeepDump(std::cout,myDF);
 #endif
   }
 #ifdef OCCT_DEBUG_TRANSACTION
-  else cout<<"but this transaction is not open!"<<endl;
+  else std::cout<<"but this transaction is not open!"<<std::endl;
 #endif
   return delta;
 }
@@ -144,17 +144,17 @@ void TDF_Transaction::Abort()
 {
   if (IsOpen()) {
 #ifdef OCCT_DEBUG_TRANSACTION
-    cout<<"Transaction "<<myName<<" aborts from #"<<myDF->Transaction()<<" until #"<<myUntilTransaction<<" while current is #"<<myDF->Transaction()<<endl;
+    std::cout<<"Transaction "<<myName<<" aborts from #"<<myDF->Transaction()<<" until #"<<myUntilTransaction<<" while current is #"<<myDF->Transaction()<<std::endl;
 #endif
 #ifdef OCCT_DEBUG_TRANSACTION_DUMP
-    cout<<"DF before abort"<<endl;
-    TDF_Tool::DeepDump(cout,myDF);
+    std::cout<<"DF before abort"<<std::endl;
+    TDF_Tool::DeepDump(std::cout,myDF);
 #endif
     myDF->AbortUntilTransaction(myUntilTransaction);
     myUntilTransaction = 0;
 #ifdef OCCT_DEBUG_TRANSACTION_DUMP
-    cout<<"DF after abort"<<endl;
-    TDF_Tool::DeepDump(cout,myDF);
+    std::cout<<"DF after abort"<<std::endl;
+    TDF_Tool::DeepDump(std::cout,myDF);
 #endif
   }
 }
index 1db415b..101417d 100644 (file)
@@ -196,6 +196,6 @@ Standard_OStream& TDataStd_AsciiString::Dump(Standard_OStream& theOS) const
   anOS << " Name=|"<<myString<<"|";
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
-  anOS << sguid << "|" <<endl;
+  anOS << sguid << "|" <<std::endl;
   return anOS;
 }
index eb82bba..c30bd7c 100644 (file)
@@ -317,6 +317,6 @@ Standard_OStream& TDataStd_BooleanArray::Dump (Standard_OStream& anOS) const
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
   anOS << sguid;
-  anOS <<endl;
+  anOS <<std::endl;
   return anOS;
 }
index 086cbfd..8593a65 100644 (file)
@@ -303,6 +303,6 @@ Standard_OStream& TDataStd_BooleanList::Dump (Standard_OStream& anOS) const
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
   anOS << sguid;
-  anOS << endl;
+  anOS << std::endl;
   return anOS;
 }
index e29d577..49ca2e1 100644 (file)
@@ -292,7 +292,7 @@ Standard_OStream& TDataStd_ByteArray::Dump (Standard_OStream& anOS) const
   anOS << "\nByteArray: ";
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
-  anOS << sguid << endl;
+  anOS << sguid << std::endl;
   return anOS;
 }
 
index d830575..c04ee56 100644 (file)
@@ -46,9 +46,9 @@ TDataStd_DeltaOnModificationOfByteArray::TDataStd_DeltaOnModificationOfByteArray
       Arr2 = CurrAtt->InternalArray();
 #ifdef OCCT_DEBUG_DELTA
       if(Arr1.IsNull())
-       cout <<"DeltaOnModificationOfByteArray:: Old ByteArray is Null" <<endl;
+       std::cout <<"DeltaOnModificationOfByteArray:: Old ByteArray is Null" <<std::endl;
       if(Arr2.IsNull())
-       cout <<"DeltaOnModificationOfByteArray:: Current ByteArray is Null" <<endl;
+       std::cout <<"DeltaOnModificationOfByteArray:: Current ByteArray is Null" <<std::endl;
 #endif
 
       if(Arr1.IsNull() || Arr2.IsNull()) return;
@@ -86,7 +86,7 @@ TDataStd_DeltaOnModificationOfByteArray::TDataStd_DeltaOnModificationOfByteArray
     OldAtt->RemoveArray();
 #ifdef OCCT_DEBUG
     if(OldAtt->InternalArray().IsNull())
-      cout << "BackUp Arr is Nullified" << endl;
+      std::cout << "BackUp Arr is Nullified" << std::endl;
 #endif
   }
 }
@@ -104,7 +104,7 @@ void TDataStd_DeltaOnModificationOfByteArray::Apply()
   Handle(TDataStd_ByteArray) BackAtt = Handle(TDataStd_ByteArray)::DownCast (TDFAttribute);
   if(BackAtt.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "DeltaOnModificationOfByteArray::Apply: OldAtt is Null" <<endl;
+    std::cout << "DeltaOnModificationOfByteArray::Apply: OldAtt is Null" <<std::endl;
 #endif
     return;
   }
@@ -117,7 +117,7 @@ void TDataStd_DeltaOnModificationOfByteArray::Apply()
 
   if(aCurAtt.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "DeltaOnModificationOfByteArray::Apply: CurAtt is Null" <<endl;
+    std::cout << "DeltaOnModificationOfByteArray::Apply: CurAtt is Null" <<std::endl;
 #endif
     return;
   }
@@ -158,9 +158,9 @@ void TDataStd_DeltaOnModificationOfByteArray::Apply()
     if(!myIndxes.IsNull() && !myValues.IsNull())
       for(i = 1; i <= myIndxes->Upper();i++) {
 #ifdef OCCT_DEBUG
-       cout << "i = " << i << "  myIndxes->Upper = " << myIndxes->Upper() << endl;
-       cout << "myIndxes->Value(i) = " << myIndxes->Value(i) << endl;
-       cout << "myValues->Value(i) = " << myValues->Value(i) << endl;
+       std::cout << "i = " << i << "  myIndxes->Upper = " << myIndxes->Upper() << std::endl;
+       std::cout << "myIndxes->Value(i) = " << myIndxes->Value(i) << std::endl;
+       std::cout << "myValues->Value(i) = " << myValues->Value(i) << std::endl;
 #endif
        byteArr->ChangeArray1().SetValue(myIndxes->Value(i), myValues->Value(i));      
       }
@@ -168,11 +168,11 @@ void TDataStd_DeltaOnModificationOfByteArray::Apply()
   }
   
 #ifdef OCCT_DEBUG
-  cout << " << Array Dump after Delta Apply >>" <<endl;
+  std::cout << " << Array Dump after Delta Apply >>" <<std::endl;
   Handle(TColStd_HArray1OfByte) BArr2 = aCurAtt->InternalArray();
   for(i=BArr2->Lower(); i<=BArr2->Upper() && i<= MAXUP;i++)
-    cout << BArr2->Value(i) << "  ";
-  cout <<endl;
+    std::cout << BArr2->Value(i) << "  ";
+  std::cout <<std::endl;
 #endif
 }
 
index c462711..064dd08 100644 (file)
@@ -45,9 +45,9 @@ TDataStd_DeltaOnModificationOfExtStringArray::TDataStd_DeltaOnModificationOfExtS
       Arr2 = CurrAtt->Array();
 #ifdef OCCT_DEBUG
       if(Arr1.IsNull())
-       cout <<"DeltaOnModificationOfExtStringArray:: Old IntArray is Null" <<endl;
+       std::cout <<"DeltaOnModificationOfExtStringArray:: Old IntArray is Null" <<std::endl;
       if(Arr2.IsNull())
-       cout <<"DeltaOnModificationOfExtStringArray:: Current IntArray is Null" <<endl;
+       std::cout <<"DeltaOnModificationOfExtStringArray:: Current IntArray is Null" <<std::endl;
 #endif
 
       if(Arr1.IsNull() || Arr2.IsNull()) return;
@@ -85,7 +85,7 @@ TDataStd_DeltaOnModificationOfExtStringArray::TDataStd_DeltaOnModificationOfExtS
     OldAtt->RemoveArray();
 #ifdef OCCT_DEBUG
     if(OldAtt->Array().IsNull())
-      cout << "BackUp Arr is Nullified" << endl;
+      std::cout << "BackUp Arr is Nullified" << std::endl;
 #endif
   }
 }
@@ -103,7 +103,7 @@ void TDataStd_DeltaOnModificationOfExtStringArray::Apply()
   Handle(TDataStd_ExtStringArray) BackAtt = Handle(TDataStd_ExtStringArray)::DownCast (TDFAttribute);
   if(BackAtt.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "DeltaOnModificationOfExtStringArray::Apply: OldAtt is Null" <<endl;
+    std::cout << "DeltaOnModificationOfExtStringArray::Apply: OldAtt is Null" <<std::endl;
 #endif
     return;
   }
@@ -116,7 +116,7 @@ void TDataStd_DeltaOnModificationOfExtStringArray::Apply()
 
   if(aCurAtt.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "DeltaOnModificationOfExtStringArray::Apply: CurAtt is Null" <<endl;
+    std::cout << "DeltaOnModificationOfExtStringArray::Apply: CurAtt is Null" <<std::endl;
 #endif
     return;
   }
@@ -160,9 +160,9 @@ void TDataStd_DeltaOnModificationOfExtStringArray::Apply()
     if(!myIndxes.IsNull() && !myValues.IsNull())
       for(i = 1; i <= myIndxes->Upper();i++) {
 #ifdef OCCT_DEBUG
-       cout << "i = " << i << "  myIndxes->Upper = " << myIndxes->Upper() << endl;
-       cout << "myIndxes->Value(i) = " << myIndxes->Value(i) << endl;
-       cout << "myValues->Value(i) = " << myValues->Value(i) << endl;
+       std::cout << "i = " << i << "  myIndxes->Upper = " << myIndxes->Upper() << std::endl;
+       std::cout << "myIndxes->Value(i) = " << myIndxes->Value(i) << std::endl;
+       std::cout << "myValues->Value(i) = " << myValues->Value(i) << std::endl;
 #endif
        strArr->ChangeArray1().SetValue(myIndxes->Value(i), myValues->Value(i));      
       }
@@ -171,11 +171,11 @@ void TDataStd_DeltaOnModificationOfExtStringArray::Apply()
 
   
 #ifdef OCCT_DEBUG
-  cout << " << Array Dump after Delta Apply >>" <<endl;
+  std::cout << " << Array Dump after Delta Apply >>" <<std::endl;
   Handle(TColStd_HArray1OfExtendedString) aStrArr2 = aCurAtt->Array();
   for(i=aStrArr2->Lower(); i<= aStrArr2->Upper() && i<= MAXUP;i++)
-    cout << aStrArr2->Value(i) << "  ";
-  cout <<endl;
+    std::cout << aStrArr2->Value(i) << "  ";
+  std::cout <<std::endl;
 #endif
 }
 
index 8f1b22a..5ba9f9c 100644 (file)
@@ -45,9 +45,9 @@ TDataStd_DeltaOnModificationOfIntArray::TDataStd_DeltaOnModificationOfIntArray(c
       Arr2 = CurrAtt->Array();
 #ifdef OCCT_DEBUG
       if(Arr1.IsNull())
-       cout <<"DeltaOnModificationOfIntArray:: Old IntArray is Null" <<endl;
+       std::cout <<"DeltaOnModificationOfIntArray:: Old IntArray is Null" <<std::endl;
       if(Arr2.IsNull())
-       cout <<"DeltaOnModificationOfIntArray:: Current IntArray is Null" <<endl;
+       std::cout <<"DeltaOnModificationOfIntArray:: Current IntArray is Null" <<std::endl;
 #endif
 
       if(Arr1.IsNull() || Arr2.IsNull()) return;
@@ -84,7 +84,7 @@ TDataStd_DeltaOnModificationOfIntArray::TDataStd_DeltaOnModificationOfIntArray(c
     OldAtt->RemoveArray();
 #ifdef OCCT_DEBUG
     if(OldAtt->Array().IsNull())
-      cout << "BackUp Arr is Nullified" << endl;
+      std::cout << "BackUp Arr is Nullified" << std::endl;
 #endif
   }
 }
@@ -102,7 +102,7 @@ void TDataStd_DeltaOnModificationOfIntArray::Apply()
   Handle(TDataStd_IntegerArray) BackAtt = Handle(TDataStd_IntegerArray)::DownCast (TDFAttribute);
   if(BackAtt.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "DeltaOnModificationOfIntArray::Apply: OldAtt is Null" <<endl;
+    std::cout << "DeltaOnModificationOfIntArray::Apply: OldAtt is Null" <<std::endl;
 #endif
     return;
   }
@@ -115,7 +115,7 @@ void TDataStd_DeltaOnModificationOfIntArray::Apply()
 
   if(aCurAtt.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "DeltaOnModificationOfIntArray::Apply: CurAtt is Null" <<endl;
+    std::cout << "DeltaOnModificationOfIntArray::Apply: CurAtt is Null" <<std::endl;
 #endif
     return;
   }
@@ -156,9 +156,9 @@ void TDataStd_DeltaOnModificationOfIntArray::Apply()
     if(!myIndxes.IsNull() && !myValues.IsNull())
       for(i = 1; i <= myIndxes->Upper();i++) {
 #ifdef OCCT_DEBUG
-       cout << "i = " << i << "  myIndxes->Upper = " << myIndxes->Upper() << endl;
-       cout << "myIndxes->Value(i) = " << myIndxes->Value(i) << endl;
-       cout << "myValues->Value(i) = " << myValues->Value(i) << endl;
+       std::cout << "i = " << i << "  myIndxes->Upper = " << myIndxes->Upper() << std::endl;
+       std::cout << "myIndxes->Value(i) = " << myIndxes->Value(i) << std::endl;
+       std::cout << "myValues->Value(i) = " << myValues->Value(i) << std::endl;
 #endif
        intArr->ChangeArray1().SetValue(myIndxes->Value(i), myValues->Value(i));      
       }
@@ -166,11 +166,11 @@ void TDataStd_DeltaOnModificationOfIntArray::Apply()
   }
   
 #ifdef OCCT_DEBUG
-  cout << " << Array Dump after Delta Apply >>" <<endl;
+  std::cout << " << Array Dump after Delta Apply >>" <<std::endl;
   Handle(TColStd_HArray1OfInteger) IntArr2 = aCurAtt->Array();
   for(i=IntArr2->Lower(); i<=IntArr2->Upper() && i <= MAXUP;i++)
-    cout << IntArr2->Value(i) << "  ";
-  cout <<endl;
+    std::cout << IntArr2->Value(i) << "  ";
+  std::cout <<std::endl;
 #endif
 }
 
index 9b121e0..6c0d12e 100644 (file)
@@ -46,9 +46,9 @@ TDataStd_DeltaOnModificationOfIntPackedMap::TDataStd_DeltaOnModificationOfIntPac
     aMap2 = CurrAtt->GetHMap();
 #ifdef OCCT_DEBUG_disable
     if (aMap1.IsNull())
-      cout <<"DeltaOnModificationOfIntPackedMap:: Old Map is Null" <<endl;
+      std::cout <<"DeltaOnModificationOfIntPackedMap:: Old Map is Null" <<std::endl;
     if (aMap2.IsNull())
-      cout <<"DeltaOnModificationOfIntPackedMap:: Current Map is Null" <<endl;
+      std::cout <<"DeltaOnModificationOfIntPackedMap:: Current Map is Null" <<std::endl;
 #endif
       
     if (aMap1.IsNull() || aMap2.IsNull()) return;
@@ -87,7 +87,7 @@ void TDataStd_DeltaOnModificationOfIntPackedMap::Apply()
   Handle(TDataStd_IntPackedMap) aBackAtt = Handle(TDataStd_IntPackedMap)::DownCast (aTDFAttribute);
   if(aBackAtt.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "DeltaOnModificationOfIntPAckedMap::Apply: OldAtt is Null" <<endl;
+    std::cout << "DeltaOnModificationOfIntPAckedMap::Apply: OldAtt is Null" <<std::endl;
 #endif
     return;
   }
@@ -100,7 +100,7 @@ void TDataStd_DeltaOnModificationOfIntPackedMap::Apply()
 
   if(aCurAtt.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "DeltaOnModificationOfIntAPckedMAp::Apply: CurAtt is Null" <<endl;
+    std::cout << "DeltaOnModificationOfIntAPckedMAp::Apply: CurAtt is Null" <<std::endl;
 #endif
     return;
   }
@@ -125,11 +125,11 @@ void TDataStd_DeltaOnModificationOfIntPackedMap::Apply()
   }
   
 #ifdef OCCT_DEBUG_disable
-  cout << " << Map Dump after Delta Apply >>" <<endl;
+  std::cout << " << Map Dump after Delta Apply >>" <<std::endl;
   Handle(TColStd_HPackedMapOfInteger) aIntMap = aCurAtt->GetHMap();
   TColStd_MapIteratorOfPackedMapOfInteger it(aIntMap->Map());
   for (Standard_Integer i=1;it.More() && i <= MAXUP; it.Next(), i++) 
-    cout << it.Key() << "  ";
-  cout <<endl;
+    std::cout << it.Key() << "  ";
+  std::cout <<std::endl;
 #endif
 }
index 1acde06..41b65a5 100644 (file)
@@ -45,9 +45,9 @@ TDataStd_DeltaOnModificationOfRealArray::
     Arr2 = CurrAtt->Array();
 #ifdef OCCT_DEBUG
     if(Arr1.IsNull())
-      cout <<"DeltaOnModificationOfRealArray:: Old Array is Null" <<endl;
+      std::cout <<"DeltaOnModificationOfRealArray:: Old Array is Null" <<std::endl;
     if(Arr2.IsNull())
-      cout <<"DeltaOnModificationOfRealArray:: Current Array is Null" <<endl;
+      std::cout <<"DeltaOnModificationOfRealArray:: Current Array is Null" <<std::endl;
 #endif
 
     if(Arr1.IsNull() || Arr2.IsNull()) return;
@@ -83,7 +83,7 @@ TDataStd_DeltaOnModificationOfRealArray::
     OldAtt->RemoveArray();
 #ifdef OCCT_DEBUG
     if(OldAtt->Array().IsNull())
-      cout << "BackUp Arr is Nullified" << endl;
+      std::cout << "BackUp Arr is Nullified" << std::endl;
 #endif
   }
 }
@@ -101,7 +101,7 @@ void TDataStd_DeltaOnModificationOfRealArray::Apply()
   Handle(TDataStd_RealArray) BackAtt = Handle(TDataStd_RealArray)::DownCast (TDFAttribute);
   if(BackAtt.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "DeltaOnModificationOfRealArray::Apply: OldAtt is Null" <<endl;
+    std::cout << "DeltaOnModificationOfRealArray::Apply: OldAtt is Null" <<std::endl;
 #endif
     return;
   }
@@ -114,7 +114,7 @@ void TDataStd_DeltaOnModificationOfRealArray::Apply()
 
   if(aCurAtt.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "DeltaOnModificationOfRealArray::Apply: CurAtt is Null" <<endl;
+    std::cout << "DeltaOnModificationOfRealArray::Apply: CurAtt is Null" <<std::endl;
 #endif
     return;
   }
@@ -155,9 +155,9 @@ void TDataStd_DeltaOnModificationOfRealArray::Apply()
     if(!myIndxes.IsNull() && !myValues.IsNull())
       for(i = 1; i <= myIndxes->Upper();i++) {
 #ifdef OCCT_DEBUG
-       cout << "i = " << i << "  myIndxes->Upper = " << myIndxes->Upper() << endl;
-       cout << "myIndxes->Value(i) = " << myIndxes->Value(i) << endl;
-       cout << "myValues->Value(i) = " << myValues->Value(i) << endl;
+       std::cout << "i = " << i << "  myIndxes->Upper = " << myIndxes->Upper() << std::endl;
+       std::cout << "myIndxes->Value(i) = " << myIndxes->Value(i) << std::endl;
+       std::cout << "myValues->Value(i) = " << myValues->Value(i) << std::endl;
 #endif
        realArr->ChangeArray1().SetValue(myIndxes->Value(i), myValues->Value(i));      
       }
@@ -166,11 +166,11 @@ void TDataStd_DeltaOnModificationOfRealArray::Apply()
     
 
 #ifdef OCCT_DEBUG
-  cout << " << RealArray Dump after Delta Apply >>" <<endl;
+  std::cout << " << RealArray Dump after Delta Apply >>" <<std::endl;
   Handle(TColStd_HArray1OfReal) aRArr = aCurAtt->Array();
   for(i=aRArr->Lower(); i<=aRArr->Upper() && i <= MAXUP;i++)
-    cout << aRArr->Value(i) << "  ";
-  cout <<endl;
+    std::cout << aRArr->Value(i) << "  ";
+  std::cout <<std::endl;
 #endif
 }
 
index a6df6da..c7cab25 100644 (file)
@@ -312,13 +312,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)<<endl;
+      anOS << "\t" <<myValue->Value(i)<<std::endl;
   }
   anOS << " Delta is " << (myIsDelta ? "ON":"OFF");
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
   anOS << sguid;
-  anOS << endl;
+  anOS << std::endl;
   return anOS;
 }
 
index 15b7257..7580669 100644 (file)
@@ -363,6 +363,6 @@ Standard_OStream& TDataStd_ExtStringList::Dump (Standard_OStream& anOS) const
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
   anOS << sguid;
-  anOS << endl;
+  anOS << std::endl;
   return anOS;
 }
index 4dab87c..e516268 100644 (file)
@@ -217,7 +217,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 << endl;
+  anOS << std::endl;
   return anOS;
 }
 
index f2772ef..2fc1c38 100644 (file)
@@ -316,7 +316,7 @@ Standard_OStream& TDataStd_IntegerArray::Dump (Standard_OStream& anOS) const
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
   anOS << sguid;
-  anOS << endl;
+  anOS << std::endl;
 
   // anOS <<"\nAttribute fields: ";
   //  anOS << TDF_Attribute::Dump(anOS);
index f651ba6..94a9973 100644 (file)
@@ -359,6 +359,6 @@ Standard_OStream& TDataStd_IntegerList::Dump (Standard_OStream& anOS) const
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
   anOS << sguid;
-  anOS << endl;
+  anOS << std::endl;
   return anOS;
 }
index b0e091a..19a4c78 100644 (file)
@@ -189,6 +189,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 << endl;
+  anOS << sguid << std::endl;
   return anOS;
 }
index 51c6038..82ce282 100644 (file)
@@ -316,7 +316,7 @@ Standard_OStream& TDataStd_RealArray::Dump (Standard_OStream& anOS) const
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
   anOS << sguid;
-  anOS << endl;
+  anOS << std::endl;
   return anOS;
 }
 
index 2f59dfd..15042ae 100644 (file)
@@ -357,6 +357,6 @@ Standard_OStream& TDataStd_RealList::Dump (Standard_OStream& anOS) const
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
   anOS << sguid;
-  anOS << endl;
+  anOS << std::endl;
   return anOS;
 }
index abf6fd4..707e66e 100644 (file)
@@ -327,6 +327,6 @@ Standard_OStream& TDataStd_ReferenceArray::Dump (Standard_OStream& anOS) const
   anOS << "\nReferenceArray: ";
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
-  anOS << sguid << endl;
+  anOS << sguid << std::endl;
   return anOS;
 }
index 6243d13..ef19775 100644 (file)
@@ -380,6 +380,6 @@ Standard_OStream& TDataStd_ReferenceList::Dump (Standard_OStream& anOS) const
   Standard_Character sguid[Standard_GUID_SIZE_ALLOC];
   myID.ToCString(sguid);
   anOS << sguid;
-  anOS << endl;
+  anOS << std::endl;
   return anOS;
 }
index 1316ff4..e4bcb98 100644 (file)
@@ -684,6 +684,6 @@ Standard_OStream& TDataStd_TreeNode::Dump (Standard_OStream& anOS) const
     anOS<<"  Last=";
     if (!myLast->Label().IsNull()) myLast->Label().EntryDump(anOS);
   }
-  anOS<<endl;
+  anOS<<std::endl;
   return anOS;
 }
index 2cef0c0..1b7433b 100644 (file)
@@ -300,15 +300,15 @@ PCDM_ReaderStatus TDocStd_Application::Open(const TCollection_ExtendedString& pa
 //    status = GetRetrieveStatus();
     if (!MessageDriver().IsNull()) {
 //      Standard_SStream aMsg;
-//      aMsg << Standard_Failure::Caught() << endl;
-//      cout << "TDocStd_Application::Open(): " << aMsg.rdbuf()->str() << endl;
+//      aMsg << Standard_Failure::Caught() << std::endl;
+//      std::cout << "TDocStd_Application::Open(): " << aMsg.rdbuf()->str() << std::endl;
       TCollection_ExtendedString aString (anException.GetMessageString());
       MessageDriver()->Send(aString.ToExtString(), Message_Fail);
     }
   }
   status = GetRetrieveStatus();
 #ifdef OCCT_DEBUG
-  cout<<"TDocStd_Application::Open(): The status = "<<status<<endl;
+  std::cout<<"TDocStd_Application::Open(): The status = "<<status<<std::endl;
 #endif
   return status;
 }
@@ -378,7 +378,7 @@ PCDM_StoreStatus TDocStd_Application::SaveAs(const Handle(TDocStd_Document)& D,c
   if(storer.StoreStatus() == PCDM_SS_OK)
     D->SetSaved();
 #ifdef OCCT_DEBUG
-  cout<<"TDocStd_Application::SaveAs(): The status = "<<storer.StoreStatus()<<endl;
+  std::cout<<"TDocStd_Application::SaveAs(): The status = "<<storer.StoreStatus()<<std::endl;
 #endif
   return storer.StoreStatus();
 }
@@ -449,7 +449,7 @@ PCDM_StoreStatus TDocStd_Application::Save (const Handle(TDocStd_Document)& D) {
     status = PCDM_SS_Failure;
   }
 #ifdef OCCT_DEBUG
-  cout<<"TDocStd_Application::Save(): The status = "<<status<<endl;
+  std::cout<<"TDocStd_Application::Save(): The status = "<<status<<std::endl;
 #endif
   return status;
 }
index a93f59b..498fac8 100644 (file)
@@ -80,7 +80,7 @@ public:
   //! by the application constructor
   Standard_EXPORT Standard_Boolean IsDriverLoaded() const;
 
-  //! Redefines message driver, by default outputs to cout.
+  //! Redefines message driver, by default outputs to std::cout.
   Standard_EXPORT virtual Handle(Message_Messenger) MessageDriver() Standard_OVERRIDE;
   
   //! Returns resource manager defining supported persistent formats.
@@ -215,7 +215,7 @@ public:
   //! Example:
   //! Standard_Integer insession = A->IsInSession(aDoc);
   //! if (insession > 0) {
-  //! cout << "document " << insession << " is already in session" << endl;
+  //! std::cout << "document " << insession << " is already in session" << std::endl;
   //! return 0;
   //! }
   Standard_EXPORT Standard_Integer IsInSession (const TCollection_ExtendedString& path) const;
index 507bcc1..99f3a29 100644 (file)
@@ -250,7 +250,7 @@ void TDocStd_Document::NewCommand()
   OpenTransaction();
 
 #ifdef OCCT_DEBUG_TRANS
-  cout<<"End NewCommand"<<endl;
+  std::cout<<"End NewCommand"<<std::endl;
 #endif
 }
 
@@ -574,12 +574,12 @@ Standard_Boolean TDocStd_Document::Undo()
     // Apply the Undo
     // should test the applicability before.
 #ifdef OCCT_DEBUG_DELTA
-    cout<<"DF before Undo =================================="<<endl; TDF_Tool::DeepDump(cout,myData);
+    std::cout<<"DF before Undo =================================="<<std::endl; TDF_Tool::DeepDump(std::cout,myData);
 #endif
     Handle(TDF_Delta) D = myData->Undo(myUndos.Last(),Standard_True);
     D->SetName(myUndos.Last()->Name());
 #ifdef OCCT_DEBUG_DELTA
-    cout<<"DF after Undo =================================="<<endl; TDF_Tool::DeepDump(cout,myData);
+    std::cout<<"DF after Undo =================================="<<std::endl; TDF_Tool::DeepDump(std::cout,myData);
 #endif
     // Push the redo
     myRedos.Prepend(D);
@@ -633,12 +633,12 @@ Standard_Boolean TDocStd_Document::Redo()
 
     // Apply the Redo
 #ifdef OCCT_DEBUG_DELTA
-    cout<<"DF before Redo =================================="<<endl; TDF_Tool::DeepDump(cout,myData);
+    std::cout<<"DF before Redo =================================="<<std::endl; TDF_Tool::DeepDump(std::cout,myData);
 #endif
     Handle(TDF_Delta) D = myData->Undo(myRedos.First(),Standard_True);
     D->SetName(myRedos.First()->Name());
 #ifdef OCCT_DEBUG_DELTA
-    cout<<"DF after Redo =================================="<<endl; TDF_Tool::DeepDump(cout,myData);
+    std::cout<<"DF after Redo =================================="<<std::endl; TDF_Tool::DeepDump(std::cout,myData);
 #endif
     // Push the redo of the redo as an undo (got it !)
     myUndos.Append(D);
index 73ea679..8780603 100644 (file)
@@ -104,9 +104,9 @@ void TDocStd_MultiTransactionManager::Redo() {
 void TDocStd_MultiTransactionManager::OpenCommand() {
   if (myOpenTransaction) {
 #ifdef OCCT_DEBUG
-    cout << "TDocStd_MultiTransactionManager::OpenCommand(): "
+    std::cout << "TDocStd_MultiTransactionManager::OpenCommand(): "
             "Can't start new application transaction while a "
-            "previous one is not commited or aborted" << endl;
+            "previous one is not commited or aborted" << std::endl;
 #endif
     throw Standard_Failure("Can't start new application transaction"
                             "while a previous one is not commited or aborted");
@@ -189,7 +189,7 @@ void TDocStd_MultiTransactionManager::DumpTransaction(Standard_OStream& anOS) co
 {
   Standard_Integer i;
   if(myDocuments.Length() == 0)
-    anOS << "Manager is empty" << endl;
+    anOS << "Manager is empty" << std::endl;
   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 "  << endl;
+    anOS << ") in the manager "  << std::endl;
 
     if(myIsNestedTransactionMode)
-      anOS << "Nested transaction mode is on" << endl;
+      anOS << "Nested transaction mode is on" << std::endl;
     else
-      anOS << "Nested transaction mode is off" << endl;
+      anOS << "Nested transaction mode is off" << std::endl;
 
-    anOS << " " << endl;
+    anOS << " " << std::endl;
   }
 
   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"<<endl;
+      anOS<<"  < Last action"<<std::endl;
     } else {
-      anOS<<endl;
+      anOS<<std::endl;
     }
   }
   for (i = 1; i <= myRedos.Length(); i++) {
     Handle(TDocStd_ApplicationDelta) delta = myRedos.Value(i);
     anOS<<" Redo: ";
     delta->Dump(anOS);
-    anOS<<endl;
+    anOS<<std::endl;
   }
 }
 
index 6f1784e..58f64d6 100644 (file)
@@ -294,7 +294,7 @@ void TFunction_Iterator::SetStatus(const TDF_Label& func,
 //=======================================================================
 Standard_OStream& TFunction_Iterator::Dump (Standard_OStream& anOS) const
 {  
-  anOS << "Functions:" << endl ;
+  anOS << "Functions:" << std::endl ;
 
   if (myCurrent.IsEmpty())
     return anOS;
@@ -345,7 +345,7 @@ Standard_OStream& TFunction_Iterator::Dump (Standard_OStream& anOS) const
 
     fIterator.Next();
     
-    anOS << endl;
+    anOS << std::endl;
   }
 
   // Recover the status of functions
index 81d197a..448088b 100644 (file)
@@ -300,24 +300,24 @@ Standard_OStream& TFunction_Logbook::Dump(Standard_OStream& stream) const
   TDF_MapIteratorOfLabelMap itr;
   TCollection_AsciiString as;
   
-  stream<<"Done = "<<isDone<<endl;
-  stream<<"Touched labels: "<<endl;
+  stream<<"Done = "<<isDone<<std::endl;
+  stream<<"Touched labels: "<<std::endl;
   for (itr.Initialize(myTouched); itr.More(); itr.Next())
   {
     TDF_Tool::Entry(itr.Key(), as);
-    stream<<as<<endl;
+    stream<<as<<std::endl;
   }
-  stream<<"Impacted labels: "<<endl;
+  stream<<"Impacted labels: "<<std::endl;
   for (itr.Initialize(myImpacted); itr.More(); itr.Next())
   {
     TDF_Tool::Entry(itr.Key(), as);
-    stream<<as<<endl;
+    stream<<as<<std::endl;
   }  
-  stream<<"Valid labels: "<<endl;
+  stream<<"Valid labels: "<<std::endl;
   for (itr.Initialize(myValid); itr.More(); itr.Next())
   {
     TDF_Tool::Entry(itr.Key(), as);
-    stream<<as<<endl;
+    stream<<as<<std::endl;
   }  
 
   return stream;
index d4a0bc1..98d607b 100644 (file)
@@ -113,7 +113,7 @@ static void SubstituteShape(const TopoDS_Shape& oldShape,
                            TNaming_DataMapOfShapePtrRefShape& amap) 
 {
   if (oldShape.IsSame(newShape)) {
-    cout <<"import_tool::Substitute : oldShape IsSame newShape"<<endl;
+    std::cout <<"import_tool::Substitute : oldShape IsSame newShape"<<std::endl;
   }
 
   if (!amap.IsBound(oldShape)) {
@@ -725,7 +725,7 @@ Standard_OStream& TNaming::Print (const TDF_Label& ACCESS,  Standard_OStream& s)
   Handle(TNaming_UsedShapes) US;
   if (!ACCESS.Root().FindAttribute(TNaming_UsedShapes::GetID(), US)) {
 #ifdef OCCT_DEBUG
-    cout<<"TNaming::Print(US): Bad access"<<endl;
+    std::cout<<"TNaming::Print(US): Bad access"<<std::endl;
 #endif
     return s;
   }
@@ -747,9 +747,9 @@ static void BuildMapIn(const TopoDS_Shape& Context, const TopAbs_ShapeEnum StopT
   for (TopExp_Explorer exp(Context,aType); exp.More(); exp.Next()) {
 #ifdef OCCT_DEBUG
     if(!Map.Bind(exp.Current(), Context))
-      cout << "Not bind = " <<exp.Current().ShapeType() <<endl; 
+      std::cout << "Not bind = " <<exp.Current().ShapeType() <<std::endl; 
     else 
-      cout <<"Bind = " <<exp.Current().ShapeType() << " to Context = " <<Context.ShapeType()<<endl;
+      std::cout <<"Bind = " <<exp.Current().ShapeType() << " to Context = " <<Context.ShapeType()<<std::endl;
 #else
     Map.Bind(exp.Current(), Context);
 #endif
@@ -763,7 +763,7 @@ static void BuildMapIn(const TopoDS_Shape& Context, const TopAbs_ShapeEnum StopT
     for(;it.More();it.Next()) {
       if(it.Value().Orientation() != TopAbs_FORWARD && it.Value().Orientation() != TopAbs_REVERSED) {
        Map.Bind(it.Value(), Context);
-       //cout << "INTERNAL || EXTERNAL Orientation found" <<endl;
+       //std::cout << "INTERNAL || EXTERNAL Orientation found" <<std::endl;
       }
     }
   }
@@ -780,7 +780,7 @@ static void BuildMapC0(const TopoDS_Shape& Context, const TopoDS_Shape& C0, cons
     const TopoDS_Shape& aKey = anIt.Value();
 #ifdef OCCT_DEBUG
     if(!Map.Bind(aKey, C0)) 
-      cout << "Not bind = " <<aKey.ShapeType() <<endl;      
+      std::cout << "Not bind = " <<aKey.ShapeType() <<std::endl;      
 #else
     Map.Bind(aKey, C0);
 #endif
@@ -807,7 +807,7 @@ static void BuildMap(const TopoDS_Shape& Context, const TopAbs_ShapeEnum StopTyp
     const TopoDS_Shape& aKey = anIt.Value();
 #ifdef OCCT_DEBUG
     if(!Map.Bind(aKey, Context)) 
-      cout << "Not bind = " <<aKey.ShapeType() <<endl;      
+      std::cout << "Not bind = " <<aKey.ShapeType() <<std::endl;      
 #else
     Map.Bind(aKey, Context);
 #endif
@@ -831,8 +831,8 @@ TopoDS_Shape TNaming::FindUniqueContext(const TopoDS_Shape& Selection, const Top
 #ifdef OCCT_DEBUG
   TopTools_DataMapIteratorOfDataMapOfOrientedShapeShape it (aMap);
   for (;it.More();it.Next()) {
-    cout <<"FindUniqueContext: Key - " <<it.Key().ShapeType()<< " " << it.Key().TShape().get() <<" OR = " <<it.Key().Orientation() <<
-      "  Context - " << it.Value().ShapeType() << "  " << it.Value().TShape().get()  << " OR = " <<it.Value().Orientation() <<endl;
+    std::cout <<"FindUniqueContext: Key - " <<it.Key().ShapeType()<< " " << it.Key().TShape().get() <<" OR = " <<it.Key().Orientation() <<
+      "  Context - " << it.Value().ShapeType() << "  " << it.Value().TShape().get()  << " OR = " <<it.Value().Orientation() <<std::endl;
   }
 #endif
   if(aMap.IsBound(Selection))
@@ -897,7 +897,7 @@ TopoDS_Shape TNaming::FindUniqueContextSet(const TopoDS_Shape& Selection, const
        }
        if(n == 1) {
 #ifdef OCCT_DEBUG_FSET
-         cout << "FindUniqueContextSet: n = " << n <<endl;
+         std::cout << "FindUniqueContextSet: n = " << n <<std::endl;
 #endif
          return aCmp;
        }
index 9042b30..75da8c2 100644 (file)
@@ -132,14 +132,14 @@ void TNaming_CopyShape::Translate( const TopoDS_Shape& aShape,
   TrTool->UpdateShape(aShape,aResult);
 // #ifdef OCCT_DEBUG
 //     if(fShar) {
-//       cout << "=== Shareable shape ===" << endl;
-//       cout << "aShape Type = " <<(aShape.TShape())->DynamicType() << endl;
+//       std::cout << "=== Shareable shape ===" << std::endl;
+//       std::cout << "aShape Type = " <<(aShape.TShape())->DynamicType() << std::endl;
 //       if(aShape.Orientation() == aResult.Orientation())
-//     cout<<"\tSource and result shapes have the same Orientation"<< endl;
+//     std::cout<<"\tSource and result shapes have the same Orientation"<< std::endl;
 //       if((aShape.Location().IsEqual(aResult.Location())))
-//     cout <<"\tSource and result shapes have the same Locations" << endl;
+//     std::cout <<"\tSource and result shapes have the same Locations" << std::endl;
 //       if((aShape.IsSame(aResult)))
-//      cout <<"\tShapes arew the same (i.e. the same TShape and the same Locations)" << endl;
+//      std::cout <<"\tShapes arew the same (i.e. the same TShape and the same Locations)" << std::endl;
 //     }           
 // #endif
 }
index c1b8b0b..6b5e5e3 100644 (file)
@@ -39,9 +39,9 @@
 /*static void ModDbgTools_Write(const TopoDS_Shape& shape,
                      const Standard_CString filename) 
 {
-  ofstream save;
+  std::ofstream save;
   save.open(filename);
-  save << "DBRep_DrawableShape" << endl << endl;
+  save << "DBRep_DrawableShape" << std::endl << std::endl;
   if(!shape.IsNull()) BRepTools::Write(shape, save);
   save.close();
 }
@@ -58,10 +58,10 @@ static void ModDbgTools_WriteCurrentShape(const Handle(TNaming_NamedShape) & NS)
        ModDbgTools_Write(Sh, Entry.ToCString());
       }
       else 
-       cout << "ModDbgTools::Write>>> TopoDS_Shape IS NULL on Entry = "<< entry << endl;
+       std::cout << "ModDbgTools::Write>>> TopoDS_Shape IS NULL on Entry = "<< entry << std::endl;
     }
   else
-    cout << "ModDbgTools::Write>>>  CurrentShape of TNaming_NamedShape IS NULL on Entry = "<< entry << endl;
+    std::cout << "ModDbgTools::Write>>>  CurrentShape of TNaming_NamedShape IS NULL on Entry = "<< entry << std::endl;
 }*/
 #endif
 
@@ -117,7 +117,7 @@ void TNaming_Identifier::Init(const TopoDS_Shape&     Context)
 #ifdef OCCT_DEBUG_IDF
   TCollection_AsciiString entry;
   TDF_Tool::Entry(NS->Label(), entry);
-  cout << "Identifier:: (S) Label = " << entry <<endl;
+  std::cout << "Identifier:: (S) Label = " << entry <<std::endl;
 #endif
   //-------------------------------------
   // S est New dans un NamedShape
@@ -309,7 +309,7 @@ Standard_Boolean IsImported(const Handle(TNaming_NamedShape)& NS)
   it.Next();  if (!it.More()) return 0;
   //plus d un shape.
 #ifdef OCCT_DEBUG
-  cout <<"WARNING IMPORTED"<<endl;
+  std::cout <<"WARNING IMPORTED"<<std::endl;
 #endif
   return 1;
 }
index 6868c7b..5fb2296 100644 (file)
@@ -52,7 +52,7 @@ void LPrintEntry(const TDF_Label&       label)
 {
   TCollection_AsciiString entry;
   TDF_Tool::Entry(label, entry);
-  cout << "LabelEntry = "<< entry << endl;
+  std::cout << "LabelEntry = "<< entry << std::endl;
 }
 static void LWrite(const TopoDS_Shape& shape,
                      const Standard_CString filename) 
@@ -70,10 +70,10 @@ static void LWrite(const TopoDS_Shape& shape,
       *p = '-';
     p++;
   }
-  ofstream save (buf);
+  std::ofstream save (buf);
   if(!save) 
-    cout << "File " << buf << " was not created: rdstate = " << save.rdstate() << endl;
-  save << "DBRep_DrawableShape" << endl << endl;
+    std::cout << "File " << buf << " was not created: rdstate = " << save.rdstate() << std::endl;
+  save << "DBRep_DrawableShape" << std::endl << std::endl;
   if(!shape.IsNull()) BRepTools::Write(shape, save);
   save.close();
 }
@@ -121,7 +121,7 @@ void TNaming_Localizer::FindFeaturesInAncestors
   
   if (Anc.Contains(S)) {
 #ifdef OCCT_DEBUG_SC
-    cout <<"Localizer: S in ancestor" <<endl;
+    std::cout <<"Localizer: S in ancestor" <<std::endl;
 #endif
     const TopTools_ListOfShape& L = Anc.FindFromKey(S);
     TopTools_ListIteratorOfListOfShape itL(L);
@@ -140,7 +140,7 @@ void TNaming_Localizer::FindFeaturesInAncestors
       }
       else {
 #ifdef OCCT_DEBUG
-       cout <<" TNaming_Localization : Failure in the research of ancetres in TDF"<<endl;
+       std::cout <<" TNaming_Localization : Failure in the research of ancetres in TDF"<<std::endl;
 #endif
       }
     }
@@ -148,7 +148,7 @@ void TNaming_Localizer::FindFeaturesInAncestors
   }
   else {
 #ifdef OCCT_DEBUG
-    cout <<" TNaming_Localization : S n est pas dans le solide"<<endl;//S is not in the solid
+    std::cout <<" TNaming_Localization : S n est pas dans le solide"<<std::endl;//S is not in the solid
 #endif
   }
 }
@@ -216,7 +216,7 @@ const TopTools_IndexedDataMapOfShapeListOfShape& TNaming_Localizer::Ancestors
 
       TopExp_Explorer exp(In,TS);
 #ifdef OCCT_DEBUG
-      if (!exp.More())   cout <<" TNaming_Localization : Construction ancetres impossible"<<endl;
+      if (!exp.More())   std::cout <<" TNaming_Localization : Construction ancetres impossible"<<std::endl;
 #endif
       const TopoDS_Shape& SS = exp.Current();
       
@@ -235,7 +235,7 @@ const TopTools_IndexedDataMapOfShapeListOfShape& TNaming_Localizer::Ancestors
        }
        else {
 #ifdef OCCT_DEBUG
-         cout <<" TNaming_Localization : Construction ancetres impossible"<<endl;
+         std::cout <<" TNaming_Localization : Construction ancetres impossible"<<std::endl;
 #endif
        }
       }
@@ -259,7 +259,7 @@ const TopTools_IndexedDataMapOfShapeListOfShape& TNaming_Localizer::Ancestors
   }
   else {
 #ifdef OCCT_DEBUG
-    cout <<" TNaming_Localization : Construction ancetres impossible"<<endl;
+    std::cout <<" TNaming_Localization : Construction ancetres impossible"<<std::endl;
 #endif
   }
   return myAncestors.First();
@@ -283,7 +283,7 @@ Standard_Boolean TNaming_Localizer::IsNew (const TopoDS_Shape&    S,
     }
   }
 #ifdef OCCT_DEBUG
-  cout <<"TNaming_Localizer:IsNewInLab : Shape n est pas dans le Label."<<endl;
+  std::cout <<"TNaming_Localizer:IsNewInLab : Shape n est pas dans le Label."<<std::endl;
 #endif
   return Standard_False;
 }
@@ -337,7 +337,7 @@ void TNaming_Localizer::GoBack (const TopoDS_Shape&         S,
         }
         else {
 #ifdef OCCT_DEBUG
-          cout <<"TNaming_Localizer: Shape modifie sans avoir ete cree"<<endl;
+          std::cout <<"TNaming_Localizer: Shape modifie sans avoir ete cree"<<std::endl;
 #endif
         }
       }
@@ -557,7 +557,7 @@ void TNaming_Localizer::FindNeighbourg (const TopoDS_Shape&      Sol,
 // szy 30.03.10 to process case when Candidate is of type Vertex
 //  if (TA == TopAbs_VERTEX) {
 //#ifdef OCCT_DEBUG
-//    cout <<"construction voisins des vertex impossible"<<endl;
+//    std::cout <<"construction voisins des vertex impossible"<<std::endl;
 //#endif
 //    return;
 //  }
@@ -761,7 +761,7 @@ void TNaming_Localizer::FindShapeContext (const Handle(TNaming_NamedShape)& NS,
          if (exp.Current().IsSame(S)) {
            found = 1;
 #ifdef OCCT_DEBUG_SC
-           cout << "Find Context shape = " << SC.TShape() << "ShapeType = " << SC.ShapeType() <<endl;
+           std::cout << "Find Context shape = " << SC.TShape() << "ShapeType = " << SC.ShapeType() <<std::endl;
 #endif     
            break;
          }
@@ -775,7 +775,7 @@ void TNaming_Localizer::FindShapeContext (const Handle(TNaming_NamedShape)& NS,
     Handle(TNaming_NamedShape) aNS = TNaming_Tool::NamedShape(SC,Father);
     if (!aNS.IsNull()) {
 #ifdef OCCT_DEBUG_SC
-      cout << "FindShapeContext: ";LPrintEntry(aNS->Label());
+      std::cout << "FindShapeContext: ";LPrintEntry(aNS->Label());
 #endif
       if (aNS->Label().Father().FindAttribute(TNaming_NamedShape::GetID(),aNS)) {
        TopoDS_Shape aShape;
index a6f7a4e..9d7ec9d 100644 (file)
@@ -91,17 +91,17 @@ void PrintEntry(const TDF_Label&       label)
 {
   TCollection_AsciiString entry;
   TDF_Tool::Entry(label, entry);
-  cout << "LabelEntry = "<< entry << endl;
+  std::cout << "LabelEntry = "<< entry << std::endl;
 }
 //=======================================================================
 void PrintEntries(const TDF_LabelMap& map)
 {
-  cout << "=== Labels Map ===" <<endl;
+  std::cout << "=== Labels Map ===" <<std::endl;
   TCollection_AsciiString entry;
   TDF_MapIteratorOfLabelMap it(map);
   for(;it.More();it.Next()) {
     TDF_Tool::Entry(it.Key(), entry);
-      cout << "LabelEntry = "<< entry << endl;
+      std::cout << "LabelEntry = "<< entry << std::endl;
     }
 }
 #ifdef OCCT_DEBUG_DBGTOOLS_WRITE
@@ -118,10 +118,10 @@ static void DbgTools_Write(const TopoDS_Shape& shape,
       *p = '-';
     p++;
   }
-  ofstream save (buf);
+  std::ofstream save (buf);
   if(!save) 
-    cout << "File " << buf << " was not created: rdstate = " << save.rdstate() << endl;
-  save << "DBRep_DrawableShape" << endl << endl;
+    std::cout << "File " << buf << " was not created: rdstate = " << save.rdstate() << std::endl;
+  save << "DBRep_DrawableShape" << std::endl << std::endl;
   if(!shape.IsNull()) BRepTools::Write(shape, save);
   save.close();
 }
@@ -169,7 +169,7 @@ static Standard_Boolean ValidArgs(const TNaming_ListOfNamedShape& Args)
     const Handle(TNaming_NamedShape)& aNS = it.Value();
     if(aNS.IsNull()) {
 #ifdef OCCT_DEBUG_ARG 
-      cout << "ValidArgs:: NS (Naming argument) is NULL" <<endl;
+      std::cout << "ValidArgs:: NS (Naming argument) is NULL" <<std::endl;
 #endif 
       return Standard_False;
     }
@@ -178,7 +178,7 @@ static Standard_Boolean ValidArgs(const TNaming_ListOfNamedShape& Args)
 #ifdef OCCT_DEBUG_ARG
        TCollection_AsciiString entry;
        TDF_Tool::Entry(aNS->Label(), entry);
-       cout << "ValidArgs:: Empty NS, Label = " << entry <<endl;
+       std::cout << "ValidArgs:: Empty NS, Label = " << entry <<std::endl;
 #endif 
       return Standard_False;
     }
@@ -187,7 +187,7 @@ static Standard_Boolean ValidArgs(const TNaming_ListOfNamedShape& Args)
 #ifdef OCCT_DEBUG_ARG 
          TCollection_AsciiString entry;
          TDF_Tool::Entry(aNS->Label(), entry);
-         cout << "ValidArgs::Not valid NS Label = " << entry <<endl;
+         std::cout << "ValidArgs::Not valid NS Label = " << entry <<std::endl;
 #endif 
          return Standard_False; 
        }
@@ -580,7 +580,7 @@ static void SearchModifUntil (const TDF_LabelMap&               /*Valid*/,
          theMS.Add(S);
          found = Standard_True;
 #ifdef OCCT_DEBUG_MODUN
-         cout << aNam2 << " is Same with " << aNam1 <<endl;
+         std::cout << aNam2 << " is Same with " << aNam1 <<std::endl;
 #endif
          break;
        }
@@ -616,7 +616,7 @@ static Standard_Boolean ModifUntil (const TDF_Label&                  L,
   TNaming_NamingTool::BuildDescendants (Stop, Forbiden); // fills Forbidden from Stop
 
 #ifdef OCCT_DEBUG_GEN  
-  cout <<"Regenerating ModifUntil => ";
+  std::cout <<"Regenerating ModifUntil => ";
   PrintEntry(L);
   DbgTools_WriteNSOnLabel(Args.Last(), "ModifUntil-");
  
@@ -635,7 +635,7 @@ static Standard_Boolean ModifUntil (const TDF_Label&                  L,
 #ifdef OCCT_DEBUG_GEN  
     TCollection_AsciiString aName = aNam + ++i + ext;
     DbgTools_Write(S, aName.ToCString()) ;
-    cout << aName.ToCString() << " TS = " << S.TShape()->This() <<endl;
+    std::cout << aName.ToCString() << " TS = " << S.TShape()->This() <<std::endl;
 #endif
   }
   return Standard_True;
@@ -715,17 +715,17 @@ static Standard_Boolean Intersection (const TDF_Label&                  L,
     DbgTools_Write(Stop->Get(), "Ints_Stop.brep");
     PrintEntry(Stop->Label());
   }
-  cout <<"Ints: ShapeType = " << ShapeType << endl;
-  cout <<"Argument 1 at ";
+  std::cout <<"Ints: ShapeType = " << ShapeType << std::endl;
+  std::cout <<"Argument 1 at ";
   PrintEntry(it.Value()->Label());
 #endif 
 
   TNaming_NamingTool::BuildDescendants (Stop, Forbiden); // <==<1>
 
 #ifdef OCCT_DEBUG_INT
-  cout << "Intersection:: Valid Map: "<<endl;
+  std::cout << "Intersection:: Valid Map: "<<std::endl;
   PrintEntries(Valid);
-  cout << "Intersection:: Forbidden Map: "<<endl;
+  std::cout << "Intersection:: Forbidden Map: "<<std::endl;
   PrintEntries(Forbiden);
 #endif
   TopTools_ListOfShape aListOfAnc;
@@ -750,7 +750,7 @@ static Standard_Boolean Intersection (const TDF_Label&                  L,
 #ifdef OCCT_DEBUG_INT
     TCollection_AsciiString aName = aNam + i++ + ext;      
     DbgTools_Write(CS, aName.ToCString()) ;
-    cout <<"Argument " << i << " at ";
+    std::cout <<"Argument " << i << " at ";
     PrintEntry(it.Value()->Label());
 #endif  
 
@@ -791,7 +791,7 @@ static Standard_Boolean Intersection (const TDF_Label&                  L,
       }      
     }
 #ifdef OCCT_DEBUG_INT
-    cout <<"Kept: indxE = " << indxE  <<" maxENum = " << nbE << " indxW = " <<indxW << " nbW = " <<nbW<<endl;
+    std::cout <<"Kept: indxE = " << indxE  <<" maxENum = " << nbE << " indxW = " <<indxW << " nbW = " <<nbW<<std::endl;
 #endif      
     Standard_Integer aCaseW(0);
     Standard_Integer aNbW = aS.NbChildren();
@@ -956,7 +956,7 @@ static Standard_Boolean Union (const TDF_Label&                  L,
     ii++;
     TCollection_AsciiString aNm = Nam + entry + "_" + ii + ".brep";
     DbgTools_Write(CS, aNm.ToCString());
-    cout <<"Arg: Entry = " <<entry <<"  TShape = " << CS.TShape() <<endl;
+    std::cout <<"Arg: Entry = " <<entry <<"  TShape = " << CS.TShape() <<std::endl;
 #endif
   }
 
@@ -974,7 +974,7 @@ static Standard_Boolean Union (const TDF_Label&                  L,
 #ifdef OCCT_DEBUG_UNN 
       TCollection_AsciiString anEntry;
       TDF_Tool::Entry(ContextLabel, anEntry);
-      cout << "UNION: Context Label = " <<  anEntry << endl;
+      std::cout << "UNION: Context Label = " <<  anEntry << std::endl;
       DbgTools_Write(aContext, "Union_Context.brep");
       TCollection_AsciiString aN ("aMap_");
       TopTools_MapIteratorOfMapOfShape it(S.Map());
@@ -989,17 +989,17 @@ static Standard_Boolean Union (const TDF_Label&                  L,
     for(;anExpl.More(); anExpl.Next()) 
       aList.Append(anExpl.Current());
 #ifdef OCCT_DEBUG_UNN
-    cout <<"UNION: ShapeType = " << ShapeType << " List ext = " << aList.Extent()<<endl;
+    std::cout <<"UNION: ShapeType = " << ShapeType << " List ext = " << aList.Extent()<<std::endl;
     TopAbs_ShapeEnum aTyp = TopAbs_SHAPE;
     TopTools_MapIteratorOfMapOfShape it1 (S.Map());
     for (int i=1;it1.More();it1.Next(),i++) {
-      cout << "Map("<<i<<"): TShape = " << it1.Key().TShape() << " Orient = " << it1.Key().Orientation() <<endl;
+      std::cout << "Map("<<i<<"): TShape = " << it1.Key().TShape() << " Orient = " << it1.Key().Orientation() <<std::endl;
       aTyp = it1.Key().ShapeType();
     }
     
     TopExp_Explorer exp(aContext, aTyp);
     for(int i =1;exp.More();exp.Next(), i++) {
-     cout << "Context("<<i<<"): TShape = " << exp.Current().TShape() << " Orient = " << exp.Current().Orientation() <<endl;
+     std::cout << "Context("<<i<<"): TShape = " << exp.Current().TShape() << " Orient = " << exp.Current().Orientation() <<std::endl;
     }
            
 #endif
@@ -1026,8 +1026,8 @@ static Standard_Boolean Union (const TDF_Label&                  L,
   TNaming_Builder B(L);
 #ifdef OCCT_DEBUG_UNN
   if(!ContextLabel.IsNull()) {
-    if(found) cout << "UNION: Shape is found in Context" <<endl;
-    else cout << "UNION: Shape is NOT found in Context" <<endl;
+    if(found) std::cout << "UNION: Shape is found in Context" <<std::endl;
+    else std::cout << "UNION: Shape is NOT found in Context" <<std::endl;
   }
 #endif
   if(found) 
@@ -1134,7 +1134,7 @@ static Standard_Boolean  Generated (const TDF_Label&                L,
     aSelection = aNaming->GetName().Shape();
 #ifdef OCCT_DEBUG_GEN
   DbgTools_Write(aSelection,  "G_Selection.brep") ;
-  cout << "Generated::SearchModifUntil aMS.Extent() = " << aMS.Extent() <<endl;
+  std::cout << "Generated::SearchModifUntil aMS.Extent() = " << aMS.Extent() <<std::endl;
   DbgTools_Write(aMS, "SearchModifUntil_Result");
 #endif
    Handle(TNaming_NamedShape) anOldNS;
@@ -1214,11 +1214,11 @@ static Standard_Boolean  Generated (const TDF_Label&                L,
 #endif
       if(!aShape.IsNull()) found = Standard_True;
 #ifdef OCCT_DEBUG_GEN
-      cout << "Generated ==>aGenerators.Extent() = " <<aGenerators.Extent() <<" aMS.Extent()= " <<aMS.Extent()<<endl;
+      std::cout << "Generated ==>aGenerators.Extent() = " <<aGenerators.Extent() <<" aMS.Extent()= " <<aMS.Extent()<<std::endl;
 #endif
       if(found) {
 #ifdef OCCT_DEBUG_GEN
-      cout << "Generated ==> Shape is found!" <<endl;
+      std::cout << "Generated ==> Shape is found!" <<std::endl;
 #endif
        TopTools_ListOfShape aLM;
        Standard_Boolean aHas = Standard_False;
@@ -1226,7 +1226,7 @@ static Standard_Boolean  Generated (const TDF_Label&                L,
        if(aGenerators.Extent() != aMS.Extent()) { //missed generators
          aHas = Standard_True;//has lost generatos
 #ifdef OCCT_DEBUG_GEN
-      cout << "Generated ==> has lost generatos!" <<endl;
+      std::cout << "Generated ==> has lost generatos!" <<std::endl;
 #endif
          for (TNaming_ListIteratorOfListOfNamedShape itg(aGenerators); itg.More(); itg.Next()) {
            if(!aMS.Contains(itg.Value()->Get())) 
@@ -1263,9 +1263,9 @@ static Standard_Boolean  Generated (const TDF_Label&                L,
 //             if(it.Value().ShapeType() == TopAbs_EDGE) {
 //               const TopoDS_Shape& aV1 = TopExp::FirstVertex(TopoDS::Edge(it.Value()));
 //               const TopoDS_Shape& aV2 = TopExp::LastVertex(TopoDS::Edge(it.Value()));
-//               if(aShape.IsSame(aV1)) {aShape2 =  aV2;       cout << "##### => V2 " <<endl;break;}
+//               if(aShape.IsSame(aV1)) {aShape2 =  aV2;       std::cout << "##### => V2 " <<std::endl;break;}
 //               else 
-//                 if(aShape.IsSame(aV2)) {aShape2 =  aV1;     cout << "##### => V1 " <<endl;break;}
+//                 if(aShape.IsSame(aV2)) {aShape2 =  aV1;     std::cout << "##### => V1 " <<std::endl;break;}
 //             }         
 //           }
 //         }
@@ -1286,7 +1286,7 @@ static Standard_Boolean  Generated (const TDF_Label&                L,
     } else 
       {        //not found
 #ifdef OCCT_DEBUG_GEN
-       cout << "Generated ==> Shape is NOT found! Probably Compound will be built" <<endl;
+       std::cout << "Generated ==> Shape is NOT found! Probably Compound will be built" <<std::endl;
 #endif
 
        TopTools_ListIteratorOfListOfShape it2(aList2);
@@ -1368,9 +1368,9 @@ static Standard_Boolean  FilterByNeighbourgs (const TDF_Label&                L,
   TCollection_AsciiString aNam("Cand_");
   TCollection_AsciiString ext(".brep");
   DbgTools_WriteNSOnLabel(Cand, aNam.ToCString());  
-  cout << "Cand (Args.First()) Label = ";
+  std::cout << "Cand (Args.First()) Label = ";
   PrintEntry(Cand->Label());  
-  cout << "Valid Label map:" <<endl;
+  std::cout << "Valid Label map:" <<std::endl;
   PrintEntries(Valid);
 #endif
 
@@ -1380,7 +1380,7 @@ static Standard_Boolean  FilterByNeighbourgs (const TDF_Label&                L,
 #ifdef OCCT_DEBUG_FNB
   TCollection_AsciiString aNam2("SCand");
   DbgTools_Write(SCand, aNam2.ToCString());  
-  cout <<"SCand Extent = " << SCand.Extent() << " Expected ShapeType = " << ShapeType << endl;
+  std::cout <<"SCand Extent = " << SCand.Extent() << " Expected ShapeType = " << ShapeType << std::endl;
 #endif 
 
   //------------------------------------------------------------
@@ -1424,7 +1424,7 @@ static Standard_Boolean  FilterByNeighbourgs (const TDF_Label&                L,
     it.Next(); 
     Standard_Boolean Keep = 1;
 #ifdef OCCT_DEBUG_FNB
-    cout <<"Args number = " << Args.Extent() <<endl;
+    std::cout <<"Args number = " << Args.Extent() <<std::endl;
     i=1;
     aNam = "Boundaries";
 #endif
@@ -1489,7 +1489,7 @@ static const TopoDS_Shape FindSubShapeInAncestor(const TopoDS_Shape& Selection,
   for(;expl1.More(); expl1.Next()) {      
     if(expl1.Current().IsSame(Selection)) {
       i++;
-      cout <<"FindSubShape:  = " <<expl1.Current().ShapeType() << " TS = " <<expl1.Current().TShape() << endl;
+      std::cout <<"FindSubShape:  = " <<expl1.Current().ShapeType() << " TS = " <<expl1.Current().TShape() << std::endl;
       TCollection_AsciiString nam = SS + i + ".brep";
       DbgTools_Write(expl1.Current(), nam.ToCString());        
     }
@@ -1499,7 +1499,7 @@ static const TopoDS_Shape FindSubShapeInAncestor(const TopoDS_Shape& Selection,
     TopExp_Explorer anExpl(Context, Selection.ShapeType());
     for(;anExpl.More(); anExpl.Next()) {
 #ifdef OCCT_DEBUG_OR_AG
-      cout <<"FindSubShape:  = " <<anExpl.Current().ShapeType() << " TS = " <<anExpl.Current().TShape()->This() << endl;
+      std::cout <<"FindSubShape:  = " <<anExpl.Current().ShapeType() << " TS = " <<anExpl.Current().TShape()->This() << std::endl;
       DbgTools_Write(anExpl.Current(), "Orientation_Current.brep");
 #endif    
       if(anExpl.Current().IsSame(Selection)) 
@@ -1603,7 +1603,7 @@ static Standard_Boolean ORientation (const TDF_Label&                L,
   if(aSList.Extent() == 0) {
     const Handle(TNaming_NamedShape)& Anc = Args.Last();
 #ifdef OCCT_DEBUG_OR
-    cout << "### ORIENTATION: Ancestor ";
+    std::cout << "### ORIENTATION: Ancestor ";
     PrintEntry(Anc->Label());
 #endif
     MSC.Clear();
@@ -1623,7 +1623,7 @@ static Standard_Boolean ORientation (const TDF_Label&                L,
                CS = it.Value();
                found = Standard_True;
 #ifdef OCCT_DEBUG_OR
-               cout << "ORIENTATION => ORDER = " << i <<endl;
+               std::cout << "ORIENTATION => ORDER = " << i <<std::endl;
 #endif
                break;
              }
@@ -1634,8 +1634,8 @@ static Standard_Boolean ORientation (const TDF_Label&                L,
          CS =  FindSubShapeInAncestor(aShape, AS);
 // <=== end 21.10.2009
 #ifdef OCCT_DEBUG_OR
-       cout << "ORIENTATION: Selection TShape = " <<CS.TShape() <<" Orientation = " << CS.Orientation() <<endl;
-       cout << "ORIENTATION: Context ShapeType = "<<AS.ShapeType() << " TShape = " <<AS.TShape() <<endl;
+       std::cout << "ORIENTATION: Selection TShape = " <<CS.TShape() <<" Orientation = " << CS.Orientation() <<std::endl;
+       std::cout << "ORIENTATION: Context ShapeType = "<<AS.ShapeType() << " TShape = " <<AS.TShape() <<std::endl;
        DbgTools_Write(AS, "Orientation_Cnt.brep");
 #endif
        if(!CS.IsNull()) {
@@ -1741,7 +1741,7 @@ static Standard_Boolean WireIN(const TDF_Label&                L,
   if (aMapOfSh.Extent() != 1) return aResult;
   const TopoDS_Shape& aCF = aMapOfSh(1);
 #ifdef OCCT_DEBUG_WIN
-  cout <<"MS Extent = " <<MS.Extent() <<endl;
+  std::cout <<"MS Extent = " <<MS.Extent() <<std::endl;
   DbgTools_Write(aCF, "Context_Face.brep");
 #endif
   TNaming_Builder B(L);
@@ -1789,21 +1789,21 @@ static Standard_Boolean WireIN(const TDF_Label&                L,
       ii++;
       TCollection_AsciiString aNm = Nam + entry + "_" + ii + ".brep";
       DbgTools_Write(CS, aNm.ToCString());
-      cout <<"Arg: Entry = " <<entry <<"  TShape = " << CS.TShape() <<endl;
+      std::cout <<"Arg: Entry = " <<entry <<"  TShape = " << CS.TShape() <<std::endl;
 #endif
        }
 
 #ifdef OCCT_DEBUG_WIN
-    cout <<"WIREIN:  Internal Map ext = " << aSet.Map().Extent()<<endl;
+    std::cout <<"WIREIN:  Internal Map ext = " << aSet.Map().Extent()<<std::endl;
     TopTools_MapIteratorOfMapOfShape it1 (aSet.Map());
     for (int i=1;it1.More();it1.Next(),i++) {
-      cout << "Map("<<i<<"): TShape = " << it1.Key().TShape() << " Orient = " << it1.Key().Orientation() <<" Type = " <<
-                 it1.Key().ShapeType()<<endl;
+      std::cout << "Map("<<i<<"): TShape = " << it1.Key().TShape() << " Orient = " << it1.Key().Orientation() <<" Type = " <<
+                 it1.Key().ShapeType()<<std::endl;
     }
     
     TopExp_Explorer exp(aCF, TopAbs_EDGE);
     for(int i =1;exp.More();exp.Next(), i++) {
-     cout << "Context_Face("<<i<<"): TShape = " << exp.Current().TShape() << " Orient = " << exp.Current().Orientation() <<endl;
+     std::cout << "Context_Face("<<i<<"): TShape = " << exp.Current().TShape() << " Orient = " << exp.Current().Orientation() <<std::endl;
     }      
 #endif
 //end for edges
@@ -1813,7 +1813,7 @@ static Standard_Boolean WireIN(const TDF_Label&                L,
        if(!S.IsNull()) {
 #ifdef OCCT_DEBUG_WIN    
       DbgTools_Write(S, "WireIN_S.brep");
-      cout <<"WIREIN: ShapeType = " << S.ShapeType() << " TS = " << S.TShape()->This() <<endl;
+      std::cout <<"WIREIN: ShapeType = " << S.ShapeType() << " TS = " << S.TShape()->This() <<std::endl;
 #endif       
       if(S.ShapeType() == TopAbs_WIRE) {
                TopTools_MapOfShape aView;
@@ -1877,7 +1877,7 @@ static Standard_Boolean ShellIN(const TDF_Label&                L,
   if (aMapOfSh.Extent() != 1) return aResult;
   const TopoDS_Shape& aCSO = aMapOfSh(1);
 #ifdef OCCT_DEBUG_SHELL
-  cout <<"MS Extent = " <<MS.Extent() <<endl;
+  std::cout <<"MS Extent = " <<MS.Extent() <<std::endl;
   DbgTools_Write(aCSO, "Context_Solid.brep");
 #endif
   TNaming_Builder B(L);
@@ -1888,7 +1888,7 @@ static Standard_Boolean ShellIN(const TDF_Label&                L,
       B.Select(anOuterShell, anOuterShell);
          aResult = Standard_True;
 #ifdef OCCT_DEBUG_SHELL      
-         cout << "Outer Shell case" <<endl;
+         std::cout << "Outer Shell case" <<std::endl;
       PrintEntry(L);
          DbgTools_Write(anOuterShell, "ShellOut_S.brep");
          TopoDS_Iterator it (aCSO);
@@ -1934,21 +1934,21 @@ static Standard_Boolean ShellIN(const TDF_Label&                L,
       ii++;
       TCollection_AsciiString aNm = Nam + entry + "_" + ii + ".brep";
       DbgTools_Write(CS, aNm.ToCString());
-      cout <<"Arg: Entry = " <<entry <<"  TShape = " << CS.TShape() <<endl;
+      std::cout <<"Arg: Entry = " <<entry <<"  TShape = " << CS.TShape() <<std::endl;
 #endif
        }
 
 #ifdef OCCT_DEBUG_SHELL
-    cout <<"SHELLIN:  Internal Map ext = " << aSet.Map().Extent()<<endl;
+    std::cout <<"SHELLIN:  Internal Map ext = " << aSet.Map().Extent()<<std::endl;
     TopTools_MapIteratorOfMapOfShape it1 (aSet.Map());
     for (int i=1;it1.More();it1.Next(),i++) {
-      cout << "Map("<<i<<"): TShape = " << it1.Key().TShape() << " Orient = " << it1.Key().Orientation() <<" Type = " <<
-                 it1.Key().ShapeType()<<endl;
+      std::cout << "Map("<<i<<"): TShape = " << it1.Key().TShape() << " Orient = " << it1.Key().Orientation() <<" Type = " <<
+                 it1.Key().ShapeType()<<std::endl;
     }
     
     TopExp_Explorer exp(aCSO, TopAbs_FACE);
     for(int i = 1;exp.More();exp.Next(), i++) {
-     cout << "Context_Solid("<<i<<"): TShape = " << exp.Current().TShape() << " Orient = " << exp.Current().Orientation() <<endl;
+     std::cout << "Context_Solid("<<i<<"): TShape = " << exp.Current().TShape() << " Orient = " << exp.Current().Orientation() <<std::endl;
     }      
 #endif
 //end for faces
@@ -1958,7 +1958,7 @@ static Standard_Boolean ShellIN(const TDF_Label&                L,
        if(!S.IsNull()) {
 #ifdef OCCT_DEBUG_SHELL    
       DbgTools_Write(S, "ShellIN_S.brep");
-      cout <<"SHELLIN: ShapeType = " << S.ShapeType() << " TS = " << S.TShape()->This() <<endl;
+      std::cout <<"SHELLIN: ShapeType = " << S.ShapeType() << " TS = " << S.TShape()->This() <<std::endl;
 #endif       
          if(S.ShapeType() == TopAbs_SHELL) {
                TopTools_MapOfShape aView;
@@ -2090,7 +2090,7 @@ Standard_Boolean TNaming_Name::Solve(const TDF_Label&    aLab,
   case TNaming_WIREIN: 
     {
 #ifdef OCCT_DEBUG_WIN  
-      cout << "Name::Solve: NameType = " << myType << "  ";
+      std::cout << "Name::Solve: NameType = " << myType << "  ";
   PrintEntry(aLab);
 #endif
       Done = WireIN (aLab,Valid,myArgs,myStop,myIndex);
@@ -2099,7 +2099,7 @@ Standard_Boolean TNaming_Name::Solve(const TDF_Label&    aLab,
 case TNaming_SHELLIN: 
     {
 #ifdef OCCT_DEBUG_SHELL
-      cout << "Name::Solve: NameType = " << myType << "  ";
+      std::cout << "Name::Solve: NameType = " << myType << "  ";
       PrintEntry(aLab);
 #endif
       Done = ShellIN (aLab,Valid,myArgs,myStop,myIndex);      
@@ -2108,7 +2108,7 @@ case TNaming_SHELLIN:
   }
 } catch (Standard_Failure const&) {
 #ifdef OCCT_DEBUG
-  cout << "Name::Solve: EXCEPTION==> NameType = " << NameTypeToString(myType) << "  ";
+  std::cout << "Name::Solve: EXCEPTION==> NameType = " << NameTypeToString(myType) << "  ";
   PrintEntry(aLab);
 #endif
 }
index eca6c5a..860cdcd 100644 (file)
@@ -259,7 +259,7 @@ void TNaming_NamedShape::Clear()
 {
   if (Label().IsNull()) {
 #ifdef OCCT_DEBUG_BUILDER
-    cout << "attention etat fantomatique" << endl;
+    std::cout << "attention etat fantomatique" << std::endl;
 #endif
     return;
   }
@@ -668,7 +668,7 @@ void TNaming_Builder::Generated(const TopoDS_Shape& newShape)
   
   if (myShapes->myMap.IsBound(newShape)) {
 #ifdef OCCT_DEBUG_BUILDER
-    cout <<"TNaming_Builder::Generate : the shape is already in the attribute"<<endl;
+    std::cout <<"TNaming_Builder::Generate : the shape is already in the attribute"<<std::endl;
 #endif
     pns = myShapes->myMap.ChangeFind(newShape);
     if (pns->FirstUse()->myAtt  == myAtt.operator->()) {
@@ -709,7 +709,7 @@ void TNaming_Builder::Delete(const TopoDS_Shape& oldShape)
     pos = myShapes->myMap.ChangeFind(oldShape); 
   else {
 #ifdef OCCT_DEBUG_BUILDER
-    cout <<"TNaming_Builder::Delete : the shape is not in the data"<<endl;
+    std::cout <<"TNaming_Builder::Delete : the shape is not in the data"<<std::endl;
 #endif
     pos = new TNaming_RefShape(oldShape);  
     myShapes->myMap.Bind(oldShape, pos);
@@ -741,7 +741,7 @@ void TNaming_Builder::Generated(const TopoDS_Shape& oldShape,
 
   if (oldShape.IsSame(newShape)) {
 #ifdef OCCT_DEBUG_BUILDER
-    cout <<"TNaming_Builder::Generate : oldShape IsSame newShape"<<endl;
+    std::cout <<"TNaming_Builder::Generate : oldShape IsSame newShape"<<std::endl;
 #endif
     return;
   }
@@ -784,7 +784,7 @@ void TNaming_Builder::Modify(const TopoDS_Shape& oldShape,
 
   if (oldShape.IsSame(newShape)) {
 #ifdef OCCT_DEBUG_BUILDER
-    cout <<"TNaming_Builder::Modify : oldShape IsSame newShape"<<endl;
+    std::cout <<"TNaming_Builder::Modify : oldShape IsSame newShape"<<std::endl;
 #endif
     return;
   }
@@ -894,7 +894,7 @@ TNaming_Iterator::TNaming_Iterator(const TDF_Label&       Lab,
   else {
     myNode = 0L;
 #ifdef OCCT_DEBUG
-    cout <<"TNaming_Iterator : No Shape for this label"<<endl;
+    std::cout <<"TNaming_Iterator : No Shape for this label"<<std::endl;
 #endif
   }
 }
@@ -1490,7 +1490,7 @@ Standard_Boolean TNaming_Tool::HasLabel (const TDF_Label&    access,
     return (US->Map().IsBound(S));
   }
 #ifdef OCCT_DEBUG_HASL
-  cout << "##==> Sub-Shape has no Label!" <<endl;
+  std::cout << "##==> Sub-Shape has no Label!" <<std::endl;
 #endif
   return Standard_False;
 }
index c5a0376..989ab7d 100644 (file)
@@ -100,7 +100,7 @@ void Print_Entry(const TDF_Label&       label)
 {
   TCollection_AsciiString entry;
   TDF_Tool::Entry(label, entry);
-  cout << "LabelEntry = "<< entry << endl;
+  std::cout << "LabelEntry = "<< entry << std::endl;
 }
 static void Write(const TopoDS_Shape& shape,
                      const Standard_CString filename) 
@@ -114,10 +114,10 @@ static void Write(const TopoDS_Shape& shape,
       *p = '-';
     p++;
   }
-  ofstream save (buf);
+  std::ofstream save (buf);
   if(!save) 
-    cout << "File " << buf << " was not created: rdstate = " << save.rdstate() << endl;
-  save << "DBRep_DrawableShape" << endl << endl;
+    std::cout << "File " << buf << " was not created: rdstate = " << save.rdstate() << std::endl;
+  save << "DBRep_DrawableShape" << std::endl << std::endl;
   if(!shape.IsNull()) BRepTools::Write(shape, save);
   save.close();
 }
@@ -132,10 +132,10 @@ void WriteNSOnLabel(const Handle(TNaming_NamedShape) & NS, const TCollection_Asc
       Write(Sh, Entry.ToCString());
     }
     else
-      cout << "WriteNSOnLabel>>> TopoDS_Shape IS NULL on Entry = "<< entry << endl;
+      std::cout << "WriteNSOnLabel>>> TopoDS_Shape IS NULL on Entry = "<< entry << std::endl;
   }
   else
-    cout << "WriteNSOnLabel >>>  NamedShape IS NULL" << endl;
+    std::cout << "WriteNSOnLabel >>>  NamedShape IS NULL" << std::endl;
 }
 #endif
 
@@ -163,7 +163,7 @@ Standard_Boolean  TNaming_Naming::Solve (TDF_LabelMap& Valid)
 #ifdef OCCT_DEBUG_NBS
     TCollection_AsciiString anEntry;
     TDF_Tool::Entry(it.Value(), anEntry);
-    cout << "TNaming_Naming::Solve: Label to be solved = " << anEntry << endl;
+    std::cout << "TNaming_Naming::Solve: Label to be solved = " << anEntry << std::endl;
 #endif
     if (it.Value().FindAttribute(TNaming_Naming::GetID(),subname)) {
       if (!subname->Solve (Valid)) {
@@ -173,12 +173,12 @@ Standard_Boolean  TNaming_Naming::Solve (TDF_LabelMap& Valid)
   }
 #ifdef OCCT_DEBUG_CC
   TDF_MapIteratorOfLabelMap anItr(Valid);
-  cout << "TNaming_Naming::Solve:: Valid label Map" << endl;
+  std::cout << "TNaming_Naming::Solve:: Valid label Map" << std::endl;
   for (; anItr.More(); anItr.Next()) {
     const TDF_Label& aLabel = anItr.Key();
     TCollection_AsciiString anEntry;
     TDF_Tool::Entry(aLabel, anEntry);
-    cout << "Label = " << anEntry << endl;
+    std::cout << "Label = " << anEntry << std::endl;
   }
 #endif
   if (Regenerate(Valid)) {
@@ -280,9 +280,9 @@ static Standard_Boolean GetShapeEvolutions(const TopoDS_Shape&               the
   Handle(TNaming_NamedShape) aTarget = TNaming_Tool::NamedShape(theTarget,theSource->Label());
   if (!aTarget.IsNull()) {
 #ifdef OCCT_DEBUG_71
-    cout <<"GetShapeEvolutions: target NS = ";
+    std::cout <<"GetShapeEvolutions: target NS = ";
     Print_Entry(aTarget->Label());
-    cout <<"GetShapeEvolutions: Source NS = ";
+    std::cout <<"GetShapeEvolutions: Source NS = ";
     Print_Entry(theSource->Label());
     TCollection_AsciiString aNam("GetShapeEvolutions");
     WriteNSOnLabel(aTarget,aNam);
@@ -295,11 +295,11 @@ static Standard_Boolean GetShapeEvolutions(const TopoDS_Shape&               the
 #ifdef OCCT_DEBUG_71
     if(!anIter.OldShape().IsNull()) {
       Write(anIter.OldShape(), "Target_OldS.brep");
-      cout <<"Target OldS TS =" <<anIter.OldShape().TShape()->This() <<endl;
+      std::cout <<"Target OldS TS =" <<anIter.OldShape().TShape()->This() <<std::endl;
     }
     if(!anIter.NewShape().IsNull()) {
       Write(anIter.NewShape(), "Target_NewS.brep");
-      cout <<"Target NewS TS =" <<anIter.NewShape().TShape()->This() <<endl;
+      std::cout <<"Target NewS TS =" <<anIter.NewShape().TShape()->This() <<std::endl;
     }  
 #endif
     if (anIter.OldShape().IsNull() || anIter.NewShape().IsNull()) continue;
@@ -323,7 +323,7 @@ static Handle(TNaming_NamedShape) CompareInModification (const Handle(TNaming_Na
   Handle(TNaming_NamedShape) aResult;
   if (S.IsNull() || NS.IsNull()) return aResult;
 #ifdef OCCT_DEBUG_71
-  cout <<"CompareInModification: parent NS = ";
+  std::cout <<"CompareInModification: parent NS = ";
   Print_Entry(NS->Label());
   Write(S, "CompareInM_S.brep");
   TCollection_AsciiString aNam("CompareInM");
@@ -383,7 +383,7 @@ static Standard_Boolean FillSMap(const TopoDS_Shape& S, TopTools_MapOfShape& MS)
   for (; it.More(); it.Next()) {
     const TopAbs_ShapeEnum aType = it.Value().ShapeType();      
 #ifdef OCCT_DEBUG_CC
-    cout <<"TestSolution_FillMap: S_Type = :" << it.Value().ShapeType() <<" TShape = " << it.Value().TShape()->This() <<endl;
+    std::cout <<"TestSolution_FillMap: S_Type = :" << it.Value().ShapeType() <<" TShape = " << it.Value().TShape()->This() <<std::endl;
 #endif
     if(aType > TopAbs_COMPSOLID) {
       MS.Add(it.Value());
@@ -419,13 +419,13 @@ static Standard_Boolean Compare (const Handle(TNaming_NamedShape)& NS,
   TNaming_NamingTool::CurrentShape(MDF.GetValid(),Forbiden,NS,MS);
 #ifdef OCCT_DEBUG_NBS
   Write(S, "Compare_S.brep");
-  cout <<  "S: TShape = " <<S.TShape()->This() <<endl;
+  std::cout <<  "S: TShape = " <<S.TShape()->This() <<std::endl;
   TCollection_AsciiString aNam("Compare_MS_");
   TCollection_AsciiString ext(".brep");
   for (Standard_Integer anItMS = 1; anItMS <= MS.Extent(); ++anItMS) {
     TCollection_AsciiString aName = aNam + anItMS + ext;
     Write (MS (anItMS), aName.ToCString());
-    cout << aName.ToCString()<< ": TShape = " << MS (anItMS).TShape()->This() << endl;
+    std::cout << aName.ToCString()<< ": TShape = " << MS (anItMS).TShape()->This() << std::endl;
   }
 #endif
   return (MS.Contains(S) && MS.Extent() == 1);
@@ -604,7 +604,7 @@ static Standard_Boolean IsMultipleCase(const TopoDS_Shape&        S,
        aDMM.Bind(it.Key(), aMS);
     } else {
 #ifdef OCCT_DEBUG
-      cout << "Key is not BOUND!" <<endl;
+      std::cout << "Key is not BOUND!" <<std::endl;
 #endif
       return Standard_False;
     }
@@ -699,7 +699,7 @@ static Standard_Boolean Filter (const TDF_Label&                  F,
 
   if (Neighbourg.IsEmpty()) {
 #ifdef OCCT_DEBUG
-    cout <<"FindNeighbourg: impossible"<<endl;
+    std::cout <<"FindNeighbourg: impossible"<<std::endl;
 #endif
     return 0;  
   } else {
@@ -707,7 +707,7 @@ static Standard_Boolean Filter (const TDF_Label&                  F,
     Write(Neighbourg, "Neighbourgs");
 #endif
     aLev++;
-    //cout <<"Filter: Lev = " << aLev << endl;
+    //std::cout <<"Filter: Lev = " << aLev << std::endl;
   }
   if(aLev > 3) return 0; 
 #ifdef ALLOW_CHILD_NBS  
@@ -724,7 +724,7 @@ static Standard_Boolean Filter (const TDF_Label&                  F,
     //check the applicability
     if(!NS.IsNull() && !NS->Get().IsNull() && NS->Get().ShapeType() == TopAbs_COMPOUND)
       if(IsMultipleCase(S, Context, Neighbourg)) {
-       //cout << "Filter: ==> MultipleCase!" << endl;
+       //std::cout << "Filter: ==> MultipleCase!" << std::endl;
        NS->Label().FindAttribute(TNaming_Naming::GetID(), aFNaming);
        if(!aFNaming.IsNull()) {
          TNaming_Name& aName = aFNaming->ChangeName();
@@ -735,7 +735,7 @@ static Standard_Boolean Filter (const TDF_Label&                  F,
              const TopoDS_Shape& aFace = TNaming_Tool::CurrentShape(itA.Value());
 #ifdef OCCT_DEBUG_MOD
              Write(aFace, "First_Face.brep");
-             cout <<"Selection TS = " << S.TShape()->This() <<endl;
+             std::cout <<"Selection TS = " << S.TShape()->This() <<std::endl;
 #endif
              Standard_Integer i(1), indxW(0),indxE(0),nbW(0),nbE(0), indxF(0);
              Standard_Boolean isFound(Standard_False);
@@ -752,7 +752,7 @@ static Standard_Boolean Filter (const TDF_Label&                  F,
                    nbE++;
 #ifdef OCCT_DEBUG_MOD
                    Write(it2.Value(), "First_Wire.brep");
-                   cout <<"Edge TS = " << it2.Value().TShape()->This() <<endl;
+                   std::cout <<"Edge TS = " << it2.Value().TShape()->This() <<std::endl;
 #endif
                    if(S.IsEqual(it2.Value())) {
                      indxE = j;
@@ -803,9 +803,9 @@ static Standard_Boolean Filter (const TDF_Label&                  F,
   theName.Append(NS);
   theName.StopNamedShape (Until);
 #ifdef OCCT_DEBUG_NBS
-  cout << "FilterByNBS: ";
+  std::cout << "FilterByNBS: ";
   Print_Entry(NF->Label());
-  cout <<"AppendNS = " ;
+  std::cout <<"AppendNS = " ;
   Print_Entry(NS->Label());
 #endif
   //---------------------
@@ -821,13 +821,13 @@ static Standard_Boolean Filter (const TDF_Label&                  F,
 #ifdef OCCT_DEBUG_NBS
     const TopoDS_Shape& aS2 = aNS->Get(); 
     if(!aS.IsNull())
-      cout << "Shape arg type = " << aS.ShapeType() <<" TSH = " << aS.TShape()->This()<<endl;
+      std::cout << "Shape arg type = " << aS.ShapeType() <<" TSH = " << aS.TShape()->This()<<std::endl;
     if(!aS2.IsNull()) {
-      cout << "Build shape type = " << aS2.ShapeType() <<" TSH = " << aS2.TShape()->This()<<endl;
+      std::cout << "Build shape type = " << aS2.ShapeType() <<" TSH = " << aS2.TShape()->This()<<std::endl;
       Write (aS2, "NBS_BuildShape.brep");
     }
     if(aNS.IsNull()) {
-     cout <<"AppendNS = " ;
+     std::cout <<"AppendNS = " ;
      Print_Entry(aNS->Label());
     }
 #endif
@@ -840,7 +840,7 @@ static Standard_Boolean Filter (const TDF_Label&                  F,
        aSNS.ShapeType() == TopAbs_COMPOUND)
       { // aLev < 3 
 #ifdef OCCT_DEBUG_NBS
-       cout <<"Father label = ";
+       std::cout <<"Father label = ";
        Print_Entry(aNS->Label().Father());
        Write(aS,"SelectionS.brep");
        Write(aSNS,"SelectionSNS.brep");
@@ -875,7 +875,7 @@ static Standard_Boolean Filter (const TDF_Label&                  F,
   //-----------------
   if (Compare (NS,MDF,Stop,S)) return 1;
 #ifdef OCCT_DEBUG
-  cout <<"TNaming_Naming::Name Filter insufficient"<<endl;
+  std::cout <<"TNaming_Naming::Name Filter insufficient"<<std::endl;
 #endif
   return 0;
 }
@@ -915,16 +915,16 @@ static Handle(TNaming_NamedShape) BuildNameInNS (const TDF_Label&
     Father.FindAttribute(TNaming_NamedShape::GetID(),NewStop);
 #ifdef OCCT_DEBUG_INNS
     if(!Stop.IsNull())
-      {cout <<" Stop NS : "; Print_Entry( Stop->Label());}
+      {std::cout <<" Stop NS : "; Print_Entry( Stop->Label());}
     if(!NewStop.IsNull())
-      {cout <<" NewStop : ";  Print_Entry( NewStop->Label());}
-    cout <<"ContextLabel: "; Print_Entry( Context->Label());
-    cout <<"Father      : "; Print_Entry( Father);
+      {std::cout <<" NewStop : ";  Print_Entry( NewStop->Label());}
+    std::cout <<"ContextLabel: "; Print_Entry( Context->Label());
+    std::cout <<"Father      : "; Print_Entry( Father);
 #endif
   }
 #ifdef OCCT_DEBUG_INNS
   if(NewStop.IsNull())
-    cout <<"BuildNameInNS:: NewStop shape is  NULL" << endl;  
+    std::cout <<"BuildNameInNS:: NewStop shape is  NULL" << std::endl;  
 #endif 
   return BuildName (F,MDF,S,SC,NewStop,Geometry);
 }
@@ -948,9 +948,9 @@ static Handle(TNaming_NamedShape) BuildName (const TDF_Label&                  F
   Standard_Boolean OnlyOne      = !Geom;
   Standard_Boolean IsGeneration = Standard_False;
 #ifdef OCCT_DEBUG_MOD
-  cout <<"BuildName: F =>  ";
+  std::cout <<"BuildName: F =>  ";
   Print_Entry(F);
-  cout <<" Selection type = " << Selection.ShapeType() << " TS = " << Selection.TShape()->This() << endl;
+  std::cout <<" Selection type = " << Selection.ShapeType() << " TS = " << Selection.TShape()->This() << std::endl;
   Write(Selection, "BName_Selection.brep");
   Write(Context, "BName_Context.brep");
 #endif
@@ -983,9 +983,9 @@ static Handle(TNaming_NamedShape) BuildName (const TDF_Label&                  F
        theName.Orientation(Selection.Orientation());
     theName.Type(Ident.Type());
 #ifdef OCCT_DEBUG_MOD
-    cout <<"BuildName: Inserted Naming Att at ";
+    std::cout <<"BuildName: Inserted Naming Att at ";
     Print_Entry(Naming->Label());
-    cout <<" NameType = " << theName.Type() <<endl;            
+    std::cout <<" NameType = " << theName.Type() <<std::endl;          
 #endif
     if (Ident.IsFeature()) {
       theName.Append(Ident.FeatureArg());
@@ -1005,7 +1005,7 @@ static Handle(TNaming_NamedShape) BuildName (const TDF_Label&                  F
     if(!Stop.IsNull()) {
         TCollection_AsciiString Es;
       TDF_Tool::Entry(Stop->Label(), Es);
-      cout <<"StopNS at Label = "<< Es << endl;
+      std::cout <<"StopNS at Label = "<< Es << std::endl;
     }
 #endif 
     //---------------------------------
@@ -1019,15 +1019,15 @@ static Handle(TNaming_NamedShape) BuildName (const TDF_Label&                  F
        if(!Ident.FeatureArg().IsNull()) {
          TCollection_AsciiString E;
          TDF_Tool::Entry(Ident.FeatureArg()->Label(), E);
-         cout <<"Added argument NS from Label = "<< E << endl;
+         std::cout <<"Added argument NS from Label = "<< E << std::endl;
        }
 #endif 
       }
       else {
 #ifdef OCCT_DEBUG_MOD
-         cout <<"BuildName: NameType = " <<theName.Type() << " NS ";
+         std::cout <<"BuildName: NameType = " <<theName.Type() << " NS ";
          Print_Entry(Naming->Label());
-         cout <<"Ident.ShapeArg() type = " << Ident.ShapeArg().ShapeType() << " TS = " << Ident.ShapeArg().TShape()->This() << endl;   
+         std::cout <<"Ident.ShapeArg() type = " << Ident.ShapeArg().ShapeType() << " TS = " << Ident.ShapeArg().TShape()->This() << std::endl; 
           Write(Ident.ShapeArg(), "BName_ShapeArg.brep");
 #endif 
          if (theName.Type() == TNaming_GENERATION)
@@ -1044,7 +1044,7 @@ static Handle(TNaming_NamedShape) BuildName (const TDF_Label&                  F
 #ifdef OCCT_DEBUG_MOD
     TCollection_AsciiString E2;
     TDF_Tool::Entry(Naming->Label(), E2);
-    cout <<"Regenerated Naming Att at Label = "<< E2 << endl;
+    std::cout <<"Regenerated Naming Att at Label = "<< E2 << std::endl;
 #endif 
     Naming->Label().FindAttribute(TNaming_NamedShape::GetID(),NS);
     if(NS.IsNull()) return NS; 
@@ -1053,7 +1053,7 @@ static Handle(TNaming_NamedShape) BuildName (const TDF_Label&                  F
     if(!NS.IsNull()) {
       TCollection_AsciiString E;
       TDF_Tool::Entry(NS->Label(), E);
-      cout <<"Regenerated NS at Label = "<< E << endl;
+      std::cout <<"Regenerated NS at Label = "<< E << std::endl;
     }
 #endif 
   }
@@ -1085,9 +1085,9 @@ static Handle(TNaming_NamedShape) BuildName (const TDF_Label&                  F
       } else if (Ident.Type() == TNaming_MODIFUNTIL ||
                 (Ident.Type() == TNaming_INTERSECTION && Naming->ChangeName().Arguments().Extent() == 1)) {
 #ifdef OCCT_DEBUG_MOD
-       cout <<"BuildName(CompareInModification): NameType = " <<Ident.Type() << " NS ";
+       std::cout <<"BuildName(CompareInModification): NameType = " <<Ident.Type() << " NS ";
        Print_Entry(Ident.Type() == TNaming_MODIFUNTIL ? NS->Label() : Naming->ChangeName().Arguments().First()->Label());
-       cout <<"Selection type = " << Selection.ShapeType() << " TS = " << Selection.TShape()->This() << endl;  
+       std::cout <<"Selection type = " << Selection.ShapeType() << " TS = " << Selection.TShape()->This() << std::endl;        
 #endif
        Handle(TNaming_NamedShape) NewNS =
          CompareInModification(Ident.Type() == TNaming_MODIFUNTIL ? NS : Naming->ChangeName().Arguments().First(), Selection);
@@ -1119,7 +1119,7 @@ static Handle(TNaming_NamedShape) BuildName (const TDF_Label&                  F
     if(!NS.IsNull()) {
       TCollection_AsciiString E;
       TDF_Tool::Entry(NS->Label(), E);
-      cout <<"Returned NS from Label = "<< E << endl;
+      std::cout <<"Returned NS from Label = "<< E << std::endl;
     }
 #endif 
   return NS;
@@ -1222,7 +1222,7 @@ static Standard_Boolean HasAncFace(const TopoDS_Shape& Context,
            Face = exp.Current();
            if(!Face.IsNull()) {
              hasFace = Standard_True;
-       //        cout << "HasAncFace: TS = " <<theFace.TShape()->This() <<endl;
+       //        std::cout << "HasAncFace: TS = " <<theFace.TShape()->This() <<std::endl;
                  const TopoDS_Face aFace(TopoDS::Face(Face));
                  TopoDS_Wire anOuterW; 
                  if(TNaming::OuterWire(aFace, anOuterW)) {
@@ -1346,13 +1346,13 @@ static Standard_Boolean IsAllIn (const TopoDS_Shape& S, const TopoDS_Shape& Cont
   Standard_Integer num1(0), num2(0);
   for(TopoDS_Iterator it(S);it.More();it.Next(),num1++) {
 #ifdef OCCT_DEBUG_CC
-  cout <<"S sub-shape type = " << it.Value().ShapeType() <<endl;
+  std::cout <<"S sub-shape type = " << it.Value().ShapeType() <<std::endl;
   Write (it.Value(), "Sel_ItValue.brep");
 #endif
   if(it.Value().ShapeType() != TopAbs_COMPOUND)
     for (TopExp_Explorer exp(Context,it.Value().ShapeType()); exp.More(); exp.Next()) {
 #ifdef OCCT_DEBUG_CC
-  cout <<"Context sub-shape type = " << exp.Current().ShapeType() <<endl;
+  std::cout <<"Context sub-shape type = " << exp.Current().ShapeType() <<std::endl;
   Write(exp.Current(), "Contex_Curnt.brep");
 #endif
       if (exp.Current().IsEqual(it.Value())) { 
@@ -1369,7 +1369,7 @@ static Standard_Boolean IsAllIn (const TopoDS_Shape& S, const TopoDS_Shape& Cont
     found = Standard_True;
 #ifdef OCCT_DEBUG_CC
   else
-    cout <<"Compound case : selected num1 = " << num1 << " context contains num2 = " << num2 << endl;
+    std::cout <<"Compound case : selected num1 = " << num1 << " context contains num2 = " << num2 << std::endl;
 #endif
   return found;
 }
@@ -1406,7 +1406,7 @@ static Standard_Integer RepeatabilityInContext(const TopoDS_Shape& Selection,
     } 
   }
 #ifdef OCCT_DEBUG_OR
-      cout <<"RepeatabilityInContext: = " <<aNum <<endl;
+      std::cout <<"RepeatabilityInContext: = " <<aNum <<std::endl;
 #endif 
   return aNum;
 }
@@ -1589,7 +1589,7 @@ static void BuildAggregationName (const TDF_Label&                  F,
        theName.Orientation(S.Orientation());
   } 
 #ifdef OCCT_DEBUG_CC
-  cout <<"BuildAggregationName ==> ";
+  std::cout <<"BuildAggregationName ==> ";
   Print_Entry(Naming->Label());
 #endif
   TNaming_Name& theName = Naming->ChangeName();  
@@ -1636,7 +1636,7 @@ static void BuildAggregationName (const TDF_Label&                  F,
        }
       } else {
 #ifdef OCCT_DEBUG_CC
-       cout << "atomic type is NOT defined ... ==> Aggregation" <<endl;
+       std::cout << "atomic type is NOT defined ... ==> Aggregation" <<std::endl;
 #endif
        BuildAggregationName(aNaming->Label(),MDF, aS, Context,Stop,Geom);
       }
@@ -1672,7 +1672,7 @@ Handle(TNaming_NamedShape) TNaming_Naming::Name (const TDF_Label&       F,
   Handle(TNaming_NamedShape) aNamedShape;
   if (KeepOrientation) {
 #ifdef OCCT_DEBUG_INNS
-    cout <<"KeepOR = 1: "; Print_Entry(F);
+    std::cout <<"KeepOR = 1: "; Print_Entry(F);
 #endif
     Standard_Integer aNum = RepeatabilityInContext(S, Context);
 
@@ -1708,7 +1708,7 @@ Handle(TNaming_NamedShape) TNaming_Naming::Name (const TDF_Label&       F,
     aNamedShape = TNaming_Naming::Name(Naming->Label(),S,Context,Geom,0);
        theName.Append (aNamedShape);
 #ifdef MDTV_OR
-       cout << " Sel Label ==> "; Print_Entry(NS->Label());
+       std::cout << " Sel Label ==> "; Print_Entry(NS->Label());
 #endif
 //szy 21.10.2009       
        if(S.ShapeType() == TopAbs_EDGE && UC.ShapeType() == TopAbs_FACE) {
@@ -1722,7 +1722,7 @@ Handle(TNaming_NamedShape) TNaming_Naming::Name (const TDF_Label&       F,
                  theName.Index(i);//We use this field to save a Seam Shape Index; Before this field was used for GENERATED only
                  found = Standard_True;
 #ifdef MDTV_OR
-                 cout << "ORDER = " << i <<endl;
+                 std::cout << "ORDER = " << i <<std::endl;
 #endif
                  break;
                }
@@ -1742,7 +1742,7 @@ Handle(TNaming_NamedShape) TNaming_Naming::Name (const TDF_Label&       F,
     aNamedShape = TNaming_Naming::Name(Naming->Label(),UC,Context, Geom, 1, aBNproblem);
          theName.Append (aNamedShape);
 #ifdef MDTV_OR
-       cout << " Cont Label ==> "; Print_Entry(NS->Label());
+       std::cout << " Cont Label ==> "; Print_Entry(NS->Label());
 #endif
        }
       //Naming->Update();
@@ -1753,12 +1753,12 @@ Handle(TNaming_NamedShape) TNaming_Naming::Name (const TDF_Label&       F,
        theName.ContextLabel(aNamedShape->Label());
        if (Geom) return aNamedShape;
        if(aNamedShape.IsNull()) {
-       cout <<" %%% WARNING: TNaming_Naming::Name:  FAILED"<<endl;
+       std::cout <<" %%% WARNING: TNaming_Naming::Name:  FAILED"<<std::endl;
        return BuildNS (F,S, TNaming_UNKNOWN);
       }
 
         if (!Geom && TestSolution(MDF, aNamedShape,S)) return aNamedShape;
-       cout <<" %%% WARNING: TNaming_Naming::Name:  FAILED"<<endl;
+       std::cout <<" %%% WARNING: TNaming_Naming::Name:  FAILED"<<std::endl;
 
        // Naming n is  unsatisfactory
        return BuildNS (F,S, TNaming_UNKNOWN);
@@ -1860,7 +1860,7 @@ Handle(TNaming_NamedShape) TNaming_Naming::Name (const TDF_Label&       F,
     if (!Geom && TestSolution(MDF,NS,S)) return NS; 
   }
   
-      cout <<" %%% WARNING: TNaming_Naming::Name:  FAILED"<<endl;
+      std::cout <<" %%% WARNING: TNaming_Naming::Name:  FAILED"<<std::endl;
 
   // Naming n is not satisfactory
   return BuildNS (F,S, TNaming_UNKNOWN); 
@@ -1995,6 +1995,6 @@ void TNaming_Naming::ExtendedDump(Standard_OStream& anOS,
                                   TDF_AttributeIndexedMap& /*aMap*/) const
 {
   anOS << "TNaming_Naming ExtendedDump  ";
-  //anOS<<"myContext: #" <<aMap.Add(myContext)<<endl; 
+  //anOS<<"myContext: #" <<aMap.Add(myContext)<<std::endl; 
 }
 
index 056c75b..5521100 100644 (file)
@@ -45,10 +45,10 @@ static void WriteS(const TopoDS_Shape& shape,
       *p = '-';
     p++;
   }
-  ofstream save (buf);
+  std::ofstream save (buf);
   if(!save) 
-    cout << "File " << buf << " was not created: rdstate = " << save.rdstate() << endl;
-  save << "DBRep_DrawableShape" << endl << endl;
+    std::cout << "File " << buf << " was not created: rdstate = " << save.rdstate() << std::endl;
+  save << "DBRep_DrawableShape" << std::endl << std::endl;
   if(!shape.IsNull()) BRepTools::Write(shape, save);
   save.close();
 }
@@ -88,7 +88,7 @@ static void LastModif(      TNaming_NewShapeIterator& it,
 #ifdef OCCT_DEBUG_DESC
     TCollection_AsciiString entry;
     TDF_Tool::Entry(Lab, entry);
-    cout << "NamingTool:: LastModif LabelEntry = "<< entry <<  endl;
+    std::cout << "NamingTool:: LastModif LabelEntry = "<< entry <<  std::endl;
 #endif
     if (!Updated.IsEmpty() && !Updated.Contains(Lab))  continue;
     if (IsForbiden(Forbiden, Lab))                     continue; 
@@ -112,9 +112,9 @@ static void ApplyOrientation (TopTools_IndexedMapOfShape& MS,
 {
 #ifdef OCCT_DEBUG_APPLY
  if (!MS.IsEmpty ()) {
-   cout <<"OrientationToApply = " <<OrientationToApply <<endl;
+   std::cout <<"OrientationToApply = " <<OrientationToApply <<std::endl;
    for (Standard_Integer anItMS1 = 1; anItMS1 <= MS.Extent(); ++anItMS1) {
-     cout << "ApplyOrientation: TShape = " << MS (anItMS1).TShape()->This() << " OR = " << MS (anItMS1).Orientation() <<endl;
+     std::cout << "ApplyOrientation: TShape = " << MS (anItMS1).TShape()->This() << " OR = " << MS (anItMS1).Orientation() <<std::endl;
    }
  }
 #endif
@@ -136,13 +136,13 @@ void TNaming_NamingTool::CurrentShape(const TDF_LabelMap&               Valid,
 #ifdef OCCT_DEBUG_DESC
     TCollection_AsciiString entry;
     TDF_Tool::Entry(Lab, entry);
-    cout << "NamingTool:: LabelEntry = "<< entry <<  endl;
+    std::cout << "NamingTool:: LabelEntry = "<< entry <<  std::endl;
 #endif
   if (!Valid.IsEmpty() && !Valid.Contains(Lab)) {
 #ifdef OCCT_DEBUG_DESC
     TCollection_AsciiString entry;
     TDF_Tool::Entry(Lab, entry);
-    cout << "NamingTool:: LabelEntry = "<< entry << " is out of Valid map" <<  endl;
+    std::cout << "NamingTool:: LabelEntry = "<< entry << " is out of Valid map" <<  std::endl;
 #endif
     return;
   }
@@ -154,7 +154,7 @@ void TNaming_NamingTool::CurrentShape(const TDF_LabelMap&               Valid,
 #ifdef OCCT_DEBUG_DESC
     WriteS(S, "CS_NewShape.brep");
     if(itL.OldShape().IsNull())
-      cout <<"OldShape is Null" <<endl;
+      std::cout <<"OldShape is Null" <<std::endl;
     else 
         WriteS(itL.OldShape(), "CS_OldShape.brep");
 #endif
@@ -241,7 +241,7 @@ static void MakeDescendants (TNaming_NewShapeIterator&         it,
 #ifdef OCCT_DEBUG_DESC
     TCollection_AsciiString entry;
     TDF_Tool::Entry(it.Label(), entry);
-    cout<< "MakeDescendants: Label = " <<entry <<endl;
+    std::cout<< "MakeDescendants: Label = " <<entry <<std::endl;
 #endif
     if (!it.Shape().IsNull()) {
       TNaming_NewShapeIterator it2(it);
@@ -259,7 +259,7 @@ void BuildDescendants2 (const Handle(TNaming_NamedShape)& NS, const TDF_Label& F
 #ifdef OCCT_DEBUG_DESC
       TCollection_AsciiString entry;
       TDF_Tool::Entry(it.Label(), entry);
-      cout<< "MakeDescendants2: Label = " <<entry <<endl;
+      std::cout<< "MakeDescendants2: Label = " <<entry <<std::endl;
 #endif      
       if(ForbLab == it.Label()) continue;
       Descendants.Add(it.Label());
@@ -282,7 +282,7 @@ void TNaming_NamingTool::BuildDescendants (const Handle(TNaming_NamedShape)& NS,
 #ifdef OCCT_DEBUG_DESC
     TCollection_AsciiString entry;
     TDF_Tool::Entry(NS->Label(), entry);
-    cout<< "MakeDescendants: Label = " <<entry <<endl;
+    std::cout<< "MakeDescendants: Label = " <<entry <<std::endl;
 #endif
   MakeDescendants (it,Descendants);
   TNaming_OldShapeIterator it2(NS); 
@@ -293,7 +293,7 @@ void TNaming_NamingTool::BuildDescendants (const Handle(TNaming_NamedShape)& NS,
 #ifdef OCCT_DEBUG_DESC
        TCollection_AsciiString entry;
        TDF_Tool::Entry(ONS->Label(), entry);
-       cout<< "MakeDescendants_Old: Label = " <<entry <<endl;    
+       std::cout<< "MakeDescendants_Old: Label = " <<entry <<std::endl;          
 #endif
        BuildDescendants2(ONS, NS->Label(), Descendants);
       }
index bcfe1b8..ec24d19 100644 (file)
@@ -46,12 +46,12 @@ void PrintEntry(const TDF_Label&       label, const Standard_Boolean allLevels)
 {
   TCollection_AsciiString entry;
   TDF_Tool::Entry(label, entry);
-  cout << "LabelEntry = "<< entry << endl;
+  std::cout << "LabelEntry = "<< entry << std::endl;
   if(allLevels) {
     TDF_ChildIterator it (label, allLevels);
     for (; it.More(); it.Next()) {
       TDF_Tool::Entry(it.Value(), entry);
-       cout << "ChildLabelEntry = "<< entry << endl;
+       std::cout << "ChildLabelEntry = "<< entry << std::endl;
       }
   }
 }
@@ -72,10 +72,10 @@ static void Write(const TopoDS_Shape& shape,
       *p = '-';
     p++;
   }
-  ofstream save (buf);
+  std::ofstream save (buf);
   if(!save) 
-    cout << "File " << buf << " was not created: rdstate = " << save.rdstate() << endl;
-  save << "DBRep_DrawableShape" << endl << endl;
+    std::cout << "File " << buf << " was not created: rdstate = " << save.rdstate() << std::endl;
+  save << "DBRep_DrawableShape" << std::endl << std::endl;
   if(!shape.IsNull()) BRepTools::Write(shape, save);
   save.close();
 }
@@ -162,7 +162,7 @@ static Standard_Boolean IsSpecificCase(const  TDF_Label& F, const TopoDS_Shape&
        if(aS.IsNull()) continue;
 #ifdef OCCT_DEBUG_BNP
        PrintEntry(NS->Label(), 0);
-       cout <<"ShapeType =" << aS.ShapeType() <<endl;
+       std::cout <<"ShapeType =" << aS.ShapeType() <<std::endl;
        Write (aS, "BNProblem.brep");
 #endif 
        if(aS.ShapeType() != TopAbs_COMPOUND) {//single shape at the child label
@@ -178,11 +178,11 @@ static Standard_Boolean IsSpecificCase(const  TDF_Label& F, const TopoDS_Shape&
          for(;it.More();it.Next()) {         
            if(!shapesOfContext.Contains(it.Key())) {
 #ifdef OCCT_DEBUG_BNP
-             cout <<"BNProblem: ShapeType in AtomicMap = " << it.Key().ShapeType() << " TShape = " <<it.Key().TShape() <<" OR = " <<it.Key().Orientation()  <<endl;
+             std::cout <<"BNProblem: ShapeType in AtomicMap = " << it.Key().ShapeType() << " TShape = " <<it.Key().TShape() <<" OR = " <<it.Key().Orientation()  <<std::endl;
              Write (it.Key(), "BNProblem_AtomicMap_Item.brep");              
              TopTools_MapIteratorOfMapOfOrientedShape itC(shapesOfContext);
              for(;itC.More(); itC.Next())
-               cout <<" ShapeType = " << itC.Key().ShapeType() << " TShape = " << itC.Key().TShape() << " OR = " << itC.Key().Orientation() << endl;
+               std::cout <<" ShapeType = " << itC.Key().ShapeType() << " TShape = " << itC.Key().TShape() << " OR = " << itC.Key().Orientation() << std::endl;
              
 #endif 
              isFound = Standard_True;
@@ -335,7 +335,7 @@ Standard_Boolean TNaming_Selector::Select (const TopoDS_Shape& Selection,
    if(E.IsSame(Selection) && E.Orientation() != Selection.Orientation()) {
      selection = E;
    found = Standard_True;
-   cout <<" FOUND: Entity orientation = " << selection.Orientation() <<endl;
+   std::cout <<" FOUND: Entity orientation = " << selection.Orientation() <<std::endl;
    }
  }
  if (!found)
@@ -343,10 +343,10 @@ Standard_Boolean TNaming_Selector::Select (const TopoDS_Shape& Selection,
   */
 
 #ifdef OCCT_DEBUG_SEL
-  cout << "SELECTION ORIENTATION = " << Selection.Orientation() <<", TShape = " << Selection.TShape() <<endl;
-  //cout << "SELECTION ORIENTATION = " << selection.Orientation() <<", TShape = " << selection.TShape() <<endl;
+  std::cout << "SELECTION ORIENTATION = " << Selection.Orientation() <<", TShape = " << Selection.TShape() <<std::endl;
+  //std::cout << "SELECTION ORIENTATION = " << selection.Orientation() <<", TShape = " << selection.TShape() <<std::endl;
   PrintEntry(myLabel, 0);
-  TNaming::Print(myLabel, cout);
+  TNaming::Print(myLabel, std::cout);
 #endif
 
   if(aKeepOrientation) {
@@ -374,8 +374,8 @@ Standard_Boolean TNaming_Selector::Select (const TopoDS_Shape& Selection,
   if(!Selection.IsSame(aSelection) && Selection.ShapeType() != TopAbs_COMPOUND) {
     TCollection_AsciiString entry;
     TDF_Tool::Entry(NS->Label(), entry);
-    cout << "Selection is Not Same (NSLabel = " <<entry<<"): TShape1 = " << 
-      Selection.TShape()->This() << " TShape2 = " <<aSelection.TShape()->This() <<endl;
+    std::cout << "Selection is Not Same (NSLabel = " <<entry<<"): TShape1 = " << 
+      Selection.TShape()->This() << " TShape2 = " <<aSelection.TShape()->This() <<std::endl;
   }
 #endif
   if(aSelection.ShapeType() == TopAbs_COMPOUND && aSelection.ShapeType() != Selection.ShapeType())
@@ -420,7 +420,7 @@ Standard_Boolean TNaming_Selector::Solve (TDF_LabelMap& Valid) const
 {
   Handle(TNaming_Naming) name;
 #ifdef OCCT_DEBUG_SEL
-       cout <<"TNaming_Selector::Solve==> "; 
+       std::cout <<"TNaming_Selector::Solve==> "; 
        PrintEntry(myLabel,0);
 #endif
   if (myLabel.FindAttribute(TNaming_Naming::GetID(),name)) {
index 7057c5e..f299e99 100644 (file)
@@ -32,7 +32,7 @@ TNaming_ShapesSet::TNaming_ShapesSet (const TopoDS_Shape&    CS,
 {
   if (CS.IsNull()) return;
 #ifdef OCCT_DEBUG_INT
-  cout << "ShapeSet: CS TShape = " <<CS.TShape() << " Type = " << Type <<endl;
+  std::cout << "ShapeSet: CS TShape = " <<CS.TShape() << " Type = " << Type <<std::endl;
 #endif 
   if (Type == TopAbs_SHAPE) { 
     if (CS.ShapeType() == TopAbs_SOLID ||
@@ -54,7 +54,7 @@ TNaming_ShapesSet::TNaming_ShapesSet (const TopoDS_Shape&    CS,
       for (TopExp_Explorer exp(CS,Type) ; exp.More(); exp.Next()) {
        Add(exp.Current());
 #ifdef OCCT_DEBUG_INT
-       cout << "ShapeSet: sub-shape TShape = " <<exp.Current().TShape() <<endl;
+       std::cout << "ShapeSet: sub-shape TShape = " <<exp.Current().TShape() <<std::endl;
 #endif 
       }
     } else {
index df491d0..1b68d00 100644 (file)
@@ -526,8 +526,8 @@ void TNamingTool_DumpLabel (const TopoDS_Shape& S,
                            const TDF_Label&    Acces)
 {
   Handle(TNaming_NamedShape) NS = TNaming_Tool::NamedShape(S,Acces);
-  NS->Label().EntryDump(cout);
-  cout<<endl;
+  NS->Label().EntryDump(std::cout);
+  std::cout<<std::endl;
 }
 
 #include <BRepTools.hxx>
@@ -561,7 +561,7 @@ void TNaming_Tool::FindShape(const TDF_LabelMap&               Valid,
   Handle(TNaming_Naming) aNaming;
   if (!Arg->FindAttribute(TNaming_Naming::GetID(), aNaming)) {
 #ifdef OCCT_DEBUG
-//    cout<<"TNaming_Tool::FindShape(): Naming attribute hasn't been found attached at the Argument label"<<endl;
+//    std::cout<<"TNaming_Tool::FindShape(): Naming attribute hasn't been found attached at the Argument label"<<std::endl;
 #endif
     return;
   }
@@ -571,7 +571,7 @@ void TNaming_Tool::FindShape(const TDF_LabelMap&               Valid,
   TopExp_Explorer anExpl(Arg->Get(), (TopAbs_ShapeEnum)((int)(aNaming->GetName().ShapeType()) + 1));
   for (; anExpl.More(); anExpl.Next()) subShapes.Add(anExpl.Current());
 #ifdef OCCT_DEBUG
-//  cout<<"TNaming_Tool::FindShape(): Nb of sub shapes = "<<subShapes.Extent()<<endl;
+//  std::cout<<"TNaming_Tool::FindShape(): Nb of sub shapes = "<<subShapes.Extent()<<std::endl;
 #endif
 
   // Looking for external arguments:
@@ -580,7 +580,7 @@ void TNaming_Tool::FindShape(const TDF_LabelMap&               Valid,
   TDF_Tool::OutReferences(Arg->Label(), outRefs);
   if (outRefs.IsEmpty()) {
 #ifdef OCCT_DEBUG
-//    cout<<"TNaming_Tool::FindShape(): No out references have been found"<<endl;
+//    std::cout<<"TNaming_Tool::FindShape(): No out references have been found"<<std::endl;
 #endif
     return;
   }
@@ -595,8 +595,8 @@ void TNaming_Tool::FindShape(const TDF_LabelMap&               Valid,
        extArgs.Append(aCurrentExtArg);
 #ifdef OCCT_DEBUG
 //      if (extArgs.Extent() - 1 == nbExtArgs) {
-//     cout<<"TNaming_Tool::FindShape(): An external reference has been found at ";
-//     itr.Key()->Label().EntryDump(cout); cout<<endl;
+//     std::cout<<"TNaming_Tool::FindShape(): An external reference has been found at ";
+//     itr.Key()->Label().EntryDump(std::cout); std::cout<<std::endl;
 //      }
 #endif
     }
@@ -613,14 +613,14 @@ void TNaming_Tool::FindShape(const TDF_LabelMap&               Valid,
        !anExtArg->Label().Father().FindAttribute(TNaming_NamedShape::GetID(), aContextNS)) {
       aContextNS = anExtArg;
 // #ifdef OCCT_DEBUG
-//       cout<<"TNaming_Tool::FindShape(): A context shape hasn't been found at the father label of the external argument"<<endl;
+//       std::cout<<"TNaming_Tool::FindShape(): A context shape hasn't been found at the father label of the external argument"<<std::endl;
 // #endif
 //       continue;
     }
 
 #ifdef OCCT_DEBUG
-//    cout<<"TNaming_Tool::FindShape(): Searching in the external reference ";
-//    aContextNS->Label().EntryDump(cout); cout<<"  ";
+//    std::cout<<"TNaming_Tool::FindShape(): Searching in the external reference ";
+//    aContextNS->Label().EntryDump(std::cout); std::cout<<"  ";
 #endif
     
     // Lets find the sub shape of the context which coincides with our sub shapes (subShapes map):
@@ -637,14 +637,14 @@ void TNaming_Tool::FindShape(const TDF_LabelMap&               Valid,
       for (TopTools_MapIteratorOfMapOfShape itrR(subShapesOfResult); itrR.More(); itrR.Next()) {
        for (TopTools_MapIteratorOfMapOfShape itr1(subShapes); itr1.More(); itr1.Next()) {
          if (itrR.Key().IsSame(itr1.Key())) {
-           DoesCoincide++; //cout<<".";
+           DoesCoincide++; //std::cout<<".";
            break;
          }
        }
       }
       if (DoesCoincide == subShapes.Extent()) {
 #ifdef OCCT_DEBUG
-//     cout<<"TNaming_Tool::FindShape(): Found! ";
+//     std::cout<<"TNaming_Tool::FindShape(): Found! ";
 #endif
        S = possibleResult;
        break;
@@ -653,14 +653,14 @@ void TNaming_Tool::FindShape(const TDF_LabelMap&               Valid,
 
     if (!S.IsNull()) break;
 #ifdef OCCT_DEBUG
-//    cout<<endl;
+//    std::cout<<std::endl;
 #endif
 
   }
 
 #ifdef OCCT_DEBUG
   if (S.IsNull()) {
-    cout<<"TNaming_Tool::FindShape(): There hasn't been found a sub shape of the context shape coinciding with the sub shapes of naming"<<endl;
+    std::cout<<"TNaming_Tool::FindShape(): There hasn't been found a sub shape of the context shape coinciding with the sub shapes of naming"<<std::endl;
   }
 #endif
       
index 06f905c..e8e7b18 100644 (file)
@@ -179,7 +179,7 @@ void TNaming_TranslateTool::UpdateVertex
 
   // Representations
   BRep_ListIteratorOfListOfPointRepresentation itpr(TTV1->Points());
-//  cout << "Vertex List Extent = "<<  TTV1->Points().Extent()<< endl;//  == 0 ???
+//  std::cout << "Vertex List Extent = "<<  TTV1->Points().Extent()<< std::endl;//  == 0 ???
   BRep_ListOfPointRepresentation& lpr = TTV2->ChangePoints();
   lpr.Clear();
 
index dc989bc..3aa4d2d 100644 (file)
@@ -119,11 +119,11 @@ void TNaming_Translator::DumpMap(const Standard_Boolean isWrite) const
 
   if (!myMap.Extent()) return;
   else 
-    cout <<"TNaming_Translator:: IndexedDataMap Extent = "<< myMap.Extent() << endl;
+    std::cout <<"TNaming_Translator:: IndexedDataMap Extent = "<< myMap.Extent() << std::endl;
   
   for (Standard_Integer i=1; i <= myMap.Extent(); i++)
     {
-      cout <<"TNaming_Translator::DumpMap:  Index = "<< i << " Type = "<< (myMap.FindKey(i))->DynamicType() << endl;
+      std::cout <<"TNaming_Translator::DumpMap:  Index = "<< i << " Type = "<< (myMap.FindKey(i))->DynamicType() << std::endl;
       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)||
@@ -144,14 +144,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));
-           cout << "TNaming_Translator::DumpMap: Location_Key_name  = "<< keyname.Cat(i).ToCString()<< endl;
-           key->ShallowDump(cout);
-           cout << "TNaming_Translator::DumpMap: Location_Item_name = "<< itemname.Cat(i).ToCString()<< endl;
-           Item->ShallowDump(cout);
+           std::cout << "TNaming_Translator::DumpMap: Location_Key_name  = "<< keyname.Cat(i).ToCString()<< std::endl;
+           key->ShallowDump(std::cout);
+           std::cout << "TNaming_Translator::DumpMap: Location_Item_name = "<< itemname.Cat(i).ToCString()<< std::endl;
+           Item->ShallowDump(std::cout);
          }                                                    
        }
       else {
-       cout <<"TNaming_Translator::DumpMap: Unexpected Type >> Idex = "<< i << " Type = "<<(myMap.FindKey(i))->DynamicType()<< endl;
+       std::cout <<"TNaming_Translator::DumpMap: Unexpected Type >> Idex = "<< i << " Type = "<<(myMap.FindKey(i))->DynamicType()<< std::endl;
        continue;
       }
     }
index fed0cb0..d7f883d 100644 (file)
@@ -156,14 +156,14 @@ void  TNaming_UsedShapes::Paste(const Handle(TDF_Attribute)&,
 
 Standard_OStream& TNaming_UsedShapes::Dump(Standard_OStream& anOS) const
 {
-  anOS<<"The content of UsedShapes attribute:"<<endl;
+  anOS<<"The content of UsedShapes attribute:"<<std::endl;
   TNaming_DataMapIteratorOfDataMapOfShapePtrRefShape itr(myMap);
   for (; itr.More(); itr.Next()) {
     if (itr.Key().IsNull())
     {
       anOS << "Empty Shape at label =";
       itr.Value()->Label().EntryDump(anOS);
-      anOS << endl;
+      anOS << std::endl;
       continue;
     }
     anOS << "  ";
@@ -172,7 +172,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<<endl;
+    anOS<<std::endl;
   }
   return anOS;
 }
index 5aca257..c03a605 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() << endl;
+    theOs << it.Key() << std::endl;
   }
 }
index 9f399f7..cb9b880 100644 (file)
@@ -238,7 +238,7 @@ void TPrsStd_ConstraintTools::ComputeDistance (const Handle(TDataXtd_Constraint)
   if (aGeomNum < 1 || aGeomNum > 2)
   {
 #ifdef OCCT_DEBUG
-    cout <<  "TPrsStd_ConstraintTools::ComputeDistance: 1 or 2 geometries are needed" << endl;
+    std::cout <<  "TPrsStd_ConstraintTools::ComputeDistance: 1 or 2 geometries are needed" << std::endl;
 #endif
     NullifyAIS(theAIS);
     return;
@@ -256,7 +256,7 @@ void TPrsStd_ConstraintTools::ComputeDistance (const Handle(TDataXtd_Constraint)
     if (aShape1.IsNull())
     {
       #ifdef OCCT_DEBUG
-      cout << "TPrsStd_ConstraintTools::ComputeDistance : null shape" << endl;
+      std::cout << "TPrsStd_ConstraintTools::ComputeDistance : null shape" << std::endl;
       #endif
       NullifyAIS (theAIS);
       return;
@@ -269,7 +269,7 @@ void TPrsStd_ConstraintTools::ComputeDistance (const Handle(TDataXtd_Constraint)
     if (aShape1.IsNull() || aShape2.IsNull())
     {
       #ifdef OCCT_DEBUG
-      cout << "TPrsStd_ConstraintTools::ComputeDistance : null shape" << endl;
+      std::cout << "TPrsStd_ConstraintTools::ComputeDistance : null shape" << std::endl;
       #endif
       NullifyAIS (theAIS);
       return;
@@ -318,7 +318,7 @@ void TPrsStd_ConstraintTools::ComputeDistance (const Handle(TDataXtd_Constraint)
     if (aShape1.ShapeType () != TopAbs_EDGE)
     {
       #ifdef OCCT_DEBUG
-      cout << "TPrsStd_ConstraintTools::ComputeDistance : shape should be edge" << endl;
+      std::cout << "TPrsStd_ConstraintTools::ComputeDistance : shape should be edge" << std::endl;
       #endif
       NullifyAIS (theAIS);
       return;
@@ -406,7 +406,7 @@ void TPrsStd_ConstraintTools::ComputeDistance (const Handle(TDataXtd_Constraint)
   if (isCheckPlane && aPlane.IsNull())
   {
     #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeDistance : null plane" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeDistance : null plane" << std::endl;
     #endif
     NullifyAIS (theAIS);
     return;
@@ -465,7 +465,7 @@ void TPrsStd_ConstraintTools::ComputePerpendicular(const Handle(TDataXtd_Constra
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 2) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputePerpendicular: at leat two constraintes are needed" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputePerpendicular: at leat two constraintes are needed" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -479,7 +479,7 @@ void TPrsStd_ConstraintTools::ComputePerpendicular(const Handle(TDataXtd_Constra
   else GetTwoShapes(aConst,shape1,shape2); 
   if (shape1.IsNull() || shape2.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputePerpendicular : null shape" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputePerpendicular : null shape" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -504,7 +504,7 @@ void TPrsStd_ConstraintTools::ComputePerpendicular(const Handle(TDataXtd_Constra
     Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom3);
     if (aplane.IsNull()) {
 #ifdef OCCT_DEBUG
-      cout << "TPrsStd_ConstraintTools::ComputePerpendicular: nul plane" << endl;
+      std::cout << "TPrsStd_ConstraintTools::ComputePerpendicular: nul plane" << std::endl;
 #endif
       NullifyAIS(anAIS);
       return;
@@ -524,7 +524,7 @@ void TPrsStd_ConstraintTools::ComputeParallel(const Handle(TDataXtd_Constraint)&
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 2) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeParallel: at least 2 constraintes are needed" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeParallel: at least 2 constraintes are needed" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -532,7 +532,7 @@ void TPrsStd_ConstraintTools::ComputeParallel(const Handle(TDataXtd_Constraint)&
   
   if (!aConst->IsPlanar()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeParallel: must be a planar constraint" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeParallel: must be a planar constraint" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -544,7 +544,7 @@ void TPrsStd_ConstraintTools::ComputeParallel(const Handle(TDataXtd_Constraint)&
   GetShapesAndGeom(aConst,shape1,shape2,ageom3);
   if (shape1.IsNull() || shape2.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeParallel : null shape" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeParallel : null shape" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -552,7 +552,7 @@ void TPrsStd_ConstraintTools::ComputeParallel(const Handle(TDataXtd_Constraint)&
   Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom3);
   if (aplane.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeParallel: nul plane" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeParallel: nul plane" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -585,7 +585,7 @@ void TPrsStd_ConstraintTools::ComputeSymmetry(const Handle(TDataXtd_Constraint)&
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 3) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeSymmetry: at least 3 constraintes are needed" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeSymmetry: at least 3 constraintes are needed" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -594,7 +594,7 @@ void TPrsStd_ConstraintTools::ComputeSymmetry(const Handle(TDataXtd_Constraint)&
   Standard_Boolean is_planar(aConst->IsPlanar());
   if (!is_planar) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeSymmetry: must be a planar constraint" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeSymmetry: must be a planar constraint" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -606,7 +606,7 @@ void TPrsStd_ConstraintTools::ComputeSymmetry(const Handle(TDataXtd_Constraint)&
 
   if (shape1.IsNull() || shape2.IsNull() || shape3.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeSymmetry : null shape" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeSymmetry : null shape" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -617,7 +617,7 @@ void TPrsStd_ConstraintTools::ComputeSymmetry(const Handle(TDataXtd_Constraint)&
   Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom3);
   if (aplane.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeSymmetry: null plane" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeSymmetry: null plane" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -651,7 +651,7 @@ void TPrsStd_ConstraintTools::ComputeMidPoint(const Handle(TDataXtd_Constraint)&
   if (nbgeom < 3)
     {
 #ifdef OCCT_DEBUG
-      cout << "TPrsStd_ConstraintTools::ComputeSymmetry: at least 3 constraints are needed" << endl;
+      std::cout << "TPrsStd_ConstraintTools::ComputeSymmetry: at least 3 constraints are needed" << std::endl;
 #endif
       NullifyAIS(anAIS);
       return;
@@ -661,7 +661,7 @@ void TPrsStd_ConstraintTools::ComputeMidPoint(const Handle(TDataXtd_Constraint)&
   if ( !is_planar )
     {
 #ifdef OCCT_DEBUG
-      cout << "TPrsStd_ConstraintTools::ComputeSymmetry: must be a planar constraint" << endl;
+      std::cout << "TPrsStd_ConstraintTools::ComputeSymmetry: must be a planar constraint" << std::endl;
 #endif
       NullifyAIS(anAIS);
       return;
@@ -674,7 +674,7 @@ void TPrsStd_ConstraintTools::ComputeMidPoint(const Handle(TDataXtd_Constraint)&
   if (shape1.IsNull() || shape2.IsNull() || shape3.IsNull())
     {
 #ifdef OCCT_DEBUG
-      cout << "TPrsStd_ConstraintTools::ComputeSymmetry : null shape" << endl;
+      std::cout << "TPrsStd_ConstraintTools::ComputeSymmetry : null shape" << std::endl;
 #endif
       NullifyAIS(anAIS);
       return;
@@ -687,7 +687,7 @@ void TPrsStd_ConstraintTools::ComputeMidPoint(const Handle(TDataXtd_Constraint)&
   if (aplane.IsNull())
     {
 #ifdef OCCT_DEBUG
-      cout << "TPrsStd_ConstraintTools::ComputeSymmetry: null plane" << endl;
+      std::cout << "TPrsStd_ConstraintTools::ComputeSymmetry: null plane" << std::endl;
 #endif
       NullifyAIS(anAIS);
       return;
@@ -724,14 +724,14 @@ void TPrsStd_ConstraintTools::ComputeTangent (const Handle(TDataXtd_Constraint)&
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 2) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeTangent: at leat two constraintes are needed" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeTangent: at leat two constraintes are needed" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
   }
   if (!aConst->IsPlanar()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeTangent: must be a planar constraint" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeTangent: must be a planar constraint" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -742,7 +742,7 @@ void TPrsStd_ConstraintTools::ComputeTangent (const Handle(TDataXtd_Constraint)&
   GetShapesAndGeom(aConst,shape1,shape2,ageom3);
   if (shape1.IsNull() || shape2.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeTangent : null shape" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeTangent : null shape" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -752,7 +752,7 @@ void TPrsStd_ConstraintTools::ComputeTangent (const Handle(TDataXtd_Constraint)&
   Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom3);
   if (aplane.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeTangent: nul plane" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeTangent: nul plane" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;    
@@ -797,7 +797,7 @@ void TPrsStd_ConstraintTools::ComputeAngleForOneFace (const Handle(TDataXtd_Cons
   GetOneShape( aConst, shape ); 
   if (shape.IsNull() ) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeAngleForOneFace : null shape" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeAngleForOneFace : null shape" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -847,7 +847,7 @@ static Standard_Boolean CheckIsShapeCompound(TopoDS_Shape& shape, TopoDS_Face& a
       }
   }
 #ifdef OCCT_DEBUG
-  cout << "TPrsStd::Compute angle : Shape is not Compound or is Null" <<endl;
+  std::cout << "TPrsStd::Compute angle : Shape is not Compound or is Null" <<std::endl;
 #endif
   return (Standard_False);
 }
@@ -864,7 +864,7 @@ void TPrsStd_ConstraintTools::ComputeAngle (const Handle(TDataXtd_Constraint)& a
   if (nbgeom < 2) {
     if( nbgeom == 1 ) { ComputeAngleForOneFace( aConst, anAIS ); return; }
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeAngle: at least 2 constraints are needed" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeAngle: at least 2 constraints are needed" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -876,7 +876,7 @@ void TPrsStd_ConstraintTools::ComputeAngle (const Handle(TDataXtd_Constraint)& a
   GetShapesAndGeom (aConst,shape1,shape2,ageom3);
   if (shape1.IsNull() || shape2.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeAngle : null shape" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeAngle : null shape" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -900,8 +900,8 @@ void TPrsStd_ConstraintTools::ComputeAngle (const Handle(TDataXtd_Constraint)& a
       else
        if(!CheckIsShapeCompound(shape1, aFace)) {
 #ifdef OCCT_DEBUG
-       cout << "Compute angle : Geom type = " << shape1.ShapeType()
-         << " non traite"<<endl;
+       std::cout << "Compute angle : Geom type = " << shape1.ShapeType()
+         << " non traite"<<std::endl;
 #endif
        NullifyAIS(anAIS);
        return;      
@@ -926,7 +926,7 @@ void TPrsStd_ConstraintTools::ComputeAngle (const Handle(TDataXtd_Constraint)& a
       anax1aFace1 = aTore.Axis();  
     } else {
 #ifdef OCCT_DEBUG
-      cout<<"Compute angle"<<aTypeaFace<<" non traite"<<endl;
+      std::cout<<"Compute angle"<<aTypeaFace<<" non traite"<<std::endl;
 #endif
       NullifyAIS(anAIS);
       return;      
@@ -947,8 +947,8 @@ void TPrsStd_ConstraintTools::ComputeAngle (const Handle(TDataXtd_Constraint)& a
     else  
       if(!CheckIsShapeCompound(shape2, aFace)) {
 #ifdef OCCT_DEBUG
-       cout << "Compute angle : Geom type = " << shape2.ShapeType()
-         << " non traite"<<endl;
+       std::cout << "Compute angle : Geom type = " << shape2.ShapeType()
+         << " non traite"<<std::endl;
 #endif
        NullifyAIS(anAIS);
        return;      
@@ -970,7 +970,7 @@ void TPrsStd_ConstraintTools::ComputeAngle (const Handle(TDataXtd_Constraint)& a
       anax1aFace2 = aTore.Axis();  
     } else {
 #ifdef OCCT_DEBUG
-      cout << "Compute angle " << aTypeaFace << " non traite"<<endl;
+      std::cout << "Compute angle " << aTypeaFace << " non traite"<<std::endl;
 #endif
       NullifyAIS(anAIS);
       return;      
@@ -987,7 +987,7 @@ void TPrsStd_ConstraintTools::ComputeAngle (const Handle(TDataXtd_Constraint)& a
          ageom3 = computedgeom3;
        } else {
 #ifdef OCCT_DEBUG
-         cout<<"Compute angle insertection of planes failed"<<endl;
+         std::cout<<"Compute angle insertection of planes failed"<<std::endl;
 #endif
          NullifyAIS(anAIS);
          return;            
@@ -995,7 +995,7 @@ void TPrsStd_ConstraintTools::ComputeAngle (const Handle(TDataXtd_Constraint)& a
       } else {
        
 #ifdef OCCT_DEBUG
-       cout<<"Compute angle faces are //"<<endl;
+       std::cout<<"Compute angle faces are //"<<std::endl;
 #endif
        NullifyAIS(anAIS);
        return;            
@@ -1014,7 +1014,7 @@ void TPrsStd_ConstraintTools::ComputeAngle (const Handle(TDataXtd_Constraint)& a
     else if (ageom3->IsKind(STANDARD_TYPE(Geom_Line))) isplan = Standard_False;
     else {
 #ifdef OCCT_DEBUG
-      cout << "TPrsStd_ConstraintTools::ComputeAngle: unknown 3rd arg " << endl;
+      std::cout << "TPrsStd_ConstraintTools::ComputeAngle: unknown 3rd arg " << std::endl;
 #endif
       NullifyAIS(anAIS);
       return;
@@ -1092,7 +1092,7 @@ void TPrsStd_ConstraintTools::ComputeConcentric(const Handle(TDataXtd_Constraint
   }
   if (!aConst->IsPlanar()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeConcentric: must be a planar constraint" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeConcentric: must be a planar constraint" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1103,7 +1103,7 @@ void TPrsStd_ConstraintTools::ComputeConcentric(const Handle(TDataXtd_Constraint
   GetShapesAndGeom(aConst,shape1,shape2,ageom3);
   if (shape1.IsNull() || shape2.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeConcentric : null shape" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeConcentric : null shape" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1115,7 +1115,7 @@ void TPrsStd_ConstraintTools::ComputeConcentric(const Handle(TDataXtd_Constraint
 //ota : to allow concentric constraint display between vertex and edge
   if (shape1.ShapeType() != TopAbs_EDGE && shape2.ShapeType() != TopAbs_EDGE) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeConcentric: concentric between two vertexes : NOT DISPLAYED" << endl;;
+    std::cout << "TPrsStd_ConstraintTools::ComputeConcentric: concentric between two vertexes : NOT DISPLAYED" << std::endl;;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1124,7 +1124,7 @@ void TPrsStd_ConstraintTools::ComputeConcentric(const Handle(TDataXtd_Constraint
   Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom3);
   if (aplane.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeConcentric: nul plane" << endl;;
+    std::cout << "TPrsStd_ConstraintTools::ComputeConcentric: nul plane" << std::endl;;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1159,7 +1159,7 @@ void TPrsStd_ConstraintTools::ComputeRadius (const Handle(TDataXtd_Constraint)&
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 1) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeRadius: at least one constrainte is needed" << endl;    
+    std::cout << "TPrsStd_ConstraintTools::ComputeRadius: at least one constrainte is needed" << std::endl;    
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1169,7 +1169,7 @@ void TPrsStd_ConstraintTools::ComputeRadius (const Handle(TDataXtd_Constraint)&
   GetOneShape (aConst,shape1);
   if (shape1.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeRadius: null shape" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeRadius: null shape" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1181,7 +1181,7 @@ void TPrsStd_ConstraintTools::ComputeRadius (const Handle(TDataXtd_Constraint)&
       shape1.ShapeType()==TopAbs_SOLID ||
       shape1.ShapeType()==TopAbs_SHELL ) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeRadius: not good shape" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeRadius: not good shape" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1216,7 +1216,7 @@ void TPrsStd_ConstraintTools::ComputeRadius (const Handle(TDataXtd_Constraint)&
     Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom2);
     if (aplane.IsNull()) {
 #ifdef OCCT_DEBUG
-      cout << "TPrsStd_ConstraintTools::ComputeRadius: nul plane" << endl;
+      std::cout << "TPrsStd_ConstraintTools::ComputeRadius: nul plane" << std::endl;
 #endif
       NullifyAIS(anAIS);
       return;
@@ -1236,7 +1236,7 @@ void TPrsStd_ConstraintTools::ComputeMinRadius (const Handle(TDataXtd_Constraint
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 1) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeMinRadius: at least one constrainte is needed" << endl;    
+    std::cout << "TPrsStd_ConstraintTools::ComputeMinRadius: at least one constrainte is needed" << std::endl;    
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1246,7 +1246,7 @@ void TPrsStd_ConstraintTools::ComputeMinRadius (const Handle(TDataXtd_Constraint
   GetOneShape (aConst,shape1);
   if (shape1.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeMinradius: null shape" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeMinradius: null shape" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1258,7 +1258,7 @@ void TPrsStd_ConstraintTools::ComputeMinRadius (const Handle(TDataXtd_Constraint
       shape1.ShapeType()==TopAbs_SOLID ||
       shape1.ShapeType()==TopAbs_SHELL ) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeMinRadius: not good shape" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeMinRadius: not good shape" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1295,7 +1295,7 @@ void TPrsStd_ConstraintTools::ComputeMinRadius (const Handle(TDataXtd_Constraint
     Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom2);
     if (aplane.IsNull()) {
 #ifdef OCCT_DEBUG
-      cout << "TPrsStd_ConstraintTools::ComputeMinRadius: nul plane" << endl;
+      std::cout << "TPrsStd_ConstraintTools::ComputeMinRadius: nul plane" << std::endl;
 #endif
       NullifyAIS(anAIS);
       return;
@@ -1315,7 +1315,7 @@ void TPrsStd_ConstraintTools::ComputeMaxRadius (const Handle(TDataXtd_Constraint
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 1) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeMaxRadius: at least one constrainte is needed" << endl;    
+    std::cout << "TPrsStd_ConstraintTools::ComputeMaxRadius: at least one constrainte is needed" << std::endl;    
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1325,7 +1325,7 @@ void TPrsStd_ConstraintTools::ComputeMaxRadius (const Handle(TDataXtd_Constraint
   GetOneShape (aConst,shape1);
   if (shape1.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeMaxradius: null shape" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeMaxradius: null shape" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1337,7 +1337,7 @@ void TPrsStd_ConstraintTools::ComputeMaxRadius (const Handle(TDataXtd_Constraint
       shape1.ShapeType()==TopAbs_SOLID ||
       shape1.ShapeType()==TopAbs_SHELL ) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeMaxRadius: not good shape" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeMaxRadius: not good shape" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1374,7 +1374,7 @@ void TPrsStd_ConstraintTools::ComputeMaxRadius (const Handle(TDataXtd_Constraint
     Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom2);
     if (aplane.IsNull()) {
 #ifdef OCCT_DEBUG
-      cout << "TPrsStd_ConstraintTools::ComputeMaxRadius: nul plane" << endl;
+      std::cout << "TPrsStd_ConstraintTools::ComputeMaxRadius: nul plane" << std::endl;
 #endif
       NullifyAIS(anAIS);
       return;
@@ -1394,7 +1394,7 @@ void TPrsStd_ConstraintTools::ComputeEqualDistance(const Handle(TDataXtd_Constra
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 4) {
 #ifdef OCCT_DEBUG
-      cout << "TPrsStd_ConstraintTools::ComputeEqual: at least four geometries are needed" << endl;;
+      std::cout << "TPrsStd_ConstraintTools::ComputeEqual: at least four geometries are needed" << std::endl;;
 #endif
       NullifyAIS(anAIS);
       return;
@@ -1405,7 +1405,7 @@ void TPrsStd_ConstraintTools::ComputeEqualDistance(const Handle(TDataXtd_Constra
    if (aShape1.IsNull()||aShape2.IsNull()||
        aShape3.IsNull()||aShape4.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeEqualDistance : null shape" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeEqualDistance : null shape" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1419,7 +1419,7 @@ void TPrsStd_ConstraintTools::ComputeEqualDistance(const Handle(TDataXtd_Constra
   if (!CheckShapesPair(aShape1, aShape2) || 
       !CheckShapesPair(aShape3, aShape4)){
 #ifdef OCCT_DEBUG
-       cout << "TPrsStd_ConstraintTools::ComputeEqualDistance : at least one pair of shapes is incorrect"<<endl;
+       std::cout << "TPrsStd_ConstraintTools::ComputeEqualDistance : at least one pair of shapes is incorrect"<<std::endl;
 #endif
        NullifyAIS(anAIS);
        return;
@@ -1433,7 +1433,7 @@ void TPrsStd_ConstraintTools::ComputeEqualDistance(const Handle(TDataXtd_Constra
   if (!IsPlanar || aPlane.IsNull()) {
     //create the plane
 #ifdef OCCT_DEBUG
-    cout<< "The constraint plane is not assigned "<< endl;
+    std::cout<< "The constraint plane is not assigned "<< std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1488,7 +1488,7 @@ static Standard_Boolean CheckShapesPair(const TopoDS_Shape& aShape1,
          gp_Dir aDir2 = aCurve2.Line().Direction();
          if (!(aDir1.IsParallel(aDir2, Precision::Confusion()))) {
 #ifdef OCCT_DEBUG
-           cout << " Lines are not parallel"<<endl;
+           std::cout << " Lines are not parallel"<<std::endl;
 #endif
            return Standard_False;
          }
@@ -1499,14 +1499,14 @@ static Standard_Boolean CheckShapesPair(const TopoDS_Shape& aShape1,
          gp_Pnt aCntr2 = aCurve2.Circle().Location(); //get the circle center
          if (!aCntr1.IsEqual(aCntr2,Precision::Confusion())){
 #ifdef OCCT_DEBUG
-           cout << " Circles are not concentric"<<endl;
+           std::cout << " Circles are not concentric"<<std::endl;
 #endif
            return Standard_False;
          }
        }
       else {
 #ifdef OCCT_DEBUG
-       cout << "Incorrect pair of curves "<<endl;
+       std::cout << "Incorrect pair of curves "<<std::endl;
 #endif
        return Standard_False;
       }
@@ -1528,7 +1528,7 @@ static Standard_Boolean CheckShapesPair(const TopoDS_Shape& aShape1,
          gp_Pnt aCntr = aCurve.Circle().Location();
          if (!aCntr.IsEqual(aPnt, Precision::Confusion())){
 #ifdef OCCT_DEBUG
-           cout << " The point doesn't coincide with the circle center"<<endl;
+           std::cout << " The point doesn't coincide with the circle center"<<std::endl;
 #endif
            return Standard_False;
          }
@@ -1547,7 +1547,7 @@ void TPrsStd_ConstraintTools::ComputeEqualRadius(const Handle(TDataXtd_Constrain
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 2) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeEqualRadius: at least two geometries are needed" << endl;;
+    std::cout << "TPrsStd_ConstraintTools::ComputeEqualRadius: at least two geometries are needed" << std::endl;;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1558,7 +1558,7 @@ void TPrsStd_ConstraintTools::ComputeEqualRadius(const Handle(TDataXtd_Constrain
   GetShapesAndGeom(aConst, shape1, shape2, ageom3);
   if (shape1.IsNull()||shape2.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeEqualRadius : null shape" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeEqualRadius : null shape" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1602,7 +1602,7 @@ void TPrsStd_ConstraintTools::ComputeEqualRadius(const Handle(TDataXtd_Constrain
       aplane = aPlane2;
     else {
 #ifdef OCCT_DEBUG
-      cout << "TPrsStd_ConstraintTools::ComputeRadiusRelation: nul plane" << endl;
+      std::cout << "TPrsStd_ConstraintTools::ComputeRadiusRelation: nul plane" << std::endl;
 #endif
       NullifyAIS(anAIS);
       return;
@@ -1639,7 +1639,7 @@ void TPrsStd_ConstraintTools::ComputeDiameter(const Handle(TDataXtd_Constraint)&
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 1) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeDiameter: at least one constrainte is needed" << endl;;
+    std::cout << "TPrsStd_ConstraintTools::ComputeDiameter: at least one constrainte is needed" << std::endl;;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1649,7 +1649,7 @@ void TPrsStd_ConstraintTools::ComputeDiameter(const Handle(TDataXtd_Constraint)&
   GetOneShape(aConst,shape1);
   if (shape1.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeDiameter : null shape" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeDiameter : null shape" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1679,7 +1679,7 @@ void TPrsStd_ConstraintTools::ComputeDiameter(const Handle(TDataXtd_Constraint)&
     Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom2);
     if (aplane.IsNull()) {
 #ifdef OCCT_DEBUG
-      cout << "TPrsStd_ConstraintTools::ComputeDiameter: nul plane" << endl;
+      std::cout << "TPrsStd_ConstraintTools::ComputeDiameter: nul plane" << std::endl;
 #endif
       NullifyAIS(anAIS);
       return;
@@ -1700,14 +1700,14 @@ void TPrsStd_ConstraintTools::ComputeFix(const Handle(TDataXtd_Constraint)& aCon
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 1) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeFix: at least one constrainte is needed" << endl;;
+    std::cout << "TPrsStd_ConstraintTools::ComputeFix: at least one constrainte is needed" << std::endl;;
 #endif
     NullifyAIS(anAIS);
     return;
   }
   if (!aConst->IsPlanar()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeFix: must be a planar constraint" << endl;;
+    std::cout << "TPrsStd_ConstraintTools::ComputeFix: must be a planar constraint" << std::endl;;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1719,7 +1719,7 @@ void TPrsStd_ConstraintTools::ComputeFix(const Handle(TDataXtd_Constraint)& aCon
   GetOneShape(aConst,shape1);
   if (shape1.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeFix : null shape" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeFix : null shape" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1729,7 +1729,7 @@ void TPrsStd_ConstraintTools::ComputeFix(const Handle(TDataXtd_Constraint)& aCon
   Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast(ageom2);
   if (aplane.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeFix: nul plane" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeFix: nul plane" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1767,7 +1767,7 @@ void TPrsStd_ConstraintTools::ComputeOffset (const Handle(TDataXtd_Constraint)&
     aplane = Handle(Geom_Plane)::DownCast (ageom);
     if (aplane.IsNull()) {
 #ifdef OCCT_DEBUG
-      cout << "TPrsStd_ConstraintTools::ComputeOffset: null plane" << endl;
+      std::cout << "TPrsStd_ConstraintTools::ComputeOffset: null plane" << std::endl;
 #endif
       NullifyAIS(anAIS);
       return;
@@ -1794,7 +1794,7 @@ void TPrsStd_ConstraintTools::ComputeOffset (const Handle(TDataXtd_Constraint)&
 
   if (S1.IsNull() || S2.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeOffset: null shape" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeOffset: null shape" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -1926,7 +1926,7 @@ void TPrsStd_ConstraintTools::ComputeOffset (const Handle(TDataXtd_Constraint)&
   }
 
 #ifdef OCCT_DEBUG
-  cout << "TPrsStd_ConstraintTools::ComputeOffset: Case not implemented" << endl;
+  std::cout << "TPrsStd_ConstraintTools::ComputeOffset: Case not implemented" << std::endl;
 #endif
   NullifyAIS(anAIS);
 }
@@ -1948,7 +1948,7 @@ void TPrsStd_ConstraintTools::ComputePlacement
   GetTwoShapes(aConst,shape1,shape2);
   if (shape1.IsNull() || shape2.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputePlacement: nul shape" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputePlacement: nul shape" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -2079,7 +2079,7 @@ void TPrsStd_ConstraintTools::ComputeCoincident(const Handle(TDataXtd_Constraint
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 2) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeCoincident: at leat two constraintes are needed" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeCoincident: at leat two constraintes are needed" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return; 
@@ -2087,7 +2087,7 @@ void TPrsStd_ConstraintTools::ComputeCoincident(const Handle(TDataXtd_Constraint
   
   if (!aConst->IsPlanar()) { 
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeCoincident: must be a planar constraint" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeCoincident: must be a planar constraint" << std::endl;
 #endif
     anAIS.Nullify() ; 
     return;
@@ -2099,7 +2099,7 @@ void TPrsStd_ConstraintTools::ComputeCoincident(const Handle(TDataXtd_Constraint
   Handle(Geom_Plane) aplane = Handle(Geom_Plane)::DownCast (ageom);
   if (shape1.IsNull() || shape2.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeCoincident: nul shape" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeCoincident: nul shape" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -2109,7 +2109,7 @@ void TPrsStd_ConstraintTools::ComputeCoincident(const Handle(TDataXtd_Constraint
   GetGoodShape(shape2);
   if (aplane.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeCoincident: nul plane" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeCoincident: nul plane" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -2142,7 +2142,7 @@ void TPrsStd_ConstraintTools::ComputeRound(const Handle(TDataXtd_Constraint)& aC
   Standard_Integer nbgeom = aConst->NbGeometries();
   if (nbgeom < 1) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputeRound: at leat one geometry is needed" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputeRound: at leat one geometry is needed" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return; 
@@ -2151,7 +2151,7 @@ void TPrsStd_ConstraintTools::ComputeRound(const Handle(TDataXtd_Constraint)& aC
   GetOneShape (aConst,shape1);
   if (shape1.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout << "TPrsStd_ConstraintTools::ComputePlacement: nul shape" << endl;
+    std::cout << "TPrsStd_ConstraintTools::ComputePlacement: nul shape" << std::endl;
 #endif
     NullifyAIS(anAIS);
     return;
@@ -2196,7 +2196,7 @@ void TPrsStd_ConstraintTools::GetGeom(const Handle(TDataXtd_Constraint)& aConst,
   Handle(TNaming_NamedShape) atgeom = aConst->GetPlane();
   if (atgeom.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout<<"TPrsStd_ConstraintTools::GetGeom : aConst->GetPlane().IsNull()"<<endl;
+    std::cout<<"TPrsStd_ConstraintTools::GetGeom : aConst->GetPlane().IsNull()"<<std::endl;
 #endif
     return;
   }
@@ -2217,7 +2217,7 @@ void TPrsStd_ConstraintTools::GetGeom(const Handle(TDataXtd_Constraint)& aConst,
   else if (TDataXtd_Geometry::Point(label,apoint)) aGeom =  new Geom_CartesianPoint(apoint);
 #ifdef OCCT_DEBUG
   else {
-    cout << "TPrsStd_ConstraintTools::GetGeom no geom on label " << endl;
+    std::cout << "TPrsStd_ConstraintTools::GetGeom no geom on label " << std::endl;
   }
 #endif  
 }
index 242a259..32771cd 100644 (file)
@@ -48,7 +48,7 @@ Handle(TPrsStd_DriverTable) TPrsStd_DriverTable::Get()
   {
     drivertable = new TPrsStd_DriverTable;
 #ifdef OCCT_DEBUG
-    cout << "The new TPrsStd_DriverTable was created" << endl;
+    std::cout << "The new TPrsStd_DriverTable was created" << std::endl;
 #endif
   }
   return drivertable;
index a5a77b0..60b24e7 100644 (file)
@@ -37,7 +37,7 @@ void TopClass_Classifier3d::Compare(const TopoDS_Face&        Face,
                                    const TopAbs_Orientation) {  
   if(!isSet) { 
 #ifdef OCCT_DEBUG
-    cout<<" Call to TopClass_Classifier3d::Compare  without a Reset ! ";
+    std::cout<<" Call to TopClass_Classifier3d::Compare  without a Reset ! ";
 #endif
     return;
   }
@@ -53,7 +53,7 @@ void TopClass_Classifier3d::Compare(const TopoDS_Face&        Face,
        if(Abs(myParam)<=myTolerance) { 
          //-- #########################################
 #ifdef OCCT_DEBUG
-         cout<<" myParam = "<<myParam<<" ds TopClass_Classifier3d.gxx  "<<endl;
+         std::cout<<" myParam = "<<myParam<<" ds TopClass_Classifier3d.gxx  "<<std::endl;
 #endif
          //-- #########################################
          myState = TopAbs_ON;
@@ -70,7 +70,7 @@ void TopClass_Classifier3d::Compare(const TopoDS_Face&        Face,
          }
 #ifdef OCCT_DEBUG
     else { 
-           cout<<" -------- Probleme ds TopClass_Classifier3d.gxx "<<endl;
+           std::cout<<" -------- Probleme ds TopClass_Classifier3d.gxx "<<std::endl;
     }
 #endif
        }
index df31c4a..42a439e 100644 (file)
@@ -82,8 +82,8 @@ void TopClass_SolidClassifier::Perform(TheSolidExplorer& SolidExplorer,
 #ifdef OCCT_DEBUG
                    if (trace) {
                      //-- #########################################
-                     cout<<" parmin = "<<parmin<< " avec Par = "<<Par;
-                     cout<<" ds TopClass_SolidClassifier.gxx  "<<endl;
+                     std::cout<<" parmin = "<<parmin<< " avec Par = "<<Par;
+                     std::cout<<" ds TopClass_SolidClassifier.gxx  "<<std::endl;
                      //-- #########################################
                    }
 #endif
@@ -105,7 +105,7 @@ void TopClass_SolidClassifier::Perform(TheSolidExplorer& SolidExplorer,
                    }
                    else {
 #ifdef OCCT_DEBUG
-                     cout<<"*Probleme ds TopClass_SolidClassifier.gxx"<<endl;
+                     std::cout<<"*Probleme ds TopClass_SolidClassifier.gxx"<<std::endl;
 #endif
                    }
                    myFace  = Intersector.Face();
@@ -124,7 +124,7 @@ void TopClass_SolidClassifier::Perform(TheSolidExplorer& SolidExplorer,
                    }
                    else { 
 #ifdef OCCT_DEBUG
-                     cout<<"*Probleme ds TopClass_SolidClassifier.gxx "<<endl;
+                     std::cout<<"*Probleme ds TopClass_SolidClassifier.gxx "<<std::endl;
 #endif
                    }
 #ifdef OCCT_DEBUG
index 3f5650a..c8c9c37 100644 (file)
@@ -98,7 +98,7 @@ TopAbs_Orientation  TopCnx_EdgeFaceTransition::Transition()const
       return TopAbs_REVERSED;
 #ifdef OCCT_DEBUG
     else
-      cout << "\n*** Complex Transition : unprocessed state"<<endl;
+      std::cout << "\n*** Complex Transition : unprocessed state"<<std::endl;
 #endif
   }
   else if (Bef == TopAbs_OUT) {
@@ -108,12 +108,12 @@ TopAbs_Orientation  TopCnx_EdgeFaceTransition::Transition()const
       return TopAbs_EXTERNAL;
 #ifdef OCCT_DEBUG
     else 
-      cout << "\n*** Complex Transition : unprocessed state"<<endl;
+      std::cout << "\n*** Complex Transition : unprocessed state"<<std::endl;
 #endif
   }
 #ifdef OCCT_DEBUG
   else 
-    cout << "\n*** Complex Transition : unprocessed state"<<endl;
+    std::cout << "\n*** Complex Transition : unprocessed state"<<std::endl;
 #endif
   return TopAbs_INTERNAL;
 }
index 50369d0..03984f7 100644 (file)
@@ -48,16 +48,16 @@ TopLoc_Datum3D::TopLoc_Datum3D (const gp_Trsf& T) :
 
 void  TopLoc_Datum3D::ShallowDump(Standard_OStream& S) const 
 {
-  S << " TopLoc_Datum3D " << (void*)this << endl;
+  S << " TopLoc_Datum3D " << (void*)this << std::endl;
   Standard_Integer i;
   gp_Trsf T = myTrsf;
   for (i = 1; i<=3; i++) {
-    S<<"  ( "<<setw(10)<<T.Value(i,1);
-    S<<","<<setw(10)<<T.Value(i,2);
-    S<<","<<setw(10)<<T.Value(i,3);
-    S<<","<<setw(10)<<T.Value(i,4);
+    S<<"  ( "<<std::setw(10)<<T.Value(i,1);
+    S<<","<<std::setw(10)<<T.Value(i,2);
+    S<<","<<std::setw(10)<<T.Value(i,3);
+    S<<","<<std::setw(10)<<T.Value(i,4);
     S<<")\n";
   }
-  S << endl;
+  S << std::endl;
 }
     
index 7dbce05..21c9f81 100644 (file)
@@ -239,10 +239,10 @@ void TopLoc_Location::ShallowDump(Standard_OStream& S) const
 {
   S << "TopLoc_Location : ";
   TopLoc_SListOfItemLocation items  = myItems;
-  if (items.IsEmpty()) S << "Identity"<<endl;
+  if (items.IsEmpty()) S << "Identity"<<std::endl;
   while (items.More()) {
     S<<"\n";
-    S << "       Exponent : " << items.Value().myPower <<endl;
+    S << "       Exponent : " << items.Value().myPower <<std::endl;
     items.Value().myDatum->ShallowDump(S);
     items.Next();
   }
index ee17c44..58ffc73 100644 (file)
@@ -59,7 +59,7 @@ static int Vdebfillereesd=0;void debfillereesd(void){Vdebfillereesd++;}
 static int Vdebfilleref=0;void debfilleref(void){Vdebfilleref++;}
 static int Vdebfillerfe=0;void debfillerfe(void){Vdebfillerfe++;}
 void debfillerreset(void){Vdebfillerds=Vdebfillerff=Vdebfilleree=Vdebfilleref=Vdebfillerfe=0;}
-void debfillerss(const Standard_Integer i1,const Standard_Integer i2){cout<<"+ + + + debfillerss "<<i1<<" "<<i2<<endl;}
+void debfillerss(const Standard_Integer i1,const Standard_Integer i2){std::cout<<"+ + + + debfillerss "<<i1<<" "<<i2<<std::endl;}
 
 #include <TopOpeBRepTool_KRO.hxx>
 Standard_EXPORT TOPKRO KRO_DSFILLER_TOTAL("dsfiller");
@@ -296,7 +296,7 @@ static
        Standard_Real par2; Standard_Boolean ok = FUN_tool_parE(e1,par1,e2,par2);
        if (!ok) {
 #ifdef OCCT_DEBUG
-         cout<<"**********TopOpeBRep FUN_shareNOG**********"<<endl;
+         std::cout<<"**********TopOpeBRep FUN_shareNOG**********"<<std::endl;
 #endif
          return Standard_False;
        }
@@ -329,7 +329,7 @@ void TopOpeBRep_DSFiller::Insert(const TopoDS_Shape& aS1,
   InsertIntersection(aS1,aS2,HDS,orientFORWARD);
   Complete(HDS);
 #ifdef OCCT_DEBUG
-  if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::Insert"<<endl;
+  if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::Insert"<<std::endl;
 #endif
 } // Insert
 
@@ -351,7 +351,7 @@ void TopOpeBRep_DSFiller::InsertIntersection(const TopoDS_Shape& aS1,
 #ifdef OCCT_DEBUG
   Standard_Boolean tsiff = TopOpeBRep_GettraceSIFF();
   Standard_Boolean tkro = TopOpeBRepTool_GettraceKRO();
-  if (tsiff) SIFF.Start("DSFiller debut tsif ",cout);
+  if (tsiff) SIFF.Start("DSFiller debut tsif ",std::cout);
   if (tkro) { FUN_RESET_KRO_DSFILLER(); KRO_DSFILLER_TOTAL.Start(); }
 #endif
   
@@ -557,10 +557,10 @@ void TopOpeBRep_DSFiller::InsertIntersection(const TopoDS_Shape& aS1,
   FDSSDM_prepare(HDS);
   
 #ifdef OCCT_DEBUG
-  if (tkro) KRO_DSFILLER_TOTAL.Stop();if (tsiff) SIFF.End("DSFiller fin tsif ",cout);
+  if (tkro) KRO_DSFILLER_TOTAL.Stop();if (tsiff) SIFF.End("DSFiller fin tsif ",std::cout);
 #endif
 #ifdef OCCT_DEBUG
-  if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::InsertIntersection"<<endl;
+  if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::InsertIntersection"<<std::endl;
 #endif
   
 } // InsertIntersection
@@ -581,7 +581,7 @@ void TopOpeBRep_DSFiller::Complete(const Handle(TopOpeBRepDS_HDataStructure)& HD
   RemoveUnsharedGeometry(HDS);
   Checker(HDS);
 #ifdef OCCT_DEBUG
-  if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::Complete"<<endl;
+  if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::Complete"<<std::endl;
 #endif
 } // Complete
 
@@ -593,7 +593,7 @@ void TopOpeBRep_DSFiller::GapFiller(const Handle(TopOpeBRepDS_HDataStructure)& H
 {
   TopOpeBRepDS_GapFiller GF(HDS); GF.Perform();
 #ifdef OCCT_DEBUG
-  if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::GapFiller"<<endl;
+  if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::GapFiller"<<std::endl;
 #endif
 }
 
@@ -629,7 +629,7 @@ void TopOpeBRep_DSFiller::CompleteDS(const Handle(TopOpeBRepDS_HDataStructure)&
   FUN_ds_completeforSE9(HDS); // xpu011098
   FUN_ds_complete1dForSESDM(HDS); // MSV 25.03.2002 : OCC251
 #ifdef OCCT_DEBUG
-  if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::CompleteDS"<<endl;
+  if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::CompleteDS"<<std::endl;
 #endif
 } // CompleteDS
 
@@ -643,7 +643,7 @@ void TopOpeBRep_DSFiller::Filter(const Handle(TopOpeBRepDS_HDataStructure)& HDS)
   F.ProcessEdgeInterferences();
   F.ProcessCurveInterferences();
 #ifdef OCCT_DEBUG
-  if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::Filter"<<endl;
+  if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::Filter"<<std::endl;
 #endif
 } // Filter
 
@@ -656,7 +656,7 @@ void TopOpeBRep_DSFiller::Reducer(const Handle(TopOpeBRepDS_HDataStructure)& HDS
   TopOpeBRepDS_Reducer R(HDS);
   R.ProcessEdgeInterferences();
 #ifdef OCCT_DEBUG
-  if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::Reducer"<<endl;
+  if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::Reducer"<<std::endl;
 #endif
 } // Reducer
 
@@ -699,7 +699,7 @@ void TopOpeBRep_DSFiller::RemoveUnsharedGeometry(const Handle(TopOpeBRepDS_HData
     }
   }
 #ifdef OCCT_DEBUG
-  if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::RemoveUnsharedGeometry"<<endl;
+  if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::RemoveUnsharedGeometry"<<std::endl;
 #endif
 } // RemoveUnsharedGeometry
 
@@ -711,7 +711,7 @@ void TopOpeBRep_DSFiller::Checker(const Handle(TopOpeBRepDS_HDataStructure)& /*H
 {
   // TopOpeBRepDS_Checker C(HDS); // NYI
   //#ifdef OCCT_DEBUG
-  //  if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::Checker"<<endl;
+  //  if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::Checker"<<std::endl;
   //#endif
 }
 
@@ -726,7 +726,7 @@ void TopOpeBRep_DSFiller::Insert2d
   InsertIntersection2d(aS1,aS2,HDS);
   CompleteDS2d(HDS);
 #ifdef OCCT_DEBUG
-  if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::Insert2d"<<endl;
+  if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::Insert2d"<<std::endl;
 #endif
 } // Insert
 
@@ -812,7 +812,7 @@ void TopOpeBRep_DSFiller::InsertIntersection2d
   BREP_mergePDS(HDS);
 
 #ifdef OCCT_DEBUG
-  if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::InsertIntersection2d"<<endl;
+  if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::InsertIntersection2d"<<std::endl;
 #endif
 
 } // InsertIntersection2d
@@ -838,7 +838,7 @@ void TopOpeBRep_DSFiller::CompleteDS2d(const Handle(TopOpeBRepDS_HDataStructure)
   R.ProcessEdgeInterferences();
   // TopOpeBRepDS_Checker C(HDS); // NYI
 #ifdef OCCT_DEBUG
-  if (TopOpeBRepTool_GettraceEND()) cout<<"DSFiller::CompleteDS2d"<<endl;
+  if (TopOpeBRepTool_GettraceEND()) std::cout<<"DSFiller::CompleteDS2d"<<std::endl;
 #endif
 } // CompleteDS2d
 
@@ -891,7 +891,7 @@ Standard_Boolean TopOpeBRep_DSFiller::IsContext1d(const TopoDS_Shape& aS) const
 {
   Standard_Boolean is1d = IsMadeOf1d(aS);
 #ifdef OCCT_DEBUG
-  if ( is1d ) cout<<"TopOpeBRep_DSFiller : 1d"<<endl;
+  if ( is1d ) std::cout<<"TopOpeBRep_DSFiller : 1d"<<std::endl;
 #endif
   if ( !is1d ) return Standard_False;
   return Standard_True;
@@ -949,7 +949,7 @@ Standard_Boolean TopOpeBRep_DSFiller::CheckInsert(const TopoDS_Shape& aS1,const
 {
   if (aS1.IsEqual(aS2)) {
 #ifdef OCCT_DEBUG
-    cout<<"TopOpeBRep_DSFiller : CheckInsert : S1 == S2"<<endl;
+    std::cout<<"TopOpeBRep_DSFiller : CheckInsert : S1 == S2"<<std::endl;
 #endif
     return Standard_False;
   }
index 90904af..9c2355e 100644 (file)
@@ -38,8 +38,8 @@
 #ifdef OCCT_DEBUG
 #include <TopOpeBRepDS_CurvePointInterference.hxx>
 extern Standard_Boolean TopOpeBRep_GettraceEEFF();
-Standard_EXPORT void debposesd(void) {/*cout<<"+++ debposesd"<<endl;*/}
-Standard_EXPORT void debposnesd(void) {cout<<"+++ debposnesd"<<endl;}
+Standard_EXPORT void debposesd(void) {/*std::cout<<"+++ debposesd"<<std::endl;*/}
+Standard_EXPORT void debposnesd(void) {std::cout<<"+++ debposnesd"<<std::endl;}
 Standard_EXPORT void debeeff() {}
 #endif
 
@@ -114,11 +114,11 @@ void TopOpeBRep_EdgesFiller::Insert(const TopoDS_Shape& E1,const TopoDS_Shape& E
       Standard_Real tol2 = BRep_Tool::Tolerance(V2);
       Standard_Real dpp = P3D1.Distance(P3D2);
       if (dpp> tol1+tol2) {
-       cout<<endl;
-       cout<<"*** TopOpeBRep_EdgesFiller : isvertex1 && isvertex2 : P3D non confondus"<<endl;
-       cout<<"point PV1 "<<P3D1.X()<<" "<<P3D1.Y()<<" "<<P3D1.Z()<<endl;
-       cout<<"point PV2 "<<P3D2.X()<<" "<<P3D2.Y()<<" "<<P3D2.Z()<<endl;
-       cout<<endl;
+       std::cout<<std::endl;
+       std::cout<<"*** TopOpeBRep_EdgesFiller : isvertex1 && isvertex2 : P3D non confondus"<<std::endl;
+       std::cout<<"point PV1 "<<P3D1.X()<<" "<<P3D1.Y()<<" "<<P3D1.Z()<<std::endl;
+       std::cout<<"point PV2 "<<P3D2.X()<<" "<<P3D2.Y()<<" "<<P3D2.Z()<<std::endl;
+       std::cout<<std::endl;
       }
     }
 #endif
@@ -141,10 +141,10 @@ void TopOpeBRep_EdgesFiller::Insert(const TopoDS_Shape& E1,const TopoDS_Shape& E
     if (faulty) {
 #ifdef OCCT_DEBUG
       Standard_Boolean foundvertex = (found)  && (K == TopOpeBRepDS_VERTEX);
-      cout<<"- - - faulty EdgesFiller : G "<<G<<" K ";TopOpeBRepDS::Print(K,cout);cout.flush();
-      cout<<" isvertex="<<isvertex;cout.flush();
-      cout<<" isop="<<foundpoint<<" isov="<<foundvertex;cout.flush();
-      cout<<" isnp="<<isnewpoint<<" isnv="<<isnewvertex<<endl;cout.flush();
+      std::cout<<"- - - faulty EdgesFiller : G "<<G<<" K ";TopOpeBRepDS::Print(K,std::cout);std::cout.flush();
+      std::cout<<" isvertex="<<isvertex;std::cout.flush();
+      std::cout<<" isop="<<foundpoint<<" isov="<<foundvertex;std::cout.flush();
+      std::cout<<" isnp="<<isnewpoint<<" isnv="<<isnewvertex<<std::endl;std::cout.flush();
 #endif
     }
 
@@ -186,8 +186,8 @@ void TopOpeBRep_EdgesFiller::Insert(const TopoDS_Shape& E1,const TopoDS_Shape& E
            evi->SupportType(kevi);
 
 #ifdef OCCT_DEBUG
-           TopOpeBRepDS::Print(K,G,cout,"TopOpeBRep_EdgesFiller : remplacer "," ");
-           TopOpeBRepDS::Print(TopOpeBRepDS_VERTEX,gevi,cout,"par "," dans les courbes NYI\n");
+           TopOpeBRepDS::Print(K,G,std::cout,"TopOpeBRep_EdgesFiller : remplacer "," ");
+           TopOpeBRepDS::Print(TopOpeBRepDS_VERTEX,gevi,std::cout,"par "," dans les courbes NYI\n");
 #endif
            linew.Append(evi);
            li.Remove(it);
index 1aee078..411ba92 100644 (file)
@@ -174,14 +174,14 @@ void TopOpeBRep_EdgesIntersector::SetFaces(const TopoDS_Shape& F1,const TopoDS_S
 #ifdef OCCT_DEBUG
   Standard_Integer DEBi = 0;
   if ( DEBi ) {
-    cout<<"TopOpeBRep_EdgesIntersector::SetFaces : ";
-    cout<<"f1 "; TopAbs::Print(myFace1.Orientation(),cout);
-    cout<< " / f1F : ";
-    if (so11) cout<<"sameoriented"; else cout<<"difforiented"; cout<<endl;
-    cout <<"  ";
-    cout<<"f2 "; TopAbs::Print(myFace2.Orientation(),cout);
-    cout<< " / f1F : ";
-    if (so21) cout<<"sameoriented"; else cout<<"difforiented"; cout<<endl;
+    std::cout<<"TopOpeBRep_EdgesIntersector::SetFaces : ";
+    std::cout<<"f1 "; TopAbs::Print(myFace1.Orientation(),std::cout);
+    std::cout<< " / f1F : ";
+    if (so11) std::cout<<"sameoriented"; else std::cout<<"difforiented"; std::cout<<std::endl;
+    std::cout <<"  ";
+    std::cout<<"f2 "; TopAbs::Print(myFace2.Orientation(),std::cout);
+    std::cout<< " / f1F : ";
+    if (so21) std::cout<<"sameoriented"; else std::cout<<"difforiented"; std::cout<<std::endl;
   }
 #endif
 }
@@ -339,8 +339,8 @@ Standard_Boolean EdgesIntersector_checkT1D(const TopoDS_Edge& E1,const TopoDS_Ed
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = Standard_False;
   if (trc) {
-    cout<<"ed1 on fa1 : {pfirst=("<<pfirst.X()<<" "<<pfirst.Y()<<"), first="<<first<<"\n";
-    cout<<"              plast =("<<plast.X()<<" "<<plast.Y()<<"),last="<<last<<"}"<<endl;}
+    std::cout<<"ed1 on fa1 : {pfirst=("<<pfirst.X()<<" "<<pfirst.Y()<<"), first="<<first<<"\n";
+    std::cout<<"              plast =("<<plast.X()<<" "<<plast.Y()<<"),last="<<last<<"}"<<std::endl;}
 #endif  
   
   Standard_Boolean memesfaces = myFace1.IsSame(myFace2);
@@ -359,8 +359,8 @@ Standard_Boolean EdgesIntersector_checkT1D(const TopoDS_Edge& E1,const TopoDS_Ed
     
 #ifdef OCCT_DEBUG
     if (trc) {
-      cout<<"ed2 on fa1 : {pfirst=("<<pfirst.X()<<" "<<pfirst.Y()<<"), first="<<first<<"\n";
-      cout<<"              plast =("<<plast.X()<<" "<<plast.Y()<<"),last="<<last<<"}"<<endl;}
+      std::cout<<"ed2 on fa1 : {pfirst=("<<pfirst.X()<<" "<<pfirst.Y()<<"), first="<<first<<"\n";
+      std::cout<<"              plast =("<<plast.X()<<" "<<plast.Y()<<"),last="<<last<<"}"<<std::endl;}
 #endif
     
   }
@@ -426,15 +426,15 @@ Standard_Boolean EdgesIntersector_checkT1D(const TopoDS_Edge& E1,const TopoDS_Ed
       myDomain2.SetValues(pfirst,first,tole,plast,last,tole);
 #ifdef OCCT_DEBUG
       if ( TopOpeBRep_GettracePROEDG() ) {
-       cout<<"------------ projection de curve"<<endl;
-       cout<<"--- Curve : "<<endl;
-       GeomTools_CurveSet::PrintCurve(NC,cout);
-       cout<<"--- nouvelle PCurve : "<<endl;
-       GeomTools_Curve2dSet::PrintCurve2d(PC2on1,cout);
+       std::cout<<"------------ projection de curve"<<std::endl;
+       std::cout<<"--- Curve : "<<std::endl;
+       GeomTools_CurveSet::PrintCurve(NC,std::cout);
+       std::cout<<"--- nouvelle PCurve : "<<std::endl;
+       GeomTools_Curve2dSet::PrintCurve2d(PC2on1,std::cout);
        Handle(Geom_Surface) aS1 = BRep_Tool::Surface(myFace1);
-       cout<<"--- sur surface : "<<endl;
-       GeomTools_SurfaceSet::PrintSurface(aS1,cout);
-       cout<<endl;
+       std::cout<<"--- sur surface : "<<std::endl;
+       GeomTools_SurfaceSet::PrintSurface(aS1,std::cout);
+       std::cout<<std::endl;
       }
 #endif
     }
@@ -462,16 +462,16 @@ Standard_Boolean EdgesIntersector_checkT1D(const TopoDS_Edge& E1,const TopoDS_Ed
   
 #ifdef OCCT_DEBUG
   if (TopOpeBRep_GettraceFITOL()) {
-    cout<<"EdgesIntersector : Perform";
+    std::cout<<"EdgesIntersector : Perform";
 #ifdef DRAW
     GeomAbs_CurveType t1 = myCurve1.GetType();
     GeomAbs_CurveType t2 = myCurve2.GetType();
-    TCollection_AsciiString s1;CurveToString(t1,s1);cout<<" "<<s1;
-    TCollection_AsciiString s2;CurveToString(t2,s2);cout<<" "<<s2;
+    TCollection_AsciiString s1;CurveToString(t1,s1);std::cout<<" "<<s1;
+    TCollection_AsciiString s2;CurveToString(t2,s2);std::cout<<" "<<s2;
 #endif
-    cout<<endl;
-    cout<<"                   tol1 = "<<tol1<<endl;
-    cout<<"                   tol2 = "<<tol2<<endl;
+    std::cout<<std::endl;
+    std::cout<<"                   tol1 = "<<tol1<<std::endl;
+    std::cout<<"                   tol2 = "<<tol2<<std::endl;
   }
 #endif
 
@@ -503,7 +503,7 @@ Standard_Boolean EdgesIntersector_checkT1D(const TopoDS_Edge& E1,const TopoDS_Ed
           || TransitionEqualAndExtremity(P1.TransitionOfSecond(),P2.TransitionOfSecond()) ) { 
 #ifdef OCCT_DEBUG
          Standard_Boolean TRC = Standard_True;
-         if (TRC) cout<<"\n Egalite de transitions \n"<<endl;
+         if (TRC) std::cout<<"\n Egalite de transitions \n"<<std::endl;
 #endif
          fin = Standard_False;
          mylpnt.Remove(p);
@@ -638,7 +638,7 @@ Standard_Boolean TopOpeBRep_EdgesIntersector::ComputeSameDomain()
   if (t1 != GeomAbs_Circle) {
 #ifdef OCCT_DEBUG
     if (TopOpeBRepTool_GettraceNYI()) 
-      cout<<"TopOpeBRep_EdgesIntersector : EdgesSameDomain on NYI curve type"<<endl;
+      std::cout<<"TopOpeBRep_EdgesIntersector : EdgesSameDomain on NYI curve type"<<std::endl;
 #endif
     return SetSameDomain(Standard_False);
   }
@@ -1036,11 +1036,11 @@ void TopOpeBRep_EdgesIntersector::Dump(const TCollection_AsciiString& ,const Sta
 void TopOpeBRep_EdgesIntersector::Dump(const TCollection_AsciiString& str,const Standard_Integer E1index,const Standard_Integer E2index)
 {
   InitPoint();if (!MorePoint()) return;
-  cout<<endl<<"---- "<<str<<" ---- E/E : "<<NbPoints()<<" p , ";
-  cout<<NbSegments()<<" s : "<<myTrueNbPoints<<" true points"<<endl;
-  cout<<"E1 = "<<E1index<<" ";TopAbs::Print(Edge(1).Orientation(),cout)<<", ";
-  cout<<"E2 = "<<E2index<<" ";TopAbs::Print(Edge(2).Orientation(),cout)<<"  ";
-  cout<<"hs="<<HasSegment()<<" hsd="<<SameDomain()<<endl;
+  std::cout<<std::endl<<"---- "<<str<<" ---- E/E : "<<NbPoints()<<" p , ";
+  std::cout<<NbSegments()<<" s : "<<myTrueNbPoints<<" true points"<<std::endl;
+  std::cout<<"E1 = "<<E1index<<" ";TopAbs::Print(Edge(1).Orientation(),std::cout)<<", ";
+  std::cout<<"E2 = "<<E2index<<" ";TopAbs::Print(Edge(2).Orientation(),std::cout)<<"  ";
+  std::cout<<"hs="<<HasSegment()<<" hsd="<<SameDomain()<<std::endl;
  
   for (InitPoint(); MorePoint(); NextPoint()) {
     const TopOpeBRep_Point2d P2d = Point();
@@ -1049,11 +1049,11 @@ void TopOpeBRep_EdgesIntersector::Dump(const TCollection_AsciiString& str,const
       Standard_Integer ip1,ip2; P2d.SegmentAncestors(ip1,ip2);
       Standard_Real d1 = Point(ip1).Value().Distance(Point(ip2).Value());
       Standard_Real d2 = d1 + Point(ip1).Tolerance()/2. + Point(ip2).Tolerance()/2.;
-      cout<<"ancestor segment : d P"<<ip1<<",P"<<ip2<<" = "<<d1<<endl;
-      cout<<"     t1/2 + d + t2/2 P"<<ip1<<",P"<<ip2<<" = "<<d2<<endl;
+      std::cout<<"ancestor segment : d P"<<ip1<<",P"<<ip2<<" = "<<d1<<std::endl;
+      std::cout<<"     t1/2 + d + t2/2 P"<<ip1<<",P"<<ip2<<" = "<<d2<<std::endl;
     }
   }
-  cout<<endl;
+  std::cout<<std::endl;
 #endif
 }
 
index 49d3516..aa56895 100644 (file)
@@ -124,39 +124,39 @@ void TopOpeBRep_FFDumper::DumpLine(const TopOpeBRep_LineInter& LI)
   Standard_Boolean IsPeriodic = LI.IsPeriodic();
   Standard_Boolean isrest = (LI.TypeLineCurve() == TopOpeBRep_RESTRICTION);
   
-  cout<<endl<<"--------------------------------------------------"<<endl;
-  cout<<"line "<<il<<"/"<<nl<<" is a "; LI.DumpType(); 
+  std::cout<<std::endl<<"--------------------------------------------------"<<std::endl;
+  std::cout<<"line "<<il<<"/"<<nl<<" is a "; LI.DumpType(); 
   if ( isrest) { 
     Standard_Boolean isedge1 = LI.ArcIsEdge(1);
     Standard_Boolean isedge2 = LI.ArcIsEdge(2);
-    if      ( isedge1 ) cout<<" of 1";
-    else if ( isedge2 ) cout<<" of 2";
-    else cout<<"of 0(BUG)";
+    if      ( isedge1 ) std::cout<<" of 1";
+    else if ( isedge2 ) std::cout<<" of 2";
+    else std::cout<<"of 0(BUG)";
   }
-  cout<<endl;
+  std::cout<<std::endl;
   if ( isrest) { 
     const TopoDS_Shape& Erest = LI.Arc();
     Standard_Boolean FIisrest = myPFF->ChangeFacesIntersector().IsRestriction(Erest);
-    cout<<"++++ line restriction"; 
+    std::cout<<"++++ line restriction"; 
     if (FIisrest) {
-      cout<<" edge restriction";
+      std::cout<<" edge restriction";
       Standard_Integer iErest = 0; 
       if (myPFF->ChangeDataStructure().HasShape(Erest)) 
        iErest = myPFF->ChangeDataStructure().Shape(Erest);
-      cout<<" "<<iErest;
+      std::cout<<" "<<iErest;
     }
-    cout<<endl;
+    std::cout<<std::endl;
   }
-  if (HasVPonR) cout<<"has vertex on restriction"<<endl;
-  else         cout<<"has no vertex on restriction"<<endl;
-  if (IsVClosed)  cout<<"is closed by vertices"<<endl;
-  else         cout<<"is not closed by vertices"<<endl;
-  if (IsPeriodic) cout<<"is periodic"<<endl;
-  else         cout<<"is not periodic"<<endl;
+  if (HasVPonR) std::cout<<"has vertex on restriction"<<std::endl;
+  else         std::cout<<"has no vertex on restriction"<<std::endl;
+  if (IsVClosed)  std::cout<<"is closed by vertices"<<std::endl;
+  else         std::cout<<"is not closed by vertices"<<std::endl;
+  if (IsPeriodic) std::cout<<"is periodic"<<std::endl;
+  else         std::cout<<"is not periodic"<<std::endl;
   
   TopOpeBRep_VPointInterIterator VPI;
   
-  VPI.Init(LI); if (VPI.More()) cout<<endl;
+  VPI.Init(LI); if (VPI.More()) std::cout<<std::endl;
   for (;VPI.More();VPI.Next()) {
     TCollection_AsciiString stol("; #draw ");
     stol = stol + VPI.CurrentVP().Tolerance() + "\n";
@@ -164,22 +164,22 @@ void TopOpeBRep_FFDumper::DumpLine(const TopOpeBRep_LineInter& LI)
   }
   
   VPI.Init(LI);
-  if (VPI.More()) cout<<endl;
+  if (VPI.More()) std::cout<<std::endl;
   for (;VPI.More();VPI.Next()) {
     const TopOpeBRep_VPointInter& VP = VPI.CurrentVP();
     Standard_Boolean dump = VP.Keep();
-    if (dump) { DumpVP(VP); cout<<endl; }
+    if (dump) { DumpVP(VP); std::cout<<std::endl; }
   }
   
   if (LI.TypeLineCurve() == TopOpeBRep_LINE) {
     gp_Dir D = LI.LineG()->Line().Direction();
-    TopOpeBRep::Print(LI.TypeLineCurve(),cout); Standard_Real x,y,z; D.Coord(x,y,z);
-    cout<<" dir : "<<x<<" "<<y<<" "<<z<<endl;
+    TopOpeBRep::Print(LI.TypeLineCurve(),std::cout); Standard_Real x,y,z; D.Coord(x,y,z);
+    std::cout<<" dir : "<<x<<" "<<y<<" "<<z<<std::endl;
   }
   
-  LI.DumpLineTransitions(cout);
+  LI.DumpLineTransitions(std::cout);
   
-  cout<<endl<<"--------------------------------------------------"<<endl;
+  std::cout<<std::endl<<"--------------------------------------------------"<<std::endl;
 #endif
 }
 
@@ -194,14 +194,14 @@ void TopOpeBRep_FFDumper::DumpVP(const TopOpeBRep_VPointInter& )
 void TopOpeBRep_FFDumper::DumpVP(const TopOpeBRep_VPointInter& VP)
 {
   Standard_Integer il = myLineIndex;
-  cout<<"VP "<<VP.Index()<<" on "<<VP.ShapeIndex()<<" :";
-  Standard_Real Cpar = VP.ParameterOnLine(); cout<<" on curve : "<<Cpar; 
-  if (!VP.Keep()) cout<<" NOT kept";
-  cout<<endl;
+  std::cout<<"VP "<<VP.Index()<<" on "<<VP.ShapeIndex()<<" :";
+  Standard_Real Cpar = VP.ParameterOnLine(); std::cout<<" on curve : "<<Cpar; 
+  if (!VP.Keep()) std::cout<<" NOT kept";
+  std::cout<<std::endl;
   Standard_Boolean k = VP.Keep();
   const gp_Pnt& P = VP.Value();
-  cout<<PRODINP<<"L"<<il<<"P"<<VP.Index();if (k) cout<<"K";cout<<" "<<P.X()<<" "<<P.Y()<<" "<<P.Z();
-  cout<<"; #draw"<<endl;
+  std::cout<<PRODINP<<"L"<<il<<"P"<<VP.Index();if (k) std::cout<<"K";std::cout<<" "<<P.X()<<" "<<P.Y()<<" "<<P.Z();
+  std::cout<<"; #draw"<<std::endl;
   
   if      (VP.ShapeIndex() == 1) 
     DumpVP(VP,1);
@@ -235,14 +235,14 @@ void TopOpeBRep_FFDumper::DumpVP(const TopOpeBRep_VPointInter& VP,const Standard
   Standard_Integer exi = ExploreIndex(E,ISI);
   Standard_Integer dsi = (HDS->HasShape(E)) ? HDS->Shape(E) : 0;
   Standard_Boolean isv = VP.IsVertex(ISI);
-  if (isv) cout<<"is vertex of "<<ISI<<endl;
-  if (Closed) cout<<"on closing edge "; else cout<<"on edge "; 
-  if (Degen) cout<<" on degenerated edge ";
-  TopAbs::Print(O,cout); cout<<" (ds"<<dsi<<") (ex"<<exi<<") of face of "<<ISI;
-  cout<<" : par : "<<Epar<<endl;  
-  if (Closed) cout<<"on closing edge "; else cout<<"on edge "; 
-  if (Degen) cout<<" on degenerated edge ";
-  TopAbs::Print(O,cout); cout<<" (ds"<<dsi<<") (ex"<<exi<<") of face of "<<ISI;
+  if (isv) std::cout<<"is vertex of "<<ISI<<std::endl;
+  if (Closed) std::cout<<"on closing edge "; else std::cout<<"on edge "; 
+  if (Degen) std::cout<<" on degenerated edge ";
+  TopAbs::Print(O,std::cout); std::cout<<" (ds"<<dsi<<") (ex"<<exi<<") of face of "<<ISI;
+  std::cout<<" : par : "<<Epar<<std::endl;  
+  if (Closed) std::cout<<"on closing edge "; else std::cout<<"on edge "; 
+  if (Degen) std::cout<<" on degenerated edge ";
+  TopAbs::Print(O,std::cout); std::cout<<" (ds"<<dsi<<") (ex"<<exi<<") of face of "<<ISI;
 #endif
 }
 
@@ -277,25 +277,25 @@ void TopOpeBRep_FFDumper::DumpDSP(const TopOpeBRep_VPointInter& ,const TopOpeBRe
 void TopOpeBRep_FFDumper::DumpDSP(const TopOpeBRep_VPointInter& VP,const TopOpeBRepDS_Kind GK,const Standard_Integer G,
                                  const Standard_Boolean newinDS) const
 {
-  cout<<"VP "<<VP.Index()<<" on "<<VP.ShapeIndex();
+  std::cout<<"VP "<<VP.Index()<<" on "<<VP.ShapeIndex();
   if (newinDS) {
-    if      (GK == TopOpeBRepDS_VERTEX) cout<<" gives new DSV";
-    else if (GK == TopOpeBRepDS_POINT)  cout<<" gives new DSP";
-    else                                cout<<" gives new DS???";
+    if      (GK == TopOpeBRepDS_VERTEX) std::cout<<" gives new DSV";
+    else if (GK == TopOpeBRepDS_POINT)  std::cout<<" gives new DSP";
+    else                                std::cout<<" gives new DS???";
   }
   else {
-    if      (GK == TopOpeBRepDS_VERTEX) cout<<" equals new DSV";
-    else if (GK == TopOpeBRepDS_POINT)  cout<<" equals new DSP";
-    else                                cout<<" equals new DS???";
+    if      (GK == TopOpeBRepDS_VERTEX) std::cout<<" equals new DSV";
+    else if (GK == TopOpeBRepDS_POINT)  std::cout<<" equals new DSP";
+    else                                std::cout<<" equals new DS???";
   }
-  cout<<" "<<G;
+  std::cout<<" "<<G;
   
   const Handle(TopOpeBRepDS_HDataStructure)& HDS = myPFF->HDataStructure();
   Standard_Real tol = Precision::Confusion();
   if      (GK == TopOpeBRepDS_VERTEX) tol = BRep_Tool::Tolerance(TopoDS::Vertex(HDS->Shape(G)));
   else if (GK == TopOpeBRepDS_POINT)  tol = HDS->Point(G).Tolerance();
-  cout<<" tol = "<<tol;
-  cout<<endl;
+  std::cout<<" tol = "<<tol;
+  std::cout<<std::endl;
 #endif
 }
 
index 41dfa74..c5b0034 100644 (file)
@@ -35,9 +35,9 @@ void FEINT_DUMPPOINTS(TopOpeBRep_FaceEdgeIntersector& FEINT,
   FEINT.InitPoint(); 
   if ( ! FEINT.MorePoint() ) return;
   
-  cout<<endl;
-  cout<<"---------- F/E : "<<FEINT.NbPoints()<<" p ";
-  cout<<endl;
+  std::cout<<std::endl;
+  std::cout<<"---------- F/E : "<<FEINT.NbPoints()<<" p ";
+  std::cout<<std::endl;
   
   const TopoDS_Shape& FF = FEINT.Shape(1);
   const TopoDS_Shape& EE = FEINT.Shape(2);
@@ -47,10 +47,10 @@ void FEINT_DUMPPOINTS(TopOpeBRep_FaceEdgeIntersector& FEINT,
   
   TopAbs_Orientation FFori = FF.Orientation();
   TopAbs_Orientation EEori = EE.Orientation();
-  cout<<"FF = "<<FFindex<<" ";TopAbs::Print(FFori,cout);
-  cout<<", ";
-  cout<<"EE = "<<EEindex<<" ";TopAbs::Print(EEori,cout);
-  cout<<endl;
+  std::cout<<"FF = "<<FFindex<<" ";TopAbs::Print(FFori,std::cout);
+  std::cout<<", ";
+  std::cout<<"EE = "<<EEindex<<" ";TopAbs::Print(EEori,std::cout);
+  std::cout<<std::endl;
   
   Standard_Integer ip = 1;
   for (; FEINT.MorePoint(); FEINT.NextPoint(), ip++ ) {
@@ -67,17 +67,17 @@ void FEINT_DUMPPOINTS(TopOpeBRep_FaceEdgeIntersector& FEINT,
     TopoDS_Vertex V2;
     Standard_Boolean isvertexE = FEINT.IsVertex(2,V2);
     
-    cout<<endl;
-    cout<<"P"<<ip<<" : "; 
+    std::cout<<std::endl;
+    std::cout<<"P"<<ip<<" : "; 
     gp_Pnt P3D = FEINT.Value(); 
-    cout<<"\t"<<P3D.X()<<" "<<P3D.Y()<<" "<<P3D.Z()<<endl;
+    std::cout<<"\t"<<P3D.X()<<" "<<P3D.Y()<<" "<<P3D.Z()<<std::endl;
     
-    cout<<"\t"; if (isvertexF) cout<<"IS VERTEX, ";
-    cout<<" pUV = "<<pUV.X()<<" "<<pUV.Y()<<endl;
-    cout<<" sta = "; TopAbs::Print(sta,cout);cout<<endl;
+    std::cout<<"\t"; if (isvertexF) std::cout<<"IS VERTEX, ";
+    std::cout<<" pUV = "<<pUV.X()<<" "<<pUV.Y()<<std::endl;
+    std::cout<<" sta = "; TopAbs::Print(sta,std::cout);std::cout<<std::endl;
     
-    cout<<"\t"; if (isvertexE) cout<<"IS VERTEX, ";
-    cout<<" parE = "<<parE<<endl;
+    std::cout<<"\t"; if (isvertexE) std::cout<<"IS VERTEX, ";
+    std::cout<<" parE = "<<parE<<std::endl;
   }
 }
 
index 41f465d..80496be 100644 (file)
@@ -44,7 +44,7 @@ static void SAVFE(const TopoDS_Face& F1,const TopoDS_Edge& E)
 {
   TCollection_AsciiString aname_1("FE_face"), aname_2("FE_edge");
   Standard_CString name_1 = aname_1.ToCString(), name_2 = aname_2.ToCString();
-  cout<<"FaceEdgeIntersector : "<<name_1<<","<<name_2<<endl;
+  std::cout<<"FaceEdgeIntersector : "<<name_1<<","<<name_2<<std::endl;
   BRepTools::Write(F1,name_1); BRepTools::Write(E,name_2); 
 }
 extern Standard_Boolean TopOpeBRepTool_GettraceKRO();
@@ -89,7 +89,7 @@ void TopOpeBRep_FaceEdgeIntersector::Perform(const TopoDS_Shape& SF,
   if (!myForceTolerance) ShapeTolerances(SF,SE);
   myTol = BRep_Tool::Tolerance(TopoDS::Edge(SE));
 #ifdef OCCT_DEBUG
-  if (TopOpeBRep_GettraceFITOL()) cout<<"Perform : myTol = "<<myTol<<endl;
+  if (TopOpeBRep_GettraceFITOL()) std::cout<<"Perform : myTol = "<<myTol<<std::endl;
 #endif
   
   myFace = TopoDS::Face(SF); myFace.Orientation(TopAbs_FORWARD);
@@ -168,7 +168,7 @@ void TopOpeBRep_FaceEdgeIntersector::ForceTolerance(const Standard_Real Tol)
   
 #ifdef OCCT_DEBUG
   if (TopOpeBRep_GettraceFITOL())
-    cout<<"ForceTolerance : myTol = "<<myTol<<endl;
+    std::cout<<"ForceTolerance : myTol = "<<myTol<<std::endl;
 #endif
 }
 
@@ -402,9 +402,9 @@ void TopOpeBRep_FaceEdgeIntersector::ShapeTolerances(const TopoDS_Shape& S1,
   
 #ifdef OCCT_DEBUG
   if (TopOpeBRep_GettraceFITOL()) {
-    cout<<"ShapeTolerances on S1 = ";TopAbs::Print(S1.ShapeType(),cout);
-    cout<<" S2 = ";TopAbs::Print(S2.ShapeType(),cout);
-    cout<<" : myTol = "<<myTol<<endl;
+    std::cout<<"ShapeTolerances on S1 = ";TopAbs::Print(S1.ShapeType(),std::cout);
+    std::cout<<" S2 = ";TopAbs::Print(S2.ShapeType(),std::cout);
+    std::cout<<" : myTol = "<<myTol<<std::endl;
   }
 #endif
 }
index ef5823e..340de14 100644 (file)
@@ -221,7 +221,7 @@ Standard_Boolean TopOpeBRep_FacesFiller::CheckLine(TopOpeBRep_LineInter& L) cons
   if ( t == TopOpeBRep_WALKING ) {
     if ( nbvp < 2 ) {
 #ifdef OCCT_DEBUG
-      cout<<"\n=== Nb de IntPatch_Point sur WL incorrect : "<<nbvp<<" ===\n";
+      std::cout<<"\n=== Nb de IntPatch_Point sur WL incorrect : "<<nbvp<<" ===\n";
 #endif
       check = Standard_False;
     }
@@ -311,7 +311,7 @@ Standard_Boolean TopOpeBRep_FacesFiller::CheckLine(TopOpeBRep_LineInter& L) cons
   }
   
 #ifdef OCCT_DEBUG
-  if (!check) { cout<<"# DEB CheckLine : rejet de ";TopOpeBRep::Print(t,cout);cout<<" a "<<nbvp<<" points"<<endl; }
+  if (!check) { std::cout<<"# DEB CheckLine : rejet de ";TopOpeBRep::Print(t,std::cout);std::cout<<" a "<<nbvp<<" points"<<std::endl; }
 #endif
 
   return check;
index f86f050..2fd48b1 100644 (file)
@@ -60,8 +60,8 @@
 #endif
 
 #ifdef OCCT_DEBUG
-Standard_EXPORT void debrest(const Standard_Integer i)   {cout<<"+ debrest "<<i<<endl;}
-Standard_EXPORT void debrline()   {cout<<"+ debrline"<<endl;}
+Standard_EXPORT void debrest(const Standard_Integer i)   {std::cout<<"+ debrest "<<i<<std::endl;}
+Standard_EXPORT void debrline()   {std::cout<<"+ debrline"<<std::endl;}
 
 extern Standard_Boolean TopOpeBRep_GettraceNVP(Standard_Integer a,Standard_Integer b,Standard_Integer c,Standard_Integer d,Standard_Integer e);
 extern Standard_Boolean GLOBAL_bvpr;
@@ -350,7 +350,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)
-{cout<<"f1,f2,il : "<<f1<<","<<f2<<","<<il<<endl;cout.flush();}
+{std::cout<<"f1,f2,il : "<<f1<<","<<f2<<","<<il<<std::endl;std::cout.flush();}
 
 //=======================================================================
 //function : ProcessLine
@@ -418,7 +418,7 @@ void TopOpeBRep_FacesFiller::ProcessVPnotonR(const TopOpeBRep_VPointInter& VP)
   if ( !CPIfound ) {
     if (iVP != iINON1 && iVP != iINONn) {
 #ifdef OCCT_DEBUG
-      cout<<"VP "<<iVP<<" on "<<0<<" : point d'intersection anormal : rejet"<<endl;
+      std::cout<<"VP "<<iVP<<" on "<<0<<" : point d'intersection anormal : rejet"<<std::endl;
 #endif
       return;
     }
@@ -678,8 +678,8 @@ void TopOpeBRep_FacesFiller::ProcessRLine()
 
     if ((obRest == EXTERNAL)||(obOO == EXTERNAL)){
 #ifdef OCCT_DEBUG
-      if(obRest==EXTERNAL) cout<<"***********ProcessRLine : faulty parameter on Erest"<<endl;
-      if(obOO==EXTERNAL)   cout<<"***********ProcessRLine : faulty parameter on OOE"<<endl;
+      if(obRest==EXTERNAL) std::cout<<"***********ProcessRLine : faulty parameter on Erest"<<std::endl;
+      if(obOO==EXTERNAL)   std::cout<<"***********ProcessRLine : faulty parameter on OOE"<<std::endl;
 #endif
     }
 
index 01ed90a..72b4563 100644 (file)
@@ -58,9 +58,9 @@ static void SAVFF(const TopoDS_Face& F1,const TopoDS_Face& F2)
   TCollection_AsciiString an2("SAVB");if (SAVFFi2) an2=an2+SAVFFi2;
   Standard_CString n1=an1.ToCString();Standard_CString n2=an2.ToCString();
 #ifdef DRAW
-  cout<<"FaceIntersector :   set "<<n1<<","<<n2<<endl;DBRep::Set(n1,F1);DBRep::Set(n2,F2);
+  std::cout<<"FaceIntersector :   set "<<n1<<","<<n2<<std::endl;DBRep::Set(n1,F1);DBRep::Set(n2,F2);
 #endif
-  cout<<"FaceIntersector : write "<<n1<<","<<n2<<endl;BRepTools::Write(F1,n1);BRepTools::Write(F2,n2); 
+  std::cout<<"FaceIntersector : write "<<n1<<","<<n2<<std::endl;BRepTools::Write(F1,n1);BRepTools::Write(F2,n2); 
 }
 
 extern Standard_Boolean TopOpeBRepTool_GettraceKRO();
@@ -209,9 +209,9 @@ void TopOpeBRep_FacesIntersector::Perform(const TopoDS_Shape& F1,const TopoDS_Sh
 
 #ifdef OCCT_DEBUG
   if (TopOpeBRep_GettraceFITOL()) {
-    cout<<"FacesIntersector : Perform tol1 = "<<tol1<<endl;
-    cout<<"                           tol2 = "<<tol2<<endl;
-    cout<<"                           defl = "<<Deflection<<"  MaxUV = "<<MaxUV<<endl;
+    std::cout<<"FacesIntersector : Perform tol1 = "<<tol1<<std::endl;
+    std::cout<<"                           tol2 = "<<tol2<<std::endl;
+    std::cout<<"                           defl = "<<Deflection<<"  MaxUV = "<<MaxUV<<std::endl;
   }
 #endif
 
@@ -246,7 +246,7 @@ void TopOpeBRep_FacesIntersector::Perform(const TopoDS_Shape& F1,const TopoDS_Sh
   }
   
 #ifdef OCCT_DEBUG
-  if (TopOpeBRep_GettraceFI()) cout<<"Perform : isempty "<<IsEmpty()<<endl;
+  if (TopOpeBRep_GettraceFI()) std::cout<<"Perform : isempty "<<IsEmpty()<<std::endl;
 #endif
 }
 
@@ -594,7 +594,7 @@ void TopOpeBRep_FacesIntersector::ForceTolerances(const Standard_Real Tol1,
   myForceTolerances = Standard_True;
 #ifdef OCCT_DEBUG
   if (TopOpeBRep_GettraceFITOL())
-    cout<<"ForceTolerances : myTol1,myTol2 = "<<myTol1<<","<<myTol2<<endl;
+    std::cout<<"ForceTolerances : myTol1,myTol2 = "<<myTol1<<","<<myTol2<<std::endl;
 #endif
 }
 
@@ -629,9 +629,9 @@ void TopOpeBRep_FacesIntersector::ShapeTolerances(const TopoDS_Shape& ,
   myForceTolerances = Standard_False;
 #ifdef OCCT_DEBUG
   if (TopOpeBRep_GettraceFITOL()) {
-    cout<<"ShapeTolerances on S1 = ";TopAbs::Print(S1.ShapeType(),cout);
-    cout<<" S2 = ";TopAbs::Print(S2.ShapeType(),cout);
-    cout<<" : myTol1,myTol2 = "<<myTol1<<","<<myTol2<<endl;
+    std::cout<<"ShapeTolerances on S1 = ";TopAbs::Print(S1.ShapeType(),std::cout);
+    std::cout<<" S2 = ";TopAbs::Print(S2.ShapeType(),std::cout);
+    std::cout<<" : myTol1,myTol2 = "<<myTol1<<","<<myTol2<<std::endl;
   }
 #endif
 }
@@ -1189,8 +1189,8 @@ static void MergeWLinesIfAllSegmentsAlongRestriction(IntPatch_SequenceOfLine&
     theSlin.Clear();
     theSlin.Append(anWLine);
 #ifdef OCCT_DEBUG
-    cout << "*** TopOpeBRep_FaceIntersector: Merge WLines on Restriction " 
-         << ((WLineRank == 1) ? "S1" : "S2") << " to WLine***" << endl;
+    std::cout << "*** TopOpeBRep_FaceIntersector: Merge WLines on Restriction " 
+         << ((WLineRank == 1) ? "S1" : "S2") << " to WLine***" << std::endl;
 #endif
   }
 }
index 798bee7..a5b0b24 100644 (file)
@@ -81,8 +81,8 @@ void TopOpeBRep_Hctxee2d::SetEdges(const TopoDS_Edge& E1,const TopoDS_Edge& E2,
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = Standard_False;
   if (trc) {
-    cout<<"ed1 on fa1 : {pfirst=("<<pfirst.X()<<" "<<pfirst.Y()<<"),first="<<first<<"\n";
-    cout<<"              plast =("<<plast.X()<<" "<<plast.Y()<<"),last="<<last<<"}"<<endl;}
+    std::cout<<"ed1 on fa1 : {pfirst=("<<pfirst.X()<<" "<<pfirst.Y()<<"),first="<<first<<"\n";
+    std::cout<<"              plast =("<<plast.X()<<" "<<plast.Y()<<"),last="<<last<<"}"<<std::endl;}
 #endif
 
   Standard_Boolean memesfaces = F1.IsSame(F2);
@@ -101,8 +101,8 @@ void TopOpeBRep_Hctxee2d::SetEdges(const TopoDS_Edge& E1,const TopoDS_Edge& E2,
 
 #ifdef OCCT_DEBUG
     if (trc) {
-      cout<<"ed2 on fa1 : {pfirst=("<<pfirst.X()<<" "<<pfirst.Y()<<"),first="<<first<<"\n";
-      cout<<"              plast =("<<plast.X()<<" "<<plast.Y()<<"),last="<<last<<"}"<<endl;
+      std::cout<<"ed2 on fa1 : {pfirst=("<<pfirst.X()<<" "<<pfirst.Y()<<"),first="<<first<<"\n";
+      std::cout<<"              plast =("<<plast.X()<<" "<<plast.Y()<<"),last="<<last<<"}"<<std::endl;
     }
 #endif
   }
@@ -153,12 +153,12 @@ void TopOpeBRep_Hctxee2d::SetEdges(const TopoDS_Edge& E1,const TopoDS_Edge& E2,
       myDomain2.SetValues(pfirst,first,tole,plast,last,tole);
 #ifdef OCCT_DEBUG
       if ( TopOpeBRep_GettracePROEDG() ) {
-        cout<<"------------ projection de curve"<<endl;
-        cout<<"--- Curve : "<<endl;GeomTools_CurveSet::PrintCurve(NC,cout);
-        cout<<"--- nouvelle PCurve : "<<endl;GeomTools_Curve2dSet::PrintCurve2d(PC2on1,cout);
+        std::cout<<"------------ projection de curve"<<std::endl;
+        std::cout<<"--- Curve : "<<std::endl;GeomTools_CurveSet::PrintCurve(NC,std::cout);
+        std::cout<<"--- nouvelle PCurve : "<<std::endl;GeomTools_Curve2dSet::PrintCurve2d(PC2on1,std::cout);
         Handle(Geom_Surface) aS1 = BRep_Tool::Surface(F1);
-        cout<<"--- sur surface : "<<endl;GeomTools_SurfaceSet::PrintSurface(aS1,cout);
-        cout<<endl;
+        std::cout<<"--- sur surface : "<<std::endl;GeomTools_SurfaceSet::PrintSurface(aS1,std::cout);
+        std::cout<<std::endl;
       }
 #endif
     }
index f5f25ce..454e62b 100644 (file)
@@ -111,14 +111,14 @@ void TopOpeBRep_Hctxff2d::SetHSurfacesPrivate()
 #ifdef OCCT_DEBUG
   Standard_Integer DEBi = 0;
   if ( DEBi ) {
-    cout<<"TopOpeBRep_Hctxff2d::SetSurfacesPrivate : ";
-    cout<<"f1 "; TopAbs::Print(myFace1.Orientation(),cout);
-    cout<< " / f1F : ";
-    if (so11) cout<<"sameoriented"; else cout<<"difforiented"; cout<<endl;
-    cout <<"  ";
-    cout<<"f2 "; TopAbs::Print(myFace2.Orientation(),cout);
-    cout<< " / f1F : ";
-    if (so21) cout<<"sameoriented"; else cout<<"difforiented"; cout<<endl;
+    std::cout<<"TopOpeBRep_Hctxff2d::SetSurfacesPrivate : ";
+    std::cout<<"f1 "; TopAbs::Print(myFace1.Orientation(),std::cout);
+    std::cout<< " / f1F : ";
+    if (so11) std::cout<<"sameoriented"; else std::cout<<"difforiented"; std::cout<<std::endl;
+    std::cout <<"  ";
+    std::cout<<"f2 "; TopAbs::Print(myFace2.Orientation(),std::cout);
+    std::cout<< " / f1F : ";
+    if (so21) std::cout<<"sameoriented"; else std::cout<<"difforiented"; std::cout<<std::endl;
   }
 #endif
 } // SetHSurfacesPrivate
index 2dd9082..df24a2a 100644 (file)
@@ -465,9 +465,9 @@ Handle(Geom_Curve) TopOpeBRep_LineInter::Curve
   Handle(Geom_TrimmedCurve) TC3D = new Geom_TrimmedCurve(C3D,parmin,parmax);
 #ifdef OCCT_DEBUG
   if ( TopOpeBRep_GettraceCONIC() ) {
-    cout<<"TopOpeBRep_LineInter::Curve on a ";
-    TopOpeBRep::Print(myTypeLineCurve,cout);cout<<endl;
-    cout<<"  ... Trimmed from "<<parmin<<" to "<<parmax<<endl;
+    std::cout<<"TopOpeBRep_LineInter::Curve on a ";
+    TopOpeBRep::Print(myTypeLineCurve,std::cout);std::cout<<std::endl;
+    std::cout<<"  ... Trimmed from "<<parmin<<" to "<<parmax<<std::endl;
   }
 #endif
   return TC3D;
@@ -569,7 +569,7 @@ const TopOpeBRepDS_Transition& TopOpeBRep_LineInter::FaceFaceTransition
 void TopOpeBRep_LineInter::DumpType()const
 {
 #ifdef OCCT_DEBUG
-  TopOpeBRep::Print(myTypeLineCurve,cout);
+  TopOpeBRep::Print(myTypeLineCurve,std::cout);
 #endif
 }
 
@@ -591,11 +591,11 @@ void TopOpeBRep_LineInter::DumpVPoint
 {
   const TopOpeBRep_VPointInter& VP = VPoint(I);
   const gp_Pnt& P = VP.Value();
-  cout<<s1;
-  cout<<"L"<<Index()<<"P"<<VP.Index();
-  if (VP.Keep()) cout<<"K";
-  cout<<" "<<P.X()<<" "<<P.Y()<<" "<<P.Z();
-  cout<<s2;
+  std::cout<<s1;
+  std::cout<<"L"<<Index()<<"P"<<VP.Index();
+  if (VP.Keep()) std::cout<<"K";
+  std::cout<<" "<<P.X()<<" "<<P.Y()<<" "<<P.Z();
+  std::cout<<s2;
 #endif
 }
 
@@ -617,9 +617,9 @@ void TopOpeBRep_LineInter::DumpBipoint
 {
   Standard_Integer i1 = bip.I1();
   Standard_Integer i2 = bip.I2();
-  cout<<s1;
-  cout<<"("<<i1<<","<<i2<<")";
-  cout<<s2;
+  std::cout<<s1;
+  std::cout<<"("<<i1<<","<<i2<<")";
+  std::cout<<s2;
 #endif
 }
 
index 6287c0b..784ee1d 100644 (file)
@@ -105,45 +105,45 @@ void TopOpeBRep_Point2d::Dump(const Standard_Integer E1index,const Standard_Inte
   Standard_Boolean isvertex2 = IsVertex(2); TopoDS_Vertex V2; if (isvertex2) V2 = Vertex(2);
 
   Standard_Integer ia1,ia2; SegmentAncestors(ia1,ia2);
-  cout<<endl<<"p2d "<<index<<"  k="<<keep<<" pos="<<pos;
+  std::cout<<std::endl<<"p2d "<<index<<"  k="<<keep<<" pos="<<pos;
   switch (sts) {
-  case TopOpeBRep_P2DUNK : cout<<" sts=u";break;
-  case TopOpeBRep_P2DSGF : cout<<" sts=f";break;
-  case TopOpeBRep_P2DSGL : cout<<" sts=l";break;
+  case TopOpeBRep_P2DUNK : std::cout<<" sts=u";break;
+  case TopOpeBRep_P2DSGF : std::cout<<" sts=f";break;
+  case TopOpeBRep_P2DSGL : std::cout<<" sts=l";break;
   case TopOpeBRep_P2DNEW :
-    cout<<" sts=n";
-    cout<<" anc="<<ia1<<","<<ia2;
+    std::cout<<" sts=n";
+    std::cout<<" anc="<<ia1<<","<<ia2;
     break;
-  case TopOpeBRep_P2DINT : cout<<" sts=i";break;
+  case TopOpeBRep_P2DINT : std::cout<<" sts=i";break;
   } // switch
-  cout<<" cfg=";TopOpeBRepDS::Print(myedgesconfig,cout);
-  cout<<endl;
+  std::cout<<" cfg=";TopOpeBRepDS::Print(myedgesconfig,std::cout);
+  std::cout<<std::endl;
   
   gp_Pnt P3D = Value();
 #ifdef DRAW
-  cout<<FUN_tool_PRODINP()<<"P"<<Index()<<" "<<P3D.X()<<" "<<P3D.Y()<<" "<<P3D.Z()<<"; # tol = "<<tol<<endl;
+  std::cout<<FUN_tool_PRODINP()<<"P"<<Index()<<" "<<P3D.X()<<" "<<P3D.Y()<<" "<<P3D.Z()<<"; # tol = "<<tol<<std::endl;
 #endif
-  cout<<"     on (1) :";
-  cout<<" vertex(1) : ";
-  cout<<(isvertex1?1:0);
-  cout<<"  T "<<E1index<<"(1)";
-  cout<<" par(1) = "<<par1;
+  std::cout<<"     on (1) :";
+  std::cout<<" vertex(1) : ";
+  std::cout<<(isvertex1?1:0);
+  std::cout<<"  T "<<E1index<<"(1)";
+  std::cout<<" par(1) = "<<par1;
   if (isvertex1) {
     P3D = BRep_Tool::Pnt(V1);
-    cout<<" PV(1) : "<<P3D.X()<<" "<<P3D.Y()<<" "<<P3D.Z();
+    std::cout<<" PV(1) : "<<P3D.X()<<" "<<P3D.Y()<<" "<<P3D.Z();
   }
-  cout<<endl;
+  std::cout<<std::endl;
   
-  cout<<"     on (2) :";
-  cout<<" vertex(2) : ";
-  cout<<(isvertex2?1:0);
-  cout<<"  T "<<E2index<<"(2)";
-  cout<<" par(2) = "<<par2;
+  std::cout<<"     on (2) :";
+  std::cout<<" vertex(2) : ";
+  std::cout<<(isvertex2?1:0);
+  std::cout<<"  T "<<E2index<<"(2)";
+  std::cout<<" par(2) = "<<par2;
   if (isvertex2) {
     P3D = BRep_Tool::Pnt(V2);
-    cout<<" PV(2) : "<<P3D.X()<<" "<<P3D.Y()<<" "<<P3D.Z();
+    std::cout<<" PV(2) : "<<P3D.X()<<" "<<P3D.Y()<<" "<<P3D.Z();
   }
-  cout<<endl;
+  std::cout<<std::endl;
 }
 #else
 void TopOpeBRep_Point2d::Dump(const Standard_Integer,const Standard_Integer) const {}
index cfc3450..2ccb30c 100644 (file)
@@ -78,7 +78,7 @@
 #include <Geom_Line.hxx>
 extern Standard_Boolean TopOpeBRep_GettraceBIPS(); 
 extern Standard_Boolean TopOpeBRep_GettraceDEGEN();
-extern Standard_Boolean FUN_debnull(const TopoDS_Shape& s){Standard_Boolean isnull = s.IsNull(); if (isnull) cout <<"***"; return isnull;}
+extern Standard_Boolean FUN_debnull(const TopoDS_Shape& s){Standard_Boolean isnull = s.IsNull(); if (isnull) std::cout <<"***"; return isnull;}
 #endif
 
 //Standard_EXPORT extern Standard_Real GLOBAL_tolFF;
@@ -121,8 +121,8 @@ TopAbs_State TopOpeBRep_FacesFiller::StBipVPonF
   if (isperiodic) { 
 #ifdef OCCT_DEBUG
 //    TopOpeBRep_FFDumper FFD(*this); 
-//    cout <<"vpf :"; FFD.DumpVP(vpf,cout);
-//    cout <<"vpl :"; FFD.DumpVP(vpl,cout);
+//    std::cout <<"vpf :"; FFD.DumpVP(vpf,std::cout);
+//    std::cout <<"vpl :"; FFD.DumpVP(vpl,std::cout);
 #endif
 
     Standard_Integer IArc = 0; 
index 9a8abef..6cf18c6 100644 (file)
@@ -79,7 +79,7 @@ void TopOpeBRep_FacesFiller::GetESL(TopTools_ListOfShape& LES)
 #ifdef OCCT_DEBUG
       if (trRL) {
        TopOpeBRep_VPointInterIterator VPI;VPI.Init(L);
-       cout<<endl<<"------------ Dump Rline  --------------------"<<endl;
+       std::cout<<std::endl<<"------------ Dump Rline  --------------------"<<std::endl;
        for (; VPI.More(); VPI.Next()) myHFFD->DumpVP(VPI.CurrentVP());
       }
 #endif
@@ -217,10 +217,10 @@ Standard_Boolean TopOpeBRep_FacesFiller::KeepRLine
   keeprline = keeprline||(stVPbip==TopAbs_ON); // REST1
 #ifdef OCCT_DEBUG
 //  if (trc) {
-//    cout<<" bip("<<vpf.Index()<<","<<vpl.Index()<<") of line restriction ";
-//    cout<<L.Index()<<" is ";TopAbs::Print(stVPbip,cout);
-//    if (keeprline) cout<<" : edge restriction kept"<<endl;
-//    else cout<<" : edge restriction kept not kept"<<endl; 
+//    std::cout<<" bip("<<vpf.Index()<<","<<vpl.Index()<<") of line restriction ";
+//    std::cout<<L.Index()<<" is ";TopAbs::Print(stVPbip,std::cout);
+//    if (keeprline) std::cout<<" : edge restriction kept"<<std::endl;
+//    else std::cout<<" : edge restriction kept not kept"<<std::endl; 
 //  }
 #endif 
     
index 12f799f..d0911d4 100644 (file)
@@ -35,7 +35,7 @@ extern Standard_Integer SAVFFi2; // FacesIntersector
 extern void TopOpeBRep_SettraceEEFF(const Standard_Boolean b);
 extern Standard_Boolean TopOpeBRep_GettraceEEFF(const Standard_Integer e1,const Standard_Integer e2,const Standard_Integer f1,const Standard_Integer f2);
 void seteeff(const Standard_Boolean b,const Standard_Integer e1,const Standard_Integer e2, const Standard_Integer f1,const Standard_Integer f2)
-{cout<<"b,e1,e2,f1,f2 : "<<b<<" "<<e1<<","<<e2<<","<<f1<<","<<f2<<endl;TopOpeBRep_SettraceEEFF(b);}
+{std::cout<<"b,e1,e2,f1,f2 : "<<b<<" "<<e1<<","<<e2<<","<<f1<<","<<f2<<std::endl;TopOpeBRep_SettraceEEFF(b);}
 void seteefft(const Standard_Integer e1,const Standard_Integer e2, const Standard_Integer f1,const Standard_Integer f2) {seteeff(Standard_True,e1,e2,f1,f2);}
 void seteefff(const Standard_Integer e1,const Standard_Integer e2, const Standard_Integer f1,const Standard_Integer f2) {seteeff(Standard_False,e1,e2,f1,f2);}
 #endif
@@ -393,20 +393,20 @@ Standard_Boolean TopOpeBRep_ShapeIntersector::MoreIntersection() const
 
 #ifdef OCCT_DEBUG
   if (TopOpeBRep_GettraceSI() && res) {
-    if      ( myFFDone )   cout<<"FF : ";
-    else if ( myEEFFDone ) cout<<"    EE : ";
+    if      ( myFFDone )   std::cout<<"FF : ";
+    else if ( myEEFFDone ) std::cout<<"    EE : ";
     DumpCurrent(1);
     DumpCurrent(2);
-    if      ( myFFDone && myFFSameDomain ) cout<<"(FF SameDomain)";
-    else if ( myEEFFDone )                 cout<<"(EE of FF SameDomain)";
-    else if ( myEEDone )                   cout<<"EE : ";
-    cout<<endl;
+    if      ( myFFDone && myFFSameDomain ) std::cout<<"(FF SameDomain)";
+    else if ( myEEFFDone )                 std::cout<<"(EE of FF SameDomain)";
+    else if ( myEEDone )                   std::cout<<"EE : ";
+    std::cout<<std::endl;
     if (myEEFFDone) {
       Standard_Integer ie1 = myEdgeScanner.Index();
       Standard_Integer ie2 = myEdgeExplorer.Index();
       Standard_Integer if1 = myFaceScanner.Index();
       Standard_Integer if2 = myFaceExplorer.Index();
-      cout<<"    trc teeff 1 "<<ie1<<" "<<ie2<<" "<<if1<<" "<<if2<<"; # ie1 ie2 if1 if2"<<endl;
+      std::cout<<"    trc teeff 1 "<<ie1<<" "<<ie2<<" "<<if1<<" "<<if2<<"; # ie1 ie2 if1 if2"<<std::endl;
       Standard_Boolean b = TopOpeBRep_GettraceEEFF(ie1,ie2,if1,if2);
       if (b) seteefft(ie1,ie2,if1,if2);
       else   seteefff(ie1,ie2,if1,if2);
@@ -427,24 +427,24 @@ Standard_Boolean TopOpeBRep_ShapeIntersector::MoreIntersection() const
 void TopOpeBRep_ShapeIntersector::DumpCurrent(const Standard_Integer K) const
 {
   if      ( myFFDone ) {
-    if      ( K == 1 ) myFaceScanner.DumpCurrent(cout);
-    else if ( K == 2 ) myFaceExplorer.DumpCurrent(cout);
+    if      ( K == 1 ) myFaceScanner.DumpCurrent(std::cout);
+    else if ( K == 2 ) myFaceExplorer.DumpCurrent(std::cout);
   }
   else if ( myEEFFDone ) {
-    if      ( K == 1 ) myEdgeScanner.DumpCurrent(cout);
-    else if ( K == 2 ) myEdgeExplorer.DumpCurrent(cout);
+    if      ( K == 1 ) myEdgeScanner.DumpCurrent(std::cout);
+    else if ( K == 2 ) myEdgeExplorer.DumpCurrent(std::cout);
   }
   else if ( myFEDone ) {
-    if      ( K == 1 ) myFaceScanner.DumpCurrent(cout);
-    else if ( K == 2 ) myEdgeExplorer.DumpCurrent(cout);
+    if      ( K == 1 ) myFaceScanner.DumpCurrent(std::cout);
+    else if ( K == 2 ) myEdgeExplorer.DumpCurrent(std::cout);
   }
   else if ( myEFDone ) {
-    if      ( K == 1 ) myEdgeScanner.DumpCurrent(cout);
-    else if ( K == 2 ) myFaceExplorer.DumpCurrent(cout);
+    if      ( K == 1 ) myEdgeScanner.DumpCurrent(std::cout);
+    else if ( K == 2 ) myFaceExplorer.DumpCurrent(std::cout);
   }
   else if ( myEEDone ) {
-    if      ( K == 1 ) myEdgeScanner.DumpCurrent(cout);
-    else if ( K == 2 ) myEdgeExplorer.DumpCurrent(cout);
+    if      ( K == 1 ) myEdgeScanner.DumpCurrent(std::cout);
+    else if ( K == 2 ) myEdgeExplorer.DumpCurrent(std::cout);
   }
 }
 #else
@@ -602,9 +602,9 @@ void TopOpeBRep_ShapeIntersector::FindFFIntersection()
 #ifdef OCCT_DEBUG
     SAVFFi1 = myFaceScanner.Index(); SAVFFi2 = myFaceExplorer.Index(); 
     if (TopOpeBRep_GettraceSI()) {
-      cout<<"?? FF : ";
-      myFaceScanner.DumpCurrent(cout); myFaceExplorer.DumpCurrent(cout);
-      cout<<endl;
+      std::cout<<"?? FF : ";
+      myFaceScanner.DumpCurrent(std::cout); myFaceExplorer.DumpCurrent(std::cout);
+      std::cout<<std::endl;
     }    
 #endif
 
@@ -701,7 +701,7 @@ void TopOpeBRep_ShapeIntersector::InitEEFFIntersection()
   if (TopOpeBRep_GetcontextFFOR()) {
     face1.Orientation(TopAbs_FORWARD); //-05/07
     face2.Orientation(TopAbs_FORWARD); //-05/07
-    cout<<"ctx : InitEEFFIntersection : faces FORWARD"<<endl;
+    std::cout<<"ctx : InitEEFFIntersection : faces FORWARD"<<std::endl;
   }
 #endif
 
@@ -736,12 +736,12 @@ void TopOpeBRep_ShapeIntersector::FindEEFFIntersection()
 
 #ifdef OCCT_DEBUG
     if (TopOpeBRep_GettraceSI() && myEEIntersector.IsEmpty()) {
-      cout<<"    EE : ";
-      myEdgeScanner.DumpCurrent(cout);
-      myEdgeExplorer.DumpCurrent(cout);
-      cout<<"(EE of FF SameDomain)";
-      cout<<" : EMPTY INTERSECTION";
-      cout<<endl;
+      std::cout<<"    EE : ";
+      myEdgeScanner.DumpCurrent(std::cout);
+      myEdgeExplorer.DumpCurrent(std::cout);
+      std::cout<<"(EE of FF SameDomain)";
+      std::cout<<" : EMPTY INTERSECTION";
+      std::cout<<std::endl;
     }    
 #endif
 
@@ -1188,7 +1188,7 @@ static Standard_Integer OneShapeIsHalfSpace(const TopoDS_Shape& S1,const TopoDS_
        }
 #ifdef OCCT_DEBUG
       if( result != 0 )
-       cout << "# one of the SOLIDs probably is a HALF SPACE" << endl;
+       std::cout << "# one of the SOLIDs probably is a HALF SPACE" << std::endl;
 #endif
     }
 
index 26fb9b4..e4bd47c 100644 (file)
@@ -132,8 +132,8 @@ Standard_Boolean TopOpeBRep_ShapeIntersector2d::MoreIntersection() const
   
 #ifdef OCCT_DEBUG
   if (TopOpeBRep_GettraceSI() && res) {
-    if      ( myFFDone )   cout<<"FF : ";
-    else if ( myEEFFDone ) cout<<"    EE : ";
+    if      ( myFFDone )   std::cout<<"FF : ";
+    else if ( myEEFFDone ) std::cout<<"    EE : ";
     DumpCurrent(1);
     DumpCurrent(2);
   }    
@@ -152,12 +152,12 @@ Standard_Boolean TopOpeBRep_ShapeIntersector2d::MoreIntersection() const
 void TopOpeBRep_ShapeIntersector2d::DumpCurrent(const Standard_Integer K) const
 {
   if      ( myFFDone ) {
-    if      ( K == 1 ) myFaceScanner.DumpCurrent(cout);
-    else if ( K == 2 ) myFaceExplorer.DumpCurrent(cout);
+    if      ( K == 1 ) myFaceScanner.DumpCurrent(std::cout);
+    else if ( K == 2 ) myFaceExplorer.DumpCurrent(std::cout);
   }
   else if ( myEEFFDone ) {
-    if      ( K == 1 ) myEdgeScanner.DumpCurrent(cout);
-    else if ( K == 2 ) myEdgeExplorer.DumpCurrent(cout);
+    if      ( K == 1 ) myEdgeScanner.DumpCurrent(std::cout);
+    else if ( K == 2 ) myEdgeExplorer.DumpCurrent(std::cout);
   }
 #else
 void TopOpeBRep_ShapeIntersector2d::DumpCurrent(const Standard_Integer) const
@@ -269,10 +269,10 @@ void TopOpeBRep_ShapeIntersector2d::FindFFIntersection()
     
 #ifdef OCCT_DEBUG
     if (TopOpeBRep_GettraceSI()) {
-      cout<<"?? FF : ";
-      myFaceScanner.DumpCurrent(cout); 
-      myFaceExplorer.DumpCurrent(cout);
-      cout<<endl;
+      std::cout<<"?? FF : ";
+      myFaceScanner.DumpCurrent(std::cout); 
+      myFaceExplorer.DumpCurrent(std::cout);
+      std::cout<<std::endl;
     }    
 #endif
 
@@ -341,7 +341,7 @@ void TopOpeBRep_ShapeIntersector2d::InitEEFFIntersection()
   if (TopOpeBRep_GetcontextFFOR()) {
     face1.Orientation(TopAbs_FORWARD); //-05/07
     face2.Orientation(TopAbs_FORWARD); //-05/07
-    cout<<"ctx : InitEEFFIntersection : faces FORWARD"<<endl;
+    std::cout<<"ctx : InitEEFFIntersection : faces FORWARD"<<std::endl;
   }
 #endif
   
@@ -373,12 +373,12 @@ void TopOpeBRep_ShapeIntersector2d::FindEEFFIntersection()
     
 #ifdef OCCT_DEBUG
     if (TopOpeBRep_GettraceSI() && myEEIntersector.IsEmpty()) {
-      cout<<"    EE : ";
-      myEdgeScanner.DumpCurrent(cout);
-      myEdgeExplorer.DumpCurrent(cout);
-      cout<<"(EE of FF SameDomain)";
-      cout<<" : EMPTY INTERSECTION";
-      cout<<endl;
+      std::cout<<"    EE : ";
+      myEdgeScanner.DumpCurrent(std::cout);
+      myEdgeExplorer.DumpCurrent(std::cout);
+      std::cout<<"(EE of FF SameDomain)";
+      std::cout<<" : EMPTY INTERSECTION";
+      std::cout<<std::endl;
     }    
 #endif
     
index 3153c4d..5c93de7 100644 (file)
@@ -146,8 +146,8 @@ Standard_OStream& TopOpeBRep_ShapeScanner::DumpCurrent(Standard_OStream& OS)cons
     TopAbs_ShapeEnum    T = S.ShapeType();
     TopAbs_Orientation  O = S.Orientation();
     Standard_Integer    I = Index();
-    TopAbs::Print(T,cout);
-    cout<<"("<<I<<","; TopAbs::Print(O,cout); cout<<") ";
+    TopAbs::Print(T,std::cout);
+    std::cout<<"("<<I<<","; TopAbs::Print(O,std::cout); std::cout<<") ";
   }
 #endif
   return OS;
index c322cf9..5dbe29d 100644 (file)
@@ -315,12 +315,12 @@ Standard_OStream& TopOpeBRep_VPointInter::Dump(const Standard_Integer I,const To
                     TopOpeBRepTool_ShapeTool::Closed(E,F);
 
 #ifdef OCCT_DEBUG
-  if (closingedge) OS<<"on closing edge "; else OS<<"on edge "; TopAbs::Print(O,cout);
-  cout<<" of "<<I<<" : par : "<<Epar<<endl;
+  if (closingedge) OS<<"on closing edge "; else OS<<"on edge "; TopAbs::Print(O,std::cout);
+  std::cout<<" of "<<I<<" : par : "<<Epar<<std::endl;
   TopOpeBRep_FFTransitionTool::ProcessLineTransition(*this,I,O);
   OS<<"line transition ";
-  if (closingedge) OS<<"on closing edge "; else OS<<"on edge "; TopAbs::Print(O,cout);
-  OS<<" of "<<I<<endl;
+  if (closingedge) OS<<"on closing edge "; else OS<<"on edge "; TopAbs::Print(O,std::cout);
+  OS<<" of "<<I<<std::endl;
 #endif
   
   return OS;
@@ -338,15 +338,15 @@ Standard_OStream& TopOpeBRep_VPointInter::Dump(const TopoDS_Face& FF1,const Topo
   OS<<"VP "<<myIndex<<" on "<<myShapeIndex<<" :";
   Standard_Real Cpar = ParameterOnLine(); OS<<" on curve : "<<Cpar; 
   if (!myKeep) OS<<" NOT kept";
-  OS<<endl;
+  OS<<std::endl;
   const gp_Pnt& P = Value(); 
   OS<<PRODINP<<"P"<<myIndex<<" "; OS<<P.X()<<" "<<P.Y()<<" "<<P.Z();
-  OS<<"; #draw"<<endl;
+  OS<<"; #draw"<<std::endl;
    
-  if (IsVertexOnS1()) { OS<<"is vertex of 1"<<endl; }
-  if (IsVertexOnS2()) { OS<<"is vertex of 2"<<endl; }
-  if (IsMultiple())   { OS<<"is multiple"<<endl; }
-  if (IsInternal())   { OS<<"is internal"<<endl; }
+  if (IsVertexOnS1()) { OS<<"is vertex of 1"<<std::endl; }
+  if (IsVertexOnS2()) { OS<<"is vertex of 2"<<std::endl; }
+  if (IsMultiple())   { OS<<"is multiple"<<std::endl; }
+  if (IsInternal())   { OS<<"is internal"<<std::endl; }
 
   if      (myShapeIndex == 1) { 
     Dump(1,F1,OS); 
index cbd87b2..ddd63ba 100644 (file)
@@ -114,18 +114,18 @@ void BREP_mergePDS(const Handle(TopOpeBRepDS_HDataStructure)& HDS)
 #ifdef OCCT_DEBUG
       if (editITF) {
        if (ivp1 != 0) {
-         cout<<TopOpeBRepDS::SPrint(TopOpeBRepDS_CURVE,ic,"# BREP_mergePDS "," : ");
-         cout<<TopOpeBRepDS::SPrint(GK,GI,""," = ");
+         std::cout<<TopOpeBRepDS::SPrint(TopOpeBRepDS_CURVE,ic,"# BREP_mergePDS "," : ");
+         std::cout<<TopOpeBRepDS::SPrint(GK,GI,""," = ");
          TCollection_AsciiString str (BDS.HasShape(v1) ? "old" : "new ");
-         cout<<TopOpeBRepDS::SPrint(k1,iv1,str);
-         cout<<TopOpeBRepDS::SPrint(TopOpeBRepDS::ShapeToKind(f1.ShapeType()),if1," de ")<<endl;
+         std::cout<<TopOpeBRepDS::SPrint(k1,iv1,str);
+         std::cout<<TopOpeBRepDS::SPrint(TopOpeBRepDS::ShapeToKind(f1.ShapeType()),if1," de ")<<std::endl;
        }
        if (ivp2 != 0) {
-         cout<<TopOpeBRepDS::SPrint(TopOpeBRepDS_CURVE,ic,"# BREP_mergePDS "," : ");
-         cout<<TopOpeBRepDS::SPrint(GK,GI,""," = ");
+         std::cout<<TopOpeBRepDS::SPrint(TopOpeBRepDS_CURVE,ic,"# BREP_mergePDS "," : ");
+         std::cout<<TopOpeBRepDS::SPrint(GK,GI,""," = ");
          TCollection_AsciiString str (BDS.HasShape(v2) ? "old" : "new ");
-         cout<<TopOpeBRepDS::SPrint(k2,iv2,str);
-         cout<<TopOpeBRepDS::SPrint(TopOpeBRepDS::ShapeToKind(f2.ShapeType()),if2," de ")<<endl;
+         std::cout<<TopOpeBRepDS::SPrint(k2,iv2,str);
+         std::cout<<TopOpeBRepDS::SPrint(TopOpeBRepDS::ShapeToKind(f2.ShapeType()),if2," de ")<<std::endl;
        }
       }
 #endif
index cb815b8..d34cce0 100644 (file)
@@ -84,12 +84,12 @@ static Standard_Boolean TopOpeBRep_contextREST1 = Standard_False;
 Standard_EXPORT void TopOpeBRep_SetcontextREST1(const Standard_Boolean b) { TopOpeBRep_contextREST1 = b; }
 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextREST1(char* str) { 
   if (TopOpeBRep_contextREST1) {
-    cout<<"context REST1 actif"; if (str!=NULL) cout<<str; cout<<endl;
+    std::cout<<"context REST1 actif"; if (str!=NULL) std::cout<<str; std::cout<<std::endl;
   }
   return TopOpeBRep_contextREST1; 
 }
 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextREST1() { 
-  if (TopOpeBRep_contextREST1) cout<<"context REST1 actif"<<endl; 
+  if (TopOpeBRep_contextREST1) std::cout<<"context REST1 actif"<<std::endl; 
   return TopOpeBRep_contextREST1; 
 }
 
@@ -97,12 +97,12 @@ static Standard_Boolean TopOpeBRep_contextREST2 = Standard_False;
 Standard_EXPORT void TopOpeBRep_SetcontextREST2(const Standard_Boolean b) { TopOpeBRep_contextREST2 = b; }
 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextREST2(char* str) { 
   if (TopOpeBRep_contextREST2) {
-    cout<<"context REST2 actif"; if (str!=NULL) cout<<str; cout<<endl;
+    std::cout<<"context REST2 actif"; if (str!=NULL) std::cout<<str; std::cout<<std::endl;
   }
   return TopOpeBRep_contextREST2; 
 }
 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextREST2() { 
-  if (TopOpeBRep_contextREST2) cout<<"context REST2 actif"<<endl; 
+  if (TopOpeBRep_contextREST2) std::cout<<"context REST2 actif"<<std::endl; 
   return TopOpeBRep_contextREST2; 
 }
 
@@ -110,12 +110,12 @@ static Standard_Boolean TopOpeBRep_contextINL = Standard_False;
 Standard_EXPORT void TopOpeBRep_SetcontextINL(const Standard_Boolean b) { TopOpeBRep_contextINL = b; }
 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextINL(char* str) { 
   if (TopOpeBRep_contextINL) {
-    cout<<"context INL actif"; if (str!=NULL) cout<<str; cout<<endl;
+    std::cout<<"context INL actif"; if (str!=NULL) std::cout<<str; std::cout<<std::endl;
   }
   return TopOpeBRep_contextINL; 
 }
 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextINL() { 
-  if (TopOpeBRep_contextINL) cout<<"context INL actif"<<endl; 
+  if (TopOpeBRep_contextINL) std::cout<<"context INL actif"<<std::endl; 
   return TopOpeBRep_contextINL; 
 }
 
@@ -123,12 +123,12 @@ static Standard_Boolean TopOpeBRep_contextNEWKP = Standard_False;
 Standard_EXPORT void TopOpeBRep_SetcontextNEWKP(const Standard_Boolean b) { TopOpeBRep_contextNEWKP = b; }
 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextNEWKP(char* str) { 
   if (TopOpeBRep_contextNEWKP) {
-    cout<<"context NEWKP actif"; if (str!=NULL) cout<<str; cout<<endl;
+    std::cout<<"context NEWKP actif"; if (str!=NULL) std::cout<<str; std::cout<<std::endl;
   }
   return TopOpeBRep_contextNEWKP; 
 }
 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextNEWKP() { 
-  if (TopOpeBRep_contextNEWKP) cout<<"context NEWKP actif"<<endl; 
+  if (TopOpeBRep_contextNEWKP) std::cout<<"context NEWKP actif"<<std::endl; 
   return TopOpeBRep_contextNEWKP; 
 }
 
@@ -140,7 +140,7 @@ Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextTOL0(char* /*str*/) {
   return TopOpeBRep_contextTOL0; 
 }
 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextTOL0() { 
-  if (TopOpeBRep_contextTOL0) cout<<"context TOL0 actif"<<endl; 
+  if (TopOpeBRep_contextTOL0) std::cout<<"context TOL0 actif"<<std::endl; 
   return TopOpeBRep_contextTOL0; 
 }
 
@@ -148,12 +148,12 @@ static Standard_Boolean TopOpeBRep_contextNONOG = Standard_False;
 Standard_EXPORT void TopOpeBRep_SetcontextNONOG(const Standard_Boolean b) { TopOpeBRep_contextNONOG = b; }
 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextNONOG(char* str) { 
   if (TopOpeBRep_contextNONOG) {
-    cout<<"context NONOG actif"; if (str!=NULL) cout<<str; cout<<endl;
+    std::cout<<"context NONOG actif"; if (str!=NULL) std::cout<<str; std::cout<<std::endl;
   }
   return TopOpeBRep_contextNONOG; 
 }
 Standard_EXPORT Standard_Boolean TopOpeBRep_GetcontextNONOG() { 
-  if (TopOpeBRep_contextNONOG) cout<<"context NONOG actif"<<endl; 
+  if (TopOpeBRep_contextNONOG) std::cout<<"context NONOG actif"<<std::endl; 
   return TopOpeBRep_contextNONOG; 
 }
 
index 140d572..729355c 100644 (file)
@@ -96,13 +96,13 @@ void TopOpeBRep_ALWL::Set(const Standard_Boolean b,
 
 void TopOpeBRep_ALWL::Print()
 {
-  cout<<myname<<" defined :";
+  std::cout<<myname<<" defined :";
   Standard_Integer n = 0;
-  if (mydefdef) { cout<<" Def = "<<mydeflectionmax; n++; }
-  if (mypasdef) { cout<<" Pas = "<<mypasUVmax; n++; }
-  if (mynbpdef) { cout<<" Nbp = "<<mynbpointsmax; n++; }
-  if (!n) cout<<" none";
-  cout<<endl;
+  if (mydefdef) { std::cout<<" Def = "<<mydeflectionmax; n++; }
+  if (mypasdef) { std::cout<<" Pas = "<<mypasUVmax; n++; }
+  if (mynbpdef) { std::cout<<" Nbp = "<<mynbpointsmax; n++; }
+  if (!n) std::cout<<" none";
+  std::cout<<std::endl;
 }
 
 static TopOpeBRep_ALWL TopOpeBRep_contextALWL
index 19072f4..393bfc5 100644 (file)
@@ -75,15 +75,15 @@ Standard_Boolean TopOpeBRep_traceSIFF::Start(const TCollection_AsciiString& s,
 {
   Standard_CString cs = myfilename.ToCString();
   myopen = Standard_True;
-  if (!myfilebuf.open(cs,ios::out)) {
+  if (!myfilebuf.open(cs,std::ios::out)) {
     myopen = Standard_False;
   }
   if (!myopen) {
     return myopen;
   }
-  ostream osfic(&myfilebuf); osfic.precision(15);
+  std::ostream osfic(&myfilebuf); osfic.precision(15);
   if (s.Length()) {
-    OS<<s<<myfilename<<endl;
+    OS<<s<<myfilename<<std::endl;
   }
   return myopen;
 }
@@ -96,7 +96,7 @@ void TopOpeBRep_traceSIFF::Add(const Standard_Integer I1,
   }
   TCollection_AsciiString n1 = Name1(I1);
   TCollection_AsciiString n2 = Name2(I2);
-  ostream osfic(&myfilebuf);
+  std::ostream osfic(&myfilebuf);
   osfic<<n1<<" "<<n2<<"\n";
 }
 
@@ -107,7 +107,7 @@ void TopOpeBRep_traceSIFF::End(const TCollection_AsciiString& s,
     return;
   }
   if (s.Length()) {
-    OS<<s<<myfilename<<endl;
+    OS<<s<<myfilename<<std::endl;
   }
   myopen = Standard_False;
 }  
index aef0987..14f4f3e 100644 (file)
@@ -51,7 +51,7 @@ public:
           Standard_OStream& OS);
 private: 
   TCollection_AsciiString mybrep1,mybrep2,myfilename;
-  filebuf myfilebuf;
+  std::filebuf myfilebuf;
   Standard_Boolean myopen;
 };
 
index 2addf52..f22f171 100644 (file)
@@ -76,12 +76,12 @@ Standard_Boolean GLOBAL_bvpr = Standard_False;
 
 void debvpr(){};
 void debvprmess(Standard_Integer f1,Standard_Integer f2,Standard_Integer il,Standard_Integer vp,Standard_Integer si)
-{cout<<"f1,f2,il,vp,si : "<<f1<<","<<f2<<","<<il<<","<<vp<<","<<si<<endl;cout.flush();debvpr();}
-void debpoint(Standard_Integer i) {cout<<"+ debpoint"<<i<<endl;}
-void debvertex(Standard_Integer i){cout<<"+ debvertex"<<i<<endl;}
+{std::cout<<"f1,f2,il,vp,si : "<<f1<<","<<f2<<","<<il<<","<<vp<<","<<si<<std::endl;std::cout.flush();debvpr();}
+void debpoint(Standard_Integer i) {std::cout<<"+ debpoint"<<i<<std::endl;}
+void debvertex(Standard_Integer i){std::cout<<"+ debvertex"<<i<<std::endl;}
 
-Standard_EXPORT void debarc(const Standard_Integer i)   {cout<<"+ debarc "<<i<<endl;}
-Standard_EXPORT void debooarc(const Standard_Integer i) {cout<<"+ debooarc "<<i<<endl;}
+Standard_EXPORT void debarc(const Standard_Integer i)   {std::cout<<"+ debarc "<<i<<std::endl;}
+Standard_EXPORT void debooarc(const Standard_Integer i) {std::cout<<"+ debooarc "<<i<<std::endl;}
 #endif
 
 Standard_EXPORT Standard_Boolean FDS_LOIinfsup(const TopOpeBRepDS_DataStructure& BDS,const TopoDS_Edge& E,const Standard_Real pE,const Standard_Integer GIP,
@@ -602,7 +602,7 @@ static Standard_Boolean FUN_onedge(const TopOpeBRepDS_Point& PDS, const TopoDS_E
 }
 
 #ifdef OCCT_DEBUG
-Standard_EXPORT void funraise() {cout<<"!!!!!!!!!! PVIndex = 0 !!!!!!!!!!"<<endl;}
+Standard_EXPORT void funraise() {std::cout<<"!!!!!!!!!! PVIndex = 0 !!!!!!!!!!"<<std::endl;}
 #endif
 
 //=======================================================================
index e9302f1..90865d5 100644 (file)
@@ -43,10 +43,10 @@ void TopOpeBRepBuild_Area1dBuilder::DumpList(const TopOpeBRepBuild_ListOfLoop& L
   Standard_Integer iLOL;
   TopOpeBRepBuild_ListIteratorOfListOfLoop  itLOL;
   for (iLOL = 0, itLOL.Initialize(LOL); itLOL.More(); iLOL++, itLOL.Next()) {
-    if (iLOL) cout<<"               ";
-    else     cout<<"DUMP_AREA    : ";
+    if (iLOL) std::cout<<"               ";
+    else     std::cout<<"DUMP_AREA    : ";
     const Handle(TopOpeBRepBuild_Loop)& L = itLOL.Value();
-    L->Dump();cout<<endl;
+    L->Dump();std::cout<<std::endl;
   }
 #else
 void TopOpeBRepBuild_Area1dBuilder::DumpList(const TopOpeBRepBuild_ListOfLoop&)
@@ -105,9 +105,9 @@ void TopOpeBRepBuild_Area1dBuilder::InitAreaBuilder
                 
 #ifdef OCCT_DEBUG
     if (TopOpeBRepBuild_GettraceAREA()) {
-      cout<<"++++ new loop : "; L->Dump();
-      if (boundaryL) cout<<" is bound"; else cout<<" is not bound";
-      cout<<endl;
+      std::cout<<"++++ new loop : "; L->Dump();
+      if (boundaryL) std::cout<<" is bound"; else std::cout<<" is not bound";
+      std::cout<<std::endl;
     }
 #endif
 
@@ -244,10 +244,10 @@ void TopOpeBRepBuild_Area1dBuilder::InitAreaBuilder
 #ifdef OCCT_DEBUG
   if (TopOpeBRepBuild_GettraceAREA()) {
     if ( ! myArea.IsEmpty() ) {
-      cout<<"------- Areas -------"<<endl;
+      std::cout<<"------- Areas -------"<<std::endl;
       for (AreaIter.Initialize(myArea);AreaIter.More();AreaIter.Next())
        DumpList(AreaIter.Value());
-      cout<<"---------------------"<<endl;
+      std::cout<<"---------------------"<<std::endl;
     }
   }
 #endif
@@ -273,11 +273,11 @@ void TopOpeBRepBuild_Area1dBuilder::ADD_Loop_TO_LISTOFLoop
   
 #ifdef OCCT_DEBUG
   if (TopOpeBRepBuild_GettraceAREA()) {
-    cout<<"--------------------- add area loop to area : ";
-    L->Dump(); cout<<endl;
-    if (ss != NULL) cout<<(char*)ss<<endl;
+    std::cout<<"--------------------- add area loop to area : ";
+    L->Dump(); std::cout<<std::endl;
+    if (ss != NULL) std::cout<<(char*)ss<<std::endl;
     DumpList(LOL);
-    cout<<"---------------------"<<endl;
+    std::cout<<"---------------------"<<std::endl;
   }
 #endif
  }
@@ -302,9 +302,9 @@ const Standard_Address) const
 #ifdef OCCT_DEBUG
   if (TopOpeBRepBuild_GettraceAREA()) {
     if (ITA.More()) {
-      cout<<"--------------------- remove area loop from area : ";
-      ITA.Value()->Dump(); cout<<endl;
-      if (s != NULL) cout<<s<<endl;
+      std::cout<<"--------------------- remove area loop from area : ";
+      ITA.Value()->Dump(); std::cout<<std::endl;
+      if (s != NULL) std::cout<<s<<std::endl;
     }
   }
 #endif
@@ -314,7 +314,7 @@ const Standard_Address) const
 #ifdef OCCT_DEBUG
   if (TopOpeBRepBuild_GettraceAREA()) {
     DumpList(A);
-    cout<<"---------------------"<<endl;
+    std::cout<<"---------------------"<<std::endl;
   }
 #endif
 }
@@ -343,9 +343,9 @@ void TopOpeBRepBuild_Area1dBuilder::ADD_LISTOFLoop_TO_LISTOFLoop
   char* s2 = (char*)ss2;
 
   if (TopOpeBRepBuild_GettraceAREA()) {
-    cout<<"--------------------- add area 1 to area 2 : ";
-    if (s != NULL) cout<<s;  cout<<endl;
-    cout<<"1 : "; if (s1 != NULL) cout<<s1; cout<<endl;
+    std::cout<<"--------------------- add area 1 to area 2 : ";
+    if (s != NULL) std::cout<<s;  std::cout<<std::endl;
+    std::cout<<"1 : "; if (s1 != NULL) std::cout<<s1; std::cout<<std::endl;
     DumpList(A1);
   }
 #endif
@@ -354,9 +354,9 @@ void TopOpeBRepBuild_Area1dBuilder::ADD_LISTOFLoop_TO_LISTOFLoop
   
 #ifdef OCCT_DEBUG
   if (TopOpeBRepBuild_GettraceAREA()) {
-    cout<<"2 : "; if (s2 != NULL) cout<<s2; cout<<endl;
+    std::cout<<"2 : "; if (s2 != NULL) std::cout<<s2; std::cout<<std::endl;
     DumpList(A2);
-    cout<<"---------------------"<<endl;
+    std::cout<<"---------------------"<<std::endl;
   }
 #endif
 }
index 4cdf1fa..6cd9cef 100644 (file)
@@ -208,7 +208,7 @@ void TopOpeBRepBuild_Area2dBuilder::InitAreaBuilder
     if ( myArea.IsEmpty() )  {
 #ifdef OCCT_DEBUG
       if (TopOpeBRepBuild_GettraceAREA())
-       cout<<"---"<<endl<<"--- purge"<<endl<<"---"<<endl;
+       std::cout<<"---"<<std::endl<<"--- purge"<<std::endl<<"---"<<std::endl;
 #endif
       TopOpeBRepBuild_ListOfLoop newArea3;
       newArea3.Append(boundaryloops);
index 131c746..6a2bf50 100644 (file)
@@ -55,7 +55,7 @@ extern Standard_Boolean TopOpeBRepBuild_GettraceCU();
 void TopOpeBRepBuild_Builder::BuildEdges(const Standard_Integer iC,const Handle(TopOpeBRepDS_HDataStructure)& HDS)
 {
 #ifdef OCCT_DEBUG
-  if (TopOpeBRepBuild_GettraceCU()) cout<<"\nBuildEdges on C "<<iC<<endl;
+  if (TopOpeBRepBuild_GettraceCU()) std::cout<<"\nBuildEdges on C "<<iC<<std::endl;
 #endif
   const TopOpeBRepDS_Curve& C = HDS->Curve(iC);
   const Handle(Geom_Curve)& C3D = C.Curve(); 
index e297038..71b3004 100644 (file)
@@ -82,7 +82,7 @@ void TopOpeBRepBuild_Builder::BuildFaces(const Standard_Integer iS,
     Standard_Integer iC = SCurves.Current();
     const TopOpeBRepDS_Curve& CDS = HDS->Curve(iC);
 #ifdef OCCT_DEBUG
-    if (tSE) cout<<endl<<"BuildFaces : C "<<iC<<" on S "<<iS<<endl;
+    if (tSE) std::cout<<std::endl<<"BuildFaces : C "<<iC<<" on S "<<iS<<std::endl;
 #endif
     TopoDS_Shape anEdge;
     TopTools_ListIteratorOfListOfShape Iti(NewEdges(iC)); 
index e39324e..8cd666c 100644 (file)
@@ -68,9 +68,9 @@ extern Standard_Boolean TopOpeBRepBuild_GettraceCUV();
 extern Standard_Boolean TopOpeBRepBuild_GettraceSPF();
 extern Standard_Boolean TopOpeBRepBuild_GettraceSPS();
 extern Standard_Boolean TopOpeBRepBuild_GetcontextSF2();
-Standard_EXPORT void debmarksplit(const Standard_Integer i) {cout<<"++ debmarksplit "<<i<<endl;}
-Standard_EXPORT void debchangesplit(const Standard_Integer i) {cout<<"++ debchangesplit "<<i<<endl;}
-Standard_EXPORT void debspf(const Standard_Integer i) {cout<<"++  debspf"<<i<<endl;}
+Standard_EXPORT void debmarksplit(const Standard_Integer i) {std::cout<<"++ debmarksplit "<<i<<std::endl;}
+Standard_EXPORT void debchangesplit(const Standard_Integer i) {std::cout<<"++ debchangesplit "<<i<<std::endl;}
+Standard_EXPORT void debspf(const Standard_Integer i) {std::cout<<"++  debspf"<<i<<std::endl;}
 #endif
 
 static  Standard_Integer STATIC_SOLIDINDEX = 0;
@@ -318,8 +318,8 @@ Standard_Boolean TopOpeBRepBuild_Builder::ToSplit(const TopoDS_Shape& S,const To
 #ifdef OCCT_DEBUG
   Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
   if (tSPS) { 
-    cout<<"tosplit "<<tosplit<<" : !issplit "<<(!issplit);
-    cout<<" && (hasgeom || hassame) ("<<hasgeom<<" || "<<hassame<<")"<<endl;
+    std::cout<<"tosplit "<<tosplit<<" : !issplit "<<(!issplit);
+    std::cout<<" && (hasgeom || hassame) ("<<hasgeom<<" || "<<hassame<<")"<<std::endl;
   }
 #endif
 
@@ -347,7 +347,7 @@ void TopOpeBRepBuild_Builder::MarkSplit(const TopoDS_Shape& S,const TopAbs_State
   Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
   if(tSPS){
     GdumpSHA(S, (char *) "MarkSplit ");
-    cout<<" ";TopAbs::Print(ToBuild,cout);cout<<" "<<Bval<<endl;
+    std::cout<<" ";TopAbs::Print(ToBuild,std::cout);std::cout<<" "<<Bval<<std::endl;
     debmarksplit(iS);
   }
 #endif
@@ -407,7 +407,7 @@ TopTools_ListOfShape& TopOpeBRepBuild_Builder::ChangeSplit(const TopoDS_Shape& S
   Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
   if(tSPS){
     GdumpSHA(S, (char *) "ChangeSplit ");
-    cout<<" ";TopAbs::Print(ToBuild,cout);cout<<endl;
+    std::cout<<" ";TopAbs::Print(ToBuild,std::cout);std::cout<<std::endl;
     debchangesplit(iS);
   }
 #endif
@@ -793,9 +793,9 @@ void TopOpeBRepBuild_Builder::SplitEdge1(const TopoDS_Shape& Eoriented,
 #ifdef OCCT_DEBUG
   Standard_Integer iEdge; Standard_Boolean tSPS = GtraceSPS(Eoriented,iEdge);
   if(tSPS){
-    cout<<endl;
+    std::cout<<std::endl;
     GdumpSHASTA(Eoriented,ToBuild1,"--- SplitEdge ");
-    cout<<endl;
+    std::cout<<std::endl;
   }
 #endif
   
@@ -814,9 +814,9 @@ void TopOpeBRepBuild_Builder::SplitEdge1(const TopoDS_Shape& Eoriented,
 #ifdef OCCT_DEBUG
   if(tSPS){GdumpSAMDOM(LE1, (char *) "1 : ");}
   if(tSPS){GdumpSAMDOM(LE2, (char *) "2 : ");}
-  if(tSPS){cout<<endl;}
-  if(tSPS){cout<<"V of edge ";TopAbs::Print(Eforward.Orientation(),cout);}
-  if(tSPS){cout<<endl;}
+  if(tSPS){std::cout<<std::endl;}
+  if(tSPS){std::cout<<"V of edge ";TopAbs::Print(Eforward.Orientation(),std::cout);}
+  if(tSPS){std::cout<<std::endl;}
   if(tSPS){GdumpEDG(Eforward);}
 #endif
   
@@ -844,7 +844,7 @@ void TopOpeBRepBuild_Builder::SplitEdge1(const TopoDS_Shape& Eoriented,
   if ( !PVS.MoreLoop() ) {
 #ifdef OCCT_DEBUG
     if(tSPS) {
-      cout<<"NO VERTEX split "; TopAbs::Print(ToBuild1,cout);cout<<endl;
+      std::cout<<"NO VERTEX split "; TopAbs::Print(ToBuild1,std::cout);std::cout<<std::endl;
     }
 #endif
     return;
@@ -898,7 +898,7 @@ void TopOpeBRepBuild_Builder::SplitEdge2(const TopoDS_Shape& Eoriented,
 
 #ifdef OCCT_DEBUG
   Standard_Integer iEdge; Standard_Boolean tSPS = GtraceSPS(Eoriented,iEdge);
-  if(tSPS){cout<<endl;}
+  if(tSPS){std::cout<<std::endl;}
   if(tSPS){GdumpSHASTA(Eoriented,ToBuild1,"--- SplitEdge2 ");}
 #endif
   
@@ -922,7 +922,7 @@ void TopOpeBRepBuild_Builder::SplitEdge2(const TopoDS_Shape& Eoriented,
   PVS.InitLoop();
   if ( !PVS.MoreLoop() ) {
 #ifdef OCCT_DEBUG
-    if(tSPS) {cout<<"NO VERTEX split ";TopAbs::Print(ToBuild1,cout);cout<<endl;}
+    if(tSPS) {std::cout<<"NO VERTEX split ";TopAbs::Print(ToBuild1,std::cout);std::cout<<std::endl;}
 #endif
     return;
   }
@@ -1003,7 +1003,7 @@ void TopOpeBRepBuild_Builder::SplitFace1(const TopoDS_Shape& Foriented,
 #ifdef OCCT_DEBUG
   Standard_Boolean tSPF=TopOpeBRepBuild_GettraceSPF();
   Standard_Integer iFace=myDataStructure->Shape(Foriented);
-  if(tSPF){cout<<endl;GdumpSHASTA(Foriented,ToBuild1,"=== SplitFace ");}
+  if(tSPF){std::cout<<std::endl;GdumpSHASTA(Foriented,ToBuild1,"=== SplitFace ");}
   if(tSPF){GdumpSAMDOM(LF1, (char *) "1 : ");GdumpSAMDOM(LF2, (char *) "2 : ");}
   if(tSPF) debspf(iFace);
 #endif
@@ -1101,7 +1101,7 @@ void TopOpeBRepBuild_Builder::SplitFace2(const TopoDS_Shape& Foriented,
   Standard_Boolean tSPF = TopOpeBRepBuild_GettraceSPF();
 //  Standard_Integer iFace = myDataStructure->Shape(Foriented);
   if (tSPF) {
-    cout<<endl;
+    std::cout<<std::endl;
     GdumpSHASTA(Foriented,ToBuild1,"=== SplitFace ");
     GdumpSAMDOM(LF1, (char *) "samedomain 1 : ");
     GdumpSAMDOM(LF2, (char *) "samedomain 2 : ");
@@ -1321,7 +1321,7 @@ void TopOpeBRepBuild_Builder::SplitSolid(const TopoDS_Shape& S1oriented,
   Standard_Boolean tSPS = TopOpeBRepBuild_GettraceSPS();
 //  Standard_Integer iSolid = myDataStructure->Shape(S1oriented);
   if (tSPS) {
-    cout<<endl;
+    std::cout<<std::endl;
     GdumpSHASTA(S1oriented,ToBuild1,"___ SplitSolid ");
     GdumpSAMDOM(LS1, (char *) "1 : "); 
     GdumpSAMDOM(LS2, (char *) "2 : ");
@@ -1360,8 +1360,8 @@ void TopOpeBRepBuild_Builder::SplitSolid(const TopoDS_Shape& S1oriented,
           TCollection_AsciiString ss("--- SplitSolid ");
           ss = ss + SFS.DEBNumber() + " AddElement SFS+ face ";
          GdumpSHA(aFace,(Standard_Address)ss.ToCString());
-         cout<<" ";TopAbs::Print(ToBuild1,cout)<<" : 1 face ";
-         TopAbs::Print(ori,cout); cout<<endl;
+         std::cout<<" ";TopAbs::Print(ToBuild1,std::cout)<<" : 1 face ";
+         TopAbs::Print(ori,std::cout); std::cout<<std::endl;
        }
 #endif
        SFS.AddElement(aFace);
@@ -1570,9 +1570,9 @@ void TopOpeBRepBuild_Builder::FillShape(const TopoDS_Shape& S1,
       RevOri = ! RevOri;
 #ifdef OCCT_DEBUG
 //      Standard_Integer iFace = myDataStructure->Shape(S1);
-//      cout<<endl<<"********** ";
-//      cout<<"retournement d'orientation de ";TopAbs::Print(t,cout);
-//      cout<<" "<<iFace<<endl;
+//      std::cout<<std::endl<<"********** ";
+//      std::cout<<"retournement d'orientation de ";TopAbs::Print(t,std::cout);
+//      std::cout<<" "<<iFace<<std::endl;
 #endif
     }
   }
@@ -1621,7 +1621,7 @@ void TopOpeBRepBuild_Builder::FillFace(const TopoDS_Shape& F1,
 #ifdef OCCT_DEBUG
   Standard_Boolean tSPF = TopOpeBRepBuild_GettraceSPF();
 //  Standard_Integer iFace = myDataStructure->Shape(F1);
-  if(tSPF){cout<<endl;}
+  if(tSPF){std::cout<<std::endl;}
   if(tSPF){GdumpSHASTA(F1,ToBuild1,"=-= FillFace ");}
 #endif
   myListOfFace = LF2;
@@ -1694,10 +1694,10 @@ void TopOpeBRepBuild_Builder::FillVertexSetOnValue
   const TopoDS_Edge& EDEB = PVS.Edge();
   Standard_Integer iE; Standard_Boolean tSPS = GtraceSPS(EDEB,iE);
   if (tSPS) {
-    if (keep) cout<<"+"; else cout<<"-";
-    if (ispoint) cout<<" PDS "; else cout<<" VDS ";
-    cout<<ind<<" : "; GdumpORIPARPNT(ori,par,BRep_Tool::Pnt(TopoDS::Vertex(V)));
-    cout<<endl;
+    if (keep) std::cout<<"+"; else std::cout<<"-";
+    if (ispoint) std::cout<<" PDS "; else std::cout<<" VDS ";
+    std::cout<<ind<<" : "; GdumpORIPARPNT(ori,par,BRep_Tool::Pnt(TopoDS::Vertex(V)));
+    std::cout<<std::endl;
   }
 #endif
 }
index 05acc74..4be9fc5 100644 (file)
@@ -39,23 +39,23 @@ Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextEINTERNAL();
 Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextEEXTERNAL();
 Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOSG();
 Standard_EXPORT void debON(const Standard_Integer iF)
-{cout<<"++ debON "<<iF<<" "<<endl;}
+{std::cout<<"++ debON "<<iF<<" "<<std::endl;}
 Standard_EXPORT void debON(const Standard_Integer iF, const TopAbs_State TB1,const TopAbs_State TB2)
-{cout<<"++ debON "<<iF<<" :TB1=";TopAbs::Print(TB1,cout);cout<<",TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+{std::cout<<"++ debON "<<iF<<" :TB1=";TopAbs::Print(TB1,std::cout);std::cout<<",TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
 Standard_EXPORT void debfillonf(const Standard_Integer iF)
-{cout<<"++ debfillonf "<<iF<<" "<<endl;}
+{std::cout<<"++ debfillonf "<<iF<<" "<<std::endl;}
 Standard_EXPORT void debfillone(const Standard_Integer iE)
-{cout<<"++ debfillone "<<iE<<" "<<endl;}
+{std::cout<<"++ debfillone "<<iE<<" "<<std::endl;}
 Standard_EXPORT void debfillonfe(){}
 Standard_EXPORT void debfillonfemess(const Standard_Integer f,const Standard_Integer e)
-{cout<<"++ debfillonfe f"<<f<<" e"<<e<<endl;debfillonfe();}
+{std::cout<<"++ debfillonfe f"<<f<<" e"<<e<<std::endl;debfillonfe();}
 Standard_EXPORT void debfillonfe3d(){}
 Standard_EXPORT void debfillonfemess3d(const Standard_Integer f,const Standard_Integer e)
-{cout<<"++ debfillonfe3d f"<<f<<" e"<<e<<endl;debfillonfe3d();}
+{std::cout<<"++ debfillonfe3d f"<<f<<" e"<<e<<std::endl;debfillonfe3d();}
 Standard_EXPORT void debfillonfemess(const Standard_Integer iFOR,const Standard_Integer iEG,const TopOpeBRepBuild_PBuilder& PB,const TopOpeBRepBuild_PWireEdgeSet& PWES,const TCollection_AsciiString& str)
 {PB->GdumpSHASTA(iEG,TopAbs_ON,*PWES,str); debfillonfemess(iFOR,iEG); }
 Standard_EXPORT void debaddpwes(const Standard_Integer iFOR,const TopAbs_State TB1,const Standard_Integer iEG,const TopAbs_Orientation neworiE,const TopOpeBRepBuild_PBuilder& PB,const TopOpeBRepBuild_PWireEdgeSet& PWES,const TCollection_AsciiString& str1,const TCollection_AsciiString& str2)
-{PB->GdumpSHASTA(iFOR,TB1,*PWES,str1,str2);cout<<iEG<<" : 1 edge ";TopAbs::Print(neworiE,cout);cout<<endl; }
+{PB->GdumpSHASTA(iFOR,TB1,*PWES,str1,str2);std::cout<<iEG<<" : 1 edge ";TopAbs::Print(neworiE,std::cout);std::cout<<std::endl; }
 Standard_EXPORT Standard_Boolean DEBTEFOR(const TopOpeBRepBuild_Builder& B,const Standard_Integer iFOR,const Standard_Integer GI)
 {return B.GtraceSPS(iFOR,GI); }
 #endif
@@ -66,10 +66,10 @@ Standard_EXPORT void FUN_RaiseON()
 static void FUN_cout(const TopoDS_Shape& eON)
 {
   TopAbs_Orientation oE = eON.Orientation();
-  if (oE == TopAbs_FORWARD)  cout<<"-> + eONF"<<endl;
-  if (oE == TopAbs_REVERSED) cout<<"-> + eONR"<<endl;
-  if (oE == TopAbs_INTERNAL) cout<<"-> + eONI"<<endl;
-  if (oE == TopAbs_EXTERNAL) cout<<"-> + eONE"<<endl;
+  if (oE == TopAbs_FORWARD)  std::cout<<"-> + eONF"<<std::endl;
+  if (oE == TopAbs_REVERSED) std::cout<<"-> + eONR"<<std::endl;
+  if (oE == TopAbs_INTERNAL) std::cout<<"-> + eONI"<<std::endl;
+  if (oE == TopAbs_EXTERNAL) std::cout<<"-> + eONE"<<std::endl;
 }
 #endif
 
@@ -213,7 +213,7 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES1(const Handle(TopOpeBRepDS_Inter
 #ifdef OCCT_DEBUG
 Standard_EXPORT void FUN_coutmess(const TCollection_AsciiString& m)
 {
-    cout<<m;
+    std::cout<<m;
 }
 #else
 Standard_EXPORT void FUN_coutmess(const TCollection_AsciiString&)
@@ -295,10 +295,10 @@ Standard_Boolean FUN_keepEON(const TopOpeBRepBuild_Builder&,
 #ifdef OCCT_DEBUG
   if (tFFEG || tFSEG) {
     if ( keep1 != keep2 || keep1 != keep3 || keep2 != keep3 ) {
-      cout<<"\nkeepEON : EGB "<<EGBoundFOR<<" EG "<<iEG<<" FOR "<<iFF<<" FS "<<iFS;
-      cout<<" keep1 "<<keep1<<" keep2 "<<keep2<<" keep3 "<<keep3;
-      cout<<" !=!=!=!=!=!=!=!=!=!=!=!=!=!=!=";
-      cout<<endl;
+      std::cout<<"\nkeepEON : EGB "<<EGBoundFOR<<" EG "<<iEG<<" FOR "<<iFF<<" FS "<<iFS;
+      std::cout<<" keep1 "<<keep1<<" keep2 "<<keep2<<" keep3 "<<keep3;
+      std::cout<<" !=!=!=!=!=!=!=!=!=!=!=!=!=!=!=";
+      std::cout<<std::endl;
     }
   }
 #endif
@@ -581,8 +581,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
   if ( yap00 ) {
 #ifdef OCCT_DEBUG
     if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap0 GFillON");
-    if (tE) {cout<<"yap00(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
-            cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+    if (tE) {std::cout<<"yap00(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
+            std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
 #endif
 
     TopAbs_Orientation oeff;
@@ -621,8 +621,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
   if ( yap0 ) {
 #ifdef OCCT_DEBUG
     if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap0 GFillON");
-    if (tE) {cout<<"yap0(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
-            cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+    if (tE) {std::cout<<"yap0(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
+            std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
 #endif
 
     TopAbs_Orientation oeff;
@@ -792,8 +792,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
   if ( yapc1 ) {
 #ifdef OCCT_DEBUG
     if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yapc1 GFillON");
-    if (tE) {cout<<"yapc1(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
-            cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+    if (tE) {std::cout<<"yapc1(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
+            std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
 #endif
     const TopoDS_Edge& e3d = TopoDS::Edge(BDS.Shape(ie3d));
     
@@ -822,7 +822,7 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
     else if (oe3dk == TopAbs_EXTERNAL) keep3d = Standard_False;
 
 #ifdef OCCT_DEBUG
-//    if(tEFOR) {cout<<endl<<"yapc1 keep3d : "<<keep3d<<endl;debfillonfemess3d(iFOR,iEG);}
+//    if(tEFOR) {std::cout<<std::endl<<"yapc1 keep3d : "<<keep3d<<std::endl;debfillonfemess3d(iFOR,iEG);}
 #endif
 
     if (keep3d) {
@@ -845,8 +845,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
   if ( yapc2 ) {
 #ifdef OCCT_DEBUG
     if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yapc2 GFillON");
-    if (tE) {cout<<"yapc2(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
-            cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+    if (tE) {std::cout<<"yapc2(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
+            std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
 #endif
 
     Standard_Boolean keep = Standard_False;
@@ -911,8 +911,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
   if ( yapc3 ) {
 #ifdef OCCT_DEBUG
     if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yapc3 GFillON");
-    if (tE) {cout<<"yapc3(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
-            cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+    if (tE) {std::cout<<"yapc3(FOR"<<iFOR<<" FS"<<iFS<<" EG"<<GI<<") ";
+            std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
 #endif
 
     Standard_Boolean keep = Standard_False;
@@ -1148,8 +1148,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
   TopAbs_State staFS = (rankFS == rankFOR) ? TB1 : TB2;
   
 #ifdef OCCT_DEBUG
-//  if(tEFOR) cout<<endl<<"yap1 yap2 yap3 yap4 = ";
-//  if(tEFOR) cout<<yap1<<" "<<yap2<<" "<<yap3<<" "<<yap4<<endl<<endl;
+//  if(tEFOR) std::cout<<std::endl<<"yap1 yap2 yap3 yap4 = ";
+//  if(tEFOR) std::cout<<yap1<<" "<<yap2<<" "<<yap3<<" "<<yap4<<std::endl<<std::endl;
 //  if(tEFOR) debfillonfemess(iFOR,iEG);
 #endif
   
@@ -1157,8 +1157,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
   if ( yap1 ) {
 #ifdef OCCT_DEBUG
     if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap1 GFillON");
-    if (tE) {cout<<"yap1(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
-            cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+    if (tE) {std::cout<<"yap1(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
+            std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
     
 #endif
     
@@ -1305,8 +1305,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
   if ( yap2 ) {
 #ifdef OCCT_DEBUG
     if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap2 GFillON");
-    if (tE) {cout<<"yap2(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
-            cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+    if (tE) {std::cout<<"yap2(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
+            std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
 #endif
     
     // FF est samedomain avec FCX
@@ -1345,7 +1345,7 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
       else    FUN_coutmess("DEBUG GFillONPartsWES2_4 orientation != F,R\n");
     }    
 //#ifdef OCCT_DEBUG
-//    if(tEFOR) {cout<<endl<<"yap2 : b3d,b2d "<<b3d<<","<<b2d<<endl;debfillonfemess(iFOR,iEG);}
+//    if(tEFOR) {std::cout<<std::endl<<"yap2 : b3d,b2d "<<b3d<<","<<b2d<<std::endl;debfillonfemess(iFOR,iEG);}
 //#endif
     
     // bcl1;bcl2; c12;tsp(f9),tspON(e7)
@@ -1428,7 +1428,7 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
        }
       }
 //#ifdef OCCT_DEBUG
-//      if(tEFOR) {cout<<endl<<"yap2 : keep "<<keep<<endl;debfillonfemess(iFOR,iEG);}
+//      if(tEFOR) {std::cout<<std::endl<<"yap2 : keep "<<keep<<std::endl;debfillonfemess(iFOR,iEG);}
 //#endif
       if (!keep) return;
     } // !isfafa
@@ -1510,8 +1510,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
   if ( yap6 ) {
 #ifdef OCCT_DEBUG
     if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap6 GFillON");
-    if (tE) {cout<<"yap6(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
-            cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+    if (tE) {std::cout<<"yap6(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
+            std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
 #endif
     TopAbs_Orientation neworiE;
     // FF est samedomain avec FCX
@@ -1729,8 +1729,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
   if ( yap3 ) {
 #ifdef OCCT_DEBUG
     if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap3 GFillON");
-    if (tE) {cout<<"yap3(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
-            cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+    if (tE) {std::cout<<"yap3(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
+            std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
 #endif
     
     ie3d = ::FUN_findeSD(BDS,eON,EG,FOR,oe3d,3);
@@ -1762,7 +1762,7 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
     else if (oe3dk == TopAbs_EXTERNAL) keep3d = Standard_False;
 
 #ifdef OCCT_DEBUG
-    if(tEFOR) {cout<<endl<<"yap3 keep3d : "<<keep3d<<endl;debfillonfemess3d(iFOR,iEG);}
+    if(tEFOR) {std::cout<<std::endl<<"yap3 keep3d : "<<keep3d<<std::endl;debfillonfemess3d(iFOR,iEG);}
 #endif
     
     if (keep3d) {
@@ -1785,8 +1785,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
   if ( yap5 ) {
 #ifdef OCCT_DEBUG
     if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap5 GFillON");
-    if (tE) {cout<<"yap5(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
-            cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+    if (tE) {std::cout<<"yap5(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
+            std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
 #endif
     ie2d = ::FUN_findeSD(BDS,eON,EG,FOR,oe2d,2);
     if (ie2d == 0) return; 
@@ -1835,8 +1835,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
   if ( yap4 ) {
 #ifdef OCCT_DEBUG
     if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap4 GFillON");
-    if (tE) {cout<<"yap4(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
-            cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+    if (tE) {std::cout<<"yap4(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
+            std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
 #endif    
 
     TopAbs_Orientation oTFE = TFE.Orientation(TB1);
@@ -1858,8 +1858,8 @@ void TopOpeBRepBuild_BuilderON::GFillONPartsWES2(const Handle(TopOpeBRepDS_Inter
     // xpu290598 : CTS20212
 #ifdef OCCT_DEBUG
     if (tEFOR) debfillonfemess(iFOR,iEG,myPB,myPWES,"yap7 GFillON");
-    if (tE) {cout<<"yap7(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
-            cout<<"TB1=";TopAbs::Print(TB1,cout);cout<<" TB2=";TopAbs::Print(TB2,cout);cout<<endl;}
+    if (tE) {std::cout<<"yap7(FOR"<<iFOR<<" FCX"<<iFCX<<" EG"<<GI<<") ";
+            std::cout<<"TB1=";TopAbs::Print(TB1,std::cout);std::cout<<" TB2=";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;}
 #endif
     Standard_Boolean isbound = Standard_False;
     for (TopTools_ListIteratorOfListOfShape it(BDS.ShapeSameDomain(iFOR)); it.More(); it.Next()){
index 6a86443..391d9ee 100644 (file)
@@ -41,7 +41,7 @@ Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextEINTERNAL();
 Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextEEXTERNAL();
 Standard_EXPORT void debfillonf(const Standard_Integer iF);
 Standard_EXPORT void debON2d(const Standard_Integer iF)
-{cout<<"++ debON2d "<<iF<<" "<<endl;}
+{std::cout<<"++ debON2d "<<iF<<" "<<std::endl;}
 #endif
 
 Standard_EXPORT TopAbs_State FUN_build_TB(const TopOpeBRepBuild_PBuilder& PB,const Standard_Integer rank); // xpu290698
@@ -75,7 +75,7 @@ void TopOpeBRepBuild_BuilderON::Perform2d
 #ifdef OCCT_DEBUG
   Standard_Integer iFOR;Standard_Boolean tFOR=myPB->GtraceSPS(FOR,iFOR);
   if (tFOR) debfillonf(iFOR);
-  if (tFOR) cout<<endl<<"LI on F"<<iFOR<<endl;
+  if (tFOR) std::cout<<std::endl<<"LI on F"<<iFOR<<std::endl;
 #endif
 
   for (TopOpeBRepDS_ListIteratorOfListOfInterference itI(lFEI); itI.More(); itI.Next()){
@@ -187,7 +187,7 @@ void TopOpeBRepBuild_BuilderON::GFillONParts2dWES2(const Handle(TopOpeBRepDS_Int
   //=========================================
   if ( yap6) {
 #ifdef OCCT_DEBUG
-    if (tFOR) cout<<"* yap6 = 1"<<endl;
+    if (tFOR) std::cout<<"* yap6 = 1"<<std::endl;
 #endif
     TopAbs_Orientation neworiE = TopAbs_FORWARD;
     // FF est samedomain avec FCX
@@ -213,7 +213,7 @@ void TopOpeBRepBuild_BuilderON::GFillONParts2dWES2(const Handle(TopOpeBRepDS_Int
       ok = FUN_ds_shareG(myPB->DataStructure(),iFCX,iFOR,GI,TopoDS::Edge(EspON),shareG);
     if (!ok) return; // nyiFUNRAISE
 #ifdef OCCT_DEBUG
-    if (tFOR) cout<<" shareG="<<shareG<<endl;
+    if (tFOR) std::cout<<" shareG="<<shareG<<std::endl;
 #endif
 
     if (SO) {
@@ -247,7 +247,7 @@ void TopOpeBRepBuild_BuilderON::GFillONParts2dWES2(const Handle(TopOpeBRepDS_Int
     newE.Orientation(neworiE);  
     myPWES->AddStartElement(newE);
 #ifdef OCCT_DEBUG
-    if (tFOR) cout<<"  add spON e"<<GI<<endl;
+    if (tFOR) std::cout<<"  add spON e"<<GI<<std::endl;
 #endif
     return;
   } // yap6
index 9a1fa6b..ea50a76 100644 (file)
@@ -36,7 +36,7 @@
 //{
 //  TCollection_AsciiString aname_1("cc_1"), aname_2("cc_2");
 //  Standard_CString name_1 = aname_1.ToCString(), name_2 = aname_2.ToCString();
-//  cout<<"compositeclassifier : "<<name_1<<","<<name_2<<endl;
+//  std::cout<<"compositeclassifier : "<<name_1<<","<<name_2<<std::endl;
 //  BRepTools::Write(S1,name_1); BRepTools::Write(S2,name_2); 
 //}
 #endif
index 0b61061..1aa64ab 100644 (file)
@@ -263,8 +263,8 @@ void TopOpeBRepBuild_Builder::End()
       Standard_Real d = P1.Distance(P2);
       if (d > newtol) {
 #ifdef OCCT_DEBUG
-        cout<<"\npoint P"<<iv<<" "<<Pv.X()<<" "<<Pv.Y()<<" "<<Pv.Z()<<endl;
-        cout<<"TopOpeBRepBuild_Builder::End BOX newtol "<<newtol<<" -> "<<d<<endl;
+        std::cout<<"\npoint P"<<iv<<" "<<Pv.X()<<" "<<Pv.Y()<<" "<<Pv.Z()<<std::endl;
+        std::cout<<"TopOpeBRepBuild_Builder::End BOX newtol "<<newtol<<" -> "<<d<<std::endl;
 #endif
         newtol = d;
         B.UpdateVertex(V,newtol);
index 5d70373..f118f8a 100644 (file)
@@ -245,7 +245,7 @@ void TopOpeBRepBuild_Builder::RegularizeFace
   }
   
 #ifdef OCCT_DEBUG
-  if (tSPSFF) { cout<<"RegularizeFace "<<iF<<endl; debregufa(iF); }
+  if (tSPSFF) { std::cout<<"RegularizeFace "<<iF<<std::endl; debregufa(iF); }
 #endif
   
   // LOF = nouvelles faces regularisees de newFace
@@ -350,7 +350,7 @@ void TopOpeBRepBuild_Builder::RegularizeFace
   if (tSPSFF && savfregu) {
     TCollection_AsciiString str("fregu"); str = str + iF;
     DBRep::Set(str.ToCString(),newFace);
-    cout<<"newFace "<<str<<" built on face "<<iF<<" saved"<<endl;
+    std::cout<<"newFace "<<str<<" built on face "<<iF<<" saved"<<std::endl;
   }
 #endif
   
index da506ce..ecd0b7c 100644 (file)
@@ -130,7 +130,7 @@ Standard_Integer FUN_AnalyzemapVon1E(const TopTools_IndexedDataMapOfShapeShape&
 {
 #ifdef DRAW
   Standard_Boolean trc = TopOpeBRepBuild_GettracePURGE();
-  if (trc) cout<<endl<<"* DetectUnclosedWire :"<<endl;
+  if (trc) std::cout<<std::endl<<"* DetectUnclosedWire :"<<std::endl;
 #endif
 
   Standard_Integer res = ISUNKNOWN;
@@ -191,34 +191,34 @@ void FUN_AnalyzemapVon1EDRAW(const Standard_Integer res,
 {
   Standard_Boolean trc = TopOpeBRepBuild_GettracePURGE();
   if (!trc) return;
-  cout<<"wire "<<iiwi;
+  std::cout<<"wire "<<iiwi;
   if      (res == ISVERTEX) {
-    cout<<" is vertex"<<endl;
+    std::cout<<" is vertex"<<std::endl;
   }
   else if (res == CLOSEDW) {
-    cout<<" is closed"<<endl;
+    std::cout<<" is closed"<<std::endl;
   }
   else if (res == GCLOSEDW) {
-    cout<<" is Gclosed :"<<endl;
+    std::cout<<" is Gclosed :"<<std::endl;
     TCollection_AsciiString aa("w_");FUN_tool_draw(aa,W,iiwi);
     Standard_Integer i ;
     for ( i = 1;i <= mapVV.Extent();i++) {
       Standard_Integer iV = mapVVsameGDRAW.Add(mapVV.FindKey(i),mapVV.FindFromIndex(i));
-      cout<<" on vve_"<<iV; aa = "vve_";
+      std::cout<<" on vve_"<<iV; aa = "vve_";
       FUN_tool_draw(aa,mapVVsameGDRAW.FindKey(iV),iV);
     }
     for (i = 1;i <= mapVon1E.Extent();i++) {
       Standard_Integer iE = mapVon1EdgeDRAW.Add(mapVon1E.FindKey(i),mapVon1E.FindFromIndex(i));
-      cout<<" on eed_"<<iE; aa = "eed_";
+      std::cout<<" on eed_"<<iE; aa = "eed_";
       FUN_tool_draw(aa,mapVon1EdgeDRAW.FindFromIndex(iE),iE);
     }
-    cout<<endl;
+    std::cout<<std::endl;
   }
   else if (res == UNCLOSEDW) {
-    cout<<" is unclosed "<<endl;
+    std::cout<<" is unclosed "<<std::endl;
     TCollection_AsciiString aa("w_");FUN_tool_draw(aa,W,iiwi);
   }
-  cout<<endl;
+  std::cout<<std::endl;
 } // FUN_AnalyzemapVon1EDRAW
 #endif
 
@@ -246,7 +246,7 @@ void TopOpeBRepBuild_FaceBuilder::DetectUnclosedWire(TopTools_IndexedDataMapOfSh
 #ifdef DRAW
   TopTools_IndexedDataMapOfShapeShape mapVon1EdgeDRAW,mapVVsameGDRAW;
   Standard_Boolean trc = TopOpeBRepBuild_GettracePURGE();
-  if (trc) cout<<endl<<"* DetectUnclosedWire :"<<endl<<endl;
+  if (trc) std::cout<<std::endl<<"* DetectUnclosedWire :"<<std::endl<<std::endl;
 #endif
 
   Standard_Integer iiwi = 0; // DEB
@@ -258,7 +258,7 @@ void TopOpeBRepBuild_FaceBuilder::DetectUnclosedWire(TopTools_IndexedDataMapOfSh
       iiwi++;
       Standard_Boolean isold = IsOldWire();
 #ifdef DRAW
-      if ( trc && isold ) cout<<"wire "<<iiwi<<" is old wire => closed"<<endl;
+      if ( trc && isold ) std::cout<<"wire "<<iiwi<<" is old wire => closed"<<std::endl;
 #endif
       if (isold) continue;
       
@@ -369,7 +369,7 @@ void TopOpeBRepBuild_FaceBuilder::CorrectGclosedWire(const TopTools_IndexedDataM
   // prequesitory : edges described by <mapVon1Edge> are not closed,not degenerated
 #ifdef OCCT_DEBUG
   if (TopOpeBRepBuild_GettracePURGE()) {
-    cout<<endl<<"* CorrectGclosedWire :"<<endl<<endl;
+    std::cout<<std::endl<<"* CorrectGclosedWire :"<<std::endl<<std::endl;
   }
 #endif
   
index e4a372b..ccb35cd 100644 (file)
@@ -81,7 +81,7 @@ void TopOpeBRepBuild_FuseFace::Init(const TopTools_ListOfShape& LIF,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepBuild_GettraceFUFA();
-  if (trc) cout << "TopOpeBRepBuild_FuseFace::Init" << endl;
+  if (trc) std::cout << "TopOpeBRepBuild_FuseFace::Init" << std::endl;
 #endif
   myLIF = LIF;
   myLRF = LRF;
@@ -94,9 +94,9 @@ void TopOpeBRepBuild_FuseFace::Init(const TopTools_ListOfShape& LIF,
 #ifdef OCCT_DEBUG
   if (trc) {
     if (myInternal) {
-      cout << " TopOpeBRepBuild_FuseFace::Init : Keep internal connections" << endl;
+      std::cout << " TopOpeBRepBuild_FuseFace::Init : Keep internal connections" << std::endl;
     } else {
-      cout << " TopOpeBRepBuild_FuseFace::Init : Suppress internal connections" << endl;
+      std::cout << " TopOpeBRepBuild_FuseFace::Init : Suppress internal connections" << std::endl;
     }
   }
 #endif
@@ -126,14 +126,14 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepBuild_GettraceFUFA();
-  if (trc) cout << "TopOpeBRepBuild_FuseFace::PerformFace()" << endl;
+  if (trc) std::cout << "TopOpeBRepBuild_FuseFace::PerformFace()" << std::endl;
 #endif
 
   myModified = Standard_False;
   myLFF.Clear();
   if (myLRF.IsEmpty()) {
 #ifdef OCCT_DEBUG
-    if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of reconstructed faces"<<endl;
+    if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of reconstructed faces"<<std::endl;
 #endif
     myModified = Standard_False;
     myDone = Standard_True;
@@ -144,7 +144,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
   Standard_Integer number = myLRF.Extent();
   if (number == 1) {
 #ifdef OCCT_DEBUG
-    if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : only 1 reconstructed face"<<endl;
+    if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : only 1 reconstructed face"<<std::endl;
 #endif
     myModified = Standard_False;
     myDone = Standard_True;
@@ -172,7 +172,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
     if (!ana.IsValid(fac)) {
 //    if (!BRepCheck_Analyzer::IsValid(fac)) {
 #ifdef OCCT_DEBUG
-      if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Invalid reconstructed face"<<endl;
+      if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Invalid reconstructed face"<<std::endl;
 #endif
       myModified = Standard_False;
       myDone = Standard_True;
@@ -186,7 +186,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
 // Orientation 3d de l'espace limite par la face
   if (Ori3dForward && Ori3dReversed) {
 #ifdef OCCT_DEBUG
-    if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Bad faces 3d orientation"<<endl;
+    if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Bad faces 3d orientation"<<std::endl;
 #endif
     myModified = Standard_False;
     myDone = Standard_True;
@@ -201,7 +201,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
   GroupShape(mylist,Keep_Edge,mapFacLFac);
   if (mapFacLFac.IsEmpty()) {
 #ifdef OCCT_DEBUG
-    if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of faces"<<endl;
+    if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of faces"<<std::endl;
 #endif
     myModified = Standard_False;
     myDone = Standard_True;
@@ -212,7 +212,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
   Standard_Integer n2 = mapFacLFac.Extent();
   if (n1 == n2) {
 #ifdef OCCT_DEBUG
-    if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : No connection"<<endl;
+    if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : No connection"<<std::endl;
 #endif
     myModified = Standard_False;
     myDone = Standard_True;
@@ -246,7 +246,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
       GroupShape(LWir,Keep_Edge,mapWirLWir);
       if (mapWirLWir.IsEmpty()) {
 #ifdef OCCT_DEBUG
-       if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of wires"<<endl;
+       if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of wires"<<std::endl;
 #endif
        myModified = Standard_False;
        myDone = Standard_True;
@@ -279,7 +279,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
          GroupShape(LEdg,Keep_Edge,mapEdgLEdg);
          if (mapEdgLEdg.IsEmpty()) {
 #ifdef OCCT_DEBUG
-           if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of edges"<<endl;
+           if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of edges"<<std::endl;
 #endif
            myModified = Standard_False;
            myDone = Standard_True;
@@ -303,7 +303,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
              if (ori1 == TopAbs_REVERSED) {
                if (OriReversed) {
 #ifdef OCCT_DEBUG
-                 if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Bad faces orientation"<<endl;
+                 if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Bad faces orientation"<<std::endl;
 #endif
                  myModified = Standard_False;
                  myDone = Standard_True;
@@ -315,7 +315,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
              else if (ori1 == TopAbs_FORWARD) {
                if (OriForward) {
 #ifdef OCCT_DEBUG
-                 if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Bad faces orientation"<<endl;
+                 if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Bad faces orientation"<<std::endl;
 #endif
                  myModified = Standard_False;
                  myDone = Standard_True;
@@ -377,7 +377,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
            MW.Add(myWireLE);
            if (!MW.IsDone()) {
 #ifdef OCCT_DEBUG
-             if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Failure in making wire"<<endl;
+             if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Failure in making wire"<<std::endl;
 #endif
              myModified = Standard_False;
              myDone = Standard_True;
@@ -465,7 +465,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
 
       if (!MF.IsDone()) {
 #ifdef OCCT_DEBUG
-       if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Failure in making face"<<endl;
+       if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Failure in making face"<<std::endl;
 #endif
        myModified = Standard_False;
        myDone = Standard_True;
@@ -485,7 +485,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
  
   if (myLFF.IsEmpty()) {
 #ifdef OCCT_DEBUG
-    if (trc) cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of fusionned faces"<<endl;
+    if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::PerformFace : Empty list of fusionned faces"<<std::endl;
 #endif
     myModified = Standard_False;
     myDone = Standard_True;
@@ -497,7 +497,7 @@ void TopOpeBRepBuild_FuseFace::PerformFace()
   myDone = Standard_True;
 
 #ifdef OCCT_DEBUG
-  if (trc) cout << " TopOpeBRepBuild_FuseFace::PerformFace() : Done" << endl;
+  if (trc) std::cout << " TopOpeBRepBuild_FuseFace::PerformFace() : Done" << std::endl;
 #endif
 }
 
@@ -511,7 +511,7 @@ void TopOpeBRepBuild_FuseFace::PerformEdge()
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepBuild_GettraceFUFA();
-  if (trc) cout << "TopOpeBRepBuild_FuseFace::PerformEdge()" << endl;
+  if (trc) std::cout << "TopOpeBRepBuild_FuseFace::PerformEdge()" << std::endl;
 #endif
   TopTools_DataMapOfShapeListOfShape mapVerLEdg,mapTampon;
 
@@ -582,7 +582,7 @@ void TopOpeBRepBuild_FuseFace::PerformEdge()
   myDone = Standard_True;
 
 #ifdef OCCT_DEBUG
-  if (trc) cout << " TopOpeBRepBuild_FuseFace::PerformEdge() : Done" << endl;
+  if (trc) std::cout << " TopOpeBRepBuild_FuseFace::PerformEdge() : Done" << std::endl;
 #endif
 }
 
@@ -595,7 +595,7 @@ void TopOpeBRepBuild_FuseFace::ClearEdge()
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepBuild_GettraceFUFA();
-  if (trc) cout << "TopOpeBRepBuild_FuseFace::ClearEdge()" << endl;
+  if (trc) std::cout << "TopOpeBRepBuild_FuseFace::ClearEdge()" << std::endl;
 #endif
 
   TopTools_ListIteratorOfListOfShape it1,it2;
@@ -638,7 +638,7 @@ void TopOpeBRepBuild_FuseFace::ClearEdge()
        MW.Add(myWireLE);
        if (!MW.IsDone()) {
 #ifdef OCCT_DEBUG
-         if (trc) cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Failure in making wire"<<endl;
+         if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Failure in making wire"<<std::endl;
 #endif
          myModified = Standard_False;
          myDone = Standard_True;
@@ -658,7 +658,7 @@ void TopOpeBRepBuild_FuseFace::ClearEdge()
 //  Reconstrution de 1 face de LRF
     if (myFaceLW.IsEmpty()) {
 #ifdef OCCT_DEBUG
-      if (trc) cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Empty list of wires"<<endl;
+      if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Empty list of wires"<<std::endl;
 #endif
       myModified = Standard_False;
       myDone = Standard_True;
@@ -677,7 +677,7 @@ void TopOpeBRepBuild_FuseFace::ClearEdge()
     }
     if (!MF.IsDone()) {
 #ifdef OCCT_DEBUG
-      if (trc) cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Failure in making face"<<endl;
+      if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Failure in making face"<<std::endl;
 #endif
       myModified = Standard_False;
       myDone = Standard_True;
@@ -690,7 +690,7 @@ void TopOpeBRepBuild_FuseFace::ClearEdge()
 //Fin Niveau 1 
   if (myLFFnew.IsEmpty()) {
 #ifdef OCCT_DEBUG
-    if (trc) cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Empty list of fusionned faces"<<endl;
+    if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::ClearEdge : Empty list of fusionned faces"<<std::endl;
 #endif
     myModified = Standard_False;
     myDone = Standard_True;
@@ -703,7 +703,7 @@ void TopOpeBRepBuild_FuseFace::ClearEdge()
   myDone = Standard_True;
 
 #ifdef OCCT_DEBUG
-  if (trc) cout << " TopOpeBRepBuild_FuseFace::ClearEdge() : Done" << endl;
+  if (trc) std::cout << " TopOpeBRepBuild_FuseFace::ClearEdge() : Done" << std::endl;
 #endif
 }
 
@@ -716,11 +716,11 @@ void TopOpeBRepBuild_FuseFace::ClearVertex()
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepBuild_GettraceFUFA();
-  if (trc) cout << "TopOpeBRepBuild_FuseFace::ClearVertex()" << endl;
+  if (trc) std::cout << "TopOpeBRepBuild_FuseFace::ClearVertex()" << std::endl;
 #endif
 
 #ifdef OCCT_DEBUG
-  if (trc) cout << " TopOpeBRepBuild_FuseFace::ClearVertex() : Done" << endl;
+  if (trc) std::cout << " TopOpeBRepBuild_FuseFace::ClearVertex() : Done" << std::endl;
 #endif
 }
 
@@ -979,7 +979,7 @@ static void MakeEdge(TopTools_DataMapOfShapeListOfShape& mymapEdgLEdg)
     Standard_Integer number = myEdgeLV.Extent();
     if (!(number == 2)){
 #ifdef OCCT_DEBUG
-      if (trc) cout<<" TopOpeBRepBuild_FuseFace::MakeEdge : Failure in reconstructing new edge"<<endl;
+      if (trc) std::cout<<" TopOpeBRepBuild_FuseFace::MakeEdge : Failure in reconstructing new edge"<<std::endl;
 #endif
       return;
     }
@@ -1071,7 +1071,7 @@ Standard_Boolean SameSupport(const TopoDS_Edge& E1,
       typC1 != STANDARD_TYPE(Geom_BSplineCurve) && 
       typC1 != STANDARD_TYPE(Geom_BezierCurve)) {
 #ifdef OCCT_DEBUG
-    if (trc) cout << " TopOpeBRepBuild_FuseFace : Type de Support non traite" << endl;
+    if (trc) std::cout << " TopOpeBRepBuild_FuseFace : Type de Support non traite" << std::endl;
 #endif
     return Standard_False;
   }
index 7dd7e10..de7a06e 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<<endl;
+  TopOpeBRepBuild_GTopo::DumpSSB(OS,s1,s2,b); OS<<std::endl;
 }
index 0bdaa88..a6b6b75 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<<endl;
+  g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<std::endl;
 
   g = TopOpeBRepBuild_GTool::GFusSame(TopAbs_FACE,TopAbs_FACE);
-  g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<endl;
+  g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<std::endl;
 
   g = TopOpeBRepBuild_GTool::GFusDiff(TopAbs_FACE,TopAbs_FACE);
-  g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<endl;
+  g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<std::endl;
   
   g = TopOpeBRepBuild_GTool::GCutDiff(TopAbs_FACE,TopAbs_EDGE);
-  g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<endl;
+  g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<std::endl;
 
   g = g.CopyPermuted();
-  g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<endl;
+  g.Dump(OS); for (gi.Init(g); gi.More(); gi.Next()) gi.Dump(OS); OS<<std::endl;
 
 }
index f7e9348..fea7f88 100644 (file)
@@ -299,31 +299,31 @@ void TopOpeBRepBuild_GTopo::Dump(Standard_OStream& OS,
   DumpType(OS);
   OS<<" "; TopOpeBRepDS::Print(myConfig1,OS);
   OS<<" "; TopOpeBRepDS::Print(myConfig2,OS);
-  OS<<endl;
+  OS<<std::endl;
 
-  if (myReverseForce) OS<<"reverse value : "<<myReverseValue<<endl;
+  if (myReverseForce) OS<<"reverse value : "<<myReverseValue<<std::endl;
 
   if(s) OS<<s;
   OS<<"\\ I N O";
-  OS<<endl;
+  OS<<std::endl;
 
   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<<endl;
+  DumpVal(OS,TopAbs_IN,TopAbs_OUT); OS<<std::endl;
 
   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<<endl;
+  DumpVal(OS,TopAbs_ON,TopAbs_OUT); OS<<std::endl;
 
   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<<endl;
+  DumpVal(OS,TopAbs_OUT,TopAbs_OUT); OS<<std::endl;
 }
 
 //=======================================================================
index 62d0b16..b6da61d 100644 (file)
@@ -61,11 +61,11 @@ Standard_Boolean TopOpeBRepBuild_Builder::GToSplit(const TopoDS_Shape& S,const T
 #ifdef OCCT_DEBUG
   Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
   if (tSPS) { 
-    cout<<"GToSplit ";GdumpSHA(S);cout<<" ";TopAbs::Print(TB,cout);
-    cout<<" "<<tosplit<<" : !issplit "<<(!issplit);
-    cout<<" && (facshap || hasgeom || hassame) ";
-    cout<<"("<<facshap<<" || "<<hasgeom<<" || "<<hassame<<")"<<endl;
-    cout.flush();
+    std::cout<<"GToSplit ";GdumpSHA(S);std::cout<<" ";TopAbs::Print(TB,std::cout);
+    std::cout<<" "<<tosplit<<" : !issplit "<<(!issplit);
+    std::cout<<" && (facshap || hasgeom || hassame) ";
+    std::cout<<"("<<facshap<<" || "<<hasgeom<<" || "<<hassame<<")"<<std::endl;
+    std::cout.flush();
   }
 #endif
   
@@ -86,9 +86,9 @@ Standard_Boolean TopOpeBRepBuild_Builder::GToSplit(const TopoDS_Shape& S,const T
       } //CONTEXT
     } //CONTEXT
     Standard_Boolean tosplitH = tosplit || hasON; //CONTEXT
-    if(tSPS){cout<<"GToSplit context SPEON";} //CONTEXT
-    if(tSPS){cout<<" "<<tosplitH<<" : tosplit "<<tosplit;} //CONTEXT
-    if(tSPS){cout<<" || hasON "<<hasON<<endl;} //CONTEXT
+    if(tSPS){std::cout<<"GToSplit context SPEON";} //CONTEXT
+    if(tSPS){std::cout<<" "<<tosplitH<<" : tosplit "<<tosplit;} //CONTEXT
+    if(tSPS){std::cout<<" || hasON "<<hasON<<std::endl;} //CONTEXT
   } //CONTEXT
 #endif
   
@@ -110,8 +110,8 @@ Standard_Boolean TopOpeBRepBuild_Builder::GToMerge(const TopoDS_Shape& S) const
   
 #ifdef OCCT_DEBUG
   Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
-  if(tSPS){cout<<"GToMerge ";GdumpSHA(S);cout<<" ";TopAbs::Print(TB,cout);}
-  if(tSPS){cout<<" "<<tomerge<<" : !ismerged "<<(!ismerged)<<" && hassame "<<hassame<<endl;}
+  if(tSPS){std::cout<<"GToMerge ";GdumpSHA(S);std::cout<<" ";TopAbs::Print(TB,std::cout);}
+  if(tSPS){std::cout<<" "<<tomerge<<" : !ismerged "<<(!ismerged)<<" && hassame "<<hassame<<std::endl;}
 #endif
   
   return tomerge;
@@ -254,7 +254,7 @@ void TopOpeBRepBuild_Builder::GFindSamDomSODO(TopTools_ListOfShape& LSO,TopTools
   Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(sref,iS);
   if(tSPS) {
     TCollection_AsciiString ss("GFindSamDom result on ");  
-    GdumpSHA(sref,(Standard_Address)ss.ToCString());cout<<endl;
+    GdumpSHA(sref,(Standard_Address)ss.ToCString());std::cout<<std::endl;
     GdumpSAMDOM(LSO, (char *) "L1 : ");
     GdumpSAMDOM(LDO, (char *) "L2 : ");
   }
index 0a2bda8..8c7ce3a 100644 (file)
@@ -93,7 +93,7 @@ void TopOpeBRepBuild_Builder::GMergeEdges(const TopTools_ListOfShape& LE1,const
 #ifdef OCCT_DEBUG
   Standard_Integer iE; Standard_Boolean tSPS1 = GtraceSPS(E1,iE);
   if(tSPS1){
-    cout<<endl;cout<<"--- GMergeEdges "<<endl;
+    std::cout<<std::endl;std::cout<<"--- GMergeEdges "<<std::endl;
     GdumpEDG(E1);
     GdumpSAMDOM(LE1, (char *) "1 : ");
     GdumpSAMDOM(LE2, (char *) "2 : ");
@@ -152,8 +152,8 @@ void TopOpeBRepBuild_Builder::GFillEdgesPVS(const TopTools_ListOfShape& LE1,cons
 #ifdef OCCT_DEBUG
     Standard_Integer i1; Standard_Boolean tSPS1 = GtraceSPS(E11,i1);
     if(tSPS1){
-      cout<<endl;cout<<"--- GFillEdgesPVS ";GdumpSHA(E11);
-      cout<<" ismerged : "<<ismerged<<" ";TopAbs::Print(TB1,cout);cout<<endl;
+      std::cout<<std::endl;std::cout<<"--- GFillEdgesPVS ";GdumpSHA(E11);
+      std::cout<<" ismerged : "<<ismerged<<" ";TopAbs::Print(TB1,std::cout);std::cout<<std::endl;
     }
 #endif
     
@@ -170,9 +170,9 @@ void TopOpeBRepBuild_Builder::GFillEdgesPVS(const TopTools_ListOfShape& LE1,cons
 #ifdef OCCT_DEBUG
     Standard_Integer i2; Standard_Boolean tSPS2 = GtraceSPS(E2,i2);
     if(tSPS2){
-      cout<<endl;
-      cout<<"--- GFillEdgesPVS ";GdumpSHA(E2);
-      cout<<" ismerged : "<<ismerged<<" ";TopAbs::Print(TB2,cout);cout<<endl;
+      std::cout<<std::endl;
+      std::cout<<"--- GFillEdgesPVS ";GdumpSHA(E2);
+      std::cout<<" ismerged : "<<ismerged<<" ";TopAbs::Print(TB2,std::cout);std::cout<<std::endl;
     }
 #endif
     
@@ -247,11 +247,11 @@ static Standard_Integer FUN_getTRASHA(const Standard_Integer geti,
 #endif*/
 
 #ifdef OCCT_DEBUG
-void debfillp(const Standard_Integer i) {cout <<"+ + debfillp "<<i<<endl;}
-void debfillpon(const Standard_Integer i) {cout <<"+ + debfillpon "<<i<<endl;}
-void debfillpin(const Standard_Integer i) {cout <<"+ + debfillpin "<<i<<endl;}
-void debfillpou(const Standard_Integer i) {cout <<"+ + debfillpou "<<i<<endl;}
-void debfillp2(const Standard_Integer i) {cout <<"+ + debfillp2 "<<i<<endl;}
+void debfillp(const Standard_Integer i) {std::cout <<"+ + debfillp "<<i<<std::endl;}
+void debfillpon(const Standard_Integer i) {std::cout <<"+ + debfillpon "<<i<<std::endl;}
+void debfillpin(const Standard_Integer i) {std::cout <<"+ + debfillpin "<<i<<std::endl;}
+void debfillpou(const Standard_Integer i) {std::cout <<"+ + debfillpou "<<i<<std::endl;}
+void debfillp2(const Standard_Integer i) {std::cout <<"+ + debfillp2 "<<i<<std::endl;}
 #endif
 
 //Standard_IMPORT extern Standard_Boolean GLOBAL_faces2d;
@@ -326,11 +326,11 @@ void TopOpeBRepBuild_Builder::GFillPointTopologyPVS(const TopoDS_Shape& E,
   const TopoDS_Shape& EPVS=PVS.Edge();Standard_Integer iEPVS;Standard_Boolean tSPSEPVS=GtraceSPS(EPVS,iEPVS);
   Standard_Boolean tSPS = tSPSE || tSPSEPVS;
   if(tSPS){
-    cout<<endl;
-    cout<<"--- GFillPointTopologyPVS : ShapeInterf ";TopAbs::Print(ShapeInterf,cout);
-    cout<<",efil ";GdumpSHA(E);cout<<",eref ";GdumpSHA(myEdgeReference);
-    cout<<",ffil ";GdumpSHA(myFaceToFill);cout<<",fref ";GdumpSHA(myFaceReference);
-    cout<<endl;
+    std::cout<<std::endl;
+    std::cout<<"--- GFillPointTopologyPVS : ShapeInterf ";TopAbs::Print(ShapeInterf,std::cout);
+    std::cout<<",efil ";GdumpSHA(E);std::cout<<",eref ";GdumpSHA(myEdgeReference);
+    std::cout<<",ffil ";GdumpSHA(myFaceToFill);std::cout<<",fref ";GdumpSHA(myFaceReference);
+    std::cout<<std::endl;
     debfillp(iEDS);
   }
 #endif
@@ -554,12 +554,12 @@ void TopOpeBRepBuild_Builder::GFillPointTopologyPVS(const TopoDS_Shape& E,
 #ifdef OCCT_DEBUG
            Standard_Boolean id2d = (I1 == i2d);
            if (tSPS) {
-             cout<<"DEB : GFillPointTopologyPVS E"<<iEDS<<" has2d3d"<<endl;
-             if (id3d) cout<<"--> Interference 3d ";
-             if (id2d) cout<<"--> Interference 2d ";
-             if (keepinterf1) cout<<" traitee"<<endl;
-             else             cout<<" non traitee"<<endl;
-             cout<<endl;
+             std::cout<<"DEB : GFillPointTopologyPVS E"<<iEDS<<" has2d3d"<<std::endl;
+             if (id3d) std::cout<<"--> Interference 3d ";
+             if (id2d) std::cout<<"--> Interference 2d ";
+             if (keepinterf1) std::cout<<" traitee"<<std::endl;
+             else             std::cout<<" non traitee"<<std::endl;
+             std::cout<<std::endl;
            }
 #endif
          }
@@ -664,8 +664,8 @@ void TopOpeBRepBuild_Builder::GFillPointTopologyPVS(const TopoDS_Shape& E,
     GParamOnReference(VPV,EE,parref);
 #ifdef OCCT_DEBUG
     if(tSPS){
-      cout<<"par "<<par<<" / ";GdumpSHA(E);cout<<" --> parref "<<parref<<" / ";GdumpSHA(EPVS);
-      cout<<endl;
+      std::cout<<"par "<<par<<" / ";GdumpSHA(E);std::cout<<" --> parref "<<parref<<" / ";GdumpSHA(EPVS);
+      std::cout<<std::endl;
     }
 #endif
     par = parref;
@@ -711,8 +711,8 @@ void TopOpeBRepBuild_Builder::GFillPointTopologyPVS(const TopoDS_Shape& E,
     
 #ifdef OCCT_DEBUG
     gp_Pnt P = BRep_Tool::Pnt(VPV);
-    if(tSPS){cout<<"+";if(ispoint)cout<<" PDS ";else cout<<" VDS ";}
-    if(tSPS){cout<<iG<<" : ";GdumpORIPARPNT(ori,par,P);cout<<endl;}
+    if(tSPS){std::cout<<"+";if(ispoint)std::cout<<" PDS ";else std::cout<<" VDS ";}
+    if(tSPS){std::cout<<iG<<" : ";GdumpORIPARPNT(ori,par,P);std::cout<<std::endl;}
     if(tSPS) {
 //      Standard_Boolean trc = Standard_False;
 #ifdef DRAW
@@ -744,8 +744,8 @@ void TopOpeBRepBuild_Builder::GFillPointTopologyPVS(const TopoDS_Shape& E,
     
 #ifdef OCCT_DEBUG
     gp_Pnt PF = BRep_Tool::Pnt(VPV);
-    if(tSPS){cout<<"+";if(ispoint)cout<<" PDS ";else cout<<" VDS ";}
-    if(tSPS){cout<<iG<<" : ";GdumpORIPARPNT(ovpv,parf,PF);cout<<endl;}
+    if(tSPS){std::cout<<"+";if(ispoint)std::cout<<" PDS ";else std::cout<<" VDS ";}
+    if(tSPS){std::cout<<iG<<" : ";GdumpORIPARPNT(ovpv,parf,PF);std::cout<<std::endl;}
 #endif
 
     ovpv = TopAbs_REVERSED;
@@ -764,8 +764,8 @@ void TopOpeBRepBuild_Builder::GFillPointTopologyPVS(const TopoDS_Shape& E,
     PVS.Append(PVR);
 #ifdef OCCT_DEBUG
     gp_Pnt PR = BRep_Tool::Pnt(VPV);
-    if(tSPS){cout<<"+";if(ispoint)cout<<" PDS ";else cout<<" VDS ";}
-    if(tSPS){cout<<iG<<" : ";GdumpORIPARPNT(ovpv,parl,PR);cout<<endl;}
+    if(tSPS){std::cout<<"+";if(ispoint)std::cout<<" PDS ";else std::cout<<" VDS ";}
+    if(tSPS){std::cout<<iG<<" : ";GdumpORIPARPNT(ovpv,parl,PR);std::cout<<std::endl;}
 #endif
 
     PVS.RemovePV(Standard_False); // jyl + 980217
@@ -790,7 +790,7 @@ Standard_Boolean TopOpeBRepBuild_Builder::GParamOnReference(const TopoDS_Vertex&
   Handle(Geom_Plane) suplan = Handle(Geom_Plane)::DownCast(su);
   if ( suplan.IsNull() ) { 
 #ifdef OCCT_DEBUG
-    cout<<"NYI : GParamOnReference : not planar"<<endl;
+    std::cout<<"NYI : GParamOnReference : not planar"<<std::endl;
 #endif
     return Standard_False;
   }
@@ -816,7 +816,7 @@ Standard_Boolean TopOpeBRepBuild_Builder::GParamOnReference(const TopoDS_Vertex&
     P = ElCLib::Parameter(AC.Parabola(),p2); break;
     default : 
 #ifdef OCCT_DEBUG
-      cout<<"NYI : GParamOnReference : OtherCurve on planar surface"<<endl;
+      std::cout<<"NYI : GParamOnReference : OtherCurve on planar surface"<<std::endl;
 #endif
     return Standard_False;
   }
index 87c4959..aaaf444 100644 (file)
@@ -62,11 +62,11 @@ extern void* GFABUMAKEFACEPWES_DEB;
 Standard_Integer GLOBAL_iexE = 0;
 Standard_EXPORT void debfillw(const Standard_Integer /*i*/) {}
 Standard_EXPORT void debfille(const Standard_Integer /*i*/) {}
-Standard_EXPORT void debffwesON(const Standard_Integer i) {cout<<"++ debffwesON "<<i<<endl;}
-Standard_EXPORT void debffwesmf(const Standard_Integer i) {cout<<"++ debffwesmf "<<i<<endl;}
-Standard_EXPORT void debfillf(const Standard_Integer i) {cout<<"++ debfillf "<<i<<endl;}
-Standard_EXPORT void debsplite(const Standard_Integer i) {cout<<"++ debsplite "<<i<<endl;}
-Standard_EXPORT void debmergef(const Standard_Integer i) {cout<<"++ debmergef "<<i<<endl;}
+Standard_EXPORT void debffwesON(const Standard_Integer i) {std::cout<<"++ debffwesON "<<i<<std::endl;}
+Standard_EXPORT void debffwesmf(const Standard_Integer i) {std::cout<<"++ debffwesmf "<<i<<std::endl;}
+Standard_EXPORT void debfillf(const Standard_Integer i) {std::cout<<"++ debfillf "<<i<<std::endl;}
+Standard_EXPORT void debsplite(const Standard_Integer i) {std::cout<<"++ debsplite "<<i<<std::endl;}
+Standard_EXPORT void debmergef(const Standard_Integer i) {std::cout<<"++ debmergef "<<i<<std::endl;}
 Standard_IMPORT void debfctwesmess(const Standard_Integer i,
                                   const TCollection_AsciiString& s = "");
 extern void debaddpwes(const Standard_Integer iFOR, const TopAbs_State TB1, const Standard_Integer iEG,
@@ -297,7 +297,7 @@ Standard_EXPORT TopOpeBRepDS_PDataStructure GLOBAL_DS2d = NULL;
 #ifdef OCCT_DEBUG
   Standard_Integer iF; Standard_Boolean tSPS = GtraceSPS(F1,iF);
   if(tSPS){
-    cout<<endl<<"--- GMergeFaces "<<endl;
+    std::cout<<std::endl<<"--- GMergeFaces "<<std::endl;
     GdumpSAMDOM(LF1, (char *) "1 : ");
     GdumpSAMDOM(LF2, (char *) "2 : ");
     debmergef(iF);
@@ -585,11 +585,11 @@ static Standard_Boolean FUN_validF1edge(const TopoDS_Shape& F)
 #ifdef OCCT_DEBUG
   Standard_Integer iW; Standard_Boolean tSPS = GtraceSPS(W,iW);
   if(tSPS){
-    cout<<endl;DEBSHASET(s,"--- GFillWireWES ",WES," ");
-    GdumpSHA(W,(Standard_Address)s.ToCString()); cout<<endl;
+    std::cout<<std::endl;DEBSHASET(s,"--- GFillWireWES ",WES," ");
+    GdumpSHA(W,(Standard_Address)s.ToCString()); std::cout<<std::endl;
     Standard_Integer nbe = 0;
     TopOpeBRepTool_ShapeExplorer exE(W,TopAbs_EDGE);for (;exE.More(); exE.Next()) nbe++;
-    cout<<"--- GFillWireWES on W "<<iW<<" with "<<nbe<<" edges "<<endl;
+    std::cout<<"--- GFillWireWES on W "<<iW<<" with "<<nbe<<" edges "<<std::endl;
     debfillw(iW);
   }
   GLOBAL_iexE = 0;
@@ -633,7 +633,7 @@ static Standard_Boolean FUN_validF1edge(const TopoDS_Shape& F)
 
 #ifdef OCCT_DEBUG
   Standard_Integer iE; Standard_Boolean tSPS = GtraceSPS(EOR,iE);
-  if(tSPS)cout<<endl;
+  if(tSPS)std::cout<<std::endl;
 #endif
 
 #ifdef OCCT_DEBUG
@@ -647,7 +647,7 @@ static Standard_Boolean FUN_validF1edge(const TopoDS_Shape& F)
 
 #ifdef OCCT_DEBUG
   if(tSPS) GdumpSHASTA(iE,TB1,WES,"--- GFillEdgeWES ");
-  if(tSPS) cout<<" tosplit "<<tosplit<<" tomerge "<<tomerge<<endl;
+  if(tSPS) std::cout<<" tosplit "<<tosplit<<" tomerge "<<tomerge<<std::endl;
   if(tSPS) debfille(iE);
 #endif
   
@@ -736,7 +736,7 @@ static void FUN_samgeomori(const TopOpeBRepDS_DataStructure& BDS, const Standard
   Standard_Integer iEOR; Standard_Boolean tSPS = GtraceSPS(EOR,iEOR);
   Standard_Integer iWESF; /*Standard_Boolean tSPSW = */GtraceSPS(WES.Face(),iWESF);
   if(tSPS) GdumpSHASTA(iEOR,TB1,WES,"\n--- GSplitEdgeWES","START");
-  if(tSPS) cout<<" RevOri1 : "<<RevOri1<<endl;
+  if(tSPS) std::cout<<" RevOri1 : "<<RevOri1<<std::endl;
   if(tSPS) debsplite(iEOR);
 #endif  
     
@@ -786,8 +786,8 @@ static void FUN_samgeomori(const TopOpeBRepDS_DataStructure& BDS, const Standard
 #ifdef OCCT_DEBUG
     if(tSPS) {
       GdumpSHASTA(iEOR,TB1,WES,"--- GSplitEdgeWES","WES+ Split");
-      cout<<" ";TopAbs::Print(TB1,cout)<<" : "<<LSE.Extent()<<" edge(s) ";
-      TopAbs::Print(neworiE,cout); cout<<endl;
+      std::cout<<" ";TopAbs::Print(TB1,std::cout)<<" : "<<LSE.Extent()<<" edge(s) ";
+      TopAbs::Print(neworiE,std::cout); std::cout<<std::endl;
     }
 #endif
 
@@ -806,7 +806,7 @@ static void FUN_samgeomori(const TopOpeBRepDS_DataStructure& BDS, const Standard
          Standard_Boolean ok = FUN_tool_curvesSO(newE,par,TopoDS::Edge(EOR),so);
          if (!ok) {
 #ifdef OCCT_DEBUG
-            cout<<"GSplitEdgeWES: cannot orient SDM split of an edge"<<endl;
+            std::cout<<"GSplitEdgeWES: cannot orient SDM split of an edge"<<std::endl;
 #endif
            //return; // nyiFUNRAISE
          }
@@ -850,10 +850,10 @@ static void FUN_samgeomori(const TopOpeBRepDS_DataStructure& BDS, const Standard
       }
       
 #ifdef OCCT_DEBUG
-      cout<<"o-o GridFF ffil F"<<ifil<<" se E"<<iEOR<<" / "<<iWESF<<" ";
-      TopAbs::Print(TB1,cout);cout.flush();
-      if (!ftg) {cout<<" : !ftg --> "; GKeepShape(EOR,LSclass,TB1);cout.flush();}
-      else      {cout<<" : ftg --> non gardee"<<endl;cout.flush();}
+      std::cout<<"o-o GridFF ffil F"<<ifil<<" se E"<<iEOR<<" / "<<iWESF<<" ";
+      TopAbs::Print(TB1,std::cout);std::cout.flush();
+      if (!ftg) {std::cout<<" : !ftg --> "; GKeepShape(EOR,LSclass,TB1);std::cout.flush();}
+      else      {std::cout<<" : ftg --> non gardee"<<std::endl;std::cout.flush();}
 #endif
 
     }
@@ -863,7 +863,7 @@ static void FUN_samgeomori(const TopOpeBRepDS_DataStructure& BDS, const Standard
       testkeep = hs && (!hg);
       if (testkeep) {
 #ifdef OCCT_DEBUG
-       if(tSPS){cout<<"--- GSplitEdgeWES ";}
+       if(tSPS){std::cout<<"--- GSplitEdgeWES ";}
 #endif
         TopAbs_State pos;
        Standard_Boolean keep = GKeepShape1(EOR,LSclass,TB1,pos);
@@ -888,8 +888,8 @@ static void FUN_samgeomori(const TopOpeBRepDS_DataStructure& BDS, const Standard
       if(tSPS){
        DEBSHASET(ss,"--- GSplitEdgeWES ",WES," WES+ edge ");  
        GdumpSHA(newE,(Standard_Address)ss.ToCString());
-       cout<<" ";TopAbs::Print(TB1,cout)<<" : 1 edge ";
-       TopAbs::Print(neworiE,cout); cout<<endl;
+       std::cout<<" ";TopAbs::Print(TB1,std::cout)<<" : 1 edge ";
+       TopAbs::Print(neworiE,std::cout); std::cout<<std::endl;
       }
 #endif
 
@@ -926,7 +926,7 @@ static void FUN_samgeomori(const TopOpeBRepDS_DataStructure& BDS, const Standard
          Standard_Boolean ok = FUN_tool_curvesSO(newE,par,TopoDS::Edge(EOR),so);
          if (!ok) {
 #ifdef OCCT_DEBUG
-            cout<<"GSplitEdgeWES: cannot orient SDM split of an edge"<<endl;
+            std::cout<<"GSplitEdgeWES: cannot orient SDM split of an edge"<<std::endl;
 #endif
           }
          if (!so) newE.Reverse();
@@ -965,7 +965,7 @@ void debmergee(const Standard_Integer /*i*/) {}
   Standard_Integer iEOR; Standard_Boolean tSPS = GtraceSPS(EOR,iEOR);
   if(tSPS){ debmergee(iEOR);
     DEBSHASET(s,"\n--- GMergeEdgeWES ",WES," START ");  
-    GdumpSHAORIGEO(EOR,(Standard_Address)s.ToCString()); cout<<endl;
+    GdumpSHAORIGEO(EOR,(Standard_Address)s.ToCString()); std::cout<<std::endl;
   }
 #endif
 
@@ -1028,8 +1028,8 @@ void debmergee(const Standard_Integer /*i*/) {}
   if(tSPS){
     DEBSHASET(s,"GMergeEdgeWES(1) ",WES," WES+ Merged ");  
     GdumpSHA(EOR,(Standard_Address)s.ToCString());
-    cout<<" ";TopAbs::Print(TBEOR,cout);
-    cout<<" : "<<ME.Extent()<<" edge"<<endl;
+    std::cout<<" ";TopAbs::Print(TBEOR,std::cout);
+    std::cout<<" : "<<ME.Extent()<<" edge"<<std::endl;
   }
 #endif
   for(TopTools_ListIteratorOfListOfShape it(ME);it.More();it.Next()) {
@@ -1041,7 +1041,7 @@ void debmergee(const Standard_Integer /*i*/) {}
 #ifdef OCCT_DEBUG
   if(tSPS){
     DEBSHASET(sss,"GMergeEdgeWES ",WES," END ");
-    GdumpSHA(EOR,(Standard_Address)sss.ToCString());cout<<endl;
+    GdumpSHA(EOR,(Standard_Address)sss.ToCString());std::cout<<std::endl;
   }
 #endif
   
@@ -1074,7 +1074,7 @@ void debmergee(const Standard_Integer /*i*/) {}
   Standard_Boolean takeON = (TB1 == TopAbs_IN) && (isse) && (issplitON);
   takeON = Standard_False;
 #ifdef OCCT_DEBUG
-  if (tSPS) cout<<"---- takeON mis a 0"<<endl;
+  if (tSPS) std::cout<<"---- takeON mis a 0"<<std::endl;
 #endif
 
   if ( takeON ) {
index 09aff15..2d81239 100644 (file)
@@ -87,8 +87,8 @@
 
 #ifdef OCCT_DEBUG
 #define DEBSHASET(sarg,meth,shaset,str) TCollection_AsciiString sarg((meth));(sarg)=(sarg)+(shaset).DEBNumber()+(str);
-Standard_EXPORT void debsplitf(const Standard_Integer i){cout<<"++ debsplitf "<<i<<endl;}
-Standard_EXPORT void debspanc(const Standard_Integer i){cout<<"++ debspanc "<<i<<endl;}
+Standard_EXPORT void debsplitf(const Standard_Integer i){std::cout<<"++ debsplitf "<<i<<std::endl;}
+Standard_EXPORT void debspanc(const Standard_Integer i){std::cout<<"++ debspanc "<<i<<std::endl;}
 Standard_Integer GLOBAL_iexF = 0;
 #endif
 
@@ -256,8 +256,8 @@ void TopOpeBRepBuild_Builder::GMergeSolids(const TopTools_ListOfShape& LSO1,cons
 #ifdef OCCT_DEBUG
   Standard_Integer iSO; Standard_Boolean tSPS = GtraceSPS(SO1,iSO);
   if(tSPS){
-    cout<<endl;
-    cout<<"--- GMergeSolids "<<endl;
+    std::cout<<std::endl;
+    std::cout<<"--- GMergeSolids "<<std::endl;
     GdumpSAMDOM(LSO1, (char *) "1 : ");
     GdumpSAMDOM(LSO2, (char *) "2 : ");
   }
@@ -327,8 +327,8 @@ void TopOpeBRepBuild_Builder::GFillSolidsSFS(const TopTools_ListOfShape& LS1,con
 #ifdef OCCT_DEBUG
     Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
     if(tSPS){
-      cout<<endl;
-      GdumpSHASTA(S,TB,"--- GFillSolidsSFS "); cout<<" tomerge : "<<tomerge<<endl;
+      std::cout<<std::endl;
+      GdumpSHASTA(S,TB,"--- GFillSolidsSFS "); std::cout<<" tomerge : "<<tomerge<<std::endl;
     }
 #endif
     if (tomerge) GFillSolidSFS(S,LS2,G,SFS);
@@ -343,8 +343,8 @@ void TopOpeBRepBuild_Builder::GFillSolidsSFS(const TopTools_ListOfShape& LS1,con
 #ifdef OCCT_DEBUG
     Standard_Integer iS; Standard_Boolean tSPS = GtraceSPS(S,iS);
     if(tSPS){
-      cout<<endl;
-      GdumpSHASTA(S,TB,"--- GFillSolidsSFS "); cout<<" tomerge : "<<tomerge<<endl;
+      std::cout<<std::endl;
+      GdumpSHASTA(S,TB,"--- GFillSolidsSFS "); std::cout<<" tomerge : "<<tomerge<<std::endl;
     }
 #endif
     if (tomerge) GFillSolidSFS(S,LS1,G,SFS);
@@ -369,8 +369,8 @@ void TopOpeBRepBuild_Builder::GFillSolidSFS(const TopoDS_Shape& SO1,const TopToo
 #ifdef OCCT_DEBUG
   Standard_Integer iSO; Standard_Boolean tSPS = GtraceSPS(SO1,iSO);
   if(tSPS){
-    cout<<endl;
-    GdumpSHASTA(SO1,TB1,"--- GFillSolidSFS ");cout<<endl;
+    std::cout<<std::endl;
+    GdumpSHASTA(SO1,TB1,"--- GFillSolidSFS ");std::cout<<std::endl;
   }
 #endif
   
@@ -395,8 +395,8 @@ void TopOpeBRepBuild_Builder::GFillSolidSFS(const TopoDS_Shape& SO1,const TopToo
       if(tSPS){
        DEBSHASET(ss,"--- GFillSolidSFS ",SFS," AddShape SFS+ shell ");  
        GdumpSHA(SH,(Standard_Address)ss.ToCString());
-       cout<<" ";TopAbs::Print(TB1,cout)<<" : 1 shell ";
-       TopAbs::Print(neworiSH,cout); cout<<endl;
+       std::cout<<" ";TopAbs::Print(TB1,std::cout)<<" : 1 shell ";
+       TopAbs::Print(neworiSH,std::cout); std::cout<<std::endl;
       }
 #endif
 
@@ -432,11 +432,11 @@ void TopOpeBRepBuild_Builder::GFillSurfaceTopologySFS(const TopoDS_Shape&,
 #ifdef OCCT_DEBUG
   Standard_Integer iSO; Standard_Boolean tSPS = GtraceSPS(SO1,iSO);
   if(tSPS){
-    cout<<endl;
-    cout<<"--- GFillSurfaceTopologySFS ShapeInterf ";TopAbs::Print(ShapeInterf,cout);
-    cout<<endl;
+    std::cout<<std::endl;
+    std::cout<<"--- GFillSurfaceTopologySFS ShapeInterf ";TopAbs::Print(ShapeInterf,std::cout);
+    std::cout<<std::endl;
   }
-  cout<<"GFillSurfaceTopologySFS : NYI"<<endl;
+  std::cout<<"GFillSurfaceTopologySFS : NYI"<<std::endl;
 #endif
   
 } // GFillSurfaceTopologySFS
@@ -463,9 +463,9 @@ void TopOpeBRepBuild_Builder::GFillSurfaceTopologySFS
   Standard_Integer iref = myDataStructure->Shape(mySolidReference);
   Standard_Integer ifil = myDataStructure->Shape(mySolidToFill);
   if(tSPS){
-    cout<<"ifil : "<<ifil<<" iref : "<<iref<<endl;
-    cout<<"solid "<<ifil<<" is ";TopOpeBRepDS::Print(Conf,cout);
-    cout<<endl;
+    std::cout<<"ifil : "<<ifil<<" iref : "<<iref<<std::endl;
+    std::cout<<"solid "<<ifil<<" is ";TopOpeBRepDS::Print(Conf,std::cout);
+    std::cout<<std::endl;
   }
 #endif
   
@@ -482,8 +482,8 @@ void TopOpeBRepBuild_Builder::GFillSurfaceTopologySFS
     if (tSPS){
       DEBSHASET(ss,"--- GFillSurfaceTopologySFS ",SFS," AddElement SFS+ face ");  
       GdumpSHA(F,(Standard_Address)ss.ToCString());
-      cout<<" ";TopAbs::Print(TB,cout)<<" : 1 face ";
-      TopAbs::Print(ori,cout); cout<<endl;
+      std::cout<<" ";TopAbs::Print(TB,std::cout)<<" : 1 face ";
+      TopAbs::Print(ori,std::cout); std::cout<<std::endl;
     }
 #endif
 
@@ -506,9 +506,9 @@ void TopOpeBRepBuild_Builder::GFillShellSFS(const TopoDS_Shape& SH,
 #ifdef OCCT_DEBUG
   Standard_Integer ish; Standard_Boolean tSPS = GtraceSPS(SH,ish);
   if(tSPS){
-      cout<<endl;
+      std::cout<<std::endl;
       GdumpSHA(SH, (char *) "--- GFillShellSFS ");
-      cout<<endl;}
+      std::cout<<std::endl;}
 #endif
   
   TopOpeBRepTool_ShapeExplorer exFace;
@@ -695,8 +695,8 @@ void TopOpeBRepBuild_Builder::GSplitFaceSFS
 #ifdef OCCT_DEBUG
   Standard_Integer iiFOR; Standard_Boolean tSPS = GtraceSPS(FOR,iiFOR);
   if(tSPS){
-    cout<<endl;
-    GdumpSHASTA(FOR,TB1,"--- GSplitFaceSFS ");cout<<" RevOri1 : "<<RevOri1<<endl;debsplitf(iFOR);
+    std::cout<<std::endl;
+    GdumpSHASTA(FOR,TB1,"--- GSplitFaceSFS ");std::cout<<" RevOri1 : "<<RevOri1<<std::endl;debsplitf(iFOR);
   }
 #endif  
   
@@ -779,8 +779,8 @@ void TopOpeBRepBuild_Builder::GSplitFaceSFS
        if(tSPS){
          DEBSHASET(ss,"--- GSplitFaceSFS ",SFS," AddStartElement SFS+ face ");  
          GdumpSHA(newF,(Standard_Address)ss.ToCString());
-         cout<<" ";TopAbs::Print(TB1,cout)<<" : 1 face ";
-         TopAbs::Print(neworiF,cout); cout<<endl;
+         std::cout<<" ";TopAbs::Print(TB1,std::cout)<<" : 1 face ";
+         TopAbs::Print(neworiF,std::cout); std::cout<<std::endl;
        }
 #endif
        
@@ -810,8 +810,8 @@ void TopOpeBRepBuild_Builder::GSplitFaceSFS
       if(tSPS){
        DEBSHASET(ss,"--- GSplitFaceSFS ",SFS," AddElement SFS+ face ");  
        GdumpSHA(F,(Standard_Address)ss.ToCString());
-       cout<<" ";TopAbs::Print(TB1,cout)<<" : 1 face ";
-       TopAbs::Print(neworiF,cout); cout<<endl;
+       std::cout<<" ";TopAbs::Print(TB1,std::cout)<<" : 1 face ";
+       TopAbs::Print(neworiF,std::cout); std::cout<<std::endl;
       }
 #endif
 
@@ -832,9 +832,9 @@ void TopOpeBRepBuild_Builder::GMergeFaceSFS
 #ifdef OCCT_DEBUG
   Standard_Integer iFOR; Standard_Boolean tSPS = GtraceSPS(FOR,iFOR);
   if(tSPS){
-    cout<<endl;
+    std::cout<<std::endl;
     GdumpSHA(FOR, (char *) "--- GMergeFaceSFS ");
-    cout<<endl;
+    std::cout<<std::endl;
   }
 #endif
   
@@ -864,7 +864,7 @@ void TopOpeBRepBuild_Builder::GMergeFaceSFS
   
 #ifdef OCCT_DEBUG
   if(tSPS){
-    cout<<"--------- merge FACE "<<iFOR<<endl;
+    std::cout<<"--------- merge FACE "<<iFOR<<std::endl;
     GdumpSAMDOM(LFSO1, (char *) "LFSO1 : "); 
     GdumpSAMDOM(LFDO1, (char *) "LFDO1 : ");
     GdumpSAMDOM(LFSO2, (char *) "LFSO2 : "); 
@@ -888,10 +888,10 @@ void TopOpeBRepBuild_Builder::GMergeFaceSFS
   
 #ifdef OCCT_DEBUG
   if(tSPS) {
-    cout<<"performcom : "<<performcom<<" ";
-    cout<<"makecomsam : "<<makecomsam<<" makcomdif : "<<makecomdif<<" ";
-    cout<<"n1 : "<<n1<<" n2 : "<<n2<<endl;
-    cout<<"GMergeFaceSFS RevOri1 : "<<RevOri1<<endl;
+    std::cout<<"performcom : "<<performcom<<" ";
+    std::cout<<"makecomsam : "<<makecomsam<<" makcomdif : "<<makecomdif<<" ";
+    std::cout<<"n1 : "<<n1<<" n2 : "<<n2<<std::endl;
+    std::cout<<"GMergeFaceSFS RevOri1 : "<<RevOri1<<std::endl;
   }
 #endif
   
@@ -926,8 +926,8 @@ void TopOpeBRepBuild_Builder::GMergeFaceSFS
       if(tSPS){
        DEBSHASET(ss,"--- GMergeFaceSFS ",SFS," AddStartElement SFS+ face ");  
        GdumpSHA(newF,(Standard_Address)ss.ToCString());
-       cout<<" ";TopAbs::Print(TB1,cout)<<" : 1 face ";
-       TopAbs::Print(neworiF,cout); cout<<endl;
+       std::cout<<" ";TopAbs::Print(TB1,std::cout)<<" : 1 face ";
+       TopAbs::Print(neworiF,std::cout); std::cout<<std::endl;
       }
 #endif
        SFS.AddStartElement(newF);
@@ -936,7 +936,7 @@ void TopOpeBRepBuild_Builder::GMergeFaceSFS
   } // performcom
   
 #ifdef OCCT_DEBUG
-  if(tSPS){cout<<"--------- end merge FACE "<<iFOR<<endl;}
+  if(tSPS){std::cout<<"--------- end merge FACE "<<iFOR<<std::endl;}
 #endif
   
 } // GMergeFaceSFS
@@ -1069,8 +1069,8 @@ void TopOpeBRepBuild_Builder::GSplitFace
 #ifdef OCCT_DEBUG
   Standard_Integer iF; Standard_Boolean tSPS = GtraceSPS(FOR,iF);
   if(tSPS){
-    cout<<endl;GdumpSHASTA(FOR,TB1,"--- GSplitFace ");
-    cout<<endl;debsplitf(iF);
+    std::cout<<std::endl;GdumpSHASTA(FOR,TB1,"--- GSplitFace ");
+    std::cout<<std::endl;debsplitf(iF);
   }
 #endif
   
@@ -1081,7 +1081,7 @@ void TopOpeBRepBuild_Builder::GSplitFace
   GFillONPartsWES(FOR,G1,LSclass,WES);
 #ifdef OCCT_DEBUG
   Standard_Integer n0 = WES.StartElements().Extent();
-  if(tSPS) cout <<"--> GSplitFace , after GFillONPartsWES nstartelWES = "<<n0<<endl; 
+  if(tSPS) std::cout <<"--> GSplitFace , after GFillONPartsWES nstartelWES = "<<n0<<std::endl; 
 #endif
 
   // save these edges
@@ -1098,14 +1098,14 @@ void TopOpeBRepBuild_Builder::GSplitFace
   GFillFaceWES(FF,LSclass,G1,WES);
   Standard_Integer n1 = WES.StartElements().Extent();
 #ifdef OCCT_DEBUG
-  if(tSPS) cout <<"--> GSplitFace , after GFillFaceWES nstartelWES = "<<n1<<endl; 
+  if(tSPS) std::cout <<"--> GSplitFace , after GFillFaceWES nstartelWES = "<<n1<<std::endl; 
 #endif
   
   // add edges built on curves supported by FF
   GFillCurveTopologyWES(FF,G1,WES);
   Standard_Integer n2 = WES.StartElements().Extent();
 #ifdef OCCT_DEBUG
-  if(tSPS) cout <<"--> GSplitFace , after GFillCurveTopologyWES nstartelWES = "<<n2<<endl; 
+  if(tSPS) std::cout <<"--> GSplitFace , after GFillCurveTopologyWES nstartelWES = "<<n2<<std::endl; 
 #endif
   
   // myEdgeAvoid = StartElement edges of WES due to GFillCurveTopologyWES
index 9b4ec42..8f90b43 100644 (file)
@@ -132,18 +132,18 @@ void TopOpeBRepBuild_Builder::PrintSur(const TopoDS_Face& F)
   BRepAdaptor_Surface STA_Surface(F);
   GeomAbs_SurfaceType t =  STA_Surface.GetType();
   switch(t) {
-  case GeomAbs_Plane               : cout<<"PLANE";               break;
-  case GeomAbs_Cylinder            : cout<<"CYLINDER";            break;
-  case GeomAbs_Cone                : cout<<"CONE";                break;
-  case GeomAbs_Sphere              : cout<<"SPHERE";              break;
-  case GeomAbs_Torus               : cout<<"TORUS";               break;
-  case GeomAbs_BezierSurface       : cout<<"BEZIERSURFACE";       break;
-  case GeomAbs_BSplineSurface      : cout<<"BSPLINESURFACE";      break;
-  case GeomAbs_SurfaceOfRevolution : cout<<"SURFACEOFREVOLUTION"; break;
-  case GeomAbs_SurfaceOfExtrusion  : cout<<"SURFACEOFEXTRUSION";  break;
-  case GeomAbs_OtherSurface : default : cout<<"OTHERSURFACE";     break;
+  case GeomAbs_Plane               : std::cout<<"PLANE";               break;
+  case GeomAbs_Cylinder            : std::cout<<"CYLINDER";            break;
+  case GeomAbs_Cone                : std::cout<<"CONE";                break;
+  case GeomAbs_Sphere              : std::cout<<"SPHERE";              break;
+  case GeomAbs_Torus               : std::cout<<"TORUS";               break;
+  case GeomAbs_BezierSurface       : std::cout<<"BEZIERSURFACE";       break;
+  case GeomAbs_BSplineSurface      : std::cout<<"BSPLINESURFACE";      break;
+  case GeomAbs_SurfaceOfRevolution : std::cout<<"SURFACEOFREVOLUTION"; break;
+  case GeomAbs_SurfaceOfExtrusion  : std::cout<<"SURFACEOFEXTRUSION";  break;
+  case GeomAbs_OtherSurface : default : std::cout<<"OTHERSURFACE";     break;
   }
-  cout.flush();
+  std::cout.flush();
 }
 #else
 void TopOpeBRepBuild_Builder::PrintSur(const TopoDS_Face& )
@@ -165,17 +165,17 @@ void TopOpeBRepBuild_Builder::PrintCur(const TopoDS_Edge& E)
   GeomAbs_CurveType t = GC.GetType();
 
   switch(t) {
-  case GeomAbs_Line                : cout<<"LINE";              break;
-  case GeomAbs_Circle              : cout<<"CIRCLE";            break;
-  case GeomAbs_Ellipse             : cout<<"ELLIPSE";           break;
-  case GeomAbs_Hyperbola           : cout<<"HYPERBOLA";         break;
-  case GeomAbs_Parabola            : cout<<"PARABOLA";          break;
-  case GeomAbs_BezierCurve         : cout<<"BEZIERCURVE";       break;
-  case GeomAbs_BSplineCurve        : cout<<"BSPLINECURVE "<<GC.BSpline()->Degree(); break;
-  case GeomAbs_OffsetCurve         : cout<<"OFFSETCURVE";       break;
-  case GeomAbs_OtherCurve          : cout<<"OTHERCURVE";        break;
+  case GeomAbs_Line                : std::cout<<"LINE";              break;
+  case GeomAbs_Circle              : std::cout<<"CIRCLE";            break;
+  case GeomAbs_Ellipse             : std::cout<<"ELLIPSE";           break;
+  case GeomAbs_Hyperbola           : std::cout<<"HYPERBOLA";         break;
+  case GeomAbs_Parabola            : std::cout<<"PARABOLA";          break;
+  case GeomAbs_BezierCurve         : std::cout<<"BEZIERCURVE";       break;
+  case GeomAbs_BSplineCurve        : std::cout<<"BSPLINECURVE "<<GC.BSpline()->Degree(); break;
+  case GeomAbs_OffsetCurve         : std::cout<<"OFFSETCURVE";       break;
+  case GeomAbs_OtherCurve          : std::cout<<"OTHERCURVE";        break;
   }
-  cout.flush();
+  std::cout.flush();
 }
 #else
 void TopOpeBRepBuild_Builder::PrintCur(const TopoDS_Edge&)
@@ -205,8 +205,8 @@ void TopOpeBRepBuild_Builder::PrintPnt(const TopoDS_Vertex&)
 #ifdef OCCT_DEBUG
 void TopOpeBRepBuild_Builder::PrintOri(const TopoDS_Shape& S) 
 { 
-  TopAbs::Print(S.Orientation(),cout);
-  cout.flush(); 
+  TopAbs::Print(S.Orientation(),std::cout);
+  std::cout.flush(); 
 }
 #else
 void TopOpeBRepBuild_Builder::PrintOri(const TopoDS_Shape& /*S*/) 
@@ -243,7 +243,7 @@ TCollection_AsciiString TopOpeBRepBuild_Builder::StringState(const TopAbs_State)
 #ifdef OCCT_DEBUG
 void TopOpeBRepBuild_Builder::GdumpPNT(const gp_Pnt& P)
 { 
-  cout<<P.X()<<" "<<P.Y()<<" "<<P.Z();  cout.flush();
+  std::cout<<P.X()<<" "<<P.Y()<<" "<<P.Z();  std::cout.flush();
 }
 #else
 void TopOpeBRepBuild_Builder::GdumpPNT(const gp_Pnt&)
@@ -260,7 +260,7 @@ void TopOpeBRepBuild_Builder::GdumpORIPARPNT(const TopAbs_Orientation o,
                                              const Standard_Real p,
                                              const gp_Pnt& Pnt)
 { 
-  TopAbs::Print(o,cout); cout<<" "<<p<<" pnt "; GdumpPNT(Pnt);  cout.flush();
+  TopAbs::Print(o,std::cout); std::cout<<" "<<p<<" pnt "; GdumpPNT(Pnt);  std::cout.flush();
 }
 #else
 void TopOpeBRepBuild_Builder::GdumpORIPARPNT(const TopAbs_Orientation, 
@@ -278,13 +278,13 @@ void TopOpeBRepBuild_Builder::GdumpEDGVER(const TopoDS_Shape& E,
                                           const TopoDS_Shape& V,
                                           const Standard_Address s) const 
 { 
-  char* c = (char*)s; if (c) cout<<c;
+  char* c = (char*)s; if (c) std::cout<<c;
   const TopoDS_Edge& EE = TopoDS::Edge(E);
   const TopoDS_Vertex& VV = TopoDS::Vertex(V);
   Standard_Real par = BRep_Tool::Parameter(VV,EE);
   gp_Pnt P = BRep_Tool::Pnt(VV);
   GdumpORIPARPNT(VV.Orientation(),par,P);
-  cout.flush();
+  std::cout.flush();
 }
 #else
 void TopOpeBRepBuild_Builder::GdumpEDGVER(const TopoDS_Shape&,
@@ -302,29 +302,29 @@ void TopOpeBRepBuild_Builder::GdumpEDGVER(const TopoDS_Shape&,
 void TopOpeBRepBuild_Builder::GdumpEDG(const TopoDS_Shape& E,
                                        const Standard_Address s) const 
 {
-  char* c = (char*)s; if (c) cout<<c;
+  char* c = (char*)s; if (c) std::cout<<c;
   const TopoDS_Edge& EE = TopoDS::Edge(E);
   Standard_Integer n = 0;
-  GdumpSHAORI(E, (char *) "vertices of ");cout<<endl;
+  GdumpSHAORI(E, (char *) "vertices of ");std::cout<<std::endl;
   TopOpeBRepTool_ShapeExplorer ex(E,TopAbs_VERTEX);
   char strpar[256]; 
   Sprintf(strpar," #");
   for (; ex.More(); ex.Next()) {
     const TopoDS_Vertex& VV = TopoDS::Vertex(ex.Current());
     TopAbs_Orientation o = VV.Orientation();
-    cout<<"vertex v";
-    if      (o == TopAbs_FORWARD)  cout<<"F";
-    else if (o == TopAbs_REVERSED) cout<<"R";
-    else if (o == TopAbs_INTERNAL) cout<<"I";
-    else if (o == TopAbs_EXTERNAL) cout<<"E";
-    cout<<++n<<" "; TopOpeBRepBuild_Builder::PrintPnt(VV); cout<<";";
+    std::cout<<"vertex v";
+    if      (o == TopAbs_FORWARD)  std::cout<<"F";
+    else if (o == TopAbs_REVERSED) std::cout<<"R";
+    else if (o == TopAbs_INTERNAL) std::cout<<"I";
+    else if (o == TopAbs_EXTERNAL) std::cout<<"E";
+    std::cout<<++n<<" "; TopOpeBRepBuild_Builder::PrintPnt(VV); std::cout<<";";
     Standard_Real par = BRep_Tool::Parameter(VV,EE);
     char spar[255];
     Sprintf(spar," par%d %f",n,par); 
     strcat(strpar,spar);
   }
-  if(n) cout<<strpar<<endl;
-  cout.flush();
+  if(n) std::cout<<strpar<<std::endl;
+  std::cout.flush();
 }
 #else
 void TopOpeBRepBuild_Builder::GdumpEDG(const TopoDS_Shape&,
@@ -341,8 +341,8 @@ void TopOpeBRepBuild_Builder::GdumpSAMDOM(const TopTools_ListOfShape& L,
                                           const Standard_Address astr) const 
 {
   TopOpeBRepDS_Dumper Dumper(myDataStructure);
-  cout<<Dumper.SPrintShapeRefOri(L,(char*)astr)<<endl;
-  cout.flush();
+  std::cout<<Dumper.SPrintShapeRefOri(L,(char*)astr)<<std::endl;
+  std::cout.flush();
 }
 
 //=======================================================================
@@ -353,12 +353,12 @@ void TopOpeBRepBuild_Builder::GdumpSAMDOM(const TopTools_ListOfShape& L,
 void TopOpeBRepBuild_Builder::GdumpSHA(const TopoDS_Shape& S,
                                        const Standard_Address str) const 
 {
-  char* c = (char*)str; if (c) cout<<c;
+  char* c = (char*)str; if (c) std::cout<<c;
   if (S.IsNull()) return;
   TopAbs_ShapeEnum tS = S.ShapeType(); Standard_Integer iS = 0;
   if ( ! myDataStructure.IsNull() ) iS = myDataStructure->Shape(S);
-  TopOpeBRepDS::Print(tS,iS,cout);
-  cout.flush();
+  TopOpeBRepDS::Print(tS,iS,std::cout);
+  std::cout.flush();
 }
 #else
 void TopOpeBRepBuild_Builder::GdumpSHA(const TopoDS_Shape&,
@@ -375,9 +375,9 @@ void TopOpeBRepBuild_Builder::GdumpSHA(const TopoDS_Shape&,
 void TopOpeBRepBuild_Builder::GdumpSHAORI(const TopoDS_Shape& S,
                                           const Standard_Address str) const
 {
-  char* c = (char*)str; if (c) cout<<c;
-  GdumpSHA(S,NULL); cout<<","; PrintOri(S);
-  cout.flush();
+  char* c = (char*)str; if (c) std::cout<<c;
+  GdumpSHA(S,NULL); std::cout<<","; PrintOri(S);
+  std::cout.flush();
 }
 #else
 void TopOpeBRepBuild_Builder::GdumpSHAORI(const TopoDS_Shape& ,
@@ -393,9 +393,9 @@ void TopOpeBRepBuild_Builder::GdumpSHAORI(const TopoDS_Shape& ,
 void TopOpeBRepBuild_Builder::GdumpSHAORIGEO(const TopoDS_Shape& S,
                                              const Standard_Address str) const
 {
-  char* c = (char*)str; if (c) cout<<c;
-  GdumpSHAORI(S,NULL); cout<<","; PrintGeo(S);
-  cout.flush();
+  char* c = (char*)str; if (c) std::cout<<c;
+  GdumpSHAORI(S,NULL); std::cout<<","; PrintGeo(S);
+  std::cout.flush();
 }
 #else
 void TopOpeBRepBuild_Builder::GdumpSHAORIGEO(const TopoDS_Shape& ,
@@ -413,10 +413,10 @@ void TopOpeBRepBuild_Builder::GdumpSHASTA(const TopoDS_Shape& S,
                                           const TCollection_AsciiString& a,
                                           const TCollection_AsciiString& b) const 
 {
-  cout<<a;
-  GdumpSHAORIGEO(S,NULL); cout<<","<<StringState(T).ToCString();
-  cout<<b;
-  cout.flush();
+  std::cout<<a;
+  GdumpSHAORIGEO(S,NULL); std::cout<<","<<StringState(T).ToCString();
+  std::cout<<b;
+  std::cout.flush();
 }
 #else
 void TopOpeBRepBuild_Builder::GdumpSHASTA(const TopoDS_Shape& ,
@@ -439,7 +439,7 @@ void TopOpeBRepBuild_Builder::GdumpSHASTA(const Standard_Integer iS,
 {
   const TopoDS_Shape& S = myDataStructure->Shape(iS);
   GdumpSHASTA(S,T,a,b);
-  cout.flush();
+  std::cout.flush();
 }
 #else
 void TopOpeBRepBuild_Builder::GdumpSHASTA(const Standard_Integer ,
@@ -465,7 +465,7 @@ void TopOpeBRepBuild_Builder::GdumpSHASTA(const Standard_Integer iS,
   const TopoDS_Shape& S = myDataStructure->Shape(iS);
   TCollection_AsciiString aib = a + " " + SS.DEBNumber() + " " + b;
   GdumpSHASTA(S,T,aib,c);
-  cout.flush();
+  std::cout.flush();
 }
 #else
 void TopOpeBRepBuild_Builder::GdumpSHASTA(const Standard_Integer ,
@@ -511,15 +511,15 @@ void TopOpeBRepBuild_Builder::GdumpEXP(const TopOpeBRepTool_ShapeExplorer& Ex) c
 {
   if ( ! Ex.More() ) return;
   TopAbs_ShapeEnum t = Ex.Current().ShapeType();
-  if      (t == TopAbs_SOLID) cout<<"";
-  else if (t == TopAbs_FACE)  cout<<"  ";
-  else if (t == TopAbs_EDGE)  cout<<"     ";
-  else cout<<"??";
-  Ex.DumpCurrent(cout);
+  if      (t == TopAbs_SOLID) std::cout<<"";
+  else if (t == TopAbs_FACE)  std::cout<<"  ";
+  else if (t == TopAbs_EDGE)  std::cout<<"     ";
+  else std::cout<<"??";
+  Ex.DumpCurrent(std::cout);
   Standard_Integer I = myDataStructure->Shape(Ex.Current());
-  if ( I != 0 ) cout<<" :  shape "<<I;
-  cout<<endl;
-  cout.flush();
+  if ( I != 0 ) std::cout<<" :  shape "<<I;
+  std::cout<<std::endl;
+  std::cout.flush();
 }
 #else
 void TopOpeBRepBuild_Builder::GdumpEXP(const TopOpeBRepTool_ShapeExplorer& ) const 
@@ -556,14 +556,14 @@ void TopOpeBRepBuild_Builder::GdumpFABU(TopOpeBRepBuild_FaceBuilder& ME) const
 
   Standard_Integer nf,nw,ne;
   ME.InitFace();
-  if ( ME.MoreFace() ) cout<<"clear;"<<endl;
+  if ( ME.MoreFace() ) std::cout<<"clear;"<<std::endl;
   for (nf=0;ME.MoreFace();ME.NextFace()) { 
     nf++;
-    cout<<"# face "<<nf<<endl;
+    std::cout<<"# face "<<nf<<std::endl;
     for (nw=0,ME.InitWire();ME.MoreWire();ME.NextWire()) { 
       nw++;
       Standard_Boolean ow = ME.IsOldWire();
-      cout<<"#  wire "<<nw;if(ow)cout<<" (old)";else cout<<" (new)";cout<<endl;
+      std::cout<<"#  wire "<<nw;if(ow)std::cout<<" (old)";else std::cout<<" (new)";std::cout<<std::endl;
       if (!ow) {
        TCollection_AsciiString whatis("whatis");
        for(ne=0,ME.InitEdge();ME.MoreEdge();ME.NextEdge()) { 
@@ -576,7 +576,7 @@ void TopOpeBRepBuild_Builder::GdumpFABU(TopOpeBRepBuild_FaceBuilder& ME) const
          if (PWES) Enam = Enam + PWES->DEBName() + PWES->DEBNumber();
          VFnam = VFnam + ne + "NF" + nf + "F" + iF;
          VRnam = VRnam + ne + "NF" + nf + "F" + iF;
-//       cout<<"    puts \"edge "<<ne<<" : "<<Enam<<"\"";cout<<"; ";
+//       std::cout<<"    puts \"edge "<<ne<<" : "<<Enam<<"\"";std::cout<<"; ";
          TopoDS_Vertex VF,VR; TopExp::Vertices(EE,VF,VR);
          if ( ! VF.IsNull() && !VR.IsNull() && !EE.IsNull()) {
 #ifdef DRAW
@@ -584,24 +584,24 @@ void TopOpeBRepBuild_Builder::GdumpFABU(TopOpeBRepBuild_FaceBuilder& ME) const
            DBRep::Set(VFnam.ToCString(),VF);
            DBRep::Set(VRnam.ToCString(),VR);
 #endif
-           cout<<PRODINS<<"-O -p 0.5 "<<Enam; cout<<"; ";
-//         cout<<PRODINS<<VFnam; cout<<"; ";
-//         cout<<PRODINS<<VRnam; cout<<"; ";
+           std::cout<<PRODINS<<"-O -p 0.5 "<<Enam; std::cout<<"; ";
+//         std::cout<<PRODINS<<VFnam; std::cout<<"; ";
+//         std::cout<<PRODINS<<VRnam; std::cout<<"; ";
 //         gp_Pnt PF = BRep_Tool::Pnt(VF); 
 //         gp_Pnt PR = BRep_Tool::Pnt(VR);
-//         cout<<endl;
-//         cout<<"# ";
-//         cout<<"dinp "<<VFnam<<" ";TopOpeBRepBuild_Builder::PrintPnt(VF);cout<<"; ";
-//         cout<<"dinp "<<VRnam<<" ";TopOpeBRepBuild_Builder::PrintPnt(VR);cout<<"; ";
-           cout<<endl;
+//         std::cout<<std::endl;
+//         std::cout<<"# ";
+//         std::cout<<"dinp "<<VFnam<<" ";TopOpeBRepBuild_Builder::PrintPnt(VF);std::cout<<"; ";
+//         std::cout<<"dinp "<<VRnam<<" ";TopOpeBRepBuild_Builder::PrintPnt(VR);std::cout<<"; ";
+           std::cout<<std::endl;
            whatis += " "; whatis += Enam;
          }
        }
-       if (ne) cout<<"    "<<whatis<<endl<<endl;
+       if (ne) std::cout<<"    "<<whatis<<std::endl<<std::endl;
       }
     }
   }
-  cout.flush();
+  std::cout.flush();
 } // GdumpFABU
 #else
 void TopOpeBRepBuild_Builder::GdumpFABU(TopOpeBRepBuild_FaceBuilder& ) const 
index 63474e4..9e030c3 100644 (file)
@@ -68,7 +68,7 @@ extern Standard_Boolean TopOpeBRepBuild_GettraceKPB();
 
 static void FUN_Raise() {
 #ifdef OCCT_DEBUG
-  cout<<"******************************ERROR"<<endl;
+  std::cout<<"******************************ERROR"<<std::endl;
   throw Standard_ProgramError("KPart.cxx");
 #endif
 }
@@ -120,7 +120,7 @@ Standard_Integer TopOpeBRepBuild_Builder::FindIsKPart()
   
 #ifdef OCCT_DEBUG
   Standard_Boolean TKPB = TopOpeBRepBuild_GettraceKPB();
-  if(TKPB){cout<<endl<<"--- IsKPart ? ---"<<endl;}
+  if(TKPB){std::cout<<std::endl<<"--- IsKPart ? ---"<<std::endl;}
 #endif
   
   Standard_Integer isfafa = KPisfafa();
@@ -522,7 +522,7 @@ void TopOpeBRepBuild_Builder::MergeKPartiskoletge()
             myDataStructure->Shape(fac2); //DEB
 
 #ifdef OCCT_DEBUG
-  if (TKPB) {cout<<""<<endl;cout<<"face "<<iF1<<" : ";cout<<iF2<<endl;}
+  if (TKPB) {std::cout<<""<<std::endl;std::cout<<"face "<<iF1<<" : ";std::cout<<iF2<<std::endl;}
 #endif
     
   TopOpeBRepDS_Config config2 = BDS.SameDomainOri(fac2);
@@ -800,7 +800,7 @@ void TopOpeBRepBuild_Builder::MergeKPartisdisj()
       }    
       else {
 #ifdef OCCT_DEBUG
-       cout<<"TopOpeBRepBuild_MergeKPart soldisj : ires = "<<ires<<endl;
+       std::cout<<"TopOpeBRepBuild_MergeKPart soldisj : ires = "<<ires<<std::endl;
 #endif
        return;
       }
@@ -1031,9 +1031,9 @@ Standard_Integer TopOpeBRepBuild_Builder::KPiskoletge()
   Standard_Boolean tSPS2 = GtraceSPS(f2,iF2);
   if(tSPS1 || tSPS2) 
     {GdumpSHA( f1, (char *) "KPiskoletge ");
-    cout<<endl; 
+    std::cout<<std::endl; 
     GdumpSHA(  f2, (char *)"KPiskoletge ");
-    cout<<endl;}
+    std::cout<<std::endl;}
 #endif
 
   TopoDS_Wire outerw1 = BRepTools::OuterWire(f1);
@@ -1095,7 +1095,7 @@ Standard_Integer TopOpeBRepBuild_Builder::KPisdisj()
   
 #ifdef OCCT_DEBUG
   if (TKPB) {
-    cout<<"isdisj : "<<isdisj1<<" "<<isdisj2<<endl;
+    std::cout<<"isdisj : "<<isdisj1<<" "<<isdisj2<<std::endl;
   }
 #endif
   
@@ -1238,8 +1238,8 @@ TopAbs_State TopOpeBRepBuild_Builder::KPclasSS(const TopoDS_Shape& S1,const TopT
 #ifdef OCCT_DEBUG
   if (TopOpeBRepBuild_GettraceKPB()) {
     const gp_Pnt& P1 = myShapeClassifier.P3D();
-    cout<<"point P1 "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z();
-    cout<<"  "; TopAbs::Print(state,cout);cout<<endl;
+    std::cout<<"point P1 "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z();
+    std::cout<<"  "; TopAbs::Print(state,std::cout);std::cout<<std::endl;
   }
 #endif
   
@@ -1262,8 +1262,8 @@ TopAbs_State TopOpeBRepBuild_Builder::KPclasSS(const TopoDS_Shape& S1,const Topo
 #ifdef OCCT_DEBUG
   if (TopOpeBRepBuild_GettraceKPB()) {
     const gp_Pnt& P1 = myShapeClassifier.P3D();
-    cout<<"point P1 "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z();
-    cout<<"  "; TopAbs::Print(state,cout);cout<<endl;
+    std::cout<<"point P1 "<<P1.X()<<" "<<P1.Y()<<" "<<P1.Z();
+    std::cout<<"  "; TopAbs::Print(state,std::cout);std::cout<<std::endl;
   }
 #endif
   
@@ -1329,12 +1329,12 @@ Standard_Boolean TopOpeBRepBuild_Builder::KPiskoletgesh(const TopoDS_Shape& Sarg
 
 #ifdef OCCT_DEBUG
     Standard_Integer isol = myDataStructure->Shape(Sarg); Standard_Integer ifac = myDataStructure->Shape(fac); 
-    if(TKPB){cout<<"isol "<<isol<<endl;}
-    if(TKPB){cout<<"nfhsd  "<<nfhsd<<endl;}
-    if(TKPB){cout<<"ifac "<<ifac<<endl;}
-    if(TKPB){cout<<"isplan "<<isplan<<endl;}
-    if(TKPB){cout<<"iscylinder "<<iscylinder<<endl;}
-    if(TKPB){cout<<endl;}
+    if(TKPB){std::cout<<"isol "<<isol<<std::endl;}
+    if(TKPB){std::cout<<"nfhsd  "<<nfhsd<<std::endl;}
+    if(TKPB){std::cout<<"ifac "<<ifac<<std::endl;}
+    if(TKPB){std::cout<<"isplan "<<isplan<<std::endl;}
+    if(TKPB){std::cout<<"iscylinder "<<iscylinder<<std::endl;}
+    if(TKPB){std::cout<<std::endl;}
 #endif
   }
   
@@ -1615,7 +1615,7 @@ void TopOpeBRepBuild_Builder::KPiskoletgeanalyse(const TopOpeBRepDS_Config confi
 
 #ifdef OCCT_DEBUG
   Standard_Boolean TKPB = TopOpeBRepBuild_GettraceKPB();
-  if (TKPB) cout<<"ires = "<<ires<<endl;
+  if (TKPB) std::cout<<"ires = "<<ires<<std::endl;
 #endif
 }
 
@@ -1677,7 +1677,7 @@ void TopOpeBRepBuild_Builder::KPisdisjanalyse(const TopAbs_State Stsol1, const T
   
 #ifdef OCCT_DEBUG
   Standard_Boolean TKPB = TopOpeBRepBuild_GettraceKPB();
-  if (TKPB) cout<<"ires = "<<ires<<" icla1 "<<icla1<<" icla2 "<<icla2<<endl;
+  if (TKPB) std::cout<<"ires = "<<ires<<" icla1 "<<icla1<<" icla2 "<<icla2<<std::endl;
 #endif
 }
 
@@ -1756,8 +1756,8 @@ void TopOpeBRepBuild_Builder::KPclassFF(const TopoDS_Shape& F1,const TopoDS_Shap
   
 #ifdef OCCT_DEBUG
   if (TopOpeBRepBuild_GettraceKPB()) { 
-    cout<<"Stf1 ";TopAbs::Print(St1,cout); cout<<" ";
-    cout<<"Stf2 ";TopAbs::Print(St2,cout); cout<<endl;
+    std::cout<<"Stf1 ";TopAbs::Print(St1,std::cout); std::cout<<" ";
+    std::cout<<"Stf2 ";TopAbs::Print(St2,std::cout); std::cout<<std::endl;
   }
 #endif
 }
@@ -1776,8 +1776,8 @@ Standard_Boolean TopOpeBRepBuild_Builder::KPiskoleFF(const TopoDS_Shape& F1,cons
   Standard_Boolean tSPS1 = GtraceSPS(F1,iF1);
   Standard_Integer iF2; 
   Standard_Boolean tSPS2 = GtraceSPS(F2,iF2);
-  if(tSPS1) { GdumpSHA(F1, (char *) "KPiskoleFF ");cout<<endl; }
-  if(tSPS2) { GdumpSHA(F2, (char *) "KPiskoleFF ");cout<<endl; }
+  if(tSPS1) { GdumpSHA(F1, (char *) "KPiskoleFF ");std::cout<<std::endl; }
+  if(tSPS2) { GdumpSHA(F2, (char *) "KPiskoleFF ");std::cout<<std::endl; }
 #endif
   
   KPclassFF(F1,F2,St1,St2);
@@ -1815,11 +1815,11 @@ Standard_Integer TopOpeBRepBuild_Builder::KPreturn(const Standard_Integer b)
 {
 #ifdef OCCT_DEBUG
   if (TopOpeBRepBuild_GettraceKPB()) {
-    cout<<"--- IsKPart "<<b;
-    if ( b == 1 ) cout<<" iskole";
-    if ( b == 2 ) cout<<" isdisj";
-    if ( b == 3 ) cout<<" isfafa";
-    cout<<" ---"<<endl;
+    std::cout<<"--- IsKPart "<<b;
+    if ( b == 1 ) std::cout<<" iskole";
+    if ( b == 2 ) std::cout<<" isdisj";
+    if ( b == 3 ) std::cout<<" isfafa";
+    std::cout<<" ---"<<std::endl;
   }
 #endif
   return b;
@@ -1885,7 +1885,7 @@ static void LocalKPisdisjanalyse(const TopAbs_State Stsol1, const TopAbs_State
     break;
   }
   default: {
-    cout << "Warning: given operation is unknown"   << endl;
+    std::cout << "Warning: given operation is unknown"   << std::endl;
     break;
   }
   } //end switch
@@ -2071,7 +2071,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) {
-       cout << "Warning: disjPerformFuse: can not determine solid's states"  << endl;
+       std::cout << "Warning: disjPerformFuse: can not determine solid's states"  << std::endl;
        continue;
       }
       if(ires == RESSHAPE12)
@@ -2087,7 +2087,7 @@ static Standard_Boolean disjPerformFuse(const TopTools_IndexedMapOfShape& theMap
       }
     } //end while(j)
     if(acheckiterator > aMaxNumberOfIterations) {
-      cout << "disjPerformFuse: programming error"  << endl;
+      std::cout << "disjPerformFuse: programming error"  << std::endl;
       return Standard_False;
     }
     theMapOfResult.Add(acurrentsolid);
@@ -2135,7 +2135,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) {
-       cout << "Warning: disjPerformCommon: can not determine solid's states"  << endl;
+       std::cout << "Warning: disjPerformCommon: can not determine solid's states"  << std::endl;
        continue;
       }      
       switch (ires) {
@@ -2212,7 +2212,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) {
-       cout << "Warning: disjPerformCut: can not determine solid's states"  << endl;
+       std::cout << "Warning: disjPerformCut: can not determine solid's states"  << std::endl;
        continue;
       }
       switch (ires) {
index 53730df..3de8f48 100644 (file)
@@ -138,7 +138,7 @@ static void CorrectEdgeOrientation(TopoDS_Shape& aWire)
 
 static void CorrectUnclosedWire(TopoDS_Shape& aWire)
 {
-//  cout << "-------CorrectUnclosedWire" << endl;
+//  std::cout << "-------CorrectUnclosedWire" << std::endl;
   BRep_Builder BB;
   TopoDS_Iterator tdi(aWire, Standard_False, Standard_False);
   Standard_Integer nbe = 0;
@@ -146,9 +146,9 @@ static void CorrectUnclosedWire(TopoDS_Shape& aWire)
     nbe++;
     const TopoDS_Shape& ed = tdi.Value();
     Standard_Integer nbv = ed.NbChildren();
-//    cout << "Edge " << nbe << " : " << nbv << endl;
+//    std::cout << "Edge " << nbe << " : " << nbv << std::endl;
     if(nbv <= 1) {
-//      cout << "Remove bad edge" << endl;
+//      std::cout << "Remove bad edge" << std::endl;
       BB.Remove(aWire, ed);
     }
   }
@@ -162,7 +162,7 @@ static void CorrectUnclosedWire(TopoDS_Shape& aWire)
     const TopTools_ListOfShape& Elist = VElists.FindFromIndex(i);
     if(Elist.Extent() == 1) {
       TopoDS_Shape anEdge = Elist.First();
-//      cout << "Remove redundant edge" << endl;
+//      std::cout << "Remove redundant edge" << std::endl;
       BB.Remove(aWire, anEdge);
     }
   }
@@ -179,7 +179,7 @@ void TopOpeBRepBuild_Builder::MergeShapes(const TopoDS_Shape& S1,const TopAbs_St
   Standard_Boolean lesmemes = S1.IsEqual(S2);
   if (lesmemes) {
 #ifdef OCCT_DEBUG
-    cout<<"TopOpeBRepBuild : S1 == S2"<<endl;
+    std::cout<<"TopOpeBRepBuild : S1 == S2"<<std::endl;
 #endif
     return;
   }
@@ -538,8 +538,8 @@ void TopOpeBRepBuild_Builder::MakeEdges(const TopoDS_Shape& anEdge,TopOpeBRepBui
     } // loop on vertices of new edge newEdge
     
 #ifdef OCCT_DEBUG
-    if(tSPS){cout<<endl;}
-    if(tSPS){cout<<"V of new edge "<<++ne<<endl;}
+    if(tSPS){std::cout<<std::endl;}
+    if(tSPS){std::cout<<"V of new edge "<<++ne<<std::endl;}
     if(tSPS){GdumpEDG(newEdge);} 
 #endif
     
index 8435487..eede0ad 100644 (file)
@@ -141,7 +141,7 @@ const TopoDS_Shape& TopOpeBRepBuild_Pave::Shape() const
 void TopOpeBRepBuild_Pave::Dump() const 
 {
 #ifdef OCCT_DEBUG
-  cout<<Parameter()<<" ";TopAbs::Print(Vertex().Orientation(),cout);
+  std::cout<<Parameter()<<" ";TopAbs::Print(Vertex().Orientation(),std::cout);
 #endif
 }
 
index 562c1dc..e1192dc 100644 (file)
@@ -76,14 +76,14 @@ TopOpeBRepBuild_PaveClassifier::TopOpeBRepBuild_PaveClassifier
     
 #ifdef OCCT_DEBUG
     if (TopOpeBRepTool_GettraceVC()) {
-      cout<<endl;
+      std::cout<<std::endl;
       if (myEdgePeriodic) {
-       cout<<"VC : periodic edge : myFirst "<<myFirst<<" myPeriod "<<myPeriod<<endl;
-       if (mySameParameters)cout<<"VC same parameters "<<endl;
-       else                 cout<<"VC no same parameters"<<endl;
+       std::cout<<"VC : periodic edge : myFirst "<<myFirst<<" myPeriod "<<myPeriod<<std::endl;
+       if (mySameParameters)std::cout<<"VC same parameters "<<std::endl;
+       else                 std::cout<<"VC no same parameters"<<std::endl;
       }
       else {
-       cout<<"VC : non periodic edge : f "<<f<<" l "<<l<<endl;
+       std::cout<<"VC : non periodic edge : f "<<f<<" l "<<l<<std::endl;
       }
     }
 #endif
@@ -126,11 +126,11 @@ TopAbs_State  TopOpeBRepBuild_PaveClassifier::CompareOnNonPeriodic()
 
 #ifdef OCCT_DEBUG
   if (TopOpeBRepTool_GettraceVC()) {
-    cout<<"VC_NP : ";
-    if      (myP1 == myP2) cout<<" p1 = p2";
-    else if (myP1  < myP2) cout<<" p1 < p2";
-    else if (myP1  > myP2) cout<<" p1 > p2";
-    cout<<" --> state "; TopAbs::Print(state,cout); cout<<endl;
+    std::cout<<"VC_NP : ";
+    if      (myP1 == myP2) std::cout<<" p1 = p2";
+    else if (myP1  < myP2) std::cout<<" p1 < p2";
+    else if (myP1  > myP2) std::cout<<" p1 > p2";
+    std::cout<<" --> state "; TopAbs::Print(state,std::cout); std::cout<<std::endl;
   }
 #endif
 
@@ -200,8 +200,8 @@ void TopOpeBRepBuild_PaveClassifier::AdjustOnPeriodic()
 
 #ifdef OCCT_DEBUG
   if (TopOpeBRepTool_GettraceVC()) {
-    cout<<"p1 "<<p1<<" ";TopAbs::Print(myO1,cout);cout<<" --> "<<myP1<<endl;
-    cout<<"p2 "<<p2<<" ";TopAbs::Print(myO2,cout);cout<<" --> "<<myP2<<endl;
+    std::cout<<"p1 "<<p1<<" ";TopAbs::Print(myO1,std::cout);std::cout<<" --> "<<myP1<<std::endl;
+    std::cout<<"p2 "<<p2<<" ";TopAbs::Print(myO2,std::cout);std::cout<<" --> "<<myP2<<std::endl;
   }
 #endif
 
@@ -245,8 +245,8 @@ TopAbs_State  TopOpeBRepBuild_PaveClassifier::CompareOnPeriodic()
 
 #ifdef OCCT_DEBUG
   if (TopOpeBRepTool_GettraceVC()) {
-    cout<<"VC_P : cas "<<myCas1<<"__"<<myCas2;
-    cout<<" --> state "; TopAbs::Print(state,cout); cout<<endl;
+    std::cout<<"VC_P : cas "<<myCas1<<"__"<<myCas2;
+    std::cout<<" --> state "; TopAbs::Print(state,std::cout); std::cout<<std::endl;
   }
 #endif
 
@@ -276,10 +276,10 @@ TopAbs_State  TopOpeBRepBuild_PaveClassifier::Compare
   
 #ifdef OCCT_DEBUG
   if (TopOpeBRepTool_GettraceVC()) {  
-    cout<<endl<<"VC : "<<myP1<<" "<<myP2<<" ";
-    TopAbs::Print(myO1,cout); cout<<" "; TopAbs::Print(myO2,cout);
-    cout<<" (p "<<myEdgePeriodic;
-    cout<<" s "<<mySameParameters<<" c "<<myClosedVertices<<")"<<endl;
+    std::cout<<std::endl<<"VC : "<<myP1<<" "<<myP2<<" ";
+    TopAbs::Print(myO1,std::cout); std::cout<<" "; TopAbs::Print(myO2,std::cout);
+    std::cout<<" (p "<<myEdgePeriodic;
+    std::cout<<" s "<<mySameParameters<<" c "<<myClosedVertices<<")"<<std::endl;
   }
 #endif
   
@@ -295,7 +295,7 @@ TopAbs_State  TopOpeBRepBuild_PaveClassifier::Compare
   
 #ifdef OCCT_DEBUG
   if (TopOpeBRepTool_GettraceVC()) { 
-    cout<<"VC : --> final state "; TopAbs::Print(state,cout); cout<<endl;
+    std::cout<<"VC : --> final state "; TopAbs::Print(state,std::cout); std::cout<<std::endl;
   }
 #endif
   
@@ -315,7 +315,7 @@ void TopOpeBRepBuild_PaveClassifier::SetFirstParameter
 
 #ifdef OCCT_DEBUG
   if (TopOpeBRepTool_GettraceVC())
-    cout<<endl<<"VC : set first parameter "<<myFirst<<endl;
+    std::cout<<std::endl<<"VC : set first parameter "<<myFirst<<std::endl;
 #endif
 }
 
@@ -332,10 +332,10 @@ void TopOpeBRepBuild_PaveClassifier::ClosedVertices
 #ifdef OCCT_DEBUG
   if (TopOpeBRepTool_GettraceCLOV()) {
     myEdgePeriodic = Closed;
-    cout<<"::::::::::::::::::::::::"<<endl;
-    cout<<"VC : myClosedVertices"<<myClosedVertices<<endl;
-    cout<<"VC : myEdgePeriodic  "<<myEdgePeriodic<<endl;
-    cout<<"::::::::::::::::::::::::"<<endl;
+    std::cout<<"::::::::::::::::::::::::"<<std::endl;
+    std::cout<<"VC : myClosedVertices"<<myClosedVertices<<std::endl;
+    std::cout<<"VC : myEdgePeriodic  "<<myEdgePeriodic<<std::endl;
+    std::cout<<"::::::::::::::::::::::::"<<std::endl;
   }
 #endif
 }
index 301ca54..018e7c7 100644 (file)
@@ -170,7 +170,7 @@ void  TopOpeBRepBuild_PaveSet::Prepare()
   Standard_Integer iv=0;//,nv=myVertices.Extent();
   if (trc) {
     TopOpeBRepBuild_ListIteratorOfListOfPave itd(myVertices);
-    cout<<endl;
+    std::cout<<std::endl;
     for(;itd.More();itd.Next() ) {
       const Handle(TopOpeBRepBuild_Pave)& PV = itd.Value(); 
       TopoDS_Vertex& VI = TopoDS::Vertex(PV->ChangeVertex());
@@ -178,7 +178,7 @@ void  TopOpeBRepBuild_PaveSet::Prepare()
       TopoDS_Vertex VSD; if (hasVSD) VSD = TopoDS::Vertex(PV->SameDomain());
       TopAbs_Orientation VIori = VI.Orientation(); 
       Standard_Real p = PV->Parameter();
-      cout<<"pvs : v "<<++iv<<" par "<<p<<" ";TopAbs::Print(VIori,cout);cout<<endl;
+      std::cout<<"pvs : v "<<++iv<<" par "<<p<<" ";TopAbs::Print(VIori,std::cout);std::cout<<std::endl;
     }
   }
 #endif
@@ -278,7 +278,7 @@ void  TopOpeBRepBuild_PaveSet::Prepare()
 #ifdef OCCT_DEBUG
   if ( TopOpeBRepTool_GettraceVC() ) {
     myVerticesIt.Initialize(myVertices);
-    if ( MoreLoop() ) cout<<"--- PaveSet : Prepare"<<endl;
+    if ( MoreLoop() ) std::cout<<"--- PaveSet : Prepare"<<std::endl;
     for (; MoreLoop(); NextLoop() ) {
       Handle(TopOpeBRepBuild_Pave) PV = 
        Handle(TopOpeBRepBuild_Pave)::DownCast(Loop());
@@ -286,8 +286,8 @@ void  TopOpeBRepBuild_PaveSet::Prepare()
       Standard_Real p = PV->Parameter();
       Standard_Boolean b = PV->IsShape();
       TopOpeBRepBuild_Builder::GdumpORIPARPNT(v.Orientation(),p,BRep_Tool::Pnt(v));
-      if (b) cout<<" is bound"; else cout<<" is not bound";
-      cout<<endl;
+      if (b) std::cout<<" is bound"; else std::cout<<" is not bound";
+      std::cout<<std::endl;
     }
   }
 #endif
@@ -381,7 +381,7 @@ Standard_Boolean  TopOpeBRepBuild_PaveSet::HasEqualParameters()
       Standard_Real d = Abs(p1-p2);
 #ifdef OCCT_DEBUG
       if (TopOpeBRepTool_GettraceVC()) {
-       cout<<"VertexSet : p1,p2  d "<<p1<<","<<p2<<"  "<<d<<endl;
+       std::cout<<"VertexSet : p1,p2  d "<<p1<<","<<p2<<"  "<<d<<std::endl;
       }
 #endif
       if (d < Precision::PConfusion()) { 
@@ -413,9 +413,9 @@ Standard_Boolean  TopOpeBRepBuild_PaveSet::HasEqualParameters()
          myEqualParameters = f;
 #ifdef OCCT_DEBUG
          if (TopOpeBRepTool_GettraceVC()) {
-           cout<<"=*=*=*=*=*=*=*=*=*=*=*=*=*=*"<<endl;
-           cout<<"PaveSet : p1,f  d "<<p1<<","<<f<<"  "<<d<<endl;
-           cout<<"=*=*=*=*=*=*=*=*=*=*=*=*=*=*"<<endl;
+           std::cout<<"=*=*=*=*=*=*=*=*=*=*=*=*=*=*"<<std::endl;
+           std::cout<<"PaveSet : p1,f  d "<<p1<<","<<f<<"  "<<d<<std::endl;
+           std::cout<<"=*=*=*=*=*=*=*=*=*=*=*=*=*=*"<<std::endl;
          }
 #endif
        }
index 6bea4bd..76886cd 100644 (file)
@@ -52,7 +52,7 @@
 extern Standard_Boolean TopOpeBRepBuild_GetcontextNOREGUSO();
 extern Standard_Boolean TopOpeBRepBuild_GetcontextREGUXPU();
 extern Standard_Boolean TopOpeBRepBuild_GettraceSAVSREGU();
-Standard_EXPORT void debreguso(const Standard_Integer iS) {cout<<"++ debreguso "<<iS<<endl;}
+Standard_EXPORT void debreguso(const Standard_Integer iS) {std::cout<<"++ debreguso "<<iS<<std::endl;}
 #endif
 
 #ifdef DRAW
@@ -217,7 +217,7 @@ void TopOpeBRepBuild_Builder::RegularizeSolid
   
 #ifdef OCCT_DEBUG
   if (tSPS) {
-    cout<<"RegularizeSolid "<<iS<<endl;
+    std::cout<<"RegularizeSolid "<<iS<<std::endl;
     debreguso(iS);
   }
 #endif
@@ -317,7 +317,7 @@ void TopOpeBRepBuild_Builder::RegularizeSolid
   if (tSPS && savsregu) {
     TCollection_AsciiString str("sregu"); str = str + iS;
     DBRep::Set(str.ToCString(),newSolid);
-    cout<<"newSolid "<<str<<" built on Solid "<<iS<<" saved"<<endl;
+    std::cout<<"newSolid "<<str<<" built on Solid "<<iS<<" saved"<<std::endl;
   }
 #endif
   
index a64c565..674d41a 100644 (file)
@@ -66,7 +66,7 @@
 extern Standard_Boolean TopOpeBRepBuild_GettraceSPS();
 Standard_EXPORT void debsplitse(const Standard_Integer) {}
 Standard_EXPORT void debsplitsemess(const Standard_Integer i,const TCollection_AsciiString& s = "");
-Standard_EXPORT void debsplitsemess(const Standard_Integer i,const TCollection_AsciiString& s){cout<<"+++ debsplitse "<<s<<" E"<<i<<endl;debsplitse(i);}
+Standard_EXPORT void debsplitsemess(const Standard_Integer i,const TCollection_AsciiString& s){std::cout<<"+++ debsplitse "<<s<<" E"<<i<<std::endl;debsplitse(i);}
 Standard_EXPORT void debspseou(const Standard_Integer i) {debsplitsemess(i,"OUT");}
 Standard_EXPORT void debspsein(const Standard_Integer i) {debsplitsemess(i,"IN ");}
 Standard_EXPORT void debspseon(const Standard_Integer i) {debsplitsemess(i,"ON ");}
@@ -298,8 +298,8 @@ void TopOpeBRepBuild_Builder::SplitSectionEdges()
       if (tSPS) {
        TCollection_AsciiString str("# edge ");str=str+iE+" sd3d edge "+iESD;
        TCollection_AsciiString stru(str.Length(),'-');
-       cout<<endl;if(DEBiESD==1)cout<<stru<<endl;
-       DEBiESD++;cout<<str<<endl;debsplitsemess(iE);
+       std::cout<<std::endl;if(DEBiESD==1)std::cout<<stru<<std::endl;
+       DEBiESD++;std::cout<<str<<std::endl;debsplitsemess(iE);
       }
 #endif
 
@@ -348,10 +348,10 @@ void TopOpeBRepBuild_Builder::SplitSectionEdges()
 
 #ifdef DRAW
       if (tSPS) {
-       cout<<"# edges ON "<<iE<<" ";
-       TopAbs::Print(TopAbs_IN,cout); cout<<" / esd";
-       cout<<" "<<iESD;
-       cout<<" : ("<<nLE1inE2<<")"<<endl;
+       std::cout<<"# edges ON "<<iE<<" ";
+       TopAbs::Print(TopAbs_IN,std::cout); std::cout<<" / esd";
+       std::cout<<" "<<iESD;
+       std::cout<<" : ("<<nLE1inE2<<")"<<std::endl;
        TCollection_AsciiString str("ON");str=str+iE+"IN"+iESD;
        FDRAW_DINLOE("   ",LE1inE2,str,"");
       }
@@ -409,11 +409,11 @@ void TopOpeBRepBuild_Builder::SplitSectionEdges()
 
 #ifdef DRAW
     if (tSPS) {
-      cout<<endl<<"# edges ON "<<iE<<" ";
-      TopAbs::Print(TopAbs_OUT,cout);cout<<" / lesd";
+      std::cout<<std::endl<<"# edges ON "<<iE<<" ";
+      TopAbs::Print(TopAbs_OUT,std::cout);std::cout<<" / lesd";
       for(TopTools_ListIteratorOfListOfShape it(LESD);it.More();it.Next())
-       cout<<" "<<myDataStructure->Shape(it.Value());
-      Standard_Integer n=LEoutLESD.Extent();cout<<" : ("<<n<<")"<<endl;
+       std::cout<<" "<<myDataStructure->Shape(it.Value());
+      Standard_Integer n=LEoutLESD.Extent();std::cout<<" : ("<<n<<")"<<std::endl;
       TCollection_AsciiString str("ON");str=str+iE+"OUT";
       FDRAW_DINLOE("   ",LEoutLESD,str,"");
     }
@@ -530,8 +530,8 @@ void TopOpeBRepBuild_Builder::SplitSectionEdges()
        if (hasPC) continue;
 #ifdef OCCT_DEBUG
        if (TopOpeBRepTool_GettraceC2D()) {
-         cout<<"\n#TopOpeBRepBuild_Builder::SSE : hasPC = 0 ES"<<i<<" E"<<idebE<<" sur F"<<iF<<endl;
-         cout<<"tsee s "<<iF<<" "<<idebE<<";"<<endl;
+         std::cout<<"\n#TopOpeBRepBuild_Builder::SSE : hasPC = 0 ES"<<i<<" E"<<idebE<<" sur F"<<iF<<std::endl;
+         std::cout<<"tsee s "<<iF<<" "<<idebE<<";"<<std::endl;
        }
 #endif
 //     Standard_Real tolpc; MGhc2 PC = FC2D_CurveOnSurface(eon,F,esdF,f,l,tolpc);
@@ -703,8 +703,8 @@ void TopOpeBRepBuild_Builder::SplitSectionEdge(const TopoDS_Shape& EA)
 #ifdef OCCT_DEBUG
     if(tSPS) {
       GdumpSHA(EF, (char *) "SplitSectionEdges done : ");
-      if (issplit) cout<<" "<<Splits(EOR,TopAbs_ON).Extent()<<" edges splitON"<<endl;
-      else cout<<" !IsSplit"<<endl;
+      if (issplit) std::cout<<" "<<Splits(EOR,TopAbs_ON).Extent()<<" edges splitON"<<std::endl;
+      else std::cout<<" !IsSplit"<<std::endl;
     }
 #endif
     return;
@@ -712,7 +712,7 @@ void TopOpeBRepBuild_Builder::SplitSectionEdge(const TopoDS_Shape& EA)
   
 #ifdef OCCT_DEBUG
   if(tSPS)GdumpSHASTA(EF,TopAbs_ON,"--- SplitSectionEdges ");
-  if(tSPS)cout<<" (hg="<<hg<<"||hsd3d="<<hsd3d<<")="<<cond<<endl;
+  if(tSPS)std::cout<<" (hg="<<hg<<"||hsd3d="<<hsd3d<<")="<<cond<<std::endl;
 #endif   
 
   // xpu161198 BUC60382(e3on) SE EOR has all its interferences "on bounds"
@@ -784,9 +784,9 @@ void TopOpeBRepBuild_Builder::SplitSectionEdge(const TopoDS_Shape& EA)
 #ifdef OCCT_DEBUG
   if(tSPS)GdumpSHASTA(EF,TopAbs_ON,"--- SplitSectionEdges ");
   if(tSPS){ 
-    cout<<" (hg="<<hg<<"||hsd3d="<<hsd3d<<")="<<cond<<endl;
+    std::cout<<" (hg="<<hg<<"||hsd3d="<<hsd3d<<")="<<cond<<std::endl;
     GdumpSHA(EOR, (char *) "SplitSectionEdge");
-    cout<<endl;
+    std::cout<<std::endl;
     GdumpSAMDOM(LESD1, (char *) "LESD1 : ");
     GdumpSAMDOM(LESD2, (char *) "LESD2 : ");
   }
@@ -984,8 +984,8 @@ void TopOpeBRepBuild_Builder::SectionEdges(TopTools_ListOfShape& LSE)
     Standard_Integer iii; Standard_Boolean tSPS = GtraceSPS(es,iii);
     if (tSPS) {
       GdumpSHA(es, (char *) "--- Section ");
-      cout<<" splitIN "<<issplitIN<<" "<<Splits(es,TopAbs_IN).Extent()<<endl;
-      cout<<" splitON "<<issplitON<<" "<<Splits(es,TopAbs_ON).Extent()<<endl;
+      std::cout<<" splitIN "<<issplitIN<<" "<<Splits(es,TopAbs_IN).Extent()<<std::endl;
+      std::cout<<" splitON "<<issplitON<<" "<<Splits(es,TopAbs_ON).Extent()<<std::endl;
     }
 #endif
     
index 1b7f195..680a93a 100644 (file)
@@ -78,7 +78,7 @@ void TopOpeBRepBuild_ShapeSet::AddShape(const TopoDS_Shape& S)
 {
   Standard_Boolean chk = CheckShape(S);
 #ifdef OCCT_DEBUG
-  DumpCheck(cout," AddShape",S,chk);
+  DumpCheck(std::cout," AddShape",S,chk);
 #endif
 
   if (!chk) return;
@@ -93,7 +93,7 @@ void TopOpeBRepBuild_ShapeSet::AddStartElement(const TopoDS_Shape& S)
 {
   Standard_Boolean chk = CheckShape(S);
 #ifdef OCCT_DEBUG
-  DumpCheck(cout," AddStartElement",S,chk);
+  DumpCheck(std::cout," AddStartElement",S,chk);
 #endif
 
   if (!chk) return;
@@ -108,7 +108,7 @@ void TopOpeBRepBuild_ShapeSet::AddElement(const TopoDS_Shape& S)
 {
   Standard_Boolean chk = CheckShape(S);
 #ifdef OCCT_DEBUG
-  DumpCheck(cout," AddElement",S,chk);
+  DumpCheck(std::cout," AddElement",S,chk);
 #endif
 
   if (!chk) return;
@@ -369,7 +369,7 @@ void TopOpeBRepBuild_ShapeSet::CheckShape(const Standard_Boolean checkshape)
 
 #ifdef OCCT_DEBUG
   if (TopOpeBRepBuild_GettraceCHK() && !myCheckShape) {
-    DumpName(cout,"no checkshape set on ");cout<<endl;
+    DumpName(std::cout,"no checkshape set on ");std::cout<<std::endl;
   }
 #endif
 }
@@ -436,14 +436,14 @@ void TopOpeBRepBuild_ShapeSet::DumpCheck(Standard_OStream&,
     if (TopOpeBRepBuild_GettraceCHK() ||
        TopOpeBRepBuild_GettraceCHKNOK() ) {
       DumpName(OS,"*********************** ");
-      OS<<str<<" ";TopAbs::Print(t,OS);OS<<" : incorrect"<<endl;
+      OS<<str<<" ";TopAbs::Print(t,OS);OS<<" : incorrect"<<std::endl;
     }
   }
   else {
     if (TopOpeBRepBuild_GettraceCHK() ||
        TopOpeBRepBuild_GettraceCHKOK() ) {
       DumpName(OS,"");
-      OS<<str<<" ";TopAbs::Print(t,OS);OS<<" : correct"<<endl;
+      OS<<str<<" ";TopAbs::Print(t,OS);OS<<" : correct"<<std::endl;
     }
   }
   if (!chk) debaddss();
@@ -457,26 +457,26 @@ void TopOpeBRepBuild_ShapeSet::DumpCheck(Standard_OStream&,
 void TopOpeBRepBuild_ShapeSet::DumpSS()
 {
 #ifdef DRAW
-  DumpName(cout,"\nDumpSS start ");
+  DumpName(std::cout,"\nDumpSS start ");
   TopTools_ListIteratorOfListOfShape it;
   Standard_Integer i,j,ne;
   TCollection_AsciiString s1("   ");
   InitShapes();
-  cout<<endl<<"#Shapes : ";if (!MoreShapes()) cout<<0;cout<<endl;
+  std::cout<<std::endl<<"#Shapes : ";if (!MoreShapes()) std::cout<<0;std::cout<<std::endl;
   for (i=1;MoreShapes();NextShape(),i++) {
     TCollection_AsciiString ns = SNameori(Shape());
-    cout<<PRODINS<<ns<<"; # "<<i<<" draw"<<endl;
+    std::cout<<PRODINS<<ns<<"; # "<<i<<" draw"<<std::endl;
     DBRep::Set(ns.ToCString(),Shape());
   }
 
   InitStartElements();
-  cout<<"#StartElements : ";if (!MoreStartElements()) cout<<0;cout<<endl;
+  std::cout<<"#StartElements : ";if (!MoreStartElements()) std::cout<<0;std::cout<<std::endl;
   for (i=1;MoreStartElements();NextStartElement(),i++) {
-    cout<<PRODINS<<SNameori(StartElement())<<"; # "<<i<<" draw"<<endl;
+    std::cout<<PRODINS<<SNameori(StartElement())<<"; # "<<i<<" draw"<<std::endl;
   }
 
   InitStartElements();
-  cout<<"#Neighbours of StartElements : ";if (!MoreStartElements()) cout<<0;cout<<endl;
+  std::cout<<"#Neighbours of StartElements : ";if (!MoreStartElements()) std::cout<<0;std::cout<<std::endl;
   for (i=1;MoreStartElements();NextStartElement(),i++) {
     const TopoDS_Shape& e = StartElement();
     TCollection_AsciiString enam = SNameori(e);
@@ -488,12 +488,12 @@ void TopOpeBRepBuild_ShapeSet::DumpSS()
        sne=sne+" "+SNameori(N);
       }
       sne=sne+"; wclick; #draw";
-      cout<<sne<<endl;
+      std::cout<<sne<<std::endl;
     }
   }
 
   Standard_Integer ism,nsm=mySubShapeMap.Extent();
-  cout<<"#Incident shapes : ";if (!nsm) cout<<0;cout<<endl;
+  std::cout<<"#Incident shapes : ";if (!nsm) std::cout<<0;std::cout<<std::endl;
   for (i=1,ism=1;ism<=nsm;ism++,i++) {
     const TopoDS_Shape& v = mySubShapeMap.FindKey(ism);
     const TopTools_ListOfShape& lsv = mySubShapeMap.FindFromIndex(ism);
@@ -506,10 +506,10 @@ void TopOpeBRepBuild_ShapeSet::DumpSS()
        sle=sle+" "+SNameori(e);
       }
       sle=sle+"; wclick; #draw";
-      cout<<sle<<endl;
+      std::cout<<sle<<std::endl;
     } 
   }
-  DumpName(cout,"DumpSS end ");
+  DumpName(std::cout,"DumpSS end ");
 #endif
 }
 
@@ -520,15 +520,15 @@ void TopOpeBRepBuild_ShapeSet::DumpSS()
 void TopOpeBRepBuild_ShapeSet::DumpBB()
 {
 #ifdef DRAW
-  DumpName(cout,"\nDumpBB ");
+  DumpName(std::cout,"\nDumpBB ");
   TopTools_ListIteratorOfListOfShape it;
   Standard_Integer i,j,ne = 0, nb = 1, curr, currloc;
   TCollection_AsciiString s1("   "),stt,enam,nnam,vnam;
   InitShapes();
 
-  cout<<endl<<"#Shapes : (block old) ";if (!MoreShapes()) cout<<0;cout<<endl;
+  std::cout<<std::endl<<"#Shapes : (block old) ";if (!MoreShapes()) std::cout<<0;std::cout<<std::endl;
   for (i=1;MoreShapes();NextShape(),i++, nb++) {
-    cout<<"Block number"<<nb<<" (old)."<<endl;
+    std::cout<<"Block number"<<nb<<" (old)."<<std::endl;
     const TopoDS_Shape& e = Shape();
     TopoDS_Iterator ShapIter(e);
     for(ne = 1;ShapIter.More();ShapIter.Next(), ne++) {
@@ -536,19 +536,19 @@ void TopOpeBRepBuild_ShapeSet::DumpBB()
       ShapeEnumToString(subsha.ShapeType(),stt);
       enam = stt+ne+"ShaB"+nb;
       DBRep::Set(enam.ToCString(),subsha); 
-      cout<<"clear; "<<PRODINS<<enam<<"; #draw"<<endl;
+      std::cout<<"clear; "<<PRODINS<<enam<<"; #draw"<<std::endl;
     }
   }
 
   InitStartElements();
   TopTools_IndexedMapOfShape mos;
-  cout<<"#Elements : (block new) : ";if (!MoreStartElements()) cout<<0;cout<<endl;
+  std::cout<<"#Elements : (block new) : ";if (!MoreStartElements()) std::cout<<0;std::cout<<std::endl;
   mos.Clear();
   for (;MoreStartElements();NextStartElement()) {
     const TopoDS_Shape& e = StartElement();
     curr = mos.Extent();
     if(mos.Add(e) > curr) {
-      cout<<"#Block number"<<nb<<" (new)."<<endl;
+      std::cout<<"#Block number"<<nb<<" (new)."<<std::endl;
       nb++;ne++;
       enam = "";
       enam = enam+"ste"+ne+"newB"+nb;
@@ -577,7 +577,7 @@ void TopOpeBRepBuild_ShapeSet::DumpBB()
            } else {
              enam = enam+"ele"+ne+"newB"+nb;
              DBRep::Set(enam.ToCString(),N); 
-             cout<<PRODINS<<enam<<"; #draw"<<endl;
+             std::cout<<PRODINS<<enam<<"; #draw"<<std::endl;
            }     
          }
        }
index fd88e2f..9576369 100644 (file)
@@ -213,8 +213,8 @@ TopAbs_State TopOpeBRepBuild_ShellFaceClassifier::State()
     TCollection_AsciiString sname("shell_"); sname = home + sname + STATIC_ishell;
     TCollection_AsciiString vname("vertex_"); vname = home + vname + STATIC_ishell;
     BRep_Builder B;TopoDS_Vertex V;B.MakeVertex(V,myPoint3d,tol3d);
-    cout<<"TopOpeBRepBuild_ShellFaceClassifier : write shell "<<sname;
-    cout<<" vertex "<<vname<<endl;
+    std::cout<<"TopOpeBRepBuild_ShellFaceClassifier : write shell "<<sname;
+    std::cout<<" vertex "<<vname<<std::endl;
     BRepTools::Write(myShell,sname.ToCString());
     BRepTools::Write(V,vname.ToCString());
   }
index 808c2ab..2696127 100644 (file)
@@ -66,12 +66,12 @@ TopOpeBRepBuild_ShapeSet(TopAbs_EDGE)
     TopOpeBRepBuild_Builder* pB = ((TopOpeBRepBuild_Builder*)((void*)A));
     myDEBNumber = pB->GdumpSHASETindex();
     Standard_Integer iS; Standard_Boolean tSPS = pB->GtraceSPS(S,iS);
-    if(tSPS){cout<<"creation SFS "<<myDEBNumber<<" on ";}
-    if(tSPS){pB->GdumpSHA(S,NULL);cout<<endl;}
+    if(tSPS){std::cout<<"creation SFS "<<myDEBNumber<<" on ";}
+    if(tSPS){pB->GdumpSHA(S,NULL);std::cout<<std::endl;}
   }
 
   if (TopOpeBRepBuild_GettraceCHK() && !myCheckShape) {
-    DumpName(cout,"no checkshape in creation of ");cout<<endl;
+    DumpName(std::cout,"no checkshape in creation of ");std::cout<<std::endl;
   }
 #endif
 }
index 4ee0bba..ecd2bf1 100644 (file)
@@ -329,7 +329,7 @@ const Standard_Real PAR_T = 0.43213918;
         aSubsh = aSubshMap(i);
     if (aSubsh.IsNull()) {
 #ifdef OCCT_DEBUG
-      cout<<"FindStateThroughVertex: warning: all vertices are avoided"<<endl;
+      std::cout<<"FindStateThroughVertex: warning: all vertices are avoided"<<std::endl;
 #endif
       return TopAbs_UNKNOWN;    // failure
     }
@@ -691,7 +691,7 @@ void TopOpeBRepBuild_Tools::UpdateEdgeOnPeriodicalFace(const TopoDS_Edge& aEdgeT
   Handle(Geom2d_Curve) cc = BRep_Tool::CurveOnSurface(newE, tFace, fc, lc);
 
   if(!cc.IsNull()) {
-    //cout << "Pcurves exist" << endl;
+    //std::cout << "Pcurves exist" << std::endl;
     return;
   }
 
index 96a391c..649ec04 100644 (file)
@@ -71,11 +71,11 @@ TopOpeBRepBuild_ShapeSet(TopAbs_VERTEX)
   if (LOCAL_PBUILDER_DEB != NULL) {
     myDEBNumber = LOCAL_PBUILDER_DEB->GdumpSHASETindex();
     Standard_Integer iF; Standard_Boolean tSPS = LOCAL_PBUILDER_DEB->GtraceSPS(F,iF);
-    if(tSPS){DumpName(cout,"creation ");cout<<" on ";}
-    if(tSPS){LOCAL_PBUILDER_DEB->GdumpSHA(F,NULL);cout<<endl;}
+    if(tSPS){DumpName(std::cout,"creation ");std::cout<<" on ";}
+    if(tSPS){LOCAL_PBUILDER_DEB->GdumpSHA(F,NULL);std::cout<<std::endl;}
   }
   if (TopOpeBRepBuild_GettraceCHK() && !myCheckShape) {
-    DumpName(cout,"no checkshape in creation of ");cout<<endl;
+    DumpName(std::cout,"no checkshape in creation of ");std::cout<<std::endl;
   }
 #endif
 }
@@ -99,8 +99,8 @@ void TopOpeBRepBuild_WireEdgeSet::AddShape(const TopoDS_Shape& S)
   
 #ifdef DRAW
   if (TopOpeBRepBuild_GettraceCHK() && CheckShape()) {
-    if (!tocheck) DumpCheck(cout," AddShape WIRE on closed face",S,chk);
-    else DumpCheck(cout," AddShape redefined",S,chk);
+    if (!tocheck) DumpCheck(std::cout," AddShape WIRE on closed face",S,chk);
+    else DumpCheck(std::cout," AddShape redefined",S,chk);
   }
 #endif
 
@@ -165,7 +165,7 @@ void  TopOpeBRepBuild_WireEdgeSet::InitNeighbours(const TopoDS_Shape& E)
     TCollection_AsciiString str("#**** InitNeighbours");
     if (tsh) str = str + " on WES edge " + SNameori(E);
     str = str + " #****";
-    cout<<endl<<str<<endl;
+    std::cout<<std::endl<<str<<std::endl;
     if (tsh) debwesclo(ista);
   }
 #endif
@@ -217,7 +217,7 @@ const TopTools_ListOfShape & TopOpeBRepBuild_WireEdgeSet::MakeNeighboursList(con
   Standard_Boolean traceSS = TopOpeBRepBuild_GettraceSS();
   if ( traceSS ) {
     TCollection_AsciiString svel = SNameVEL(V,E,l);
-    cout<<PRODINS<<svel<<"; #---- WES MNL"<<endl;
+    std::cout<<PRODINS<<svel<<"; #---- WES MNL"<<std::endl;
   }
 #endif
 
@@ -239,8 +239,8 @@ const TopTools_ListOfShape & TopOpeBRepBuild_WireEdgeSet::MakeNeighboursList(con
        if ( traceSS ) {
          Standard_Integer rang = myCurrentShapeNeighbours.Extent();
          const TopoDS_Edge& EE = TopoDS::Edge(curn);
-         cout <<"+ EE "<<iapp<<" , rang "<<rang<<" ";
-         TCollection_AsciiString svee=SNameVEE(V,E,EE);cout<<svee<<endl;
+         std::cout <<"+ EE "<<iapp<<" , rang "<<rang<<" ";
+         TCollection_AsciiString svee=SNameVEE(V,E,EE);std::cout<<svee<<std::endl;
        }
 #endif
       }
@@ -249,9 +249,9 @@ const TopTools_ListOfShape & TopOpeBRepBuild_WireEdgeSet::MakeNeighboursList(con
     Standard_Integer newn = NbClosingShapes(myCurrentShapeNeighbours);
 #ifdef DRAW
     if ( traceSS ) {
-      cout<<"#~~~~connexes apres VertexConnectsEdgesClosing : ";
+      std::cout<<"#~~~~connexes apres VertexConnectsEdgesClosing : ";
       TCollection_AsciiString svel=SNameVEL(V,E,myCurrentShapeNeighbours);
-      cout<<svel<<endl;
+      std::cout<<svel<<std::endl;
     }
 #endif
 
@@ -307,22 +307,22 @@ const TopTools_ListOfShape & TopOpeBRepBuild_WireEdgeSet::MakeNeighboursList(con
 
 #ifdef DRAW
        if ( traceSS ) {
-         cout<<"#-------- rang "<<rang<<endl;
-         TCollection_AsciiString svee=SNameVEE(V,E,EE);cout<<svee<<endl;
+         std::cout<<"#-------- rang "<<rang<<std::endl;
+         TCollection_AsciiString svee=SNameVEE(V,E,EE);std::cout<<svee<<std::endl;
          
-         cout<<"  fiE,laE : "<<fiE<<" "<<laE<<endl;
-         cout<<" parE "<<parE<<endl;
-         cout<<"  puE,pvE "<<pE.X()<<" "<<pE.Y();
-         cout<<" d1uE,d1vE "<<d1E.X()<<" "<<d1E.Y()<<endl;
-         cout<<endl;
-         cout<<"  fiEE,laEE : "<<fiEE<<" "<<laEE<<endl;
-         cout<<" parEE "<<parEE<<endl;
-         cout<<"  puEE,pvEE "<<pEE.X()<<" "<<pEE.Y();
-         cout<<" d1uEE,d1vEE "<<d1EE.X()<<" "<<d1EE.Y()<<endl;
-         cout<<"  --> cross  "<<cross<<endl;
-
-         if ( t2 ) cout<<" t2 --> on garde EE"<<endl<<endl;
-         else    cout<<" t2 --> on vire EE"<<endl<<endl;
+         std::cout<<"  fiE,laE : "<<fiE<<" "<<laE<<std::endl;
+         std::cout<<" parE "<<parE<<std::endl;
+         std::cout<<"  puE,pvE "<<pE.X()<<" "<<pE.Y();
+         std::cout<<" d1uE,d1vE "<<d1E.X()<<" "<<d1E.Y()<<std::endl;
+         std::cout<<std::endl;
+         std::cout<<"  fiEE,laEE : "<<fiEE<<" "<<laEE<<std::endl;
+         std::cout<<" parEE "<<parEE<<std::endl;
+         std::cout<<"  puEE,pvEE "<<pEE.X()<<" "<<pEE.Y();
+         std::cout<<" d1uEE,d1vEE "<<d1EE.X()<<" "<<d1EE.Y()<<std::endl;
+         std::cout<<"  --> cross  "<<cross<<std::endl;
+
+         if ( t2 ) std::cout<<" t2 --> on garde EE"<<std::endl<<std::endl;
+         else    std::cout<<" t2 --> on vire EE"<<std::endl<<std::endl;
        }
 #endif
        
@@ -338,8 +338,8 @@ const TopTools_ListOfShape & TopOpeBRepBuild_WireEdgeSet::MakeNeighboursList(con
 
 #ifdef DRAW
       if ( traceSS ) {
-       cout<<"#~~~~connexes apres filtre geom : ";
-       TCollection_AsciiString svel=SNameVEL(Varg,Earg,myCurrentShapeNeighbours);cout<<svel<<endl;
+       std::cout<<"#~~~~connexes apres filtre geom : ";
+       TCollection_AsciiString svel=SNameVEL(Varg,Earg,myCurrentShapeNeighbours);std::cout<<svel<<std::endl;
       }
 #endif
 
index 4cd66bf..32e54b6 100644 (file)
@@ -51,7 +51,7 @@
 #ifdef OCCT_DEBUG
 Standard_EXPORT void debfctwes(const Standard_Integer /*i*/) {}
 Standard_EXPORT void debfctwesmess(const Standard_Integer i,const TCollection_AsciiString& s = "")
-{cout<<"+ + + debfctwes "<<s<<"F"<<i<<endl;debfctwes(i);}
+{std::cout<<"+ + + debfctwes "<<s<<"F"<<i<<std::endl;debfctwes(i);}
 extern void debaddpwes(const Standard_Integer iFOR,const TopAbs_State TB1,const Standard_Integer iEG,const TopAbs_Orientation neworiE,
                        const TopOpeBRepBuild_PBuilder& PB,const TopOpeBRepBuild_PWireEdgeSet& PWES,const TCollection_AsciiString& str1,const TCollection_AsciiString& str2);
 #endif
@@ -77,7 +77,7 @@ void TopOpeBRepBuild_Builder::GFillCurveTopologyWES(const TopoDS_Shape& F1,const
 #ifdef OCCT_DEBUG
   Standard_Integer iF; Standard_Boolean tSPS = GtraceSPS(F1,iF);
   if(tSPS) GdumpSHASTA(iF,TB1,WES,"--- GFillCurveTopologyWES");
-  if(tSPS) {cout<<" ShapeInterf ";TopAbs::Print(ShapeInterf,cout);cout<<endl;}
+  if(tSPS) {std::cout<<" ShapeInterf ";TopAbs::Print(ShapeInterf,std::cout);std::cout<<std::endl;}
   if(tSPS) {debfctwesmess(iF);}
 #endif
   
@@ -164,9 +164,9 @@ void TopOpeBRepBuild_Builder::GFillCurveTopologyWES(const TopOpeBRepDS_CurveIter
 #ifdef OCCT_DEBUG
   Standard_Boolean tSPS = GtraceSPS(iWESF);
   if(tSPS){
-    cout<<"ifil : "<<ifil<<" iref : "<<iref<<" iwes : "<<iWESF<<endl;
-    cout<<"face "<<ifil<<" is ";TopOpeBRepDS::Print(Conf,cout);cout<<endl;
-    cout<<"ComOfCut "<<ComOfCut<<endl;
+    std::cout<<"ifil : "<<ifil<<" iref : "<<iref<<" iwes : "<<iWESF<<std::endl;
+    std::cout<<"face "<<ifil<<" is ";TopOpeBRepDS::Print(Conf,std::cout);std::cout<<std::endl;
+    std::cout<<"ComOfCut "<<ComOfCut<<std::endl;
     debfctwesmess(iWESF);
   }
 #endif
@@ -211,7 +211,7 @@ void TopOpeBRepBuild_Builder::GFillCurveTopologyWES(const TopOpeBRepDS_CurveIter
 
 #ifdef OCCT_DEBUG
       EhasPConWESF = FC2D_HasCurveOnSurface(E,WESF);
-      if (!EhasPConWESF) cout<<"TopOpeBRepBuild_Builder::GFillCurveTopologyWES : Null PCurve on F"<<iWESF<<endl;
+      if (!EhasPConWESF) std::cout<<"TopOpeBRepBuild_Builder::GFillCurveTopologyWES : Null PCurve on F"<<iWESF<<std::endl;
 #endif
     }
 
index 21e1082..69fcde8 100644 (file)
@@ -52,8 +52,8 @@
 #ifdef OCCT_DEBUG
 #define DEBSHASET(sarg,meth,shaset,str) TCollection_AsciiString sarg((meth));(sarg)=(sarg)+(shaset).DEBNumber()+(str);
 Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOFUFA();
-Standard_EXPORT void debffsfs(const Standard_Integer i){cout<<"+++ debffsfs "<<i<<endl;}
-Standard_EXPORT void debffflo(const Standard_Integer i){cout<<"+++ debffflo "<<i<<endl;}
+Standard_EXPORT void debffsfs(const Standard_Integer i){std::cout<<"+++ debffsfs "<<i<<std::endl;}
+Standard_EXPORT void debffflo(const Standard_Integer i){std::cout<<"+++ debffflo "<<i<<std::endl;}
 #endif
 
 static Standard_Boolean STATIC_motheropedef = Standard_False; static TopOpeBRepBuild_GTopo STATIC_Gmotherope;
@@ -189,7 +189,7 @@ void TopOpeBRepBuild_Builder::GFillFaceSFS(const TopoDS_Shape& FOR,const TopTool
   
 #ifdef OCCT_DEBUG
   Standard_Integer iF; Standard_Boolean tSPS = GtraceSPS(FOR,iF);
-  if(tSPS)cout<<endl;
+  if(tSPS)std::cout<<std::endl;
 #endif
   const TopOpeBRepDS_DataStructure& BDS = myDataStructure->DS();
   Standard_Boolean tosplit = GToSplit(FOR,TB1);
@@ -202,7 +202,7 @@ void TopOpeBRepBuild_Builder::GFillFaceSFS(const TopoDS_Shape& FOR,const TopTool
 #ifdef OCCT_DEBUG
   if(tSPS){
     GdumpSHASTA(FOR,TB1,"--- GFillFaceSFS START ");
-    cout<<" tosplit "<<tosplit<<" tomerge "<<tomerge<<endl;
+    std::cout<<" tosplit "<<tosplit<<" tomerge "<<tomerge<<std::endl;
     debffsfs(iF);
   }
 #endif
@@ -230,7 +230,7 @@ void TopOpeBRepBuild_Builder::GFillFaceSFS(const TopoDS_Shape& FOR,const TopTool
 #ifdef OCCT_DEBUG
       if(tSPS) {
        GdumpSHASTA(FOR,TB1,"[[[[[[[[[[[[[[[[[[[[[[[[[[ GFillFaceSFS makemerge START ");
-       cout<<endl;
+       std::cout<<std::endl;
       }
 #endif
 
@@ -327,13 +327,13 @@ void TopOpeBRepBuild_Builder::GFillFaceSFS(const TopoDS_Shape& FOR,const TopTool
 #ifdef OCCT_DEBUG
        if(tSPS){
          TopAbs_State TB11,TB21; GM.StatesON(TB11,TB21);
-         cout<<endl;
-         cout <<"@@@@"<<endl;
-         cout <<"@@@@@@@@ partie 1 : ";TopAbs::Print(TB11,cout);cout<<" ";TopAbs::Print(TB21,cout);cout<<endl;
-         cout <<"@@@@"<<endl;
+         std::cout<<std::endl;
+         std::cout <<"@@@@"<<std::endl;
+         std::cout <<"@@@@@@@@ partie 1 : ";TopAbs::Print(TB11,std::cout);std::cout<<" ";TopAbs::Print(TB21,std::cout);std::cout<<std::endl;
+         std::cout <<"@@@@"<<std::endl;
          GdumpSAMDOM(LF1, (char *) "LF1 (LFSO1) : ");
          GdumpSAMDOM(LF2, (char *) "LF2 (LFDO2) : ");
-         cout<<endl;
+         std::cout<<std::endl;
        }
 #endif
        GLOBAL_classifysplitedge = Standard_True;
@@ -386,13 +386,13 @@ void TopOpeBRepBuild_Builder::GFillFaceSFS(const TopoDS_Shape& FOR,const TopTool
 #ifdef OCCT_DEBUG
          if(tSPS){
            TopAbs_State TB12,TB22; GM.StatesON(TB12,TB22);
-           cout<<endl;
-           cout <<"@@@@"<<endl;
-           cout <<"@@@@@@@@ partie 2 : ";TopAbs::Print(TB12,cout);cout<<" ";TopAbs::Print(TB22,cout);cout<<endl;
-           cout <<"@@@@"<<endl;
+           std::cout<<std::endl;
+           std::cout <<"@@@@"<<std::endl;
+           std::cout <<"@@@@@@@@ partie 2 : ";TopAbs::Print(TB12,std::cout);std::cout<<" ";TopAbs::Print(TB22,std::cout);std::cout<<std::endl;
+           std::cout <<"@@@@"<<std::endl;
            GdumpSAMDOM(LF1, (char *) "LF1 (LFSO1) : ");
            GdumpSAMDOM(LF2, (char *) "LF2 (LFDO2) : ");
-           cout<<endl;
+           std::cout<<std::endl;
          }
 #endif
          GLOBAL_classifysplitedge = Standard_True;
@@ -414,7 +414,7 @@ void TopOpeBRepBuild_Builder::GFillFaceSFS(const TopoDS_Shape& FOR,const TopTool
 #ifdef OCCT_DEBUG
       if(tSPS) { 
        GdumpSHASTA(FOR,TB1,"]]]]]]]]]]]]]]]]]]]]]]]]]] GFillFaceSFS makemerge END ");
-       cout<<endl;
+       std::cout<<std::endl;
       }
 #endif
 
@@ -454,8 +454,8 @@ void TopOpeBRepBuild_Builder::GFillFaceSFS(const TopoDS_Shape& FOR,const TopTool
          if(tSPS){
            DEBSHASET(ss,"--- FillFaceSFS apres fufa",SFS," AddStartElement SFS+ face ");  
            GdumpSHA(flfr2,(Standard_Address)ss.ToCString());
-           cout<<" ";TopAbs::Print(TB1,cout)<<" : 1 face ";
-           TopAbs::Print(flfr2.Orientation(),cout); cout<<endl;
+           std::cout<<" ";TopAbs::Print(TB1,std::cout)<<" : 1 face ";
+           TopAbs::Print(flfr2.Orientation(),std::cout); std::cout<<std::endl;
          }
 #endif
          SFS.AddStartElement(flfr2);
@@ -477,7 +477,7 @@ void TopOpeBRepBuild_Builder::GFillFaceSFS(const TopoDS_Shape& FOR,const TopTool
   
 #ifdef OCCT_DEBUG
   if(tSPS){
-    GdumpSHASTA(FOR,TB1,"--- GFillFaceSFS END ");cout<<endl;
+    GdumpSHASTA(FOR,TB1,"--- GFillFaceSFS END ");std::cout<<std::endl;
   }
 #endif
  
index 53d68bb..6d7152a 100644 (file)
@@ -48,7 +48,7 @@
 #ifdef OCCT_DEBUG
 Standard_EXPORT void debfctwesmess(const Standard_Integer i,const TCollection_AsciiString& s = "");
 Standard_EXPORT void debffwesON(const Standard_Integer i);
-Standard_EXPORT void debffwesk(const Standard_Integer i) {cout<<"++ debffwesk "<<i<<endl;}
+Standard_EXPORT void debffwesk(const Standard_Integer i) {std::cout<<"++ debffwesk "<<i<<std::endl;}
 #endif
 
 Standard_Boolean TopOpeBRepBuild_FUN_aresamegeom(const TopoDS_Shape& S1,const TopoDS_Shape& S2);
@@ -82,7 +82,7 @@ void TopOpeBRepBuild_Builder::GFillFacesWESK(const TopTools_ListOfShape& LS1,con
 
 #ifdef OCCT_DEBUG
   Standard_Boolean tSPS = GtraceSPS(F1,iF1);
-  if(tSPS) cout<<"\n%%%%%%%%%%%%% K = "<<Kfill<<" %%%%%%%%%%%%% ";
+  if(tSPS) std::cout<<"\n%%%%%%%%%%%%% K = "<<Kfill<<" %%%%%%%%%%%%% ";
   if(tSPS) GdumpSHASTA(iF1,TB1,WES,"GFillFacesWESK","myFaceReference");
   if(tSPS) debffwesk(iF1);
 #endif
@@ -99,11 +99,11 @@ void TopOpeBRepBuild_Builder::GFillFacesWESK(const TopTools_ListOfShape& LS1,con
 
 #ifdef OCCT_DEBUG
   if(tSPS){
-    cout<<"\n^^^^^^^^ GFillFacesWESK : traitement de 1/2";
+    std::cout<<"\n^^^^^^^^ GFillFacesWESK : traitement de 1/2";
     TopAbs_State TB11,TB21; G.StatesON(TB11,TB21);
-    cout<<" TB = ";TopAbs::Print(TB,cout); cout<<" ";
-    cout<<"(TB1 = ";TopAbs::Print(TB11,cout);cout<<",";
-    cout<<" TB2 = ";TopAbs::Print(TB21,cout);cout<<")\n\n";
+    std::cout<<" TB = ";TopAbs::Print(TB,std::cout); std::cout<<" ";
+    std::cout<<"(TB1 = ";TopAbs::Print(TB11,std::cout);std::cout<<",";
+    std::cout<<" TB2 = ";TopAbs::Print(TB21,std::cout);std::cout<<")\n\n";
   }
 #endif
 
@@ -171,11 +171,11 @@ void TopOpeBRepBuild_Builder::GFillFacesWESK(const TopTools_ListOfShape& LS1,con
 
 #ifdef OCCT_DEBUG
   if(tSPS){
-    cout<<"\n^^^^^^^^ GFillFacesWESK : traitement de 2/1";
+    std::cout<<"\n^^^^^^^^ GFillFacesWESK : traitement de 2/1";
     TopAbs_State TB12,TB22; G.StatesON(TB12,TB22);
-    cout<<" TB = ";TopAbs::Print(TB,cout); cout<<" ";
-    cout<<"(TB1 = ";TopAbs::Print(TB12,cout);cout<<",";
-    cout<<" TB2 = ";TopAbs::Print(TB22,cout);cout<<")\n\n";
+    std::cout<<" TB = ";TopAbs::Print(TB,std::cout); std::cout<<" ";
+    std::cout<<"(TB1 = ";TopAbs::Print(TB12,std::cout);std::cout<<",";
+    std::cout<<" TB2 = ";TopAbs::Print(TB22,std::cout);std::cout<<")\n\n";
   }
 #endif
 
index d898fa0..421a32c 100644 (file)
@@ -45,7 +45,7 @@ extern Standard_Integer GLOBAL_iexE;
 extern Standard_Integer GLOBAL_iexF;
 Standard_Boolean STATIC_trace_iexE = Standard_False;
 Standard_Boolean STATIC_trace_iexF = Standard_False;
-Standard_EXPORT void debkeep(const Standard_Integer i) {cout<<"++ debkeep "<<i<<endl;}
+Standard_EXPORT void debkeep(const Standard_Integer i) {std::cout<<"++ debkeep "<<i<<std::endl;}
 #endif
 
 //=======================================================================
@@ -97,12 +97,12 @@ Standard_Boolean TopOpeBRepBuild_Builder::GKeepShape1
   Standard_Boolean tr = tSPS || tSPSface || tSPSsoli;
   if(tr){
     if (tSPS) GdumpSHA(S);
-    else if (tSPSface) cout<<"EDGE exploration "<<GLOBAL_iexE;
-    else if (tSPSsoli) cout<<"FACE exploration "<<GLOBAL_iexF;
-    if(keep)cout<<" is kept";else cout<<" is NOT kept";
-    cout<<" ";TopAbs::Print(TB,cout);cout<<" / ";
-    if(LSclass.IsEmpty())cout<<"empty list";else GdumpLS(LSclass);cout<<endl;
-    cout.flush();
+    else if (tSPSface) std::cout<<"EDGE exploration "<<GLOBAL_iexE;
+    else if (tSPSsoli) std::cout<<"FACE exploration "<<GLOBAL_iexF;
+    if(keep)std::cout<<" is kept";else std::cout<<" is NOT kept";
+    std::cout<<" ";TopAbs::Print(TB,std::cout);std::cout<<" / ";
+    if(LSclass.IsEmpty())std::cout<<"empty list";else GdumpLS(LSclass);std::cout<<std::endl;
+    std::cout.flush();
   }
 #endif
   
@@ -146,11 +146,11 @@ void TopOpeBRepBuild_Builder::GKeepShapes
     
 #ifdef OCCT_DEBUG
     TopAbs_ShapeEnum t = SL.ShapeType();
-    if(tSPS){cout<<"GKeepShapes : ";}
-    if(tSPS){cout<<"new ";TopAbs::Print(t,cout);cout<<" "<<++n;}
-    if(tSPS){cout<<" from ";GdumpSHA(S);if(keep)cout<<" is kept";else cout<<" is NOT kept";}
-    if(tSPS){cout<<" ";TopAbs::Print(TB,cout);cout<<" / ";}
-    if(tSPS){if(LSclass.IsEmpty())cout<<"empty list";else GdumpLS(LSclass);cout<<endl;}
+    if(tSPS){std::cout<<"GKeepShapes : ";}
+    if(tSPS){std::cout<<"new ";TopAbs::Print(t,std::cout);std::cout<<" "<<++n;}
+    if(tSPS){std::cout<<" from ";GdumpSHA(S);if(keep)std::cout<<" is kept";else std::cout<<" is NOT kept";}
+    if(tSPS){std::cout<<" ";TopAbs::Print(TB,std::cout);std::cout<<" / ";}
+    if(tSPS){if(LSclass.IsEmpty())std::cout<<"empty list";else GdumpLS(LSclass);std::cout<<std::endl;}
 #endif
     
     if (keep) Lou.Append(SL);
index 86bd024..a9cc3a1 100644 (file)
@@ -107,19 +107,19 @@ void TopOpeBRepBuild_Builder::MergeKPartiskole()
   
 #ifdef OCCT_DEBUG
   if (TKPB) {
-    cout<<""<<endl;
+    std::cout<<""<<std::endl;
     for (; itm1.More();itm1.Next()) {
       const TopoDS_Shape& f = itm1.Key();
       Standard_Integer fi = myDataStructure->Shape(f);
-      cout<<"face "<<fi<<" : ";
+      std::cout<<"face "<<fi<<" : ";
       const TopTools_ListOfShape& l = itm1.Value();
       TopTools_ListIteratorOfListOfShape it(l);
       for(; it.More(); it.Next()) {
        const TopoDS_Shape& ff = it.Value();      
        Standard_Integer ffi = myDataStructure->Shape(ff);
-       cout<<ffi<<" ";
+       std::cout<<ffi<<" ";
       }
-      cout<<endl;
+      std::cout<<std::endl;
     }
     itm1.Initialize(myKPMAPf1f2);
   }
@@ -152,7 +152,7 @@ void TopOpeBRepBuild_Builder::MergeKPartiskole()
   if(tSPS || TKPB) { 
 //    Standard_Integer iOU = myDataStructure->Shape(*pfOU);
 //    Standard_Integer iIN = myDataStructure->Shape(*pfIN);
-    GdumpSHA(*pfOU, (char *) "MergeKPartiskole pfOU ");cout<<endl;
+    GdumpSHA(*pfOU, (char *) "MergeKPartiskole pfOU ");std::cout<<std::endl;
     GdumpSAMDOM(LFIN, (char *) "LFIN : ");
     debiskole();
   }
@@ -211,8 +211,8 @@ void TopOpeBRepBuild_Builder::MergeKPartiskole()
   ChangeMerged(she2,myState2);
   
 #ifdef OCCT_DEBUG
-  if (TKPB) { cout<<"stsol1 ";TopAbs::Print(stsol1,cout); cout<<" "; }
-  if (TKPB) { cout<<"stsol2 ";TopAbs::Print(stsol2,cout); cout<<endl; }
+  if (TKPB) { std::cout<<"stsol1 ";TopAbs::Print(stsol1,std::cout); std::cout<<" "; }
+  if (TKPB) { std::cout<<"stsol2 ";TopAbs::Print(stsol2,std::cout); std::cout<<std::endl; }
   debiskole();
 #endif
   
@@ -353,7 +353,7 @@ void TopOpeBRepBuild_Builder::MergeKPartiskole()
   
   else {
 #ifdef OCCT_DEBUG
-    cout<<"MergeKPartiskole : ires = "<<ires<<endl;
+    std::cout<<"MergeKPartiskole : ires = "<<ires<<std::endl;
 #endif
   }
   
@@ -472,7 +472,7 @@ Standard_Integer TopOpeBRepBuild_Builder::KPiskole()
 #ifdef OCCT_DEBUG
     Standard_Integer iF1; Standard_Boolean tSPS1 = GtraceSPS(f1,iF1);
     if(tSPS1) { 
-      GdumpSHA(f1, (char *) "KPiskole ");cout<<endl;
+      GdumpSHA(f1, (char *) "KPiskole ");std::cout<<std::endl;
       GdumpSAMDOM(lf2, (char *) "lf2 : ");
     }
 #endif
@@ -590,7 +590,7 @@ void TopOpeBRepBuild_Builder::KPiskoleanalyse(const TopAbs_State Stfac1, const T
   
 #ifdef OCCT_DEBUG
   Standard_Boolean TKPB = TopOpeBRepBuild_GettraceKPB();
-  if (TKPB) cout<<"ires = "<<ires<<" icla1 "<<icla1<<" icla2 "<<icla2<<endl;
+  if (TKPB) std::cout<<"ires = "<<ires<<" icla1 "<<icla1<<" icla2 "<<icla2<<std::endl;
 #endif
 } // TopOpeBRepBuild_Builder::KPiskoleanalyse
 
@@ -612,7 +612,7 @@ Standard_EXPORT void FUNKP_KPmakefaces(const TopOpeBRepBuild_Builder& BU,
   
 #ifdef OCCT_DEBUG
   Standard_Integer iF1; Standard_Boolean tSPS = BU.GtraceSPS(Fac1,iF1);
-  if(tSPS) { BU.GdumpSHA(Fac1, (char *) "KPmakeFace ");cout<<endl; }
+  if(tSPS) { BU.GdumpSHA(Fac1, (char *) "KPmakeFace ");std::cout<<std::endl; }
 #endif
   
   if (Stfac1 == TopAbs_OUT) {
@@ -699,7 +699,7 @@ TopoDS_Shape TopOpeBRepBuild_Builder::KPmakeface(const TopoDS_Shape& Fac1,
   Standard_Boolean tSPS = GtraceSPS(Fac1,iF1);
   if(tSPS) {
     GdumpSHA(Fac1, (char *) "KPmakeFace ");
-    cout<<endl;
+    std::cout<<std::endl;
   }
 #endif
   
@@ -826,12 +826,12 @@ Standard_Boolean TopOpeBRepBuild_Builder::KPiskolesh(const TopoDS_Shape& Sarg,
 #ifdef OCCT_DEBUG
     Standard_Integer isol = myDataStructure->Shape(Sarg);
     Standard_Integer ifac = myDataStructure->Shape(fac); 
-    if(TKPB){cout<<"isol "<<isol<<endl;}
-    if(TKPB){cout<<"nfhsd  "<<nfhsd<<endl;}
-    if(TKPB){cout<<"ifac "<<ifac<<endl;}
-    if(TKPB){cout<<"isplan "<<isplan<<endl;}
-    if(TKPB){cout<<"nehg "<<nehg<<endl;}
-    if(TKPB){cout<<endl;}
+    if(TKPB){std::cout<<"isol "<<isol<<std::endl;}
+    if(TKPB){std::cout<<"nfhsd  "<<nfhsd<<std::endl;}
+    if(TKPB){std::cout<<"ifac "<<ifac<<std::endl;}
+    if(TKPB){std::cout<<"isplan "<<isplan<<std::endl;}
+    if(TKPB){std::cout<<"nehg "<<nehg<<std::endl;}
+    if(TKPB){std::cout<<std::endl;}
 #endif
   }
   
index 9d35e42..850e214 100644 (file)
@@ -47,7 +47,7 @@
 
 #ifdef OCCT_DEBUG
 extern void debfillp(const Standard_Integer i);
-extern void debedbu(const Standard_Integer i) {cout<<"++ debedbu "<<i<<endl;}
+extern void debedbu(const Standard_Integer i) {std::cout<<"++ debedbu "<<i<<std::endl;}
 #endif
 
 #ifdef DRAW
@@ -73,7 +73,7 @@ void TopOpeBRepBuild_Builder::GPVSMakeEdges
   PVS.InitLoop();
   Standard_Boolean novertex = ( ! PVS.MoreLoop() );
 #ifdef OCCT_DEBUG
-  if(tSPS&&novertex)cout<<"#--- GPVSMakeEdges : no vertex from edge "<<iE<<endl;
+  if(tSPS&&novertex)std::cout<<"#--- GPVSMakeEdges : no vertex from edge "<<iE<<std::endl;
 #endif
   if (novertex) return;
   
@@ -93,7 +93,7 @@ void TopOpeBRepBuild_Builder::GEDBUMakeEdges
 {
 #ifdef OCCT_DEBUG
   Standard_Integer iE; Standard_Boolean tSPS = GtraceSPS(EF,iE);
-  if(tSPS){cout<<endl;GdumpSHA(EF, (char *) "#--- GEDBUMakeEdges ");cout<<endl;}
+  if(tSPS){std::cout<<std::endl;GdumpSHA(EF, (char *) "#--- GEDBUMakeEdges ");std::cout<<std::endl;}
   if(tSPS){GdumpEDBU(EDBU);}
   if(tSPS){debedbu(iE);}
 #endif
index 16181a6..ee5a444 100644 (file)
@@ -66,12 +66,12 @@ extern Standard_Boolean TopOpeBRepBuild_GetcontextNOCORRISO();
 extern Standard_Boolean TopOpeBRepBuild_GettraceCHK();
 #define DEBSHASET(sarg,meth,shaset,str) \
 TCollection_AsciiString sarg((meth));(sarg)=(sarg)+(shaset).DEBNumber()+(str);
-Standard_EXPORT void debgfabu(const Standard_Integer i) {cout<<"++ debgfabu "<<i<<endl;}
-Standard_EXPORT void debwesmf(const Standard_Integer i) {cout<<"++ debwesmf "<<i<<endl;}
+Standard_EXPORT void debgfabu(const Standard_Integer i) {std::cout<<"++ debgfabu "<<i<<std::endl;}
+Standard_EXPORT void debwesmf(const Standard_Integer i) {std::cout<<"++ debwesmf "<<i<<std::endl;}
 Standard_EXPORT Standard_Boolean DEBpurclo = Standard_False;
 void debpurclo() {}
-void debpurclomess(Standard_Integer i){cout<<"++ debpurclo "<<i<<endl;debpurclo();}
-Standard_EXPORT void debcorriso(const Standard_Integer i) {cout<<"++ debcorriso "<<i<<endl;}
+void debpurclomess(Standard_Integer i){std::cout<<"++ debpurclo "<<i<<std::endl;debpurclo();}
+Standard_EXPORT void debcorriso(const Standard_Integer i) {std::cout<<"++ debcorriso "<<i<<std::endl;}
 extern void* GFABUMAKEFACEPWES_DEB;
 #endif
 
@@ -83,7 +83,7 @@ extern void* GFABUMAKEFACEPWES_DEB;
 Standard_EXPORT Standard_Boolean FUN_tool_ClosedW(const TopoDS_Wire& W);
 // Unused :
 /*#ifdef OCCT_DEBUG
-static void FUN_Raise(){cout<<"--------- ERROR in GWESMakeFaces ---------"<<endl;}
+static void FUN_Raise(){std::cout<<"--------- ERROR in GWESMakeFaces ---------"<<std::endl;}
 #endif*/
 
 //=======================================================================
@@ -96,7 +96,7 @@ void TopOpeBRepBuild_Builder::GWESMakeFaces
 #ifdef OCCT_DEBUG
   Standard_Integer iF; Standard_Boolean tSPS = GtraceSPS(FF,iF);
   DEBSHASET(s,"#--- GWESMakeFaces ",WES," ");
-  if(tSPS){ GdumpSHA(FF,(Standard_Address)s.ToCString());cout<<endl; WES.DumpSS();}
+  if(tSPS){ GdumpSHA(FF,(Standard_Address)s.ToCString());std::cout<<std::endl; WES.DumpSS();}
   if(tSPS){debwesmf(iF);}
   GFABUMAKEFACEPWES_DEB = (void*)&WES;
 #endif
@@ -192,13 +192,13 @@ void TopOpeBRepBuild_Builder::GWESMakeFaces
 
 #ifdef DRAW
     if (tSPS) {
-      cout<<endl<<"#<< AVANT PurgeClosingEdges "<<endl; 
+      std::cout<<std::endl<<"#<< AVANT PurgeClosingEdges "<<std::endl; 
       GdumpFABU(FABU);
       TopTools_ListOfShape dLOF;TopTools_DataMapOfShapeInteger dMWisOld;
       GFABUMakeFaces(FF,FABU,dLOF,dMWisOld);
       TopTools_ListIteratorOfListOfShape X(dLOF); for (Standard_Integer i=1;X.More();X.Next(),i++) {
        TCollection_AsciiString ss("purclo");ss=ss+i;DBRep::Set(ss.ToCString(),X.Value());
-       cout<<"... face "<<ss<<endl;
+       std::cout<<"... face "<<ss<<std::endl;
       }
       debpurclomess(iF);
       DEBpurclo = Standard_True;
@@ -334,7 +334,7 @@ void TopOpeBRepBuild_Builder::GFABUMakeFaces(const TopoDS_Shape& FF,TopOpeBRepBu
 #ifdef OCCT_DEBUG
   Standard_Integer iF;Standard_Boolean tSPS=GtraceSPS(FF,iF);
   if(tSPS) {
-    cout<<endl;GdumpSHA(FF,(char *) "#--- GFABUMakeFaces ");cout<<endl;
+    std::cout<<std::endl;GdumpSHA(FF,(char *) "#--- GFABUMakeFaces ");std::cout<<std::endl;
     GdumpFABU(FABU);debgfabu(iF);
   }
 #endif
@@ -547,7 +547,7 @@ void TopOpeBRepBuild_Builder::GFABUMakeFaces(const TopoDS_Shape& FF,TopOpeBRepBu
          //--ofv.
 
 #ifdef OCCT_DEBUG
-      if ( tSPS ) cout<<"#--- GFABUMakeFaces "<<iF<<" : "<<ne<<" edges"<<endl; 
+      if ( tSPS ) std::cout<<"#--- GFABUMakeFaces "<<iF<<" : "<<ne<<" edges"<<std::endl; 
 #endif   
 
       // xpu : 13-11-97
@@ -606,7 +606,7 @@ void TopOpeBRepBuild_Builder::GFABUMakeFaces(const TopoDS_Shape& FF,TopOpeBRepBu
 
 #ifdef OCCT_DEBUG
   if(tSPS) {
-    cout<<endl;GdumpSHA(FF, (char *) "#--- GFABUMakeFaces avant regularize");cout<<endl;
+    std::cout<<std::endl;GdumpSHA(FF, (char *) "#--- GFABUMakeFaces avant regularize");std::cout<<std::endl;
     GdumpFABU(FABU);debgfabu(iF);
   }
 #endif
index 93e3e0b..a36eb82 100644 (file)
@@ -64,7 +64,7 @@ void TopOpeBRepBuild_Builder::GSFSMakeSolids
 {
 #ifdef OCCT_DEBUG
   Standard_Integer iSO; Standard_Boolean tSPS = GtraceSPS(SOF,iSO);
-  if(tSPS){GdumpSHA(SOF, (char *) "#--- GSFSMakeSolids ");cout<<endl;}
+  if(tSPS){GdumpSHA(SOF, (char *) "#--- GSFSMakeSolids ");std::cout<<std::endl;}
 #endif
   
   Standard_Boolean ForceClass = Standard_True;
@@ -83,7 +83,7 @@ void TopOpeBRepBuild_Builder::GSOBUMakeSolids
 {
 #ifdef OCCT_DEBUG
   Standard_Integer iSO; Standard_Boolean tSPS = GtraceSPS(SOF,iSO);
-  if(tSPS){GdumpSHA(SOF, (char *) "#--- GSOBUMakeSolids ");cout<<endl;}
+  if(tSPS){GdumpSHA(SOF, (char *) "#--- GSOBUMakeSolids ");std::cout<<std::endl;}
   if(tSPS){GdumpSOBU(SOBU);debgsobu(iSO);}
 #endif
   
index 61a3462..7693ba1 100644 (file)
@@ -103,7 +103,7 @@ static Standard_Boolean TopOpeBRepBuild_contextNOPURGE = Standard_False;
 Standard_EXPORT void TopOpeBRepBuild_SetcontextNOPURGE(const Standard_Boolean b) { TopOpeBRepBuild_contextNOPURGE = b; }
 Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOPURGE() { 
   Standard_Boolean b = TopOpeBRepBuild_contextNOPURGE;
-  if (b) cout<<"context (TopOpeBRepBuild) NOPURGE actif"<<endl;
+  if (b) std::cout<<"context (TopOpeBRepBuild) NOPURGE actif"<<std::endl;
   return b;
 }
 
@@ -111,7 +111,7 @@ static Standard_Boolean TopOpeBRepBuild_contextNOREGUFA = Standard_False;
 Standard_EXPORT void TopOpeBRepBuild_SetcontextNOREGUFA(const Standard_Boolean b) { TopOpeBRepBuild_contextNOREGUFA = b; }
 Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOREGUFA() { 
   Standard_Boolean b = TopOpeBRepBuild_contextNOREGUFA;
-  if (b) cout<<"context (TopOpeBRepBuild) NOREGUFA actif"<<endl;
+  if (b) std::cout<<"context (TopOpeBRepBuild) NOREGUFA actif"<<std::endl;
   return b;
 }
 
@@ -119,7 +119,7 @@ static Standard_Boolean TopOpeBRepBuild_contextNOREGUSO = Standard_False;
 Standard_EXPORT void TopOpeBRepBuild_SetcontextNOREGUSO(const Standard_Boolean b) { TopOpeBRepBuild_contextNOREGUSO = b; }
 Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOREGUSO() {
   Standard_Boolean b = TopOpeBRepBuild_contextNOREGUSO;
-  if (b) cout<<"context (TopOpeBRepBuild) NOREGUSO actif"<<endl;
+  if (b) std::cout<<"context (TopOpeBRepBuild) NOREGUSO actif"<<std::endl;
   return b;
 }
 
@@ -135,7 +135,7 @@ static Standard_Boolean TopOpeBRepBuild_contextEINTERNAL = Standard_False;
 Standard_EXPORT void TopOpeBRepBuild_SetcontextEINTERNAL(const Standard_Boolean b) { TopOpeBRepBuild_contextEINTERNAL = b; }
 Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextEINTERNAL() { 
   Standard_Boolean b = TopOpeBRepBuild_contextEINTERNAL;
-  if (b) cout<<"context (TopOpeBRepBuild) EINTERNAL actif"<<endl;
+  if (b) std::cout<<"context (TopOpeBRepBuild) EINTERNAL actif"<<std::endl;
   return b;
 }
 
@@ -143,7 +143,7 @@ static Standard_Boolean TopOpeBRepBuild_contextEEXTERNAL = Standard_False;
 Standard_EXPORT void TopOpeBRepBuild_SetcontextEEXTERNAL(const Standard_Boolean b) { TopOpeBRepBuild_contextEEXTERNAL = b; }
 Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextEEXTERNAL() { 
   Standard_Boolean b = TopOpeBRepBuild_contextEEXTERNAL;
-  if (b) cout<<"context (TopOpeBRepBuild) EEXTERNAL actif"<<endl;
+  if (b) std::cout<<"context (TopOpeBRepBuild) EEXTERNAL actif"<<std::endl;
   return b;
 }
 
@@ -151,7 +151,7 @@ static Standard_Boolean TopOpeBRepBuild_contextNOSG = Standard_False;
 Standard_EXPORT void TopOpeBRepBuild_SetcontextNOSG(const Standard_Boolean b) { TopOpeBRepBuild_contextNOSG = b; }
 Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOSG() {
   Standard_Boolean b = TopOpeBRepBuild_contextNOSG;
-  if (b) cout<<"context (TopOpeBRepBuild) NOSG actif"<<endl;
+  if (b) std::cout<<"context (TopOpeBRepBuild) NOSG actif"<<std::endl;
   return b;
 }
 
@@ -159,7 +159,7 @@ static Standard_Boolean TopOpeBRepBuild_contextNOFUFA = Standard_False;
 Standard_EXPORT void TopOpeBRepBuild_SetcontextNOFUFA(const Standard_Boolean b) { TopOpeBRepBuild_contextNOFUFA = b; }
 Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOFUFA() { 
   Standard_Boolean b = TopOpeBRepBuild_contextNOFUFA;
-  if (b) cout<<"context (TopOpeBRepBuild) NOFUFA actif"<<endl;
+  if (b) std::cout<<"context (TopOpeBRepBuild) NOFUFA actif"<<std::endl;
   return b;
 }
 
@@ -167,7 +167,7 @@ static Standard_Boolean TopOpeBRepBuild_contextNOFE = Standard_False;
 Standard_EXPORT void TopOpeBRepBuild_SetcontextNOFE(const Standard_Boolean b) { TopOpeBRepBuild_contextNOFE = b; }
 Standard_EXPORT Standard_Boolean TopOpeBRepBuild_GetcontextNOFE() { 
   Standard_Boolean b = TopOpeBRepBuild_contextNOFE;
-  if (b) cout<<"context (TopOpeBRepBuild) NOFE actif"<<endl;
+  if (b) std::cout<<"context (TopOpeBRepBuild) NOFE actif"<<std::endl;
   return b;
 }
 
index 3722ac5..d0f70db 100644 (file)
@@ -422,8 +422,8 @@ Standard_Boolean CheckEdgeParameter(const Handle(TopOpeBRepDS_HDataStructure)& m
 //=======================================================================
 Standard_OStream& TopOpeBRepDS_Check::PrintIntg(Standard_OStream& OS)
 {
-  OS<<endl<<endl<<"************************************************"<<endl;
-  OS<<"state of the DS : (only the tested elements)"<<endl<<endl;
+  OS<<std::endl<<std::endl<<"************************************************"<<std::endl;
+  OS<<"state of the DS : (only the tested elements)"<<std::endl<<std::endl;
   
   //Display of the geometry
   PrintMap(myMapSurfaceStatus, "Surface", OS);
@@ -455,7 +455,7 @@ Standard_OStream& TopOpeBRepDS_Check::PrintIntg(Standard_OStream& OS)
   PrintMap(MapFace, "Face",   OS);
   PrintMap(MapSolid, "Solid",  OS);
   
-  OS<<endl<<endl;
+  OS<<std::endl<<std::endl;
   return OS;
 }
 
@@ -475,9 +475,9 @@ Standard_OStream& TopOpeBRepDS_Check::PrintMap(TopOpeBRepDS_DataMapOfCheckStatus
     OS<<" "<<eltstr<<"\t(/"<<MapStat.Extent()<<")\tnumber ";
     
     PrintElts(MapStat, TopOpeBRepDS_OK,  b, OS);
-    if(!b) OS<<" = OK"<<endl;
+    if(!b) OS<<" = OK"<<std::endl;
     PrintElts(MapStat, TopOpeBRepDS_NOK, b, OS);
-    if(!b) OS<<" = NOK"<<endl;
+    if(!b) OS<<" = NOK"<<std::endl;
   }    
   return OS;
 }
@@ -558,7 +558,7 @@ Standard_OStream& TopOpeBRepDS_Check::PrintShape
     return OS;
   }
   if(!myMapShapeStatus.IsBound(index)) {
-    OS<<"NO CHECK HAS PROCESSING"<<endl;
+    OS<<"NO CHECK HAS PROCESSING"<<std::endl;
     return OS;
   }
   OS<<" ";
index be522a6..faffc92 100644 (file)
@@ -38,7 +38,7 @@
 Standard_EXPORT void FUN_draw (const TopoDS_Shape& s)
 {
   char* nnn = TCollection_AsciiString("name").ToCString();
-  if (s.IsNull()) cout<<"nullshape"<<endl;
+  if (s.IsNull()) std::cout<<"nullshape"<<std::endl;
   DBRep::Set(nnn,s);
 }
 Standard_EXPORT void FUN_draw (const gp_Pnt& p)
index 471581b..6a440c5 100644 (file)
@@ -143,7 +143,7 @@ void TopOpeBRepDS_HDataStructure::ChkIntg()
   // Check the integrity of the DS
   Handle(TopOpeBRepDS_Check) chk = new TopOpeBRepDS_Check(this);
   chk->ChkIntg();
-//  chk->PrintIntg(cout);
+//  chk->PrintIntg(std::cout);
 }
 
 //=======================================================================
index 0570ab7..d8a7b23 100644 (file)
@@ -188,15 +188,15 @@ void TopOpeBRepDS_TKI::Add(const TopOpeBRepDS_Kind K,const Standard_Integer G,co
 //=======================================================================
 void TopOpeBRepDS_TKI::DumpTKIIterator(const TCollection_AsciiString& s1,const TCollection_AsciiString& s2)
 {
-  cout<<s1;
+  std::cout<<s1;
   Init();
   while (More()) {
     TopOpeBRepDS_Kind K;Standard_Integer G;
     Value(K,G);
     Next();
   }
-  cout<<s2;
-  cout.flush();
+  std::cout<<s2;
+  std::cout.flush();
 }
 
 //=======================================================================
index 67cf3f9..26f6ed3 100644 (file)
@@ -242,7 +242,7 @@ Standard_EXPORT void FDSCNX_DumpIndex(const Handle(TopOpeBRepDS_HDataStructure)&
 
     for (; ils.More(); ils.Next())
     {
-      cout<<BDS.Shape(ils.Value())<<" ";
+      std::cout<<BDS.Shape(ils.Value())<<" ";
     }
   }
   else if (ts == TopAbs_FACE)
@@ -264,7 +264,7 @@ Standard_EXPORT void FDSCNX_DumpIndex(const Handle(TopOpeBRepDS_HDataStructure)&
       }
       for (; ilf.More(); ilf.Next())
       {
-        cout<<BDS.Shape(ilf.Value())<<" ";
+        std::cout<<BDS.Shape(ilf.Value())<<" ";
       }
     }
   }
@@ -295,12 +295,12 @@ Standard_EXPORT void FDSCNX_Dump(const Handle(TopOpeBRepDS_HDataStructure)& HDS,
       return;
     }
 
-    cout<<"clear;";
+    std::cout<<"clear;";
     for (; ils.More(); ils.Next())
     {
-      cout<<"tsee f "<<BDS.Shape(ils.Value())<<";";
+      std::cout<<"tsee f "<<BDS.Shape(ils.Value())<<";";
     }
-    cout<<"tsee e "<<is<<";### edge "<<is<<" connexity"<<endl;
+    std::cout<<"tsee e "<<is<<";### edge "<<is<<" connexity"<<std::endl;
   }
   else if (ts == TopAbs_FACE)
   {
@@ -319,12 +319,12 @@ Standard_EXPORT void FDSCNX_Dump(const Handle(TopOpeBRepDS_HDataStructure)& HDS,
         continue;
       }
 
-      cout<<"clear;";cout<<"tsee f "<<is<<";";
+      std::cout<<"clear;";std::cout<<"tsee f "<<is<<";";
       for (;ilf.More(); ilf.Next())
       {
-        cout<<"tsee f "<<BDS.Shape(ilf.Value())<<";";
+        std::cout<<"tsee f "<<BDS.Shape(ilf.Value())<<";";
       }
-      cout<<"tsee e "<<ie<<";### face "<<is<<" connexity"<<endl;
+      std::cout<<"tsee e "<<ie<<";### face "<<is<<" connexity"<<std::endl;
     }
   }
 }
index b131f9a..eadc0d5 100644 (file)
@@ -214,7 +214,7 @@ static Handle(Geom2d_Curve) FC2D_make2d(const TopoDS_Edge& E,const TopoDS_Face&
   
 #ifdef OCCT_DEBUG
   if (TopOpeBRepTool_GettraceC2D() && C2D.IsNull()) {
-    cout<<"#FC2D_make2d1 --> PCurve IsNull"<<endl;
+    std::cout<<"#FC2D_make2d1 --> PCurve IsNull"<<std::endl;
   }
 #endif
 
@@ -227,10 +227,10 @@ Standard_EXPORT Handle(Geom2d_Curve) FC2D_MakeCurveOnSurface(const TopoDS_Edge&
 {
 #ifdef DRAW
   if (TopOpeBRepTool_GettraceC2D()) {
-    cout<<"\n#FC2D_MakeCurveOnSurface : "<<endl;
+    std::cout<<"\n#FC2D_MakeCurveOnSurface : "<<std::endl;
     TCollection_AsciiString fnam("c2df");GLOBAL_C2D_i++;fnam=fnam+GLOBAL_C2D_i;FDRAW_DINS("",F,fnam,"");
     TCollection_AsciiString enam("c2de");GLOBAL_C2D_i++;enam=enam+GLOBAL_C2D_i;FDRAW_DINE(" ",E,enam,"\n");
-    cout.flush(); debc2dnull();
+    std::cout.flush(); debc2dnull();
   }
 #endif
   
@@ -353,7 +353,7 @@ static Handle(Geom2d_Curve) FC2D_make2d(const TopoDS_Edge& E,const TopoDS_Face&
 
 #ifdef OCCT_DEBUG
   if (TopOpeBRepTool_GettraceC2D() && C2D.IsNull()) {
-    cout<<"#FC2D_make2d2 --> PCurve IsNull"<<endl;
+    std::cout<<"#FC2D_make2d2 --> PCurve IsNull"<<std::endl;
   }
 #endif
 
@@ -378,10 +378,10 @@ Standard_EXPORT Handle(Geom2d_Curve) FC2D_CurveOnSurface(const TopoDS_Edge& E,co
   
 #ifdef DRAW
   if (TopOpeBRepTool_GettraceC2D()) {
-    cout<<"\n#FC2D_CurveOnSurface : "<<endl;
+    std::cout<<"\n#FC2D_CurveOnSurface : "<<std::endl;
     TCollection_AsciiString fnam("c2df");GLOBAL_C2D_i++;fnam=fnam+GLOBAL_C2D_i;FDRAW_DINS("",F,fnam,"");
     TCollection_AsciiString enam("c2de");GLOBAL_C2D_i++;enam=enam+GLOBAL_C2D_i;FDRAW_DINE(" ",E,enam,"\n");
-    cout.flush();debc2dnull();
+    std::cout.flush();debc2dnull();
   }
 #endif
   
index 743ef25..82ea6e7 100644 (file)
@@ -142,8 +142,8 @@ void TopOpeBRepTool_BoxSort::MakeHAB(const TopoDS_Shape& S,const TopAbs_ShapeEnu
 
 #ifdef OCCT_DEBUG
   if (TBOX) {
-    cout<<"# BS::MakeHAB : ";TopAbs::Print(t,cout);cout<<" : "<<n<<"\n";
-    cout.flush();
+    std::cout<<"# BS::MakeHAB : ";TopAbs::Print(t,std::cout);std::cout<<" : "<<n<<"\n";
+    std::cout.flush();
   }
 #endif
 
@@ -200,7 +200,7 @@ void TopOpeBRepTool_BoxSort::MakeCOB(const TopoDS_Shape& S,const TopAbs_ShapeEnu
   MakeHABCOB(myHAB,myCOB);
   myBSB.Initialize(myCOB,myHAB);
 #ifdef OCCT_DEBUG
-  if (TBOX) {myHBT->DumpB(myCOB);cout<<";# BS::MakeCOB"<<endl;}
+  if (TBOX) {myHBT->DumpB(myCOB);std::cout<<";# BS::MakeCOB"<<std::endl;}
 #endif
 }
 
@@ -268,14 +268,14 @@ const MTClioloi& TopOpeBRepTool_BoxSort::Compare(const TopoDS_Shape &S)
 #ifdef OCCT_DEBUG
   if (TBOX) {
     Standard_Integer nl = (*L).Extent();
-    cout<<"#------------------------"<<endl;
-    myHBT->DumpB(myLastCompareShapeBox);cout<<"; # BS::Compare"<<endl;
-    cout<<"# touche "<<nl<<" boites ";cout.flush();
+    std::cout<<"#------------------------"<<std::endl;
+    myHBT->DumpB(myLastCompareShapeBox);std::cout<<"; # BS::Compare"<<std::endl;
+    std::cout<<"# touche "<<nl<<" boites ";std::cout.flush();
     Standard_Integer il;
     for (MTClioloi idd((*L));idd.More();idd.Next()) {
-      il=idd.Value();cout<<il<<" ";cout.flush();
+      il=idd.Value();std::cout<<il<<" ";std::cout.flush();
     }
-    cout<<endl<<"#------------------------"<<endl;
+    std::cout<<std::endl<<"#------------------------"<<std::endl;
   }
 #endif
  
index 5de0450..d5d5c46 100644 (file)
@@ -145,7 +145,7 @@ Standard_Integer TopOpeBRepTool_CLASSI::ClassiBnd2d(const TopoDS_Shape& S1,const
   Standard_Boolean trc = Standard_False;
   if (trc) {
     for (Standard_Integer j = 1; j <= 2; j++)
-      cout<<"B("<<j<<") = ("<<UV(j,1)<<" "<<UV(j,3)<<" "<<UV(j,2)<<" "<<UV(j,4)<<")"<<endl;
+      std::cout<<"B("<<j<<") = ("<<UV(j,1)<<" "<<UV(j,3)<<" "<<UV(j,2)<<" "<<UV(j,4)<<")"<<std::endl;
   }
 #endif
 
index f8068e9..5fc6248 100644 (file)
@@ -54,13 +54,13 @@ static void FUN_RaiseError()
 #ifdef OCCT_DEBUG
 //  Standard_Boolean trc = TopOpeBRepTool_GettraceCORRISO();
   FUN_REINIT(); 
-//  if (trc) cout <<"*********failure in CORRISO***********\n";
+//  if (trc) std::cout <<"*********failure in CORRISO***********\n";
 #endif
 }
 static void FUN_Raise()
 {
 #ifdef OCCT_DEBUG
-//  cout <<"*********failure in CORRISO***********\n";
+//  std::cout <<"*********failure in CORRISO***********\n";
 #endif
 }
 
@@ -281,7 +281,7 @@ Standard_Boolean TopOpeBRepTool_CORRISO::UVClosed() const
 {  
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepTool_GettraceCORRISO();
-  if (trc) cout<<"** UVClosed"<<endl;
+  if (trc) std::cout<<"** UVClosed"<<std::endl;
 #endif
   TopTools_DataMapOfOrientedShapeInteger lfyE; Standard_Integer nfybounds=3; Standard_Boolean stopatfirst = Standard_True;
   Standard_Boolean foundfaulty = EdgesWithFaultyUV(myEds,nfybounds,lfyE,stopatfirst);
@@ -320,7 +320,7 @@ Standard_Boolean TopOpeBRepTool_CORRISO::PurgeFyClosingE(const TopTools_ListOfSh
   fyClEds.Clear();
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepTool_GettraceCORRISO();
-  if (trc) cout<<"* PurgeFyClosingE"<<endl;
+  if (trc) std::cout<<"* PurgeFyClosingE"<<std::endl;
 #endif
 //  Standard_Real xperiod = myUclosed ? myUper : myVper; 
   Standard_Real tttol = 1.e-8;
@@ -455,7 +455,7 @@ Standard_Boolean TopOpeBRepTool_CORRISO::PurgeFyClosingE(const TopTools_ListOfSh
     if (!isb) return Standard_False; // NYIRAISE
 #ifdef OCCT_DEBUG
     Standard_Integer icE = STATIC_PURGE_mapeds.Add(cE);
-    if (trc) cout<<"? e"<<icE<<" :"<<endl;
+    if (trc) std::cout<<"? e"<<icE<<" :"<<std::endl;
 #endif
 
     // isonOcE2d :
@@ -482,7 +482,7 @@ Standard_Boolean TopOpeBRepTool_CORRISO::PurgeFyClosingE(const TopTools_ListOfSh
     }
     if (!isonOcE2d) {
 #ifdef OCCT_DEBUG
-      if (trc) cout<<"-> valid edge"<<endl;
+      if (trc) std::cout<<"-> valid edge"<<std::endl;
 #endif
       continue;
     }
@@ -499,7 +499,7 @@ Standard_Boolean TopOpeBRepTool_CORRISO::PurgeFyClosingE(const TopTools_ListOfSh
 #ifdef OCCT_DEBUG
       // recall in one wire, there are 2 vertices for one non-degenerated closing edge
       Standard_Integer ivmapv = STATIC_PURGE_mapv.Add(vce);
-      if (trc) {cout<<" connexity for v("<<ivce<<")=v"<<ivmapv;FUN_tool_trace(UVvce);}
+      if (trc) {std::cout<<" connexity for v("<<ivce<<")=v"<<ivmapv;FUN_tool_trace(UVvce);}
 #ifdef DRAW    
       if (trc) {TCollection_AsciiString bb("uv_");bb += TCollection_AsciiString(ivmapv);FUN_tool_draw(bb,UVvce);}
 #endif
@@ -513,7 +513,7 @@ Standard_Boolean TopOpeBRepTool_CORRISO::PurgeFyClosingE(const TopTools_ListOfSh
 
 #ifdef OCCT_DEBUG
        Standard_Integer iE = STATIC_PURGE_mapeds.Add(E);
-       if (trc) {cout<<"    : on e"<<iE<<endl;}
+       if (trc) {std::cout<<"    : on e"<<iE<<std::endl;}
 #endif
 //     if (E.IsSame(cE)) continue;
        if (mapcl.Contains(E)) continue; // do NOT check connexity on closing edges 
@@ -533,7 +533,7 @@ Standard_Boolean TopOpeBRepTool_CORRISO::PurgeFyClosingE(const TopTools_ListOfSh
          if (!samev) continue; 
          Standard_Real parve = TopOpeBRepTool_TOOL::ParE(ive,E); gp_Pnt2d UVve = TopOpeBRepTool_TOOL::UVF(parve,E2d);
 #ifdef OCCT_DEBUG
-         if (trc) {cout<<"    ve("<<ive<<")";FUN_tool_trace(UVve);}
+         if (trc) {std::cout<<"    ve("<<ive<<")";FUN_tool_trace(UVve);}
 #endif 
          if (ive == ivce) continue; // vertex FORWARD connexed to REVERSED one
          Standard_Real tttolve = BRep_Tool::Tolerance(ve);
@@ -558,7 +558,7 @@ Standard_Boolean TopOpeBRepTool_CORRISO::PurgeFyClosingE(const TopTools_ListOfSh
          if (sameuv) {
            vceok = Standard_True;
 #ifdef OCCT_DEBUG
-           if (trc){cout<<" connexity->ok"<<endl;}
+           if (trc){std::cout<<" connexity->ok"<<std::endl;}
 #endif 
          }
          break;
@@ -567,7 +567,7 @@ Standard_Boolean TopOpeBRepTool_CORRISO::PurgeFyClosingE(const TopTools_ListOfSh
       } //ite(loe)     
  
 #ifdef OCCT_DEBUG
-      if (trc && !vceok) {cout<<" connexity->KO"<<endl;}       
+      if (trc && !vceok) {std::cout<<" connexity->KO"<<std::endl;}     
 #endif     
       if (vceok) nvcEok++;
     }// ivce=1..2
@@ -576,8 +576,8 @@ Standard_Boolean TopOpeBRepTool_CORRISO::PurgeFyClosingE(const TopTools_ListOfSh
 
 #ifdef OCCT_DEBUG
     if (trc) 
-      {if (isfycE) cout<<"-> faulty edge"<<endl; 
-       else        cout<<"-> valid edge"<<endl;}
+      {if (isfycE) std::cout<<"-> faulty edge"<<std::endl; 
+       else        std::cout<<"-> valid edge"<<std::endl;}
 #endif 
     if (isfycE) fyClEds.Append(cE);
   }//itce
@@ -725,7 +725,7 @@ Standard_Boolean TopOpeBRepTool_CORRISO::EdgeWithFaultyUV(const TopoDS_Edge& E,
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepTool_GettraceCORRISO();
   Standard_Integer iE = STATIC_PURGE_mapeds.Add(E);
-  if (trc) cout<<"? e"<<iE<<" :"<<endl;
+  if (trc) std::cout<<"? e"<<iE<<" :"<<std::endl;
 #endif
   Ivfaulty = 0;
   Standard_Real tttol = 1.e-8;
@@ -741,7 +741,7 @@ Standard_Boolean TopOpeBRepTool_CORRISO::EdgeWithFaultyUV(const TopoDS_Edge& E,
   Standard_Boolean closed = vEs(1).IsSame(vEs(2));
   if (closed) {
 #ifdef OCCT_DEBUG
-    if (trc) {cout<<"closed -> valid edge"<<endl;}
+    if (trc) {std::cout<<"closed -> valid edge"<<std::endl;}
 #endif     
     return Standard_False; // closed edge is assumed valid
   }
@@ -758,7 +758,7 @@ Standard_Boolean TopOpeBRepTool_CORRISO::EdgeWithFaultyUV(const TopoDS_Edge& E,
 #ifdef OCCT_DEBUG
       // recall in one wire, there are 2 vertices for one non-degenerated closing edge
     Standard_Integer ivmapv = STATIC_PURGE_mapv.Add(vE);
-    if (trc) {cout<<" connexity for v("<<ivE<<")=v"<<ivmapv;FUN_tool_trace(UVvE);}
+    if (trc) {std::cout<<" connexity for v("<<ivE<<")=v"<<ivmapv;FUN_tool_trace(UVvE);}
 #ifdef DRAW    
     if (trc) {TCollection_AsciiString bb("uv_");bb += TCollection_AsciiString(ivmapv);FUN_tool_draw(bb,UVvE);}
 #endif
@@ -780,7 +780,7 @@ Standard_Boolean TopOpeBRepTool_CORRISO::EdgeWithFaultyUV(const TopoDS_Edge& E,
 
 #ifdef OCCT_DEBUG
     Standard_Integer ie = STATIC_PURGE_mapeds.Add(e);
-    if (trc) {cout<<"    : on e"<<ie<<endl;}
+    if (trc) {std::cout<<"    : on e"<<ie<<std::endl;}
 #endif
 
       if (e.IsSame(E)) continue;      
@@ -798,7 +798,7 @@ Standard_Boolean TopOpeBRepTool_CORRISO::EdgeWithFaultyUV(const TopoDS_Edge& E,
          
        Standard_Real pare = TopOpeBRepTool_TOOL::ParE(ive,e); gp_Pnt2d UVve = TopOpeBRepTool_TOOL::UVF(pare,aC2DF);
 #ifdef OCCT_DEBUG
-       if (trc) {cout<<"    ve("<<ive<<")";FUN_tool_trace(UVve);}
+       if (trc) {std::cout<<"    ve("<<ive<<")";FUN_tool_trace(UVve);}
 #endif 
        if (ive == ivE) continue;       
        
@@ -810,7 +810,7 @@ Standard_Boolean TopOpeBRepTool_CORRISO::EdgeWithFaultyUV(const TopoDS_Edge& E,
        if (isequal) {
          vEok = Standard_True;
 #ifdef OCCT_DEBUG
-         if (trc){cout<<" connexity->ok"<<endl;}
+         if (trc){std::cout<<" connexity->ok"<<std::endl;}
 #endif 
          break;
        }
@@ -820,13 +820,13 @@ Standard_Boolean TopOpeBRepTool_CORRISO::EdgeWithFaultyUV(const TopoDS_Edge& E,
       
     if (!vEok) {nfyv++; Ivfaulty = ivE;}      
 #ifdef OCCT_DEBUG
-    if (trc && !vEok) {cout<<" connexity->KO"<<endl;}  
+    if (trc && !vEok) {std::cout<<" connexity->KO"<<std::endl;}        
 #endif      
 
   } // ivE = 1..2          
   if (nfyv == 2) Ivfaulty = 3;
 #ifdef OCCT_DEBUG
-  if (trc) {if (Ivfaulty == 0) cout<<"-> valid edge"<<endl; else cout<<"-> faulty edge"<<endl;}
+  if (trc) {if (Ivfaulty == 0) std::cout<<"-> valid edge"<<std::endl; else std::cout<<"-> faulty edge"<<std::endl;}
 #endif   
   return (Ivfaulty != 0);
 }
@@ -843,7 +843,7 @@ Standard_Boolean TopOpeBRepTool_CORRISO::EdgesWithFaultyUV(const TopTools_ListOf
 #ifdef OCCT_DEBUG
   Standard_Integer ifault = 0;
   Standard_Boolean trc = TopOpeBRepTool_GettraceCORRISO(); 
-  if (trc) cout<<endl<<"* EdgesWithFaultyUV"<<endl;
+  if (trc) std::cout<<std::endl<<"* EdgesWithFaultyUV"<<std::endl;
 #endif
 
   // fF's checking :
@@ -862,7 +862,7 @@ Standard_Boolean TopOpeBRepTool_CORRISO::EdgesWithFaultyUV(const TopTools_ListOf
 
 #ifdef OCCT_DEBUG
     ifault++; 
-    if (trc) cout<<"e"<<STATIC_PURGE_mapeds.FindIndex(Echk)<<" has ifyv="<<Ivfaulty<<endl;
+    if (trc) std::cout<<"e"<<STATIC_PURGE_mapeds.FindIndex(Echk)<<" has ifyv="<<Ivfaulty<<std::endl;
 #ifdef DRAW
     if (trc) {TCollection_AsciiString aa("fault"); FUN_tool_draw(aa,Echk,ifault);}
 #endif
index 5f76fea..d79a51d 100644 (file)
@@ -314,7 +314,7 @@ Standard_Boolean  TopOpeBRepTool_CurveTool::MakeCurves
   
   Standard_Boolean CompC3D = myGeomTool.CompC3D();
 
-  //cout << "MakeCurves begin" << endl;
+  //std::cout << "MakeCurves begin" << std::endl;
   if (!CompC3D) return Standard_False;
 
   Standard_Boolean CompPC1 = myGeomTool.CompPC1();
@@ -352,7 +352,7 @@ Standard_Boolean  TopOpeBRepTool_CurveTool::MakeCurves
 //--------------------- IFV - "improving" initial curves
 #ifdef CurveImprovement
   Standard_Integer nbpol = HC3D->NbPoles();
-  //cout <<"nbpol = " << nbpol << endl;
+  //std::cout <<"nbpol = " << nbpol << std::endl;
   if(nbpol > 100) {
     TColgp_Array1OfPnt PolC3D(1, nbpol);
     TColgp_Array1OfPnt2d PolPC1(1, nbpol);
@@ -433,7 +433,7 @@ Standard_Boolean  TopOpeBRepTool_CurveTool::MakeCurves
     
     if(NbPol < nbpol) {
 #ifdef IFV
-      cout << "NbPol < nbpol : " << NbPol << " " <<  nbpol << endl;
+      std::cout << "NbPol < nbpol : " << NbPol << " " <<  nbpol << std::endl;
 #endif
       TColgp_Array1OfPnt Polc3d(1, NbPol);
       TColgp_Array1OfPnt2d Polpc1(1, NbPol);
@@ -577,8 +577,8 @@ Standard_Boolean  TopOpeBRepTool_CurveTool::MakeCurves
     }
 
   }
-  //cout << NbCalls << " ksi = " << ksi << endl;
-  //cout << "IsBad = " << IsBad << endl;
+  //std::cout << NbCalls << " ksi = " << ksi << std::endl;
+  //std::cout << "IsBad = " << IsBad << std::endl;
 
   if(IsBad){
     Standard_Real tt = Min(10.*tol3d,Precision::Approximation());
@@ -677,7 +677,7 @@ Standard_Boolean  TopOpeBRepTool_CurveTool::MakeCurves
   TolReached3d = Approx.TolReached3d();
   TolReached2d = Approx.TolReached2d();
 #ifdef IFV
-  cout << NbCalls << " : Tol = " << TolReached3d << " " << TolReached2d << endl;
+  std::cout << NbCalls << " : Tol = " << TolReached3d << " " << TolReached2d << std::endl;
 #endif
 
   Standard_Boolean bf, bl;
@@ -690,8 +690,8 @@ Standard_Boolean  TopOpeBRepTool_CurveTool::MakeCurves
 #ifdef OCCT_DEBUG
     if (TopOpeBRepTool_GettraceCHKBSPL()) {
       if(bf || bl) {
-       cout<<"Problem orientation GeomLib_CheckBSplineCurve : First = "<<bf;
-       cout<<" Last = "<<bl<<endl;
+       std::cout<<"Problem orientation GeomLib_CheckBSplineCurve : First = "<<bf;
+       std::cout<<" Last = "<<bl<<std::endl;
       }
     }
 #endif
@@ -705,8 +705,8 @@ Standard_Boolean  TopOpeBRepTool_CurveTool::MakeCurves
 #ifdef OCCT_DEBUG
     if (TopOpeBRepTool_GettraceCHKBSPL()) {
       if(bf || bl) {
-       cout<<"Problem orientation GeomLib_CheckBSplineCurve : First = "<<bf;
-       cout<<" Last = "<<bl<<endl;
+       std::cout<<"Problem orientation GeomLib_CheckBSplineCurve : First = "<<bf;
+       std::cout<<" Last = "<<bl<<std::endl;
       }
     }
 #endif
@@ -720,8 +720,8 @@ Standard_Boolean  TopOpeBRepTool_CurveTool::MakeCurves
 #ifdef OCCT_DEBUG
     if (TopOpeBRepTool_GettraceCHKBSPL()) {
       if(bf || bl) {
-       cout<<"Problem orientation GeomLib_CheckBSplineCurve : First = "<<bf;
-       cout<<" Last = "<<bl<<endl;
+       std::cout<<"Problem orientation GeomLib_CheckBSplineCurve : First = "<<bf;
+       std::cout<<" Last = "<<bl<<std::endl;
       }
     }
 #endif
@@ -731,7 +731,7 @@ Standard_Boolean  TopOpeBRepTool_CurveTool::MakeCurves
 #ifdef OCCT_DEBUG
   if (TopOpeBRepTool_GettraceKRO()) KRO_CURVETOOL_APPRO.Stop();
 #endif
-//  cout << "MakeCurves end" << endl;
+//  std::cout << "MakeCurves end" << std::endl;
 
   return Standard_True;
 }
@@ -865,9 +865,9 @@ Standard_Boolean TopOpeBRepTool_CurveTool::IsProjectable
   
 #ifdef OCCT_DEBUG
   if (TopOpeBRepTool_GettracePCURV()) {
-    cout<<"--- IsProjectable : "; 
-    if (projectable) cout<<"projectable"<<endl;
-    else cout<<"NOT projectable"<<endl;
+    std::cout<<"--- IsProjectable : "; 
+    if (projectable) std::cout<<"projectable"<<std::endl;
+    else std::cout<<"NOT projectable"<<std::endl;
   }
 #endif
   
index 8a9a0ed..f2c0005 100644 (file)
@@ -106,7 +106,7 @@ void TopOpeBRepTool_DrawSegment
 Standard_EXPORT void FDRAW_DINS(const TCollection_AsciiString pref,const TopoDS_Shape& SS,const TCollection_AsciiString Snam,const TCollection_AsciiString suff)
 {
   DBRep::Set(Snam.ToCString(),SS);
-  cout<<pref<<FUN_tool_PRODINS()<<" "<<Snam<<";"<<suff;
+  std::cout<<pref<<FUN_tool_PRODINS()<<" "<<Snam<<";"<<suff;
 }
 
 Standard_EXPORT void FDRAW_DINE(const TCollection_AsciiString pref,const TopoDS_Edge& EE,const TCollection_AsciiString Enam,const TCollection_AsciiString suff)
@@ -117,7 +117,7 @@ Standard_EXPORT void FDRAW_DINE(const TCollection_AsciiString pref,const TopoDS_
   if ( ! VF.IsNull() && !VR.IsNull() && !EE.IsNull() ) {
     DBRep::Set(Enam.ToCString(),EE);
     Standard_Real f,l; BRep_Tool::Range(EE,f,l);
-    cout<<pref<<FUN_tool_PRODINS()<<"-gO "<<Enam<<"; # f,l : "<<f<<","<<l<<suff;
+    std::cout<<pref<<FUN_tool_PRODINS()<<"-gO "<<Enam<<"; # f,l : "<<f<<","<<l<<suff;
     
 #if 0
     Standard_Integer nfo=0,nre=0,nin=0,nex=0;
@@ -129,26 +129,26 @@ Standard_EXPORT void FDRAW_DINE(const TCollection_AsciiString pref,const TopoDS_
       if      ( vvo == TopAbs_FORWARD ) {
        nfo++; VFnam = Enam + ".vf" + nfo;
        DBRep::Set(VFnam.ToCString(),vv);
-       cout<<blancV<<FUN_tool_PRODINS()<<VFnam;
+       std::cout<<blancV<<FUN_tool_PRODINS()<<VFnam;
       }
       else if ( vvo == TopAbs_REVERSED ) {
        nre++; VRnam = Enam + ".vr" + nre;
        DBRep::Set(VRnam.ToCString(),vv);
-       cout<<blancV<<FUN_tool_PRODINS()<<VRnam;
+       std::cout<<blancV<<FUN_tool_PRODINS()<<VRnam;
       }
       else if ( vvo == TopAbs_INTERNAL ) {
        nin++; VInam = Enam + ".vi" + nin;
        DBRep::Set(VInam.ToCString(),vv);
-       cout<<blancV<<FUN_tool_PRODINS()<<VInam;
+       std::cout<<blancV<<FUN_tool_PRODINS()<<VInam;
       }
       else if ( vvo == TopAbs_EXTERNAL ) {
        nex++; VEnam = Enam + ".ve" + nex;
        DBRep::Set(VEnam.ToCString(),vv);
-       cout<<blancV<<FUN_tool_PRODINS()<<VEnam;
+       std::cout<<blancV<<FUN_tool_PRODINS()<<VEnam;
       }
       
       Standard_Real p = BRep_Tool::Parameter(vv,EE);
-      cout<<"; #draw ; par/"<<Enam<<" : "<<p<<endl;    
+      std::cout<<"; #draw ; par/"<<Enam<<" : "<<p<<std::endl;  
     }
 #endif
     
@@ -226,9 +226,9 @@ Standard_EXPORT void FUN_tool_draw(const TCollection_AsciiString aa,const TopoDS
 }
 Standard_EXPORT void FUN_tool_draw(TCollection_AsciiString aa,const TopoDS_Edge& E, const TopoDS_Face& F,const Standard_Integer ie)
 {  
-  if (E.IsNull())  {cout<<"************* null edge\n"; return;} 
+  if (E.IsNull())  {std::cout<<"************* null edge\n"; return;} 
   Standard_Real f,l; const Handle(Geom2d_Curve)& PC = BRep_Tool::CurveOnSurface(E,F,f,l);  
-  if (PC.IsNull()) {cout<<"************* no curv on surf\n"; return;}
+  if (PC.IsNull()) {std::cout<<"************* no curv on surf\n"; return;}
   TCollection_AsciiString bb(aa); bb += TCollection_AsciiString(ie);  
   char* aaa = bb.ToCString();
 
index eaf3064..69723ec 100644 (file)
@@ -227,7 +227,7 @@ void TopOpeBRepTool_FuseEdges::BuildListEdges()
 #endif
 
 #ifdef OCCT_DEBUG
-    if (tFE) cout<<endl<<"FuseEdges : BuildListEdges  "<<endl;
+    if (tFE) std::cout<<std::endl<<"FuseEdges : BuildListEdges  "<<std::endl;
 #endif
 
   //--------------------------------------------------------
@@ -281,7 +281,7 @@ void TopOpeBRepTool_FuseEdges::BuildListResultEdges()
 #endif
 
 #ifdef OCCT_DEBUG
-    if (tFE) cout<<endl<<"FuseEdges : BuildListResultEdges  "<<endl;
+    if (tFE) std::cout<<std::endl<<"FuseEdges : BuildListResultEdges  "<<std::endl;
 #endif
 
   // if we have edges to fuse
@@ -325,7 +325,7 @@ void TopOpeBRepTool_FuseEdges::BuildListResultEdges()
       }
   
 #ifdef OCCT_DEBUG
-    if (tFE) cout<<endl<<"FuseEdges : Creating New Edge "<<endl;
+    if (tFE) std::cout<<std::endl<<"FuseEdges : Creating New Edge "<<std::endl;
 #endif
 
       BRepLib_MakeEdge ME(C,VF,VL);
@@ -336,7 +336,7 @@ void TopOpeBRepTool_FuseEdges::BuildListResultEdges()
        // we try to use ExtendCurveToPoint, then rebuild the NewEdge
 
 #ifdef OCCT_DEBUG
-       if (tFE) cout<<endl<<"FuseEdges : MakeEdge failed. Trying to Extend Curve "<<endl;
+       if (tFE) std::cout<<std::endl<<"FuseEdges : MakeEdge failed. Trying to Extend Curve "<<std::endl;
 #endif
        Handle(Geom_BoundedCurve) ExtC = Handle(Geom_BoundedCurve)::DownCast(C->Copy());
        if (!ExtC.IsNull()) {
@@ -356,7 +356,7 @@ void TopOpeBRepTool_FuseEdges::BuildListResultEdges()
       NewEdge = ME.Edge();
 
 #ifdef OCCT_DEBUG
-      if (tFE) cout<<endl<<"FuseEdges : Updating pcurve "<<endl;
+      if (tFE) std::cout<<std::endl<<"FuseEdges : Updating pcurve "<<std::endl;
 #endif
       if (UpdatePCurve(OldEdge,NewEdge,LmapEdg))
         myMapEdg.Bind(iLst,NewEdge);
@@ -384,7 +384,7 @@ void TopOpeBRepTool_FuseEdges::Perform()
   }
 
 #ifdef OCCT_DEBUG
-    if (tFE) cout<<endl<<"FuseEdges : Perform  "<<endl;
+    if (tFE) std::cout<<std::endl<<"FuseEdges : Perform  "<<std::endl;
 #endif
 
   // if we have fused edges
@@ -419,7 +419,7 @@ void TopOpeBRepTool_FuseEdges::Perform()
     }
 
 #ifdef OCCT_DEBUG
-    if (tFE) cout<<endl<<"FuseEdges : Building New Shape  "<<endl;
+    if (tFE) std::cout<<std::endl<<"FuseEdges : Building New Shape  "<<std::endl;
 #endif
 
     // perform the effective substitution
@@ -440,7 +440,7 @@ void TopOpeBRepTool_FuseEdges::Perform()
     }
 
 #ifdef OCCT_DEBUG
-    if (tFE) cout<<endl<<"FuseEdges : "<< NbVertices() <<" vertices removed"<<endl;
+    if (tFE) std::cout<<std::endl<<"FuseEdges : "<< NbVertices() <<" vertices removed"<<std::endl;
 #endif
 
 
@@ -647,7 +647,7 @@ Standard_Boolean TopOpeBRepTool_FuseEdges::SameSupport(const TopoDS_Edge& E1,
       typC1 != STANDARD_TYPE(Geom_BSplineCurve) && 
       typC1 != STANDARD_TYPE(Geom_BezierCurve)) {
 #ifdef OCCT_DEBUG
-    cout << " TopOpeBRepTool_FuseEdge : Type de Support non traite" << endl;
+    std::cout << " TopOpeBRepTool_FuseEdge : Type de Support non traite" << std::endl;
 #endif
     return Standard_False;
   }
index ef4d4ee..eb67413 100644 (file)
@@ -156,7 +156,7 @@ Standard_EXPORT gp_Dir FUN_tool_ngS(const gp_Pnt2d& p2d,const Handle(Geom_Surfac
       }
     }
 #ifdef OCCT_DEBUG
-    cout<<"FUN_tool_nggeomF NYI"<<endl;
+    std::cout<<"FUN_tool_nggeomF NYI"<<std::endl;
 #endif
     return gp_Dir(0,0,1);
   }
index d563d70..cc26755 100644 (file)
@@ -86,7 +86,7 @@ void TopOpeBRepTool_HBoxTool::AddBox(const TopoDS_Shape& S)
   myIMS.Add(S,B);
 #ifdef OCCT_DEBUG
   if (TBOX) {
-    DumpB(Box(S));cout<<"; # HBT::AddBox "<<Index(S)<<" : ";TopAbs::Print(t,cout);cout<<"\n";cout<<endl;
+    DumpB(Box(S));std::cout<<"; # HBT::AddBox "<<Index(S)<<" : ";TopAbs::Print(t,std::cout);std::cout<<"\n";std::cout<<std::endl;
   }
 #endif
 }
@@ -232,13 +232,13 @@ void TopOpeBRepTool_HBoxTool::DumpB
 #ifdef OCCT_DEBUG
 (const Bnd_Box& B)
 {
-  if      (B.IsVoid()) cout<<"# IsVoid";
-  else if (B.IsWhole()) cout<<"# IsWhole";
+  if      (B.IsVoid()) std::cout<<"# IsVoid";
+  else if (B.IsWhole()) std::cout<<"# IsWhole";
   else {
     Standard_Real x,y,z,X,Y,Z; 
     B.Get(x,y,z,X,Y,Z);
-    cout<<"bounding "<<x<<" "<<y<<" "<<z<<" "<<X<<" "<<Y<<" "<<Z;
-    cout.flush();
+    std::cout<<"bounding "<<x<<" "<<y<<" "<<z<<" "<<X<<" "<<Y<<" "<<Z;
+    std::cout.flush();
   }
 }
 #else
index 6ba7fe1..467c4ef 100644 (file)
@@ -216,7 +216,7 @@ Standard_Boolean TopOpeBRepTool::PurgeClosingEdges(const TopoDS_Face& Fin, const
 
 #ifdef OCCT_DEBUG
   Standard_Boolean trc =  TopOpeBRepTool_GettracePURGE();
-  if (trc) cout<<"\n* PurgeClosingEdges:\n\n";
+  if (trc) std::cout<<"\n* PurgeClosingEdges:\n\n";
 #endif
   TopOpeBRepTool_CORRISO CORRISO(Fin);  
   Standard_Real tolF = BRep_Tool::Tolerance(Fin);
@@ -264,7 +264,7 @@ Standard_Boolean TopOpeBRepTool::PurgeClosingEdges(const TopoDS_Face& Fin, const
     }
     
 #ifdef OCCT_DEBUG
-    if (trc && topurge) cout<<"found FAULTY edge = ed"<<endl;
+    if (trc && topurge) std::cout<<"found FAULTY edge = ed"<<std::endl;
 #endif
   } // exw
   return Standard_True;
@@ -411,7 +411,7 @@ static Standard_Boolean FUN_correctDegeneratedE
     // redefinition des parametres de v1,v2 de Ein tels que des parametres de 
 #ifdef OCCT_DEBUG
     if (TopOpeBRepTool_GettraceCORRISO()) {
-      cout<<"FUN_correctDegeneratedE : !mmd NYI"<<endl;
+      std::cout<<"FUN_correctDegeneratedE : !mmd NYI"<<std::endl;
     }
 #endif
     ok = Standard_False;
@@ -601,7 +601,7 @@ Standard_Boolean TopOpeBRepTool::CorrectONUVISO(const TopoDS_Face& Fin, TopoDS_F
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepTool_GettraceCORRISO();
-  if (trc) cout<<"\n####    CorrectONUVISO    ####\n\n";
+  if (trc) std::cout<<"\n####    CorrectONUVISO    ####\n\n";
   debcorrUV();
 #endif
 
@@ -704,8 +704,8 @@ Standard_Boolean TopOpeBRepTool::CorrectONUVISO(const TopoDS_Face& Fin, TopoDS_F
   
 #ifdef OCCT_DEBUG
   if (trc) {
-    cout<<"CorrectONUVISO ";
-    cout<<"iso faulty "<<tocorrectisoe<<" deg faulty "<<tocorrectdege<<endl;;
+    std::cout<<"CorrectONUVISO ";
+    std::cout<<"iso faulty "<<tocorrectisoe<<" deg faulty "<<tocorrectdege<<std::endl;;
   }
   debcorrUV();
 #endif
@@ -728,7 +728,7 @@ Standard_Boolean TopOpeBRepTool::CorrectONUVISO(const TopoDS_Face& Fin, TopoDS_F
       
 #ifdef DRAW
       if (trc) { 
-       cout<<"TopOpeBRepTool correctONUVISO : faulty iso edge"<<endl;
+       std::cout<<"TopOpeBRepTool correctONUVISO : faulty iso edge"<<std::endl;
        FUN_tool_draw("fyf",Fsp);FUN_tool_draw("fyisoe",fyisoe);
       }
 #endif
@@ -752,7 +752,7 @@ Standard_Boolean TopOpeBRepTool::CorrectONUVISO(const TopoDS_Face& Fin, TopoDS_F
       
 #ifdef DRAW
       if (trc) { 
-       cout<<"TopOpeBRepTool correctONUVISO : faulty deg edge"<<endl;
+       std::cout<<"TopOpeBRepTool correctONUVISO : faulty deg edge"<<std::endl;
        FUN_tool_draw("fyf",Fsp);FUN_tool_draw("fydege",fydege);
       }
 #endif
index 42866a4..ca0c9d2 100644 (file)
@@ -69,7 +69,7 @@ static void FUN_Raise()
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepTool_GettraceREGUSO(); 
-  if (trc) cout<<"***** Failure in REGUS **********"<<endl;
+  if (trc) std::cout<<"***** Failure in REGUS **********"<<std::endl;
 //  throw Standard_Failure("REGUS");
 #endif
 }
@@ -172,7 +172,7 @@ Standard_Boolean TopOpeBRepTool_REGUS::MapS()
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepTool_GettraceREGUSO();
   Standard_Integer ish = FUN_adds(S());
-  if (trc) cout<<"**    MAPPING    ** shape"<<ish<<endl;
+  if (trc) std::cout<<"**    MAPPING    ** shape"<<ish<<std::endl;
 #endif
 
   // mymapeFs, myoldnF : 
@@ -200,10 +200,10 @@ Standard_Boolean TopOpeBRepTool_REGUS::MapS()
     if (nf > 2) mymapemult.Add(e);
 #ifdef OCCT_DEBUG
     if (trc) {
-      cout <<"co(e"<<FUN_adds(e)<<")= ";
+      std::cout <<"co(e"<<FUN_adds(e)<<")= ";
       TopTools_ListIteratorOfListOfShape it(lof);
-      for (; it.More(); it.Next())cout<<" f"<<FUN_adds(it.Value());
-      cout<<endl;}
+      for (; it.More(); it.Next())std::cout<<" f"<<FUN_adds(it.Value());
+      std::cout<<std::endl;}
 #endif
   }//itm(mymapeFs)
   return Standard_True;
@@ -229,7 +229,7 @@ Standard_Boolean TopOpeBRepTool_REGUS::WireToFace(const TopoDS_Face& Fanc, const
   Standard_Boolean classifok = classi.Classilist(nWs,mapWlow);
   if (!classifok) {
 #ifdef OCCT_DEBUG
-    if (trc) cout<<"** classif fails"<<endl;
+    if (trc) std::cout<<"** classif fails"<<std::endl;
 #endif
     return Standard_False;
   }
@@ -237,7 +237,7 @@ Standard_Boolean TopOpeBRepTool_REGUS::WireToFace(const TopoDS_Face& Fanc, const
   Standard_Boolean facesbuilt = TopOpeBRepTool_TOOL::WireToFace(Fanc, mapWlow, nFs); 
   if (!facesbuilt) {
 #ifdef OCCT_DEBUG
-    if (trc) cout<<"** facesbuilt fails"<<endl;
+    if (trc) std::cout<<"** facesbuilt fails"<<std::endl;
 #endif
     return Standard_False; 
   }
@@ -347,7 +347,7 @@ Standard_Boolean TopOpeBRepTool_REGUS::SplitFaces()
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepTool_GettraceREGUSO();
   Standard_Integer ish = FUN_adds(S());
-  if (trc) cout<<"**    SPLITTING FACES    ** shape"<<ish<<endl;
+  if (trc) std::cout<<"**    SPLITTING FACES    ** shape"<<ish<<std::endl;
 #endif
   TopExp_Explorer exf(myS, TopAbs_FACE);
   for (; exf.More(); exf.Next()){
@@ -387,10 +387,10 @@ Standard_Boolean TopOpeBRepTool_REGUS::SplitFaces()
 
 #ifdef OCCT_DEBUG
     if (trc)  {
-      cout <<"split(f"<<FUN_adds(f)<<")= ";
+      std::cout <<"split(f"<<FUN_adds(f)<<")= ";
       TopTools_ListIteratorOfListOfShape it(lfsp);
-      for (; it.More(); it.Next()) cout<<" f"<<FUN_adds(it.Value());
-      cout<<endl;}
+      for (; it.More(); it.Next()) std::cout<<" f"<<FUN_adds(it.Value());
+      std::cout<<std::endl;}
 #endif
   }//exf(myS)
   return Standard_True;  
@@ -434,7 +434,7 @@ Standard_Boolean TopOpeBRepTool_REGUS::REGU()
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepTool_GettraceREGUSO();
   Standard_Integer ishe = FUN_adds(myS);
-  if (trc) cout<<"**    REGU    **"<<ishe<<endl;
+  if (trc) std::cout<<"**    REGU    **"<<ishe<<std::endl;
 #endif
   TopTools_ListOfShape Splits;
   Standard_Boolean toregu = !mymapemult.IsEmpty() || (mynF != myoldnF);
@@ -466,9 +466,9 @@ Standard_Boolean TopOpeBRepTool_REGUS::REGU()
     Standard_Boolean tr=Standard_False;
     if (tr) {
       TopTools_MapIteratorOfMapOfShape it(myedstoconnect);
-      cout<<"still to connect : ";
-      for (; it.More(); it.Next()) cout<<" e"<<FUN_adds(it.Key());
-      cout<<endl;
+      std::cout<<"still to connect : ";
+      for (; it.More(); it.Next()) std::cout<<" e"<<FUN_adds(it.Key());
+      std::cout<<std::endl;
     }
 #endif
 
@@ -480,7 +480,7 @@ Standard_Boolean TopOpeBRepTool_REGUS::REGU()
       Standard_Boolean unchanged = (nFcur==myoldnF) && (mynF==myoldnF);
       if (unchanged) {
 #ifdef OCCT_DEBUG
-       if (trc) cout<<"#** shell"<<ishe<<" valid\n";
+       if (trc) std::cout<<"#** shell"<<ishe<<" valid\n";
 #endif
        return Standard_False; // nyi analysis if we should raise or not  
       }
@@ -488,9 +488,9 @@ Standard_Boolean TopOpeBRepTool_REGUS::REGU()
        TopoDS_Shell newShe; TopOpeBRepTool_TOOL::MkShell(mylFinBlock,newShe);
        Splits.Append(newShe);
 #ifdef OCCT_DEBUG
-       if (trc) {cout<<"#** shell "<<ishe<<" gives new shell "<<FUN_adds(newShe)<<endl;
-                 for (TopTools_ListIteratorOfListOfShape it(mylFinBlock); it.More(); it.Next()) cout <<";dins f"<<FUN_adds(it.Value());
-                 cout<<endl<<endl;}
+       if (trc) {std::cout<<"#** shell "<<ishe<<" gives new shell "<<FUN_adds(newShe)<<std::endl;
+                 for (TopTools_ListIteratorOfListOfShape it(mylFinBlock); it.More(); it.Next()) std::cout <<";dins f"<<FUN_adds(it.Value());
+                 std::cout<<std::endl<<std::endl;}
 #endif
        mylFinBlock.Clear(); 
        startBlock = Standard_True;
@@ -562,7 +562,7 @@ Standard_Boolean TopOpeBRepTool_REGUS::InitBlock()
     myf = lof.First(); 
 #ifdef OCCT_DEBUG
     Standard_Boolean trc = TopOpeBRepTool_GettraceREGUSO(); 
-    if (trc) cout<<"* Block : first face = f"<<FUN_adds(myf)<<endl;
+    if (trc) std::cout<<"* Block : first face = f"<<FUN_adds(myf)<<std::endl;
 #endif 
     return Standard_True;
   }
@@ -646,7 +646,7 @@ Standard_Boolean TopOpeBRepTool_REGUS::NextinBlock()
     if (nf == 0) {myedstoconnect.Remove(e); mymapeFs.UnBind(e);
                  continue;}
 #ifdef OCCT_DEBUG
-    if (trc) {cout<<"e"<<FUN_adds(e)<<" on "<<nf<<" untouched f:"<<endl;}
+    if (trc) {std::cout<<"e"<<FUN_adds(e)<<" on "<<nf<<" untouched f:"<<std::endl;}
 #endif
     if (nf == 1) myf = lof.First();
     else {
@@ -655,7 +655,7 @@ Standard_Boolean TopOpeBRepTool_REGUS::NextinBlock()
       myf = ffound;
     }
 #ifdef OCCT_DEBUG
-    if (trc) cout<<"->myf = f"<<FUN_adds(myf)<<endl;
+    if (trc) std::cout<<"->myf = f"<<FUN_adds(myf)<<std::endl;
 #endif
     return Standard_True;
   }//itm(myedstoconnect)
@@ -727,7 +727,7 @@ Standard_Boolean TopOpeBRepTool_REGUS::NearestF(const TopoDS_Edge& e, const TopT
 
     Standard_Boolean oppo = TopOpeBRepTool_TOOL::Matter(x,y,xxfound,ntfound,tola, angfound);
 #ifdef OCCT_DEBUG
-    if (trc&&!oppo) cout<<"   f"<<FUN_adds(fref)<<",f"<<FUN_adds(ffound)<<" not oppo"<<endl;
+    if (trc&&!oppo) std::cout<<"   f"<<FUN_adds(fref)<<",f"<<FUN_adds(ffound)<<" not oppo"<<std::endl;
 #endif
     if (!oppo) {ffound.Nullify(); continue;}
     
@@ -739,7 +739,7 @@ Standard_Boolean TopOpeBRepTool_REGUS::NearestF(const TopoDS_Edge& e, const TopT
       if (!ok) {FUN_Raise(); return Standard_False;}
     }
 #ifdef OCCT_DEBUG
-    if (trc) cout<<"   ang(f"<<FUN_adds(fref)<<",f"<<FUN_adds(ffound)<<")="<<angfound<<endl;
+    if (trc) std::cout<<"   ang(f"<<FUN_adds(fref)<<",f"<<FUN_adds(ffound)<<")="<<angfound<<std::endl;
 #endif
     break;
   }
@@ -758,7 +758,7 @@ Standard_Boolean TopOpeBRepTool_REGUS::NearestF(const TopoDS_Edge& e, const TopT
     Standard_Real angi = 0; 
     Standard_Boolean oppo = TopOpeBRepTool_TOOL::Matter(x,y,xxi,nti,tola, angi);
 #ifdef OCCT_DEBUG
-    if (trc&&!oppo) cout<<"   f"<<FUN_adds(fref)<<",f"<<FUN_adds(fi)<<" not oppo"<<endl;
+    if (trc&&!oppo) std::cout<<"   f"<<FUN_adds(fref)<<",f"<<FUN_adds(fi)<<" not oppo"<<std::endl;
 #endif
     if (!oppo) continue;    
 
@@ -770,7 +770,7 @@ Standard_Boolean TopOpeBRepTool_REGUS::NearestF(const TopoDS_Edge& e, const TopT
       if (!ok) {FUN_Raise(); return Standard_False;}
     }
 #ifdef OCCT_DEBUG
-    if (trc) cout<<"   ang(f"<<FUN_adds(fref)<<",f"<<FUN_adds(fi)<<")="<<angi<<endl;
+    if (trc) std::cout<<"   ang(f"<<FUN_adds(fref)<<",f"<<FUN_adds(fi)<<")="<<angi<<std::endl;
 #endif
     if (angi > angfound) continue; 
     angfound = angi;
index 66b5767..a03315b 100644 (file)
@@ -52,11 +52,11 @@ static TopTools_IndexedMapOfShape STATIC_mapf, STATIC_mapw, STATIC_mapv;
 static TopTools_IndexedMapOfOrientedShape STATIC_mapeds;
 void FUN_tro(const Standard_Integer i)
 {
-  if      (i==1) cout<<"FORWARD";
-  else if (i==2) cout<<"REVERSED";
-  else if (i==3) cout<<"INTERNAL";
-  else if (i==4) cout<<"EXTERNAL";
-  else if (i==5) cout<<"CLOSING";
+  if      (i==1) std::cout<<"FORWARD";
+  else if (i==2) std::cout<<"REVERSED";
+  else if (i==3) std::cout<<"INTERNAL";
+  else if (i==4) std::cout<<"EXTERNAL";
+  else if (i==5) std::cout<<"CLOSING";
 }
 Standard_EXPORT Standard_Integer FUN_adds(const TopoDS_Shape& s) {
   TopAbs_ShapeEnum typ = s.ShapeType();
@@ -83,7 +83,7 @@ void FUN_tool_Add(TopTools_DataMapOfShapeListOfShape& map,const TopoDS_Shape& ke
 static void FUN_Raise() {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepTool_GettraceREGUFA();
-  if (trc) cout<<"*** Raise REGUW"<<endl;
+  if (trc) std::cout<<"*** Raise REGUW"<<std::endl;
 //  throw Standard_Failure("REGUW");
 #endif  
 }
@@ -169,7 +169,7 @@ Standard_Boolean TopOpeBRepTool_REGUW::SplitEds()
   if (!HasInit()) throw Standard_Failure("TopOpeBRepTool_REGUW : NO INIT");
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepTool_GettraceREGUFA();
-  if (trc) cout<<"**    SPLITTING EDGES    **"<<endl;
+  if (trc) std::cout<<"**    SPLITTING EDGES    **"<<std::endl;
 #endif
 
   TopTools_IndexedMapOfShape mehasIv;
@@ -190,7 +190,7 @@ Standard_Boolean TopOpeBRepTool_REGUW::SplitEds()
     else        issp = TopOpeBRepTool_TOOL::SplitE(e,splits);
     if (issp) hasnewsplits = Standard_True;
 #ifdef OCCT_DEBUG
-    if (trc) cout<<"e"<<FUN_adds(e)<<" gives splits ="<<endl;
+    if (trc) std::cout<<"e"<<FUN_adds(e)<<" gives splits ="<<std::endl;
 #endif
     if (!(issp || isdone)) continue; //nnnnnnnnnnnnnnnnnnnnnnnnnnnnnnyi
 
@@ -199,7 +199,7 @@ Standard_Boolean TopOpeBRepTool_REGUW::SplitEds()
     for (; ite.More(); ite.Next()){
       const TopoDS_Shape& esp = ite.Value();
 #ifdef OCCT_DEBUG
-      if (trc) {cout<<" e"<<FUN_adds(esp);}
+      if (trc) {std::cout<<" e"<<FUN_adds(esp);}
 #endif
       TopExp_Explorer exvv(esp, TopAbs_VERTEX);
       for (; exvv.More(); exvv.Next()){
@@ -212,7 +212,7 @@ Standard_Boolean TopOpeBRepTool_REGUW::SplitEds()
       }//exvv(exvv,VERTEX)
     }//ite(splits)
 #ifdef OCCT_DEBUG
-    if (trc) cout<<endl;
+    if (trc) std::cout<<std::endl;
 #endif
   }
   return Standard_True;
@@ -280,7 +280,7 @@ Standard_Boolean TopOpeBRepTool_REGUW::MapS()
   if (!HasInit()) throw Standard_Failure("TopOpeBRepTool_REGUW : NO INIT");
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepTool_GettraceREGUFA();
-  if (trc) cout<<"**    MAPPING    **"<<endl;
+  if (trc) std::cout<<"**    MAPPING    **"<<std::endl;
 #endif
   
   // Prequesitories :
@@ -355,22 +355,22 @@ Standard_Boolean TopOpeBRepTool_REGUW::MapS()
   if (trc) {
     for (Standard_Integer iv = 1; iv <= mymapvEds.Extent(); iv++) {
       const TopoDS_Vertex& v = TopoDS::Vertex(mymapvEds.FindKey(iv));
-      cout <<"#v"<<FUN_adds(v)<<" :\n";
+      std::cout <<"#v"<<FUN_adds(v)<<" :\n";
       const TopOpeBRepTool_connexity& co = mymapvEds(iv);
       for (Standard_Integer i=1; i<=5; i++)    {
        TopTools_ListOfShape eds; Standard_Integer ieds = co.Item(i,eds);
        if (ieds == 0) continue;
-       cout<<" is ";FUN_tro(i);cout<<" in ";
+       std::cout<<" is ";FUN_tro(i);std::cout<<" in ";
        TopTools_ListIteratorOfListOfShape ite(eds);
        for (; ite.More(); ite.Next())
          {const TopoDS_Edge& e = TopoDS::Edge(ite.Value());
-          cout<<"e"<<FUN_adds(e);FUN_tool_tori(e.Orientation());
-          TopoDS_Vertex vclo; Standard_Boolean cloE = TopOpeBRepTool_TOOL::ClosedE(e,vclo); if (cloE) cout<<"closed";
-          Standard_Boolean dgE = BRep_Tool::Degenerated(e); if (dgE) cout<<"degenerated";
+          std::cout<<"e"<<FUN_adds(e);FUN_tool_tori(e.Orientation());
+          TopoDS_Vertex vclo; Standard_Boolean cloE = TopOpeBRepTool_TOOL::ClosedE(e,vclo); if (cloE) std::cout<<"closed";
+          Standard_Boolean dgE = BRep_Tool::Degenerated(e); if (dgE) std::cout<<"degenerated";
           Standard_Boolean iscE = TopOpeBRepTool_TOOL::IsClosingE(e,myCORRISO.S(),Fref()); 
-          if (iscE) cout<<"closing";
-          cout<<" ";}
-       cout<<endl;     
+          if (iscE) std::cout<<"closing";
+          std::cout<<" ";}
+       std::cout<<std::endl;   
       }//i=1..5
     }
   }//trc
@@ -513,9 +513,9 @@ Standard_Boolean TopOpeBRepTool_REGUW::InitBlock()
 
 #ifdef OCCT_DEBUG
   if (trc) {
-    cout<<endl<<" v0   = v"<<FUN_adds(myv0)<<" p2d0 = ("<<myp2d0.X()<<" "<<myp2d0.Y()<<")"<<endl;
-    cout<<" vcur = v"<<FUN_adds(myv)<<"  p2d = ("<<myp2d.X()<<" "<<myp2d.Y()<<")"<<endl;
-    cout<<" ecur = e"<<FUN_adds(myed)<<endl;
+    std::cout<<std::endl<<" v0   = v"<<FUN_adds(myv0)<<" p2d0 = ("<<myp2d0.X()<<" "<<myp2d0.Y()<<")"<<std::endl;
+    std::cout<<" vcur = v"<<FUN_adds(myv)<<"  p2d = ("<<myp2d.X()<<" "<<myp2d.Y()<<")"<<std::endl;
+    std::cout<<" ecur = e"<<FUN_adds(myed)<<std::endl;
   }
 #endif
   return Standard_True;
@@ -553,7 +553,7 @@ Standard_Boolean TopOpeBRepTool_REGUW::NearestE(const TopTools_ListOfShape& loe,
   if (iStep == 1) angfound = TopOpeBRepTool_TOOL::Matter(mytg2d,tg2dfound);
   else            angfound = 2.*M_PI - TopOpeBRepTool_TOOL::Matter(tg2dfound,mytg2d);
 #ifdef OCCT_DEBUG
-  if (trc) cout<<"ang(e"<<FUN_adds(myed)<<",e"<<FUN_adds(efound)<<")="<<angfound<<endl;
+  if (trc) std::cout<<"ang(e"<<FUN_adds(myed)<<",e"<<FUN_adds(efound)<<")="<<angfound<<std::endl;
 #endif
 
   // purpose : finding out <efound> /
@@ -576,7 +576,7 @@ Standard_Boolean TopOpeBRepTool_REGUW::NearestE(const TopTools_ListOfShape& loe,
     else            angi = 2.*M_PI - TopOpeBRepTool_TOOL::Matter(tg2di,mytg2d);
     Standard_Boolean eq = Abs(angi-angfound) < tola;
 #ifdef OCCT_DEBUG
-    if (trc) cout<<"ang(e"<<FUN_adds(myed)<<",e"<<FUN_adds(ei)<<")="<<angi<<endl;
+    if (trc) std::cout<<"ang(e"<<FUN_adds(myed)<<",e"<<FUN_adds(ei)<<")="<<angi<<std::endl;
 #endif
     if (eq) {
       FUN_Raise(); 
@@ -598,7 +598,7 @@ Standard_Boolean TopOpeBRepTool_REGUW::NextinBlock()
   if (!HasInit()) throw Standard_Failure("TopOpeBRepTool_REGUW : NO INIT");
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepTool_GettraceREGUFA();
-  if (trc) cout<<endl<<" vcur = v"<<FUN_adds(myv)<<"   p2d = ("<<myp2d.X()<<" "<<myp2d.Y()<<")"<<endl;
+  if (trc) std::cout<<std::endl<<" vcur = v"<<FUN_adds(myv)<<"   p2d = ("<<myp2d.X()<<" "<<myp2d.Y()<<")"<<std::endl;
 #endif
 
   Standard_Integer iv0e1 = (iStep == 1) ? REVERSED : FORWARD;
@@ -613,13 +613,13 @@ Standard_Boolean TopOpeBRepTool_REGUW::NextinBlock()
   while (ite.More()) {
     const TopoDS_Edge& e = TopoDS::Edge(ite.Value());
 #ifdef OCCT_DEBUG
-    if (trc) cout<<" e"<<FUN_adds(e);
+    if (trc) std::cout<<" e"<<FUN_adds(e);
 #endif
 
     Standard_Boolean issame = e.IsSame(myed);
     if (issame) {//xpu240299 FRA60275, fsp4
 #ifdef OCCT_DEBUG
-      if (trc) cout<<" is same : not valid"<<endl;
+      if (trc) std::cout<<" is same : not valid"<<std::endl;
 #endif
       le.Remove(ite); continue;
     }
@@ -635,8 +635,8 @@ Standard_Boolean TopOpeBRepTool_REGUW::NextinBlock()
     if (!samep2d) le.Remove(ite); 
     else ite.Next();
 #ifdef OCCT_DEBUG
-    if (trc) {if (samep2d) cout<<" valid"<<endl;
-    else         cout<<" not valid"<<endl;}
+    if (trc) {if (samep2d) std::cout<<" valid"<<std::endl;
+    else         std::cout<<" not valid"<<std::endl;}
 #endif
   }//ite(le)
   ne = le.Extent();
@@ -667,8 +667,8 @@ Standard_Boolean TopOpeBRepTool_REGUW::NextinBlock()
 
 #ifdef OCCT_DEBUG
   if (trc) {
-    cout<<" vcur = v"<<FUN_adds(myv)<<"  p2d = ("<<myp2d.X()<<" "<<myp2d.Y()<<")"<<endl;
-    cout<<" ecur = e"<<FUN_adds(myed)<<endl;
+    std::cout<<" vcur = v"<<FUN_adds(myv)<<"  p2d = ("<<myp2d.X()<<" "<<myp2d.Y()<<")"<<std::endl;
+    std::cout<<" ecur = e"<<FUN_adds(myed)<<std::endl;
   }
 #endif
   return Standard_True;
@@ -691,7 +691,7 @@ Standard_Boolean TopOpeBRepTool_REGUW::REGU(const Standard_Integer istep,
   iStep = istep;
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepTool_GettraceREGUFA();
-  if (trc) cout<<endl<<"**    REGU    istep=**"<<iStep<<endl;
+  if (trc) std::cout<<std::endl<<"**    REGU    istep=**"<<iStep<<std::endl;
 #endif
 
   Splits.Clear();
@@ -752,7 +752,7 @@ Standard_Boolean TopOpeBRepTool_REGUW::REGU(const Standard_Integer istep,
       Standard_Boolean ok = InitBlock();
       if (!ok) {
 #ifdef OCCT_DEBUG
-      if (trc) cout<<"** InitBlock fails"<<endl;
+      if (trc) std::cout<<"** InitBlock fails"<<std::endl;
 #endif    
        {FUN_Raise(); return Standard_False;}      
       }
@@ -794,7 +794,7 @@ Standard_Boolean TopOpeBRepTool_REGUW::REGU(const Standard_Integer istep,
       Standard_Boolean onewok = FINI && loW.IsEmpty() && !hasnewsplits;
       if (onewok){
 #ifdef OCCT_DEBUG      
-       if (trc) cout<<"wire "<<FUN_adds(Scur)<<" is found valid\n";
+       if (trc) std::cout<<"wire "<<FUN_adds(Scur)<<" is found valid\n";
 #endif
        return Standard_True;
       }//onewok
@@ -803,15 +803,15 @@ Standard_Boolean TopOpeBRepTool_REGUW::REGU(const Standard_Integer istep,
       if (wiok) loW.Append(newW);
       else      {
 #ifdef OCCT_DEBUG
-      if (trc) cout<<"** FUN_tool_MakeWire fails"<<endl;
+      if (trc) std::cout<<"** FUN_tool_MakeWire fails"<<std::endl;
 #endif   
        {FUN_Raise(); return Standard_False;} 
       }
 #ifdef OCCT_DEBUG
-      if (trc) {cout<<"#->new wire = wi"<<FUN_adds(newW)<<" = ";
+      if (trc) {std::cout<<"#->new wire = wi"<<FUN_adds(newW)<<" = ";
                for (TopTools_ListIteratorOfListOfShape it(loEcur); it.More(); it.Next())
-                 cout<<" e"<<FUN_adds(it.Value());
-               cout<<"\n\n";}  
+                 std::cout<<" e"<<FUN_adds(it.Value());
+               std::cout<<"\n\n";}  
 #endif      
       isinit0 = Standard_True; 
       loEcur.Clear(); 
@@ -829,7 +829,7 @@ Standard_Boolean TopOpeBRepTool_REGUW::REGU(const Standard_Integer istep,
     Standard_Boolean gotonext = NextinBlock();
     if (!gotonext) {
 #ifdef OCCT_DEBUG
-      if (trc) cout<<"** NextinBlock fails"<<endl;
+      if (trc) std::cout<<"** NextinBlock fails"<<std::endl;
 #endif   
       {FUN_Raise(); return Standard_False;}
     }
@@ -930,10 +930,10 @@ Standard_Boolean TopOpeBRepTool_REGUW::AddNewConnexity(const TopoDS_Vertex& v, c
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepTool_GettraceREGUFA(); 
   if (trc) 
-    {cout<<"** setting new connexity : v"<<FUN_adds(v)<<" is ";FUN_tro(OriKey);
-     cout<<" in  e"<<FUN_adds(e);FUN_tool_tori(e.Orientation());
-     TopoDS_Vertex vclo; Standard_Boolean cloE = TopOpeBRepTool_TOOL::ClosedE(e,vclo); if (cloE) cout<<" closed";
-     Standard_Boolean dgE = BRep_Tool::Degenerated(e); if (dgE) cout<<" degenerated";cout<<endl;}
+    {std::cout<<"** setting new connexity : v"<<FUN_adds(v)<<" is ";FUN_tro(OriKey);
+     std::cout<<" in  e"<<FUN_adds(e);FUN_tool_tori(e.Orientation());
+     TopoDS_Vertex vclo; Standard_Boolean cloE = TopOpeBRepTool_TOOL::ClosedE(e,vclo); if (cloE) std::cout<<" closed";
+     Standard_Boolean dgE = BRep_Tool::Degenerated(e); if (dgE) std::cout<<" degenerated";std::cout<<std::endl;}
 #endif
   return Standard_True;  
 }
@@ -959,9 +959,9 @@ Standard_Boolean TopOpeBRepTool_REGUW::RemoveOldConnexity(const TopoDS_Vertex& v
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepTool_GettraceREGUFA(); 
   if (trc) 
-    {cout<<"** removing old connexity : v"<<FUN_adds(v)<<" for e"<<FUN_adds(e);FUN_tool_tori(e.Orientation());
-     TopoDS_Vertex vclo; Standard_Boolean cloE = TopOpeBRepTool_TOOL::ClosedE(e,vclo); if (cloE) cout<<" closed";
-     Standard_Boolean dgE = BRep_Tool::Degenerated(e); if (dgE) cout<<" degenerated";cout<<endl;}
+    {std::cout<<"** removing old connexity : v"<<FUN_adds(v)<<" for e"<<FUN_adds(e);FUN_tool_tori(e.Orientation());
+     TopoDS_Vertex vclo; Standard_Boolean cloE = TopOpeBRepTool_TOOL::ClosedE(e,vclo); if (cloE) std::cout<<" closed";
+     Standard_Boolean dgE = BRep_Tool::Degenerated(e); if (dgE) std::cout<<" degenerated";std::cout<<std::endl;}
 #endif
   return Standard_True;  
 }
index b48b89d..c61b52d 100644 (file)
@@ -57,13 +57,13 @@ Standard_EXPORT void FUN_tool_coutsta(const Standard_Integer& sta, const Standar
 {
   switch (sta) {
   case SAME:
-    cout<<i1<<" gives SAME bnd with "<<i2<<endl; break;
+    std::cout<<i1<<" gives SAME bnd with "<<i2<<std::endl; break;
   case DIFF:
-    cout<<i1<<" gives  OUT bnd with "<<i2<<endl; break;
+    std::cout<<i1<<" gives  OUT bnd with "<<i2<<std::endl; break;
   case oneINtwo:
-    cout<<i1<<" is IN "<<i2<<endl; break;
+    std::cout<<i1<<" is IN "<<i2<<std::endl; break;
   case twoINone:
-    cout<<i2<<" is IN "<<i1<<endl; break;
+    std::cout<<i2<<" is IN "<<i1<<std::endl; break;
   }
 }
 #endif
@@ -196,7 +196,7 @@ Standard_Boolean TopOpeBRepTool::Regularize(const TopoDS_Face& theFace,
   Standard_Boolean trc = Standard_False;
   if (trc) {
     for (Standard_Integer i = 1; i <= 2; i++)
-      cout<<"B("<<i<<") = ("<<UV(i,1)<<" "<<UV(i,3)<<" "<<UV(i,2)<<" "<<UV(i,4)<<")"<<endl;
+      std::cout<<"B("<<i<<") = ("<<UV(i,1)<<" "<<UV(i,3)<<" "<<UV(i,2)<<" "<<UV(i,4)<<")"<<std::endl;
   }
 #endif
 
@@ -339,7 +339,7 @@ Standard_EXPORT Standard_Boolean FUN_tool_ClassifW(const TopoDS_Face& F,
 
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepTool_GettraceREGUFA();
-  if (trc) cout<<"** ClassifW :"<<endl;
+  if (trc) std::cout<<"** ClassifW :"<<std::endl;
   STATIC_mapw.Clear();    
 #endif  
 
@@ -406,7 +406,7 @@ Standard_EXPORT Standard_Boolean FUN_tool_ClassifW(const TopoDS_Face& F,
        nite++;
        if ((sta == SAME)||(sta == UNKNOWN)) sta = FUN_tool_classiwithp2d(wi);
 #ifdef OCCT_DEBUG      
-       if (trc) {cout<<"#wi :";FUN_tool_coutsta(sta,FUN_adds(wi(1)),FUN_adds(wi(2)));}
+       if (trc) {std::cout<<"#wi :";FUN_tool_coutsta(sta,FUN_adds(wi(1)),FUN_adds(wi(2)));}
 #endif         
        if ((sta == SAME)||(sta == UNKNOWN)) return Standard_False;      
        if ((sta == DIFF) && itmap.More()) {OUTall = Standard_True; continue;}// w(1) OUT w(2)    
@@ -491,7 +491,7 @@ Standard_EXPORT Standard_Boolean FUN_tool_ClassifW(const TopoDS_Face& F,
       osta = FUN_tool_classiBnd2d(OBnd2d);
       if ((osta == SAME)||(osta == UNKNOWN)) osta = FUN_tool_classiwithp2d(Owi);
 #ifdef OCCT_DEBUG      
-      if (trc) {cout<<"wi : "; FUN_tool_coutsta(osta,FUN_adds(Owi(1)),FUN_adds(Owi(2)));}
+      if (trc) {std::cout<<"wi : "; FUN_tool_coutsta(osta,FUN_adds(Owi(1)),FUN_adds(Owi(2)));}
 #endif         
       if ((osta == SAME)||(osta == UNKNOWN)) return Standard_False;      
       if (osta == DIFF)                    continue; // Ow(1), Ow(2) are disjoint              
@@ -541,7 +541,7 @@ Standard_EXPORT Standard_Boolean FUN_tool_ClassifW(const TopoDS_Face& F,
          // Classifying wi(1)  with wi(2) :
          sta = FUN_tool_classiBnd2d(Bnd2d); 
 #ifdef OCCT_DEBUG
-         if (trc) {cout<<"wi : "; FUN_tool_coutsta(sta,STATIC_mapw.FindIndex(wi(1)),
+         if (trc) {std::cout<<"wi : "; FUN_tool_coutsta(sta,STATIC_mapw.FindIndex(wi(1)),
                                                    STATIC_mapw.FindIndex(wi(2)));}
 #endif
          if ((sta == SAME)||(sta == UNKNOWN)) sta = FUN_tool_classiwithp2d(wi);
@@ -579,7 +579,7 @@ Standard_EXPORT Standard_Boolean FUN_tool_MakeFaces(const TopoDS_Face& theFace,
 {
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepTool_GettraceREGUFA();
-  if (trc) cout<<"** MakeFaces :"<<endl;
+  if (trc) std::cout<<"** MakeFaces :"<<std::endl;
 #endif
   Standard_Boolean toreverse = M_REVERSED(theFace.Orientation());
   TopoDS_Face F = TopoDS::Face(theFace.Oriented(TopAbs_FORWARD));
@@ -603,10 +603,10 @@ Standard_EXPORT Standard_Boolean FUN_tool_MakeFaces(const TopoDS_Face& theFace,
 
 #ifdef OCCT_DEBUG
   if (trc) {
-    cout<<"sp(fa"<<FUN_adds(theFace)<<")=";
+    std::cout<<"sp(fa"<<FUN_adds(theFace)<<")=";
     TopTools_ListIteratorOfListOfShape it(aListOfFaces);
-    for (; it.More(); it.Next()) cout<<" fa"<<FUN_adds(it.Value());
-    cout<<endl;
+    for (; it.More(); it.Next()) std::cout<<" fa"<<FUN_adds(it.Value());
+    std::cout<<std::endl;
   }
 #endif
 
@@ -619,7 +619,7 @@ Standard_EXPORT Standard_Boolean FUN_tool_ClassifW(const TopoDS_Face& F,
 {  
 #ifdef OCCT_DEBUG
   Standard_Boolean trc = TopOpeBRepTool_GettraceREGUFA();
-  if (trc) cout<<"** ClassifW :"<<endl;
+  if (trc) std::cout<<"** ClassifW :"<<std::endl;
 #endif  
   Standard_Real tolF = BRep_Tool::Tolerance(F);
   Standard_Real toluv = TopOpeBRepTool_TOOL::TolUV(F,tolF);
@@ -698,15 +698,15 @@ Standard_EXPORT Standard_Boolean FUN_tool_ClassifW(const TopoDS_Face& F,
       TopTools_ListIteratorOfListOfShape itw(ldone);
       for (; itw.More(); itw.Next()) mapdone.Add(itw.Value());
 #ifdef OCCT_DEBUG
-      if (trc) cout<<"old wires :wi"<<FUN_adds(Ow1)<<" is OUT all old wires"<<endl;
+      if (trc) std::cout<<"old wires :wi"<<FUN_adds(Ow1)<<" is OUT all old wires"<<std::endl;
 #endif      
       lOws.RemoveFirst();
     }//OUTall    
     else {
 #ifdef OCCT_DEBUG
-      if (trc) {cout<<"old wires :wi -> ";
+      if (trc) {std::cout<<"old wires :wi -> ";
                FUN_tool_coutsta(sta12,FUN_adds(Ow1),FUN_adds(Ow2));
-               cout<<endl;}
+               std::cout<<std::endl;}
 #endif
       const TopTools_ListOfShape& lw2 = mapOwNw.Find(Ow2);
      
@@ -733,9 +733,9 @@ Standard_EXPORT Standard_Boolean FUN_tool_ClassifW(const TopoDS_Face& F,
          Standard_Integer stabnd2d = CLASSI.ClassiBnd2d(wsma,wgre,toluv,Standard_True);
          Standard_Integer sta = CLASSI.Classip2d(wsma,wgre, stabnd2d);
 #ifdef OCCT_DEBUG
-      if (trc) {cout<<" wires :wi -> ";
+      if (trc) {std::cout<<" wires :wi -> ";
                FUN_tool_coutsta(sta,FUN_adds(wsma),FUN_adds(wgre));
-               cout<<endl;}
+               std::cout<<std::endl;}
 #endif
        
          if      (sta == DIFF) continue;
index 573f774..44c9d05 100644 (file)
@@ -79,10 +79,10 @@ Standard_Boolean TopOpeBRepTool_STATE::Get(const TopAbs_State S)
 
 void TopOpeBRepTool_STATE::Print()
 {
-  cout<<myname<<" : ";
-  cout<<"IN/OUT/ON/UNKNOWN = ";
-  cout<<Get(TopAbs_IN)<<Get(TopAbs_OUT)<<Get(TopAbs_ON)<<Get(TopAbs_UNKNOWN);
-  cout<<endl;
+  std::cout<<myname<<" : ";
+  std::cout<<"IN/OUT/ON/UNKNOWN = ";
+  std::cout<<Get(TopAbs_IN)<<Get(TopAbs_OUT)<<Get(TopAbs_ON)<<Get(TopAbs_UNKNOWN);
+  std::cout<<std::endl;
 }
 
 #endif
index a738177..76b4850 100644 (file)
@@ -560,7 +560,7 @@ void TopOpeBRepTool_ShapeClassifier::StateP2DReference
        else if (o == TopAbs_INTERNAL) myState = TopAbs_IN;
        else {
 #ifdef OCCT_DEBUG
-         cout<<"StateP2DReference o<>E,I"<<endl;
+         std::cout<<"StateP2DReference o<>E,I"<<std::endl;
 #endif
          break;
        }
@@ -738,8 +738,8 @@ static Standard_Boolean FindAPointInTheFace
       
       Standard_Real x=T.X();
       Standard_Real y=T.Y();
-      //-- cout<<"Param:"<<(c.IntervalFirst() + c.IntervalLast()) * param<<" U:"<<P.X()<<" V:"<<P.Y();
-      //-- cout<<" tguv x:"<<x<<" , y:"<<y<<endl;
+      //-- std::cout<<"Param:"<<(c.IntervalFirst() + c.IntervalLast()) * param<<" U:"<<P.X()<<" V:"<<P.Y();
+      //-- std::cout<<" tguv x:"<<x<<" , y:"<<y<<std::endl;
       
       
       if(Edge.Orientation() == TopAbs_FORWARD) { 
@@ -770,7 +770,7 @@ static Standard_Boolean FindAPointInTheFace
          BRepClass_Edge AEdge(OtherEdge,face);
          FClassifier.Compare(AEdge,OtherEdge.Orientation());
          if(FClassifier.ClosestIntersection()) { 
-           //-- cout<<" ---> Edge : "<<FClassifier.Parameter()<<endl;
+           //-- std::cout<<" ---> Edge : "<<FClassifier.Parameter()<<std::endl;
            if(ParamInit > FClassifier.Parameter()) { 
              ParamInit = FClassifier.Parameter();
              APointExist = Standard_True;
@@ -786,7 +786,7 @@ static Standard_Boolean FindAPointInTheFace
        Standard_Boolean computerestriction = Standard_False;
        s.Initialize(face,computerestriction);
        s.D0(u,v,APoint);
-       //-- cout<<" u="<<u<<" v="<<v<<"  -> ("<<APoint.X()<<","<<APoint.Y()<<","<<APoint.Z()<<endl;
+       //-- std::cout<<" u="<<u<<" v="<<v<<"  -> ("<<APoint.X()<<","<<APoint.Y()<<","<<APoint.Z()<<std::endl;
        return(Standard_True);
       }
     }
index 1cb9bc2..87f2661 100644 (file)
@@ -337,11 +337,11 @@ Standard_Real TopOpeBRepTool_ShapeTool::PeriodizeParameter
 
 #ifdef OCCT_DEBUG
     if (TopOpeBRepTool_GettraceVC()) {
-      cout<<"TopOpeBRepTool_ShapeTool PC on edge is ";
-      if      (isoU) cout<<"isoU f,l "<<Ufirst<<" "<<Ulast<<endl;
-      else if (isoV) cout<<"isoV f,l "<<Vfirst<<" "<<Vlast<<endl;
-      else           cout<<"not isoU, not isoV"<<endl;
-      cout<<"par = "<<par<<" --> "<<periopar<<endl;
+      std::cout<<"TopOpeBRepTool_ShapeTool PC on edge is ";
+      if      (isoU) std::cout<<"isoU f,l "<<Ufirst<<" "<<Ulast<<std::endl;
+      else if (isoV) std::cout<<"isoV f,l "<<Vfirst<<" "<<Vlast<<std::endl;
+      else           std::cout<<"not isoU, not isoV"<<std::endl;
+      std::cout<<"par = "<<par<<" --> "<<periopar<<std::endl;
     }
 #endif
 
@@ -452,8 +452,8 @@ Standard_Boolean TopOpeBRepTool_ShapeTool::SurfacesSameOriented
     // au meme point 3d.
 #ifdef OCCT_DEBUG
     if (TopOpeBRepTool_GettraceNYI()) {
-      cout<<"TopOpeBRepTool_ShapeTool::SurfacesSameOriented surfaces non traitees : NYI";
-      cout<<endl;
+      std::cout<<"TopOpeBRepTool_ShapeTool::SurfacesSameOriented surfaces non traitees : NYI";
+      std::cout<<std::endl;
     }
 #endif
   }
@@ -516,8 +516,8 @@ Standard_Boolean TopOpeBRepTool_ShapeTool::CurvesSameOriented
     // au meme point 3d.
 #ifdef OCCT_DEBUG
     if (TopOpeBRepTool_GettraceNYI()) { 
-      cout<<"TopOpeBRepTool_ShapeTool::CurvesSameOriented non lineaires : NYI";
-      cout<<endl;
+      std::cout<<"TopOpeBRepTool_ShapeTool::CurvesSameOriented non lineaires : NYI";
+      std::cout<<std::endl;
     }
 #endif
   }
index 90add9c..dc7ad74 100644 (file)
@@ -276,7 +276,7 @@ void TopOpeBRepTool_TOOL::Vertices(const TopoDS_Edge& E, TopTools_Array1OfShape&
   Standard_Real par1 = BRep_Tool::Parameter(v1,E);
   Standard_Real par2 = BRep_Tool::Parameter(v2,E);
 #ifdef OCCT_DEBUG
-//  if (par1>par2) cout<<"TopOpeBRepTool_TOOL::Vertices ERROR"<<endl;
+//  if (par1>par2) std::cout<<"TopOpeBRepTool_TOOL::Vertices ERROR"<<std::endl;
 #endif
   Standard_Integer ivparSMA = (par1<par2) ? FORWARD : REVERSED; 
   Standard_Integer ivparSUP = (par1<par2) ? REVERSED : FORWARD;
@@ -1282,7 +1282,7 @@ static Standard_Boolean FUN_ngF(const gp_Pnt2d& uv, const TopoDS_Face& F, gp_Vec
       }
     }
 #ifdef OCCT_DEBUG
-    cout<<"FUN_tool_nggeomF NYI"<<endl;
+    std::cout<<"FUN_tool_nggeomF NYI"<<std::endl;
 #endif
     return Standard_False;
   } //kpart
index 4d5ee17..96b2b97 100644 (file)
@@ -25,7 +25,7 @@ Standard_EXPORT void FBOX_Prepare()
   hbt->Clear();
 #ifdef OCCT_DEBUG
   if (TopOpeBRepTool_GettraceBOX()) {
-    cout<<endl<<"TOOLBOX : Prepare"<<endl;
+    std::cout<<std::endl<<"TOOLBOX : Prepare"<<std::endl;
   }
 #endif
 }
@@ -47,7 +47,7 @@ Standard_EXPORT const Bnd_Box& FBOX_Box(const TopoDS_Shape& S)
   if (TopOpeBRepTool_GettraceBOX()) {
     Standard_Integer i = hbt->Index(S);
     Standard_Integer n = hbt->Extent();
-    cout<<"TOOLBOX : "<<i<<"/"<<n<<endl;
+    std::cout<<"TOOLBOX : "<<i<<"/"<<n<<std::endl;
   }
 #endif
   return b;
index 8d08095..cb41cff 100644 (file)
@@ -46,23 +46,23 @@ Standard_EXPORT void FUN_tool_tori(const TopAbs_Orientation Or)
 {
   switch (Or) {
   case TopAbs_FORWARD:
-    cout<<"FOR";break;
+    std::cout<<"FOR";break;
   case TopAbs_REVERSED:
-    cout<<"REV";break;
+    std::cout<<"REV";break;
   case TopAbs_INTERNAL:
-    cout<<"INT";break;
+    std::cout<<"INT";break;
   case TopAbs_EXTERNAL:
-    cout<<"EXT";break;
+    std::cout<<"EXT";break;
   }    
 }
 #endif
 
 Standard_EXPORT void FUN_tool_trace(const Standard_Integer Index)
 {
-  if (Index == 1) cout <<"FORWARD ";
-  if (Index == 2) cout <<"REVERSED ";
+  if (Index == 1) std::cout <<"FORWARD ";
+  if (Index == 2) std::cout <<"REVERSED ";
 }
 Standard_EXPORT void FUN_tool_trace(const gp_Pnt2d p2d)
 {
-  cout<<" = ("<<p2d.X()<<" "<<p2d.Y()<<")"<<endl;
+  std::cout<<" = ("<<p2d.X()<<" "<<p2d.Y()<<")"<<std::endl;
 }
index f4a0888..8c1c8fa 100644 (file)
@@ -103,24 +103,24 @@ static void WriteTrsf(const gp_Trsf& T,
   gp_Mat M = T.VectorialPart();
 
   if (!compact) OS << "( ";
-  OS << setw(15) << M(1,1) << " ";
-  OS << setw(15) << M(1,2) << " ";
-  OS << setw(15) << M(1,3) << " ";
-  OS << setw(15) << V.Coord(1) << " ";
+  OS << std::setw(15) << M(1,1) << " ";
+  OS << std::setw(15) << M(1,2) << " ";
+  OS << std::setw(15) << M(1,3) << " ";
+  OS << std::setw(15) << V.Coord(1) << " ";
   if (!compact) OS << " )";
   OS << "\n";
   if (!compact) OS << "( ";
-  OS << setw(15) << M(2,1) << " ";
-  OS << setw(15) << M(2,2) << " ";
-  OS << setw(15) << M(2,3) << " ";
-  OS << setw(15) << V.Coord(2) << " ";
+  OS << std::setw(15) << M(2,1) << " ";
+  OS << std::setw(15) << M(2,2) << " ";
+  OS << std::setw(15) << M(2,3) << " ";
+  OS << std::setw(15) << V.Coord(2) << " ";
   if (!compact) OS << " )";
   OS << "\n";
   if (!compact) OS << "( ";
-  OS << setw(15) << M(3,1) << " ";
-  OS << setw(15) << M(3,2) << " ";
-  OS << setw(15) << M(3,3) << " ";
-  OS << setw(15) << V.Coord(3) << " ";
+  OS << std::setw(15) << M(3,1) << " ";
+  OS << std::setw(15) << M(3,2) << " ";
+  OS << std::setw(15) << M(3,3) << " ";
+  OS << std::setw(15) << V.Coord(3) << " ";
   if (!compact) OS << " )";
   OS << "\n";
 }
@@ -141,7 +141,7 @@ void  TopTools_LocationSet::Dump(Standard_OStream& OS) const
   
   for (i = 1; i <= nbLoc; i++) {
     TopLoc_Location L = myMap(i);
-    OS << setw(5) << i << " : \n";
+    OS << std::setw(5) << i << " : \n";
     
     TopLoc_Location L2 = L.NextLocation();
     Standard_Boolean simple = L2.IsIdentity();
@@ -255,7 +255,7 @@ void  TopTools_LocationSet::Read(Standard_IStream& IS)
 
   IS >> buffer;
   if (strcmp(buffer,"Locations")) {
-    cout << "Not a location table "<<endl;
+    std::cout << "Not a location table "<<std::endl;
     return;
   }
 
index ce01ee0..c680985 100644 (file)
@@ -622,7 +622,7 @@ void  TopTools_ShapeSet::Read(Standard_IStream& IS)
     
   } while ( ! IS.fail() && strcmp(vers,Version) && strcmp(vers,Version2) );
   if (IS.fail()) {
-    cout << "File was not written with this version of the topology"<<endl;
+    std::cout << "File was not written with this version of the topology"<<std::endl;
     IS.imbue (anOldLocale);
     return;
   }
@@ -635,7 +635,7 @@ void  TopTools_ShapeSet::Read(Standard_IStream& IS)
 
   //OCC19559
   if (!myProgress.IsNull() && myProgress->UserBreak()) {
-    cout << "Interrupted by the user"<<endl;
+    std::cout << "Interrupted by the user"<<std::endl;
     // on remet le LC_NUMERIC a la precedente valeur
     IS.imbue (anOldLocale);
     return;
@@ -650,7 +650,7 @@ void  TopTools_ShapeSet::Read(Standard_IStream& IS)
   }
   //OCC19559
   if (!myProgress.IsNull() && myProgress->UserBreak()) {
-    cout << "Interrupted by the user"<<endl;
+    std::cout << "Interrupted by the user"<<std::endl;
     // on remet le LC_NUMERIC a la precedente valeur
     IS.imbue (anOldLocale);
     return;
@@ -674,7 +674,7 @@ void  TopTools_ShapeSet::Read(Standard_IStream& IS)
   char buffer[255];
   IS >> buffer;
   if (strcmp(buffer,"TShapes")) {
-    cout << "Not a TShape table"<<endl;
+    std::cout << "Not a TShape table"<<std::endl;
     // on remet le LC_NUMERIC a la precedente valeur
     IS.imbue (anOldLocale);
     return;
index 850c1ba..aaa1adc 100644 (file)
@@ -123,7 +123,7 @@ void TopoDSToStep_Builder::Init(const TopoDS_Shape& aShape,
          }
          else {
            // MakeFace Error Handling : warning only
-//         cout << "Warning : one Face has not been mapped" << endl;
+//         std::cout << "Warning : one Face has not been mapped" << std::endl;
 //       Handle(TransferBRep_ShapeMapper) errShape =
 //         new TransferBRep_ShapeMapper(Face);
 //         FP->AddWarning(errShape, " a Face from a Shell has not been mapped");
index 2a3631c..9b466aa 100644 (file)
@@ -88,7 +88,7 @@ TopoDSToStep_MakeBrepWithVoids::
              aCShell = new StepShape_ClosedShell;
              aCShell->Init (aOShell->Name(),aOShell->CfsFaces());
 #ifdef OCCT_DEBUG
-             cout<<"Warning: MakeBRepWithVoids: Open shell in the solid; treated as closed"<<endl;
+             std::cout<<"Warning: MakeBRepWithVoids: Open shell in the solid; treated as closed"<<std::endl;
 #endif
            }
          }
@@ -99,11 +99,11 @@ TopoDSToStep_MakeBrepWithVoids::
              S.Append(aCShell);
          }
 #ifdef OCCT_DEBUG
-         else cout<<"*** MakeBRepWithVoids : Shell not mapped"<<endl;
+         else std::cout<<"*** MakeBRepWithVoids : Shell not mapped"<<std::endl;
 #endif
        }
 #ifdef OCCT_DEBUG
-       else cout << "Shell not mapped" << endl;
+       else std::cout << "Shell not mapped" << std::endl;
 #endif
 /* //:d7 
        if (It.Value().Closed()) {
@@ -119,7 +119,7 @@ TopoDSToStep_MakeBrepWithVoids::
          }
          else {
 #ifdef OCCT_DEBUG
-           cout << "Shell not mapped" << endl;
+           std::cout << "Shell not mapped" << std::endl;
 #endif
            done = Standard_False;
          }
index 35e6068..75aa71b 100644 (file)
@@ -197,7 +197,7 @@ void TopoDSToStep_MakeStepEdge::Init(const TopoDS_Edge& aEdge,
     // -------------------------
 
 #ifdef OCCT_DEBUG
-    cout << "Warning: TopoDSToStep_MakeStepEdge: edge without 3d curve; creating..." << endl;
+    std::cout << "Warning: TopoDSToStep_MakeStepEdge: edge without 3d curve; creating..." << std::endl;
 #endif
     if ((SA.GetType() == GeomAbs_Plane) &&
        (CA.GetType() == GeomAbs_Line)) {
index 115e1a9..900e9b6 100644 (file)
@@ -171,7 +171,7 @@ void TopoDSToStep_MakeStepFace::Init(const TopoDS_Face& aFace,
   
   if (theOuterWire.IsNull()) {
 #ifdef OCCT_DEBUG
-    cout<< "Warning : Face without wire not mapped";
+    std::cout<< "Warning : Face without wire not mapped";
 #endif
     FP->AddWarning(errShape, " Face without wire not mapped");
     myError = TopoDSToStep_InfiniteFace;
@@ -269,7 +269,7 @@ void TopoDSToStep_MakeStepFace::Init(const TopoDS_Face& aFace,
       if (MkWire.IsDone()) Loop = Handle(StepShape_Loop)::DownCast(MkWire.Value());
       else {
 #ifdef OCCT_DEBUG
-       cout << TopoDSToStep::DecodeWireError(MkWire.Error())->String() << endl;
+       std::cout << TopoDSToStep::DecodeWireError(MkWire.Error())->String() << std::endl;
 #endif
        FP->AddWarning(errShape, " a Wire not mapped");
        continue;
index 07d6e5b..1a7cfc3 100644 (file)
@@ -246,7 +246,7 @@ void TopoDSToStep_MakeStepWire::Init(const TopoDS_Wire& aWire,
 //#11 CurrentEdge = ItW.Current();
       
       //if (ItW.Current().Orientation() != ItW.Orientation())
-      //cout << "DEBUG : Attention WireExplorer Orientation" << endl;
+      //std::cout << "DEBUG : Attention WireExplorer Orientation" << std::endl;
 
       // ---------------------------------
       // --- Is the edge Degenerated ? ---
index 6408ab9..8dc10b7 100644 (file)
@@ -108,22 +108,22 @@ Standard_Boolean TopoDSToStep_Tool::Faceted() const
 void TopoDSToStep_Tool::SetCurrentShell(const TopoDS_Shell& S)
 {
 #ifdef OCCT_DEBUG
-  cout << "Process a Shell which is ";
+  std::cout << "Process a Shell which is ";
   switch(S.Orientation())
     {
     case TopAbs_FORWARD:
       {
-       cout << "FORWARD in the Solid;" << endl;
+       std::cout << "FORWARD in the Solid;" << std::endl;
        break;
       }
     case TopAbs_REVERSED:
       {
-       cout << "REVERSED in the Solid;" << endl;
+       std::cout << "REVERSED in the Solid;" << std::endl;
        break;
       }
     default:
       {
-       cout << "INTERNAL OR EXTERNAL SHELL" << endl;
+       std::cout << "INTERNAL OR EXTERNAL SHELL" << std::endl;
       }
     }
 #endif
@@ -148,22 +148,22 @@ const TopoDS_Shell& TopoDSToStep_Tool::CurrentShell() const
 void TopoDSToStep_Tool::SetCurrentFace(const TopoDS_Face& F)
 {
 #ifdef OCCT_DEBUG
-  cout << "  Process a Face which is ";
+  std::cout << "  Process a Face which is ";
   switch(F.Orientation())
     {
     case TopAbs_FORWARD:
       {
-       cout << "FORWARD in the Shell;" << endl;
+       std::cout << "FORWARD in the Shell;" << std::endl;
        break;
       }
     case TopAbs_REVERSED:
       {
-       cout << "REVERSED in the Shell;" << endl;
+       std::cout << "REVERSED in the Shell;" << std::endl;
        break;
       }
     default:
       {
-       cout << "INTERNAL OR EXTERNAL FACE" << endl;
+       std::cout << "INTERNAL OR EXTERNAL FACE" << std::endl;
       }
     }
 #endif  
@@ -191,22 +191,22 @@ const TopoDS_Face& TopoDSToStep_Tool::CurrentFace() const
 void TopoDSToStep_Tool::SetCurrentWire(const TopoDS_Wire& W)
 {
 #ifdef OCCT_DEBUG
-  cout << "    Process a Wire which is ";
+  std::cout << "    Process a Wire which is ";
   switch(W.Orientation())
     {
     case TopAbs_FORWARD:
       {
-       cout << "FORWARD in the Face" << endl;
+       std::cout << "FORWARD in the Face" << std::endl;
        break;
       }
     case TopAbs_REVERSED:
       {
-       cout << "REVERSED in the Face;" << endl;
+       std::cout << "REVERSED in the Face;" << std::endl;
        break;
       }
     default:
       {
-       cout << "INTERNAL OR EXTERNAL Wire" << endl;
+       std::cout << "INTERNAL OR EXTERNAL Wire" << std::endl;
       }
     }
 #endif  
@@ -231,22 +231,22 @@ const TopoDS_Wire& TopoDSToStep_Tool::CurrentWire() const
 void TopoDSToStep_Tool::SetCurrentEdge(const TopoDS_Edge& E)
 {
 #ifdef OCCT_DEBUG
-  cout << "      Process Edge which is ";
+  std::cout << "      Process Edge which is ";
   switch(E.Orientation())
     {
     case TopAbs_FORWARD:
       {
-       cout << "FORWARD in the Wire" << endl;
+       std::cout << "FORWARD in the Wire" << std::endl;
        break;
       }
     case TopAbs_REVERSED:
       {
-       cout << "REVERSED in the Wire" << endl;
+       std::cout << "REVERSED in the Wire" << std::endl;
        break;
       }
     default:
       {
-       cout << "INTERNAL OR EXTERNAL EDGE" << endl;
+       std::cout << "INTERNAL OR EXTERNAL EDGE" << std::endl;
       }
     }
 #endif  
index 1f860a8..67defcd 100644 (file)
@@ -158,7 +158,7 @@ Standard_Boolean TopoDSToStep_WireframeBuilder::
   if (theEdge.Orientation() == TopAbs_INTERNAL  ||
       theEdge.Orientation() == TopAbs_EXTERNAL ) {
 #ifdef OCCT_DEBUG
-    cout <<"Warning: TopoDSToStep_WireframeBuilder::GetTrimmedCurveFromEdge: Edge is internal or external; dropped" << endl;
+    std::cout <<"Warning: TopoDSToStep_WireframeBuilder::GetTrimmedCurveFromEdge: Edge is internal or external; dropped" << std::endl;
 #endif
     return Standard_False;
   }
@@ -272,7 +272,7 @@ Standard_Boolean TopoDSToStep_WireframeBuilder::
 //                              (anEdge.Orientation() == TopAbs_FORWARD));
       }
 #ifdef OCCT_DEBUG
-      else cout << "Warning: TopoDSToStep_WireframeBuilder::GetTrimmedCurveFromEdge: Null-length curve not mapped" << endl;
+      else std::cout << "Warning: TopoDSToStep_WireframeBuilder::GetTrimmedCurveFromEdge: Null-length curve not mapped" << std::endl;
 #endif
     }
     else {
@@ -366,8 +366,8 @@ Standard_Boolean TopoDSToStep_WireframeBuilder::
        if (GetTrimmedCurveFromFace(curFace, aMap, aCurveList)) result = Standard_True;
 #ifdef OCCT_DEBUG
        if(!result) {
-         cout << "ERROR extracting trimmedCurve from Face" << endl;
-         //BRepTools::Dump(curFace,cout);  cout<<endl;
+         std::cout << "ERROR extracting trimmedCurve from Face" << std::endl;
+         //BRepTools::Dump(curFace,std::cout);  std::cout<<std::endl;
        }
 #endif
       }
index 16e7f74..b71d83d 100644 (file)
@@ -67,11 +67,11 @@ Transfer_FinderProcess::Transfer_FinderProcess (const Standard_Integer nb)
 {
   S<<"\n*******************************************************************\n";
   if (mode == 1) {    //  Statistiques de base
-    S << "********                 Basic Statistics                  ********"<<endl;
+    S << "********                 Basic Statistics                  ********"<<Message_EndLine;
 
     Standard_Integer nbr = 0, nbe = 0, nbw = 0;
     Standard_Integer i, max = NbMapped(), nbroots = NbRoots();
-    S << "****        Nb Final Results    : "<<nbroots<<endl;
+    S << "****        Nb Final Results    : "<<nbroots<<Message_EndLine;
 
     for (i = 1; i <= max; i ++) {
       const Handle(Transfer_Binder)& binder = MapItem(i);
@@ -93,5 +93,5 @@ Transfer_FinderProcess::Transfer_FinderProcess (const Standard_Integer nb)
       S<<"****                Warnings on : "<<Interface_MSG::Blanks(nbw,4)<<nbw<<" Entities\n";
     S<<"*******************************************************************";
   }
-  S<<endl;
+  S<<Message_EndLine;
 }
index fb54527..b42e1c4 100644 (file)
@@ -459,7 +459,7 @@ void  Transfer_TransferProcess::SendMsg(const TheStart& start,
     themessenger << amsg.Value();
     if (amsg.IsEdited()&&thetrace>2)
       themessenger << " [from: " << amsg.Original() << "]";
-    themessenger << endl;
+    themessenger << Message_EndLine;
   }
 }
 
@@ -483,7 +483,7 @@ void Transfer_TransferProcess::AddFail(const TheStart& start,
     StartTrace (binder,start,thelevel,1);
     themessenger << "    --> Fail : " << mess;
     if (orig[0] != '\0'&&thetrace>2) themessenger << " [from: " << orig << "]";
-    themessenger << endl;
+    themessenger << Message_EndLine;
   }
 }
 
@@ -534,7 +534,7 @@ void Transfer_TransferProcess::AddWarning(const TheStart& start,
     StartTrace (binder,start,thelevel,2);
     themessenger << "    --> Warning : " << mess;
     if (orig[0] != '\0'&&thetrace>2) themessenger << " [from: " << orig << "]";
-    themessenger << endl;
+    themessenger << Message_EndLine;
   }
 }
 
@@ -1014,7 +1014,7 @@ Handle(Transfer_Binder) Transfer_TransferProcess::Transferring(const TheStart& s
        break;
       case Transfer_StatusDone :                  // Transfert deja fait
 //#ifdef TRANSLOG
-       themessenger << " .. and Transfer done" << endl;
+       themessenger << " .. and Transfer done" << Message_EndLine;
 //#endif
 //     if (former->HasResult()) former->SetAlreadyUsed();
        return former;
@@ -1023,7 +1023,7 @@ Handle(Transfer_Binder) Transfer_TransferProcess::Transferring(const TheStart& s
        return former;
       case Transfer_StatusError :                 // pas propre, ca ...
        if (thetrace) {
-         themessenger << "                  *** Transfer in Error Status  :" << endl;
+         themessenger << "                  *** Transfer in Error Status  :" << Message_EndLine;
          StartTrace (former, start, thelevel,0);
 //       (*themessenger->Out()) << flush;
        }
@@ -1031,7 +1031,7 @@ Handle(Transfer_Binder) Transfer_TransferProcess::Transferring(const TheStart& s
        throw Transfer_TransferFailure("TransferProcess : Transfer in Error Status");
       case Transfer_StatusLoop :                  // la boucle est bouclee ...
        if (thetrace) {
-         themessenger << "                  *** Transfer  Head of Dead Loop  :" << endl;
+         themessenger << "                  *** Transfer  Head of Dead Loop  :" << Message_EndLine;
          StartTrace (former, start, thelevel,0);
 //       (*themessenger->Out()) << flush;
        }
@@ -1039,7 +1039,7 @@ Handle(Transfer_Binder) Transfer_TransferProcess::Transferring(const TheStart& s
        throw Transfer_TransferDeadLoop("TransferProcess : Transfer at Head of a Dead Loop");
     }
 #ifdef TRANSLOG
-    cout << "Transfer,level "<<thelevel<<Message_Flush;
+    std::cout << "Transfer,level "<<thelevel<<Message_Flush;
 #endif
   //}
 
@@ -1048,7 +1048,7 @@ Handle(Transfer_Binder) Transfer_TransferProcess::Transferring(const TheStart& s
     former->SetStatusExec(Transfer_StatusRun);
   }
 #ifdef TRANSLOG
-  cout << " GO .." << endl;
+  std::cout << " GO .." << std::endl;
 #endif
 
   Handle(Transfer_Binder) binder;
@@ -1064,13 +1064,13 @@ Handle(Transfer_Binder) Transfer_TransferProcess::Transferring(const TheStart& s
     //    ...  Exceptions a Rattraper : elles ne se ressemblent pas toutes ... !
     catch (Transfer_TransferDeadLoop const&) {
       if (binder.IsNull()) {
-       themessenger << "                  *** Dead Loop with no Result" << endl;
+       themessenger << "                  *** Dead Loop with no Result" << Message_EndLine;
        if (thetrace) StartTrace (binder, start, thelevel-1,0);
        binder = new Transfer_VoidBinder;
        Bind (start,binder);  newbind = Standard_True;
       } else if (binder->StatusExec() == Transfer_StatusLoop) {
        if (thetrace) {
-         themessenger << "                  *** Dead Loop : Finding head of Loop :" << endl;
+         themessenger << "                  *** Dead Loop : Finding head of Loop :" << Message_EndLine;
          StartTrace (binder, start, thelevel-1,0);
        }
        else StartTrace (binder, start,thelevel-1,4);
@@ -1078,7 +1078,7 @@ Handle(Transfer_Binder) Transfer_TransferProcess::Transferring(const TheStart& s
 // Autrement dit, on change d exception (on est sorti de la boucle)
       } else {
        if (thetrace) {
-         themessenger << "                  *** Dead Loop : Actor in Loop :" << endl;
+         themessenger << "                  *** Dead Loop : Actor in Loop :" << Message_EndLine;
          StartTrace (binder, start, thelevel-1,0);
        }
       }
@@ -1087,13 +1087,13 @@ Handle(Transfer_Binder) Transfer_TransferProcess::Transferring(const TheStart& s
     }
     catch (Standard_Failure const& anException) {
       if (binder.IsNull()) {
-       themessenger << "                  *** Exception Raised with no Result" << endl;
+       themessenger << "                  *** Exception Raised with no Result" << Message_EndLine;
        binder = new Transfer_VoidBinder;
        Bind (start,binder);  newbind = Standard_True;
       }
       binder->AddFail("Transfer stopped by exception raising");
       if (thetrace) {
-       themessenger << "    *** Raised : " << anException.GetMessageString() << endl;
+       themessenger << "    *** Raised : " << anException.GetMessageString() << Message_EndLine;
        StartTrace (binder, start, thelevel-1,4);
       }
       thelevel = oldlev;
@@ -1119,7 +1119,7 @@ Handle(Transfer_Binder) Transfer_TransferProcess::Transferring(const TheStart& s
     else Rebind(start,binder);
 //  (du coup, <thelastbnd> vaut <binder>)
 #ifdef TRANSLOG
-    cout << " ... OK" << endl;
+    std::cout << " ... OK" << std::endl;
 #endif
   }
   else {
@@ -1268,7 +1268,7 @@ void Transfer_TransferProcess::StartTrace(const Handle(Transfer_Binder)& binder,
     }
 //old    if (isused) sout << "  --    (Already Used in another Transfer)";
   }
-  themessenger << endl;
+  themessenger << Message_EndLine;
 }
 
 
index 925920c..92ac423 100644 (file)
@@ -238,16 +238,16 @@ void Transfer_TransientProcess::PrintStats(const Standard_Integer /*mode*/,
 {
   S<<"\n*******************************************************************\n";
 //  if (mode == 1) {    //  Statistiques de base
-    S << "********                 Basic Statistics                  ********"<<endl;
+    S << "********                 Basic Statistics                  ********"<<Message_EndLine;
 
     Handle(Interface_InterfaceModel) model = Model();
-    if (model.IsNull())      S<<"****        Model unknown"<<endl;
+    if (model.IsNull())      S<<"****        Model unknown"<<Message_EndLine;
     else
-      S<<"****        Nb Entities         : "<<model->NbEntities()<<endl;
+      S<<"****        Nb Entities         : "<<model->NbEntities()<<Message_EndLine;
 
     Standard_Integer nbr = 0, nbe = 0, nbw = 0;
     Standard_Integer i, max = NbMapped(), nbroots = NbRoots();
-    S << "****        Nb Final Results    : "<<nbroots<<endl;
+    S << "****        Nb Final Results    : "<<nbroots<<Message_EndLine;
 
     for (i = 1; i <= max; i ++) {
       const Handle(Transfer_Binder)& binder = MapItem(i);
@@ -269,7 +269,7 @@ void Transfer_TransientProcess::PrintStats(const Standard_Integer /*mode*/,
       S<<"****                Warnings on : "<<Interface_MSG::Blanks(nbw,4)<<nbw<<" Entities\n";
     S<<"*******************************************************************";
 //  }
-  S<<endl;
+  S<<Message_EndLine;
 }
 
 
index f7c63fa..ddee868 100644 (file)
@@ -148,7 +148,7 @@ TransferBRep_Reader::TransferBRep_Reader ()
     Handle(Message_Messenger) sout = theProc->Messenger();
     sout<<"--  Transfer(Read) : ";  
     theModel->Print (ent,sout);  
-    sout<<endl;
+    sout<<Message_EndLine;
   }
   TP.Transfer(ent);
   theProc->SetRoot(ent);
@@ -166,7 +166,7 @@ TransferBRep_Reader::TransferBRep_Reader ()
   Handle(Message_Messenger) sout = theProc->Messenger();
 
   if (theProc->TraceLevel() > 1) 
-    sout<<"--  Transfer(Read-List) : "<<nb<<" Items"<<endl;
+    sout<<"--  Transfer(Read-List) : "<<nb<<" Items"<<Message_EndLine;
   for (i = 1; i <= nb; i ++) {
     Handle(Standard_Transient) ent = list->Value(i);
     if (theModel->Number(ent) == 0) continue;
@@ -175,7 +175,7 @@ TransferBRep_Reader::TransferBRep_Reader ()
     {
       sout<<"--  Transfer(Read-List), Item "<<i<<" : ";  
       theModel->Print (ent,sout);  
-      sout<<endl;
+      sout<<Message_EndLine;
     }
     TP.Transfer(ent);
     theProc->SetRoot(ent);
index ec7585f..b808156 100644 (file)
@@ -80,14 +80,14 @@ Handle(Units_UnitsDictionary) Units::DictionaryOfUnits(const Standard_Boolean am
 {
   if(unitsdictionary.IsNull())
     {
-//      cout<<"Allocation du dictionnaire"<<endl;
+//      std::cout<<"Allocation du dictionnaire"<<std::endl;
       unitsdictionary = new Units_UnitsDictionary();
-//      cout<<"Creation du dictionnaire"<<endl;
+//      std::cout<<"Creation du dictionnaire"<<std::endl;
       unitsdictionary->Creates();
     }
   else if(amode)
     {
-//      cout<<"Creation du dictionnaire"<<endl;
+//      std::cout<<"Creation du dictionnaire"<<std::endl;
       unitsdictionary->Creates();
     }
   return unitsdictionary;
@@ -114,7 +114,7 @@ Handle(Units_Quantity) Units::Quantity(const Standard_CString aquantity)
     }
 
 #ifdef OCCT_DEBUG
-  cout<<"Warning: BAD Quantity = Units::Quantity(quantity('" << aquantity << "'))" << endl;
+  std::cout<<"Warning: BAD Quantity = Units::Quantity(quantity('" << aquantity << "'))" << std::endl;
 #endif
   return nullquantity;
 }
@@ -156,7 +156,7 @@ Standard_CString Units::FirstQuantity(const Standard_CString aunit)
   }
 
 #ifdef OCCT_DEBUG
-  cout<<"Warning: BAD Quantity = Units::Quantity(unit('" << symbol << "'))" << endl;
+  std::cout<<"Warning: BAD Quantity = Units::Quantity(unit('" << symbol << "'))" << std::endl;
 #endif
   return NULL;
 }
@@ -170,9 +170,9 @@ Standard_CString Units::FirstQuantity(const Standard_CString aunit)
 Handle(Units_Lexicon) Units::LexiconUnits(const Standard_Boolean amode)
 {
   if(lexiconunits.IsNull()) {
-//      cout<<"Allocation du lexique d'unites"<<endl;
+//      std::cout<<"Allocation du lexique d'unites"<<std::endl;
     lexiconunits = new Units_UnitsLexicon();
-//      cout<<"Creation du lexique d'unites"<<endl;
+//      std::cout<<"Creation du lexique d'unites"<<std::endl;
     lexiconunits->Creates(amode);
   }
   return lexiconunits;
@@ -187,9 +187,9 @@ Handle(Units_Lexicon) Units::LexiconUnits(const Standard_Boolean amode)
 Handle(Units_Lexicon) Units::LexiconFormula()
 {
   if(lexiconformula.IsNull()) {
-//      cout<<"Allocation du lexique d'expression"<<endl;
+//      std::cout<<"Allocation du lexique d'expression"<<std::endl;
     lexiconformula = new Units_Lexicon();
-//      cout<<"Creation du lexique d'expression"<<endl;
+//      std::cout<<"Creation du lexique d'expression"<<std::endl;
     lexiconformula->Creates();
   }
   return lexiconformula;
@@ -251,7 +251,7 @@ Standard_Real Units::ToSI(const Standard_Real aData,
     Units_UnitSentence unitsentence(aUnit);
     if(!unitsentence.IsDone()) {
 #ifdef OCCT_DEBUG
-      cout<<"can not convert - incorrect unit => return 0.0"<<endl;
+      std::cout<<"can not convert - incorrect unit => return 0.0"<<std::endl;
 #endif
       return 0.0;
     }
@@ -296,7 +296,7 @@ Standard_Real Units::FromSI(const Standard_Real aData,
     Units_UnitSentence unitsentence(aUnit);
     if(!unitsentence.IsDone()) {
 #ifdef OCCT_DEBUG
-      cout<<"Warning: can not convert - incorrect unit => return 0.0"<<endl;
+      std::cout<<"Warning: can not convert - incorrect unit => return 0.0"<<std::endl;
 #endif
       return 0.0;
     }
index 533d8cd..11e9849 100644 (file)
@@ -182,26 +182,26 @@ Standard_Boolean Units_Dimensions::IsNotEqual
 void Units_Dimensions::Dump(const Standard_Integer ashift) const
 {
   int i;
-  for(i=0; i<ashift; i++)cout<<"  ";
-  cout<<" with the physical dimensions : "<<endl;
-  for(i=0; i<ashift; i++)cout<<"  ";
-  cout<<"         mass                      : "<<themass<<endl;
-  for(i=0; i<ashift; i++)cout<<"  ";
-  cout<<"         length                    : "<<thelength<<endl;
-  for(i=0; i<ashift; i++)cout<<"  ";
-  cout<<"         time                      : "<<thetime<<endl;
-  for(i=0; i<ashift; i++)cout<<"  ";
-  cout<<"         electric current          : "<<theelectriccurrent<<endl;
-  for(i=0; i<ashift; i++)cout<<"  ";
-  cout<<"         thermodynamic temperature : "<<thethermodynamictemperature<<endl;
-  for(i=0; i<ashift; i++)cout<<"  ";
-  cout<<"         amount of substance       : "<<theamountofsubstance<<endl;
-  for(i=0; i<ashift; i++)cout<<"  ";
-  cout<<"         luminous intensity        : "<<theluminousintensity<<endl;
-  for(i=0; i<ashift; i++)cout<<"  ";
-  cout<<"         plane angle               : "<<theplaneangle<<endl;
-  for(i=0; i<ashift; i++)cout<<"  ";
-  cout<<"         solid angle               : "<<thesolidangle<<endl;
+  for(i=0; i<ashift; i++)std::cout<<"  ";
+  std::cout<<" with the physical dimensions : "<<std::endl;
+  for(i=0; i<ashift; i++)std::cout<<"  ";
+  std::cout<<"         mass                      : "<<themass<<std::endl;
+  for(i=0; i<ashift; i++)std::cout<<"  ";
+  std::cout<<"         length                    : "<<thelength<<std::endl;
+  for(i=0; i<ashift; i++)std::cout<<"  ";
+  std::cout<<"         time                      : "<<thetime<<std::endl;
+  for(i=0; i<ashift; i++)std::cout<<"  ";
+  std::cout<<"         electric current          : "<<theelectriccurrent<<std::endl;
+  for(i=0; i<ashift; i++)std::cout<<"  ";
+  std::cout<<"         thermodynamic temperature : "<<thethermodynamictemperature<<std::endl;
+  for(i=0; i<ashift; i++)std::cout<<"  ";
+  std::cout<<"         amount of substance       : "<<theamountofsubstance<<std::endl;
+  for(i=0; i<ashift; i++)std::cout<<"  ";
+  std::cout<<"         luminous intensity        : "<<theluminousintensity<<std::endl;
+  for(i=0; i<ashift; i++)std::cout<<"  ";
+  std::cout<<"         plane angle               : "<<theplaneangle<<std::endl;
+  for(i=0; i<ashift; i++)std::cout<<"  ";
+  std::cout<<"         solid angle               : "<<thesolidangle<<std::endl;
 }
 
 //=======================================================================
index 54cc2fe..0fb0283 100644 (file)
@@ -132,7 +132,7 @@ void Units_Explorer::Init(const Handle(Units_UnitsSystem)& aunitssystem,
     }
 
 #ifdef OCCT_DEBUG
-  cout<<" La grandeur physique "<<aquantity<<" n'existe pas."<<endl;
+  std::cout<<" La grandeur physique "<<aquantity<<" n'existe pas."<<std::endl;
 #endif
 }
 
@@ -167,7 +167,7 @@ void Units_Explorer::Init(const Handle(Units_UnitsDictionary)& aunitsdictionary,
     }
 
 #ifdef OCCT_DEBUG
-  cout<<" La grandeur physique "<<aquantity<<" n'existe pas."<<endl;
+  std::cout<<" La grandeur physique "<<aquantity<<" n'existe pas."<<std::endl;
 #endif
 }
 
index 1748398..51e5d47 100644 (file)
@@ -35,7 +35,7 @@ inline Handle(Units_TokensSequence) Units_Lexicon::Sequence() const
 inline void Units_Lexicon::Dump() const
 {
   Standard_Integer index;
-  cout<<" LEXICON : "<<endl;
+  std::cout<<" LEXICON : "<<std::endl;
   for(index=1;index<=thesequenceoftokens->Length();index++)
     thesequenceoftokens->Value(index)->Dump(1,0);
 }
index 52d80f4..874911a 100644 (file)
@@ -60,7 +60,7 @@ Units_Measurement::Units_Measurement(const Standard_Real avalue,
   Units_UnitSentence unit(aunit);
   if(!unit.IsDone()) {
 #ifdef OCCT_DEBUG
-    cout<<"can not create Units_Measurement - incorrect unit"<<endl;
+    std::cout<<"can not create Units_Measurement - incorrect unit"<<std::endl;
 #endif
     myHasToken = Standard_False;
   }
@@ -83,7 +83,7 @@ void Units_Measurement::Convert(const Standard_CString aunit)
   Handle(Units_Token) oldtoken = thetoken;
   Units_UnitSentence newunit(aunit);
   if(!newunit.IsDone()) {
-    cout<<"Units_Measurement: can not convert - incorrect unit => result is not correct"<<endl;
+    std::cout<<"Units_Measurement: can not convert - incorrect unit => result is not correct"<<std::endl;
     return;
   }
   Handle(Units_Token) newtoken=newunit.Evaluate();
@@ -99,7 +99,7 @@ void Units_Measurement::Convert(const Standard_CString aunit)
   }
 #ifdef OCCT_DEBUG
   else {
-    cout<<" The units don't have the same physical dimensions"<<endl;
+    std::cout<<" The units don't have the same physical dimensions"<<std::endl;
   }
 #endif
 }
@@ -276,7 +276,7 @@ Standard_Boolean Units_Measurement::HasToken() const
 
 void Units_Measurement::Dump() const
 {
-  cout<<" Measurement : "<<themeasurement<<endl;
+  std::cout<<" Measurement : "<<themeasurement<<std::endl;
   thetoken->Dump(1,1);
 }
 
index bce760d..7363ca0 100644 (file)
@@ -42,9 +42,9 @@ void Units_Quantity::Dump(const Standard_Integer ashift,
                          const Standard_Integer alevel) const
 {
   Standard_Integer index;
-  cout<<endl;
-  for(int i=0; i<ashift; i++)cout<<"  ";
-  cout<<Name()<<endl;
+  std::cout<<std::endl;
+  for(int i=0; i<ashift; i++)std::cout<<"  ";
+  std::cout<<Name()<<std::endl;
 //  thedimensions->Dump(ashift+1);
   if(alevel > 0)
     {
index 42901f6..36d5bd7 100644 (file)
@@ -89,7 +89,7 @@ Units_Sentence::Units_Sentence(const Handle(Units_Lexicon)& alexicon,
         // unknown expression - not create sentene
         thesequenceoftokens->Clear();
 #ifdef OCCT_DEBUG
-        cout<<"Warning: can not create correct sentence from string: "<<astring<<endl;
+        std::cout<<"Warning: can not create correct sentence from string: "<<astring<<std::endl;
 #endif
         return;
       }
@@ -110,7 +110,7 @@ Units_Sentence::Units_Sentence(const Handle(Units_Lexicon)& alexicon,
         // incorrect situation
         thesequenceoftokens->Clear();
 #ifdef OCCT_DEBUG
-        cout<<"Warning: can not create correct sentence from string: "<<astring<<endl;
+        std::cout<<"Warning: can not create correct sentence from string: "<<astring<<std::endl;
 #endif
         return;
       }
@@ -156,12 +156,12 @@ void Units_Sentence::SetConstants()
 //=======================================================================
 static Handle(Units_Token) CalculateLocal(const Handle(Units_TokensSequence)& aSeq)
 {
-  //cout<<endl;
+  //std::cout<<std::endl;
   //for(int index=1; index<=aSeq->Length(); index++) {
   //  Handle(Units_Token) tok = aSeq->Value(index);
-  //  cout<<tok->Word()<<" ";
+  //  std::cout<<tok->Word()<<" ";
   //}
-  //cout<<endl;
+  //std::cout<<std::endl;
   Handle(Units_Token) tok1,tok2;
   Standard_Integer i,j;
 
@@ -283,20 +283,20 @@ Handle(Units_Token) Units_Sentence::Evaluate()
   }
 
   //if(IPrint==1) {
-  //  cout<<endl;
+  //  std::cout<<std::endl;
   //  for(index=1; index<=thesequenceoftokens->Length(); index++) {
   //    Handle(Units_Token) tok = thesequenceoftokens->Value(index);
-  //    cout<<tok->Word()<<" ";
+  //    std::cout<<tok->Word()<<" ";
   //  }
-  //  cout<<endl;
+  //  std::cout<<std::endl;
   //  for(index=1; index<=thesequenceoftokens->Length(); index++) {
-  //    cout<<level[index-1]<<" ";
+  //    std::cout<<level[index-1]<<" ";
   //  }
-  //  cout<<endl;
+  //  std::cout<<std::endl;
   //}
 
   if(curlevel) {
-    cout<<" Incorrect number of brackets"<<endl;
+    std::cout<<" Incorrect number of brackets"<<std::endl;
     return new Units_Token();
   }
 
@@ -363,7 +363,7 @@ Handle(Units_Token) Units_Sentence::Evaluate()
   rtoken = thesequenceoftokens->Value(1)->Creates();
 
   if( rtoken->Value()==0. ) {
-    cout << "*BAD token value from unit '" << rtoken->Word() << "'" << endl;
+    std::cout << "*BAD token value from unit '" << rtoken->Word() << "'" << std::endl;
     rtoken->Value(1.);
   }
 */ // end old variant
index b2cc4c6..8dee036 100644 (file)
@@ -59,7 +59,7 @@ inline Standard_Boolean Units_Sentence::IsDone() const
 inline void Units_Sentence::Dump() const
 {
   Standard_Integer index;
-  cout<<" UNIT SENTENCE with : "<<endl;
+  std::cout<<" UNIT SENTENCE with : "<<std::endl;
   for(index=1;index<=thesequenceoftokens->Length();index++)
     thesequenceoftokens->Value(index)->Dump(1,1);
 }
index cef3155..84af6f3 100644 (file)
@@ -88,6 +88,6 @@ void Units_ShiftedToken::Dump(const Standard_Integer ashift,
                              const Standard_Integer alevel) const
 {
   Units_Token::Dump(ashift,alevel);
-  for(int i=0; i<ashift; i++)cout<<"  ";
-  cout<<"  move  : "<<themove<<endl;
+  for(int i=0; i<ashift; i++)std::cout<<"  ";
+  std::cout<<"  move  : "<<themove<<std::endl;
 }
index 29b3155..c301569 100644 (file)
@@ -103,13 +103,13 @@ void Units_ShiftedUnit::Dump(const Standard_Integer ,
   TCollection_AsciiString string;
 
 //  int i;
-//  for(i=0; i<ashift; i++)cout<<"  ";
+//  for(i=0; i<ashift; i++)std::cout<<"  ";
   for(index=1;index<=thesymbolssequence->Length();index++)
     {
       string = thesymbolssequence->Value(index)->String();
-      if(index != 1) cout << " or " ;
-      cout<<"\""<<string.ToCString()<<"\"";
+      if(index != 1) std::cout << " or " ;
+      std::cout<<"\""<<string.ToCString()<<"\"";
     }
-  cout<< "             Name:  " <<Name().ToCString()<<"                (= *" << thevalue << " SI + " << themove << ")"<<endl;
+  std::cout<< "                Name:  " <<Name().ToCString()<<"                (= *" << thevalue << " SI + " << themove << ")"<<std::endl;
 }
 
index b3cbc54..e6aef37 100644 (file)
@@ -178,7 +178,7 @@ void Units_Token::Update(const Standard_CString amean)
 {
   TCollection_AsciiString string = Mean();
   if(string.Search(amean) != -1)
-    cout<<Word()<<" encountered twice with the same signification : "<<amean<<endl;
+    std::cout<<Word()<<" encountered twice with the same signification : "<<amean<<std::endl;
   string = string + amean;
   themean = string;
 }
@@ -260,7 +260,7 @@ Handle(Units_Token) Units_Token::Divide (const Handle(Units_Token)& atoken)
 {
   if(fabs(atoken->Value())<1.e-40) {
 #ifdef OCCT_DEBUG
-    cout<<"Warning: division on token with value=0 => return initial token."<<endl;
+    std::cout<<"Warning: division on token with value=0 => return initial token."<<std::endl;
 #endif
     return this;
   }
@@ -364,14 +364,14 @@ void Units_Token::Dump(const Standard_Integer ashift,
   TCollection_AsciiString word = Word();
   TCollection_AsciiString mean = Mean();
 
-  for(i=0; i<ashift; i++)cout<<"  ";
-  cout << "Units_Token::Dump of " << this << endl;
-  for(i=0; i<ashift; i++)cout<<"  ";
-  cout<<word.ToCString()<<endl;
-  for(i=0; i<ashift; i++)cout<<"  ";
-  cout<<"  value : "<<thevalue<<endl;
-  for(i=0; i<ashift; i++)cout<<"  ";
-  cout<<"  mean  : "<<mean.ToCString()<<endl;
+  for(i=0; i<ashift; i++)std::cout<<"  ";
+  std::cout << "Units_Token::Dump of " << this << std::endl;
+  for(i=0; i<ashift; i++)std::cout<<"  ";
+  std::cout<<word.ToCString()<<std::endl;
+  for(i=0; i<ashift; i++)std::cout<<"  ";
+  std::cout<<"  value : "<<thevalue<<std::endl;
+  for(i=0; i<ashift; i++)std::cout<<"  ";
+  std::cout<<"  mean  : "<<mean.ToCString()<<std::endl;
   if(alevel)thedimensions->Dump(ashift);
 }
 
index 7a3ccdd..2fe419b 100644 (file)
@@ -124,14 +124,14 @@ void Units_Unit::Dump(const Standard_Integer /*ashift*/,
   TCollection_AsciiString string;
 
 //  int i;
-//  for(i=0; i<ashift; i++)cout<<"  ";
+//  for(i=0; i<ashift; i++)std::cout<<"  ";
   for(index=1;index<=thesymbolssequence->Length();index++)
     {
       string = thesymbolssequence->Value(index)->String();
-      if(index != 1) cout << " or " ;
-      cout<<"\""<<string.ToCString()<<"\"";
+      if(index != 1) std::cout << " or " ;
+      std::cout<<"\""<<string.ToCString()<<"\"";
     }
-  cout<< "             Name:  " <<Name().ToCString()<<"                (= " << thevalue << " SI)" <<endl;
+  std::cout<< "                Name:  " <<Name().ToCString()<<"                (= " << thevalue << " SI)" <<std::endl;
 }
 
 //=======================================================================
index 26b6687..296fa18 100644 (file)
@@ -78,17 +78,17 @@ void Units_UnitSentence::Analyse()
 
   currenttoken = sequence->Value(1);
 
-  //cout<<endl;
+  //std::cout<<std::endl;
   //for(int ind=1; ind<=sequence->Length(); ind++) {
   //  Handle(Units_Token) tok = sequence->Value(ind);
-  //  cout<<tok->Word()<<" ";
+  //  std::cout<<tok->Word()<<" ";
   //}
-  //cout<<endl;
+  //std::cout<<std::endl;
   //for(ind=1; ind<=sequence->Length(); ind++) {
   //  Handle(Units_Token) tok = sequence->Value(ind);
-  //  cout<<tok->Mean()<<" ";
+  //  std::cout<<tok->Mean()<<" ";
   //}
-  //cout<<endl;
+  //std::cout<<std::endl;
 
   for(index=2;index<=sequence->Length();index++) {
     previoustoken = currenttoken;
index f970f6c..bbf52d2 100644 (file)
@@ -343,13 +343,13 @@ TCollection_AsciiString Units_UnitsDictionary::ActiveUnit(const Standard_CString
         return unitssequence->Value(1)->SymbolsSequence()->Value(1)->String();
       else {
 #ifdef OCCT_DEBUG
-        cout<<" Pas d'unite active pour "<<aquantity<<endl;
+        std::cout<<" Pas d'unite active pour "<<aquantity<<std::endl;
 #endif
         return "";
       }
     }
   }
 
-  cout<<" La grandeur physique "<<aquantity<<" n'existe pas."<<endl;
+  std::cout<<" La grandeur physique "<<aquantity<<" n'existe pas."<<std::endl;
   return "";
 }
index 919dbd1..cef22d0 100644 (file)
@@ -47,12 +47,12 @@ inline void Units_UnitsDictionary::Dump(const Standard_Integer alevel) const
   case 1:
   default:
     Units_Explorer explorer(this);
-    cout<<" UNITS DICTIONARY : "<<endl;
+    std::cout<<" UNITS DICTIONARY : "<<std::endl;
     for(;explorer.MoreQuantity();explorer.NextQuantity())
       {
-       cout<<explorer.Quantity()<<endl;;
+       std::cout<<explorer.Quantity()<<std::endl;;
        for(; explorer.MoreUnit(); explorer.NextUnit())
-         cout<<"  "<<explorer.Unit()<<endl;
+         std::cout<<"  "<<explorer.Unit()<<std::endl;
       }
 
   
index b7c6cb9..ce9b98d 100644 (file)
@@ -23,6 +23,6 @@
 
 inline void Units_UnitsLexicon::Dump() const
 {
-  cout<<" UNITSLEXICON : "<<endl;
+  std::cout<<" UNITSLEXICON : "<<std::endl;
   Units_Lexicon::Dump();
 }
index f4aeb0a..fffc189 100644 (file)
@@ -103,7 +103,7 @@ void Units_UnitsSystem::Specify(const Standard_CString aquantity,const Standard_
 
   Units_UnitSentence unitsentence(aunit);
   if(!unitsentence.IsDone()) {
-    cout<<"Units_UnitsSystem::Specify : incorrect unit"<<endl;
+    std::cout<<"Units_UnitsSystem::Specify : incorrect unit"<<std::endl;
     return;
   }
   Handle(Units_Token) token = unitsentence.Evaluate();
@@ -133,7 +133,7 @@ void Units_UnitsSystem::Specify(const Standard_CString aquantity,const Standard_
   
 //  Units_NoSuchType_Raise_if(quantity.IsNull(),aquantity);
   if( quantity.IsNull() ) {
-    cout<<"Warning: in Units_UnitsSystem : Units_NoSuchType '" << aquantity << "'" << endl;
+    std::cout<<"Warning: in Units_UnitsSystem : Units_NoSuchType '" << aquantity << "'" << std::endl;
     return;
   }
   
@@ -269,7 +269,7 @@ TCollection_AsciiString Units_UnitsSystem::ActiveUnit(const Standard_CString aqu
         return unitssequence->Value(index2)->SymbolsSequence()->Value(1)->String();
       else {
 #ifdef OCCT_DEBUG
-        cout<<" Pas d'unite active pour "<<aquantity<<endl;
+        std::cout<<" Pas d'unite active pour "<<aquantity<<std::endl;
 #endif
         return TCollection_AsciiString() ;
       }
@@ -292,7 +292,7 @@ Standard_Real Units_UnitsSystem::ConvertValueToUserSystem
 {
   Units_UnitSentence unitsentence(aunit);
   if(!unitsentence.IsDone()) {
-    cout<<"Units_UnitsSystem::ConvertValueToUserSystem : incorrect unit => return 0"<<endl;
+    std::cout<<"Units_UnitsSystem::ConvertValueToUserSystem : incorrect unit => return 0"<<std::endl;
     return 0.;
   }
   return ConvertSIValueToUserSystem(aquantity,avalue*(unitsentence.Evaluate())->Value());
@@ -406,11 +406,11 @@ void Units_UnitsSystem::Dump() const
   Handle(Standard_Transient) transient = This();
   Handle(Units_UnitsSystem) unitssystem = Handle(Units_UnitsSystem)::DownCast (transient);
   Units_Explorer explorer(unitssystem);
-  cout<<" UNITSSYSTEM : "<<endl;
+  std::cout<<" UNITSSYSTEM : "<<std::endl;
   for(; explorer.MoreQuantity(); explorer.NextQuantity()) {
-    cout<<explorer.Quantity()<<endl;
+    std::cout<<explorer.Quantity()<<std::endl;
     for(; explorer.MoreUnit(); explorer.NextUnit())
-      cout<<"  "<<explorer.Unit()<<endl;
+      std::cout<<"  "<<explorer.Unit()<<std::endl;
   }
 }
 
index 03ad492..ba94625 100644 (file)
@@ -151,7 +151,7 @@ Standard_Real UnitsAPI::CurrentToLS(const Standard_Real aData,
   }
 #ifdef OCCT_DEBUG
   else {
-    cout <<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
+    std::cout <<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << std::endl;
   }
 #endif
 
@@ -175,7 +175,7 @@ Standard_Real UnitsAPI::CurrentToSI(const Standard_Real aData,
   }
 #ifdef OCCT_DEBUG
   else {
-    cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
+    std::cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << std::endl;
   }
 #endif
 
@@ -200,7 +200,7 @@ Standard_Real UnitsAPI::CurrentFromLS(const Standard_Real aData,
   }
 #ifdef OCCT_DEBUG
   else {
-    cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
+    std::cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << std::endl;
   }
 #endif
 
@@ -224,7 +224,7 @@ Standard_Real UnitsAPI::CurrentFromSI(const Standard_Real aData,
   }
 #ifdef OCCT_DEBUG
   else {
-    cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
+    std::cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << std::endl;
   }
 #endif
 
@@ -248,7 +248,7 @@ Standard_Real UnitsAPI::CurrentToAny(const Standard_Real aData,
   }
 #ifdef OCCT_DEBUG
   else {
-    cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
+    std::cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << std::endl;
   }
 #endif
 
@@ -273,7 +273,7 @@ Standard_Real UnitsAPI::CurrentFromAny(const Standard_Real aData,
   }
 #ifdef OCCT_DEBUG
   else {
-    cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
+    std::cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << std::endl;
   }
 #endif
 
@@ -301,7 +301,7 @@ Standard_Real UnitsAPI::AnyToLS(const Standard_Real aData,
   }
 #ifdef OCCT_DEBUG
   else
-    cout<<"Warning: BAD Quantity returns in UnitsAPI::AnyToLS(" << aData << "," << aUnit << ")" << endl;
+    std::cout<<"Warning: BAD Quantity returns in UnitsAPI::AnyToLS(" << aData << "," << aUnit << ")" << std::endl;
 #endif
   return aValue;
 }
@@ -327,7 +327,7 @@ Standard_Real UnitsAPI::AnyToLS(const Standard_Real aData,
   }
 #ifdef OCCT_DEBUG
   else
-    cout<<"Warning: BAD Quantity returns in UnitsAPI::AnyToLS(" << aData << "," << aUnit << "," << aDim.get() << ")" << endl;
+    std::cout<<"Warning: BAD Quantity returns in UnitsAPI::AnyToLS(" << aData << "," << aUnit << "," << aDim.get() << ")" << std::endl;
 #endif
   return aValue;
 }
@@ -382,7 +382,7 @@ Standard_Real UnitsAPI::AnyFromLS(const Standard_Real aData,
   }
 #ifdef OCCT_DEBUG
   else
-    cout<<"Warning: BAD Quantity returns in UnitsAPI::AnyToLS(" << aData << "," << aUnit << ")" << endl;
+    std::cout<<"Warning: BAD Quantity returns in UnitsAPI::AnyToLS(" << aData << "," << aUnit << ")" << std::endl;
 #endif
 
   return aValue;
@@ -435,7 +435,7 @@ Standard_Real UnitsAPI::LSToSI(const Standard_Real aData,
   }
 #ifdef OCCT_DEBUG
   else {
-    cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
+    std::cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << std::endl;
   }
 #endif
 
@@ -458,7 +458,7 @@ Standard_Real UnitsAPI::SIToLS(const Standard_Real aData,
   }
 #ifdef OCCT_DEBUG
   else {
-    cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << endl;
+    std::cout<<"Warning: UnitsAPI,the quantity '" << aQuantity << "' does not exist in the current units system" << std::endl;
   }
 #endif
 
index f73b3ce..953d0b0 100644 (file)
@@ -163,7 +163,7 @@ Handle(Geom2d_Curve) UnitsMethods::RadianToDegree
   }
   else {
 //  debug
-//    cout <<"UnitsMethods: SurfType = "<< aSurface->DynamicType();
+//    std::cout <<"UnitsMethods: SurfType = "<< aSurface->DynamicType();
     return aCurve2d;
   }
 
@@ -194,14 +194,14 @@ Handle(Geom2d_Curve) UnitsMethods::RadianToDegree
     } 
     else if (aCurve2d->IsKind(STANDARD_TYPE(Geom2d_Parabola))) {
 #ifdef OCCT_DEBUG
-      cout << "PCURVE of Parabola type in U or V Periodic Surface" << endl;
-      cout << "Parameters Not transformed to Degree" << endl;
+      std::cout << "PCURVE of Parabola type in U or V Periodic Surface" << std::endl;
+      std::cout << "Parameters Not transformed to Degree" << std::endl;
 #endif
     }
     else if (aCurve2d->IsKind(STANDARD_TYPE(Geom2d_Hyperbola))) {
 #ifdef OCCT_DEBUG
-      cout << "PCURVE of Hyperbola type in U or V Periodic Surface" << endl;
-      cout << "Parameters Not transformed to Degree" << endl;
+      std::cout << "PCURVE of Hyperbola type in U or V Periodic Surface" << std::endl;
+      std::cout << "Parameters Not transformed to Degree" << std::endl;
 #endif
     }
     
@@ -229,8 +229,8 @@ Handle(Geom2d_Curve) UnitsMethods::RadianToDegree
     }
     else {
 #ifdef OCCT_DEBUG
-      cout << "PCURVE of Other Types of Bounded Curve in U or V Periodic Surface" << endl;
-      cout << "Parameters Not transformed to Degree" << endl;
+      std::cout << "PCURVE of Other Types of Bounded Curve in U or V Periodic Surface" << std::endl;
+      std::cout << "Parameters Not transformed to Degree" << std::endl;
 #endif
     }
   }
@@ -292,7 +292,7 @@ Handle(Geom2d_Curve) UnitsMethods::DegreeToRadian
   }
   else {
 //  debug
-//    cout <<"UnitsMethods: SurfType = "<< aSurface->DynamicType();
+//    std::cout <<"UnitsMethods: SurfType = "<< aSurface->DynamicType();
     return aPcurve;
   }
 
@@ -305,15 +305,15 @@ Handle(Geom2d_Curve) UnitsMethods::DegreeToRadian
     }
     else if (aPcurve->IsKind(STANDARD_TYPE(Geom2d_Parabola))) {
 #ifdef OCCT_DEBUG
-      cout << "PCURVE of Parabola type" << endl;
-      cout << "Parameters Not Yet transformed according to LenghtUnit" << endl;
+      std::cout << "PCURVE of Parabola type" << std::endl;
+      std::cout << "Parameters Not Yet transformed according to LenghtUnit" << std::endl;
 #endif
       return aPcurve;
     }
     else if (aPcurve->IsKind(STANDARD_TYPE(Geom2d_Hyperbola))) {
 #ifdef OCCT_DEBUG
-      cout << "PCURVE of Hyperbola type" << endl;
-      cout << "Parameters Not Yet transformed according to LenghtUnit" << endl;
+      std::cout << "PCURVE of Hyperbola type" << std::endl;
+      std::cout << "Parameters Not Yet transformed according to LenghtUnit" << std::endl;
 #endif
       return aPcurve;
     }
@@ -359,8 +359,8 @@ Handle(Geom2d_Curve) UnitsMethods::DegreeToRadian
   }
   else {
 #ifdef OCCT_DEBUG
-    cout << "DegreeToRadian : Type " << aPcurve->DynamicType();
-    cout << " not yet implemented" << endl;
+    std::cout << "DegreeToRadian : Type " << aPcurve->DynamicType();
+    std::cout << " not yet implemented" << std::endl;
 #endif
   }
   return aPcurve;
index fb43b30..100d63e 100644 (file)
@@ -6084,7 +6084,7 @@ static int VDisplayType(Draw_Interpretor& , Standard_Integer argc, const char**
 
 static Standard_Integer vr(Draw_Interpretor& , Standard_Integer , const char** a)
 {
-  ifstream s(a[1]);
+  std::ifstream s(a[1]);
   BRep_Builder builder;
   TopoDS_Shape shape;
   BRepTools::Read(shape, s, builder);
@@ -6852,14 +6852,14 @@ static Standard_Boolean IsValid(const TopTools_ListOfShape& theArgs,
   Standard_Boolean ToCheck = Standard_True;
   if (!checkValid.IsEmpty()) {
 #ifdef OCCT_DEBUG
-    cout <<"DONT_SWITCH_IS_VALID positionnee a :"<<checkValid.ToCString()<<"\n";
+    std::cout <<"DONT_SWITCH_IS_VALID positionnee a :"<<checkValid.ToCString()<<"\n";
 #endif
     if ( checkValid=="true" || checkValid=="TRUE" ) {
       ToCheck= Standard_False;
     }
   } else {
 #ifdef OCCT_DEBUG
-    cout <<"DONT_SWITCH_IS_VALID non positionne\n";
+    std::cout <<"DONT_SWITCH_IS_VALID non positionne\n";
 #endif
   }
   Standard_Boolean IsValid = Standard_True;
index 5c26580..02f63eb 100644 (file)
@@ -2237,7 +2237,7 @@ static int VCircleBuilder(Draw_Interpretor& /*di*/, Standard_Integer argc, const
       // Get isFilled
       Standard_Boolean isFilled;
       std::cout << "Enter filled status (0 or 1)\n";
-      cin >> isFilled;
+      std::cin >> isFilled;
 
       // Construction of the circle
       gp_Pnt A = BRep_Tool::Pnt (TopoDS::Vertex (aShapeA));
@@ -2268,13 +2268,13 @@ static int VCircleBuilder(Draw_Interpretor& /*di*/, Standard_Integer argc, const
       do 
       {
         std::cout << " Enter the value of the radius:\n";
-        cin >> theRad;
+        std::cin >> theRad;
       } while (theRad <= 0);
       
       // Get filled status
       Standard_Boolean isFilled;
       std::cout << "Enter filled status (0 or 1)\n";
-      cin >> isFilled;
+      std::cin >> isFilled;
 
       // Recover the normal to the plane. tag
       TopoDS_Face myFace = TopoDS::Face(aShapeA);
index 7b3fa8f..4d1fcd9 100644 (file)
@@ -2340,7 +2340,7 @@ void ViewerTest::RemoveView (const TCollection_AsciiString& theViewName, const S
 {
   if (!ViewerTest_myViews.IsBound1(theViewName))
   {
-    cout << "Wrong view name\n";
+    std::cout << "Wrong view name\n";
     return;
   }
 
@@ -2421,7 +2421,7 @@ void ViewerTest::RemoveView (const TCollection_AsciiString& theViewName, const S
       ViewerTest_myContexts.UnBind2(aCurrentContext);
     }
   }
-  cout << "3D View - " << theViewName << " was deleted.\n";
+  std::cout << "3D View - " << theViewName << " was deleted.\n";
   if (ViewerTest_EventManager::ToExitOnCloseView())
   {
     Draw_Interprete ("exit");
index d638ea3..a61110f 100644 (file)
@@ -234,8 +234,8 @@ void VrmlAPI_Writer::write_v1(const TopoDS_Shape& aShape,const Standard_CString
 {
   OSD_Path thePath(aFile);
   TCollection_AsciiString theFile;thePath.SystemName(theFile);
-  ofstream outfile;
-  OSD_OpenStream(outfile, theFile.ToCString(), ios::out);
+  std::ofstream outfile;
+  OSD_OpenStream(outfile, theFile.ToCString(), std::ios::out);
   Handle(VrmlConverter_IsoAspect) ia = new VrmlConverter_IsoAspect;  // UIso
   Handle(VrmlConverter_IsoAspect) ia1 = new VrmlConverter_IsoAspect; //VIso
   ia->SetMaterial(myUisoMaterial);
index d59c457..d8fbd89 100644 (file)
@@ -91,7 +91,7 @@ static void DrawCurve (const Adaptor3d_Curve&          aCurve,
   
   if (aCurve.GetType() == GeomAbs_BSplineCurve) {
     nbintervals = aCurve.NbKnots() - 1;
-//     cout << "NbKnots "<<aCurve.NbKnots() << endl;
+//     std::cout << "NbKnots "<<aCurve.NbKnots() << std::endl;
     nbintervals = Max(1, nbintervals/3);
   }
 
@@ -124,8 +124,8 @@ static void DrawCurve (const Adaptor3d_Curve&          aCurve,
       Standard_Real U;
       Standard_Integer N = Max(2, NbP*nbintervals);
 
-//     cout << "nbintervals " << nbintervals << endl;
-//     cout <<  "N " << N << endl;
+//     std::cout << "nbintervals " << nbintervals << std::endl;
+//     std::cout <<  "N " << N << std::endl;
 
       gp_Vec V;
       HAV1 = new TColgp_HArray1OfVec(1, N);
@@ -166,17 +166,17 @@ static void DrawCurve (const Adaptor3d_Curve&          aCurve,
     }
   }
   
-//  cout  << " Array HAI1 - coordIndex " << endl;  
+//  std::cout  << " Array HAI1 - coordIndex " << std::endl;  
 //  for ( i=HAI1->Lower(); i <= HAI1->Upper(); i++ )
 //    {
-//      cout << HAI1->Value(i) << endl;
+//      std::cout << HAI1->Value(i) << std::endl;
 //       } 
 
 // creation of Vrml objects
   Handle(VrmlConverter_LineAspect) LA = new VrmlConverter_LineAspect;
   LA = aDrawer->LineAspect();
 
-//     cout << "LA->HasMaterial() = " << LA->HasMaterial()  << endl;
+//     std::cout << "LA->HasMaterial() = " << LA->HasMaterial()  << std::endl;
 
 // Separator 1 {
   Vrml_Separator SE1;
@@ -216,10 +216,10 @@ void VrmlConverter_Curve::Add(const Adaptor3d_Curve&                aCurve,
   Standard_Real aLimit = aDrawer->MaximalParameterValue();
   FindLimits(aCurve, aLimit, V1, V2);
 
-//     cout << "V1 = "<< V1 << endl;
-//     cout << "V2 = "<< V2 << endl;
-//     cout << "NbPoints = "<< NbPoints << endl;
-//     cout << "aLimit = "<< aLimit << endl;
+//     std::cout << "V1 = "<< V1 << std::endl;
+//     std::cout << "V2 = "<< V2 << std::endl;
+//     std::cout << "NbPoints = "<< NbPoints << std::endl;
+//     std::cout << "aLimit = "<< aLimit << std::endl;
 
   DrawCurve(aCurve,
            NbPoints,
@@ -245,9 +245,9 @@ void VrmlConverter_Curve::Add(const Adaptor3d_Curve&                aCurve,
   if (Precision::IsNegativeInfinite(V1)) V1 = -aDrawer->MaximalParameterValue();
   if (Precision::IsPositiveInfinite(V2)) V2 = aDrawer->MaximalParameterValue();
 
-//     cout << "V1 = "<< V1 << endl;
-//     cout << "V2 = "<< V2 << endl;
-//     cout << "NbPoints = "<< NbPoints << endl;
+//     std::cout << "V1 = "<< V1 << std::endl;
+//     std::cout << "V2 = "<< V2 << std::endl;
+//     std::cout << "NbPoints = "<< NbPoints << std::endl;
  
   DrawCurve(aCurve,
             NbPoints,
@@ -276,9 +276,9 @@ void VrmlConverter_Curve::Add(const Adaptor3d_Curve&   aCurve,
   if (Precision::IsNegativeInfinite(V1)) V1 = -aDrawer->MaximalParameterValue();
   if (Precision::IsPositiveInfinite(V2)) V2 = aDrawer->MaximalParameterValue();
 
-//     cout << "V1 = "<< V1 << endl;
-//     cout << "V2 = "<< V2 << endl;
-//     cout << "NbPoints = "<< aNbPoints << endl;
+//     std::cout << "V1 = "<< V1 << std::endl;
+//     std::cout << "V2 = "<< V2 << std::endl;
+//     std::cout << "NbPoints = "<< aNbPoints << std::endl;
 
   DrawCurve(aCurve,
            aNbPoints,
index f61d1ab..6d17eb4 100644 (file)
@@ -224,11 +224,11 @@ static void DrawCurve (Adaptor3d_Curve&          aCurve,
     }
   }
 
-//cout  << " Array HAI1 - coordIndex " << endl;  
+//std::cout  << " Array HAI1 - coordIndex " << std::endl;  
 //     
 //for ( i=HAI1->Lower(); i <= HAI1->Upper(); i++ )
 //  {
-//    cout << HAI1->Value(i) << endl;
+//    std::cout << HAI1->Value(i) << std::endl;
 //  } 
 
 
@@ -267,8 +267,8 @@ static Standard_Real GetDeflection(const Adaptor3d_Curve&        aCurve,
          diagonal =1000000.;
          theRequestedDeflection = aDrawer->DeviationCoefficient() * diagonal;  
        }
-//      cout << "diagonal = " << diagonal << endl;
-//      cout << "theRequestedDeflection = " << theRequestedDeflection << endl;
+//      std::cout << "diagonal = " << diagonal << std::endl;
+//      std::cout << "theRequestedDeflection = " << theRequestedDeflection << std::endl;
     }
   else 
     {
index 634f94c..b65fc76 100644 (file)
@@ -79,8 +79,8 @@ VrmlConverter_Projector::VrmlConverter_Projector (const TopTools_Array1OfShape&
   Ytarget = (Ymin + Ymax)/2;
   Ztarget = (Zmin + Zmax)/2;
 
-//  cout << " target: " << endl;
-//  cout << " X: " << Xtarget << " Y: " << Ytarget  << " Z: " << Ztarget  <<  endl;
+//  std::cout << " target: " << std::endl;
+//  std::cout << " X: " << Xtarget << " Y: " << Ytarget  << " Z: " << Ztarget  <<  std::endl;
 
 //  gp_Pnt Target(Xtarget, Ytarget, Ztarget);
 //  gp_Vec VTarget(Target.X(),Target.Y(),Target.Z());
@@ -97,14 +97,14 @@ VrmlConverter_Projector::VrmlConverter_Projector (const TopTools_Array1OfShape&
   Source.SetY(Ytarget+aVec.Y());
   Source.SetZ(Ztarget+aVec.Z());
 
-//  cout << " source: " << endl;
-//  cout << " X: " << Source.X() << " Y: " << Source.Y() << " Z: " << Source.Z()  <<  endl;
+//  std::cout << " source: " << std::endl;
+//  std::cout << " X: " << Source.X() << " Y: " << Source.Y() << " Z: " << Source.Z()  <<  std::endl;
 
   gp_Vec VSource(Source.X(),Source.Y(),Source.Z());
 
 //  gp_Vec Proj(Source,Target);
-//  cout << " Vec(source-target): " << endl;
-//  cout << " X: " << Proj.X() << " Y: " << Proj.Y() << " Z: " << Proj.Z()  <<  endl;
+//  std::cout << " Vec(source-target): " << std::endl;
+//  std::cout << " X: " << Proj.X() << " Y: " << Proj.Y() << " Z: " << Proj.Z()  <<  std::endl;
 
   gp_Dir Ypers (XUp,YUp,ZUp);
 
@@ -114,10 +114,10 @@ VrmlConverter_Projector::VrmlConverter_Projector (const TopTools_Array1OfShape&
     }
   gp_Dir Xpers = Ypers.Crossed(Zpers);
 
-//  cout << " Dir(Zpers): " << endl;
-//  cout << " X: " << Zpers.X() << " Y: " << Zpers.Y() << " Z: " << Zpers.Z()  <<  endl;
-//  cout << " Dir(Xpers): " << endl;
-//  cout << " X: " << Xpers.X() << " Y: " << Xpers.Y() << " Z: " << Xpers.Z()  <<  endl;
+//  std::cout << " Dir(Zpers): " << std::endl;
+//  std::cout << " X: " << Zpers.X() << " Y: " << Zpers.Y() << " Z: " << Zpers.Z()  <<  std::endl;
+//  std::cout << " Dir(Xpers): " << std::endl;
+//  std::cout << " X: " << Xpers.X() << " Y: " << Xpers.Y() << " Z: " << Xpers.Z()  <<  std::endl;
 
   gp_Ax3 Axe (Source, Zpers, Xpers);
 
@@ -231,39 +231,39 @@ if (Light == VrmlConverter_SpotLight || Camera != VrmlConverter_NoCamera )
       V2.SetY(0);
       V2.SetZ(P2.Z());
 
-//  cout << " Angle: " << V1.Angle(V2) << endl;
-//  cout << " ****************** " << endl;
+//  std::cout << " Angle: " << V1.Angle(V2) << std::endl;
+//  std::cout << " ****************** " << std::endl;
       if ( Abs(V1.Angle(V2)) > Abs(MaxAngle) ) MaxAngle = Abs(V1.Angle(V2)); 
 
       V2.SetX(0);
       V2.SetY(P2.Y());
       V2.SetZ(P2.Z());
 
-//  cout << " Angle: " << V1.Angle(V2) << endl;
-//  cout << " ****************** " << endl;
+//  std::cout << " Angle: " << V1.Angle(V2) << std::endl;
+//  std::cout << " ****************** " << std::endl;
       if ( Abs(V1.Angle(V2)) > Abs(MaxAngle) ) MaxAngle = Abs(V1.Angle(V2)); 
 
       if ( Abs(P2.Y()) > Abs(MaxHeight) ) 
        {
-//  cout << " Height Y: " << P2.Y() << endl;
-//  cout << " ****************** " << endl;
+//  std::cout << " Height Y: " << P2.Y() << std::endl;
+//  std::cout << " ****************** " << std::endl;
          MaxHeight = Abs(P2.Y()); 
        }
 
       if ( Abs(P2.X()) > Abs(MaxHeight) ) 
        {
-//  cout << " Height X: " << P2.X() << endl;
-//  cout << " ****************** " << endl;
+//  std::cout << " Height X: " << P2.X() << std::endl;
+//  std::cout << " ****************** " << std::endl;
          MaxHeight = Abs(P2.X()); 
        }
     }
   Height = MaxHeight;
-//  cout << " MaxHeight: " << Height << endl;
-//  cout << " ****************** " << endl;
+//  std::cout << " MaxHeight: " << Height << std::endl;
+//  std::cout << " ****************** " << std::endl;
 
   Angle = MaxAngle;
-//  cout << " MaxAngle: " << Angle << endl;
-//  cout << " ****************** " << endl;
+//  std::cout << " MaxAngle: " << Angle << std::endl;
+//  std::cout << " ****************** " << std::endl;
 
 if (Light == VrmlConverter_SpotLight)
   {
index a4f557e..aec83e9 100644 (file)
@@ -122,8 +122,8 @@ void VrmlConverter_ShadedShape::Add( Standard_OStream& anOStream,
     nbVertices += T->NbNodes();
   }      
 
-//     cout << "nbTriangles = "<< nbTriangles << endl;
-//     cout  << "nbVertices = "<< nbVertices << endl << endl;  
+//     std::cout << "nbTriangles = "<< nbTriangles << std::endl;
+//     std::cout  << "nbVertices = "<< nbVertices << std::endl << std::endl;  
 
 //----------------------------
   // now we are going to iterate again to build graphic data from the triangle.   
@@ -242,44 +242,44 @@ void VrmlConverter_ShadedShape::Add( Standard_OStream& anOStream,
 
 //-----------------------------
 /*
-  cout  << " ******************** " << endl;  
-     cout  << " Array HAV1 - Coordinare3 " << endl;  
+  std::cout  << " ******************** " << std::endl;  
+     std::cout  << " Array HAV1 - Coordinare3 " << std::endl;  
 
      for ( i=HAV1->Lower(); i <= HAV1->Upper(); i++ )
        {
-        cout << HAV1->Value(i).X() << " " << HAV1->Value(i).Y()<< " " << HAV1->Value(i).Z() << endl; 
+        std::cout << HAV1->Value(i).X() << " " << HAV1->Value(i).Y()<< " " << HAV1->Value(i).Z() << std::endl; 
        }
 
      if(SA->HasNormals())
        {
 
-        cout  << " ******************** " << endl;         
-        cout  << " Array HAV2 - Normals " << endl;  
+        std::cout  << " ******************** " << std::endl;         
+        std::cout  << " Array HAV2 - Normals " << std::endl;  
 
         for ( i=HAV2->Lower(); i <= HAV2->Upper(); i++ )
           {
-            cout << HAV2->Value(i).X() << " " << HAV2->Value(i).Y()<< " " << HAV2->Value(i).Z() << endl; 
+            std::cout << HAV2->Value(i).X() << " " << HAV2->Value(i).Y()<< " " << HAV2->Value(i).Z() << std::endl; 
           }
 
-        cout  << " ******************** " << endl;  
-        cout  << " Array HAI3 - normalIndex " << endl;  
+        std::cout  << " ******************** " << std::endl;  
+        std::cout  << " Array HAI3 - normalIndex " << std::endl;  
 
         for ( i=HAI3->Lower(); i <= HAI3->Upper(); i++ )
           {
-            cout << HAI3->Value(i) << endl;
+            std::cout << HAI3->Value(i) << std::endl;
           }
 
        }
 
-     cout  << " ******************** " << endl;         
-     cout  << " Array HAI1 - coordIndex " << endl;  
+     std::cout  << " ******************** " << std::endl;         
+     std::cout  << " Array HAI1 - coordIndex " << std::endl;  
        
      for ( i=HAI1->Lower(); i <= HAI1->Upper(); i++ )
        {
-        cout << HAI1->Value(i) << endl;
+        std::cout << HAI1->Value(i) << std::endl;
        }
    
-     cout  << " ******************** " << endl;       
+     std::cout  << " ******************** " << std::endl;       
 */
 //----------------------------
 
index fe1239e..2acb988 100644 (file)
@@ -60,8 +60,8 @@ static Standard_Real GetDeflection(const Handle(BRepAdaptor_HSurface)& aFace,
          diagonal =1000000.;
          theRequestedDeflection = aDrawer->DeviationCoefficient() * diagonal;  
        }
-//      cout << "diagonal = " << diagonal << endl;
-//      cout << "theRequestedDeflection = " << theRequestedDeflection << endl;
+//      std::cout << "diagonal = " << diagonal << std::endl;
+//      std::cout << "theRequestedDeflection = " << theRequestedDeflection << std::endl;
     }
   else 
     {
@@ -164,7 +164,7 @@ void VrmlConverter_WFDeflectionRestrictedFace::Add
          }
        }
        else {
-         cout << "Cannot evaluate curve on surface"<<endl;
+         std::cout << "Cannot evaluate curve on surface"<<std::endl;
        }
       }
       else {
index ff69f2e..d82933d 100644 (file)
@@ -158,7 +158,7 @@ void VrmlConverter_WFDeflectionShape::Add( Standard_OStream&                   a
   Handle(Poly_Triangulation) aT;
   TopLoc_Location aL;
 
-//   cout << "Quantity of Curves  = " << qnt << endl;
+//   std::cout << "Quantity of Curves  = " << qnt << std::endl;
 
 // Wire (without any neighbour)
 
@@ -250,7 +250,7 @@ void VrmlConverter_WFDeflectionShape::Add( Standard_OStream&                   a
        qnt++;
       }
 
-//   cout << "Quantity of Vertexes  = " << qnt << endl;
+//   std::cout << "Quantity of Vertexes  = " << qnt << std::endl;
 
     if (qnt != 0)
       {
index db8fd3f..83c5330 100644 (file)
@@ -151,16 +151,16 @@ void VrmlConverter_WFRestrictedFace::Add
   laU = aDrawer->UIsoAspect();
   laV = aDrawer->VIsoAspect();
 
-//     cout << endl;
+//     std::cout << std::endl;
 
-//     cout << "Face:aDrawer>UMaterial1 = " << aDrawer->UIsoAspect()->HasMaterial() << endl;
-//     cout << "Face:aDrawer>VMaterial1 = " << aDrawer->VIsoAspect()->HasMaterial() << endl;
-//     cout << "Face:aDrawer>LineAspect1 = " << aDrawer->LineAspect()->HasMaterial() << endl;
-//     cout << "Face:la1 = " << latmp->HasMaterial() << endl;
-//     cout << "Face:laU1 = " << laU->HasMaterial() << endl;
-//     cout << "Face:laV1 = " << laV->HasMaterial() << endl;
-//     cout << "Face:iau1 = " << iautmp->HasMaterial() << endl;
-//     cout << "Face:iav1 = " << iavtmp->HasMaterial() << endl;
+//     std::cout << "Face:aDrawer>UMaterial1 = " << aDrawer->UIsoAspect()->HasMaterial() << std::endl;
+//     std::cout << "Face:aDrawer>VMaterial1 = " << aDrawer->VIsoAspect()->HasMaterial() << std::endl;
+//     std::cout << "Face:aDrawer>LineAspect1 = " << aDrawer->LineAspect()->HasMaterial() << std::endl;
+//     std::cout << "Face:la1 = " << latmp->HasMaterial() << std::endl;
+//     std::cout << "Face:laU1 = " << laU->HasMaterial() << std::endl;
+//     std::cout << "Face:laV1 = " << laV->HasMaterial() << std::endl;
+//     std::cout << "Face:iau1 = " << iautmp->HasMaterial() << std::endl;
+//     std::cout << "Face:iav1 = " << iavtmp->HasMaterial() << std::endl;
 
 
 // creation of Vrml objects
@@ -268,16 +268,16 @@ void VrmlConverter_WFRestrictedFace::Add
   aDrawer->SetUIsoAspect(iautmp);
   aDrawer->SetVIsoAspect(iavtmp);
 
-//     cout << endl;
+//     std::cout << std::endl;
 
-//     cout << "Face:aDrawer>UMaterial4 = " << aDrawer->UIsoAspect()->HasMaterial() << endl;
-//     cout << "Face:aDrawer>VMaterial4 = " << aDrawer->VIsoAspect()->HasMaterial() << endl;
-//     cout << "Face:aDrawer>LineAspect4 = " << aDrawer->LineAspect()->HasMaterial() << endl;
-//     cout << "Face:la4 = " << latmp->HasMaterial() << endl;
-//     cout << "Face:laU4 = " << laU->HasMaterial() << endl;
-//     cout << "Face:laV4 = " << laV->HasMaterial() << endl;
-//     cout << "Face:iau4 = " << iautmp->HasMaterial() << endl;
-//     cout << "Face:iav4 = " << iavtmp->HasMaterial() << endl;
+//     std::cout << "Face:aDrawer>UMaterial4 = " << aDrawer->UIsoAspect()->HasMaterial() << std::endl;
+//     std::cout << "Face:aDrawer>VMaterial4 = " << aDrawer->VIsoAspect()->HasMaterial() << std::endl;
+//     std::cout << "Face:aDrawer>LineAspect4 = " << aDrawer->LineAspect()->HasMaterial() << std::endl;
+//     std::cout << "Face:la4 = " << latmp->HasMaterial() << std::endl;
+//     std::cout << "Face:laU4 = " << laU->HasMaterial() << std::endl;
+//     std::cout << "Face:laV4 = " << laV->HasMaterial() << std::endl;
+//     std::cout << "Face:iau4 = " << iautmp->HasMaterial() << std::endl;
+//     std::cout << "Face:iav4 = " << iavtmp->HasMaterial() << std::endl;
 
 } 
 
index 9437a02..1ba9061 100644 (file)
@@ -120,7 +120,7 @@ void VrmlConverter_WFShape::Add(Standard_OStream&                    anOStream,
        qnt++;
       }
 
-//   cout << "Quantity of Curves  = " << qnt << endl;
+//   std::cout << "Quantity of Curves  = " << qnt << std::endl;
 
 // Wire (without any neighbour)
 
@@ -200,7 +200,7 @@ void VrmlConverter_WFShape::Add(Standard_OStream&                    anOStream,
        qnt++;
       }
 
-//   cout << "Quantity of Vertexes  = " << qnt << endl;
+//   std::cout << "Quantity of Vertexes  = " << qnt << std::endl;
 
     if (qnt != 0)
       {
index 685b045..af43b05 100644 (file)
@@ -311,7 +311,7 @@ VrmlData_ErrorStatus VrmlData_Group::Read (VrmlData_InBuffer& theBuffer)
       if (OK(aStatus, ReadMultiString (theBuffer, lstURL))) {
         NCollection_List<TCollection_AsciiString>::Iterator anIter (lstURL);
         for (; anIter.More(); anIter.Next()) {
-          ifstream aStream;
+          std::ifstream aStream;
           const TCollection_AsciiString& aFileName = anIter.Value();
           if (!OK(aStatus, openFile (aStream, aFileName)))
             break;
@@ -423,7 +423,7 @@ VrmlData_ErrorStatus VrmlData_Group::openFile
                                 (Standard_IStream&              theStream,
                                  const TCollection_AsciiString& theFilename)
 {
-  ifstream& aStream = static_cast<ifstream&> (theStream);
+  std::ifstream& aStream = static_cast<std::ifstream&> (theStream);
   VrmlData_ErrorStatus aStatus (VrmlData_EmptyData);
   NCollection_List<TCollection_ExtendedString>::Iterator aDirIter =
     Scene().VrmlDirIterator();
@@ -432,7 +432,7 @@ VrmlData_ErrorStatus VrmlData_Group::openFile
       continue;
     const TCollection_AsciiString aFullName =
       TCollection_AsciiString (aDirIter.Value()) + theFilename;
-    aStream.open (aFullName.ToCString(), ios::in);
+    aStream.open (aFullName.ToCString(), std::ios::in);
     if (aStream.fail())
       aStream.clear();
     else {
@@ -441,7 +441,7 @@ VrmlData_ErrorStatus VrmlData_Group::openFile
     }
   }
   if (aStatus == VrmlData_EmptyData) {
-    aStream.open (theFilename.ToCString(), ios::in);
+    aStream.open (theFilename.ToCString(), std::ios::in);
     if (!aStream.fail())
       aStatus = VrmlData_StatusOK;
   }
index 9128cd3..60edbb9 100644 (file)
@@ -208,11 +208,11 @@ VrmlData_ErrorStatus VrmlData_Scene::readLine (VrmlData_InBuffer& theBuffer)
     theBuffer.Input.getline (theBuffer.Line, sizeof(theBuffer.Line));
     theBuffer.LineCount++;
     const int stat = theBuffer.Input.rdstate();
-    if (stat & ios::badbit) {
+    if (stat & std::ios::badbit) {
       aStatus = VrmlData_UnrecoverableError;
     }
-    else if (stat & ios::failbit) {
-      if (stat & ios::eofbit) {
+    else if (stat & std::ios::failbit) {
+      if (stat & std::ios::eofbit) {
         aStatus = VrmlData_EndOfFile;
       }
       else {
@@ -981,10 +981,10 @@ VrmlData_ErrorStatus VrmlData_Scene::WriteLine
       (* myOutput) << "\n";
     }
     const int stat = myOutput->rdstate();
-    if (stat & ios::badbit)
+    if (stat & std::ios::badbit)
       aStatus = VrmlData_UnrecoverableError;
-    else if (stat & ios::failbit)
-//       if (stat & ios::eofbit)
+    else if (stat & std::ios::failbit)
+//       if (stat & std::ios::eofbit)
 //         aStatus = VrmlData_EndOfFile;
 //       else
       aStatus = VrmlData_GeneralError;
index 8ad8195..b60162c 100644 (file)
@@ -335,7 +335,7 @@ class VrmlData_Scene
 
  protected:
   /**
-   * Read whatever line from the input checking the istream flags.
+   * Read whatever line from the input checking the std::istream flags.
    */ 
   Standard_EXPORT static VrmlData_ErrorStatus
                                 readLine    (VrmlData_InBuffer&     theBuffer);
index f83ad70..7ce30e7 100644 (file)
@@ -448,7 +448,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<<endl;
+      anOS<<std::endl;
     }
   }
   i = 1;
@@ -457,10 +457,10 @@ Standard_OStream& XCAFDoc_GraphNode::Dump (Standard_OStream& anOS) const
     for (; i <= NbChildren(); i++) {
       if ( !myChildren(i)->Label().IsNull() )
        myChildren(i)->Label().EntryDump(anOS);
-      anOS<<endl;
+      anOS<<std::endl;
     }
   }
-//  anOS<<endl;
+//  anOS<<std::endl;
   return anOS;
 }
 
index 61b9f8c..5cee04b 100644 (file)
@@ -150,7 +150,7 @@ static void SetLabelNameByLink(const TDF_Label L)
   if (! L.FindAttribute(XCAFDoc::ShapeRefGUID(), Node) ||
       ! Node->HasFather()) {
 #ifdef OCCT_DEBUG
-    cout<<"Error: XCAFDoc_ShapeTool, SetLabelNameByLink(): NO NODE"<<endl;
+    std::cout<<"Error: XCAFDoc_ShapeTool, SetLabelNameByLink(): NO NODE"<<std::endl;
 #endif
     return;
   }
@@ -1278,7 +1278,7 @@ static void DumpAssembly(Standard_OStream& theDumpLog,
       theDumpLog<<", "<< *(void**)&S.Location();
     theDumpLog<<") ";
   }
-  theDumpLog<<endl;
+  theDumpLog<<std::endl;
   
   Handle(TDataStd_TreeNode) Node;
   TDF_ChildIterator NodeIterator(L);
@@ -1286,7 +1286,7 @@ static void DumpAssembly(Standard_OStream& theDumpLog,
     DumpAssembly(theDumpLog, NodeIterator.Value(), level+1, deep);
   }
   if(level == 0)
-    theDumpLog<<endl;
+    theDumpLog<<std::endl;
 }
 
 //=======================================================================
@@ -1301,7 +1301,7 @@ Standard_OStream& XCAFDoc_ShapeTool::Dump(Standard_OStream& theDumpLog, const St
   TDF_LabelSequence SeqLabels;
   GetShapes( SeqLabels);
 
-  if (SeqLabels.Length()>0) theDumpLog<<endl;
+  if (SeqLabels.Length()>0) theDumpLog<<std::endl;
   Standard_Integer i;
   for (i=1; i<=SeqLabels.Length(); i++) {
     DumpAssembly(theDumpLog, SeqLabels.Value(i), level, deep);
@@ -1309,10 +1309,10 @@ Standard_OStream& XCAFDoc_ShapeTool::Dump(Standard_OStream& theDumpLog, const St
 
   SeqLabels.Clear();
   GetFreeShapes(SeqLabels);
-  theDumpLog<<endl<<"Free Shapes: "<<SeqLabels.Length()<<endl;
+  theDumpLog<<std::endl<<"Free Shapes: "<<SeqLabels.Length()<<std::endl;
   for (i = 1; i<=SeqLabels.Length(); i++) {
     DumpShape(theDumpLog, SeqLabels.Value(i), level, deep);
-    theDumpLog<<endl;
+    theDumpLog<<std::endl;
   }
   return theDumpLog;
 }
@@ -1366,7 +1366,7 @@ void XCAFDoc_ShapeTool::DumpShape(Standard_OStream& theDumpLog, const TDF_Label&
     TDF_Tool::Entry(aRef->Father()->Label(), Entry);
     theDumpLog<<" (refers to "<<Entry<<")";
   }
-  //cout<<endl;
+  //std::cout<<std::endl;
   Handle(TDataStd_Name) Name;
   if (L.FindAttribute(TDataStd_Name::GetID(),Name)) 
     theDumpLog<<" \""<<Name->Get()<<"\" ";
index ef257d9..d927b52 100644 (file)
@@ -323,7 +323,7 @@ public:
 
   Standard_EXPORT virtual Standard_OStream& Dump (Standard_OStream& theDumpLog) const Standard_OVERRIDE;
 
-  //! Print to ostream <theDumpLog> type of shape found on <L> label
+  //! Print to std::ostream <theDumpLog> type of shape found on <L> label
   //! and the entry of <L>, with <level> tabs before.
   //! If <deep>, print also TShape and Location addresses
   Standard_EXPORT static void DumpShape (Standard_OStream& theDumpLog, const TDF_Label& L, const Standard_Integer level = 0, const Standard_Boolean deep = Standard_False);
index 053c3e2..4382b4a 100644 (file)
@@ -253,7 +253,7 @@ void XCAFPrs::CollectStyleSettings (const TDF_Label& theLabel,
 
         // set style for all component from Next Usage Occurrence.
       #ifdef OCCT_DEBUG
-        cout << "Set the style for SHUO next_usage-occurrance" << endl;
+        std::cout << "Set the style for SHUO next_usage-occurrance" << std::endl;
       #endif
         /* 
         // may be work, but static it returns excess shapes. It is more faster to use OLD version.
index 99caac2..ee98431 100644 (file)
@@ -33,7 +33,7 @@ Standard_Boolean XCAFPrs_Driver::Update (const TDF_Label& L,
                                         Handle(AIS_InteractiveObject)& ais)
 
 {
-//  cout << "XCAFPrs_Driver::Update" << endl;
+//  std::cout << "XCAFPrs_Driver::Update" << std::endl;
 // WARNING! The label L can be out of any document 
 // (this is a case for reading from the file)
 //  Handle(TDocStd_Document) DOC = TDocStd_Document::Get(L);
index e624f1c..07b3afa 100644 (file)
@@ -1360,7 +1360,7 @@ static Standard_Integer testDoc (Draw_Interpretor&,
 {
   if( argc < 2 )
   {
-    cout<<"Invalid numbers of arguments should be: XTestDoc shape"<<endl;
+    std::cout<<"Invalid numbers of arguments should be: XTestDoc shape"<<std::endl;
     return 1;
   }
   TopoDS_Shape shape = DBRep::Get(argv[1]);
index f84ce2b..dcb270c 100644 (file)
@@ -708,9 +708,9 @@ static Standard_Integer ShapeVolume (Draw_Interpretor& di, Standard_Integer argc
     tol = -tol;
   }
   localVolume = CalculVolume(aShape, aPoint, tol, withForce, di);
-  //cout << "Volume : " << setw(15) << localVolume << "\n" << endl;
+  //std::cout << "Volume : " << std::setw(15) << localVolume << "\n" << std::endl;
   Standard_SStream aSStream;
-  aSStream << "Volume : " << setw(15) << localVolume << "\n";
+  aSStream << "Volume : " << std::setw(15) << localVolume << "\n";
   di << aSStream;
   return 0;
 }
index f33af92..c1d1f90 100644 (file)
@@ -1189,7 +1189,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()) {
-    cout << argv[2] << " is not a plane" << endl;
+    std::cout << argv[2] << " is not a plane" << std::endl;
     return 1;
   }
   aPlane = aSurf->Pln();
index a492773..20d1702 100644 (file)
@@ -129,8 +129,8 @@ TopoDS_Shape XSAlgo_AlgoContainer::ProcessShape (const TopoDS_Shape& shape,
     {
       static Standard_Integer time = 0;
       if ( ! time )
-       cout << "Warning: XSAlgo_AlgoContainer::ProcessShape(): Sequence " << str.ToCString() << 
-               " is not defined in " << prscfile << " resource; do default processing" << endl;
+       std::cout << "Warning: XSAlgo_AlgoContainer::ProcessShape(): Sequence " << str.ToCString() << 
+               " is not defined in " << prscfile << " resource; do default processing" << std::endl;
       time++;
     }
 #endif
@@ -156,8 +156,8 @@ TopoDS_Shape XSAlgo_AlgoContainer::ProcessShape (const TopoDS_Shape& shape,
       }
       catch (Standard_Failure const& anException) {
 #ifdef OCCT_DEBUG
-       cout << "Error: XSAlgo_AlgoContainer::ProcessShape(): Exception in ShapeFix::Shape" << endl;
-        anException.Print(cout); cout << endl;
+       std::cout << "Error: XSAlgo_AlgoContainer::ProcessShape(): Exception in ShapeFix::Shape" << std::endl;
+        anException.Print(std::cout); std::cout << std::endl;
 #endif
        (void)anException;
       }
@@ -244,7 +244,7 @@ TopoDS_Shape XSAlgo_AlgoContainer::PerformFixShape(const TopoDS_Shape& S,
   }
   catch (Standard_Failure) {
 #ifdef OCCT_DEBUG
-    cout << "Error: XSAlgo_AlgoContainer::PerformFixShape(): Exception in ShapeFix::Shape" << endl;
+    std::cout << "Error: XSAlgo_AlgoContainer::PerformFixShape(): Exception in ShapeFix::Shape" << std::endl;
 #endif
   }   
   return shape;
@@ -306,7 +306,7 @@ Standard_Boolean XSAlgo_AlgoContainer::CheckPCurve (const TopoDS_Edge& E,
   if ( DU/8. > (UL/6. - UF/6.) || DV/8. > (VL/6. - VF/6.) ) {
     ShapeBuild_Edge().RemovePCurve(E,face);
 #ifdef OCCT_DEBUG
-    cout<<"Removing pcuve periodic"<<endl;
+    std::cout<<"Removing pcuve periodic"<<std::endl;
 #endif      
     return Standard_False;
   }
@@ -331,7 +331,7 @@ Standard_Boolean XSAlgo_AlgoContainer::CheckPCurve (const TopoDS_Edge& E,
   if (!((Dist11 <= preci) && (Dist22 <= preci))) {
     ShapeBuild_Edge().RemovePCurve(E,face);
 #ifdef OCCT_DEBUG
-    cout<<"Removing pcurve points"<<endl;
+    std::cout<<"Removing pcurve points"<<std::endl;
 #endif      
     return Standard_False;
   }
@@ -535,12 +535,12 @@ void XSAlgo_AlgoContainer::MergeTransferInfo(const Handle(Transfer_FinderProcess
           resBinder->AddResult(TransientListBinder);
 //       resBinder->SetNext(TransientListBinder, Standard_True);
 #ifdef OCCT_DEBUG
-         cout<<"Info: TransientListBinder created for splitted shape"<<endl;
+         std::cout<<"Info: TransientListBinder created for splitted shape"<<std::endl;
        } 
        else {
-         cout<<"Warning: XSAlgo_AlgoContainer::MergeTransferInfo() "
-           <<"No results were found for splitted shape. "<<endl;
-         //<<"Transfer_FinderProcess->NbMapped() = "<<FP->NbMapped()<<endl;
+         std::cout<<"Warning: XSAlgo_AlgoContainer::MergeTransferInfo() "
+           <<"No results were found for splitted shape. "<<std::endl;
+         //<<"Transfer_FinderProcess->NbMapped() = "<<FP->NbMapped()<<std::endl;
 #endif   
        }
       }
index 546c7f6..2bcf711 100644 (file)
@@ -76,13 +76,13 @@ static IFSelect_ReturnStatus XSControl_tpdraw
   const Standard_CString arg3 = pilot->Arg(3);
   const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (TP.IsNull()) { sout<<"No Transfer Read"<<endl; return IFSelect_RetError;}
+  if (TP.IsNull()) { sout<<"No Transfer Read"<<Message_EndLine; return IFSelect_RetError;}
   //        ****    tpdraw        ****
   if (argc < 2) {
-    sout<<"Donner [mode facultatif : item ou root] , NUMERO , nom DRAW facultatif"<<endl;
-    sout<<"  mode si present : item ou root, sinon n0 d entite modele"<<endl;
+    sout<<"Donner [mode facultatif : item ou root] , NUMERO , nom DRAW facultatif"<<Message_EndLine;
+    sout<<"  mode si present : item ou root, sinon n0 d entite modele"<<Message_EndLine;
     sout<<"  NUMERO entier : d entite, d item transfert ou de root transfert\n"
-      <<  "    ou * pour dire tous"<<endl;
+      <<  "    ou * pour dire tous"<<Message_EndLine;
     return IFSelect_RetError;
   }
   Standard_Integer mode = 0, num=0;
@@ -90,7 +90,7 @@ static IFSelect_ReturnStatus XSControl_tpdraw
   else if (arg1[0] == 'r') mode = 2;
   Standard_Boolean tout = Standard_False;
   if (mode == 0) {
-    if (argc < 2) { sout<<"Donner au moins un NUMERO ou *"<<endl; return IFSelect_RetError; }
+    if (argc < 2) { sout<<"Donner au moins un NUMERO ou *"<<Message_EndLine; return IFSelect_RetError; }
     if (arg1[0] == '*') tout = Standard_True;
     else num = IFSelect_Functions::GiveEntityNumber(XSControl::Session(pilot),arg1);
   } else {
@@ -108,7 +108,7 @@ static IFSelect_ReturnStatus XSControl_tpdraw
   Handle(Interface_InterfaceModel) model = TP->Model();
   if (model.IsNull()) {
     if (mode == 0) {
-      sout<<"Pas de modele, preciser n0 d item de transfert"<<endl;
+      sout<<"Pas de modele, preciser n0 d item de transfert"<<Message_EndLine;
       return IFSelect_RetError;
     }
   }
@@ -117,14 +117,14 @@ static IFSelect_ReturnStatus XSControl_tpdraw
   if (mode == 2) { sout<<"Racine de transfert"; max = TP->NbRoots(); }
   if (tout) {
     n1 = 1;  n2 = max;
-    sout<<", listage de 1 a "<<max<<endl;
+    sout<<", listage de 1 a "<<max<<Message_EndLine;
   }
   else if (num <= 0 || num > max) {
-    sout<<" - Num="<<num<<" hors limite (de 1 a "<<max<<")"<<endl;
+    sout<<" - Num="<<num<<" hors limite (de 1 a "<<max<<")"<<Message_EndLine;
     return IFSelect_RetError;
   } else {
     n1 = n2 = num;  nbvar = -1;  // nbvar : 1ere shape simple = pas de n0
-    sout<<", n0 "<<num<<endl;
+    sout<<", n0 "<<num<<Message_EndLine;
   }
 
   for (i = n1; i <= n2; i ++) {
@@ -147,11 +147,11 @@ static IFSelect_ReturnStatus XSControl_tpdraw
     if (index > 0) binder = TP->MapItem (index);
     if (binder.IsNull()) index = 0;
     if (index == 0) {
-      if (!tout) sout<<"Entite n0 "<<num<<" : non repertoriee"<<endl;
+      if (!tout) sout<<"Entite n0 "<<num<<" : non repertoriee"<<Message_EndLine;
       continue;
     }
     if (!binder->HasResult()) {
-      if (!tout) sout<<"Entite n0 "<<num<<" : pas de resultat"<<endl;
+      if (!tout) sout<<"Entite n0 "<<num<<" : pas de resultat"<<Message_EndLine;
       continue;
     }
     sh = TransferBRep::ShapeResult (binder);
@@ -159,7 +159,7 @@ static IFSelect_ReturnStatus XSControl_tpdraw
     if (!sh.IsNull()) {
       //sh = shb->Result();
       nbvar ++;
-      if (sh.IsNull()) { sout<<" (no Shape recorded)"<<endl; continue; }
+      if (sh.IsNull()) { sout<<" (no Shape recorded)"<<Message_EndLine; continue; }
       if (tout) sout<<"[ "<<i<<" ]:";
       if (num == 0) sout<<" pas dans le modele";
       else sout<<" ent.n0 "<<num;
@@ -173,7 +173,7 @@ static IFSelect_ReturnStatus XSControl_tpdraw
        else if (argc > 2 && mode == 0) sprintf (nomvar,"%s_%d",arg2,nbvar);
        else                            sprintf (nomvar,"tp_%d",i);
       }
-      sout<<" -> 1 DRAW Shape: "<<nomvar<<endl;
+      sout<<" -> 1 DRAW Shape: "<<nomvar<<Message_EndLine;
       XSControl::Vars(pilot)->SetShape(nomvar,sh);
       continue;
     }
@@ -187,26 +187,26 @@ static IFSelect_ReturnStatus XSControl_tpdraw
       sout<<" -> "<<nbs<<" DRAW Shapes :";
       for (Standard_Integer j = 1; j <= nbs; j ++)  {
        sh = slb->Shape(j);  if (nbvar < 0) nbvar = 0;  nbvar ++;
-       if (sh.IsNull()) { sout<<" (no Shape recorded)"<<endl; continue; }
+       if (sh.IsNull()) { sout<<" (no Shape recorded)"<<Message_EndLine; 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<<endl;
+      sout<<Message_EndLine;
       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"<<endl;
+       sout<<"Entite n0 "<<num<<" : pas de resultat"<<Message_EndLine;
        continue;
       }
       DeclareAndCast(Geom_Geometry,geom,resu);
       sout<<"Entite n0 "<<num<<" : resultat "<<resu->DynamicType()->Name();
-      if (geom.IsNull()) { sout<<endl; continue; }
+      if (geom.IsNull()) { sout<<Message_EndLine; continue; }
       nbvar ++;
       if (nbvar == 0) {
        if      (argc > 3 && mode  > 0) sprintf (nomvar,"%s",arg3);
@@ -219,15 +219,15 @@ static IFSelect_ReturnStatus XSControl_tpdraw
       }
       char* nomv = nomvar;
       XSControl::Vars(pilot)->Set (nomv,geom);
-      sout<<" -> DRAW Geom : "<<nomvar<<endl;
+      sout<<" -> DRAW Geom : "<<nomvar<<Message_EndLine;
       continue;
     }
 
     if (sh.IsNull() && trb.IsNull())
-      if (!tout) sout<<"Entite n0 "<<num<<" : resultat pas une Shape mais "<<binder->ResultTypeName()<<endl;
+      if (!tout) sout<<"Entite n0 "<<num<<" : resultat pas une Shape mais "<<binder->ResultTypeName()<<Message_EndLine;
   }
 
-  if (sh.IsNull()) sout<<" (No Shape)"<<endl;
+  if (sh.IsNull()) sout<<" (No Shape)"<<Message_EndLine;
   return IFSelect_RetDone;
 }
 
@@ -242,20 +242,20 @@ static IFSelect_ReturnStatus XSControl_tpcompound
   const Standard_CString arg1 = pilot->Arg(1);
   const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (TP.IsNull()) { sout<<"No Transfer Read"<<endl; return IFSelect_RetError;}
+  if (TP.IsNull()) { sout<<"No Transfer Read"<<Message_EndLine; return IFSelect_RetError;}
   //        ****    tpcompound        ****
-  if (argc < 2) { sout<<"Give a NAME for the Compound  + optional givelist, else roots are taken"<<endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Give a NAME for the Compound  + optional givelist, else roots are taken"<<Message_EndLine; 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)<<endl; return IFSelect_RetError; }
+    if (lise.IsNull()) { sout<<"Not a valid entity list : "<<pilot->CommandPart(2)<<Message_EndLine; return IFSelect_RetError; }
     list = TransferBRep::Shapes (TP,lise);
     sout<<lise->Length()<<" Entities, ";
   }
-  if (list.IsNull()) { sout<<"No Shape listed"<<endl; return IFSelect_RetError; }
+  if (list.IsNull()) { sout<<"No Shape listed"<<Message_EndLine; return IFSelect_RetError; }
   Standard_Integer nb = list->Length();
-  sout<<nb<<" Shape(s) listed"<<endl;
+  sout<<nb<<" Shape(s) listed"<<Message_EndLine;
   TopoDS_Compound C;
   BRep_Builder B;
   B.MakeCompound(C);
@@ -285,14 +285,14 @@ static IFSelect_ReturnStatus XSControl_traccess
   TCollection_AsciiString nomsh, noms;
   const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (TR.IsNull()) { sout<<" manque init"<<endl; return IFSelect_RetError; }
+  if (TR.IsNull()) { sout<<" manque init"<<Message_EndLine; return IFSelect_RetError; }
   const Handle(Interface_InterfaceModel) &mdl = TR->Model();
-  if (mdl.IsNull()) { sout<<" modele absent"<<endl; return IFSelect_RetError; }
+  if (mdl.IsNull()) { sout<<" modele absent"<<Message_EndLine; 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"<<endl;
+  if (cassave) sout<<" save shapes -> current directory"<<Message_EndLine;
 
   if (num == 0 || cascomp) {
     TopoDS_Compound C;        // pour cas compound
@@ -300,11 +300,11 @@ static IFSelect_ReturnStatus XSControl_traccess
     B.MakeCompound(C);
 
     const Handle(TopTools_HSequenceOfShape) &list = TR->ShapeResultList(Standard_True);
-    sout<<" TOUS RESULTATS par ShapeResultList, soit "<<list->Length()<<endl;
+    sout<<" TOUS RESULTATS par ShapeResultList, soit "<<list->Length()<<Message_EndLine;
     for (Standard_Integer i = 1, nb = list->Length(); i <= nb; ++i)
     {
       noms = nomsh + "_" + i;
-      if      ( (i%1000) == 0) sout<<"("<<i<<")"<<endl;
+      if      ( (i%1000) == 0) sout<<"("<<i<<")"<<Message_EndLine;
       else if ( (i%100)  == 0) sout<<"*";
       else if ( (i%10)   == 0) sout<<"0";
       else                     sout<<".";
@@ -313,18 +313,18 @@ static IFSelect_ReturnStatus XSControl_traccess
       else if (!cascomp &&  cassave) BRepTools::Write (list->Value(i), noms.ToCString());
       else if (cascomp) B.Add (C,list->Value(i));
     }
-    sout<<endl;
+    sout<<Message_EndLine;
     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<<endl; return IFSelect_RetError; }
+    if (num < 1 || num > mdl->NbEntities()) { sout<<" incorrect:"<<arg1<<Message_EndLine; return IFSelect_RetError; }
     TopoDS_Shape sh = TR->ShapeResult(mdl->Value(num));
-    if (sh.IsNull()) { sout<<" Pas de resultat pour "<<arg1<<endl; return IFSelect_RetError; }
+    if (sh.IsNull()) { sout<<" Pas de resultat pour "<<arg1<<Message_EndLine; 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"<<endl;
+    else sout<<"Option non comprise"<<Message_EndLine;
   }
   return IFSelect_RetDone;
 }
@@ -362,13 +362,13 @@ static IFSelect_ReturnStatus XSControl_fromshape
   //        ****    fromshape (tread)         ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (argc < 2) {
-    sout<<"Give name of a DRAW Shape"<<endl;
+    sout<<"Give name of a DRAW Shape"<<Message_EndLine;
     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<<endl;
+    sout<<"Not a DRAW Shape:"<<arg1<<Message_EndLine;
     return IFSelect_RetError;
   }
   Standard_Boolean yena = Standard_False;
@@ -383,7 +383,7 @@ static IFSelect_ReturnStatus XSControl_fromshape
   
   //    IMPORT
   const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
-  if (TR.IsNull()) { }  // sout<<"No read transfer (import) recorded"<<endl;
+  if (TR.IsNull()) { }  // sout<<"No read transfer (import) recorded"<<std::endl;
   else {
     yena = Standard_True;
     if ( ! silent ) sout<<"Shape "<<arg1<<" : ";
@@ -399,7 +399,7 @@ static IFSelect_ReturnStatus XSControl_fromshape
       if (TP.IsNull()) {
         if ( silent )
           sout << "Shape "<<arg1<<" : ";
-        sout<<"no map"<<endl;
+        sout<<"no map"<<Message_EndLine;
       }
       else {
        TopoDS_Shape S0 = Shape;
@@ -434,7 +434,7 @@ static IFSelect_ReturnStatus XSControl_fromshape
       // skl 11.05.2004
       // if Shape is a compound try to make "fromshape" for its subshapes
       if(Shape.ShapeType()==TopAbs_COMPOUND) {
-        sout<<endl<<"Subshapes imported from entities:";
+        sout<<Message_EndLine<<"Subshapes imported from entities:";
         TopoDS_Iterator Iter(Shape);
         for (; Iter.More(); Iter.Next()) {
           TopoDS_Shape subsh = Iter.Value();
@@ -453,9 +453,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() << endl;
+      if ( silent ) sout << " in file " << XSControl::Session(pilot)->LoadedFile() << Message_EndLine;
     }
-    if ( ! silent ) sout<<endl;
+    if ( ! silent ) sout<<Message_EndLine;
   }
 
   //   ET EN EXPORT ?
@@ -470,7 +470,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<<endl;
+      sout<<Message_EndLine;
     }
     // abv 31.08.00: treat case of splitted shape (several results)
     // it is supposed that results are of the same type and lie in one-level comp
@@ -489,7 +489,7 @@ static IFSelect_ReturnStatus XSControl_fromshape
          }
          if (nb > 0) {
            if ( silent ) sout << " in file " << XSControl::Session(pilot)->LoadedFile();
-           sout<<endl;
+           sout<<Message_EndLine;
          }
        }
 /*     else {
@@ -507,13 +507,13 @@ static IFSelect_ReturnStatus XSControl_fromshape
              start = Standard_False;
              XSControl::Session(pilot)->Model()->Print(cent,sout);
            }
-           if ( ! start ) sout<<endl;
+           if ( ! start ) sout<<std::endl;
          }
        }  */
       }
     }
   }
-  if (!yena) sout<<"No transfer (either import or export) recorded"<<endl;
+  if (!yena) sout<<"No transfer (either import or export) recorded"<<Message_EndLine;
 
   return IFSelect_RetVoid;
 }
@@ -532,27 +532,27 @@ static IFSelect_ReturnStatus XSControl_trconnexentities
   Handle(Transfer_TransientProcess) TP;
   if (!TR.IsNull()) TP = TR->TransientProcess();
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (TP.IsNull()) { sout<<"no transfer map"<<endl; return IFSelect_RetVoid; }
+  if (TP.IsNull()) { sout<<"no transfer map"<<Message_EndLine; return IFSelect_RetVoid; }
   if (argc < 2) { 
-    sout<<"Give name of a DRAW Shape + optional shape type v-e-w-f(D)-s"<<endl
+    sout<<"Give name of a DRAW Shape + optional shape type v-e-w-f(D)-s"<<Message_EndLine
     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<<endl; return IFSelect_RetError; }
+  if (Shape.IsNull()) { sout<<"Not a DRAW Shape:"<<arg1<<Message_EndLine; 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 :"<<endl;
+  sout<<nb<<" Entities produced Connected Shapes :"<<Message_EndLine;
   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<<")"<<endl;
+  sout<<")"<<Message_EndLine;
   return IFSelect_RetDone;
 }
   
@@ -570,7 +570,7 @@ static IFSelect_ReturnStatus XSControl_trimport
   Standard_Integer argc = pilot->NbWords();
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (argc < 4) {
-    sout<<"Give : filename or . for current model;  varname or . to take fileroot\n  GiveList, * for all transferrable roots"<<endl;
+    sout<<"Give : filename or . for current model;  varname or . to take fileroot\n  GiveList, * for all transferrable roots"<<Message_EndLine;
     return IFSelect_RetError;
   }
   const Standard_CString arg1 = pilot->Arg(1);
@@ -582,9 +582,9 @@ static IFSelect_ReturnStatus XSControl_trimport
   TCollection_AsciiString fnom,rnom;
   Standard_Boolean modfic = XSControl_FuncShape::FileAndVar
     (WS,arg1,arg2,"IMPORT",fnom,rnom);
-  if (modfic) sout<<" File to read : "<<fnom<<endl;
-  else        sout<<" Model taken from the session : "<<fnom<<endl;
-  sout<<" -- Names of variables BREP-DRAW prefixed by : "<<rnom<<endl;
+  if (modfic) sout<<" File to read : "<<fnom<<Message_EndLine;
+  else        sout<<" Model taken from the session : "<<fnom<<Message_EndLine;
+  sout<<" -- Names of variables BREP-DRAW prefixed by : "<<rnom<<Message_EndLine;
 
   //  keep the current command, because sub-commands will be called
   TCollection_AsciiString compart = pilot->CommandPart (3);
@@ -596,9 +596,9 @@ static IFSelect_ReturnStatus XSControl_trimport
     comload.AssignCat(arg1);
     IFSelect_ReturnStatus status = pilot->Execute(comload);
     if (status != IFSelect_RetDone)
-      { sout<<"Abandon import"<<endl; return status; }
+      { sout<<"Abandon import"<<Message_EndLine; return status; }
   } else {
-    sout<<"Currently Loaded Model"<<endl;
+    sout<<"Currently Loaded Model"<<Message_EndLine;
   }
 
   //  Selecting Entities
@@ -611,21 +611,21 @@ static IFSelect_ReturnStatus XSControl_trimport
     sout<<"List given by "<<compart.ToCString()<<" : ";
     list = WS->GiveList (compart.ToCString());
   }
-  if (list.IsNull()) { sout<<"No list defined. Abandon"<<endl; return IFSelect_RetError; }
+  if (list.IsNull()) { sout<<"No list defined. Abandon"<<Message_EndLine; return IFSelect_RetError; }
   Standard_Integer nbl = list->Length();
-  sout<<"Nb entities selected : "<<nbl<<endl;
+  sout<<"Nb entities selected : "<<nbl<<Message_EndLine;
 
   //  Starting Transfer
 
   WS->InitTransferReader (0);
   const Handle(XSControl_TransferReader) &TR = WS->TransferReader();
-  if (TR.IsNull()) { sout<<" init not done or failed"<<endl; return IFSelect_RetError; }
+  if (TR.IsNull()) { sout<<" init not done or failed"<<Message_EndLine; return IFSelect_RetError; }
 
   TR->BeginTransfer();
 
   //  Transferring
   Standard_Integer nbt = TR->TransferList(list);
-  sout<<"Nb Entities Selected : "<<nbl<<" have given "<<nbt<<" results"<<endl;
+  sout<<"Nb Entities Selected : "<<nbl<<" have given "<<nbt<<" results"<<Message_EndLine;
 
   //  Filling VARS. one compound (trimpcomp) or one shape per ent (trimport)
   Standard_Boolean iscomp = (pilot->Arg(0)[5] == 'c');
@@ -635,7 +635,7 @@ static IFSelect_ReturnStatus XSControl_trimport
   BRep_Builder B;
   B.MakeCompound (C);
   Handle(Interface_InterfaceModel)  mdl = TR->Model();
-  if (mdl.IsNull()) { sout<<" modele absent"<<endl; return IFSelect_RetError; }
+  if (mdl.IsNull()) { sout<<" modele absent"<<Message_EndLine; return IFSelect_RetError; }
   for (Standard_Integer il= 1; il <= nbl; il ++) {
     Handle(Standard_Transient) ent = list->Value(il);
     sh = TR->ShapeResult(ent);
@@ -648,15 +648,15 @@ static IFSelect_ReturnStatus XSControl_trimport
       XSControl::Vars(pilot)->SetShape(nomsh,sh);
     }
   }
-  if (nbs == 0) sout<<"No Shape produced"<<endl;
+  if (nbs == 0) sout<<"No Shape produced"<<Message_EndLine;
   else if (nbs == 1) {
-    sout<<"One Shape produced, named "<<rnom.ToCString()<<endl;
+    sout<<"One Shape produced, named "<<rnom.ToCString()<<Message_EndLine;
     XSControl::Vars(pilot)->SetShape(rnom.ToCString(),sh);
   } else if (iscomp) {
-    sout<<"One compound made of "<<nbs<<" Shapes, named "<<rnom.ToCString()<<endl;
+    sout<<"One compound made of "<<nbs<<" Shapes, named "<<rnom.ToCString()<<Message_EndLine;
     XSControl::Vars(pilot)->SetShape(rnom.ToCString(),C);
   } else {  // several individual shapes
-    sout<<nbs<<" Shapes, named "<<rnom.ToCString()<<"_1 to "<<rnom.ToCString()<<"_"<<nbs<<endl;
+    sout<<nbs<<" Shapes, named "<<rnom.ToCString()<<"_1 to "<<rnom.ToCString()<<"_"<<nbs<<Message_EndLine;
   }
 
   return IFSelect_RetDone;
@@ -674,17 +674,17 @@ static IFSelect_ReturnStatus XSControl_twrite
   //        ****    twrite         ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   Handle(XSControl_TransferWriter) TW = XSControl::Session(pilot)->TransferWriter();
-  if (argc < 2) { sout<<" donner nom de shape draw"<<endl; return IFSelect_RetError; }
-  sout<<"Attention, on alimente le modele courant ..."<<endl;
+  if (argc < 2) { sout<<" donner nom de shape draw"<<Message_EndLine; return IFSelect_RetError; }
+  sout<<"Attention, on alimente le modele courant ..."<<Message_EndLine;
 
   // 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<<endl; continue; }
+    if (Shape.IsNull()) { sout<<"pas un nom de shape draw:"<<arg1<<Message_EndLine; continue; }
     sout<<"Pour Shape : "<<ai;
     Standard_Integer stat = TW->TransferWriteShape (XSControl::Session(pilot)->Model(),Shape);
-    sout<<" Transfer Write Status = "<<stat<<endl;
+    sout<<" Transfer Write Status = "<<stat<<Message_EndLine;
   }
   pilot->Session()->ComputeGraph();
   // Transient ? (Geom) : ignore
@@ -766,7 +766,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"<<endl;return 0; }
+    if (TP.IsNull()) { sout<<"last transfer : unknown"<<Message_EndLine;return 0; }
     Handle(TopTools_HSequenceOfShape) li = TransferBRep::Shapes(TP,(name[1] == '\0'));
     if (li.IsNull()) return 0;
     list->Append (li);
@@ -799,12 +799,12 @@ Standard_Integer  XSControl_FuncShape::MoreShapes
       list->Append(Shape);
       nbsh ++;
     }
-    sout<<"  -> taken "<<nbsh<<" Shapes"<<endl;
+    sout<<"  -> taken "<<nbsh<<" Shapes"<<Message_EndLine;
     return nbsh;
   }
   const char* a1 = (const char *)name;
   TopoDS_Shape Shape = session->Vars()->GetShape(a1);
-  if (Shape.IsNull()) { sout<<"not a shape draw:"<<a1<<endl; return 0; }
+  if (Shape.IsNull()) { sout<<"not a shape draw:"<<a1<<Message_EndLine; return 0; }
   list->Append(Shape);
   return 1;
 }
index 4b57748..d2558d5 100644 (file)
@@ -56,7 +56,7 @@ static IFSelect_ReturnStatus XSControl_xinit(const Handle(IFSelect_SessionPilot)
   if (argc > 1) return (XSControl::Session(pilot)->SelectNorm(arg1) ?
                        IFSelect_RetDone : IFSelect_RetFail);
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  sout<<"Selected Norm:"<<XSControl::Session(pilot)->SelectedNorm()<<endl;
+  sout<<"Selected Norm:"<<XSControl::Session(pilot)->SelectedNorm()<<Message_EndLine;
   return IFSelect_RetVoid;
 }
 
@@ -73,22 +73,22 @@ static IFSelect_ReturnStatus XSControl_xnorm(const Handle(IFSelect_SessionPilot)
   Handle(XSControl_Controller) control = WS->NormAdaptor();
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (argc == 1)
-    sout<<"Current Norm. xnorm newnorm to change"<<endl;
-  else sout<<"Current Norm :"<<endl;
-  if (control.IsNull()) sout<<"no norm currently defined"<<endl;
+    sout<<"Current Norm. xnorm newnorm to change"<<Message_EndLine;
+  else sout<<"Current Norm :"<<Message_EndLine;
+  if (control.IsNull()) sout<<"no norm currently defined"<<Message_EndLine;
   else
-    sout<<"  Long  Name (complete) : "<<control->Name(Standard_False)<<endl
-      <<  "  Short name (resource) : "<<control->Name(Standard_True)<<endl;
+    sout<<"  Long  Name (complete) : "<<control->Name(Standard_False)<<Message_EndLine
+      <<  "  Short name (resource) : "<<control->Name(Standard_True)<<Message_EndLine;
   if (argc == 1) return IFSelect_RetVoid;
 
   control = XSControl_Controller::Recorded(arg1);
   if (control.IsNull()) {
-    sout<<" No norm named : "<<arg1<<endl;
+    sout<<" No norm named : "<<arg1<<Message_EndLine;
     return IFSelect_RetError;
   }
 
   WS->SetController(control);
-  sout<<"new norm : "<<control->Name()<<endl;
+  sout<<"new norm : "<<control->Name()<<Message_EndLine;
   return IFSelect_RetDone;
 }
 
@@ -101,7 +101,7 @@ static IFSelect_ReturnStatus XSControl_newmodel(const Handle(IFSelect_SessionPil
   //        ****    newmodel        ****
   if (!XSControl::Session(pilot)->NewModel().IsNull()) return IFSelect_RetDone;
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  sout<<"No new Model produced"<<endl;
+  sout<<"No new Model produced"<<Message_EndLine;
   return IFSelect_RetFail;
 }
 
@@ -116,8 +116,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();
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (modew) { if(!FP.IsNull()) FP->Clear(); else sout<<"No Transfer Write"<<endl; }
-  else       { if(!TP.IsNull()) TP->Clear(); else sout<<"No Transfer Read"<<endl; }
+  if (modew) { if(!FP.IsNull()) FP->Clear(); else sout<<"No Transfer Write"<<Message_EndLine; }
+  else       { if(!TP.IsNull()) TP->Clear(); else sout<<"No Transfer Read"<<Message_EndLine; }
   return IFSelect_RetDone;
 }
 
@@ -132,7 +132,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();
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (TP.IsNull()) { sout<<"No Transfer Read"<<endl; return IFSelect_RetError;}
+  if (TP.IsNull()) { sout<<"No Transfer Read"<<Message_EndLine; return IFSelect_RetError;}
   //        ****    tpstat        ****
 
   Standard_Integer mod1 = -1;
@@ -171,7 +171,7 @@ static IFSelect_ReturnStatus XSControl_tpstat(const Handle(IFSelect_SessionPilot
     }
   }
   //  A present help eventuel
-  if (mod1 < -1) sout<<"Unknown Mode"<<endl;
+  if (mod1 < -1) sout<<"Unknown Mode"<<Message_EndLine;
   if (mod1 < 0) {
     sout<<"Modes available :\n"
       <<"g : general    c : checks (count)  C (list)\n"
@@ -184,7 +184,7 @@ static IFSelect_ReturnStatus XSControl_tpstat(const Handle(IFSelect_SessionPilot
       <<"  L : list  per couple  type entity/result\n"
       <<"  *n  *s  *b  *t  *r  *l  *L : idem on ALL recorded items\n"
       <<"  ?n  ?s  ?b  ?t ... : idem on abnormal items\n"
-      <<"  n select : n applied on a selection   idem for  s b t r l"<<endl;
+      <<"  n select : n applied on a selection   idem for  s b t r l"<<Message_EndLine;
     if (mod1 < -1) return IFSelect_RetError;
     return IFSelect_RetVoid;
   }
@@ -197,7 +197,7 @@ static IFSelect_ReturnStatus XSControl_tpstat(const Handle(IFSelect_SessionPilot
     XSControl_TransferReader::PrintStatsOnList (TP,list,mod1,mod2);
 //    TP->PrintStats (1,sout);
   }
-  else sout<<"TransferRead : not defined"<<endl;
+  else sout<<"TransferRead : not defined"<<Message_EndLine;
   return IFSelect_RetVoid;
 }
 
@@ -212,16 +212,16 @@ static IFSelect_ReturnStatus XSControl_tpent(const Handle(IFSelect_SessionPilot)
   const Handle(Transfer_TransientProcess) &TP = XSControl::Session(pilot)->TransferReader()->TransientProcess();
   //        ****    tpent        ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (TP.IsNull()) { sout<<"No Transfer Read"<<endl; return IFSelect_RetError;}
+  if (TP.IsNull()) { sout<<"No Transfer Read"<<Message_EndLine; 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)"<<endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Give ENTITY NUMBER (IN MODEL TransferProcess)"<<Message_EndLine; return IFSelect_RetError; }
   Standard_Integer num = atoi(arg1);
-  if (num <= 0 || num > model->NbEntities()) { sout<<"Number not in [1 - "<<model->NbEntities()<<"]"<<endl; return IFSelect_RetError; }
+  if (num <= 0 || num > model->NbEntities()) { sout<<"Number not in [1 - "<<model->NbEntities()<<"]"<<Message_EndLine; 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"<<endl;
+  if (index == 0) sout<<"Entity "<<num<<"  not recorded in transfer"<<Message_EndLine;
   else XSControl::Session(pilot)->PrintTransferStatus (index,Standard_False,sout);
   return IFSelect_RetVoid;
 }
@@ -236,7 +236,7 @@ static IFSelect_ReturnStatus XSControl_tpitem(const Handle(IFSelect_SessionPilot
   const Standard_CString arg1 = pilot->Arg(1);
 //        ****    tpitem/tproot/twitem/twroot        ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (argc < 2) { sout<<"Give ITEM NUMBER (in TransferProcess)"<<endl; return IFSelect_RetError; }
+  if (argc < 2) { sout<<"Give ITEM NUMBER (in TransferProcess)"<<Message_EndLine; return IFSelect_RetError; }
   Standard_Integer num = atoi(arg1);
   if (pilot->Word(0).Value(3) == 'r') num = -num;
   Standard_Boolean modew = Standard_False;
@@ -245,7 +245,7 @@ static IFSelect_ReturnStatus XSControl_tpitem(const Handle(IFSelect_SessionPilot
   Handle(Transfer_Finder) finder;
   Handle(Standard_Transient) ent;
   if (!XSControl::Session(pilot)->PrintTransferStatus(num,modew,sout))
-    sout<<" - Num="<<num<<" incorrect"<<endl;
+    sout<<" - Num="<<num<<" incorrect"<<Message_EndLine;
   return IFSelect_RetVoid;
 }
 
@@ -266,21 +266,21 @@ static IFSelect_ReturnStatus XSControl_trecord(const Handle(IFSelect_SessionPilo
   Handle(Standard_Transient) ent;
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (mdl.IsNull() || TR.IsNull() || TP.IsNull())
-    { sout<<" init not done"<<endl; return IFSelect_RetError; }
+    { sout<<" init not done"<<Message_EndLine; return IFSelect_RetError; }
   if (!tous) num = atoi(arg1);
   //    Enregistrer les racines
   if (tous) {
     Standard_Integer nb = TP->NbRoots();
-    sout<<" Recording "<<nb<<" Roots"<<endl;
+    sout<<" Recording "<<nb<<" Roots"<<Message_EndLine;
     for (Standard_Integer i = 1; i <= nb; i ++) {
       ent = TP->Root(i);
-      if (TR->RecordResult (ent)) sout<<" Root n0."<<i<<endl;
-      else sout<<" Root n0."<<i<<" not recorded"<<endl;
+      if (TR->RecordResult (ent)) sout<<" Root n0."<<i<<Message_EndLine;
+      else sout<<" Root n0."<<i<<" not recorded"<<Message_EndLine;
     }
   } else {
-    if (num < 1 ||  num > mdl->NbEntities()) sout<<"incorrect number:"<<num<<endl;
-    else if (TR->RecordResult(mdl->Value(num))) sout<<" Entity n0."<<num<<endl;
-    else sout<<" Entity n0."<<num<<" not recorded"<<endl;
+    if (num < 1 ||  num > mdl->NbEntities()) sout<<"incorrect number:"<<num<<Message_EndLine;
+    else if (TR->RecordResult(mdl->Value(num))) sout<<" Entity n0."<<num<<Message_EndLine;
+    else sout<<" Entity n0."<<num<<" not recorded"<<Message_EndLine;
   }
   return IFSelect_RetDone;
 }
@@ -296,26 +296,26 @@ static IFSelect_ReturnStatus XSControl_trstat(const Handle(IFSelect_SessionPilot
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
 //        ****    trstat : TransferReader        ****
   const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
-  if (TR.IsNull()) { sout<<" init not done"<<endl; return IFSelect_RetError; }
+  if (TR.IsNull()) { sout<<" init not done"<<Message_EndLine; return IFSelect_RetError; }
   Handle(Interface_InterfaceModel)  mdl = TR->Model();
-  if (mdl.IsNull()) { sout<<" No model"<<endl; return IFSelect_RetError; }
-  sout<<" Statistics : FileName : "<<TR->FileName()<<endl;
+  if (mdl.IsNull()) { sout<<" No model"<<Message_EndLine; return IFSelect_RetError; }
+  sout<<" Statistics : FileName : "<<TR->FileName()<<Message_EndLine;
   if (argc == 1) {
     // stats generales
     TR->PrintStats(10,0);
   } else {
     // stats unitaires
     Standard_Integer num = atoi(arg1);
-    if (num < 1 || num > mdl->NbEntities()) { sout<<" incorrect number:"<<arg1<<endl; return IFSelect_RetError; }
+    if (num < 1 || num > mdl->NbEntities()) { sout<<" incorrect number:"<<arg1<<Message_EndLine; return IFSelect_RetError; }
     Handle(Standard_Transient) ent = mdl->Value(num);
-    if (!TR->IsRecorded(ent)) { sout<<" Entity "<<num<<" not recorded"<<endl; return IFSelect_RetError; }
+    if (!TR->IsRecorded(ent)) { sout<<" Entity "<<num<<" not recorded"<<Message_EndLine; 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<<endl;
-    if (RM.IsNull()) { sout<<" no other info"<<endl; return IFSelect_RetVoid; }
+    sout<<Message_EndLine;
+    if (RM.IsNull()) { sout<<" no other info"<<Message_EndLine; return IFSelect_RetVoid; }
     Interface_CheckIterator chl = RM->CheckList(Standard_False);
     pilot->Session()->PrintCheckList(chl,Standard_False,IFSelect_EntitiesByItem);
   }
@@ -337,7 +337,7 @@ static IFSelect_ReturnStatus XSControl_trbegin(const Handle(IFSelect_SessionPilo
     TR = XSControl::Session(pilot)->TransferReader();
     if (TR.IsNull()) {
       Handle(Message_Messenger) sout = Message::DefaultMessenger();
-      sout<<" init not done or failed"<<endl;
+      sout<<" init not done or failed"<<Message_EndLine;
       return IFSelect_RetError;
     }
   }
@@ -356,21 +356,21 @@ static IFSelect_ReturnStatus XSControl_tread(const Handle(IFSelect_SessionPilot)
   //        ****    tread : TransferReader        ****
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
-  if (TR.IsNull()) { sout<<" init not done"<<endl; return IFSelect_RetError; }
+  if (TR.IsNull()) { sout<<" init not done"<<Message_EndLine; return IFSelect_RetError; }
   const Handle(Interface_InterfaceModel) &mdl = TR->Model();
-  if (mdl.IsNull()) { sout<<" No model"<<endl; return IFSelect_RetError; }
+  if (mdl.IsNull()) { sout<<" No model"<<Message_EndLine; 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"<<endl; return IFSelect_RetError; }
+    if (sel.IsNull()) { sout<<"Select Roots absent"<<Message_EndLine; return IFSelect_RetError; }
     Handle(TColStd_HSequenceOfTransient) list = pilot->Session()->GiveList(sel);
-    sout<<" Transferring all roots i.e. : "<<TR->TransferList(list)<<endl;
+    sout<<" Transferring all roots i.e. : "<<TR->TransferList(list)<<Message_EndLine;
   } else {
     Handle(TColStd_HSequenceOfTransient) list =
       IFSelect_Functions::GiveList(pilot->Session(),pilot->CommandPart(1));
-    sout<<" Transfer of "<<list->Length()<<" entities"<<endl;
+    sout<<" Transfer of "<<list->Length()<<" entities"<<Message_EndLine;
     Standard_Integer nb = TR->TransferList(list);
-    sout<<" Gives "<<nb<<" results"<<endl;
+    sout<<" Gives "<<nb<<" results"<<Message_EndLine;
   }
   return IFSelect_RetDone;
 }
@@ -384,8 +384,8 @@ static IFSelect_ReturnStatus XSControl_trtp(const Handle(IFSelect_SessionPilot)&
   //        ****    TReader -> TProcess         ****
   const Handle(XSControl_TransferReader) &TR = XSControl::Session(pilot)->TransferReader();
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  if (TR.IsNull()) sout<<" No TransferReader"<<endl;
-  else if (TR->TransientProcess().IsNull()) sout<<" Transfer Reader without Process"<<endl;
+  if (TR.IsNull()) sout<<" No TransferReader"<<Message_EndLine;
+  else if (TR->TransientProcess().IsNull()) sout<<" Transfer Reader without Process"<<Message_EndLine;
   return IFSelect_RetVoid;
 }
 
@@ -414,17 +414,17 @@ static IFSelect_ReturnStatus XSControl_twmode(const Handle(IFSelect_SessionPilot
   Standard_Integer modemin,modemax;
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
   if (control->ModeWriteBounds (modemin,modemax)) {
-    sout<<"Write Mode : allowed values  "<<modemin<<" to "<<modemax<<endl;
+    sout<<"Write Mode : allowed values  "<<modemin<<" to "<<modemax<<Message_EndLine;
     for (Standard_Integer modd = modemin; modd <= modemax; modd ++) {
-      sout<<modd<<"    : "<<control->ModeWriteHelp (modd)<<endl;;
+      sout<<modd<<"    : "<<control->ModeWriteHelp (modd)<<Message_EndLine;;
     }
   }
-  sout<<"Write Mode : actual = "<<TW->TransferMode()<<endl;
+  sout<<"Write Mode : actual = "<<TW->TransferMode()<<Message_EndLine;
   if (argc <= 1) return IFSelect_RetVoid;
   Standard_Integer mod = atoi(arg1);
-  sout<<"New value -> "<<arg1<<endl;
+  sout<<"New value -> "<<arg1<<Message_EndLine;
   TW->SetTransferMode(mod);
-  if (!control->IsModeWrite (mod)) sout<<"Warning : this new value is not supported"<<endl;
+  if (!control->IsModeWrite (mod)) sout<<"Warning : this new value is not supported"<<Message_EndLine;
   return IFSelect_RetDone;
 }
 
@@ -446,7 +446,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"<<endl;
+  else sout<<"TransferWrite: not defined"<<Message_EndLine;
   return IFSelect_RetVoid;
 }
 
index f374b42..2e21e00 100644 (file)
@@ -197,7 +197,7 @@ public:
   Standard_EXPORT TopoDS_Shape OneShape() const;
   
   //! Prints the check list attached to loaded data, on the Standard
-  //! Trace File (starts at cout)
+  //! Trace File (starts at std::cout)
   //! All messages or fails only, according to <failsonly>
   //! mode = 0 : per entity, prints messages
   //! mode = 1 : per message, just gives count of entities per check
index 245ce6f..0b23c92 100644 (file)
@@ -798,7 +798,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                     ******"<<endl;
+    sout << "******           Transferring one Entity                     ******"<<Message_EndLine;
     if (!lab.IsNull())
       sout<<"******    N0 in file : "<<Interface_MSG::Blanks(num,5)<<num
          <<"      Ident : "<<lab->ToCString()
@@ -851,7 +851,7 @@ Standard_Integer XSControl_TransferReader::TransferList
   //   Pour le log-file
   if (level > 0) {
     sout<<"\n*******************************************************************\n";
-    sout << "******           Transferring a list of "<<Interface_MSG::Blanks(nb,5)<<" Entities       ******"<<endl;
+    sout << "******           Transferring a list of "<<Interface_MSG::Blanks(nb,5)<<" Entities       ******"<<Message_EndLine;
     sout<<"\n*******************************************************************\n";
 
     Handle(IFSelect_SignatureList) sl = new IFSelect_SignatureList;
@@ -908,7 +908,7 @@ Standard_Integer XSControl_TransferReader::TransferRoots(const Interface_Graph&
     Interface_EntityIterator roots = G.RootEntities();
     Standard_Integer nb = roots.NbEntities();
     sout<<"\n*******************************************************************\n";
-    sout << "******           Transferring the "<<Interface_MSG::Blanks(nb,5)<<" Root Entities        ******"<<endl;
+    sout << "******           Transferring the "<<Interface_MSG::Blanks(nb,5)<<" Root Entities        ******"<<Message_EndLine;
     sout<<"\n*******************************************************************\n";
     Handle(IFSelect_SignatureList) sl = new IFSelect_SignatureList;
     for (roots.Start(); roots.More(); roots.Next())
@@ -965,16 +965,16 @@ void XSControl_TransferReader::PrintStats
   Handle(Message_Messenger) sout = myTP->Messenger();
   //  A ameliorer ... !
   sout<<"\n*******************************************************************\n";
-  sout << "******        Statistics on Transfer (Read)                  ******"<<endl;
+  sout << "******        Statistics on Transfer (Read)                  ******"<<Message_EndLine;
   sout<<"\n*******************************************************************\n";
-  if (what > 10)  {  sout<<" ***  Not yet implemented"<<endl;  return;  }
+  if (what > 10)  {  sout<<" ***  Not yet implemented"<<Message_EndLine;  return;  }
   if (what < 10)  {
-    sout << "******        Data recorded on Last Transfer                 ******"<<endl;
+    sout << "******        Data recorded on Last Transfer                 ******"<<Message_EndLine;
     PrintStatsProcess (myTP,what,mode);
   }
   //  reste  what = 10 : on liste les racines des final results
-  sout << "******        Final Results                                  ******"<<endl;
-  if (myModel.IsNull())  {  sout<<"****    Model unknown"<<endl;  return;  }
+  sout << "******        Final Results                                  ******"<<Message_EndLine;
+  if (myModel.IsNull())  {  sout<<"****    Model unknown"<<Message_EndLine;  return;  }
   Handle(TColStd_HSequenceOfTransient) list = RecordedList();
   Standard_Integer i, nb = list->Length();
   Handle(IFSelect_SignatureList) counter;
@@ -997,7 +997,7 @@ void XSControl_TransferReader::PrintStats
   }
   if (!counter.IsNull()) counter->PrintList(sout,myModel,pcm);
 
-  sout<<endl;
+  sout<<Message_EndLine;
 }
 
 
@@ -1110,9 +1110,9 @@ static void PrintPercent(const Handle(Message_Messenger)& sout, const Standard_C
 {
   if (nb <= 0 || nl == 0) return;
   sout<<"******      "<<mess<<": ";
-  if      (nb == nl)       sout<<"100 %"<<endl;
-  else if (nb*100/nl == 0) sout<<"< 1 %"<<endl;
-  else            sout<<(nb*100/nl < 10 ? "  " : " ")<<nb*100/nl<<" %"<<endl;
+  if      (nb == nl)       sout<<"100 %"<<Message_EndLine;
+  else if (nb*100/nl == 0) sout<<"< 1 %"<<Message_EndLine;
+  else            sout<<(nb*100/nl < 10 ? "  " : " ")<<nb*100/nl<<" %"<<Message_EndLine;
 }
 
 
@@ -1146,7 +1146,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)          ******"<<endl;
+  sout << "******        Statistics on Transfer Process (Read)          ******"<<Message_EndLine;
   if (what == 1) sout << "******        Individual Transfers  (Roots)                  ******\n";
   if (what == 2) sout << "******        All recorded data about Transfer               ******\n";
   if (what == 3) sout << "******        Abnormal records                               ******\n";
@@ -1184,10 +1184,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()<<endl;
-    sout  <<"****        Nb Items (Transfer) : "<<nb<<endl;
+    sout  <<"****        Entities in Model   : "<<model->NbEntities()<<Message_EndLine;
+    sout  <<"****        Nb Items (Transfer) : "<<nb<<Message_EndLine;
     if (!nolist)
-      sout<<"****        Nb Items (Listed)   : "<<nl<<endl;
+      sout<<"****        Nb Items (Listed)   : "<<nl<<Message_EndLine;
 
     for (itrp.Start(); itrp.More(); itrp.Next()) {
       nbi ++;
@@ -1199,7 +1199,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)"<<endl;
+         sout<<"   "<<model->TypeName(ent,Standard_False)<<"  (not recorded)"<<Message_EndLine;
          continue;
        }
       }
@@ -1221,7 +1221,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<<endl;
+       sout<<" Result:"<<mess<<Message_EndLine;
        if (mode == 1) continue;
 
        const Handle(Interface_Check)& ch = binder->Check();
@@ -1229,11 +1229,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)<<endl;
+         for (newi = 1; newi <= newnbw; newi ++) sout<<ch->CWarning(newi)<<Message_EndLine;
        }
        if (newnbf > 0) {
          sout<<" - Fails : "<<newnbf<<":\n";
-         for (newi = 1; newi <= newnbf; newi ++) sout<<ch->CFail(newi)<<endl;
+         for (newi = 1; newi <= newnbf; newi ++) sout<<ch->CFail(newi)<<Message_EndLine;
        }
        continue;
       }
@@ -1260,25 +1260,25 @@ void XSControl_TransferReader::PrintStatsOnList(const Handle(Transfer_TransientP
       //    Fin de l iteration
     }
     if (!counter.IsNull()) counter->PrintList(sout,model,pcm);
-    else sout<<endl;
+    else sout<<Message_EndLine;
     //    Pourcentages
     if (mode != 3 && nbi > 0) {
-      sout << "******        Percentages according Transfer Status          ******"<<endl;
+      sout << "******        Percentages according Transfer Status          ******"<<Message_EndLine;
       PrintPercent (sout,"Result          ",nbr+nbrw,nl);
       PrintPercent (sout,"Result + FAIL   ",nbrf,nl);
       PrintPercent (sout,"FAIL, no Result ",nbf,nl);
       PrintPercent (sout,"Just Warning    ",nbw,nl);
       PrintPercent (sout,"Nothing Recorded",nbnr,nl);
 /*      if (nbr+nbrw > 0)
-       sout<<"******      Result          : "<< (nbr+nbrw)*100/nl<<" %"<<endl;
+       sout<<"******      Result          : "<< (nbr+nbrw)*100/nl<<" %"<<std::endl;
       if (nbrf > 0)
-       sout<<"******      Result + FAIL   : "<< (nbrf)*100/nl<<" %"<<endl;
+       sout<<"******      Result + FAIL   : "<< (nbrf)*100/nl<<" %"<<std::endl;
       if (nbf > 0)
-       sout<<"******      FAIL, no Result : "<< (nbf)*100/nl<<" %"<<endl;
+       sout<<"******      FAIL, no Result : "<< (nbf)*100/nl<<" %"<<std::endl;
       if (nbw > 0)
-       sout<<"******      Just Warning    : "<< (nbw)*100/nl<<" %"<<endl;
+       sout<<"******      Just Warning    : "<< (nbw)*100/nl<<" %"<<std::endl;
       if (nbnr > 0)
-       sout<<"******      Nothing Recorded: "<< (nbnr)*100/nl<<" %"<<endl; */
+       sout<<"******      Nothing Recorded: "<< (nbnr)*100/nl<<" %"<<std::endl; */
     }
     return;
   }
index 20df304..4e072e0 100644 (file)
@@ -55,12 +55,12 @@ void XSControl_TransferWriter::PrintStats (const Standard_Integer , const Standa
   Handle(Message_Messenger) sout = myTransferWriter->Messenger();
 //  A ameliorer ... !
   sout<<"\n*******************************************************************\n";
-  sout << "******        Statistics on Transfer (Write)                 ******"<<endl;
+  sout << "******        Statistics on Transfer (Write)                 ******"<<Message_EndLine;
   sout<<"\n*******************************************************************\n";
   sout << "******        Transfer Mode = "<<myTransferMode;
   Standard_CString modehelp = myController->ModeWriteHelp (myTransferMode);
   if (modehelp && modehelp[0] != 0) sout<<"  I.E.  "<<modehelp;
-  sout<<"       ******"<<endl;
+  sout<<"       ******"<<Message_EndLine;
 }
 
 
@@ -102,14 +102,14 @@ IFSelect_ReturnStatus XSControl_TransferWriter::TransferWriteTransient
     OCC_CATCH_SIGNALS
     PrintStats(myTransferMode);
     sout << "******        Transferring Transient, CDL Type = ";
-    sout<<obj->DynamicType()->Name()<<"   ******"<<endl;
+    sout<<obj->DynamicType()->Name()<<"   ******"<<Message_EndLine;
     status = myController->TransferWriteTransient
       (obj,myTransferWriter,model,myTransferMode);
   }
   catch(Standard_Failure const& anException) {
     sout<<"****  ****  TransferWriteShape, EXCEPTION : ";
     sout<<anException.GetMessageString(); 
-    sout<<endl;
+    sout<<Message_EndLine;
     status = IFSelect_RetFail;
   }
   return status;
@@ -150,14 +150,14 @@ IFSelect_ReturnStatus XSControl_TransferWriter::TransferWriteShape
     OCC_CATCH_SIGNALS
     PrintStats(myTransferMode);
     sout << "******        Transferring Shape, ShapeType = " << shape.ShapeType();
-    sout<<"                      ******"<<endl;
+    sout<<"                      ******"<<Message_EndLine;
     status = myController->TransferWriteShape
       (shape,myTransferWriter,model,myTransferMode);
   }
   catch(Standard_Failure const& anException) {
     sout<<"****  ****  TransferWriteShape, EXCEPTION : "; 
     sout<<anException.GetMessageString(); 
-    sout<<endl;
+    sout<<Message_EndLine;
     status = IFSelect_RetFail;
   }
   return status;
index 58c3758..82ac3f0 100644 (file)
@@ -55,7 +55,7 @@ static const Standard_ExtString   voidext = { 0 };
     void  XSControl_Utils::TraceLine (const Standard_CString line) const
 {
   Handle(Message_Messenger) sout = Message::DefaultMessenger();
-  sout<<line<<endl;
+  sout<<line<<Message_EndLine;
 }
 
     void  XSControl_Utils::TraceLines (const Handle(Standard_Transient)& lines) const
@@ -66,14 +66,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()<<endl;
+      if (!linha->Value(i).IsNull()) sout<<linha->Value(i)->ToCString()<<Message_EndLine;
     return;
   }
   DeclareAndCast(TColStd_HSequenceOfAsciiString,lina,lines);
   if (!lina.IsNull()) {
     nb = lina->Length();
     for (i = 1; i <= nb; i ++)
-      sout<<lina->Value(i).ToCString()<<endl;
+      sout<<lina->Value(i).ToCString()<<Message_EndLine;
     return;
   }
   DeclareAndCast(TColStd_HSequenceOfHExtendedString,linhe,lines);
@@ -81,14 +81,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) << endl;
+       sout << linhe->Value(i) << Message_EndLine;
     return;
   }
   DeclareAndCast(TColStd_HSequenceOfExtendedString,linee,lines);
   if (!linee.IsNull()) {
     nb = linee->Length();
     for (i = 1; i <= nb; i ++)
-      sout << linee->Value(i) << endl;
+      sout << linee->Value(i) << Message_EndLine;
     return;
   }
   DeclareAndCast(TCollection_HAsciiString,lin1a,lines);
index 0ffc9fd..6cf0545 100644 (file)
@@ -209,16 +209,16 @@ Standard_Boolean  XSControl_WorkSession::PrintTransferStatus(const Standard_Inte
     {
       S<<"  ** Transfer Root n0."<<ne;
     }
-    S<<endl;
+    S<<Message_EndLine;
     ent = FP->FindTransient(finder);
-    S<<" -> Type "<<finder->DynamicType()->Name()<<endl;
+    S<<" -> Type "<<finder->DynamicType()->Name()<<Message_EndLine;
     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<<endl;
+      S<<Message_EndLine;
     }
   }
 
@@ -226,8 +226,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()) cout<<"No Model"<<endl;
-    else if (model != Model()) cout<<"Model different from the session"<<endl;
+    if (model.IsNull()) std::cout<<"No Model"<<std::endl;
+    else if (model != Model()) std::cout<<"Model different from the session"<<std::endl;
     if (num == 0) return Standard_False;
 
     Standard_Integer  ne=0, nr=0, max = TP->NbMapped() ,maxr = TP->NbRoots();
@@ -248,10 +248,10 @@ Standard_Boolean  XSControl_WorkSession::PrintTransferStatus(const Standard_Inte
     {
       S<<"  ** Transfer Root n0."<<ne;
     }
-    S<<endl;
+    S<<Message_EndLine;
     if (!model.IsNull())  {  S<<" In Model, Entity ";  model->Print(ent,S); }
     binder = TP->MapItem (ne);
-    S<<endl;
+    S<<Message_EndLine;
     TP->StartTrace (binder,ent,0,0);
 
   }
@@ -262,11 +262,11 @@ Standard_Boolean  XSControl_WorkSession::PrintTransferStatus(const Standard_Inte
     Standard_Integer i,nbw = ch->NbWarnings(), nbf = ch->NbFails();
     if (nbw > 0) {
       S<<" - Warnings : "<<nbw<<" :\n";
-      for (i = 1; i <= nbw; i ++) S<<ch->CWarning(i)<<endl;
+      for (i = 1; i <= nbw; i ++) S<<ch->CWarning(i)<<Message_EndLine;
     }
     if (nbf > 0) {
       S<<" - Fails : "<<nbf<<" :\n";
-      for (i = 1; i <= nbf; i ++) S<<ch->CFail(i)<<endl;
+      for (i = 1; i <= nbf; i ++) S<<ch->CFail(i)<<Message_EndLine;
     }
   }
   return Standard_True;
index 8c8ef6b..9bf22b6 100644 (file)
@@ -149,9 +149,9 @@ void XSDRAW::LoadDraw (Draw_Interpretor& theCommands)
     void  XSDRAW::SetController (const Handle(XSControl_Controller)& control)
 {
   if (thepilot.IsNull()) XSDRAW::LoadSession();
-  if (control.IsNull()) cout<<"XSTEP Controller not defined"<<endl;
+  if (control.IsNull()) std::cout<<"XSTEP Controller not defined"<<std::endl;
   else if (!Session().IsNull()) Session()->SetController (control);
-  else cout<<"XSTEP Session badly or not defined"<<endl;
+  else std::cout<<"XSTEP Session badly or not defined"<<std::endl;
 }
 
 
@@ -236,10 +236,10 @@ void XSDRAW::LoadDraw (Draw_Interpretor& theCommands)
   Handle(TColStd_HSequenceOfTransient) list;
   if (!first || first[0] == '\0') {
     char ligne[80];  ligne[0] = '\0'; char truc;
-//    cin.clear();  cin.get (ligne,79,'\n');
-    cin >> ligne;  Standard_Size ln = strlen(ligne);
+//    std::cin.clear();  std::cin.get (ligne,79,'\n');
+    std::cin >> ligne;  Standard_Size ln = strlen(ligne);
     char *ff = &ligne[0], *ss = NULL;
-    cin.get(truc);  if (truc != '\n') { cin>>&ligne[ln+1]; ss = &ligne[ln+1]; }
+    std::cin.get(truc);  if (truc != '\n') { std::cin>>&ligne[ln+1]; ss = &ligne[ln+1]; }
     return  XSDRAW::GetList (ff,ss);
   }
 //  return IFSelect_Functions::GiveList (Session(),first,second);
@@ -263,11 +263,11 @@ void XSDRAW::LoadDraw (Draw_Interpretor& theCommands)
 
 Standard_Integer XSDRAW_WHAT (const Handle(Standard_Transient)& ent)
 {
-  if (ent.IsNull()) { cout<<"(Null Handle)"<<endl; return 0; }
+  if (ent.IsNull()) { std::cout<<"(Null Handle)"<<std::endl; return 0; }
   Handle(Interface_InterfaceModel) model = XSDRAW::Model();
-  if (model.IsNull()) { cout<<"(No model)  Type:"<<ent->DynamicType()->Name()<<endl; return 0; }
-  cout<<" Num/Id :";  
+  if (model.IsNull()) { std::cout<<"(No model)  Type:"<<ent->DynamicType()->Name()<<std::endl; return 0; }
+  std::cout<<" Num/Id :";  
   model->Print (ent, Message::DefaultMessenger(), 0);
-  cout<<"  --  Recorded Type:"<<model->TypeName (ent)<<endl;
+  std::cout<<"  --  Recorded Type:"<<model->TypeName (ent)<<std::endl;
   return model->Number(ent);
 }
index eac3ad3..fdc0e82 100644 (file)
@@ -76,8 +76,8 @@ void WriteShape(const TopoDS_Shape& shape, const Standard_Integer number)
 {
   char fname[110];
   sprintf(fname, "Shape_%d",number);
-  ofstream f(fname,ios::out);
-  cout << "Output file name : " << fname << endl;
+  std::ofstream f(fname,std::ios::out);
+  std::cout << "Output file name : " << fname << std::endl;
   f << "DBRep_DrawableShape\n";
   
   BRepTools::Write(shape, f);
@@ -155,12 +155,12 @@ static Standard_Integer igesbrep (Draw_Interpretor& di, Standard_Integer argc, c
     //mode OnlyVisible does not work.
     // nent = Reader.NbRootsForTransfer();
     if (!fromtcl) {
-      cout<<"Mode (0 End, 1 Visible Roots, 2 All Roots, 3 Only One Entity, 4 Selection) :"<<flush;
+      std::cout<<"Mode (0 End, 1 Visible Roots, 2 All Roots, 3 Only One Entity, 4 Selection) :"<<std::flush;
       modepri = -1;
       
 // amv 26.09.2003 : this is used to avoid error of enter's simbol        
       char str[80];                                                             
-      cin>>str;                                                                 
+      std::cin>>str;                                                                 
       modepri = Draw::Atoi(str);   
     }
 
@@ -191,11 +191,11 @@ static Standard_Integer igesbrep (Draw_Interpretor& di, Standard_Integer argc, c
       di<<"Count of shapes produced : "<<Reader.NbShapes()<<"\n";
       Standard_Integer answer = 1;
       if (Reader.NbShapes() > 1) {
-       cout << " pass(0)  one shape for all (1)\n or one shape per root (2)\n + WriteBRep (one for all : 3) (one per root : 4) : " << flush;
+       std::cout << " pass(0)  one shape for all (1)\n or one shape per root (2)\n + WriteBRep (one for all : 3) (one per root : 4) : " << std::flush;
         answer = -1;
         //amv 26.09.2003                                                        
         char str_a[80];                                                         
-        cin >> str_a;                                                           
+        std::cin >> str_a;                                                           
         answer = Draw::Atoi(str_a);    
       }
       if ( answer == 0) continue;
@@ -245,10 +245,10 @@ static Standard_Integer igesbrep (Draw_Interpretor& di, Standard_Integer argc, c
     }
 
     else if (modepri == 3) {  // One Entity
-      cout << "Only One Entity"<<endl;
-      cout<<"spline_continuity (read) : "<<Interface_Static::IVal("read.iges.bspline.continuity")<<" (0 : no modif, 1 : C1, 2 : C2)"<<endl;
-      cout<<"  To modify : command  param read.iges.bspline.continuity"<<endl;
-      cout << " give the number of the Entity : " << flush;
+      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 << " give the number of the Entity : " << std::flush;
       nent = XSDRAW::GetEntityNumber();
 
       if (!Reader.TransferOne (nent)) di<<"Transfer entity n0 "<<nent<<" : no result\n";
@@ -325,9 +325,9 @@ static Standard_Integer igesbrep (Draw_Interpretor& di, Standard_Integer argc, c
         }
       }
       else {
-       cout<<"Name of Selection :"<<flush;
+       std::cout<<"Name of Selection :"<<std::flush;
        list = XSDRAW::GetList();
-       if (list.IsNull()) { cout<<"No list defined"<<endl; continue; }
+       if (list.IsNull()) { std::cout<<"No list defined"<<std::endl; continue; }
       }
 
       Standard_Integer nbl = list->Length();
@@ -335,11 +335,11 @@ static Standard_Integer igesbrep (Draw_Interpretor& di, Standard_Integer argc, c
       if (nbl == 0) continue;
       while (answer) {
        if (!fromtcl) {
-         cout<<"Choice: 0 abandon  1 transfer all  2 with confirmation  3 list n0s ents :"<<flush;
+         std::cout<<"Choice: 0 abandon  1 transfer all  2 with confirmation  3 list n0s ents :"<<std::flush;
           answer = -1;
           // anv 26.09.2003                                                     
           char str_answer[80];                                                  
-          cin>>str_answer;                                                      
+          std::cin>>str_answer;                                                      
           answer = Draw::Atoi(str_answer);    
        }
        if (answer <= 0 || answer > 3) continue;
index 07d260b..e7662a8 100644 (file)
@@ -133,9 +133,9 @@ static Standard_Integer stepread (Draw_Interpretor& di/*theCommands*/, Standard_
   if(!fromtcl)
     fromtcl = argc > k;
   if(aFullMode)
-    cout<<"Full model for translation with additional info will be used \n"<<flush;
+    std::cout<<"Full model for translation with additional info will be used \n"<<std::flush;
   else
-    cout<<"Reduced model for translation without additional info will be used \n"<<flush;
+    std::cout<<"Reduced model for translation without additional info will be used \n"<<std::flush;
   
   sr.WS()->SetModeStat(aFullMode);
 
@@ -166,15 +166,15 @@ static Standard_Integer stepread (Draw_Interpretor& di/*theCommands*/, Standard_
         di<<" Type:"<<sr.RootForTransfer(i)->DynamicType()->Name()<<"\n";
       }
 
-      cout<<"Mode (0 End, 1 root n0 1, 2 one root/n0, 3 one entity/n0, 4 Selection) : "<<flush;
-      cin>>modepri;
+      std::cout<<"Mode (0 End, 1 root n0 1, 2 one root/n0, 3 one entity/n0, 4 Selection) : "<<std::flush;
+      std::cin>>modepri;
     }
 
     if (modepri == 0) { di<<"End Reading STEP\n"; return 0; }
     if (modepri <= 2) {
       num = 1;
       if (modepri == 2) {
-        cout<<"Root N0 : "<<flush;  cin>>num;
+        std::cout<<"Root N0 : "<<std::flush;  std::cin>>num;
       }
 
       progress->NewScope ( 80, "Translation" );
@@ -196,7 +196,7 @@ static Standard_Integer stepread (Draw_Interpretor& di/*theCommands*/, Standard_
       progress->Show();
     }
     else if (modepri == 3) {
-      cout<<"Entity : "<<flush;  num = XSDRAW::GetEntityNumber();
+      std::cout<<"Entity : "<<std::flush;  num = XSDRAW::GetEntityNumber();
       if (!sr.TransferOne (num)) di<<"Transfer entity n0 "<<num<<" : no result\n";
       else {
         nbs = sr.NbShapes();
@@ -230,7 +230,7 @@ static Standard_Integer stepread (Draw_Interpretor& di/*theCommands*/, Standard_
         }
         if (list.IsNull()) { di<<"No list defined. Give a selection name or * for all transferrable roots\n"; continue; }
       } else {
-        cout<<"Name of Selection :"<<flush;
+        std::cout<<"Name of Selection :"<<std::flush;
         list = XSDRAW::GetList();
         if (list.IsNull()) { di<<"No list defined\n"; continue; }
       }
@@ -491,7 +491,7 @@ static Standard_Integer dumpassembly
   const Interface_Graph& graph = WS->Graph();
   
   STEPSelections_AssemblyExplorer exp(graph);
-  exp.Dump(cout);
+  exp.Dump(std::cout);
   return 0;
 }
 
@@ -500,7 +500,7 @@ static Standard_Integer stepfileunits (Draw_Interpretor& di, Standard_Integer ar
 
   if(  argc < 2)
   {
-    cout<<"Error: Invalid number of parameters. Should be: getfileunits name_file"<<endl;
+    std::cout<<"Error: Invalid number of parameters. Should be: getfileunits name_file"<<std::endl;
     return 1;
   }
   STEPControl_Reader aStepReader;
index 5a0551d..eee2583 100644 (file)
@@ -551,10 +551,10 @@ static Standard_Integer loadvrml
     VrmlData_DataMapOfShapeAppearance aShapeAppMap;
 
     //-----------------------------------------------------------
-    filebuf aFic;
-    istream aStream (&aFic);
+    std::filebuf aFic;
+    std::istream aStream (&aFic);
 
-    if (aFic.open(argv[2], ios::in)) {
+    if (aFic.open(argv[2], std::ios::in)) {
 
       // Get path of the VRML file.
       OSD_Path aPath(argv[2]);
index 2e57d97..f6cc4e1 100644 (file)
@@ -36,7 +36,7 @@ XSDRAWSTLVRML_DataSource::XSDRAWSTLVRML_DataSource (const Handle(Poly_Triangulat
     const TColgp_Array1OfPnt& aCoords = myMesh->Nodes();
     Standard_Integer len = aCoords.Length(), i, j;
     myNodeCoords = new TColStd_HArray2OfReal(1, len, 1, 3);
-    cout << "Nodes : " << len << endl;
+    std::cout << "Nodes : " << len << std::endl;
 
     gp_XYZ xyz;
 
@@ -55,7 +55,7 @@ XSDRAWSTLVRML_DataSource::XSDRAWSTLVRML_DataSource (const Handle(Poly_Triangulat
     myElemNormals = new TColStd_HArray2OfReal(1, len, 1, 3);
     myElemNodes = new TColStd_HArray2OfInteger(1, len, 1, 3);
 
-    cout << "Elements : " << len << endl;
+    std::cout << "Elements : " << len << std::endl;
 
     for( i = 1; i <= len; i++ )
     {
@@ -89,7 +89,7 @@ XSDRAWSTLVRML_DataSource::XSDRAWSTLVRML_DataSource (const Handle(Poly_Triangulat
       myElemNormals->SetValue (i, 3, aN.Z());
     }
   }
-  cout << "Construction is finished" << endl;
+  std::cout << "Construction is finished" << std::endl;
 }
 
 //================================================================
index 291c844..9d05606 100644 (file)
@@ -43,7 +43,7 @@ const Handle(Standard_Transient)& XmlDrivers::Factory(const Standard_GUID& theGU
   if (theGUID == XmlStorageDriver)
   {
 #ifdef OCCT_DEBUG
-    cout << "XmlDrivers : Storage Plugin" << endl;
+    std::cout << "XmlDrivers : Storage Plugin" << std::endl;
 #endif
     static Handle(Standard_Transient) model_sd =
       new XmlDrivers_DocumentStorageDriver
@@ -54,7 +54,7 @@ const Handle(Standard_Transient)& XmlDrivers::Factory(const Standard_GUID& theGU
   if (theGUID == XmlRetrievalDriver)
   {
 #ifdef OCCT_DEBUG
-    cout << "XmlDrivers : Retrieval Plugin" << endl;
+    std::cout << "XmlDrivers : Retrieval Plugin" << std::endl;
 #endif
     static Handle (Standard_Transient) model_rd =
       new XmlDrivers_DocumentRetrievalDriver ();
index ab1adbd..28b4469 100644 (file)
@@ -44,7 +44,7 @@ const Handle(Standard_Transient)& XmlLDrivers::Factory(const Standard_GUID& theG
   if (theGUID == XmlLStorageDriver)
   {
 #ifdef OCCT_DEBUG
-    cout << "XmlLDrivers : Storage Plugin" << endl;
+    std::cout << "XmlLDrivers : Storage Plugin" << std::endl;
 #endif
     static Handle(Standard_Transient) model_sd =
       new XmlLDrivers_DocumentStorageDriver
@@ -55,7 +55,7 @@ const Handle(Standard_Transient)& XmlLDrivers::Factory(const Standard_GUID& theG
   if (theGUID == XmlLRetrievalDriver)
   {
 #ifdef OCCT_DEBUG
-    cout << "XmlLDrivers : Retrieval Plugin" << endl;
+    std::cout << "XmlLDrivers : Retrieval Plugin" << std::endl;
 #endif
     static Handle (Standard_Transient) model_rd =
       new XmlLDrivers_DocumentRetrievalDriver ();
@@ -79,7 +79,7 @@ TCollection_AsciiString XmlLDrivers::CreationDate ()
   if (time(&nowbin) == (time_t) - 1)
   {
 #ifdef OCCT_DEBUG
-    cerr << "Storage ERROR : Could not get time of day from time()" << endl;
+    std::cerr << "Storage ERROR : Could not get time of day from time()" << std::endl;
 #endif
   }
   
@@ -88,7 +88,7 @@ TCollection_AsciiString XmlLDrivers::CreationDate ()
   if (strftime(nowstr, SLENGTH, "%Y-%m-%d", nowstruct) == (size_t) 0)
   {
 #ifdef OCCT_DEBUG
-    cerr << "Storage ERROR : Could not get string from strftime()" << endl;
+    std::cerr << "Storage ERROR : Could not get string from strftime()" << std::endl;
 #endif
   }
 
index 936272f..c3e8f14 100644 (file)
@@ -222,7 +222,7 @@ void XmlLDrivers_DocumentRetrievalDriver::Read (Standard_IStream&              t
   if (aParser.parse(theIStream, Standard_False, aWithoutRoot))
   {
     TCollection_AsciiString aData;
-    cout << aParser.GetError(aData) << ": " << aData << endl;
+    std::cout << aParser.GetError(aData) << ": " << aData << std::endl;
     myReaderStatus = PCDM_RS_FormatFailure;
     return;
   }
@@ -294,7 +294,7 @@ void XmlLDrivers_DocumentRetrievalDriver::ReadFromDomDocument
         theNewDocument->SetReferenceCounter(aRefCounter);
       }
       catch (Standard_Failure const&) {
-        //    cout << "warning: could not read the reference counter in " << aFileName << endl;
+        //    std::cout << "warning: could not read the reference counter in " << aFileName << std::endl;
         TCollection_ExtendedString aMsg("Warning: ");
         aMsg = aMsg.Cat("could not read the reference counter").Cat("\0");
         if(!aMsgDriver.IsNull()) 
@@ -343,7 +343,7 @@ void XmlLDrivers_DocumentRetrievalDriver::ReadFromDomDocument
     if(!anAbsolutePath.IsEmpty()) aPath=anAbsolutePath;
         }
         if(!aMsgDriver.IsNull()) {
-    //      cout << "reference found; ReferenceIdentifier: " << theReferenceIdentifier << "; File:" << thePath << ", version:" << theDocumentVersion;
+    //      std::cout << "reference found; ReferenceIdentifier: " << theReferenceIdentifier << "; File:" << thePath << ", version:" << theDocumentVersion;
           TCollection_ExtendedString aMsg("Warning: ");
           aMsg = aMsg.Cat("reference found; ReferenceIdentifier:  ").Cat(aRefId).Cat("; File:").Cat(aPath).Cat(", version:").Cat(aDocumentVersion).Cat("\0");
           aMsgDriver->Send(aMsg.ToExtString(), Message_Warning);
index 61c86be..06e11c8 100644 (file)
@@ -393,7 +393,7 @@ Standard_Integer XmlLDrivers_DocumentStorageDriver::MakeDocument
     return myRelocTable.Extent();
   }
 #ifdef OCCT_DEBUG
-  cout << "First step failed" << endl;  // No MessageDriver available
+  std::cout << "First step failed" << std::endl;  // No MessageDriver available
 #endif
   return -1; // error
 }
index da52376..da434e5 100644 (file)
@@ -120,7 +120,7 @@ Standard_Integer XmlMDF::WriteSubTree
 #ifdef OCCT_DEBUG
     else if (!UnsuppTypesMap().Contains (aType))
     {
-      cout << "attribute driver for type "<< aType -> Name()<< " not found"<< endl;
+      std::cout << "attribute driver for type "<< aType -> Name()<< " not found"<< std::endl;
       UnsuppTypesMap().Add (aType);
     }
 #endif
@@ -232,8 +232,8 @@ Standard_Integer XmlMDF::ReadSubTree (const XmlObjMgt_Element&    theElement,
        TCollection_AsciiString  newName;       
        if(Storage_Schema::CheckTypeMigration(aName, newName)) {
 #ifdef OCCT_DEBUG
-         cout << "CheckTypeMigration:OldType = " <<aName.GetString() << " Len = "<<strlen(aName.GetString())<<endl;
-         cout << "CheckTypeMigration:NewType = " <<newName  << " Len = "<< newName.Length()<<endl;
+         std::cout << "CheckTypeMigration:OldType = " <<aName.GetString() << " Len = "<<strlen(aName.GetString())<<std::endl;
+         std::cout << "CheckTypeMigration:NewType = " <<newName  << " Len = "<< newName.Length()<<std::endl;
 #endif
          aName = newName.ToCString();
        }
@@ -296,8 +296,8 @@ Standard_Integer XmlMDF::ReadSubTree (const XmlObjMgt_Element&    theElement,
         else
         {
           const TCollection_AsciiString anAsciiName = aName;
-          cerr << "XmlDriver warning: "
-               << "label contains object of unknown type "<< anAsciiName<< endl;
+          std::cerr << "XmlDriver warning: "
+               << "label contains object of unknown type "<< anAsciiName<< std::endl;
         }
 #endif
       }
index b4ae0ae..17fe955 100644 (file)
@@ -144,7 +144,7 @@ Standard_Boolean XmlMDataStd_ByteArrayDriver::Paste(const XmlObjMgt_Persistent&
       aDelta = aDeltaValue != 0;
   }
 #ifdef OCCT_DEBUG
-    cout << "Current Document Format Version = " << theRelocTable.GetHeaderData()->StorageVersion().IntegerValue() <<endl;
+    std::cout << "Current Document Format Version = " << theRelocTable.GetHeaderData()->StorageVersion().IntegerValue() <<std::endl;
 #endif
   aByteArray->SetDelta(aDelta);
 
index a46cbf1..6b162e2 100644 (file)
@@ -185,7 +185,7 @@ void XmlMDataXtd_TriangulationDriver::Paste(const Handle(TDF_Attribute)& theSour
              << n3 << " ";
     }
 
-    stream << ends;
+    stream << std::ends;
 
     Standard_Character* dump = (Standard_Character*)stream.str(); // copying! Don't forget to delete it.
     XmlObjMgt::SetStringValue(theTarget, dump, Standard_True);
index a9ed309..a710679 100644 (file)
@@ -374,7 +374,7 @@ void XmlMNaming_NamedShapeDriver::WriteShapeSection
 //    ostrstream aStream;
 //    aStream.rdbuf() -> setbuf (0, 16380);
     myShapeSet.Write (aStream);
-    aStream << ends;
+    aStream << std::ends;
     char * aStr = (char *)aStream.str();
     LDOM_Text aText = aDoc.createTextNode (aStr);
     delete [] aStr;
index 7fde859..d89c111 100644 (file)
@@ -194,13 +194,13 @@ Standard_Boolean XmlMNaming_NamingDriver::Paste
         TDF_Tool::Label(aNg->Label().Data(), anEntry, tLab, Standard_True);
         aNgName.ContextLabel(tLab);
 #ifdef OCCT_DEBUG
-        cout << "Retrieving Context Label = " << anEntry.ToCString() <<endl;
+        std::cout << "Retrieving Context Label = " << anEntry.ToCString() <<std::endl;
 #endif
       }
     }
 #ifdef OCCT_DEBUG
     else
-      cout << "Retrieving Context Label is NULL" <<endl;
+      std::cout << "Retrieving Context Label is NULL" <<std::endl;
 #endif
 
     if(theRelocTable.GetHeaderData()->StorageVersion().IntegerValue() > 4 && 
@@ -239,7 +239,7 @@ Standard_Boolean XmlMNaming_NamingDriver::Paste
   }
 #ifdef OCCT_DEBUG
   else 
-    cout << "Current Document Format Version = "  << theRelocTable.GetHeaderData()->StorageVersion().IntegerValue() <<endl;
+    std::cout << "Current Document Format Version = "  << theRelocTable.GetHeaderData()->StorageVersion().IntegerValue() <<std::endl;
 #endif
   return Standard_True;
 }
@@ -309,13 +309,13 @@ void XmlMNaming_NamingDriver::Paste
   XmlObjMgt::SetTagEntryString (aDOMString, anEntry);
   anElem.setAttribute(::ContextLabelString(), aDOMString);
 #ifdef OCCT_DEBUG
-  cout << "XmlMNaming_NamingDriver::Store: ContextLabel Entry = " << anEntry << endl;
+  std::cout << "XmlMNaming_NamingDriver::Store: ContextLabel Entry = " << anEntry << std::endl;
   if (aDOMString != NULL)
   {
     Standard_CString aStr = Standard_CString(aDOMString.GetString());
-    cout << "XmlMNaming_NamingDriver::Store: ContextLabel DOMString = " << aStr << endl;
+    std::cout << "XmlMNaming_NamingDriver::Store: ContextLabel DOMString = " << aStr << std::endl;
   } else
-    cout << "XmlMNaming_NamingDriver::Store: aDOMString is NULL" <<endl;
+    std::cout << "XmlMNaming_NamingDriver::Store: aDOMString is NULL" <<std::endl;
 #endif
 
   // orientation
index 4ab9967..7918e45 100644 (file)
@@ -104,7 +104,7 @@ void XmlMXCAFDoc_LocationDriver::Translate (const TopLoc_Location&      theLoc,
   if( myLocations == 0 )
   {
 #ifdef OCCT_DEBUG
-    cout<<"Pointer to LocationSet is NULL\n";
+    std::cout<<"Pointer to LocationSet is NULL\n";
 #endif
     return;
   }
index cb4d813..abfc2e9 100644 (file)
@@ -37,7 +37,7 @@ const Handle(Standard_Transient)& XmlTObjDrivers::Factory(const Standard_GUID& a
   if(aGUID == XmlStorageDriver)
   {
 #ifdef OCCT_DEBUG
-    cout << "XmlTObjDrivers : Storage Plugin" << endl;
+    std::cout << "XmlTObjDrivers : Storage Plugin" << std::endl;
 #endif
     static Handle(Standard_Transient) model_sd
       = new XmlTObjDrivers_DocumentStorageDriver
@@ -48,7 +48,7 @@ const Handle(Standard_Transient)& XmlTObjDrivers::Factory(const Standard_GUID& a
   if(aGUID == XmlRetrievalDriver)
   {  
 #ifdef OCCT_DEBUG
-    cout << "XmlTObjDrivers : Retrieval Plugin" << endl;
+    std::cout << "XmlTObjDrivers : Retrieval Plugin" << std::endl;
 #endif
     static Handle (Standard_Transient) model_rd
       = new XmlTObjDrivers_DocumentRetrievalDriver;
index 2ea9122..037a1d6 100644 (file)
@@ -31,7 +31,7 @@ const Handle(Standard_Transient)& XmlXCAFDrivers::Factory(const Standard_GUID& a
   if(aGUID == XSStorageDriver)  
   {
 #ifdef OCCT_DEBUG
-    cout << "XmlXCAFDrivers : Storage Plugin" << endl;
+    std::cout << "XmlXCAFDrivers : Storage Plugin" << std::endl;
 #endif
     static Handle(Standard_Transient) model_sd 
       = new XmlXCAFDrivers_DocumentStorageDriver
@@ -41,7 +41,7 @@ const Handle(Standard_Transient)& XmlXCAFDrivers::Factory(const Standard_GUID& a
   if(aGUID == XSRetrievalDriver) 
   {  
 #ifdef OCCT_DEBUG
-    cout << "XmlXCAFDrivers : Retrieval Plugin" << endl;
+    std::cout << "XmlXCAFDrivers : Retrieval Plugin" << std::endl;
 #endif
     static Handle (Standard_Transient) model_rd 
       = new XmlXCAFDrivers_DocumentRetrievalDriver;
index f05a30c..88eecc5 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 << endl;
-    o << " The value at this Root is: " << f << endl;
+    o << " The Root  is: " << x << std::endl;
+    o << " The value at this Root is: " << f << std::endl;
   }
   else {
     o << " Status = not Done \n";
index 4601b7a..39e0c8a 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: " << endl;
-        o << Ax << ", " << Bx << ", " << Cx << endl;
-        o << " The corresponding function values are: "<< endl;
-        o << FAx << ", " << FBx << ", " << FCx << endl;
+        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;
        }
        else {
          o << " Status = not Done \n";
index b72bef4..29e9a6b 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 << endl;
-        o << " The Root is: " << TheRoot << endl;
-        o << " The value at the root is: " << TheError << endl;
+        o << " Number of iterations = " << NbIter << std::endl;
+        o << " The Root is: " << TheRoot << std::endl;
+        o << " The value at the root is: " << TheError << std::endl;
        }
        else {
          o << " Status = not Done \n";
index d5ae727..50932dc 100644 (file)
@@ -60,14 +60,14 @@ const Standard_Real ZERO = 1.0e-30;
         Standard_Real IniVal = Value(N, Poly, IniSol);
         Standard_Integer Index;
 
-//      cout << "Improve\n";
+//      std::cout << "Improve\n";
         for(Index = 1; Index < 10; Index++) {
           Values(N, Poly, Sol, Val, Der);
           if(Abs(Der) <= ZERO) break;
           Delta = - Val / Der;
           if(Abs(Delta) <= EPSILON * Abs(Sol)) break;
           Sol = Sol + Delta;
-//        cout << " Iter = " << Index << " Delta = " << Delta 
+//        std::cout << " Iter = " << Index << " Delta = " << Delta 
 //             << " Val  = " << Val   << " Der   = " << Der << "\n";
         }
         if(Abs(Val) <= Abs(IniVal)) {
index 02cab99..7abc9b7 100644 (file)
@@ -223,8 +223,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() << endl;
-    o << " Number of points where the function is null: " << piso.Length() << endl;
+    o << " Number of null intervals = " << pdeb.Length() << std::endl;
+    o << " Number of points where the function is null: " << piso.Length() << std::endl;
   }
   else {
     o<< " Status = not Done \n";
index 4b45825..c46acd4 100644 (file)
@@ -116,9 +116,9 @@ class math_MyFunctionSetWithDerivatives : public math_FunctionSetWithDerivatives
        o<< "math_FunctionRoot ";
        if(Done) {
          o<< " Status = Done \n";
-        o << " Number of iterations = " << NbIter << endl;
-        o << " The Root is: " << TheRoot << endl;
-        o << "The value at the root is: " << TheError << endl;
+        o << " Number of iterations = " << NbIter << std::endl;
+        o << " The Root is: " << TheRoot << std::endl;
+        o << "The value at the root is: " << TheError << std::endl;
        }
        else {
          o<< " Status = not Done \n";
index 7d565be..c5241ab 100644 (file)
@@ -65,8 +65,8 @@ static void  AppendRoot(TColStd_SequenceOfReal& Sol,
   Standard_Real t;
 #ifdef OCCT_DEBUG
  if (myDebug) {
-   cout << "   Ajout de la solution numero : " << n+1 << endl;
-   cout << "   Valeur de la racine :" << X << endl;
+   std::cout << "   Ajout de la solution numero : " << n+1 << std::endl;
+   std::cout << "   Valeur de la racine :" << X << std::endl;
  } 
 #endif
   
@@ -115,9 +115,9 @@ static void  Solve(math_FunctionWithDerivative& F,
                   TColStd_SequenceOfInteger& NbStateSol) { 
 #ifdef OCCT_DEBUG
   if (myDebug) {
-    cout <<"--> Resolution :" << ++nbsolve << endl;
-    cout <<"   x1 =" << x1 << " y1 =" << y1 << endl;
-    cout <<"   x2 =" << x2 << " y2 =" << y2 << endl;
+    std::cout <<"--> Resolution :" << ++nbsolve << std::endl;
+    std::cout <<"   x1 =" << x1 << " y1 =" << y1 << std::endl;
+    std::cout <<"   x2 =" << x2 << " y2 =" << y2 << std::endl;
   }
 #endif
 
@@ -206,7 +206,7 @@ static void  Solve(math_FunctionWithDerivative& F,
     fb-=K;
   }
 #ifdef OCCT_DEBUG
-  cout<<" Non Convergence dans math_FunctionRoots.cxx "<<endl;
+  std::cout<<" Non Convergence dans math_FunctionRoots.cxx "<<std::endl;
 #endif
 }
 
@@ -227,7 +227,7 @@ math_FunctionRoots::math_FunctionRoots(math_FunctionWithDerivative& F,
 { 
 #ifdef OCCT_DEBUG
   if (myDebug) {
-    cout << "---- Debut de math_FunctionRoots ----" << endl;
+    std::cout << "---- Debut de math_FunctionRoots ----" << std::endl;
     nbsolve = 0;
   }
 #endif
@@ -627,7 +627,7 @@ math_FunctionRoots::math_FunctionRoots(math_FunctionWithDerivative& F,
   Standard_Real NEpsX  = 0.0000000001 * DeltaU;
   if(EpsX < NEpsX) { 
     EpsX = NEpsX; 
-    //-- cout<<" \n EpsX Init = "<<_EpsX<<" devient : (deltaU : "<<DeltaU<<" )   EpsX = "<<EpsX<<endl;
+    //-- std::cout<<" \n EpsX Init = "<<_EpsX<<" devient : (deltaU : "<<DeltaU<<" )   EpsX = "<<EpsX<<std::endl;
   }
   //-- 
   Null2 = EpsNull*EpsNull;
@@ -1083,9 +1083,9 @@ void math_FunctionRoots::Dump(Standard_OStream& o) const
   o << "math_FunctionRoots ";
   if(Done) {
     o << " Status = Done \n";
-    o << " Number of solutions = " << Sol.Length() << endl;
+    o << " Number of solutions = " << Sol.Length() << std::endl;
     for (Standard_Integer i = 1; i <= Sol.Length(); i++) {
-      o << " Solution Number " << i << "= " << Sol.Value(i) << endl;
+      o << " Solution Number " << i << "= " << Sol.Value(i) << std::endl;
     }
   }
   else {
index 72b3ee9..3cb7d8a 100644 (file)
@@ -63,7 +63,7 @@
 //========================================================== 
 //static Standard_Boolean mydebug = Standard_True;
 //#undef FSR_DEBUG
-//#define FSR_DEBUG(arg) {if (mydebug) { cout << arg << endl; }}
+//#define FSR_DEBUG(arg) {if (mydebug) { std::cout << arg << std::endl; }}
 //===========================================================
 
 class MyDirFunction : public math_Function
@@ -764,7 +764,7 @@ void math_FunctionSetRoot::Perform(math_FunctionSetWithDerivatives& F,
   // de faire une seconde iteration...
   Save(0) = Max (F2, EpsSqrt);
   Standard_Real aTol_Func = Epsilon(F2);
-  FSR_DEBUG("=== Mode Debug de Function Set Root" << endl);
+  FSR_DEBUG("=== Mode Debug de Function Set Root" << std::endl);
   FSR_DEBUG("    F2 Initial = " << F2);
 
   if ((F2 <= Eps) || (Gnr1 <= Eps2)) {
index 9c63534..06d4df0 100644 (file)
@@ -108,7 +108,7 @@ void math_Gauss::Dump(Standard_OStream& o) const {
        o << "math_Gauss ";
        if(Done) {
          o<< " Status = Done \n";
-        o << " Determinant of A = " << D << endl;
+        o << " Determinant of A = " << D << std::endl;
        }
        else {
          o << " Status = not Done \n";
index 1510735..3aae444 100644 (file)
@@ -221,7 +221,7 @@ void math_GlobOptMin::Perform(const Standard_Boolean isFindSingleSolution)
   if (minLength < Precision::PConfusion())
   {
     #ifdef OCCT_DEBUG
-    cout << "math_GlobOptMin::Perform(): Degenerated parameters space" << endl;
+    std::cout << "math_GlobOptMin::Perform(): Degenerated parameters space" << std::endl;
     #endif
 
     return;
index 3783838..c5e3123 100644 (file)
@@ -48,7 +48,7 @@ void math_Jacobi::Dump(Standard_OStream& o) const {
   o <<"math_Jacobi ";
    if (Done) {
      o << " Status = Done \n";
-     o << " The eigenvalues vector is: " << EigenValues << endl;
+     o << " The eigenvalues vector is: " << EigenValues << std::endl;
    }
    else {
      o << "Status = not Done \n";
index 76c2b8c..01a6178 100644 (file)
@@ -258,13 +258,13 @@ void math_NewtonMinimum::Perform(math_MultipleVarFunctionWithHessian& F,
 void math_NewtonMinimum::Dump(Standard_OStream& o) const 
 {
   o<< "math_Newton Optimisation: ";
-  o << " Done   ="  << Done << endl; 
-  o << " Status = " << (Standard_Integer)TheStatus << endl;
-  o << " Location Vector = " << Location() << endl;
-  o << " Minimum value = "<< Minimum()<< endl;
-  o << " Previous value = "<< PreviousMinimum << endl;
-  o << " Number of iterations = " <<NbIterations() << endl;
-  o << " Convexity = " << Convex << endl;
-  o << " Eigen Value = " << MinEigenValue << endl;
+  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;
 }
 
index ff808ec..aa65258 100644 (file)
@@ -372,14 +372,14 @@ void math_TrigonometricFunctionRoots::Perform(const Standard_Real A,
          //-- est ce une racine double ou une erreur numerique ? 
          Standard_Real qw=Zer(i+1);
          Standard_Real va=ko(4)+qw*(2.0*ko(3)+qw*(3.0*ko(2)+qw*(4.0*ko(1))));
-         //-- cout<<"   Val Double ("<<qw<<")=("<<va<<")"<<endl;
+         //-- std::cout<<"   Val Double ("<<qw<<")=("<<va<<")"<<std::endl;
          if(Abs(va)>Eps) { 
            bko=Standard_True;
            nbko++;
 #ifdef OCCT_DEBUG
            //if(nbko==1) { 
-           //  cout<<"Pb ds math_TrigonometricFunctionRoots CC="
-           //  <<A<<" CS="<<B<<" C="<<C<<" S="<<D<<" Cte="<<E<<endl;
+           //  std::cout<<"Pb ds math_TrigonometricFunctionRoots CC="
+           //  <<A<<" CS="<<B<<" C="<<C<<" S="<<D<<" Cte="<<E<<std::endl;
            //}
 #endif
            break;
@@ -428,7 +428,7 @@ void math_TrigonometricFunctionRoots::Perform(const Standard_Real A,
       //-- lbr le 7 mars 97 (newton converge tres tres loin de la solution initilale)
       Standard_Real DeltaNewton = TetaNewton-Teta;
       if((DeltaNewton > SupmInfs100) || (DeltaNewton < -SupmInfs100)) { 
-       //-- cout<<"\n Newton X0="<<Teta<<" -> "<<TetaNewton<<endl;
+       //-- std::cout<<"\n Newton X0="<<Teta<<" -> "<<TetaNewton<<std::endl;
       }
       else { 
        Teta=TetaNewton;
index 8040b3d..a16afff 100644 (file)
@@ -203,11 +203,11 @@ void math_Uzawa::Perform(const math_Matrix& Cont, const math_Vector& Secont,
       if (NbIter > 1) {                   
        if (Xmax <= EpsLix) {
          if (ErrMax <= EpsLic) {
-//         cout <<"Convergence atteinte dans Uzawa"<<endl;
+//         std::cout <<"Convergence atteinte dans Uzawa"<<std::endl;
            Done = Standard_True;
          }
          else {
-//         cout <<"convergence non atteinte pour le probleme dual"<<endl;
+//         std::cout <<"convergence non atteinte pour le probleme dual"<<std::endl;
            Done = Standard_False;
            return;
          }
@@ -235,8 +235,8 @@ void math_Uzawa::Dump(Standard_OStream& o) const {
   o << "math_Uzawa";
   if(Done) {
     o << " Status = Done \n";
-    o << " Number of iterations = " << NbIter << endl;
-    o << " The solution vector is: " << Resul << endl;
+    o << " Number of iterations = " << NbIter << std::endl;
+    o << " The solution vector is: " << Resul << std::endl;
   }
   else {
     o << " Status = not Done \n";
index c7e9571..ba7217d 100644 (file)
@@ -65,7 +65,7 @@ void DFBrowser_DumpView::OnTreeViewSelectionChanged (const QItemSelection& theSe
   aFileName += "/dfbrowser.txt";
   // print dump to file(not in a string stream because result might be too long)
   std::ofstream aFileStream;
-  OSD_OpenStream(aFileStream, aFileName, ios::out);
+  OSD_OpenStream(aFileStream, aFileName, std::ios::out);
   if (anItem->HasAttribute())
   {
     Handle(TDF_Attribute) anAttribute = anItem->GetAttribute();
index 08e720a..e03dd5b 100644 (file)
@@ -126,7 +126,7 @@ static int tinspector (Draw_Interpretor& di, Standard_Integer theArgsNb, const c
       anIt++;
       if (anIt == theArgsNb)
       {
-        cout << "Empty argument of '" << aParam << "'.\n";
+        std::cout << "Empty argument of '" << aParam << "'.\n";
         return 1;
       }
       TCollection_AsciiString aPluginName;
@@ -138,14 +138,14 @@ static int tinspector (Draw_Interpretor& di, Standard_Integer theArgsNb, const c
       anIt++;
       if (anIt == theArgsNb)
       {
-        cout << "Empty argument of '" << aParam << "'.\n";
+        std::cout << "Empty argument of '" << aParam << "'.\n";
         return 1;
       }
       TopoDS_Shape aShape = DBRep::Get (theArgs[anIt]);
       anIt++;
       if (aShape.IsNull())
       {
-        cout << "Wrong shape name: " << aParam << ".\n";
+        std::cout << "Wrong shape name: " << aParam << ".\n";
         return 1;
       }
       NCollection_List<TCollection_AsciiString> anArgPlugins;
@@ -174,7 +174,7 @@ static int tinspector (Draw_Interpretor& di, Standard_Integer theArgsNb, const c
       anIt++;
       if (anIt == theArgsNb)
       {
-        cout << "Empty argument of '" << aParam << "'.\n";
+        std::cout << "Empty argument of '" << aParam << "'.\n";
         return 1;
       }
       TCollection_AsciiString aFileName (theArgs[anIt]);
@@ -200,7 +200,7 @@ static int tinspector (Draw_Interpretor& di, Standard_Integer theArgsNb, const c
       anIt++;
       if (anIt == theArgsNb)
       {
-        cout << "Empty argument of '" << aParam << "'.\n";
+        std::cout << "Empty argument of '" << aParam << "'.\n";
         return 1;
       }
       aNeedDirectory = true;
@@ -220,7 +220,7 @@ static int tinspector (Draw_Interpretor& di, Standard_Integer theArgsNb, const c
       anIt++;
       if (anIt == theArgsNb)
       {
-        cout << "Empty argument of '" << aParam << "'.\n";
+        std::cout << "Empty argument of '" << aParam << "'.\n";
         return 1;
       }
       // search shape with given name
@@ -254,7 +254,7 @@ static int tinspector (Draw_Interpretor& di, Standard_Integer theArgsNb, const c
       anIt++;
       if (anIt == theArgsNb)
       {
-        cout << "Empty argument of '" << aParam << "'.\n";
+        std::cout << "Empty argument of '" << aParam << "'.\n";
         return 1;
       }
       aNeedToHideInspector = Draw::Atoi (theArgs[anIt]) == 0;
@@ -262,7 +262,7 @@ static int tinspector (Draw_Interpretor& di, Standard_Integer theArgsNb, const c
     }
     else
     {
-      cout << "Wrong argument of command: " << aParam.ToCString() << "\n";
+      std::cout << "Wrong argument of command: " << aParam.ToCString() << "\n";
       return 1;
     }
   }