mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-09-18 14:27:39 +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:
@@ -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();
|
||||
}
|
||||
|
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user