1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-08-04 13:13:25 +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

@@ -260,15 +260,15 @@ Standard_Boolean Intf_Interference::Contains
//----------------------------------------------------
void Intf_Interference::Dump() const
{
cout << "Mes SectionPoint :" << endl;
std::cout << "Mes SectionPoint :" << std::endl;
for (Standard_Integer p=1; p<=mySPoins.Length(); p++) {
mySPoins(p).Dump(2);
}
cout << "Mes SectionLine :" << endl;
std::cout << "Mes SectionLine :" << std::endl;
for (Standard_Integer l=1; l<=mySLines.Length(); l++) {
mySLines(l).Dump(2);
}
cout << "Mes TangentZone :" << endl;
std::cout << "Mes TangentZone :" << std::endl;
for (Standard_Integer t=1; t<=myTZones.Length(); t++) {
myTZones(t).Dump(2);
}

View File

@@ -179,10 +179,10 @@ Standard_Boolean Intf_SectionLine::IsEqual
void Intf_SectionLine::Dump
(const Standard_Integer Indent) const
{
for (Standard_Integer id=0; id<Indent; id++) cout << " ";
cout << "LS ";
if (IsClosed()) cout << "Closed :" << endl;
else cout << "Open :" << endl;
for (Standard_Integer id=0; id<Indent; id++) std::cout << " ";
std::cout << "LS ";
if (IsClosed()) std::cout << "Closed :" << std::endl;
else std::cout << "Open :" << std::endl;
for (Standard_Integer p=1; p<=myPoints.Length(); p++) {
myPoints.Value(p).Dump(Indent+2);
}

View File

@@ -123,7 +123,7 @@ Standard_Boolean Intf_SectionPoint::IsOnSameEdge
}
else if (Other.DimenObje==Intf_VERTEX) {
#if DEBUG_INTFSECTIONPOINT
cout << " IsOnSameEdge on Intersection VERTEX VERTEX Obje !" << endl;
std::cout << " IsOnSameEdge on Intersection VERTEX VERTEX Obje !" << std::endl;
#endif
isOn=(IndexT1==Other.IndexT1);
}
@@ -143,7 +143,7 @@ Standard_Boolean Intf_SectionPoint::IsOnSameEdge
}
else if (Other.DimenTool==Intf_VERTEX) {
#if DEBUG_INTFSECTIONPOINT
cout << " IsOnSameEdge on Intersection VERTEX VERTEX Tool !" << endl;
std::cout << " IsOnSameEdge on Intersection VERTEX VERTEX Tool !" << std::endl;
#endif
isOn=(IndexT1==Other.IndexT1);
}
@@ -253,19 +253,19 @@ void Intf_SectionPoint::Dump (const Standard_Integer
) const
{
#if DEBUG_INTFSECTIONPOINT
for (Standard_Integer id=0; id<Indent; id++) cout << " ";
for (Standard_Integer id=0; id<Indent; id++) std::cout << " ";
cout << "PIType(" << DimenObje << "," << DimenTool << ") entre("
std::cout << "PIType(" << DimenObje << "," << DimenTool << ") entre("
<< IndexO1 << "," << IndexO2 << ") par(" << ParamObje
<< ") et ("
<< IndexT1 << "," << IndexT2 << ") par(" << ParamTool
<< ")" << endl;
<< ")" << std::endl;
for (id=0; id<Indent; id++) cout << " ";
for (id=0; id<Indent; id++) std::cout << " ";
cout << " Lieu(" << myPnt.X() << ","
std::cout << " Lieu(" << myPnt.X() << ","
<< myPnt.Y() << ","
<< myPnt.Z() <<
") Incidence(" << Incide << ")" << endl;
") Incidence(" << Incide << ")" << std::endl;
#endif
}

View File

@@ -84,7 +84,7 @@ void Intf_TangentZone::Append (const Intf_TangentZone& Tzi)
Standard_Boolean Intf_TangentZone::Insert (const Intf_SectionPoint& )
{
#if DEBUG_TANGENTZONE
cout<<" Standard_Boolean Intf_TangentZone::Insert (const Intf_SectionPoint& Pi) ???? "<<endl;
std::cout<<" Standard_Boolean Intf_TangentZone::Insert (const Intf_SectionPoint& Pi) ???? "<<std::endl;
#endif
Standard_Boolean Inserted=Standard_False;
/*
@@ -334,10 +334,10 @@ Standard_Boolean Intf_TangentZone::HasCommonRange
void Intf_TangentZone::Dump (const Standard_Integer /*Indent*/) const
{
#if DEBUG_TANGENTZONE
for (Standard_Integer id=0; id<Indent; id++) cout << " ";
cout << "TZ \n" ;
cout<<" ParamOnFirstMin Max : "<<ParamOnFirstMin<<" "<<ParamOnFirstMax<<endl;
cout<<" ParamOnSecondMin Max : "<<ParamOnSecondMin<<" "<<ParamOnSecondMax<<endl;
for (Standard_Integer id=0; id<Indent; id++) std::cout << " ";
std::cout << "TZ \n" ;
std::cout<<" ParamOnFirstMin Max : "<<ParamOnFirstMin<<" "<<ParamOnFirstMax<<std::endl;
std::cout<<" ParamOnSecondMin Max : "<<ParamOnSecondMin<<" "<<ParamOnSecondMax<<std::endl;
for (Standard_Integer p=1; p<=Result.Length(); p++) {
Result(p).Dump(Indent+2);
}