0030895: Coding Rules - specify std namespace explicitly for std::cout and streams
[occt.git] / src / IGESGeom / IGESGeom_ToolSplineCurve.cxx
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;
 }