mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0030895: Coding Rules - specify std namespace explicitly for std::cout and streams
"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.
This commit is contained in:
@@ -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;
|
||||
|
@@ -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;
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user