1
0
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:
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

@@ -406,7 +406,7 @@ static Standard_Boolean IsInside(const TopoDS_Shape& S1,
}
}
#ifdef OCCT_DEBUG
cout << "Classification impossible sur vertex " << endl;
std::cout << "Classification impossible sur vertex " << std::endl;
#endif
return Standard_True;

View File

@@ -708,8 +708,8 @@ Handle(Geom_Curve) LocOpe_DPrism::BarycCurve() const
#ifdef OCCT_DEBUG
Standard_Boolean trc = BRepFeat_GettraceFEAT();
if (trc) {
cout << "LocOpe_DPrism::BarycCurve()" << endl;
cout << " Reversed Spine orientation" << endl;
std::cout << "LocOpe_DPrism::BarycCurve()" << std::endl;
std::cout << " Reversed Spine orientation" << std::endl;
}
#endif
// Normale.Reverse(); //cts20871

View File

@@ -152,7 +152,7 @@ void LocOpe_FindEdges::Set(const TopoDS_Shape& FFrom,
else {
// Cas non traite : on est a cheval
#ifdef OCCT_DEBUG
cout <<" cas a cheval."<< endl;
std::cout <<" cas a cheval."<< std::endl;
#endif
// myLFrom.Append(edgf);
@@ -204,7 +204,7 @@ void LocOpe_FindEdges::Set(const TopoDS_Shape& FFrom,
else {
// Cas non traite : on est a cheval
#ifdef OCCT_DEBUG
cout <<" cas a cheval."<< endl;
std::cout <<" cas a cheval."<< std::endl;
#endif
// myLFrom.Append(edgf);
// myLTo.Append(edgt);
@@ -287,7 +287,7 @@ void LocOpe_FindEdges::Set(const TopoDS_Shape& FFrom,
if (IsSame) {
#ifdef OCCT_DEBUG
cout <<"memes bsplines."<< endl;
std::cout <<"memes bsplines."<< std::endl;
#endif
myLFrom.Append(edgf);
myLTo.Append(edgt);
@@ -347,7 +347,7 @@ void LocOpe_FindEdges::Set(const TopoDS_Shape& FFrom,
if (IsSame) {
#ifdef OCCT_DEBUG
cout <<"memes beziers."<< endl;
std::cout <<"memes beziers."<< std::endl;
#endif
myLFrom.Append(edgf);
myLTo.Append(edgt);

View File

@@ -574,7 +574,7 @@ void LocOpe_Generator::Perform(const Handle(LocOpe_GeneratedShape)& G)
B.UpdateEdge(edg,C2d,newface,tol);
}
// else {
// cout << "Edge double bizarre... " << endl;
// std::cout << "Edge double bizarre... " << std::endl;
// }
}
}
@@ -890,7 +890,7 @@ void LocOpe_Generator::Perform(const Handle(LocOpe_GeneratedShape)& G)
B.UpdateEdge(edg,C2d,newface,tol);
}
// else {
// cout << "Edge double bizarre... " << endl;
// std::cout << "Edge double bizarre... " << std::endl;
// }
}
}

View File

@@ -160,7 +160,7 @@ void LocOpe_SplitDrafts::Perform(const TopoDS_Face& F,
}
if (!FinS) {
cout << "LocOpe_SplitDrafts:!Fins throw Standard_ConstructionError()" << endl;
std::cout << "LocOpe_SplitDrafts:!Fins throw Standard_ConstructionError()" << std::endl;
throw Standard_ConstructionError();
}
@@ -197,7 +197,7 @@ void LocOpe_SplitDrafts::Perform(const TopoDS_Face& F,
TopoDS_Wire theW = W;
if (i2s.IsDone() && i2s.NbLines() > 0) {
// on split le wire" << endl;
// on split le wire" << std::endl;
GeomFill_Pipe thePipe;
thePipe.GenerateParticularCase(Standard_True);
@@ -658,7 +658,7 @@ void LocOpe_SplitDrafts::Perform(const TopoDS_Face& F,
}
}
if (!itl.More()) {
cout << "LocOpe_SplitDrafts: betite probleme "<< endl;
std::cout << "LocOpe_SplitDrafts: betite probleme "<< std::endl;
return;
}
@@ -907,7 +907,7 @@ void LocOpe_SplitDrafts::Perform(const TopoDS_Face& F,
}
else {
#ifdef OCCT_DEBUG
cout << "Pb d'analyse" << endl;
std::cout << "Pb d'analyse" << std::endl;
#endif
return;
}
@@ -1253,7 +1253,7 @@ void LocOpe_SplitDrafts::Perform(const TopoDS_Face& F,
if (theSubs.IsCopied(itl.Value())) {
if (theSubs.Copy(itl.Value()).Extent() != 1) {
#ifdef OCCT_DEBUG
cout << "Invalid number of descendant" << endl;
std::cout << "Invalid number of descendant" << std::endl;
#endif
return;
}
@@ -1388,7 +1388,7 @@ static Standard_Boolean NewPlane(const TopoDS_Face& F,
}
}
}
cout << "fin newplane return standard_false" << endl;
std::cout << "fin newplane return standard_false" << std::endl;
return Standard_False;
}
@@ -1457,7 +1457,7 @@ static void MakeFace(TopoDS_Face& F,
}
}
if (C2d.IsNull()) {
cout << "Ca merde violemment" << endl;
std::cout << "Ca merde violemment" << std::endl;
}
}
}
@@ -1547,7 +1547,7 @@ static void MakeFace(TopoDS_Face& F,
B.Add(F,lwires.First());
}
else {
cout << "Not yet implemented : nbwire >= 2" << endl;
std::cout << "Not yet implemented : nbwire >= 2" << std::endl;
}
}
@@ -1728,7 +1728,7 @@ static TopoDS_Edge NewEdge(const TopoDS_Edge& edg,
Standard_Real ptol = Precision::PConfusion();
if (prmf < imf - ptol || prmf > iml + ptol ||
prml < imf - ptol || prml > iml + ptol) {
cout << "Ca ne va pas aller" << endl;
std::cout << "Ca ne va pas aller" << std::endl;
}
#endif

View File

@@ -589,7 +589,7 @@ Standard_Boolean LocOpe_SplitShape::Add(const TopoDS_Wire& W,
}
} catch (Standard_Failure const&) {
#ifdef OCCT_DEBUG
cout << "Warning: SpliShape internal problem detected, some faces may be lost. Check input edges/wires" <<endl;
std::cout << "Warning: SpliShape internal problem detected, some faces may be lost. Check input edges/wires" <<std::endl;
#endif
return Standard_False;
}
@@ -961,7 +961,7 @@ Standard_Boolean LocOpe_SplitShape::AddOpenWire(const TopoDS_Wire& W,
}
//MODIFICATION PIERRE SMEYERS : si pas de possibilite, on sort avec erreur
else{
cout<<"erreur Spliter : pas de chainage du wire"<<endl;
std::cout<<"erreur Spliter : pas de chainage du wire"<<std::endl;
return Standard_False;
}
//fin MODIF.
@@ -1045,7 +1045,7 @@ Standard_Boolean LocOpe_SplitShape::AddOpenWire(const TopoDS_Wire& W,
else {
// Ce wire est ni dans newF2 ni dans newF1
// Peut etre faut il construire une troisieme face
cout << "WARNING: LocOpe_SPlitShape : Ce wire est ni dans newF2 ni dans newF1" << endl;
std::cout << "WARNING: LocOpe_SPlitShape : Ce wire est ni dans newF2 ni dans newF1" << std::endl;
}
}
}
@@ -1227,7 +1227,7 @@ const TopTools_ListOfShape& LocOpe_SplitShape::DescendantShapes
}
#ifdef OCCT_DEBUG
if (!myDblE.IsEmpty()) {
cout << "Le shape comporte des faces invalides" << endl;
std::cout << "Le shape comporte des faces invalides" << std::endl;
}
#endif
return myMap(S);
@@ -1373,7 +1373,7 @@ static Standard_Boolean IsInside(const TopoDS_Face& F,
Handle(Geom2d_Curve) C2d = BRep_Tool::CurveOnSurface(edg,F,f,l);
if(C2d.IsNull()) {
#ifdef OCCT_DEBUG
cout << "Edge is not on surface" <<endl;
std::cout << "Edge is not on surface" <<std::endl;
#endif
return Standard_False;
}

View File

@@ -292,7 +292,7 @@ void LocOpe_Spliter::Perform(const Handle(LocOpe_WiresOnShape)& PW)
}
else {
#ifdef OCCT_DEBUG
cout << "Pb pour substitution" << endl;
std::cout << "Pb pour substitution" << std::endl;
#endif
}
}

View File

@@ -686,8 +686,8 @@ Standard_Boolean Project(const TopoDS_Vertex& V,
}
#ifdef OCCT_DEBUG_MESH
else {
cout <<"LocOpe_WiresOnShape::Project --> le vertex projete est a une ";
cout <<"distance / la face = "<<dmin <<" superieure a la tolerance = "<<ttol<<endl;
std::cout <<"LocOpe_WiresOnShape::Project --> le vertex projete est a une ";
std::cout <<"distance / la face = "<<dmin <<" superieure a la tolerance = "<<ttol<<std::endl;
}
#endif
return valret;