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:
@@ -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;
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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;
|
||||
}
|
||||
|
@@ -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();
|
||||
|
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user