1
0
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:
tiv
2019-08-02 10:32:16 +03:00
committed by bugmaster
parent 3977d18aca
commit 0423218095
972 changed files with 8554 additions and 8550 deletions

View File

@@ -331,7 +331,7 @@ Standard_Boolean BRepBlend_AppFuncRoot::SearchPoint(Blend_AppFunction& Func,
if (!rsnld.IsDone()) {
# ifdef BREPBLEND_DEB
cout << "AppFunc : RNLD Not done en t = " << Param << endl;
std::cout << "AppFunc : RNLD Not done en t = " << Param << std::endl;
# endif
return Standard_False;
}
@@ -343,8 +343,8 @@ Standard_Boolean BRepBlend_AppFuncRoot::SearchPoint(Blend_AppFunction& Func,
// (4) Insertion of the point if the calculation seems long.
if ((!Trouve)&&(rsnld.NbIterations()>3)) {
#ifdef OCCT_DEBUG
cout << "Evaluation in t = " << Param << "given" << endl;
rsnld.Dump(cout);
std::cout << "Evaluation in t = " << Param << "given" << std::endl;
rsnld.Dump(std::cout);
#endif
myLine->InsertBefore(Index+1, Pnt);
}

View File

@@ -101,28 +101,28 @@ static void tracederiv(Blend_RstRstFunction& Func,
Standard_Real param2 = BP2.Parameter();
Standard_Real scal = 1./ (param1 - param2);
cout<<endl;
cout<<"control of derivatives at point : "<<param1<<endl;
std::cout<<std::endl;
std::cout<<"control of derivatives at point : "<<param1<<std::endl;
for(i = 1; i <= hp; i++){
cout<<endl;
cout<<"point : "<<i<<endl;
cout<<"dx calculated : "<<TDP1(i).X()<<endl;
cout<<"dx estimated : "<<scal*(TP1(i).X()-TP2(i).X())<<endl;
cout<<"dy calculated : "<<TDP1(i).Y()<<endl;
cout<<"dy estimated : "<<scal*(TP1(i).Y()-TP2(i).Y())<<endl;
cout<<"dz calculated : "<<TDP1(i).Z()<<endl;
cout<<"dz estimated : "<<scal*(TP1(i).Z()-TP2(i).Z())<<endl;
cout<<"dw calculated : "<<TDW1(i)<<endl;
cout<<"dw estimated : "<<scal*(TW1(i)-TW2(i))<<endl;
std::cout<<std::endl;
std::cout<<"point : "<<i<<std::endl;
std::cout<<"dx calculated : "<<TDP1(i).X()<<std::endl;
std::cout<<"dx estimated : "<<scal*(TP1(i).X()-TP2(i).X())<<std::endl;
std::cout<<"dy calculated : "<<TDP1(i).Y()<<std::endl;
std::cout<<"dy estimated : "<<scal*(TP1(i).Y()-TP2(i).Y())<<std::endl;
std::cout<<"dz calculated : "<<TDP1(i).Z()<<std::endl;
std::cout<<"dz estimated : "<<scal*(TP1(i).Z()-TP2(i).Z())<<std::endl;
std::cout<<"dw calculated : "<<TDW1(i)<<std::endl;
std::cout<<"dw estimated : "<<scal*(TW1(i)-TW2(i))<<std::endl;
}
for(i = 1; i <= hp2d; i++){
cout<<endl;
cout<<"point 2d : "<<i<<endl;
cout<<"dx calculated : "<<TDP2d1(i).X()<<endl;
cout<<"dx estimated : "<<scal*(TP2d1(i).X()-TP2d2(i).X())<<endl;
cout<<"dy calculated : "<<TDP2d1(i).Y()<<endl;
cout<<"dy estimated : "<<scal*(TP2d1(i).Y()-TP2d2(i).Y())<<endl;
std::cout<<std::endl;
std::cout<<"point 2d : "<<i<<std::endl;
std::cout<<"dx calculated : "<<TDP2d1(i).X()<<std::endl;
std::cout<<"dx estimated : "<<scal*(TP2d1(i).X()-TP2d2(i).X())<<std::endl;
std::cout<<"dy calculated : "<<TDP2d1(i).Y()<<std::endl;
std::cout<<"dy estimated : "<<scal*(TP2d1(i).Y()-TP2d2(i).Y())<<std::endl;
}
}
#endif
@@ -825,7 +825,7 @@ void BRepBlend_RstRstLineBuilder::InternalPerform(Blend_RstRstFunction& Func,
else{
// reframing failed. Leave with PointsConfondus
#ifdef OCCT_DEBUG
cout<<"reframing failed"<<endl;
std::cout<<"reframing failed"<<std::endl;
#endif
State = Blend_SamePoints;
}
@@ -880,7 +880,7 @@ void BRepBlend_RstRstLineBuilder::InternalPerform(Blend_RstRstFunction& Func,
#ifdef OCCT_DEBUG
if (line->NbPoints()>=2) {
// Show that there is a stop during processing
cout<<"No more advancement in the processing"<<endl;
std::cout<<"No more advancement in the processing"<<std::endl;
}
#endif
}
@@ -988,7 +988,7 @@ void BRepBlend_RstRstLineBuilder::InternalPerform(Blend_RstRstFunction& Func,
{
// Stop
#ifdef OCCT_DEBUG
cout << " Mixed points in the processing" << endl;
std::cout << " Mixed points in the processing" << std::endl;
#endif
Extrst1.SetValue(previousP.PointOnC1(),
previousP.ParameterOnC1(),
@@ -1039,7 +1039,7 @@ Standard_Boolean BRepBlend_RstRstLineBuilder::Recadre1(Blend_RstRstFunction&
rsnld.Perform(Finv, Solinv, infb, supb);
if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG
cout << "RSNLD not done "<< endl << endl;
std::cout << "RSNLD not done "<< std::endl << std::endl;
#endif
return Standard_False;
}
@@ -1121,7 +1121,7 @@ Standard_Boolean BRepBlend_RstRstLineBuilder::Recadre2(Blend_RstRstFunction&
rsnld.Perform(Finv, Solinv, infb, supb);
if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG
cout << "RSNLD not done "<< endl << endl;
std::cout << "RSNLD not done "<< std::endl << std::endl;
#endif
return Standard_False;
}
@@ -1207,7 +1207,7 @@ Standard_Boolean BRepBlend_RstRstLineBuilder::Recadre1(Blend_CurvPointFuncInv&
rsnld.Perform(FinvP, Solinv, infb, supb);
if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG
cout << "RSNLD not done "<< endl << endl;
std::cout << "RSNLD not done "<< std::endl << std::endl;
#endif
return Standard_False;
}
@@ -1275,7 +1275,7 @@ Standard_Boolean BRepBlend_RstRstLineBuilder::Recadre2(Blend_CurvPointFuncInv&
rsnld.Perform(FinvP, Solinv, infb, supb);
if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG
cout << "RSNLD not done "<< endl << endl;
std::cout << "RSNLD not done "<< std::endl << std::endl;
#endif
return Standard_False;
}

View File

@@ -921,7 +921,7 @@ Standard_Boolean BRepBlend_SurfRstConstRad::Section
if (norm < Eps) {
norm = 1; // Not enough, but it is not necessary to stop
#ifdef OCCT_DEBUG
cout << " SurfRstConstRad : Singular Surface " << endl;
std::cout << " SurfRstConstRad : Singular Surface " << std::endl;
#endif
}

View File

@@ -934,7 +934,7 @@ TColStd_Array1OfReal& DWeigths)
if (norm < Eps) {
norm = 1; // Not enough, but it is not necessary to stop
#ifdef OCCT_DEBUG
cout << " SurfRstEvolRad : Surface single " << endl;
std::cout << " SurfRstEvolRad : Surface single " << std::endl;
#endif
}

View File

@@ -96,28 +96,28 @@ static void tracederiv(Blend_SurfRstFunction& Func,
Standard_Real param2 = BP2.Parameter();
Standard_Real scal = 1./(param1-param2);
cout<<endl;
cout<<"control derivatives at point : "<<param1<<endl;
std::cout<<std::endl;
std::cout<<"control derivatives at point : "<<param1<<std::endl;
for(i = 1; i <= hp; i++){
cout<<endl;
cout<<"point : "<<i<<endl;
cout<<"dx calculated : "<<TDP1(i).X()<<endl;
cout<<"dx estimated : "<<scal*(TP1(i).X()-TP2(i).X())<<endl;
cout<<"dy calculated : "<<TDP1(i).Y()<<endl;
cout<<"dy estimated : "<<scal*(TP1(i).Y()-TP2(i).Y())<<endl;
cout<<"dz calculated : "<<TDP1(i).Z()<<endl;
cout<<"dz estimated : "<<scal*(TP1(i).Z()-TP2(i).Z())<<endl;
cout<<"dw calculated : "<<TDW1(i)<<endl;
cout<<"dw estimated : "<<scal*(TW1(i)-TW2(i))<<endl;
std::cout<<std::endl;
std::cout<<"point : "<<i<<std::endl;
std::cout<<"dx calculated : "<<TDP1(i).X()<<std::endl;
std::cout<<"dx estimated : "<<scal*(TP1(i).X()-TP2(i).X())<<std::endl;
std::cout<<"dy calculated : "<<TDP1(i).Y()<<std::endl;
std::cout<<"dy estimated : "<<scal*(TP1(i).Y()-TP2(i).Y())<<std::endl;
std::cout<<"dz calculated : "<<TDP1(i).Z()<<std::endl;
std::cout<<"dz estimated : "<<scal*(TP1(i).Z()-TP2(i).Z())<<std::endl;
std::cout<<"dw calculated : "<<TDW1(i)<<std::endl;
std::cout<<"dw estimated : "<<scal*(TW1(i)-TW2(i))<<std::endl;
}
for(i = 1; i <= hp2d; i++){
cout<<endl;
cout<<"point 2d : "<<i<<endl;
cout<<"dx calculated : "<<TDP2d1(i).X()<<endl;
cout<<"dx estimated : "<<scal*(TP2d1(i).X()-TP2d2(i).X())<<endl;
cout<<"dy calculated : "<<TDP2d1(i).Y()<<endl;
cout<<"dy estimated : "<<scal*(TP2d1(i).Y()-TP2d2(i).Y())<<endl;
std::cout<<std::endl;
std::cout<<"point 2d : "<<i<<std::endl;
std::cout<<"dx calculated : "<<TDP2d1(i).X()<<std::endl;
std::cout<<"dx estimated : "<<scal*(TP2d1(i).X()-TP2d2(i).X())<<std::endl;
std::cout<<"dy calculated : "<<TDP2d1(i).Y()<<std::endl;
std::cout<<"dy estimated : "<<scal*(TP2d1(i).Y()-TP2d2(i).Y())<<std::endl;
}
}
#endif
@@ -717,7 +717,7 @@ void BRepBlend_SurfRstLineBuilder::InternalPerform(Blend_SurfRstFunction& Func,
else{
// Failed reframing. Leave with PointsConfondus
#ifdef OCCT_DEBUG
cout<<"SurfRstLineBuilder : failed reframing"<<endl;
std::cout<<"SurfRstLineBuilder : failed reframing"<<std::endl;
#endif
State = Blend_SamePoints;
}
@@ -772,7 +772,7 @@ void BRepBlend_SurfRstLineBuilder::InternalPerform(Blend_SurfRstFunction& Func,
if (line->NbPoints()>=2) {
// Indicate that one stops during the processing
#ifdef OCCT_DEBUG
cout<<"SurfRstLineBuilder : No advancement in the processing"<<endl;
std::cout<<"SurfRstLineBuilder : No advancement in the processing"<<std::endl;
#endif
}
}
@@ -878,7 +878,7 @@ void BRepBlend_SurfRstLineBuilder::InternalPerform(Blend_SurfRstFunction& Func,
{
// Stop
#ifdef OCCT_DEBUG
cout << "SurfRstLineBuilder Points mixed in the processing" << endl;
std::cout << "SurfRstLineBuilder Points mixed in the processing" << std::endl;
#endif
previousP.ParametersOnS(U,V);
Exts.SetValue(previousP.PointOnS(),U,V,
@@ -951,7 +951,7 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::Recadre(Blend_SurfCurvFuncInv&
if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG
cout << "SurfRstLineBuilder : RSNLD not done "<< endl << endl;
std::cout << "SurfRstLineBuilder : RSNLD not done "<< std::endl << std::endl;
#endif
}
else {
@@ -990,7 +990,7 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::Recadre(Blend_SurfCurvFuncInv&
if (!aRsnld.IsDone()) {
#ifdef OCCT_DEBUG
cout << "SurfRstLineBuilder : RSNLD not done "<< endl << endl;
std::cout << "SurfRstLineBuilder : RSNLD not done "<< std::endl << std::endl;
#endif
}
else {
@@ -1051,7 +1051,7 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::Recadre(Blend_SurfRstFunction&
rsnld.Perform(Finv,Solinv,infb,supb);
if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG
cout << "SurfRstLineBuilder :RSNLD not done "<< endl;
std::cout << "SurfRstLineBuilder :RSNLD not done "<< std::endl;
#endif
return Standard_False;
}
@@ -1135,7 +1135,7 @@ Standard_Boolean BRepBlend_SurfRstLineBuilder::Recadre(Blend_SurfPointFuncInv&
rsnld.Perform(FinvP,Solinv,infb,supb);
if (!rsnld.IsDone()) {
#ifdef OCCT_DEBUG
cout << "SurfRstLineBuilder :RSNLD not done "<< endl;
std::cout << "SurfRstLineBuilder :RSNLD not done "<< std::endl;
#endif
return Standard_False;
}