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:
@@ -1251,11 +1251,11 @@ void IntCurveSurface_Inter::AppendIntAna(const TheCurve& curve,
|
||||
const IntAna_IntConicQuad& intana_ConicQuad) {
|
||||
if(intana_ConicQuad.IsDone()) {
|
||||
if(intana_ConicQuad.IsInQuadric()) {
|
||||
//-- cout<<" Courbe Dans la Quadrique !!! Non Traite !!!"<<endl;
|
||||
//-- std::cout<<" Courbe Dans la Quadrique !!! Non Traite !!!"<<std::endl;
|
||||
myIsParallel = Standard_True;
|
||||
}
|
||||
else if(intana_ConicQuad.IsParallel()) {
|
||||
//-- cout<<" Courbe // a la Quadrique !!! Non Traite !!!"<<endl;
|
||||
//-- std::cout<<" Courbe // a la Quadrique !!! Non Traite !!!"<<std::endl;
|
||||
myIsParallel = Standard_True;
|
||||
}
|
||||
else {
|
||||
@@ -1270,7 +1270,7 @@ void IntCurveSurface_Inter::AppendIntAna(const TheCurve& curve,
|
||||
}
|
||||
}
|
||||
else {
|
||||
//-- cout<<" IntAna Conic Quad Not Done "<<endl;
|
||||
//-- std::cout<<" IntAna Conic Quad Not Done "<<std::endl;
|
||||
}
|
||||
}
|
||||
//=======================================================================
|
||||
@@ -1334,8 +1334,8 @@ void IntCurveSurface_Inter::AppendSegment(const TheCurve& ,
|
||||
const Standard_Real ,
|
||||
const Standard_Real ,
|
||||
const TheSurface& ) {
|
||||
//cout<<" !!! Not Yet Implemented
|
||||
//IntCurveSurface_Inter::Append(const IntCurveSurf ...)"<<endl;
|
||||
//std::cout<<" !!! Not Yet Implemented
|
||||
//IntCurveSurface_Inter::Append(const IntCurveSurf ...)"<<std::endl;
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
@@ -1400,7 +1400,7 @@ void SectionPointToParameters(const Intf_SectionPoint& Sp,
|
||||
}
|
||||
default:
|
||||
{
|
||||
cout<<" Default dans SectionPointToParameters "<<endl;
|
||||
std::cout<<" Default dans SectionPointToParameters "<<std::endl;
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -1694,9 +1694,9 @@ void ProjectIntersectAndEstLim(const gp_Lin& theLine,
|
||||
ProjLib_Plane aLineProj( thePln, theLine );
|
||||
if (!aLineProj.IsDone()) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout
|
||||
std::cout
|
||||
<< "Info: IntCurveSurface_Inter::ProjectIntersectAndEstLim(), !aLineProj.IsDone()"
|
||||
<< endl;
|
||||
<< std::endl;
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
@@ -1821,7 +1821,7 @@ void EstLimForInfRevl(const gp_Lin& Line,
|
||||
}
|
||||
if (!aBasCurvProj.IsDone()) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Info: IntCurveSurface_Inter::EstLimForInfRevl(), !aBasCurvProj.IsDone()" << endl;
|
||||
std::cout << "Info: IntCurveSurface_Inter::EstLimForInfRevl(), !aBasCurvProj.IsDone()" << std::endl;
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
@@ -1859,7 +1859,7 @@ void EstLimForInfRevl(const gp_Lin& Line,
|
||||
if (V1inf) V1new = aVmin;
|
||||
if (V2inf) V2new = aVmax;
|
||||
|
||||
//cout << "EstLimForInfRevl: Vmin " << V1new << " Vmax " << V2new << endl;
|
||||
//std::cout << "EstLimForInfRevl: Vmin " << V1new << " Vmax " << V2new << std::endl;
|
||||
|
||||
return;
|
||||
}
|
||||
|
@@ -137,6 +137,6 @@ void IntCurveSurface_Intersection::Dump() const {
|
||||
for(i=1;i<=ni;i++) { Segment(i).Dump(); }
|
||||
}
|
||||
else {
|
||||
cout<<" Intersection NotDone"<<endl;
|
||||
std::cout<<" Intersection NotDone"<<std::endl;
|
||||
}
|
||||
}
|
||||
|
@@ -56,18 +56,18 @@ void IntCurveSurface_IntersectionPoint::Values(gp_Pnt& P,
|
||||
}
|
||||
//================================================================================
|
||||
void IntCurveSurface_IntersectionPoint::Dump() const {
|
||||
cout<<"IntersectionPoint: P("<<myP.X()<<","<<myP.Y()<<","<<myP.Z()<<")"<<endl;
|
||||
cout<<" : USurf("<<myUSurf<<") VSurf("<<myVSurf<<") UCurve("<<myUCurv<<")"<<endl;
|
||||
cout<<" : TransitionOnSurf ";
|
||||
std::cout<<"IntersectionPoint: P("<<myP.X()<<","<<myP.Y()<<","<<myP.Z()<<")"<<std::endl;
|
||||
std::cout<<" : USurf("<<myUSurf<<") VSurf("<<myVSurf<<") UCurve("<<myUCurv<<")"<<std::endl;
|
||||
std::cout<<" : TransitionOnSurf ";
|
||||
|
||||
switch(myTrOnCurv) {
|
||||
case IntCurveSurface_Tangent: cout<<" Tangent "; break;
|
||||
case IntCurveSurface_In: cout<<" In "; break;
|
||||
case IntCurveSurface_Out: cout<<" Out "; break;
|
||||
case IntCurveSurface_Tangent: std::cout<<" Tangent "; break;
|
||||
case IntCurveSurface_In: std::cout<<" In "; break;
|
||||
case IntCurveSurface_Out: std::cout<<" Out "; break;
|
||||
|
||||
default: cout<< " XXXXX ";
|
||||
default: std::cout<< " XXXXX ";
|
||||
}
|
||||
cout<<endl;
|
||||
std::cout<<std::endl;
|
||||
}
|
||||
|
||||
|
||||
|
@@ -59,9 +59,9 @@ const IntCurveSurface_IntersectionPoint &
|
||||
}
|
||||
//================================================================================
|
||||
void IntCurveSurface_IntersectionSegment::Dump() const {
|
||||
cout<<"\nIntersectionSegment : "<<endl;
|
||||
std::cout<<"\nIntersectionSegment : "<<std::endl;
|
||||
myP1.Dump();
|
||||
myP2.Dump();
|
||||
cout<<endl;
|
||||
std::cout<<std::endl;
|
||||
}
|
||||
|
||||
|
@@ -195,8 +195,8 @@ Standard_Real IntCurveSurface_Polygon::ApproxParamOnCurve(const Standard_Integer
|
||||
//ddout << "IntCurveSurface_Polygon::ApproxParamOnCurve" << endl;
|
||||
if(TheParamOnLine < 0.0 || TheParamOnLine >1.0) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout<<" ParamOnLine = "<<TheParamOnLine<<" avec Index = "
|
||||
<<TheIndex<<" dans IntCurveSurface_Polygon::ApproxParamOnCurve"<<endl;
|
||||
std::cout<<" ParamOnLine = "<<TheParamOnLine<<" avec Index = "
|
||||
<<TheIndex<<" dans IntCurveSurface_Polygon::ApproxParamOnCurve"<<std::endl;
|
||||
#endif
|
||||
return(Binf+(TheParamOnLine*(Bsup-Binf))/(Standard_Real)(NbPntIn-1));
|
||||
}
|
||||
@@ -205,7 +205,7 @@ Standard_Real IntCurveSurface_Polygon::ApproxParamOnCurve(const Standard_Integer
|
||||
Standard_Real ParamOnLine = TheParamOnLine;
|
||||
#ifdef OCCT_DEBUG
|
||||
if (Index > NbPntIn) {
|
||||
cout << "OutOfRange Polygon::ApproxParamOnCurve " <<endl;
|
||||
std::cout << "OutOfRange Polygon::ApproxParamOnCurve " <<std::endl;
|
||||
}
|
||||
#endif
|
||||
if((Index == NbPntIn) && (ParamOnLine == 0.0)) {
|
||||
@@ -236,11 +236,11 @@ void IntCurveSurface_Polygon::Dump(void) const {
|
||||
char tamp[100];
|
||||
Compteur++;
|
||||
sprintf(tamp,"Poly%d",Compteur);
|
||||
cout<<" @@@@@@@@@@@ F i c h i e r : "<<tamp<<" @@@@@@@@@@"<<endl;
|
||||
std::cout<<" @@@@@@@@@@@ F i c h i e r : "<<tamp<<" @@@@@@@@@@"<<std::endl;
|
||||
FILE *fp;
|
||||
fp=fopen(tamp,"w");
|
||||
if(fp==NULL) {
|
||||
cout<<"PolyGonGen::Erreur en Ouverture Fichier"<<tamp<<endl;
|
||||
std::cout<<"PolyGonGen::Erreur en Ouverture Fichier"<<tamp<<std::endl;
|
||||
return;
|
||||
}
|
||||
fprintf(fp,"\n#Discretisation de : %f ---> %f \n",Binf,Bsup);
|
||||
|
@@ -19,15 +19,15 @@ void IntCurveSurface_PolygonTool::Dump(const ThePolygon& L) {
|
||||
static Standard_Integer num=0;
|
||||
num++;
|
||||
Standard_Integer nbs = IntCurveSurface_PolygonTool::NbSegments(L);
|
||||
cout<<"\npol2d "<<num<<" "<<nbs<<endl;
|
||||
cout<<"Deflection "<<IntCurveSurface_PolygonTool::DeflectionOverEstimation(L)<<endl;
|
||||
std::cout<<"\npol2d "<<num<<" "<<nbs<<std::endl;
|
||||
std::cout<<"Deflection "<<IntCurveSurface_PolygonTool::DeflectionOverEstimation(L)<<std::endl;
|
||||
|
||||
for(Standard_Integer i=1;i<=nbs;i++) {
|
||||
gp_Pnt P(IntCurveSurface_PolygonTool::BeginOfSeg(L,i));
|
||||
cout<<"pnt "<<num<<" "<<i<<" "<<P.X()<<" "<<P.Y()<<" "<<P.Z()<<endl;
|
||||
std::cout<<"pnt "<<num<<" "<<i<<" "<<P.X()<<" "<<P.Y()<<" "<<P.Z()<<std::endl;
|
||||
}
|
||||
gp_Pnt PF(IntCurveSurface_PolygonTool::EndOfSeg(L,nbs));
|
||||
cout<<"pnt "<<num<<" "<<nbs<<" "<< PF.X()<<" "<<PF.Y()<<" "<<PF.Z()<<endl;
|
||||
std::cout<<"pnt "<<num<<" "<<nbs<<" "<< PF.X()<<" "<<PF.Y()<<" "<<PF.Z()<<std::endl;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user