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:
@@ -80,7 +80,7 @@ void GeoAlgo_Sol::Build(const TColgp_SequenceOfXYZ& seqOfXYZ)
|
||||
|
||||
//Filling plate
|
||||
Plate_Plate myPlate;
|
||||
cout<<" * Nunber of points = "<< nbPnt << endl;
|
||||
std::cout<<" * Nunber of points = "<< nbPnt << std::endl;
|
||||
for (i=1; i<= nbPnt; i++) {
|
||||
gp_Pnt ptProj(seqOfXYZ.Value(i).X(), seqOfXYZ.Value(i).Y(), 0. );
|
||||
gp_Vec aVec( ptProj, seqOfXYZ.Value(i));
|
||||
@@ -90,7 +90,7 @@ void GeoAlgo_Sol::Build(const TColgp_SequenceOfXYZ& seqOfXYZ)
|
||||
}
|
||||
myPlate.SolveTI(2, 1.);// resolution
|
||||
if (!myPlate.IsDone()) {
|
||||
cout<<" plate computation has failed"<< endl;
|
||||
std::cout<<" plate computation has failed"<< std::endl;
|
||||
myIsDone=Standard_False;
|
||||
}
|
||||
|
||||
@@ -144,11 +144,11 @@ Handle(Geom_BSplineSurface) GeoAlgo_Sol::Read(const Standard_CString aGroundName
|
||||
Standard_Integer nbPnt=0;
|
||||
|
||||
// Read points from the file
|
||||
filebuf fic;
|
||||
istream in(&fic);
|
||||
std::filebuf fic;
|
||||
std::istream in(&fic);
|
||||
|
||||
if (!fic.open(aGroundName,ios::in)){
|
||||
cout << " impossible to open a file : "<<aGroundName<<endl;
|
||||
if (!fic.open(aGroundName,std::ios::in)){
|
||||
std::cout << " impossible to open a file : "<<aGroundName<<std::endl;
|
||||
myIsDone = Standard_False;
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user