mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -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() )
|
||||
|
@@ -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&,
|
||||
|
@@ -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
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user