mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +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:
@@ -363,9 +363,9 @@ void IntRes2d_Intersection::Append( const IntRes2d_Intersection& Other
|
||||
#if DEBUGPOSITION
|
||||
void AffPosition(IntRes2d_Transition& T,const Standard_Real u,const char *Texte);
|
||||
void AffPosition(IntRes2d_Transition& T,const Standard_Real u,const char *Texte) {
|
||||
if(T.PositionOnCurve() == IntRes2d_End) { cout <<Texte<<" Param :"<<u<<" End "<<endl; }
|
||||
if(T.PositionOnCurve() == IntRes2d_Middle) { cout <<Texte<<" Param :"<<u<<" Middle "<<endl; }
|
||||
if(T.PositionOnCurve() == IntRes2d_Head) { cout <<Texte<<" Param :"<<u<<" Head "<<endl; }
|
||||
if(T.PositionOnCurve() == IntRes2d_End) { std::cout <<Texte<<" Param :"<<u<<" End "<<std::endl; }
|
||||
if(T.PositionOnCurve() == IntRes2d_Middle) { std::cout <<Texte<<" Param :"<<u<<" Middle "<<std::endl; }
|
||||
if(T.PositionOnCurve() == IntRes2d_Head) { std::cout <<Texte<<" Param :"<<u<<" Head "<<std::endl; }
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -413,7 +413,7 @@ AffPosition(T2,PParamOnSecond," Point 2 ");
|
||||
|
||||
#if 0
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
#define Debug(q) cout<<"IntRes2d_Intersectionq ="<<q<<endl;
|
||||
#define Debug(q) std::cout<<"IntRes2d_Intersectionq ="<<q<<std::endl;
|
||||
|
||||
char *DebugPos(const IntRes2d_Position P);
|
||||
|
||||
@@ -423,7 +423,7 @@ Debug(FirstParam2);
|
||||
Debug(LastParam2);
|
||||
Debug(PParamOnFirst);
|
||||
Debug(PParamOnSecond);
|
||||
cout<<" ##### T1 <> Middle ###### "<<DebugPos(T1.PositionOnCurve())<<endl;
|
||||
std::cout<<" ##### T1 <> Middle ###### "<<DebugPos(T1.PositionOnCurve())<<std::endl;
|
||||
char *DebugPos(const IntRes2d_Position P) {
|
||||
if(P==IntRes2d_Middle) return(" Middle ");
|
||||
if(P==IntRes2d_Head) return(" Head ");
|
||||
|
@@ -27,7 +27,7 @@ IntRes2d_Transition::IntRes2d_Transition() : tangent(Standard_True),
|
||||
}
|
||||
|
||||
|
||||
ostream& operator << (ostream& os, IntRes2d_Transition& Trans) {
|
||||
std::ostream& operator << (std::ostream& os, IntRes2d_Transition& Trans) {
|
||||
|
||||
os << " Position : ";
|
||||
if (Trans.PositionOnCurve()==IntRes2d_Head) {
|
||||
|
@@ -16,7 +16,7 @@
|
||||
|
||||
#include <Standard_DomainError.hxx>
|
||||
|
||||
ostream& operator << (ostream&, IntRes2d_Transition&);
|
||||
std::ostream& operator << (std::ostream&, IntRes2d_Transition&);
|
||||
|
||||
inline IntRes2d_Transition::IntRes2d_Transition (const Standard_Boolean Tangent,
|
||||
const IntRes2d_Position Pos,
|
||||
|
Reference in New Issue
Block a user