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:
@@ -517,7 +517,7 @@ void IntAna_Curve::FindParameter(const gp_Pnt& theP,
|
||||
gp_Pnt IntAna_Curve::InternalValue(const Standard_Real U,
|
||||
const Standard_Real _V) const
|
||||
{
|
||||
//-- cout<<" ["<<U<<","<<V<<"]";
|
||||
//-- std::cout<<" ["<<U<<","<<V<<"]";
|
||||
Standard_Real V = _V;
|
||||
if(V > 100000.0 ) { V= 100000.0; }
|
||||
if(V < -100000.0 ) { V=-100000.0; }
|
||||
|
@@ -91,9 +91,9 @@ void IntAna_IntLinTorus::Perform (const gp_Lin& L, const gp_Torus& T) {
|
||||
if(a0>0.0000000001) {
|
||||
aNbBadSol++;
|
||||
#if 0
|
||||
cout<<" ------- Erreur : P Ligne < > P Tore "<<endl;
|
||||
cout<<"Ligne : X:"<<PSolL.X()<<" Y:"<<PSolL.Y()<<" Z:"<<PSolL.Z()<<" l:"<<t<<endl;
|
||||
cout<<"Tore : X:"<<PSolT.X()<<" Y:"<<PSolT.Y()<<" Z:"<<PSolT.Z()<<" u:"<<u<<" v:"<<v<<endl;
|
||||
std::cout<<" ------- Erreur : P Ligne < > P Tore "<<std::endl;
|
||||
std::cout<<"Ligne : X:"<<PSolL.X()<<" Y:"<<PSolL.Y()<<" Z:"<<PSolL.Z()<<" l:"<<t<<std::endl;
|
||||
std::cout<<"Tore : X:"<<PSolT.X()<<" Y:"<<PSolT.Y()<<" Z:"<<PSolT.Z()<<" u:"<<u<<" v:"<<v<<std::endl;
|
||||
#endif
|
||||
}
|
||||
else {
|
||||
@@ -355,12 +355,12 @@ void IntAna_IntLinTorus::Perform (const gp_Lin& L, const gp_Torus& T) {
|
||||
|
||||
|
||||
|
||||
cout<<"\n ---------- Coefficients Line - Torus : "<<endl;
|
||||
cout<<" a0 : "<<a0<<endl;
|
||||
cout<<" a1 : "<<a1<<endl;
|
||||
cout<<" a2 : "<<a2<<endl;
|
||||
cout<<" a3 : "<<a3<<endl;
|
||||
cout<<" a4 : "<<a4<<endl;
|
||||
std::cout<<"\n ---------- Coefficients Line - Torus : "<<std::endl;
|
||||
std::cout<<" a0 : "<<a0<<std::endl;
|
||||
std::cout<<" a1 : "<<a1<<std::endl;
|
||||
std::cout<<" a2 : "<<a2<<std::endl;
|
||||
std::cout<<" a3 : "<<a3<<std::endl;
|
||||
std::cout<<" a4 : "<<a4<<std::endl;
|
||||
|
||||
Standard_Real u,v;
|
||||
math_DirectPolynomialRoots mdpr(a4,a3,a2,a1,a0);
|
||||
@@ -375,9 +375,9 @@ void IntAna_IntLinTorus::Perform (const gp_Lin& L, const gp_Torus& T) {
|
||||
|
||||
a0 = PSolT.SquareDistance(PSolL);
|
||||
if(a0>0.0000000001) {
|
||||
cout<<" ------- Erreur : P Ligne < > P Tore ";
|
||||
cout<<"Ligne : X:"<<PSolL.X()<<" Y:"<<PSolL.Y()<<" Z:"<<PSolL.Z()<<" l:"<<t<<endl;
|
||||
cout<<"Tore : X:"<<PSolL.X()<<" Y:"<<PSolL.Y()<<" Z:"<<PSolL.Z()<<" u:"<<u<<" v:"<<v<<endl;
|
||||
std::cout<<" ------- Erreur : P Ligne < > P Tore ";
|
||||
std::cout<<"Ligne : X:"<<PSolL.X()<<" Y:"<<PSolL.Y()<<" Z:"<<PSolL.Z()<<" l:"<<t<<std::endl;
|
||||
std::cout<<"Tore : X:"<<PSolL.X()<<" Y:"<<PSolL.Y()<<" Z:"<<PSolL.Z()<<" u:"<<u<<" v:"<<v<<std::endl;
|
||||
}
|
||||
else {
|
||||
theParam[nbsolvalid] = t;
|
||||
|
@@ -581,7 +581,7 @@ void IntAna_IntQuadQuad::Perform(const gp_Cylinder& Cyl,
|
||||
//-- Si il n y a que 2 racines alors on prend tout l interval
|
||||
//----------------------------------------------------------------
|
||||
if(Abs(Theta2-Theta1)<=1e-12) {
|
||||
//-- cout<<"\n####### Un Point de Tangence en Theta = "<<Theta1<<endl;
|
||||
//-- std::cout<<"\n####### Un Point de Tangence en Theta = "<<Theta1<<std::endl;
|
||||
//-- i++;
|
||||
}
|
||||
else { //-- On evite les pbs numeriques (Tout est du meme signe entre les racines)
|
||||
@@ -760,10 +760,10 @@ void IntAna_IntQuadQuad::Perform(const gp_Cone& Cone,
|
||||
Standard_Real Theta=PolZ1.Value(ii);
|
||||
if(Abs(MTFZ1.Value(Theta))<=myEpsilon) {
|
||||
//-- Une droite Solution Z= -INF -> +INF pour Theta
|
||||
//-- cout<<"######## Droite Solution Pour Theta = "<<Theta<<endl;
|
||||
//-- std::cout<<"######## Droite Solution Pour Theta = "<<Theta<<std::endl;
|
||||
}
|
||||
else {
|
||||
//-- cout<<"\n#### _+_+_+_+_+ CAS A(t) Z + B = 0 avec A et B ==0 "<<endl;
|
||||
//-- std::cout<<"\n#### _+_+_+_+_+ CAS A(t) Z + B = 0 avec A et B ==0 "<<std::endl;
|
||||
}
|
||||
}
|
||||
*/
|
||||
@@ -1242,7 +1242,7 @@ void IntAna_IntQuadQuad::Parameters (const Standard_Integer, //i,
|
||||
Standard_Real& ,
|
||||
Standard_Real& ) const
|
||||
{
|
||||
cout << "IntAna_IntQuadQuad::Parameters(...) is not yet implemented" << endl;
|
||||
std::cout << "IntAna_IntQuadQuad::Parameters(...) is not yet implemented" << std::endl;
|
||||
}
|
||||
|
||||
/*********************************************************************************
|
||||
|
Reference in New Issue
Block a user