mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-04-05 18:16:23 +03:00
0033672: Coding - New line performance update
Auto-fix for std::endl to \n in the file-based stream
This commit is contained in:
parent
b78ccf1f9b
commit
675bce58db
src
AdvApp2Var
AdvApprox
AppDef
AppParCurves
Approx
BRepBuilderAPI
BRepCheck
BRepExtrema
BRepMesh
BRepOffset
BRepOffsetAPI
BRepTest
BRepTools
BiTgte
BinTools
BinTools_Curve2dSet.cxxBinTools_CurveSet.cxxBinTools_IStream.cxxBinTools_LocationSet.cxxBinTools_ShapeReader.cxxBinTools_ShapeSet.cxxBinTools_ShapeWriter.cxxBinTools_SurfaceSet.cxx
Bisector
CDF
CDM
ChFi3d
Contap
DBRep
DDF
DDataStd
DDocStd
DNaming
Draw
Draw.cxxDraw_BasicCommands.cxxDraw_Debug.cxxDraw_GraphicCommands.cxxDraw_Interpretor.cxxDraw_MessageCommands.cxxDraw_VariableCommands.cxxDraw_Window.cxx
DrawTrSurf
ExpToCasExe
FEmTool
FairCurve
Geom2dConvert
Geom2dHatch
GeomConvert
GeomFill
GeomTools
GeomTools_Curve2dSet.cxxGeomTools_CurveSet.cxxGeomTools_Debug.cxxGeomTools_SurfaceSet.cxxGeomTools_UndefinedTypeHandler.cxx
GeometryTest
GeomliteTest
Graphic3d
HLRAlgo
HLRBRep
HLRTest
HatchGen
IFSelect
@ -1065,44 +1065,44 @@ Standard_Real
|
||||
void AdvApp2Var_ApproxAFunc2Var::Dump(Standard_OStream& o) const
|
||||
{
|
||||
Standard_Integer iesp=1,NbKU,NbKV,ik;
|
||||
o<<std::endl;
|
||||
if (!myHasResult) { o<<"No result"<<std::endl; }
|
||||
o<<'\n';
|
||||
if (!myHasResult) { o<<"No result"<<'\n'; }
|
||||
else {
|
||||
o<<"There is a result";
|
||||
if (myDone) {
|
||||
o<<" within the requested tolerance "<<my3DTolerances->Value(iesp)<<std::endl;
|
||||
o<<" within the requested tolerance "<<my3DTolerances->Value(iesp)<<'\n';
|
||||
}
|
||||
else if (my3DMaxError->Value(iesp)>my3DTolerances->Value(iesp)) {
|
||||
o<<" WITHOUT the requested tolerance "<<my3DTolerances->Value(iesp)<<std::endl;
|
||||
o<<" WITHOUT the requested tolerance "<<my3DTolerances->Value(iesp)<<'\n';
|
||||
}
|
||||
else {
|
||||
o<<" WITHOUT the requested continuities "<<std::endl;
|
||||
o<<" WITHOUT the requested continuities "<<'\n';
|
||||
}
|
||||
o<<std::endl;
|
||||
o<<"Result max error :"<<my3DMaxError->Value(iesp)<<std::endl;
|
||||
o<<"Result average error :"<<my3DAverageError->Value(iesp)<<std::endl;
|
||||
o<<"Result max error on U frontiers :"<<my3DUFrontError->Value(iesp)<<std::endl;
|
||||
o<<"Result max error on V frontiers :"<<my3DVFrontError->Value(iesp)<<std::endl;
|
||||
o<<std::endl;
|
||||
o<<'\n';
|
||||
o<<"Result max error :"<<my3DMaxError->Value(iesp)<<'\n';
|
||||
o<<"Result average error :"<<my3DAverageError->Value(iesp)<<'\n';
|
||||
o<<"Result max error on U frontiers :"<<my3DUFrontError->Value(iesp)<<'\n';
|
||||
o<<"Result max error on V frontiers :"<<my3DVFrontError->Value(iesp)<<'\n';
|
||||
o<<'\n';
|
||||
o<<"Degree of Bezier patches in U : "<<myDegreeInU
|
||||
<<" in V : "<<myDegreeInV<<std::endl;
|
||||
o<<std::endl;
|
||||
<<" in V : "<<myDegreeInV<<'\n';
|
||||
o<<'\n';
|
||||
Handle(Geom_BSplineSurface) S
|
||||
= Handle(Geom_BSplineSurface)::DownCast(mySurfaces->Value(iesp));
|
||||
o<<"Number of poles in U : "<<S->NbUPoles()
|
||||
<<" in V : "<<S->NbVPoles()<<std::endl;
|
||||
o<<std::endl;
|
||||
<<" in V : "<<S->NbVPoles()<<'\n';
|
||||
o<<'\n';
|
||||
NbKU = S->NbUKnots();
|
||||
NbKV = S->NbVKnots();
|
||||
o<<"Number of knots in U : "<<NbKU<<std::endl;
|
||||
o<<"Number of knots in U : "<<NbKU<<'\n';
|
||||
for (ik=1;ik<=NbKU;ik++) {
|
||||
o<<" "<<ik<<" : "<<S->UKnot(ik)<<" mult : "<<S->UMultiplicity(ik)<<std::endl;
|
||||
o<<" "<<ik<<" : "<<S->UKnot(ik)<<" mult : "<<S->UMultiplicity(ik)<<'\n';
|
||||
}
|
||||
o<<std::endl;
|
||||
o<<"Number of knots in V : "<<NbKV<<std::endl;
|
||||
o<<'\n';
|
||||
o<<"Number of knots in V : "<<NbKV<<'\n';
|
||||
for (ik=1;ik<=NbKV;ik++) {
|
||||
o<<" "<<ik<<" : "<<S->VKnot(ik)<<" mult : "<<S->VMultiplicity(ik)<<std::endl;
|
||||
o<<" "<<ik<<" : "<<S->VKnot(ik)<<" mult : "<<S->VMultiplicity(ik)<<'\n';
|
||||
}
|
||||
o<<std::endl;
|
||||
o<<'\n';
|
||||
}
|
||||
}
|
||||
|
@ -1090,25 +1090,25 @@ Standard_Real AdvApprox_ApproxAFunction::AverageError(
|
||||
void AdvApprox_ApproxAFunction::Dump(Standard_OStream& o) const
|
||||
{
|
||||
Standard_Integer ii;
|
||||
o << "Dump of ApproxAFunction" << std::endl;
|
||||
o << "Dump of ApproxAFunction" << '\n';
|
||||
if (myNumSubSpaces[0] > 0) {
|
||||
o << "Error(s) 1d = " << std::endl;
|
||||
o << "Error(s) 1d = " << '\n';
|
||||
for (ii=1; ii <= myNumSubSpaces[0]; ii++) {
|
||||
o << " " << MaxError(1, ii) << std::endl;
|
||||
o << " " << MaxError(1, ii) << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
if (myNumSubSpaces[1] > 0) {
|
||||
o << "Error(s) 2d = " << std::endl;
|
||||
o << "Error(s) 2d = " << '\n';
|
||||
for (ii=1; ii <= myNumSubSpaces[1]; ii++) {
|
||||
o << " " << MaxError(2, ii) << std::endl;
|
||||
o << " " << MaxError(2, ii) << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
if (myNumSubSpaces[2] > 0) {
|
||||
o << "Error(s) 3d = " << std::endl;
|
||||
o << "Error(s) 3d = " << '\n';
|
||||
for (ii=1; ii <= myNumSubSpaces[2]; ii++) {
|
||||
o << " " << MaxError(3, ii) << std::endl;
|
||||
o << " " << MaxError(3, ii) << '\n';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -378,9 +378,9 @@ Standard_Real AdvApprox_SimpleApprox::AverageError(const Standard_Integer Index)
|
||||
void AdvApprox_SimpleApprox::Dump(Standard_OStream& o) const
|
||||
{
|
||||
Standard_Integer ii;
|
||||
o << "Dump of SimpleApprox " << std::endl;
|
||||
o << "Dump of SimpleApprox " << '\n';
|
||||
for (ii=1; ii <= myTotalNumSS; ii++) {
|
||||
o << "Error " << MaxError(ii) << std::endl;
|
||||
o << "Error " << MaxError(ii) << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -96,8 +96,8 @@ AppDef_MultiPointConstraint AppDef_MultiLine::Value (const Standard_Integer Inde
|
||||
|
||||
void AppDef_MultiLine::Dump(Standard_OStream& o) const
|
||||
{
|
||||
o << "AppDef_MultiLine dump:" << std::endl;
|
||||
o << "AppDef_MultiLine dump:" << '\n';
|
||||
// AppDef_MultiPointConstraint MP = tabMult->Value(1);
|
||||
o << "It contains " << tabMult->Length() << " MultiPointConstraint"<< std::endl;
|
||||
o << "It contains " << tabMult->Length() << " MultiPointConstraint"<< '\n';
|
||||
// o << MP->NbPoints() << " 3d and " << MP->NbPoints2d() << std::endl;
|
||||
}
|
||||
|
@ -316,5 +316,5 @@ Standard_Boolean AppDef_MultiPointConstraint::IsCurvaturePoint() const
|
||||
|
||||
void AppDef_MultiPointConstraint::Dump(Standard_OStream& o) const
|
||||
{
|
||||
o << "AppDef_MultiPointConstraint dump:" << std::endl;
|
||||
o << "AppDef_MultiPointConstraint dump:" << '\n';
|
||||
}
|
||||
|
@ -878,34 +878,34 @@ Standard_Integer AppDef_Variational::NbIterations() const
|
||||
//
|
||||
void AppDef_Variational::Dump(Standard_OStream& o) const
|
||||
{
|
||||
o << " \nVariational Smoothing " << std::endl;
|
||||
o << " Number of multipoints " << myNbPoints << std::endl;
|
||||
o << " Number of 2d par multipoint " << myNbP2d << std::endl;
|
||||
o << " Nombre of 3d par multipoint " << myNbP3d << std::endl;
|
||||
o << " Number of PassagePoint " << myNbPassPoints << std::endl;
|
||||
o << " Number of TangencyPoints " << myNbTangPoints << std::endl;
|
||||
o << " Number of CurvaturePoints " << myNbCurvPoints << std::endl;
|
||||
o << " \nVariational Smoothing " << '\n';
|
||||
o << " Number of multipoints " << myNbPoints << '\n';
|
||||
o << " Number of 2d par multipoint " << myNbP2d << '\n';
|
||||
o << " Nombre of 3d par multipoint " << myNbP3d << '\n';
|
||||
o << " Number of PassagePoint " << myNbPassPoints << '\n';
|
||||
o << " Number of TangencyPoints " << myNbTangPoints << '\n';
|
||||
o << " Number of CurvaturePoints " << myNbCurvPoints << '\n';
|
||||
o << " \nTolerance " << o.setf(std::ios::scientific) << std::setprecision(3) << std::setw(9) << myTolerance;
|
||||
if ( WithMinMax()) { o << " as Max Error." << std::endl;}
|
||||
else { o << " as size Error." << std::endl;}
|
||||
if ( WithMinMax()) { o << " as Max Error." << '\n';}
|
||||
else { o << " as size Error." << '\n';}
|
||||
o << "CriteriumWeights : " << myPercent[0] << " , "
|
||||
<< myPercent[1] << " , " << myPercent[2] << std::endl;
|
||||
<< myPercent[1] << " , " << myPercent[2] << '\n';
|
||||
|
||||
if (myIsDone ) {
|
||||
o << " MaxError " << std::setprecision(3) << std::setw(9) << myMaxError << std::endl;
|
||||
o << " Index of MaxError " << myMaxErrorIndex << std::endl;
|
||||
o << " Average Error " << std::setprecision(3) << std::setw(9) << myAverageError << std::endl;
|
||||
o << " Quadratic Error " << std::setprecision(3) << std::setw(9) << myCriterium[0] << std::endl;
|
||||
o << " Tension Criterium " << std::setprecision(3) << std::setw(9) << myCriterium[1] << std::endl;
|
||||
o << " Flexion Criterium " << std::setprecision(3) << std::setw(9) << myCriterium[2] << std::endl;
|
||||
o << " Jerk Criterium " << std::setprecision(3) << std::setw(9) << myCriterium[3] << std::endl;
|
||||
o << " NbSegments " << myKnots->Length()-1 << std::endl;
|
||||
o << " MaxError " << std::setprecision(3) << std::setw(9) << myMaxError << '\n';
|
||||
o << " Index of MaxError " << myMaxErrorIndex << '\n';
|
||||
o << " Average Error " << std::setprecision(3) << std::setw(9) << myAverageError << '\n';
|
||||
o << " Quadratic Error " << std::setprecision(3) << std::setw(9) << myCriterium[0] << '\n';
|
||||
o << " Tension Criterium " << std::setprecision(3) << std::setw(9) << myCriterium[1] << '\n';
|
||||
o << " Flexion Criterium " << std::setprecision(3) << std::setw(9) << myCriterium[2] << '\n';
|
||||
o << " Jerk Criterium " << std::setprecision(3) << std::setw(9) << myCriterium[3] << '\n';
|
||||
o << " NbSegments " << myKnots->Length()-1 << '\n';
|
||||
}
|
||||
else
|
||||
{
|
||||
o << (myIsOverConstr
|
||||
? " The problem is overconstraint"
|
||||
: " Error in approximation") << std::endl;
|
||||
: " Error in approximation") << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -288,9 +288,9 @@ void AppParCurves_MultiBSpCurve::D2 (const Standard_Integer CuIndex,
|
||||
|
||||
void AppParCurves_MultiBSpCurve::Dump(Standard_OStream& o) const
|
||||
{
|
||||
o << "AppParCurves_MultiBSpCurve dump:" << std::endl;
|
||||
o << " It contains " << NbCurves() << " BSpline curves "<< std::endl;
|
||||
o << " The poles are: " << std::endl;
|
||||
o << "AppParCurves_MultiBSpCurve dump:" << '\n';
|
||||
o << " It contains " << NbCurves() << " BSpline curves "<< '\n';
|
||||
o << " The poles are: " << '\n';
|
||||
/* for (Standard_Integer i = 1; i <= NbCurves(); i++) {
|
||||
o << " Curve No. " << i << std::endl;
|
||||
if (Dimension(i) == 3) {
|
||||
|
@ -283,9 +283,9 @@ void AppParCurves_MultiCurve::D2 (const Standard_Integer CuIndex,
|
||||
|
||||
void AppParCurves_MultiCurve::Dump(Standard_OStream& o) const
|
||||
{
|
||||
o << "AppParCurves_MultiCurve dump:" << std::endl;
|
||||
o << " It contains " << NbCurves() << " Bezier curves of degree " << tabPoint->Length()-1 << std::endl;
|
||||
o << " The poles are: " << std::endl;
|
||||
o << "AppParCurves_MultiCurve dump:" << '\n';
|
||||
o << " It contains " << NbCurves() << " Bezier curves of degree " << tabPoint->Length()-1 << '\n';
|
||||
o << " The poles are: " << '\n';
|
||||
/* for (Standard_Integer i = 1; i <= NbCurves(); i++) {
|
||||
o << " Curve No. " << i << std::endl;
|
||||
if (Dimension(i) == 3) {
|
||||
|
@ -172,20 +172,20 @@ const gp_Pnt2d& AppParCurves_MultiPoint::Point2d (const Standard_Integer Index)
|
||||
|
||||
void AppParCurves_MultiPoint::Dump(Standard_OStream& o) const
|
||||
{
|
||||
o << "AppParCurves_MultiPoint dump:" << std::endl;
|
||||
o << "AppParCurves_MultiPoint dump:" << '\n';
|
||||
const Standard_Integer aNbPnts3D = NbPoints(),
|
||||
aNbPnts2D = NbPoints2d();
|
||||
o << "It contains " << aNbPnts3D << " 3d points and " << aNbPnts2D <<" 2d points." << std::endl;
|
||||
o << "It contains " << aNbPnts3D << " 3d points and " << aNbPnts2D <<" 2d points." << '\n';
|
||||
|
||||
if(aNbPnts3D > 0)
|
||||
{
|
||||
for(Standard_Integer i = tabPoint->Lower(); i <= tabPoint->Upper(); i++)
|
||||
{
|
||||
o << "3D-Point #" << i << std::endl;
|
||||
o << "3D-Point #" << i << '\n';
|
||||
|
||||
o << " Pole x = " << (tabPoint->Value(i)/*->Point(j)*/).X() << std::endl;
|
||||
o << " Pole y = " << (tabPoint->Value(i)/*->Point(j)*/).Y() << std::endl;
|
||||
o << " Pole z = " << (tabPoint->Value(i)/*->Point(j)*/).Z() << std::endl;
|
||||
o << " Pole x = " << (tabPoint->Value(i)/*->Point(j)*/).X() << '\n';
|
||||
o << " Pole y = " << (tabPoint->Value(i)/*->Point(j)*/).Y() << '\n';
|
||||
o << " Pole z = " << (tabPoint->Value(i)/*->Point(j)*/).Z() << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
@ -193,10 +193,10 @@ void AppParCurves_MultiPoint::Dump(Standard_OStream& o) const
|
||||
{
|
||||
for(Standard_Integer i = tabPoint2d->Lower(); i <= tabPoint2d->Upper(); i++)
|
||||
{
|
||||
o << "2D-Point #" << i << std::endl;
|
||||
o << "2D-Point #" << i << '\n';
|
||||
|
||||
o << " Pole x = " << (tabPoint2d->Value(i)/*->Point2d(j)*/).X() << std::endl;
|
||||
o << " Pole y = " << (tabPoint2d->Value(i)/*->Point2d(j)*/).Y() << std::endl;
|
||||
o << " Pole x = " << (tabPoint2d->Value(i)/*->Point2d(j)*/).X() << '\n';
|
||||
o << " Pole y = " << (tabPoint2d->Value(i)/*->Point2d(j)*/).Y() << '\n';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -172,8 +172,8 @@ Approx_Curve3d::Approx_Curve3d(const Handle(Adaptor3d_Curve)& Curve,
|
||||
|
||||
void Approx_Curve3d::Dump(Standard_OStream& o) const
|
||||
{
|
||||
o << "******* Dump of ApproxCurve *******" << std::endl;
|
||||
o << "*******Degree " << Curve()->Degree() << std::endl;
|
||||
o << "*******NbSegments " << Curve()->NbKnots() - 1 << std::endl;
|
||||
o << "*******Error " << MaxError() << std::endl;
|
||||
o << "******* Dump of ApproxCurve *******" << '\n';
|
||||
o << "*******Degree " << Curve()->Degree() << '\n';
|
||||
o << "*******NbSegments " << Curve()->NbKnots() - 1 << '\n';
|
||||
o << "*******Error " << MaxError() << '\n';
|
||||
}
|
||||
|
@ -623,12 +623,12 @@ Approx_CurvilinearParameter::Approx_CurvilinearParameter(const Handle(Adaptor2d_
|
||||
|
||||
void Approx_CurvilinearParameter::Dump(Standard_OStream& o) const
|
||||
{
|
||||
o << "Dump of Approx_CurvilinearParameter" << std::endl;
|
||||
o << "Dump of Approx_CurvilinearParameter" << '\n';
|
||||
if (myCase==2 || myCase==3)
|
||||
o << "myMaxError2d1 = " << myMaxError2d1 << std::endl;
|
||||
o << "myMaxError2d1 = " << myMaxError2d1 << '\n';
|
||||
if (myCase==3)
|
||||
o << "myMaxError2d2 = " << myMaxError2d2 << std::endl;
|
||||
o << "myMaxError3d = " << myMaxError3d << std::endl;
|
||||
o << "myMaxError2d2 = " << myMaxError2d2 << '\n';
|
||||
o << "myMaxError3d = " << myMaxError3d << '\n';
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
@ -732,19 +732,19 @@ Standard_Real Approx_SweepApproximation::TolCurveOnSurf(const Standard_Integer I
|
||||
|
||||
void Approx_SweepApproximation::Dump(Standard_OStream& o) const
|
||||
{
|
||||
o << "Dump of SweepApproximation" << std::endl;
|
||||
o << "Dump of SweepApproximation" << '\n';
|
||||
if (done) {
|
||||
o << "Error 3d = " << MaxErrorOnSurf() << std::endl;
|
||||
o << "Error 3d = " << MaxErrorOnSurf() << '\n';
|
||||
|
||||
if (Num2DSS>0) {
|
||||
o << "Error 2d = ";
|
||||
for (Standard_Integer ii=1; ii<=Num2DSS; ii++)
|
||||
{ o << Max2dError(ii);
|
||||
if (ii < Num2DSS) o << " , " << std::endl;
|
||||
if (ii < Num2DSS) o << " , " << '\n';
|
||||
}
|
||||
std::cout << std::endl;
|
||||
std::cout << '\n';
|
||||
}
|
||||
o << tabVKnots->Length()-1 <<" Segment(s) of degree " << vdeg << std::endl;
|
||||
o << tabVKnots->Length()-1 <<" Segment(s) of degree " << vdeg << '\n';
|
||||
}
|
||||
else std::cout << " Not Done " << std::endl;
|
||||
else std::cout << " Not Done " << '\n';
|
||||
}
|
||||
|
@ -2184,23 +2184,23 @@ void BRepBuilderAPI_Sewing::Dump() const
|
||||
mapVertices.Add(V2);
|
||||
}
|
||||
}
|
||||
std::cout << " " << std::endl;
|
||||
std::cout << " Information " << std::endl;
|
||||
std::cout << " ===========================================================" << std::endl;
|
||||
std::cout << " " << std::endl;
|
||||
std::cout << " Number of input shapes : " << myOldShapes.Extent() << std::endl;
|
||||
std::cout << " Number of actual shapes : " << myNbShapes << std::endl;
|
||||
std::cout << " Number of Bounds : " << NbBounds << std::endl;
|
||||
std::cout << " Number of Sections : " << NbSections << std::endl;
|
||||
std::cout << " Number of Edges : " << mapEdges.Extent() << std::endl;
|
||||
std::cout << " Number of Vertices : " << myNbVertices << std::endl;
|
||||
std::cout << " Number of Nodes : " << mapVertices.Extent() << std::endl;
|
||||
std::cout << " Number of Free Edges : " << myFreeEdges.Extent() << std::endl;
|
||||
std::cout << " Number of Contigous Edges : " << myContigousEdges.Extent() << std::endl;
|
||||
std::cout << " Number of Multiple Edges : " << myMultipleEdges.Extent() << std::endl;
|
||||
std::cout << " Number of Degenerated Edges : " << myDegenerated.Extent() << std::endl;
|
||||
std::cout << " ===========================================================" << std::endl;
|
||||
std::cout << " " << std::endl;
|
||||
std::cout << " " << '\n';
|
||||
std::cout << " Information " << '\n';
|
||||
std::cout << " ===========================================================" << '\n';
|
||||
std::cout << " " << '\n';
|
||||
std::cout << " Number of input shapes : " << myOldShapes.Extent() << '\n';
|
||||
std::cout << " Number of actual shapes : " << myNbShapes << '\n';
|
||||
std::cout << " Number of Bounds : " << NbBounds << '\n';
|
||||
std::cout << " Number of Sections : " << NbSections << '\n';
|
||||
std::cout << " Number of Edges : " << mapEdges.Extent() << '\n';
|
||||
std::cout << " Number of Vertices : " << myNbVertices << '\n';
|
||||
std::cout << " Number of Nodes : " << mapVertices.Extent() << '\n';
|
||||
std::cout << " Number of Free Edges : " << myFreeEdges.Extent() << '\n';
|
||||
std::cout << " Number of Contigous Edges : " << myContigousEdges.Extent() << '\n';
|
||||
std::cout << " Number of Multiple Edges : " << myMultipleEdges.Extent() << '\n';
|
||||
std::cout << " Number of Degenerated Edges : " << myDegenerated.Extent() << '\n';
|
||||
std::cout << " ===========================================================" << '\n';
|
||||
std::cout << " " << '\n';
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
@ -86,7 +86,7 @@ void PrintShape(const TopoDS_Shape& theShape) {
|
||||
if (!theShape.IsNull()) {
|
||||
size_t code = TopTools_ShapeMapHasher{}(theShape);
|
||||
std::cout << TopAbs::ShapeTypeToString (theShape.ShapeType()) << " : " << code
|
||||
<< " " << TopAbs::ShapeOrientationToString(theShape.Orientation()) << std::endl;
|
||||
<< " " << TopAbs::ShapeOrientationToString(theShape.Orientation()) << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -1120,18 +1120,18 @@ void BRepExtrema_DistShapeShape::Dump(Standard_OStream& o) const
|
||||
Standard_Integer i;
|
||||
Standard_Real r1,r2;
|
||||
|
||||
o<< "the distance value is : " << Value()<<std::endl;
|
||||
o<< "the number of solutions is :"<<NbSolution()<<std::endl;
|
||||
o<<std::endl;
|
||||
o<< "the distance value is : " << Value()<<'\n';
|
||||
o<< "the number of solutions is :"<<NbSolution()<<'\n';
|
||||
o<<'\n';
|
||||
for (i=1;i<=NbSolution();i++)
|
||||
{
|
||||
o<<"solution number "<<i<<": "<< std::endl;
|
||||
o<<"the type of the solution on the first shape is " <<Standard_Integer( SupportTypeShape1(i)) <<std::endl;
|
||||
o<<"the type of the solution on the second shape is "<<Standard_Integer( SupportTypeShape2(i))<< std::endl;
|
||||
o<< "the coordinates of the point on the first shape are: "<<std::endl;
|
||||
o<<"X=" <<PointOnShape1(i).X()<<" Y=" <<PointOnShape1(i).Y()<<" Z="<<PointOnShape1(i).Z()<<std::endl;
|
||||
o<< "the coordinates of the point on the second shape are: "<<std::endl;
|
||||
o<<"X="<< PointOnShape2(i).X()<< " Y="<<PointOnShape2(i).Y()<<" Z="<< PointOnShape2(i).Z()<<std::endl;
|
||||
o<<"solution number "<<i<<": "<< '\n';
|
||||
o<<"the type of the solution on the first shape is " <<Standard_Integer( SupportTypeShape1(i)) <<'\n';
|
||||
o<<"the type of the solution on the second shape is "<<Standard_Integer( SupportTypeShape2(i))<< '\n';
|
||||
o<< "the coordinates of the point on the first shape are: "<<'\n';
|
||||
o<<"X=" <<PointOnShape1(i).X()<<" Y=" <<PointOnShape1(i).Y()<<" Z="<<PointOnShape1(i).Z()<<'\n';
|
||||
o<< "the coordinates of the point on the second shape are: "<<'\n';
|
||||
o<<"X="<< PointOnShape2(i).X()<< " Y="<<PointOnShape2(i).Y()<<" Z="<< PointOnShape2(i).Z()<<'\n';
|
||||
|
||||
switch (SupportTypeShape1(i))
|
||||
{
|
||||
@ -1139,11 +1139,11 @@ void BRepExtrema_DistShapeShape::Dump(Standard_OStream& o) const
|
||||
break;
|
||||
case BRepExtrema_IsOnEdge:
|
||||
ParOnEdgeS1(i,r1);
|
||||
o << "parameter on the first edge : t= " << r1 << std::endl;
|
||||
o << "parameter on the first edge : t= " << r1 << '\n';
|
||||
break;
|
||||
case BRepExtrema_IsInFace:
|
||||
ParOnFaceS1(i,r1,r2);
|
||||
o << "parameters on the first face : u= " << r1 << " v=" << r2 << std::endl;
|
||||
o << "parameters on the first face : u= " << r1 << " v=" << r2 << '\n';
|
||||
break;
|
||||
}
|
||||
switch (SupportTypeShape2(i))
|
||||
@ -1152,13 +1152,13 @@ void BRepExtrema_DistShapeShape::Dump(Standard_OStream& o) const
|
||||
break;
|
||||
case BRepExtrema_IsOnEdge:
|
||||
ParOnEdgeS2(i,r1);
|
||||
o << "parameter on the second edge : t=" << r1 << std::endl;
|
||||
o << "parameter on the second edge : t=" << r1 << '\n';
|
||||
break;
|
||||
case BRepExtrema_IsInFace:
|
||||
ParOnFaceS2(i,r1,r2);
|
||||
o << "parameters on the second face : u= " << r1 << " v=" << r2 << std::endl;
|
||||
o << "parameters on the second face : u= " << r1 << " v=" << r2 << '\n';
|
||||
break;
|
||||
}
|
||||
o<<std::endl;
|
||||
o<<'\n';
|
||||
}
|
||||
}
|
||||
|
@ -473,14 +473,14 @@ void BRepMesh_DataStructureOfDelaun::Statistics(Standard_OStream& theStream) con
|
||||
{
|
||||
theStream << " Map of nodes : \n";
|
||||
myNodes->Statistics(theStream);
|
||||
theStream << "\n Deleted nodes : " << myNodes->GetListOfDelNodes().Extent() << std::endl;
|
||||
theStream << "\n Deleted nodes : " << myNodes->GetListOfDelNodes().Extent() << '\n';
|
||||
|
||||
theStream << "\n\n Map of Links : \n";
|
||||
myLinks.Statistics(theStream);
|
||||
theStream << "\n Deleted links : " << myDelLinks.Extent() << std::endl;
|
||||
theStream << "\n Deleted links : " << myDelLinks.Extent() << '\n';
|
||||
|
||||
theStream << "\n\n Map of elements : \n";
|
||||
theStream << "\n Elements : " << myElements.Size() << std::endl;
|
||||
theStream << "\n Elements : " << myElements.Size() << '\n';
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
@ -618,7 +618,7 @@ static void EdgeInter(const TopoDS_Face& F,
|
||||
// Modified by skv - Thu Jan 22 18:19:05 2004 OCC4455 End
|
||||
LV1.Remove(it1LV1);
|
||||
LV2.Remove(it1LV2);
|
||||
if (AffichPurge) std::cout <<"Doubles removed in EdgeInter."<<std::endl;
|
||||
if (AffichPurge) std::cout <<"Doubles removed in EdgeInter."<<'\n';
|
||||
Purge = Standard_True;
|
||||
break;
|
||||
}
|
||||
@ -900,7 +900,7 @@ static void RefEdgeInter(const TopoDS_Face& F,
|
||||
if (P1.IsEqual(P2, Tol)) {
|
||||
LV1.Remove(it1LV1);
|
||||
LV2.Remove(it1LV2);
|
||||
if (AffichPurge) std::cout <<"Doubles removed in EdgeInter."<<std::endl;
|
||||
if (AffichPurge) std::cout <<"Doubles removed in EdgeInter."<<'\n';
|
||||
Purge = Standard_True;
|
||||
break;
|
||||
}
|
||||
|
@ -986,7 +986,7 @@ void BRepOffsetAPI_MiddlePath::Build(const Message_ProgressRange& /*theRange*/)
|
||||
Interpol.Perform();
|
||||
if (!Interpol.IsDone())
|
||||
{
|
||||
std::cout<<std::endl<<"Interpolation failed"<<std::endl;
|
||||
std::cout<<'\n'<<"Interpolation failed"<<'\n';
|
||||
}
|
||||
Handle(Geom_Curve) InterCurve (Interpol.Curve());
|
||||
MidEdges(i) = BRepLib_MakeEdge(InterCurve);
|
||||
|
@ -1800,15 +1800,15 @@ static Standard_Integer arclinconvert (Draw_Interpretor& /*dout*/, Standard_Inte
|
||||
{
|
||||
// Check the command arguments
|
||||
if (n < 3) {
|
||||
std::cout<<"Error: "<<a[0]<<" - invalid number of arguments"<<std::endl;
|
||||
std::cout<<"Usage: type help "<<a[0]<<std::endl;
|
||||
std::cout<<"Error: "<<a[0]<<" - invalid number of arguments"<<'\n';
|
||||
std::cout<<"Usage: type help "<<a[0]<<'\n';
|
||||
return 1; //TCL_ERROR
|
||||
}
|
||||
|
||||
//read shape
|
||||
const TopoDS_Shape aShape = DBRep::Get(a[2]);
|
||||
if (aShape.IsNull()) {
|
||||
std::cout<<"Error: "<<a[2]<<" is null"<<std::endl;
|
||||
std::cout<<"Error: "<<a[2]<<" is null"<<'\n';
|
||||
return 1; //TCL_ERROR
|
||||
}
|
||||
|
||||
@ -1816,7 +1816,7 @@ static Standard_Integer arclinconvert (Draw_Interpretor& /*dout*/, Standard_Inte
|
||||
if (aType != TopAbs_WIRE &&
|
||||
aType != TopAbs_FACE)
|
||||
{
|
||||
std::cout<<"Error: "<<a[2]<<" is neither wire no face"<<std::endl;
|
||||
std::cout<<"Error: "<<a[2]<<" is neither wire no face"<<'\n';
|
||||
return 1; //TCL_ERROR
|
||||
}
|
||||
|
||||
@ -1824,7 +1824,7 @@ static Standard_Integer arclinconvert (Draw_Interpretor& /*dout*/, Standard_Inte
|
||||
Standard_Real aTol = 0.01;
|
||||
if (n > 3)
|
||||
aTol = Draw::Atof(a[3]);
|
||||
std::cout<<"Info: tolerance is set to "<<aTol<<std::endl;
|
||||
std::cout<<"Info: tolerance is set to "<<aTol<<'\n';
|
||||
|
||||
TopoDS_Shape aResult;
|
||||
|
||||
@ -1834,7 +1834,7 @@ static Standard_Integer arclinconvert (Draw_Interpretor& /*dout*/, Standard_Inte
|
||||
BRepBuilderAPI_MakeFace aFaceMaker (TopoDS::Wire(aShape), OnlyPlane);
|
||||
if (aFaceMaker.Error() != BRepBuilderAPI_FaceDone)
|
||||
{
|
||||
std::cout<<"Error: failed to find a face for the wire "<<a[2]<<std::endl;
|
||||
std::cout<<"Error: failed to find a face for the wire "<<a[2]<<'\n';
|
||||
return 1; //TCL_ERROR
|
||||
}
|
||||
const TopoDS_Face& aFace = aFaceMaker.Face();
|
||||
@ -1849,7 +1849,7 @@ static Standard_Integer arclinconvert (Draw_Interpretor& /*dout*/, Standard_Inte
|
||||
}
|
||||
|
||||
if (aResult.IsNull()) {
|
||||
std::cout<<"Error: could not convert "<<a[2]<<std::endl;
|
||||
std::cout<<"Error: could not convert "<<a[2]<<'\n';
|
||||
return 1; //TCL_ERROR
|
||||
}
|
||||
|
||||
|
@ -245,7 +245,7 @@ static Standard_Integer pcurve(Draw_Interpretor& , Standard_Integer n, const cha
|
||||
const Handle(Geom2d_Curve) c = BRep_Tool::CurveOnSurface
|
||||
(TopoDS::Edge(ex.Current()),TopoDS::Face(S),f,l);
|
||||
if ( c.IsNull() ) {
|
||||
std::cout << "Error: Edge " << i << " does not have pcurve" << std::endl;
|
||||
std::cout << "Error: Edge " << i << " does not have pcurve" << '\n';
|
||||
continue;
|
||||
}
|
||||
col = DBRep_ColorOrientation(ex.Current().Orientation());
|
||||
|
@ -247,7 +247,7 @@ static Standard_Integer geompipe(Draw_Interpretor&,
|
||||
}
|
||||
|
||||
Standard_Real Accuracy = aPipe.ErrorOnSurf();
|
||||
std::cout << "Accuracy of approximation = " << Accuracy << std::endl;
|
||||
std::cout << "Accuracy of approximation = " << Accuracy << '\n';
|
||||
|
||||
Handle(Geom_Surface) Sur = aPipe.Surface();
|
||||
TopoDS_Face F;
|
||||
|
@ -54,7 +54,7 @@ const char* BRepTools_Dump (void* theShapePtr)
|
||||
|
||||
std::cout <<"\n\n";
|
||||
BRepTools::Dump (*(TopoDS_Shape*)theShapePtr, std::cout);
|
||||
std::cout << std::endl;
|
||||
std::cout << '\n';
|
||||
|
||||
return "Shape dumped to std::cout";
|
||||
}
|
||||
@ -78,7 +78,7 @@ const char* BRepTools_DumpLoc (void* theLocationPtr)
|
||||
TopTools_LocationSet LS;
|
||||
LS.Add(*(TopLoc_Location*)theLocationPtr);
|
||||
LS.Dump(std::cout);
|
||||
std::cout <<std::endl;
|
||||
std::cout <<'\n';
|
||||
|
||||
return "Location dumped to std::cout";
|
||||
}
|
||||
|
@ -2064,7 +2064,7 @@ void BiTgte_Blend::ComputeSurfaces()
|
||||
if (MKE.IsDone())
|
||||
E1 = MKE.Edge();
|
||||
else {
|
||||
std::cout << "Edge Not Done" << std::endl;
|
||||
std::cout << "Edge Not Done" << '\n';
|
||||
E1 = MKE.Edge();
|
||||
}
|
||||
|
||||
@ -2103,7 +2103,7 @@ void BiTgte_Blend::ComputeSurfaces()
|
||||
if (MKE.IsDone())
|
||||
E2 = MKE.Edge();
|
||||
else {
|
||||
std::cout << "edge not Done" << std::endl;
|
||||
std::cout << "edge not Done" << '\n';
|
||||
E2 = MKE.Edge();
|
||||
}
|
||||
KPartCurve3d(E2,PC2,GS2);
|
||||
|
@ -311,8 +311,8 @@ void BinTools_Curve2dSet::WriteCurve2d(
|
||||
}
|
||||
catch(Standard_Failure const& anException) {
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "EXCEPTION in BinTools_Curve2dSet::WriteCurve2d(..)" << std::endl;
|
||||
aMsg << anException << std::endl;
|
||||
aMsg << "EXCEPTION in BinTools_Curve2dSet::WriteCurve2d(..)" << '\n';
|
||||
aMsg << anException << '\n';
|
||||
throw Standard_Failure(aMsg.str().c_str());
|
||||
}
|
||||
}
|
||||
@ -660,8 +660,8 @@ Standard_IStream& BinTools_Curve2dSet::ReadCurve2d(Standard_IStream& IS,
|
||||
catch(Standard_Failure const& anException) {
|
||||
C = NULL;
|
||||
Standard_SStream aMsg;
|
||||
aMsg <<"EXCEPTION in BinTools_Curve2dSet::ReadCurve2d(...)" << std::endl;
|
||||
aMsg << anException << std::endl;
|
||||
aMsg <<"EXCEPTION in BinTools_Curve2dSet::ReadCurve2d(...)" << '\n';
|
||||
aMsg << anException << '\n';
|
||||
throw Standard_Failure(aMsg.str().c_str());
|
||||
}
|
||||
return IS;
|
||||
@ -680,7 +680,7 @@ void BinTools_Curve2dSet::Read (Standard_IStream& IS,
|
||||
IS >> buffer;
|
||||
if (IS.fail() || strcmp(buffer,"Curve2ds")) {
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "BinTools_Curve2dSet::Read: Not a Curve2d table"<<std::endl;
|
||||
aMsg << "BinTools_Curve2dSet::Read: Not a Curve2d table"<<'\n';
|
||||
#ifdef OCCT_DEBUG
|
||||
std::cout <<"Curve2dSet buffer: " << buffer << std::endl;
|
||||
#endif
|
||||
|
@ -320,8 +320,8 @@ void BinTools_CurveSet::WriteCurve(const Handle(Geom_Curve)& C,
|
||||
}
|
||||
catch(Standard_Failure const& anException) {
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "EXCEPTION in BinTools_CurveSet::WriteCurve(..)" << std::endl;
|
||||
aMsg << anException << std::endl;
|
||||
aMsg << "EXCEPTION in BinTools_CurveSet::WriteCurve(..)" << '\n';
|
||||
aMsg << anException << '\n';
|
||||
throw Standard_Failure(aMsg.str().c_str());
|
||||
}
|
||||
}
|
||||
@ -675,8 +675,8 @@ Standard_IStream& BinTools_CurveSet::ReadCurve(Standard_IStream& IS,
|
||||
catch(Standard_Failure const& anException) {
|
||||
C = NULL;
|
||||
Standard_SStream aMsg;
|
||||
aMsg <<"EXCEPTION in BinTools_CurveSet::ReadCurve(..)" << std::endl;
|
||||
aMsg << anException << std::endl;
|
||||
aMsg <<"EXCEPTION in BinTools_CurveSet::ReadCurve(..)" << '\n';
|
||||
aMsg << anException << '\n';
|
||||
throw Standard_Failure(aMsg.str().c_str());
|
||||
}
|
||||
return IS;
|
||||
@ -694,7 +694,7 @@ void BinTools_CurveSet::Read (Standard_IStream& IS,
|
||||
IS >> buffer;
|
||||
if (IS.fail() || strcmp(buffer,"Curves")) {
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "BinTools_CurveSet::Read: Not a Curve table"<<std::endl;
|
||||
aMsg << "BinTools_CurveSet::Read: Not a Curve table"<<'\n';
|
||||
#ifdef OCCT_DEBUG
|
||||
std::cout <<"CurveSet buffer: " << buffer << std::endl;
|
||||
#endif
|
||||
|
@ -96,7 +96,7 @@ uint64_t BinTools_IStream::ReadReference()
|
||||
if (aDelta == 0)
|
||||
{
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "BinTools_IStream::ReadReference: invalid reference " << (char)myLastType << std::endl;
|
||||
aMsg << "BinTools_IStream::ReadReference: invalid reference " << (char)myLastType << '\n';
|
||||
throw Standard_Failure (aMsg.str().c_str());
|
||||
}
|
||||
return aCurrentPos - aDelta - 1; // add a type-byte
|
||||
|
@ -195,8 +195,8 @@ void BinTools_LocationSet::Write(Standard_OStream& OS) const
|
||||
}
|
||||
catch(Standard_Failure const& anException) {
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "EXCEPTION in BinTools_LocatioSet::Write(..)" << std::endl;
|
||||
aMsg << anException << std::endl;
|
||||
aMsg << "EXCEPTION in BinTools_LocatioSet::Write(..)" << '\n';
|
||||
aMsg << anException << '\n';
|
||||
throw Standard_Failure(aMsg.str().c_str());
|
||||
}
|
||||
}
|
||||
@ -215,7 +215,7 @@ void BinTools_LocationSet::Read(Standard_IStream& IS)
|
||||
IS >> buffer;
|
||||
if (IS.fail() || (strcmp(buffer,"Locations"))) {
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "BinTools_LocationSet::Read: Not a location table"<<std::endl;
|
||||
aMsg << "BinTools_LocationSet::Read: Not a location table"<<'\n';
|
||||
throw Standard_Failure(aMsg.str().c_str());
|
||||
return;
|
||||
}
|
||||
@ -247,7 +247,7 @@ void BinTools_LocationSet::Read(Standard_IStream& IS)
|
||||
}
|
||||
} else {
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "Unexpected location's type = " << aTypLoc << std::endl;
|
||||
aMsg << "Unexpected location's type = " << aTypLoc << '\n';
|
||||
throw Standard_Failure(aMsg.str().c_str());
|
||||
}
|
||||
if (!L.IsIdentity()) myMap.Add(L);
|
||||
@ -255,8 +255,8 @@ void BinTools_LocationSet::Read(Standard_IStream& IS)
|
||||
}
|
||||
catch(Standard_Failure const& anException) {
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "EXCEPTION in BinTools_LocationSet::Read(..)" << std::endl;
|
||||
aMsg << anException << std::endl;
|
||||
aMsg << "EXCEPTION in BinTools_LocationSet::Read(..)" << '\n';
|
||||
aMsg << anException << '\n';
|
||||
throw Standard_Failure(aMsg.str().c_str());
|
||||
}
|
||||
}
|
||||
|
@ -146,7 +146,7 @@ TopoDS_Shape BinTools_ShapeReader::ReadShape (BinTools_IStream& theStream)
|
||||
default:
|
||||
{
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "BinTools_ShapeReader::Read: UnExpected BRep_PointRepresentation = " << aPrsType << std::endl;
|
||||
aMsg << "BinTools_ShapeReader::Read: UnExpected BRep_PointRepresentation = " << aPrsType << '\n';
|
||||
throw Standard_Failure (aMsg.str().c_str());
|
||||
}
|
||||
}
|
||||
@ -255,7 +255,7 @@ TopoDS_Shape BinTools_ShapeReader::ReadShape (BinTools_IStream& theStream)
|
||||
default:
|
||||
{
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "Unexpected Curve Representation =" << aPrsType << std::endl;
|
||||
aMsg << "Unexpected Curve Representation =" << aPrsType << '\n';
|
||||
throw Standard_Failure (aMsg.str().c_str());
|
||||
}
|
||||
|
||||
@ -295,7 +295,7 @@ TopoDS_Shape BinTools_ShapeReader::ReadShape (BinTools_IStream& theStream)
|
||||
default:
|
||||
{
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "Unexpected topology type = " << aShapeType << std::endl;
|
||||
aMsg << "Unexpected topology type = " << aShapeType << '\n';
|
||||
throw Standard_Failure (aMsg.str().c_str());
|
||||
break;
|
||||
}
|
||||
@ -304,8 +304,8 @@ TopoDS_Shape BinTools_ShapeReader::ReadShape (BinTools_IStream& theStream)
|
||||
catch (Standard_Failure const& anException)
|
||||
{
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "EXCEPTION in BinTools_ShapeReader::Read" << std::endl;
|
||||
aMsg << anException << std::endl;
|
||||
aMsg << "EXCEPTION in BinTools_ShapeReader::Read" << '\n';
|
||||
aMsg << anException << '\n';
|
||||
throw Standard_Failure (aMsg.str().c_str());
|
||||
}
|
||||
// read flags and subs
|
||||
|
@ -391,7 +391,7 @@ void BinTools_ShapeSet::Read (Standard_IStream& IS,
|
||||
}
|
||||
while ( ! IS.fail());
|
||||
if (IS.fail()) {
|
||||
std::cout << "BinTools_ShapeSet::Read: File was not written with this version of the topology" << std::endl;
|
||||
std::cout << "BinTools_ShapeSet::Read: File was not written with this version of the topology" << '\n';
|
||||
return;
|
||||
}
|
||||
|
||||
@ -414,7 +414,7 @@ void BinTools_ShapeSet::Read (Standard_IStream& IS,
|
||||
IS >> buffer;
|
||||
if (IS.fail() || strcmp(buffer,"TShapes")) {
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "BinTools_ShapeSet::Read: Not a TShape table"<<std::endl;
|
||||
aMsg << "BinTools_ShapeSet::Read: Not a TShape table"<<'\n';
|
||||
throw Standard_Failure(aMsg.str().c_str());
|
||||
return;
|
||||
}
|
||||
@ -760,8 +760,8 @@ void BinTools_ShapeSet::WriteShape (const TopoDS_Shape& S,
|
||||
}
|
||||
catch(Standard_Failure const& anException) {
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "EXCEPTION in BinTools_ShapeSet::WriteGeometry(S,OS)" << std::endl;
|
||||
aMsg << anException << std::endl;
|
||||
aMsg << "EXCEPTION in BinTools_ShapeSet::WriteGeometry(S,OS)" << '\n';
|
||||
aMsg << anException << '\n';
|
||||
throw Standard_Failure(aMsg.str().c_str());
|
||||
}
|
||||
}
|
||||
@ -880,7 +880,7 @@ void BinTools_ShapeSet::ReadShape (const TopAbs_ShapeEnum T,
|
||||
default:
|
||||
{
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "BinTools_SurfaceSet::ReadGeometry: UnExpected BRep_PointRepresentation = " << val << std::endl;
|
||||
aMsg << "BinTools_SurfaceSet::ReadGeometry: UnExpected BRep_PointRepresentation = " << val << '\n';
|
||||
throw Standard_Failure(aMsg.str().c_str());
|
||||
}
|
||||
}
|
||||
@ -1081,7 +1081,7 @@ void BinTools_ShapeSet::ReadShape (const TopAbs_ShapeEnum T,
|
||||
default:
|
||||
{
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "Unexpected Curve Representation =" << val << std::endl;
|
||||
aMsg << "Unexpected Curve Representation =" << val << '\n';
|
||||
throw Standard_Failure(aMsg.str().c_str());
|
||||
}
|
||||
|
||||
@ -1167,7 +1167,7 @@ void BinTools_ShapeSet::ReadShape (const TopAbs_ShapeEnum T,
|
||||
default:
|
||||
{
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "Unexpected topology type = " << T << std::endl;
|
||||
aMsg << "Unexpected topology type = " << T << '\n';
|
||||
throw Standard_Failure(aMsg.str().c_str());
|
||||
break;
|
||||
}
|
||||
@ -1175,8 +1175,8 @@ void BinTools_ShapeSet::ReadShape (const TopAbs_ShapeEnum T,
|
||||
}
|
||||
catch (Standard_Failure const& anException) {
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "EXCEPTION in BinTools_ShapeSet::ReadGeometry(S,OS)" << std::endl;
|
||||
aMsg << anException << std::endl;
|
||||
aMsg << "EXCEPTION in BinTools_ShapeSet::ReadGeometry(S,OS)" << '\n';
|
||||
aMsg << anException << '\n';
|
||||
throw Standard_Failure(aMsg.str().c_str());
|
||||
}
|
||||
}
|
||||
|
@ -247,8 +247,8 @@ void BinTools_ShapeWriter::WriteShape (BinTools_OStream& theStream, const TopoDS
|
||||
catch (Standard_Failure const& anException)
|
||||
{
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "EXCEPTION in BinTools_ShapeWriter::WriteShape" << std::endl;
|
||||
aMsg << anException << std::endl;
|
||||
aMsg << "EXCEPTION in BinTools_ShapeWriter::WriteShape" << '\n';
|
||||
aMsg << anException << '\n';
|
||||
throw Standard_Failure(aMsg.str().c_str());
|
||||
}
|
||||
theStream.PutBools (aShape.Free(), aShape.Modified(), aShape.Checked(),
|
||||
@ -308,8 +308,8 @@ void BinTools_ShapeWriter::WriteLocation (BinTools_OStream& theStream, const Top
|
||||
}
|
||||
catch (Standard_Failure const& anException) {
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "EXCEPTION in BinTools_ShapeWriter::WriteLocation" << std::endl;
|
||||
aMsg << anException << std::endl;
|
||||
aMsg << "EXCEPTION in BinTools_ShapeWriter::WriteLocation" << '\n';
|
||||
aMsg << anException << '\n';
|
||||
throw Standard_Failure (aMsg.str().c_str());
|
||||
}
|
||||
}
|
||||
|
@ -391,8 +391,8 @@ void BinTools_SurfaceSet::WriteSurface (const Handle(Geom_Surface)& S,
|
||||
}
|
||||
catch(Standard_Failure const& anException) {
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "EXCEPTION in BinTools_SurfaceSet::WriteSurface(..)" << std::endl;
|
||||
aMsg << anException << std::endl;
|
||||
aMsg << "EXCEPTION in BinTools_SurfaceSet::WriteSurface(..)" << '\n';
|
||||
aMsg << anException << '\n';
|
||||
throw Standard_Failure(aMsg.str().c_str());
|
||||
}
|
||||
}
|
||||
@ -830,8 +830,8 @@ Standard_IStream& BinTools_SurfaceSet::ReadSurface(Standard_IStream& IS,
|
||||
catch(Standard_Failure const& anException) {
|
||||
S = NULL;
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "EXCEPTION in BinTools_SurfaceSet::ReadSurface(..)" << std::endl;
|
||||
aMsg << anException << std::endl;
|
||||
aMsg << "EXCEPTION in BinTools_SurfaceSet::ReadSurface(..)" << '\n';
|
||||
aMsg << anException << '\n';
|
||||
throw Standard_Failure(aMsg.str().c_str());
|
||||
}
|
||||
return IS;
|
||||
@ -849,7 +849,7 @@ void BinTools_SurfaceSet::Read (Standard_IStream& IS,
|
||||
IS >> buffer;
|
||||
if (IS.fail() || strcmp(buffer,"Surfaces")) {
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "BinTools_SurfaceSet::Read: Not a surface table"<<std::endl;
|
||||
aMsg << "BinTools_SurfaceSet::Read: Not a surface table"<<'\n';
|
||||
#ifdef OCCT_DEBUG
|
||||
std::cout <<"SurfaceSet buffer: " << buffer << std::endl;
|
||||
#endif
|
||||
|
@ -283,7 +283,7 @@ void Bisector_BisecAna::Perform(const Handle(Geom2d_Curve)& afirstcurve ,
|
||||
line2 = L2->Lin2d();
|
||||
}
|
||||
else {
|
||||
std::cout << "Not yet implemented" << std::endl;
|
||||
std::cout << "Not yet implemented" << '\n';
|
||||
}
|
||||
}
|
||||
else if (type1 == STANDARD_TYPE(Geom2d_Line)) {
|
||||
@ -302,11 +302,11 @@ void Bisector_BisecAna::Perform(const Handle(Geom2d_Curve)& afirstcurve ,
|
||||
line2 = L2->Lin2d();
|
||||
}
|
||||
else {
|
||||
std::cout << "Not yet implemented" << std::endl;
|
||||
std::cout << "Not yet implemented" << '\n';
|
||||
}
|
||||
}
|
||||
else {
|
||||
std::cout << "Not yet implemented" << std::endl;
|
||||
std::cout << "Not yet implemented" << '\n';
|
||||
}
|
||||
|
||||
switch(cas) {
|
||||
@ -842,7 +842,7 @@ void Bisector_BisecAna::Perform(const Handle(Geom2d_Curve)& afirstcurve ,
|
||||
line = L1->Lin2d();
|
||||
}
|
||||
else {
|
||||
std::cout << "Not yet implemented" << std::endl;
|
||||
std::cout << "Not yet implemented" << '\n';
|
||||
}
|
||||
|
||||
switch(cas) {
|
||||
@ -997,7 +997,7 @@ void Bisector_BisecAna::Perform(const Handle(Geom2d_Curve)& afirstcurve ,
|
||||
|
||||
default:
|
||||
{
|
||||
std::cout << "Not yet implemented" << std::endl;
|
||||
std::cout << "Not yet implemented" << '\n';
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -1633,7 +1633,7 @@ void Bisector_BisecAna::Dump(const Standard_Integer ,
|
||||
const Standard_Integer Offset) const
|
||||
{
|
||||
Indent (Offset);
|
||||
std::cout<<"Bisector_BisecAna"<<std::endl;
|
||||
std::cout<<"Bisector_BisecAna"<<'\n';
|
||||
Indent (Offset);
|
||||
// thebisector->Dump();
|
||||
}
|
||||
|
@ -1464,19 +1464,19 @@ void Bisector_BisecCC::Dump(const Standard_Integer ,
|
||||
const Standard_Integer Offset) const
|
||||
{
|
||||
Indent (Offset);
|
||||
std::cout <<"Bisector_BisecCC :"<<std::endl;
|
||||
std::cout <<"Bisector_BisecCC :"<<'\n';
|
||||
Indent (Offset);
|
||||
// std::cout <<"Curve1 :"<<curve1<<std::endl;
|
||||
// std::cout <<"Curve2 :"<<curve2<<std::endl;
|
||||
std::cout <<"Sign1 :"<<sign1<<std::endl;
|
||||
std::cout <<"Sign2 :"<<sign2<<std::endl;
|
||||
std::cout <<"Sign1 :"<<sign1<<'\n';
|
||||
std::cout <<"Sign2 :"<<sign2<<'\n';
|
||||
|
||||
std::cout <<"Number Of Intervals :"<<startIntervals.Length()<<std::endl;
|
||||
std::cout <<"Number Of Intervals :"<<startIntervals.Length()<<'\n';
|
||||
for (Standard_Integer i = 1; i <= startIntervals.Length(); i++) {
|
||||
std::cout <<"Interval number :"<<i<<"Start :"<<startIntervals.Value(i)
|
||||
<<" end :"<< endIntervals.Value(i)<<std::endl ;
|
||||
<<" end :"<< endIntervals.Value(i)<<'\n' ;
|
||||
}
|
||||
std::cout <<"Index Current Interval :"<<currentInterval<<std::endl;
|
||||
std::cout <<"Index Current Interval :"<<currentInterval<<'\n';
|
||||
}
|
||||
|
||||
//=============================================================================
|
||||
|
@ -847,18 +847,18 @@ void Bisector_BisecPC::Dump(const Standard_Integer ,
|
||||
const Standard_Integer Offset) const
|
||||
{
|
||||
Indent (Offset);
|
||||
std::cout <<"Bisector_BisecPC :"<<std::endl;
|
||||
std::cout <<"Bisector_BisecPC :"<<'\n';
|
||||
Indent (Offset);
|
||||
std::cout <<"Point :"<<std::endl;
|
||||
std::cout <<" X = "<<point.X()<<std::endl;
|
||||
std::cout <<" Y = "<<point.Y()<<std::endl;
|
||||
std::cout <<"Sign :"<<sign<<std::endl;
|
||||
std::cout <<"Number Of Intervals :"<<startIntervals.Length()<<std::endl;
|
||||
std::cout <<"Point :"<<'\n';
|
||||
std::cout <<" X = "<<point.X()<<'\n';
|
||||
std::cout <<" Y = "<<point.Y()<<'\n';
|
||||
std::cout <<"Sign :"<<sign<<'\n';
|
||||
std::cout <<"Number Of Intervals :"<<startIntervals.Length()<<'\n';
|
||||
for (Standard_Integer i = 1; i <= startIntervals.Length(); i++) {
|
||||
std::cout <<"Interval number :"<<i<<"Start :"<<startIntervals.Value(i)
|
||||
<<" end :"<< endIntervals.Value(i)<<std::endl ;
|
||||
<<" end :"<< endIntervals.Value(i)<<'\n' ;
|
||||
}
|
||||
std::cout <<"Index Current Interval :"<<currentInterval<<std::endl;
|
||||
std::cout <<"Index Current Interval :"<<currentInterval<<'\n';
|
||||
}
|
||||
|
||||
|
||||
|
@ -163,8 +163,8 @@ Standard_Boolean Bisector_PointOnBis::IsInfinite() const
|
||||
//=============================================================================
|
||||
void Bisector_PointOnBis::Dump() const
|
||||
{
|
||||
std::cout <<"Param1 :"<<param1<<std::endl;
|
||||
std::cout <<"Param2 :"<<param2<<std::endl;
|
||||
std::cout <<"Param Bis :"<<paramBis<<std::endl;
|
||||
std::cout <<"Distance :"<<distance<<std::endl;
|
||||
std::cout <<"Param1 :"<<param1<<'\n';
|
||||
std::cout <<"Param2 :"<<param2<<'\n';
|
||||
std::cout <<"Param Bis :"<<paramBis<<'\n';
|
||||
std::cout <<"Distance :"<<distance<<'\n';
|
||||
}
|
||||
|
@ -264,13 +264,13 @@ Handle(CDM_Document) CDF_Application::Retrieve (const Handle(CDM_MetaData)& aMet
|
||||
myRetrievableStatus = CanRetrieve(aMetaData, isAppendMode);
|
||||
switch (myRetrievableStatus) {
|
||||
case PCDM_RS_UnknownDocument:
|
||||
aMsg << "could not find the referenced document: " << aMetaData->Path() << "; not found." <<(char)0 << std::endl;
|
||||
aMsg << "could not find the referenced document: " << aMetaData->Path() << "; not found." <<(char)0 << '\n';
|
||||
break;
|
||||
case PCDM_RS_PermissionDenied:
|
||||
aMsg << "Could not find the referenced document: " << aMetaData->Path() << "; permission denied. " <<(char)0 << std::endl;
|
||||
aMsg << "Could not find the referenced document: " << aMetaData->Path() << "; permission denied. " <<(char)0 << '\n';
|
||||
break;
|
||||
case PCDM_RS_NoDocument:
|
||||
aMsg << "Document for appending is not defined." << (char)0 << std::endl;
|
||||
aMsg << "Document for appending is not defined." << (char)0 << '\n';
|
||||
break;
|
||||
default:
|
||||
myRetrievableStatus = PCDM_RS_OK;
|
||||
@ -319,7 +319,7 @@ Handle(CDM_Document) CDF_Application::Retrieve (const Handle(CDM_MetaData)& aMet
|
||||
myRetrievableStatus = theReader->GetStatus();
|
||||
if (myRetrievableStatus > PCDM_RS_AlreadyRetrieved) {
|
||||
Standard_SStream aMsg;
|
||||
aMsg << anException << std::endl;
|
||||
aMsg << anException << '\n';
|
||||
throw Standard_Failure(aMsg.str().c_str());
|
||||
}
|
||||
}
|
||||
@ -392,7 +392,7 @@ void CDF_Application::Read (Standard_IStream& theIStream,
|
||||
myRetrievableStatus = PCDM_RS_FormatFailure;
|
||||
|
||||
Standard_SStream aMsg;
|
||||
aMsg << anException << std::endl;
|
||||
aMsg << anException << '\n';
|
||||
throw Standard_Failure(aMsg.str().c_str());
|
||||
}
|
||||
|
||||
@ -437,7 +437,7 @@ void CDF_Application::Read (Standard_IStream& theIStream,
|
||||
if (myRetrievableStatus > PCDM_RS_AlreadyRetrieved)
|
||||
{
|
||||
Standard_SStream aMsg;
|
||||
aMsg << anException << std::endl;
|
||||
aMsg << anException << '\n';
|
||||
throw Standard_Failure(aMsg.str().c_str());
|
||||
}
|
||||
}
|
||||
|
@ -1005,7 +1005,7 @@ Handle(Resource_Manager) CDM_Document::StorageResource()
|
||||
if(myApplication.IsNull()) {
|
||||
Standard_SStream aMsg;
|
||||
aMsg << "this document of format "<< StorageFormat()
|
||||
<< " has not yet been opened by any application. "<< std::endl;
|
||||
<< " has not yet been opened by any application. "<< '\n';
|
||||
throw Standard_Failure(aMsg.str().c_str());
|
||||
}
|
||||
return myApplication->Resources();
|
||||
|
@ -140,7 +140,7 @@ Standard_OStream& CDM_MetaData::Print(Standard_OStream& anOStream) const {
|
||||
if(HasVersion()) anOStream << "," << myVersion ;
|
||||
anOStream << "; Physical situation: ";
|
||||
anOStream << myFileName;
|
||||
anOStream << std::endl;
|
||||
anOStream << '\n';
|
||||
return anOStream;
|
||||
}
|
||||
Standard_OStream& CDM_MetaData::operator << (Standard_OStream& anOStream) {
|
||||
|
@ -894,7 +894,7 @@ ChFi3d_ChBuilder::SimulSurf(Handle(ChFiDS_SurfData)& Data,
|
||||
|
||||
if (OffsetHGuide.IsNull())
|
||||
{
|
||||
std::cout<<std::endl<<"Construction of offset guide failed!"<<std::endl;
|
||||
std::cout<<'\n'<<"Construction of offset guide failed!"<<'\n';
|
||||
//exception
|
||||
}
|
||||
pFunc.reset(new BRepBlend_ConstThroatWithPenetration(S1,S2,OffsetHGuide));
|
||||
@ -1271,7 +1271,7 @@ Standard_Boolean ChFi3d_ChBuilder::PerformFirstSection
|
||||
|
||||
if (OffsetHGuide.IsNull())
|
||||
{
|
||||
std::cout<<std::endl<<"Construction of offset guide failed!"<<std::endl;
|
||||
std::cout<<'\n'<<"Construction of offset guide failed!"<<'\n';
|
||||
//exception
|
||||
}
|
||||
pFunc.reset(new BRepBlend_ConstThroatWithPenetration(S1,S2,OffsetHGuide));
|
||||
@ -1518,7 +1518,7 @@ ChFi3d_ChBuilder::PerformSurf(ChFiDS_SequenceOfSurfData& SeqData,
|
||||
|
||||
if (OffsetHGuide.IsNull())
|
||||
{
|
||||
std::cout<<std::endl<<"Construction of offset guide failed!"<<std::endl;
|
||||
std::cout<<'\n'<<"Construction of offset guide failed!"<<'\n';
|
||||
//exception
|
||||
}
|
||||
pFunc.reset(new BRepBlend_ConstThroatWithPenetration(S1,S2,OffsetHGuide));
|
||||
|
@ -1244,7 +1244,7 @@ void ComputeInternalPoints
|
||||
rsnld.Perform(SFunc,X,infb,supb);
|
||||
|
||||
if (!rsnld.IsDone()) {
|
||||
std::cout << "Echec recherche internal points" << std::endl;
|
||||
std::cout << "Echec recherche internal points" << '\n';
|
||||
solution = Standard_True;
|
||||
ok = Standard_False;
|
||||
}
|
||||
@ -1282,7 +1282,7 @@ void ComputeInternalPoints
|
||||
}
|
||||
}
|
||||
else { // on n est pas sur une solution
|
||||
std::cout << "Echec recherche internal points" << std::endl;
|
||||
std::cout << "Echec recherche internal points" << '\n';
|
||||
solution = Standard_True;
|
||||
ok = Standard_False;
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ Standard_EXPORT void DBRep_WriteColorOrientation ()
|
||||
std::cout << "\nrouge FORWARD";
|
||||
std::cout << "\nbleu REVERSED";
|
||||
std::cout << "\nrose EXTERNAL";
|
||||
std::cout << "\norange INTERNAL"<<std::endl;
|
||||
std::cout << "\norange INTERNAL"<<'\n';
|
||||
}
|
||||
|
||||
Standard_EXPORT Draw_Color DBRep_ColorOrientation (const TopAbs_Orientation Or)
|
||||
@ -1376,7 +1376,7 @@ TopoDS_Shape DBRep::getShape (Standard_CString& theName,
|
||||
TopAbs::Print (theType, std::cout);
|
||||
std::cout << " but a ";
|
||||
TopAbs::Print (aShape.ShapeType(), std::cout);
|
||||
std::cout << std::endl;
|
||||
std::cout << '\n';
|
||||
}
|
||||
return TopoDS_Shape();
|
||||
}
|
||||
|
@ -630,7 +630,7 @@ void DBRep_DrawableShape::DrawOn(Draw_Display& dis) const
|
||||
BRep_Tool::Range(E->Edge(), aCheckU1, aCheckU2);
|
||||
if (aCheckU2 < aCheckU1) {
|
||||
// bad orientation
|
||||
std::cout << "DBRep_DrawableShape : Bad parameters on edge."<<std::endl;
|
||||
std::cout << "DBRep_DrawableShape : Bad parameters on edge."<<'\n';
|
||||
BRepTools::Dump(E->Edge(),std::cout);
|
||||
ite.Next();
|
||||
continue;
|
||||
|
@ -294,11 +294,11 @@ void DBRep_IsoBuilder::LoadIsos (const Handle(DBRep_Face)& Face) const
|
||||
if (!IsDone (UInd)) {
|
||||
std::cout << "DBRep_IsoBuilder:: U iso of parameter: " << UPrm ;
|
||||
switch (Status (UInd)) {
|
||||
case HatchGen_NoProblem : std::cout << " No Problem" << std::endl ; break ;
|
||||
case HatchGen_TrimFailure : std::cout << " Trim Failure" << std::endl ; break ;
|
||||
case HatchGen_TransitionFailure : std::cout << " Transition Failure" << std::endl ; break ;
|
||||
case HatchGen_IncoherentParity : std::cout << " Incoherent Parity" << std::endl ; break ;
|
||||
case HatchGen_IncompatibleStates : std::cout << " Incompatible States" << std::endl ; break ;
|
||||
case HatchGen_NoProblem : std::cout << " No Problem" << '\n' ; break ;
|
||||
case HatchGen_TrimFailure : std::cout << " Trim Failure" << '\n' ; break ;
|
||||
case HatchGen_TransitionFailure : std::cout << " Transition Failure" << '\n' ; break ;
|
||||
case HatchGen_IncoherentParity : std::cout << " Incoherent Parity" << '\n' ; break ;
|
||||
case HatchGen_IncompatibleStates : std::cout << " Incompatible States" << '\n' ; break ;
|
||||
}
|
||||
} else {
|
||||
Standard_Integer NbDom = Geom2dHatch_Hatcher::NbDomains (UInd) ;
|
||||
@ -320,11 +320,11 @@ void DBRep_IsoBuilder::LoadIsos (const Handle(DBRep_Face)& Face) const
|
||||
if (!IsDone (VInd)) {
|
||||
std::cout << "DBRep_IsoBuilder:: V iso of parameter: " << VPrm ;
|
||||
switch (Status (VInd)) {
|
||||
case HatchGen_NoProblem : std::cout << " No Problem" << std::endl ; break ;
|
||||
case HatchGen_TrimFailure : std::cout << " Trim Failure" << std::endl ; break ;
|
||||
case HatchGen_TransitionFailure : std::cout << " Transition Failure" << std::endl ; break ;
|
||||
case HatchGen_IncoherentParity : std::cout << " Incoherent Parity" << std::endl ; break ;
|
||||
case HatchGen_IncompatibleStates : std::cout << " Incompatible States" << std::endl ; break ;
|
||||
case HatchGen_NoProblem : std::cout << " No Problem" << '\n' ; break ;
|
||||
case HatchGen_TrimFailure : std::cout << " Trim Failure" << '\n' ; break ;
|
||||
case HatchGen_TransitionFailure : std::cout << " Transition Failure" << '\n' ; break ;
|
||||
case HatchGen_IncoherentParity : std::cout << " Incoherent Parity" << '\n' ; break ;
|
||||
case HatchGen_IncompatibleStates : std::cout << " Incompatible States" << '\n' ; break ;
|
||||
}
|
||||
} else {
|
||||
Standard_Integer NbDom = Geom2dHatch_Hatcher::NbDomains (VInd) ;
|
||||
|
@ -56,7 +56,7 @@ Standard_Boolean DDF::FindLabel (const Handle(TDF_Data)& DF,
|
||||
{
|
||||
Label.Nullify();
|
||||
TDF_Tool::Label(DF,Entry,Label,Standard_False);
|
||||
if (Label.IsNull() && Complain) std::cout << "No label for entry " << Entry <<std::endl;
|
||||
if (Label.IsNull() && Complain) std::cout << "No label for entry " << Entry <<'\n';
|
||||
return !Label.IsNull();
|
||||
}
|
||||
|
||||
@ -77,7 +77,7 @@ Standard_Boolean DDF::GetDF (Standard_CString& Name,
|
||||
DF = DDF->DataFramework();
|
||||
return Standard_True;
|
||||
}
|
||||
if (Complain) std::cout <<"framework "<<Name<<" not found "<< std::endl;
|
||||
if (Complain) std::cout <<"framework "<<Name<<" not found "<< '\n';
|
||||
return Standard_False;
|
||||
}
|
||||
|
||||
@ -96,7 +96,7 @@ Standard_Boolean DDF::Find (const Handle(TDF_Data)& DF,
|
||||
TDF_Label L;
|
||||
if (FindLabel(DF,Entry,L,Complain)) {
|
||||
if (L.FindAttribute(ID,A)) return Standard_True;
|
||||
if (Complain) std::cout <<"attribute not found for entry : "<< Entry <<std::endl;
|
||||
if (Complain) std::cout <<"attribute not found for entry : "<< Entry <<'\n';
|
||||
}
|
||||
return Standard_False;
|
||||
}
|
||||
|
@ -82,7 +82,7 @@ Handle(Draw_Drawable3D) DDF_Browser::Copy() const
|
||||
|
||||
void DDF_Browser::Dump(Standard_OStream& S) const
|
||||
{
|
||||
S<<"DDF_Browser on a DF:"<<std::endl;
|
||||
S<<"DDF_Browser on a DF:"<<'\n';
|
||||
S<<myDF;
|
||||
}
|
||||
|
||||
|
@ -45,7 +45,7 @@ DDF_Data::DDF_Data(const Handle(TDF_Data)& aDF) : myDF (aDF) {}
|
||||
|
||||
void DDF_Data::DrawOn(Draw_Display& /*dis*/) const
|
||||
|
||||
{ std::cout<<"DDF_Data"<<std::endl; }
|
||||
{ std::cout<<"DDF_Data"<<'\n'; }
|
||||
|
||||
|
||||
|
||||
|
@ -2947,7 +2947,7 @@ static Standard_Integer DDataStd_SetIntPackedMap (Draw_Interpretor& di,
|
||||
}
|
||||
const Handle(TColStd_HPackedMapOfInteger)& aHMap = new TColStd_HPackedMapOfInteger(aMap);
|
||||
anAtt->ChangeMap(aHMap);
|
||||
std::cout << "Map extent = " << anAtt->Extent()<<std::endl;
|
||||
std::cout << "Map extent = " << anAtt->Extent()<<'\n';
|
||||
return 0;
|
||||
}
|
||||
di << "DDataStd_SetIntPackedMap : Error\n";
|
||||
@ -3145,7 +3145,7 @@ static Standard_Integer DDataStd_SetIntPHugeMap (Draw_Interpretor& di,
|
||||
}
|
||||
const Handle(TColStd_HPackedMapOfInteger)& aHMap = new TColStd_HPackedMapOfInteger(aMap);
|
||||
anAtt->ChangeMap(aHMap);
|
||||
std::cout << "Map extent = " << anAtt->Extent()<<std::endl;
|
||||
std::cout << "Map extent = " << anAtt->Extent()<<'\n';
|
||||
return 0;
|
||||
}
|
||||
di << "DDataStd_SetIntPHugeMap : Error\n";
|
||||
@ -3261,7 +3261,7 @@ static Standard_Integer DDataStd_SetAsciiString (Draw_Interpretor& di,
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::cout << "String = " << anAtt->Get().ToCString() << " is kept in DF" << std::endl;
|
||||
std::cout << "String = " << anAtt->Get().ToCString() << " is kept in DF" << '\n';
|
||||
return 0;
|
||||
}
|
||||
di << "DDataStd_SetAsciiString : Error\n";
|
||||
@ -3375,8 +3375,8 @@ static Standard_Integer DDataStd_GetNDIntegers (Draw_Interpretor& di,
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::cout <<std::endl;
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
|
||||
std::cout <<'\n';
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';
|
||||
anAtt->LoadDeferredData();
|
||||
const TColStd_DataMapOfStringInteger& aMap = anAtt->GetIntegersContainer();
|
||||
TColStd_DataMapIteratorOfDataMapOfStringInteger itr(aMap);
|
||||
@ -3414,15 +3414,15 @@ static Standard_Integer DDataStd_GetNDInteger (Draw_Interpretor& di,
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::cout <<std::endl;
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
|
||||
std::cout <<'\n';
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';
|
||||
anAtt->LoadDeferredData();
|
||||
TCollection_ExtendedString aKey(arg[3], Standard_True);
|
||||
if(!anAtt->HasInteger(aKey)) {
|
||||
std::cout << "There is no data specified by Key = "<< arg[3] << std::endl;
|
||||
std::cout << "There is no data specified by Key = "<< arg[3] << '\n';
|
||||
return 1;
|
||||
} else {
|
||||
std::cout << "Key = " << arg[3] << " Value = " <<anAtt->GetInteger(aKey)<<std::endl;
|
||||
std::cout << "Key = " << arg[3] << " Value = " <<anAtt->GetInteger(aKey)<<'\n';
|
||||
if(nb == 5)
|
||||
Draw::Set(arg[4], anAtt->GetInteger(aKey));
|
||||
return 0;
|
||||
@ -3486,8 +3486,8 @@ static Standard_Integer DDataStd_GetNDReals (Draw_Interpretor& di,
|
||||
TDF_Label aLabel;
|
||||
if(!DDF::FindLabel(DF, arg[2], aLabel)) return 1;
|
||||
|
||||
std::cout <<std::endl;
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
|
||||
std::cout <<'\n';
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';
|
||||
Handle(TDataStd_NamedData) anAtt;
|
||||
if(!aLabel.FindAttribute(TDataStd_NamedData::GetID(), anAtt))
|
||||
{
|
||||
@ -3531,15 +3531,15 @@ static Standard_Integer DDataStd_GetNDReal (Draw_Interpretor& di,
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::cout <<std::endl;
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
|
||||
std::cout <<'\n';
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';
|
||||
anAtt->LoadDeferredData();
|
||||
TCollection_ExtendedString aKey(arg[3], Standard_True);
|
||||
if(!anAtt->HasReal(aKey)) {
|
||||
Message::SendFail() << "There is no data specified by Key = " << arg[3];
|
||||
return 1;
|
||||
} else {
|
||||
std::cout << "Key = " << arg[3] << " Value = " <<anAtt->GetReal(aKey)<<std::endl;
|
||||
std::cout << "Key = " << arg[3] << " Value = " <<anAtt->GetReal(aKey)<<'\n';
|
||||
if(nb == 5)
|
||||
Draw::Set(arg[4], anAtt->GetReal(aKey));
|
||||
return 0;
|
||||
@ -3622,8 +3622,8 @@ static Standard_Integer DDataStd_GetNDStrings (Draw_Interpretor& di,
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::cout <<std::endl;
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
|
||||
std::cout <<'\n';
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';
|
||||
anAtt->LoadDeferredData();
|
||||
const TDataStd_DataMapOfStringString& aMap = anAtt->GetStringsContainer();
|
||||
|
||||
@ -3665,8 +3665,8 @@ static Standard_Integer DDataStd_GetNDString (Draw_Interpretor& di,
|
||||
di << "NamedData attribute is not found or not set" << "\n";
|
||||
return 1;}
|
||||
|
||||
std::cout <<std::endl;
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
|
||||
std::cout <<'\n';
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';
|
||||
anAtt->LoadDeferredData();
|
||||
TCollection_ExtendedString aKey(arg[3], Standard_True);
|
||||
if (!anAtt->HasString(aKey))
|
||||
@ -3677,7 +3677,7 @@ static Standard_Integer DDataStd_GetNDString (Draw_Interpretor& di,
|
||||
else
|
||||
{
|
||||
TCollection_AsciiString aValue (anAtt->GetString(aKey));
|
||||
std::cout << "Key = " << arg[3] << " Value = " << aValue.ToCString() << std::endl;
|
||||
std::cout << "Key = " << arg[3] << " Value = " << aValue.ToCString() << '\n';
|
||||
if(nb == 5)
|
||||
Draw::Set(arg[4], aValue.ToCString());
|
||||
return 0;
|
||||
@ -3749,8 +3749,8 @@ static Standard_Integer DDataStd_GetNDBytes (Draw_Interpretor& di,
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::cout <<std::endl;
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
|
||||
std::cout <<'\n';
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';
|
||||
anAtt->LoadDeferredData();
|
||||
const TDataStd_DataMapOfStringByte& aMap = anAtt->GetBytesContainer();
|
||||
TDataStd_DataMapIteratorOfDataMapOfStringByte itr(aMap);
|
||||
@ -3758,7 +3758,7 @@ static Standard_Integer DDataStd_GetNDBytes (Draw_Interpretor& di,
|
||||
{
|
||||
const TCollection_ExtendedString& aKey(itr.Key());
|
||||
Standard_Byte aValue = itr.Value();
|
||||
std::cout << "Key = " << aKey << " Value = " <<aValue<<std::endl;
|
||||
std::cout << "Key = " << aKey << " Value = " <<aValue<<'\n';
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@ -3788,8 +3788,8 @@ static Standard_Integer DDataStd_GetNDByte (Draw_Interpretor& di,
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::cout <<std::endl;
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
|
||||
std::cout <<'\n';
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';
|
||||
anAtt->LoadDeferredData();
|
||||
TCollection_ExtendedString aKey(arg[3], Standard_True);
|
||||
if (!anAtt->HasByte(aKey))
|
||||
@ -3799,7 +3799,7 @@ static Standard_Integer DDataStd_GetNDByte (Draw_Interpretor& di,
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << "Key = " << arg[3] << " Value = " <<anAtt->GetByte(aKey)<< std::endl;
|
||||
std::cout << "Key = " << arg[3] << " Value = " <<anAtt->GetByte(aKey)<< '\n';
|
||||
if(nb == 5)
|
||||
Draw::Set(arg[4], anAtt->GetByte(aKey));
|
||||
return 0;
|
||||
@ -3875,24 +3875,24 @@ static Standard_Integer DDataStd_GetNDIntArrays (Draw_Interpretor& di,
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::cout <<std::endl;
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
|
||||
std::cout <<'\n';
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';
|
||||
anAtt->LoadDeferredData();
|
||||
const TDataStd_DataMapOfStringHArray1OfInteger& aMap = anAtt->GetArraysOfIntegersContainer();
|
||||
TDataStd_DataMapIteratorOfDataMapOfStringHArray1OfInteger itr(aMap);
|
||||
for (; itr.More(); itr.Next()){
|
||||
const TCollection_ExtendedString& aKey(itr.Key());
|
||||
std::cout << "Key = " << aKey<< std::endl;
|
||||
std::cout << "Key = " << aKey<< '\n';
|
||||
const Handle(TColStd_HArray1OfInteger)& anArrValue = itr.Value();
|
||||
if(!anArrValue.IsNull()) {
|
||||
Standard_Integer lower = anArrValue->Lower();
|
||||
Standard_Integer upper = anArrValue->Upper();
|
||||
for(Standard_Integer i = lower; i<=upper;i++) {
|
||||
Standard_Integer aValue = anArrValue->Value(i);
|
||||
std::cout << "\tValue("<<i<<") = " <<aValue<<std::endl;
|
||||
std::cout << "\tValue("<<i<<") = " <<aValue<<'\n';
|
||||
}
|
||||
} else
|
||||
std::cout << "\tthe specified array is Null "<<std::endl;
|
||||
std::cout << "\tthe specified array is Null "<<'\n';
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@ -3922,8 +3922,8 @@ static Standard_Integer DDataStd_GetNDIntArray (Draw_Interpretor& di,
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::cout <<std::endl;
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
|
||||
std::cout <<'\n';
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';
|
||||
anAtt->LoadDeferredData();
|
||||
TCollection_ExtendedString aKey(arg[3], Standard_True);
|
||||
if (!anAtt->HasArrayOfIntegers(aKey))
|
||||
@ -3933,7 +3933,7 @@ static Standard_Integer DDataStd_GetNDIntArray (Draw_Interpretor& di,
|
||||
}
|
||||
else
|
||||
{
|
||||
std::cout << "Key = " << arg[3] <<std::endl;
|
||||
std::cout << "Key = " << arg[3] <<'\n';
|
||||
|
||||
Handle(TColStd_HArray1OfInteger) anArrValue = anAtt->GetArrayOfIntegers(aKey);
|
||||
if(!anArrValue.IsNull()) {
|
||||
@ -3941,10 +3941,10 @@ static Standard_Integer DDataStd_GetNDIntArray (Draw_Interpretor& di,
|
||||
Standard_Integer upper = anArrValue->Upper();
|
||||
for(Standard_Integer i = lower; i<=upper;i++) {
|
||||
Standard_Integer aValue = anArrValue->Value(i);
|
||||
std::cout << "\tValue("<<i<<") = " <<aValue<<std::endl;
|
||||
std::cout << "\tValue("<<i<<") = " <<aValue<<'\n';
|
||||
}
|
||||
} else
|
||||
std::cout << "\tthe specified array is Null or not found"<<std::endl;
|
||||
std::cout << "\tthe specified array is Null or not found"<<'\n';
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@ -4018,24 +4018,24 @@ static Standard_Integer DDataStd_GetNDRealArrays (Draw_Interpretor& di,
|
||||
return 1;
|
||||
}
|
||||
|
||||
std::cout <<std::endl;
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
|
||||
std::cout <<'\n';
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';
|
||||
anAtt->LoadDeferredData();
|
||||
const TDataStd_DataMapOfStringHArray1OfReal& aMap = anAtt->GetArraysOfRealsContainer();
|
||||
TDataStd_DataMapIteratorOfDataMapOfStringHArray1OfReal itr(aMap);
|
||||
for (; itr.More(); itr.Next()){
|
||||
const TCollection_ExtendedString& aKey(itr.Key());
|
||||
std::cout << "Key = " << aKey << std::endl;
|
||||
std::cout << "Key = " << aKey << '\n';
|
||||
const Handle(TColStd_HArray1OfReal)& anArrValue = itr.Value();
|
||||
if(!anArrValue.IsNull()) {
|
||||
Standard_Integer lower = anArrValue->Lower();
|
||||
Standard_Integer upper = anArrValue->Upper();
|
||||
for(Standard_Integer i = lower; i<=upper;i++) {
|
||||
Standard_Real aValue = anArrValue->Value(i);
|
||||
std::cout << "\tValue("<<i<<") = " <<aValue<<std::endl;
|
||||
std::cout << "\tValue("<<i<<") = " <<aValue<<'\n';
|
||||
}
|
||||
} else
|
||||
std::cout << "\tthe specified array is Null "<<std::endl;
|
||||
std::cout << "\tthe specified array is Null "<<'\n';
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
@ -4063,15 +4063,15 @@ static Standard_Integer DDataStd_GetNDRealArray (Draw_Interpretor& di,
|
||||
di << "NamedData attribute is not found or not set" << "\n";
|
||||
return 1;}
|
||||
|
||||
std::cout <<std::endl;
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<std::endl;
|
||||
std::cout <<'\n';
|
||||
std::cout <<"NamedData attribute at Label = " << arg[2] <<'\n';
|
||||
anAtt->LoadDeferredData();
|
||||
TCollection_ExtendedString aKey(arg[3], Standard_True);
|
||||
if(!anAtt->HasArrayOfReals(aKey)) {
|
||||
std::cout << "There is no data specified by Key = "<< arg[3] << std::endl;
|
||||
std::cout << "There is no data specified by Key = "<< arg[3] << '\n';
|
||||
return 1;
|
||||
} else {
|
||||
std::cout << "Key = " << arg[3] <<std::endl;
|
||||
std::cout << "Key = " << arg[3] <<'\n';
|
||||
|
||||
Handle(TColStd_HArray1OfReal) anArrValue = anAtt->GetArrayOfReals(aKey);
|
||||
if(!anArrValue.IsNull()) {
|
||||
@ -4079,10 +4079,10 @@ static Standard_Integer DDataStd_GetNDRealArray (Draw_Interpretor& di,
|
||||
Standard_Integer upper = anArrValue->Upper();
|
||||
for(Standard_Integer i = lower; i<=upper;i++) {
|
||||
Standard_Real aValue = anArrValue->Value(i);
|
||||
std::cout << "\tValue("<<i<<") = " <<aValue<<std::endl;
|
||||
std::cout << "\tValue("<<i<<") = " <<aValue<<'\n';
|
||||
}
|
||||
} else
|
||||
std::cout << "\tthe specified array is Null or not found"<<std::endl;
|
||||
std::cout << "\tthe specified array is Null or not found"<<'\n';
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
@ -353,7 +353,7 @@ void DDataStd_DrawPresentation::DrawBuild ()
|
||||
DDataStd_DrawDriver::Set(DD);
|
||||
}
|
||||
Handle(Draw_Drawable3D) D3D = DD->Drawable(Label());
|
||||
if (D3D.IsNull()) std::cout<< "DDataStd_DrawPresentation::DrawBuild : null drawable" << std::endl;
|
||||
if (D3D.IsNull()) std::cout<< "DDataStd_DrawPresentation::DrawBuild : null drawable" << '\n';
|
||||
myDrawable = D3D;
|
||||
}
|
||||
|
||||
@ -380,7 +380,7 @@ void DDataStd_DrawPresentation::DrawDisplay (const TDF_Label& L,
|
||||
return;
|
||||
}
|
||||
}
|
||||
std::cout<< "DDataStd_DrawPresentation::DrawDisplay : null Label" << std::endl;
|
||||
std::cout<< "DDataStd_DrawPresentation::DrawDisplay : null Label" << '\n';
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
@ -401,7 +401,7 @@ void DDataStd_DrawPresentation::DrawErase (const TDF_Label& L,
|
||||
return;
|
||||
}
|
||||
}
|
||||
std::cout<< "DDataStd_DrawPresentation::DrawErase : null Label" << std::endl;
|
||||
std::cout<< "DDataStd_DrawPresentation::DrawErase : null Label" << '\n';
|
||||
}
|
||||
|
||||
|
||||
|
@ -59,7 +59,7 @@ DDataStd_TreeBrowser::DDataStd_TreeBrowser(const TDF_Label& aLabel)
|
||||
//=======================================================================
|
||||
|
||||
void DDataStd_TreeBrowser::DrawOn(Draw_Display& /*dis*/) const
|
||||
{ std::cout<<"DDataStd_TreeBrowser"<<std::endl; }
|
||||
{ std::cout<<"DDataStd_TreeBrowser"<<'\n'; }
|
||||
|
||||
|
||||
//=======================================================================
|
||||
@ -78,7 +78,7 @@ Handle(Draw_Drawable3D) DDataStd_TreeBrowser::Copy() const
|
||||
|
||||
void DDataStd_TreeBrowser::Dump(Standard_OStream& S) const
|
||||
{
|
||||
S<<"DDataStd_TreeBrowser on a label: "<<std::endl;
|
||||
S<<"DDataStd_TreeBrowser on a label: "<<'\n';
|
||||
S<<myRoot;
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,7 @@ Standard_Boolean DDocStd::GetDocument (Standard_CString& Name,
|
||||
{
|
||||
Handle(DDocStd_DrawDocument) DD = Handle(DDocStd_DrawDocument)::DownCast (Draw::GetExisting (Name));
|
||||
if (DD.IsNull()) {
|
||||
if (Complain) std::cout << Name << " is not a Document" << std::endl;
|
||||
if (Complain) std::cout << Name << " is not a Document" << '\n';
|
||||
return Standard_False;
|
||||
}
|
||||
Handle(TDocStd_Document) STDDOC = DD->GetDocument();
|
||||
@ -76,7 +76,7 @@ Standard_Boolean DDocStd::GetDocument (Standard_CString& Name,
|
||||
DOC = STDDOC;
|
||||
return Standard_True;
|
||||
}
|
||||
if (Complain) std::cout << Name << " is not a CAF Document" << std::endl;
|
||||
if (Complain) std::cout << Name << " is not a CAF Document" << '\n';
|
||||
return Standard_False;
|
||||
}
|
||||
|
||||
@ -93,7 +93,7 @@ Standard_Boolean DDocStd::Find (const Handle(TDocStd_Document)& D,
|
||||
{
|
||||
Label.Nullify();
|
||||
TDF_Tool::Label(D->GetData(),Entry,Label,Standard_False);
|
||||
if (Label.IsNull() && Complain) std::cout<<"No label for entry "<<Entry<<std::endl;
|
||||
if (Label.IsNull() && Complain) std::cout<<"No label for entry "<<Entry<<'\n';
|
||||
return !Label.IsNull();
|
||||
}
|
||||
|
||||
@ -111,7 +111,7 @@ Standard_Boolean DDocStd::Find (const Handle(TDocStd_Document)& D,
|
||||
TDF_Label L;
|
||||
if (Find(D,Entry,L,Complain)) {
|
||||
if (L.FindAttribute(ID,A)) return Standard_True;
|
||||
if (Complain) std::cout <<"attribute not found for entry : "<< Entry <<std::endl;
|
||||
if (Complain) std::cout <<"attribute not found for entry : "<< Entry <<'\n';
|
||||
}
|
||||
return Standard_False;
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ void DDocStd_DrawDocument::Dump (Standard_OStream& S) const
|
||||
DDF_Data::Dump(S);
|
||||
}
|
||||
else {
|
||||
S << myDocument->DynamicType()->Name() << " is not a CAF document" << std::endl;
|
||||
S << myDocument->DynamicType()->Name() << " is not a CAF document" << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -187,7 +187,7 @@ static Handle(TFunction_Driver) GetDriver(const TCollection_AsciiString& name)
|
||||
else if(name == "Section")
|
||||
aDrv = new DNaming_BooleanOperationDriver();
|
||||
else
|
||||
std::cout << "the specified driver is not supported" <<std::endl;
|
||||
std::cout << "the specified driver is not supported" <<'\n';
|
||||
return aDrv;
|
||||
}
|
||||
//=======================================================================
|
||||
@ -504,7 +504,7 @@ static Standard_Integer DNaming_SolveFlatFrom (Draw_Interpretor& /*theDI*/,
|
||||
Handle(TFunction_Function) aFun;
|
||||
funLabel.FindAttribute(TFunction_Function::GetID(), aFun);
|
||||
if(aFun.IsNull()) {
|
||||
std::cout << "DNaming_SolveFlatFrom:: Null function is found!" << std::endl;
|
||||
std::cout << "DNaming_SolveFlatFrom:: Null function is found!" << '\n';
|
||||
continue;
|
||||
}
|
||||
else {
|
||||
@ -521,7 +521,7 @@ static Standard_Integer DNaming_SolveFlatFrom (Draw_Interpretor& /*theDI*/,
|
||||
std::cout <<"DNaming_SolveFlatFrom : function from label " << entry << " is recomputed" << std::endl;
|
||||
#endif
|
||||
} catch (EXCEPTION) {
|
||||
std::cout <<"DNaming_SolveFlatFrom : Exception computing function at label " << entry << std::endl;
|
||||
std::cout <<"DNaming_SolveFlatFrom : Exception computing function at label " << entry << '\n';
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -576,15 +576,15 @@ static Standard_Integer DNaming_CheckLogBook (Draw_Interpretor& /*theDI*/,
|
||||
if (!DDocStd::GetDocument(aDocS, aDoc)) return 1;
|
||||
Handle(TFunction_Logbook) logbook = TFunction_Logbook::Set(aDoc->Main());
|
||||
if(logbook->IsEmpty())
|
||||
std::cout << "DNaming_CheckLogBook : is empty" <<std::endl;
|
||||
std::cout << "DNaming_CheckLogBook : is empty" <<'\n';
|
||||
else {
|
||||
const TDF_LabelMap& aMap = logbook->GetValid();
|
||||
TDF_MapIteratorOfLabelMap it(aMap);
|
||||
TCollection_AsciiString entry;
|
||||
std::cout << "DNaming_CheckLogBook : LogBook current state:" <<std::endl;
|
||||
std::cout << "DNaming_CheckLogBook : LogBook current state:" <<'\n';
|
||||
for (;it.More();it.Next()) {
|
||||
TDF_Tool::Entry(it.Key(), entry);
|
||||
std::cout << entry <<std::endl;
|
||||
std::cout << entry <<'\n';
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
@ -688,7 +688,7 @@ static Standard_Integer DNaming_AttachShape (Draw_Interpretor& di,
|
||||
return 1;
|
||||
}
|
||||
catch (Standard_Failure const&) {
|
||||
std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<std::endl;
|
||||
std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<'\n';
|
||||
}
|
||||
|
||||
if(!aCont.IsNull()) {
|
||||
@ -756,7 +756,7 @@ static Standard_Integer DNaming_XAttachShape (Draw_Interpretor& di,
|
||||
Handle(TNaming_NamedShape) aCont = DNaming::GetObjectValue(aContext);
|
||||
|
||||
if(aCont.IsNull() || aCont->IsEmpty())
|
||||
std::cout <<"Wrong Context ..." <<std::endl;
|
||||
std::cout <<"Wrong Context ..." <<'\n';
|
||||
else {
|
||||
TopoDS_Shape aCONTEXT = aCont->Get();
|
||||
try{
|
||||
@ -765,7 +765,7 @@ static Standard_Integer DNaming_XAttachShape (Draw_Interpretor& di,
|
||||
return 1;
|
||||
}
|
||||
catch (Standard_Failure const&) {
|
||||
std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<std::endl;
|
||||
std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<'\n';
|
||||
}
|
||||
|
||||
TDF_Reference::Set(aFun->Label().FindChild(FUNCTION_ARGUMENTS_LABEL).FindChild(ATTACH_ARG),
|
||||
@ -1546,7 +1546,7 @@ static Standard_Integer DNaming_PntOffset (Draw_Interpretor& theDI,
|
||||
if(isDX || isDY || isDZ)
|
||||
DDF::ReturnLabel(theDI, objLabel);
|
||||
else
|
||||
std::cout <<"DNaming_PntOffset : Nothing changed" << std::endl;
|
||||
std::cout <<"DNaming_PntOffset : Nothing changed" << '\n';
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@ -1691,7 +1691,7 @@ static Standard_Boolean MakeSelection (const Handle(TDataStd_UAttribute)& Obj,
|
||||
if(!aSelector.Select(Selection, aContext, Geometry, KeepOrientation))
|
||||
return Standard_False;
|
||||
}catch (...) {
|
||||
std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<std::endl;
|
||||
std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<'\n';
|
||||
}
|
||||
|
||||
if(!aNS.IsNull()) {
|
||||
@ -1749,7 +1749,7 @@ static Standard_Boolean MakeXSelection (const Handle(TDataStd_UAttribute)& Obj,
|
||||
if(!aSelector.Select(Selection, aContext, Geometry, KeepOrientation))
|
||||
return Standard_False;
|
||||
}catch (...) {
|
||||
std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<std::endl;
|
||||
std::cout << "EXCEPTION: SELECTION_IMPOSSIBLE" <<'\n';
|
||||
}
|
||||
|
||||
if(!aNS.IsNull()) {
|
||||
@ -1923,7 +1923,7 @@ static Standard_Integer DNaming_TestSingle (Draw_Interpretor& theDI,
|
||||
}
|
||||
catch (Standard_Failure const& anException) {
|
||||
std::cout << "%%%INFO:Error: ::TestSingleSelection failed :";
|
||||
std::cout << anException.GetMessageString() << std::endl;
|
||||
std::cout << anException.GetMessageString() << '\n';
|
||||
}
|
||||
catch(...) {
|
||||
std::cout << "%%%INFO:Error: ::TestSingleSelection selection failed : unknown exception type";
|
||||
@ -1960,9 +1960,9 @@ static Standard_Integer DNaming_TestSingle (Draw_Interpretor& theDI,
|
||||
}
|
||||
if(aResult.Length()) {
|
||||
if(aResult.Search("Warning") == -1)
|
||||
std::cout << "Failed units: " << aResult << " at " << entry << std::endl;
|
||||
std::cout << "Failed units: " << aResult << " at " << entry << '\n';
|
||||
else
|
||||
std::cout << aResult << " at " << entry << std::endl;
|
||||
std::cout << aResult << " at " << entry << '\n';
|
||||
TDataStd_Name::Set(auxObj->Label(), aResult);
|
||||
}
|
||||
}
|
||||
@ -1976,7 +1976,7 @@ static Standard_Integer DNaming_TestSingle (Draw_Interpretor& theDI,
|
||||
B.Generated(it1.Value());
|
||||
TCollection_AsciiString entry;
|
||||
TDF_Tool::Entry(aLabel, entry);
|
||||
std::cout << "\t" <<entry <<std::endl;
|
||||
std::cout << "\t" <<entry <<'\n';
|
||||
}
|
||||
}
|
||||
if(!FirstAuxObj.IsNull())
|
||||
@ -2057,7 +2057,7 @@ static Standard_Integer DNaming_Multiple (Draw_Interpretor& theDI,
|
||||
}
|
||||
catch (Standard_Failure const& anException) {
|
||||
std::cout << "%%%INFO:Error: ::TestSingleSelection failed :";
|
||||
std::cout << anException.GetMessageString() << std::endl;
|
||||
std::cout << anException.GetMessageString() << '\n';
|
||||
}
|
||||
catch(...) {
|
||||
std::cout << "%%%INFO:Error: ::TestSingleSelection selection failed : unknown exception type";
|
||||
@ -2093,7 +2093,7 @@ static Standard_Integer DNaming_Multiple (Draw_Interpretor& theDI,
|
||||
aFailedList.Append(aCurShape);
|
||||
}
|
||||
if(aResult.Length())
|
||||
std::cout << "Failed units: " << aResult << std::endl;
|
||||
std::cout << "Failed units: " << aResult << '\n';
|
||||
}
|
||||
|
||||
if(aFailedList.Extent()) {
|
||||
|
@ -184,7 +184,7 @@ static Standard_Integer DNaming_SolveSelection (Draw_Interpretor& di, Standard_I
|
||||
|
||||
Handle(TNaming_Naming) naming;
|
||||
if (!L.FindAttribute(TNaming_Naming::GetID(),naming)) {
|
||||
std::cout <<"DNaming__SolveSelection : not a selection" << std::endl;
|
||||
std::cout <<"DNaming__SolveSelection : not a selection" << '\n';
|
||||
return 1;
|
||||
}
|
||||
TDF_LabelMap aValidMap;
|
||||
|
@ -124,15 +124,15 @@ Standard_Integer DNaming_SelectionDriver::Execute(Handle(TFunction_Logbook)& the
|
||||
theLog->SetValid(aRLabel);
|
||||
Handle(TNaming_NamedShape) aNS;
|
||||
if(!aRLabel.FindAttribute(TNaming_NamedShape::GetID(),aNS)) {
|
||||
std::cout <<"%%%WARNING: DNaming_SelectionDriver::NamedShape is not found"<<std::endl;
|
||||
std::cout <<"%%%WARNING: DNaming_SelectionDriver::NamedShape is not found"<<'\n';
|
||||
}
|
||||
else {
|
||||
if(aNS.IsNull()) {
|
||||
std::cout << "%%%WARNING: DNaming_SelectionDriver::NamedShape is NULL" <<std::endl;
|
||||
std::cout << "%%%WARNING: DNaming_SelectionDriver::NamedShape is NULL" <<'\n';
|
||||
} else
|
||||
if(aNS->IsEmpty()) {
|
||||
std::cout << "%%%WARNING: DNaming_SelectionDriver::NamedShape is EMPTY on Label = ";
|
||||
aNS->Label().EntryDump(std::cout); std::cout << std::endl;
|
||||
aNS->Label().EntryDump(std::cout); std::cout << '\n';
|
||||
|
||||
} else {
|
||||
#ifdef OCCT_DEBUG
|
||||
@ -159,7 +159,7 @@ Standard_Integer DNaming_SelectionDriver::Execute(Handle(TFunction_Logbook)& the
|
||||
}
|
||||
else {
|
||||
aFunction->SetFailure(NOTDONE);
|
||||
std::cout << "%%%WARNING: DNaming_SelectionDriver::Execute: Selection is Not solved !!!" << std::endl;
|
||||
std::cout << "%%%WARNING: DNaming_SelectionDriver::Execute: Selection is Not solved !!!" << '\n';
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
@ -385,7 +385,7 @@ void Draw_Appli(int argc, char** argv, const FDraw_InitAppli Draw_InitAppli)
|
||||
#endif
|
||||
else
|
||||
{
|
||||
std::cout << "DRAW is running in batch mode" << std::endl;
|
||||
std::cout << "DRAW is running in batch mode" << '\n';
|
||||
theCommands.Init();
|
||||
Tcl_Init(theCommands.Interp());
|
||||
}
|
||||
@ -397,7 +397,7 @@ void Draw_Appli(int argc, char** argv, const FDraw_InitAppli Draw_InitAppli)
|
||||
{
|
||||
if (!dout.DefineColor (i, ColorNames[i]))
|
||||
{
|
||||
std::cout <<"Could not allocate default color " << ColorNames[i] << std::endl;
|
||||
std::cout <<"Could not allocate default color " << ColorNames[i] << '\n';
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -479,8 +479,8 @@ void Draw_Appli(int argc, char** argv, const FDraw_InitAppli Draw_InitAppli)
|
||||
#ifdef _WIN32
|
||||
ReadInitFile ("ddefault");
|
||||
#else
|
||||
std::cout << " the CASROOT variable is mandatory to Run OpenCascade "<< std::endl;
|
||||
std::cout << "No default file" << std::endl;
|
||||
std::cout << " the CASROOT variable is mandatory to Run OpenCascade "<< '\n';
|
||||
std::cout << "No default file" << '\n';
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@ -621,7 +621,7 @@ Standard_Boolean Draw_Interprete(const char* com)
|
||||
{
|
||||
Message_PrinterOStream::SetConsoleTextColor (&std::cout, Message_ConsoleColor_Red, true);
|
||||
}
|
||||
std::cout << theCommands.Result() << std::endl;
|
||||
std::cout << theCommands.Result() << '\n';
|
||||
if (c > 0 && theCommands.ToColorize())
|
||||
{
|
||||
Message_PrinterOStream::SetConsoleTextColor (&std::cout, Message_ConsoleColor_Default, false);
|
||||
@ -656,7 +656,7 @@ Standard_Integer Tcl_AppInit (Tcl_Interp *)
|
||||
Standard_Integer Draw_Call (char *c)
|
||||
{
|
||||
Standard_Integer r = theCommands.Eval(c);
|
||||
std::cout << theCommands.Result() << std::endl;
|
||||
std::cout << theCommands.Result() << '\n';
|
||||
return r;
|
||||
}
|
||||
|
||||
@ -679,7 +679,7 @@ void Draw::Load (Draw_Interpretor& theDI,
|
||||
if (!aPluginResource->Find (theKey, aPluginLibrary))
|
||||
{
|
||||
Message::SendFail() << "could not find the resource:" << theKey;
|
||||
Standard_SStream aMsg; aMsg << "Could not find the resource:" << theKey << std::endl;
|
||||
Standard_SStream aMsg; aMsg << "Could not find the resource:" << theKey << '\n';
|
||||
throw Draw_Failure (aMsg.str().c_str());
|
||||
}
|
||||
|
||||
|
@ -574,7 +574,7 @@ static unsigned int __stdcall CpuFunc (void * /*param*/)
|
||||
#else
|
||||
static void cpulimitSignalHandler (int)
|
||||
{
|
||||
std::cout << "Process killed by CPU limit (" << CPU_LIMIT << " sec)" << std::endl;
|
||||
std::cout << "Process killed by CPU limit (" << CPU_LIMIT << " sec)" << '\n';
|
||||
exit(2);
|
||||
}
|
||||
static void *CpuFunc(void* /*threadarg*/)
|
||||
@ -585,7 +585,7 @@ static void *CpuFunc(void* /*threadarg*/)
|
||||
sleep (5);
|
||||
anElapCurrent = clock_t(aTimer.ElapsedTime());
|
||||
if (CPU_LIMIT >0 && (anElapCurrent) >= CPU_LIMIT) {
|
||||
std::cout << "Process killed by elapsed limit (" << CPU_LIMIT << " sec)" << std::endl;
|
||||
std::cout << "Process killed by elapsed limit (" << CPU_LIMIT << " sec)" << '\n';
|
||||
exit(2);
|
||||
}
|
||||
}
|
||||
@ -827,7 +827,7 @@ static int dlocale (Draw_Interpretor& di, Standard_Integer n, const char** argv)
|
||||
if (result)
|
||||
di << result;
|
||||
else
|
||||
std::cout << "Error: unsupported locale specification: " << locale << std::endl;
|
||||
std::cout << "Error: unsupported locale specification: " << locale << '\n';
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -1271,7 +1271,7 @@ static int dputs (Draw_Interpretor& theDI,
|
||||
*aStream << theArgVec[anArgIter];
|
||||
if (!isNoNewline)
|
||||
{
|
||||
*aStream << std::endl;
|
||||
*aStream << '\n';
|
||||
}
|
||||
|
||||
if (toIntense || aColor != Message_ConsoleColor_Default)
|
||||
|
@ -32,7 +32,7 @@ Standard_EXPORT const char* Draw_Eval (const char *theCommandStr)
|
||||
OCC_CATCH_SIGNALS
|
||||
Draw_Interpretor& aCommands = Draw::GetInterpretor();
|
||||
aCommands.Eval (theCommandStr);
|
||||
std::cout << aCommands.Result() << std::endl;
|
||||
std::cout << aCommands.Result() << '\n';
|
||||
return aCommands.Result();
|
||||
}
|
||||
catch (Standard_Failure const& anException)
|
||||
|
@ -64,11 +64,11 @@ static Standard_Integer ViewId(const Standard_CString a)
|
||||
{
|
||||
Standard_Integer id = Draw::Atoi(a);
|
||||
if ((id < 0) || (id >= MAXVIEW)) {
|
||||
std::cout << "Incorrect view-id, must be in 0.."<<MAXVIEW-1<<std::endl;
|
||||
std::cout << "Incorrect view-id, must be in 0.."<<MAXVIEW-1<<'\n';
|
||||
return -1;
|
||||
}
|
||||
if (!dout.HasView(id)) {
|
||||
std::cout <<"View "<<id<<" does not exist."<<std::endl;
|
||||
std::cout <<"View "<<id<<" does not exist."<<'\n';
|
||||
return -1;
|
||||
}
|
||||
return id;
|
||||
|
@ -57,7 +57,7 @@ namespace {
|
||||
{
|
||||
for (int i=0; i < argc; i++)
|
||||
os << argv[i] << " ";
|
||||
os << std::endl;
|
||||
os << '\n';
|
||||
}
|
||||
|
||||
void flush_standard_streams ()
|
||||
@ -216,7 +216,7 @@ static Standard_Integer CommandCmd (ClientData theClientData, Tcl_Interp* interp
|
||||
const char* aResultStr = Tcl_GetStringResult (interp);
|
||||
if (aResultStr != 0 && aResultStr[0] != '\0' )
|
||||
{
|
||||
std::cout << aResultStr << std::endl;
|
||||
std::cout << aResultStr << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -114,7 +114,7 @@ static Standard_Integer PrintMessenger (Draw_Interpretor& theDI, Standard_Intege
|
||||
Standard_SStream aSStream;
|
||||
aMessenger->DumpJson (aSStream);
|
||||
theDI << aSStream;
|
||||
std::cout << aSStream.str() << std::endl;
|
||||
std::cout << aSStream.str() << '\n';
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
@ -230,7 +230,7 @@ static Standard_Integer erase(Draw_Interpretor& di, Standard_Integer n, const ch
|
||||
Handle(Draw_Drawable3D) D = Draw::Get(a[i]);
|
||||
if (D.IsNull()) {
|
||||
if ((a[i][0] == '.') && (a[i][1] == '\0'))
|
||||
std::cout << "Missed !!!" << std::endl;
|
||||
std::cout << "Missed !!!" << '\n';
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@ -714,7 +714,7 @@ void Draw::Set(const Standard_CString name,
|
||||
Handle(Draw_Drawable3D) anOldD(reinterpret_cast<Draw_Drawable3D*>(aCD));
|
||||
if (!anOldD.IsNull()) {
|
||||
if (Draw::Drawables().Contains(anOldD) && anOldD->Protected()) {
|
||||
std::cout << "variable is protected" << std::endl;
|
||||
std::cout << "variable is protected" << '\n';
|
||||
return;
|
||||
}
|
||||
anOldD.Nullify();
|
||||
@ -776,7 +776,7 @@ Handle(Draw_Drawable3D) Draw::getDrawable (Standard_CString& theName,
|
||||
return Handle(Draw_Drawable3D)();
|
||||
}
|
||||
|
||||
std::cout << "Pick an object" << std::endl;
|
||||
std::cout << "Pick an object" << '\n';
|
||||
Handle(Draw_Drawable3D) aDrawable;
|
||||
dout.Select (p_id, p_X, p_Y, p_b);
|
||||
dout.Pick (p_id, p_X, p_Y, 5, aDrawable, 0);
|
||||
@ -889,7 +889,7 @@ static Standard_Real ParseValue (char*& theName)
|
||||
x = Parse (theName);
|
||||
if (*theName != ')')
|
||||
{
|
||||
std::cout << "Mismatched parenthesis" << std::endl;
|
||||
std::cout << "Mismatched parenthesis" << '\n';
|
||||
}
|
||||
++theName;
|
||||
break;
|
||||
@ -949,7 +949,7 @@ static Standard_Real ParseValue (char*& theName)
|
||||
}
|
||||
if (pc > 0)
|
||||
{
|
||||
std::cout << "Unclosed parenthesis"<< std::endl;
|
||||
std::cout << "Unclosed parenthesis"<< '\n';
|
||||
x = 0;
|
||||
}
|
||||
else
|
||||
@ -989,7 +989,7 @@ static Standard_Real ParseValue (char*& theName)
|
||||
}
|
||||
if (aCommands.Eval (theName) != 0)
|
||||
{
|
||||
std::cout << "Call of function " << theName << " failed" << std::endl;
|
||||
std::cout << "Call of function " << theName << " failed" << '\n';
|
||||
x = 0;
|
||||
}
|
||||
else
|
||||
|
@ -1325,7 +1325,7 @@ Standard_Boolean Init_Appli()
|
||||
}
|
||||
catch (Standard_Failure const& theFail)
|
||||
{
|
||||
std::cout << "Cannot open display (" << theFail << "). Interpret commands in batch mode." << std::endl;
|
||||
std::cout << "Cannot open display (" << theFail << "). Interpret commands in batch mode." << '\n';
|
||||
return Standard_False;
|
||||
}
|
||||
}
|
||||
|
@ -127,9 +127,9 @@ void DrawTrSurf_Point::Dump (Standard_OStream& S) const
|
||||
std::streamsize prec = S.precision(15);
|
||||
#endif
|
||||
if (is3D)
|
||||
S << "Point : " << myPoint.X() << ", " << myPoint.Y() << ", " << myPoint.Z() <<std::endl;
|
||||
S << "Point : " << myPoint.X() << ", " << myPoint.Y() << ", " << myPoint.Z() <<'\n';
|
||||
else
|
||||
S << "Point 2d : " << myPoint.X() << ", " << myPoint.Y() <<std::endl;
|
||||
S << "Point 2d : " << myPoint.X() << ", " << myPoint.Y() <<'\n';
|
||||
#if !defined(_MSC_VER) && !defined(__sgi) && !defined(IRIX)
|
||||
S.setf(F);
|
||||
#else
|
||||
|
@ -2017,7 +2017,7 @@ void yyFlexLexer::yyensure_buffer_stack(void)
|
||||
|
||||
void yyFlexLexer::LexerError( const char* msg )
|
||||
{
|
||||
std::cerr << msg << std::endl;
|
||||
std::cerr << msg << '\n';
|
||||
exit( YY_EXIT_FAILURE );
|
||||
}
|
||||
|
||||
|
@ -254,32 +254,32 @@ Standard_Boolean FEmTool_ProfileMatrix::IsInProfile(const Standard_Integer i,
|
||||
void FEmTool_ProfileMatrix::OutM() const
|
||||
{
|
||||
Standard_Integer i, j;
|
||||
std::cout<<"Matrix A"<<std::endl;
|
||||
std::cout<<"Matrix A"<<'\n';
|
||||
for(i = 1; i <= RowNumber(); i++) {
|
||||
for(j = 1; j < i - profile(1, i); j++)
|
||||
std::cout<<"0 ";
|
||||
|
||||
for(j = profile(2, i) - profile(1, i); j <= profile(2, i); j++)
|
||||
std::cout<<ProfileMatrix->Value(j)<<" ";
|
||||
std::cout<<std::endl;
|
||||
std::cout<<'\n';
|
||||
}
|
||||
|
||||
std::cout<<"NextCoeff"<<std::endl;
|
||||
std::cout<<"NextCoeff"<<'\n';
|
||||
for(i = 1; i <= profile(2, RowNumber()); i++)
|
||||
std::cout<<NextCoeff->Value(i)<<" ";
|
||||
std::cout<<std::endl;
|
||||
std::cout<<'\n';
|
||||
}
|
||||
|
||||
void FEmTool_ProfileMatrix::OutS() const
|
||||
{
|
||||
Standard_Integer i, j;
|
||||
std::cout<<"Matrix S"<<std::endl;
|
||||
std::cout<<"Matrix S"<<'\n';
|
||||
for(i = 1; i <= RowNumber(); i++) {
|
||||
for(j = 1; j < i - profile(1, i); j++)
|
||||
std::cout<<"0 ";
|
||||
|
||||
for(j = profile(2, i) - profile(1, i); j <= profile(2, i); j++)
|
||||
std::cout<<SMatrix->Value(j)<<" ";
|
||||
std::cout<<std::endl;
|
||||
std::cout<<'\n';
|
||||
}
|
||||
}
|
||||
|
@ -530,31 +530,31 @@ void FairCurve_Batten::Dump(Standard_OStream& o) const
|
||||
// ==================================================================
|
||||
{
|
||||
|
||||
o << " Batten |"; o.width(7); o<< "Old | New" << std::endl;
|
||||
o << " P1 X |"; o.width(7); o<< OldP1.X() << " | " << NewP1.X() << std::endl;
|
||||
o << " Y |"; o.width(7); o<< OldP1.Y() << " | " << NewP1.Y() << std::endl;
|
||||
o << " P2 X |"; o.width(7); o<< OldP2.X() << " | " << NewP2.X() << std::endl;
|
||||
o << " Y |"; o.width(7); o<< OldP2.Y() << " | " << NewP2.Y() << std::endl;
|
||||
o << " Angle1 |"; o.width(7); o<< OldAngle1 << " | " << NewAngle1 << std::endl;
|
||||
o << " Angle2 |"; o.width(7); o<< OldAngle2 << " | " << NewAngle2 << std::endl;
|
||||
o << " Height |"; o.width(7); o<< OldHeight << " | " << NewHeight << std::endl;
|
||||
o << " Slope |"; o.width(7); o<< OldSlope << " | " << NewSlope << std::endl;
|
||||
o << " SlidingFactor |"; o.width(7); o<< OldSlidingFactor << " | " << NewSlidingFactor << std::endl;
|
||||
o << " FreeSliding |"; o.width(7); o<< OldFreeSliding << " | " << NewFreeSliding << std::endl;
|
||||
o << " ConstrOrder1 |"; o.width(7); o<< OldConstraintOrder1 << " | " << NewConstraintOrder1 << std::endl;
|
||||
o << " ConstrOrder2 |" ; o.width(7); o<< OldConstraintOrder2 << " | " << NewConstraintOrder2 << std::endl;
|
||||
o << " Batten |"; o.width(7); o<< "Old | New" << '\n';
|
||||
o << " P1 X |"; o.width(7); o<< OldP1.X() << " | " << NewP1.X() << '\n';
|
||||
o << " Y |"; o.width(7); o<< OldP1.Y() << " | " << NewP1.Y() << '\n';
|
||||
o << " P2 X |"; o.width(7); o<< OldP2.X() << " | " << NewP2.X() << '\n';
|
||||
o << " Y |"; o.width(7); o<< OldP2.Y() << " | " << NewP2.Y() << '\n';
|
||||
o << " Angle1 |"; o.width(7); o<< OldAngle1 << " | " << NewAngle1 << '\n';
|
||||
o << " Angle2 |"; o.width(7); o<< OldAngle2 << " | " << NewAngle2 << '\n';
|
||||
o << " Height |"; o.width(7); o<< OldHeight << " | " << NewHeight << '\n';
|
||||
o << " Slope |"; o.width(7); o<< OldSlope << " | " << NewSlope << '\n';
|
||||
o << " SlidingFactor |"; o.width(7); o<< OldSlidingFactor << " | " << NewSlidingFactor << '\n';
|
||||
o << " FreeSliding |"; o.width(7); o<< OldFreeSliding << " | " << NewFreeSliding << '\n';
|
||||
o << " ConstrOrder1 |"; o.width(7); o<< OldConstraintOrder1 << " | " << NewConstraintOrder1 << '\n';
|
||||
o << " ConstrOrder2 |" ; o.width(7); o<< OldConstraintOrder2 << " | " << NewConstraintOrder2 << '\n';
|
||||
switch (myCode) {
|
||||
case FairCurve_OK :
|
||||
o << "AnalysisCode : Ok" << std::endl;
|
||||
o << "AnalysisCode : Ok" << '\n';
|
||||
break;
|
||||
case FairCurve_NotConverged :
|
||||
o << "AnalysisCode : NotConverged" << std::endl;
|
||||
o << "AnalysisCode : NotConverged" << '\n';
|
||||
break;
|
||||
case FairCurve_InfiniteSliding :
|
||||
o << "AnalysisCode : InfiniteSliding" << std::endl;
|
||||
o << "AnalysisCode : InfiniteSliding" << '\n';
|
||||
break;
|
||||
case FairCurve_NullHeight :
|
||||
o << "AnalysisCode : NullHeight" << std::endl;
|
||||
o << "AnalysisCode : NullHeight" << '\n';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -430,34 +430,34 @@ void FairCurve_MinimalVariation::Dump(Standard_OStream& o) const
|
||||
//======================================================================================
|
||||
{
|
||||
|
||||
o << " MVCurve |"; o.width(7); o<< "Old | New" << std::endl;
|
||||
o << " P1 X |"; o.width(7); o<< OldP1.X() << " | " << NewP1.X() << std::endl;
|
||||
o << " Y |"; o.width(7); o<< OldP1.Y() << " | " << NewP1.Y() << std::endl;
|
||||
o << " P2 X |"; o.width(7); o<< OldP2.X() << " | " << NewP2.X() << std::endl;
|
||||
o << " Y |"; o.width(7); o<< OldP2.Y() << " | " << NewP2.Y() << std::endl;
|
||||
o << " Angle1 |"; o.width(7); o<< OldAngle1 << " | " << NewAngle1 << std::endl;
|
||||
o << " Angle2 |"; o.width(7); o<< OldAngle2 << " | " << NewAngle2 << std::endl;
|
||||
o << " Curvature1 |"; o.width(7); o<< OldCurvature1 << " | " << NewCurvature1 << std::endl;
|
||||
o << " Curvature2 |"; o.width(7); o<< OldCurvature2 << " | " << NewCurvature2 << std::endl;
|
||||
o << " Height |"; o.width(7); o<< OldHeight << " | " << NewHeight << std::endl;
|
||||
o << " Slope |"; o.width(7); o<< OldSlope << " | " << NewSlope << std::endl;
|
||||
o << " PhysicalRatio |"; o.width(7); o<< OldPhysicalRatio << " | " << NewPhysicalRatio << std::endl;
|
||||
o << " SlidingFactor |"; o.width(7); o<< OldSlidingFactor << " | " << NewSlidingFactor << std::endl;
|
||||
o << " FreeSliding |"; o.width(7); o<< OldFreeSliding << " | " << NewFreeSliding << std::endl;
|
||||
o << " ConstrOrder1 |"; o.width(7); o<< OldConstraintOrder1 << " | " << NewConstraintOrder1 << std::endl;
|
||||
o << " ConstrOrder2 |"; o.width(7); o<< OldConstraintOrder2 << " | " << NewConstraintOrder2 << std::endl;
|
||||
o << " MVCurve |"; o.width(7); o<< "Old | New" << '\n';
|
||||
o << " P1 X |"; o.width(7); o<< OldP1.X() << " | " << NewP1.X() << '\n';
|
||||
o << " Y |"; o.width(7); o<< OldP1.Y() << " | " << NewP1.Y() << '\n';
|
||||
o << " P2 X |"; o.width(7); o<< OldP2.X() << " | " << NewP2.X() << '\n';
|
||||
o << " Y |"; o.width(7); o<< OldP2.Y() << " | " << NewP2.Y() << '\n';
|
||||
o << " Angle1 |"; o.width(7); o<< OldAngle1 << " | " << NewAngle1 << '\n';
|
||||
o << " Angle2 |"; o.width(7); o<< OldAngle2 << " | " << NewAngle2 << '\n';
|
||||
o << " Curvature1 |"; o.width(7); o<< OldCurvature1 << " | " << NewCurvature1 << '\n';
|
||||
o << " Curvature2 |"; o.width(7); o<< OldCurvature2 << " | " << NewCurvature2 << '\n';
|
||||
o << " Height |"; o.width(7); o<< OldHeight << " | " << NewHeight << '\n';
|
||||
o << " Slope |"; o.width(7); o<< OldSlope << " | " << NewSlope << '\n';
|
||||
o << " PhysicalRatio |"; o.width(7); o<< OldPhysicalRatio << " | " << NewPhysicalRatio << '\n';
|
||||
o << " SlidingFactor |"; o.width(7); o<< OldSlidingFactor << " | " << NewSlidingFactor << '\n';
|
||||
o << " FreeSliding |"; o.width(7); o<< OldFreeSliding << " | " << NewFreeSliding << '\n';
|
||||
o << " ConstrOrder1 |"; o.width(7); o<< OldConstraintOrder1 << " | " << NewConstraintOrder1 << '\n';
|
||||
o << " ConstrOrder2 |"; o.width(7); o<< OldConstraintOrder2 << " | " << NewConstraintOrder2 << '\n';
|
||||
switch (myCode) {
|
||||
case FairCurve_OK :
|
||||
o << "AnalysisCode : Ok" << std::endl;
|
||||
o << "AnalysisCode : Ok" << '\n';
|
||||
break;
|
||||
case FairCurve_NotConverged :
|
||||
o << "AnalysisCode : NotConverged" << std::endl;
|
||||
o << "AnalysisCode : NotConverged" << '\n';
|
||||
break;
|
||||
case FairCurve_InfiniteSliding :
|
||||
o << "AnalysisCode : InfiniteSliding" << std::endl;
|
||||
o << "AnalysisCode : InfiniteSliding" << '\n';
|
||||
break;
|
||||
case FairCurve_NullHeight :
|
||||
o << "AnalysisCode : NullHeight" << std::endl;
|
||||
o << "AnalysisCode : NullHeight" << '\n';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -186,7 +186,7 @@ void Geom2dConvert_ApproxCurve::Approximate(const Handle(Adaptor2d_Curve2d)& the
|
||||
|
||||
void Geom2dConvert_ApproxCurve::Dump(Standard_OStream& o) const
|
||||
{
|
||||
o << "******* Dump of ApproxCurve *******" << std::endl;
|
||||
o << "******* Error " << MaxError() << std::endl;
|
||||
o << "******* Dump of ApproxCurve *******" << '\n';
|
||||
o << "******* Error " << MaxError() << '\n';
|
||||
}
|
||||
|
||||
|
@ -1593,74 +1593,74 @@ const HatchGen_Domain& Geom2dHatch_Hatcher::Domain (const Standard_Integer IndH,
|
||||
|
||||
void Geom2dHatch_Hatcher::Dump () const
|
||||
{
|
||||
std::cout << std::endl ;
|
||||
std::cout << "========================================================" << std::endl ;
|
||||
std::cout << "=== Dump of the hatcher ================================" << std::endl ;
|
||||
std::cout << "========================================================" << std::endl ;
|
||||
std::cout << std::endl ;
|
||||
std::cout << '\n' ;
|
||||
std::cout << "========================================================" << '\n' ;
|
||||
std::cout << "=== Dump of the hatcher ================================" << '\n' ;
|
||||
std::cout << "========================================================" << '\n' ;
|
||||
std::cout << '\n' ;
|
||||
|
||||
std::cout << "The points are "
|
||||
<< (myKeepPoints ? " " : "not ")
|
||||
<< "considered."
|
||||
<< std::endl ;
|
||||
<< '\n' ;
|
||||
std::cout << "The segments are "
|
||||
<< (myKeepSegments ? " " : "not ")
|
||||
<< "considered."
|
||||
<< std::endl ;
|
||||
std::cout << "2D Confusion tolerance : " << myConfusion2d << std::endl ;
|
||||
std::cout << "3D Confusion tolerance : " << myConfusion3d << std::endl ;
|
||||
<< '\n' ;
|
||||
std::cout << "2D Confusion tolerance : " << myConfusion2d << '\n' ;
|
||||
std::cout << "3D Confusion tolerance : " << myConfusion3d << '\n' ;
|
||||
|
||||
std::cout << myNbHatchings
|
||||
<< " hatching"
|
||||
<< ((myNbHatchings == 1) ? "" : "s")
|
||||
<< std::endl ;
|
||||
<< '\n' ;
|
||||
std::cout << myNbElements
|
||||
<< " element"
|
||||
<< ((myNbElements == 1) ? "" : "s")
|
||||
<< std::endl ;
|
||||
<< '\n' ;
|
||||
|
||||
std::cout << std::endl ;
|
||||
std::cout << "========================================================" << std::endl ;
|
||||
std::cout << "=== Hatchings ==========================================" << std::endl ;
|
||||
std::cout << "========================================================" << std::endl ;
|
||||
std::cout << std::endl ;
|
||||
std::cout << '\n' ;
|
||||
std::cout << "========================================================" << '\n' ;
|
||||
std::cout << "=== Hatchings ==========================================" << '\n' ;
|
||||
std::cout << "========================================================" << '\n' ;
|
||||
std::cout << '\n' ;
|
||||
|
||||
for (Standard_Integer IndH = 1 ; IndH <= myNbHatchings ; IndH++) {
|
||||
std::cout << "Hatching # " << IndH ;
|
||||
if (!myHatchings.IsBound (IndH)) {
|
||||
std::cout << " is not bound" << std::endl ;
|
||||
std::cout << " is not bound" << '\n' ;
|
||||
} else {
|
||||
const Geom2dHatch_Hatching& Hatching = myHatchings.Find (IndH) ;
|
||||
Standard_Integer NbPnt = Hatching.NbPoints() ;
|
||||
std::cout << " contains " << NbPnt << " restriction points :" << std::endl ;
|
||||
std::cout << " contains " << NbPnt << " restriction points :" << '\n' ;
|
||||
for (Standard_Integer IPnt = 1 ; IPnt <= NbPnt ; IPnt++) {
|
||||
const HatchGen_PointOnHatching& PntH = Hatching.Point (IPnt) ;
|
||||
PntH.Dump (IPnt) ;
|
||||
}
|
||||
std::cout << "----------------------------------------------" << std::endl ;
|
||||
std::cout << "----------------------------------------------" << '\n' ;
|
||||
}
|
||||
}
|
||||
|
||||
std::cout << std::endl ;
|
||||
std::cout << "========================================================" << std::endl ;
|
||||
std::cout << "=== Elements ===========================================" << std::endl ;
|
||||
std::cout << "========================================================" << std::endl ;
|
||||
std::cout << std::endl ;
|
||||
std::cout << '\n' ;
|
||||
std::cout << "========================================================" << '\n' ;
|
||||
std::cout << "=== Elements ===========================================" << '\n' ;
|
||||
std::cout << "========================================================" << '\n' ;
|
||||
std::cout << '\n' ;
|
||||
|
||||
for (Standard_Integer IndE = 1 ; IndE <= myNbElements ; IndE++) {
|
||||
std::cout << "Element # " << IndE ;
|
||||
if (!myElements.IsBound (IndE)) {
|
||||
std::cout << " is not bound" << std::endl ;
|
||||
std::cout << " is not bound" << '\n' ;
|
||||
} else {
|
||||
const Geom2dHatch_Element& Element = myElements.Find (IndE) ;
|
||||
switch (Element.Orientation()) {
|
||||
case TopAbs_FORWARD : std::cout << " is FORWARD" << std::endl ; break ;
|
||||
case TopAbs_REVERSED : std::cout << " is REVERSED" << std::endl ; break ;
|
||||
case TopAbs_INTERNAL : std::cout << " is INTERNAL" << std::endl ; break ;
|
||||
case TopAbs_EXTERNAL : std::cout << " is EXTERNAL" << std::endl ; break ;
|
||||
case TopAbs_FORWARD : std::cout << " is FORWARD" << '\n' ; break ;
|
||||
case TopAbs_REVERSED : std::cout << " is REVERSED" << '\n' ; break ;
|
||||
case TopAbs_INTERNAL : std::cout << " is INTERNAL" << '\n' ; break ;
|
||||
case TopAbs_EXTERNAL : std::cout << " is EXTERNAL" << '\n' ; break ;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
std::cout << std::endl ;
|
||||
std::cout << '\n' ;
|
||||
}
|
||||
|
@ -184,7 +184,7 @@ void GeomConvert_ApproxCurve::Approximate(
|
||||
|
||||
void GeomConvert_ApproxCurve::Dump(Standard_OStream& o) const
|
||||
{
|
||||
o << "******* Dump of ApproxCurve *******" << std::endl;
|
||||
o << "*******Error " << MaxError() << std::endl;
|
||||
o << "******* Dump of ApproxCurve *******" << '\n';
|
||||
o << "*******Error " << MaxError() << '\n';
|
||||
}
|
||||
|
||||
|
@ -430,12 +430,12 @@ void GeomConvert_ApproxSurface::Approximate(const Handle(Adaptor3d_Surface)& the
|
||||
|
||||
void GeomConvert_ApproxSurface::Dump(Standard_OStream& o) const
|
||||
{
|
||||
o<<std::endl;
|
||||
if (!myHasResult) { o<<"No result"<<std::endl; }
|
||||
o<<'\n';
|
||||
if (!myHasResult) { o<<"No result"<<'\n'; }
|
||||
else {
|
||||
o<<"Result max error :"<< myMaxError <<std::endl;
|
||||
o<<"Result max error :"<< myMaxError <<'\n';
|
||||
}
|
||||
o<<std::endl;
|
||||
o<<'\n';
|
||||
}
|
||||
|
||||
|
||||
|
@ -1335,8 +1335,8 @@ void GeomFill_ConstrainedFilling::CheckTgteField(const Standard_Integer I)
|
||||
if(Abs(alpha) > maxang) maxang = Abs(alpha);
|
||||
}
|
||||
}
|
||||
std::cout<<"KAlgo angle max sur bord "<<I<<" : "<<maxang<<std::endl;
|
||||
if(caplisse) std::cout<<"sur bord "<<I<<" le champ tangent change de cote!"<<std::endl;
|
||||
std::cout<<"KAlgo angle max sur bord "<<I<<" : "<<maxang<<'\n';
|
||||
if(caplisse) std::cout<<"sur bord "<<I<<" le champ tangent change de cote!"<<'\n';
|
||||
}
|
||||
|
||||
|
||||
@ -1381,11 +1381,11 @@ void GeomFill_ConstrainedFilling::CheckApprox(const Standard_Integer I)
|
||||
}
|
||||
if(papp.Distance(pbound) > maxdist) maxdist = papp.Distance(pbound);
|
||||
}
|
||||
std::cout<<"Controle approx/contrainte sur bord "<<I<<" : "<<std::endl;
|
||||
std::cout<<"Distance max : "<<maxdist<<std::endl;
|
||||
std::cout<<"Controle approx/contrainte sur bord "<<I<<" : "<<'\n';
|
||||
std::cout<<"Distance max : "<<maxdist<<'\n';
|
||||
if (donor) {
|
||||
maxang = maxang*180./M_PI;
|
||||
std::cout<<"Angle max : "<<maxang<<" deg"<<std::endl;
|
||||
std::cout<<"Angle max : "<<maxang<<" deg"<<'\n';
|
||||
}
|
||||
}
|
||||
|
||||
@ -1461,11 +1461,11 @@ void GeomFill_ConstrainedFilling::CheckResult(const Standard_Integer I)
|
||||
vv += dvv;
|
||||
ww += dww;
|
||||
}
|
||||
std::cout<<"Controle resultat/contrainte sur bord "<<I<<" : "<<std::endl;
|
||||
std::cout<<"Distance max : "<<maxdist<<std::endl;
|
||||
std::cout<<"Controle resultat/contrainte sur bord "<<I<<" : "<<'\n';
|
||||
std::cout<<"Distance max : "<<maxdist<<'\n';
|
||||
if (donor) {
|
||||
Standard_Real angdeg = maxang*180./M_PI;
|
||||
std::cout<<"Angle max : "<<angdeg<<" deg"<<std::endl;
|
||||
std::cout<<"Angle max : "<<angdeg<<" deg"<<'\n';
|
||||
}
|
||||
#ifdef DRAW
|
||||
Standard_Boolean scale = maxang>1.e-10;
|
||||
|
@ -255,7 +255,7 @@ GeomFill_FunctionGuide::GeomFill_FunctionGuide
|
||||
|
||||
gp_XYZ& Q = Pc.ChangeCoord(), DQ(0, 0, 0); //Q
|
||||
if (!isconst) {
|
||||
std::cout << "Not implemented" << std::endl;
|
||||
std::cout << "Not implemented" << '\n';
|
||||
}
|
||||
|
||||
|
||||
|
@ -841,7 +841,7 @@ void GeomTools_Curve2dSet::Read(Standard_IStream& IS, const Message_ProgressRan
|
||||
char buffer[255];
|
||||
IS >> buffer;
|
||||
if (strcmp(buffer,"Curve2ds")) {
|
||||
std::cout << "Not a Curve2d table"<<std::endl;
|
||||
std::cout << "Not a Curve2d table"<<'\n';
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -862,7 +862,7 @@ void GeomTools_CurveSet::Read(Standard_IStream& IS, const Message_ProgressRange
|
||||
char buffer[255];
|
||||
IS >> buffer;
|
||||
if (strcmp(buffer,"Curves")) {
|
||||
std::cout << "Not a Curve table"<<std::endl;
|
||||
std::cout << "Not a Curve table"<<'\n';
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -42,7 +42,7 @@ const char* GeomTools_Dump (void* theHandlePtr)
|
||||
if (!GS.IsNull()) {
|
||||
std::cout << "\n\n";
|
||||
GeomTools_SurfaceSet::PrintSurface (GS,std::cout);
|
||||
std::cout << std::endl;
|
||||
std::cout << '\n';
|
||||
return "Found Geom_Surface, see dump in std::cout";
|
||||
}
|
||||
|
||||
@ -50,7 +50,7 @@ const char* GeomTools_Dump (void* theHandlePtr)
|
||||
if (!GC.IsNull()) {
|
||||
std::cout << "\n\n";
|
||||
GeomTools_CurveSet::PrintCurve(GC,std::cout);
|
||||
std::cout << std::endl;
|
||||
std::cout << '\n';
|
||||
return "Found Geom_Curve, see dump in std::cout";
|
||||
}
|
||||
|
||||
@ -58,7 +58,7 @@ const char* GeomTools_Dump (void* theHandlePtr)
|
||||
if (!GC2d.IsNull()) {
|
||||
std::cout << "\n\n";
|
||||
GeomTools_Curve2dSet::PrintCurve2d(GC2d,std::cout);
|
||||
std::cout << std::endl;
|
||||
std::cout << '\n';
|
||||
return "Found Geom2d_Curve, see dump in std::cout";
|
||||
}
|
||||
|
||||
|
@ -1051,7 +1051,7 @@ void GeomTools_SurfaceSet::Read(Standard_IStream& IS, const Message_ProgressRan
|
||||
char buffer[255];
|
||||
IS >> buffer;
|
||||
if (strcmp(buffer,"Surfaces")) {
|
||||
std::cout << "Not a surface table"<<std::endl;
|
||||
std::cout << "Not a surface table"<<'\n';
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ void GeomTools_UndefinedTypeHandler::PrintCurve(const Handle(Geom_Curve)& /*C*/,
|
||||
if (!compact)
|
||||
OS << "****** UNKNOWN CURVE TYPE ******\n";
|
||||
else
|
||||
std::cout << "****** UNKNOWN CURVE TYPE ******" << std::endl;
|
||||
std::cout << "****** UNKNOWN CURVE TYPE ******" << '\n';
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
@ -65,7 +65,7 @@ void GeomTools_UndefinedTypeHandler::PrintCurve2d(const Handle(Geom2d_Curve)& /*
|
||||
if (!compact)
|
||||
OS << "****** UNKNOWN CURVE2d TYPE ******\n";
|
||||
else
|
||||
std::cout << "****** UNKNOWN CURVE2d TYPE ******" << std::endl;
|
||||
std::cout << "****** UNKNOWN CURVE2d TYPE ******" << '\n';
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
@ -92,7 +92,7 @@ void GeomTools_UndefinedTypeHandler::PrintSurface(const Handle(Geom_Surface)& /*
|
||||
if (!compact)
|
||||
OS << "****** UNKNOWN SURFACE TYPE ******\n";
|
||||
else
|
||||
std::cout << "****** UNKNOWN SURFACE TYPE ******" << std::endl;
|
||||
std::cout << "****** UNKNOWN SURFACE TYPE ******" << '\n';
|
||||
}
|
||||
|
||||
Standard_IStream& GeomTools_UndefinedTypeHandler::ReadSurface(const Standard_Integer /*ctype*/,
|
||||
|
@ -153,7 +153,7 @@ static Standard_Integer proj (Draw_Interpretor& di, Standard_Integer n, const ch
|
||||
|
||||
if(proj.NbPoints() == 0)
|
||||
{
|
||||
std::cout << "No project point was found." << std::endl;
|
||||
std::cout << "No project point was found." << '\n';
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
@ -1645,7 +1645,7 @@ static Standard_Integer intersection (Draw_Interpretor& di,
|
||||
Standard_Integer Compt = 1;
|
||||
|
||||
if(nblines >= 1)
|
||||
std::cout << " Lines: " << std::endl;
|
||||
std::cout << " Lines: " << '\n';
|
||||
|
||||
for (i = 1; i <= nblines; i++, Compt++)
|
||||
{
|
||||
@ -1657,7 +1657,7 @@ static Standard_Integer intersection (Draw_Interpretor& di,
|
||||
}
|
||||
|
||||
if(nbpoints >= 1)
|
||||
std::cout << " Points: " << std::endl;
|
||||
std::cout << " Points: " << '\n';
|
||||
|
||||
const Standard_Integer imax = nblines+nbpoints;
|
||||
|
||||
|
@ -35,7 +35,7 @@ static Standard_Integer xdistcc(Draw_Interpretor& , Standard_Integer n, const ch
|
||||
{
|
||||
if (n < 5)
|
||||
{
|
||||
std::cout<<" Use xdistcc c1 c2 t1 t2 nbp"<<std::endl;
|
||||
std::cout<<" Use xdistcc c1 c2 t1 t2 nbp"<<'\n';
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -49,14 +49,14 @@ static Standard_Integer xdistcc(Draw_Interpretor& , Standard_Integer n, const ch
|
||||
aC1=DrawTrSurf::GetCurve(a[1]);
|
||||
if (aC1.IsNull())
|
||||
{
|
||||
std::cout<<a[1]<<" is null curve"<<std::endl;
|
||||
std::cout<<a[1]<<" is null curve"<<'\n';
|
||||
return 0;
|
||||
}
|
||||
|
||||
aC2=DrawTrSurf::GetCurve(a[2]);
|
||||
if (aC2.IsNull())
|
||||
{
|
||||
std::cout<<a[2]<<" is null curve"<<std::endl;
|
||||
std::cout<<a[2]<<" is null curve"<<'\n';
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -98,8 +98,8 @@ static Standard_Integer xdistcc(Draw_Interpretor& , Standard_Integer n, const ch
|
||||
dout << aMr;
|
||||
}
|
||||
|
||||
std::cout << "Max distance = " << aMaxDist << std::endl;
|
||||
std::cout << "Param = " << aMaxParam << std::endl;
|
||||
std::cout << "Max distance = " << aMaxDist << '\n';
|
||||
std::cout << "Param = " << aMaxParam << '\n';
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -112,7 +112,7 @@ static Standard_Integer xdistc2dc2dss(Draw_Interpretor& , Standard_Integer n, co
|
||||
{
|
||||
if (n < 7)
|
||||
{
|
||||
std::cout<<" Use xdistc2dc2dss c2d_1 c2d_2 s1 s2 t1 t2 nbp"<<std::endl;
|
||||
std::cout<<" Use xdistc2dc2dss c2d_1 c2d_2 s1 s2 t1 t2 nbp"<<'\n';
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -128,28 +128,28 @@ static Standard_Integer xdistc2dc2dss(Draw_Interpretor& , Standard_Integer n, co
|
||||
aC2d1=DrawTrSurf::GetCurve2d(a[1]);
|
||||
if (aC2d1.IsNull())
|
||||
{
|
||||
std::cout<<a[1]<<" is null 2dcurve"<<std::endl;
|
||||
std::cout<<a[1]<<" is null 2dcurve"<<'\n';
|
||||
return 0;
|
||||
}
|
||||
|
||||
aC2d2=DrawTrSurf::GetCurve2d(a[2]);
|
||||
if (aC2d2.IsNull())
|
||||
{
|
||||
std::cout<<a[2]<<" is null 2dcurve"<<std::endl;
|
||||
std::cout<<a[2]<<" is null 2dcurve"<<'\n';
|
||||
return 0;
|
||||
}
|
||||
|
||||
aS1=DrawTrSurf::GetSurface(a[3]);
|
||||
if (aS1.IsNull())
|
||||
{
|
||||
std::cout<<a[3]<<" is null surface"<<std::endl;
|
||||
std::cout<<a[3]<<" is null surface"<<'\n';
|
||||
return 0;
|
||||
}
|
||||
|
||||
aS2=DrawTrSurf::GetSurface(a[4]);
|
||||
if (aS2.IsNull())
|
||||
{
|
||||
std::cout<<a[4]<<" is null surface"<<std::endl;
|
||||
std::cout<<a[4]<<" is null surface"<<'\n';
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -194,8 +194,8 @@ static Standard_Integer xdistc2dc2dss(Draw_Interpretor& , Standard_Integer n, co
|
||||
dout << aMr;
|
||||
}
|
||||
|
||||
std::cout << "Max distance = " << aMaxDist << std::endl;
|
||||
std::cout << "Param = " << aMaxParam << std::endl;
|
||||
std::cout << "Max distance = " << aMaxDist << '\n';
|
||||
std::cout << "Param = " << aMaxParam << '\n';
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -208,7 +208,7 @@ static Standard_Integer xdistcc2ds(Draw_Interpretor& , Standard_Integer n, const
|
||||
{
|
||||
if (n < 6)
|
||||
{
|
||||
std::cout<<" Use xdistcc2ds c c2d s t1 t2 nbp"<<std::endl;
|
||||
std::cout<<" Use xdistcc2ds c c2d s t1 t2 nbp"<<'\n';
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -225,21 +225,21 @@ static Standard_Integer xdistcc2ds(Draw_Interpretor& , Standard_Integer n, const
|
||||
aC=DrawTrSurf::GetCurve(a[1]);
|
||||
if (aC.IsNull())
|
||||
{
|
||||
std::cout<<a[1]<<" is null curve"<<std::endl;
|
||||
std::cout<<a[1]<<" is null curve"<<'\n';
|
||||
return 0;
|
||||
}
|
||||
|
||||
aC2d=DrawTrSurf::GetCurve2d(a[2]);
|
||||
if (aC2d.IsNull())
|
||||
{
|
||||
std::cout<<a[2]<<" is null 2dcurve"<<std::endl;
|
||||
std::cout<<a[2]<<" is null 2dcurve"<<'\n';
|
||||
return 0;
|
||||
}
|
||||
|
||||
aS=DrawTrSurf::GetSurface(a[3]);
|
||||
if (aS.IsNull())
|
||||
{
|
||||
std::cout<<a[3]<<" is null surface"<<std::endl;
|
||||
std::cout<<a[3]<<" is null surface"<<'\n';
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -283,8 +283,8 @@ static Standard_Integer xdistcc2ds(Draw_Interpretor& , Standard_Integer n, const
|
||||
dout << aMr;
|
||||
}
|
||||
|
||||
std::cout << "Max distance = " << aMaxDist << std::endl;
|
||||
std::cout << "Param = " << aMaxParam << std::endl;
|
||||
std::cout << "Max distance = " << aMaxDist << '\n';
|
||||
std::cout << "Param = " << aMaxParam << '\n';
|
||||
|
||||
return 0;
|
||||
}
|
||||
@ -296,10 +296,10 @@ static Standard_Integer xdistcc2ds(Draw_Interpretor& , Standard_Integer n, const
|
||||
static Standard_Integer xdistcs(Draw_Interpretor& di, Standard_Integer n, const char** a)
|
||||
{
|
||||
if (n < 6) {
|
||||
std::cout << "Use: xdistcs curve surface t1 t2 nbpoints [tol [warn_tol]]" << std::endl;
|
||||
std::cout << "Measures distances from curve to surface by nbpoints probing points on a curve" << std::endl;
|
||||
std::cout << "Error will be reported for points where distance is greater than tol" << std::endl;
|
||||
std::cout << "Warning will be reported for points where distance is greater than warn_tol" << std::endl;
|
||||
std::cout << "Use: xdistcs curve surface t1 t2 nbpoints [tol [warn_tol]]" << '\n';
|
||||
std::cout << "Measures distances from curve to surface by nbpoints probing points on a curve" << '\n';
|
||||
std::cout << "Error will be reported for points where distance is greater than tol" << '\n';
|
||||
std::cout << "Warning will be reported for points where distance is greater than warn_tol" << '\n';
|
||||
return 0;
|
||||
}
|
||||
//
|
||||
|
@ -1564,7 +1564,7 @@ static Standard_Integer compBsplSur (Draw_Interpretor& , Standard_Integer n, con
|
||||
if(aDist > Precision::SquareConfusion())
|
||||
{
|
||||
Standard_Real aD = sqrt(aDist);
|
||||
std::cout<<"Surfaces differ for U,V,Dist: "<<aU<<" "<<aV<<" "<<aD<<std::endl;
|
||||
std::cout<<"Surfaces differ for U,V,Dist: "<<aU<<" "<<aV<<" "<<aD<<'\n';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
2
src/Graphic3d/Graphic3d_ShaderProgram.cxx
Executable file → Normal file
2
src/Graphic3d/Graphic3d_ShaderProgram.cxx
Executable file → Normal file
@ -66,7 +66,7 @@ const TCollection_AsciiString& Graphic3d_ShaderProgram::ShadersFolder()
|
||||
if (!aDir.Exists()
|
||||
|| !aProgramFile.Exists())
|
||||
{
|
||||
std::cerr << "Standard GLSL programs are not found in: " << THE_SHADERS_FOLDER.ToCString() << std::endl;
|
||||
std::cerr << "Standard GLSL programs are not found in: " << THE_SHADERS_FOLDER.ToCString() << '\n';
|
||||
throw Standard_Failure("CSF_ShadersDirectory or CASROOT is set incorrectly");
|
||||
}
|
||||
}
|
||||
|
@ -635,7 +635,7 @@ void HLRAlgo_PolyInternalData::Dump () const
|
||||
std::cout << std::setw(20)<< Nod1RValues.Point.X();
|
||||
std::cout << std::setw(20)<< Nod1RValues.Point.Y();
|
||||
std::cout << std::setw(20)<< Nod1RValues.Point.Z();
|
||||
std::cout << std::endl;
|
||||
std::cout << '\n';
|
||||
}
|
||||
|
||||
for (i = 1; i <= myNbPISeg; i++) {
|
||||
@ -647,7 +647,7 @@ void HLRAlgo_PolyInternalData::Dump () const
|
||||
std::cout << std::setw(6) << aSegIndices->NxtSg2;
|
||||
std::cout << std::setw(6) << aSegIndices->Conex1;
|
||||
std::cout << std::setw(6) << aSegIndices->Conex2;
|
||||
std::cout << std::endl;
|
||||
std::cout << '\n';
|
||||
}
|
||||
|
||||
for (i = 1; i <= myNbTData; i++) {
|
||||
@ -656,7 +656,7 @@ void HLRAlgo_PolyInternalData::Dump () const
|
||||
std::cout << std::setw(6) << aTriangle.Node1;
|
||||
std::cout << std::setw(6) << aTriangle.Node2;
|
||||
std::cout << std::setw(6) << aTriangle.Node3;
|
||||
std::cout << std::endl;
|
||||
std::cout << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -114,8 +114,8 @@ void HLRBRep_InternalAlgo::Update ()
|
||||
if (myDebug)
|
||||
{
|
||||
std::cout << "An exception was caught when preparing the Shape " << i;
|
||||
std::cout << " and computing its OutLines " << std::endl;
|
||||
std::cout << anException << std::endl;
|
||||
std::cout << " and computing its OutLines " << '\n';
|
||||
std::cout << anException << '\n';
|
||||
}
|
||||
DS[i-1] = new HLRBRep_Data(0,0,0);
|
||||
dv = 0;
|
||||
@ -555,7 +555,7 @@ void HLRBRep_InternalAlgo::PartialHide ()
|
||||
Standard_Integer i,n = myShapes.Length();
|
||||
|
||||
if (myDebug)
|
||||
std::cout << " Partial hiding" << std::endl << std::endl;
|
||||
std::cout << " Partial hiding" << '\n' << '\n';
|
||||
|
||||
for (i = 1; i <= n; i++)
|
||||
Hide(i);
|
||||
@ -575,7 +575,7 @@ void HLRBRep_InternalAlgo::Hide ()
|
||||
Standard_Integer i,j,n = myShapes.Length();
|
||||
|
||||
if (myDebug)
|
||||
std::cout << " Total hiding" << std::endl;
|
||||
std::cout << " Total hiding" << '\n';
|
||||
|
||||
for (i = 1; i <= n; i++)
|
||||
Hide(i);
|
||||
@ -601,7 +601,7 @@ void HLRBRep_InternalAlgo::Hide (const Standard_Integer I)
|
||||
"HLRBRep_InternalAlgo::Hide : unknown Shape");
|
||||
|
||||
if (myDebug)
|
||||
std::cout << " hiding the shape " << I << " by itself" << std::endl;
|
||||
std::cout << " hiding the shape " << I << " by itself" << '\n';
|
||||
|
||||
Select(I);
|
||||
InitEdgeStatus();
|
||||
@ -643,7 +643,7 @@ void HLRBRep_InternalAlgo::Hide (const Standard_Integer I,
|
||||
((MinMaxShBJ->Max[7] - MinMaxShBI->Min[7]) & 0x80008000) == 0) {
|
||||
if (myDebug) {
|
||||
std::cout << " hiding the shape " << I;
|
||||
std::cout << " by the shape : " << J << std::endl;
|
||||
std::cout << " by the shape : " << J << '\n';
|
||||
}
|
||||
SelectEdge(I);
|
||||
SelectFace(J);
|
||||
@ -716,17 +716,17 @@ void HLRBRep_InternalAlgo::HideSelected (const Standard_Integer I,
|
||||
|
||||
if (myDebug)
|
||||
{
|
||||
std::cout << std::endl;
|
||||
std::cout << "Vertices : " << std::setw(5) << myDS->NbVertices() << std::endl;
|
||||
std::cout << '\n';
|
||||
std::cout << "Vertices : " << std::setw(5) << myDS->NbVertices() << '\n';
|
||||
std::cout << "Edges : " << std::setw(5) << myDS->NbEdges() << " , ";
|
||||
std::cout << "Selected : " << std::setw(5) << nbSelEdges << " , ";
|
||||
std::cout << "Visible : " << std::setw(5) << nbVisEdges << std::endl;
|
||||
std::cout << "Visible : " << std::setw(5) << nbVisEdges << '\n';
|
||||
std::cout << "Faces : " << std::setw(5) << myDS->NbFaces() << " , ";
|
||||
std::cout << "Selected : " << std::setw(5) << nbSelFaces << " , ";
|
||||
std::cout << "Simple : " << std::setw(5) << nbFSimp << std::endl;
|
||||
std::cout << "Simple : " << std::setw(5) << nbFSimp << '\n';
|
||||
if (SideFace)
|
||||
std::cout << "Side : " << std::setw(5) << nbFSide << " , ";
|
||||
std::cout << "Cachantes : " << std::setw(5) << nbCache << std::endl << std::endl;
|
||||
std::cout << "Cachantes : " << std::setw(5) << nbCache << '\n' << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
@ -753,7 +753,7 @@ void HLRBRep_InternalAlgo::HideSelected (const Standard_Integer I,
|
||||
else {
|
||||
if (myDebug && HLRBRep_InternalAlgo_TRACE) {
|
||||
j++;
|
||||
std::cout << " OwnHiding " << j << " of face : " << f << std::endl;
|
||||
std::cout << " OwnHiding " << j << " of face : " << f << '\n';
|
||||
}
|
||||
}
|
||||
Cache.OwnHiding(f);
|
||||
|
@ -61,7 +61,7 @@ Handle(Draw_Drawable3D) HLRTest_OutLiner::Copy () const
|
||||
|
||||
void HLRTest_OutLiner::Dump (Standard_OStream& S) const
|
||||
{
|
||||
S << "This is an outliner" << std::endl;
|
||||
S << "This is an outliner" << '\n';
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
@ -67,7 +67,7 @@ void HLRTest_Projector::Dump (Standard_OStream& S) const
|
||||
}
|
||||
S << "\n";
|
||||
}
|
||||
S << std::endl;
|
||||
S << '\n';
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
|
@ -76,19 +76,19 @@ void HatchGen_Domain::Dump (const Standard_Integer Index) const
|
||||
} else {
|
||||
std::cout << "======" ;
|
||||
}
|
||||
std::cout << "=============================" << std::endl ;
|
||||
std::cout << "=============================" << '\n' ;
|
||||
|
||||
if (myHasFirstPoint) {
|
||||
myFirstPoint.Dump (1) ;
|
||||
} else {
|
||||
std::cout << " Has not a first point" << std::endl ;
|
||||
std::cout << " Has not a first point" << '\n' ;
|
||||
}
|
||||
|
||||
if (myHasSecondPoint) {
|
||||
mySecondPoint.Dump (2) ;
|
||||
} else {
|
||||
std::cout << " Has not a second point" << std::endl ;
|
||||
std::cout << " Has not a second point" << '\n' ;
|
||||
}
|
||||
|
||||
std::cout << "==============================================" << std::endl ;
|
||||
std::cout << "==============================================" << '\n' ;
|
||||
}
|
||||
|
@ -206,10 +206,10 @@ void HatchGen_PointOnElement::Dump (const Standard_Integer Index) const
|
||||
} else {
|
||||
std::cout << "------" ;
|
||||
}
|
||||
std::cout << "---------------" << std::endl ;
|
||||
std::cout << "---------------" << '\n' ;
|
||||
|
||||
std::cout << " Index of the element = " << myIndex << std::endl ;
|
||||
std::cout << " Parameter on element = " << myParam << std::endl ;
|
||||
std::cout << " Index of the element = " << myIndex << '\n' ;
|
||||
std::cout << " Parameter on element = " << myParam << '\n' ;
|
||||
std::cout << " Position on element = " ;
|
||||
switch (myPosit) {
|
||||
case TopAbs_FORWARD : std::cout << "FORWARD (i.e. BEGIN )" ; break ;
|
||||
@ -217,7 +217,7 @@ void HatchGen_PointOnElement::Dump (const Standard_Integer Index) const
|
||||
case TopAbs_REVERSED : std::cout << "REVERSED (i.e. END )" ; break ;
|
||||
case TopAbs_EXTERNAL : std::cout << "EXTERNAL (i.e. UNKNOWN)" ; break ;
|
||||
}
|
||||
std::cout << std::endl ;
|
||||
std::cout << '\n' ;
|
||||
std::cout << " Intersection Type = " ;
|
||||
switch (myType) {
|
||||
case HatchGen_TRUE : std::cout << "TRUE" ; break ;
|
||||
@ -225,7 +225,7 @@ void HatchGen_PointOnElement::Dump (const Standard_Integer Index) const
|
||||
case HatchGen_TANGENT : std::cout << "TANGENT" ; break ;
|
||||
case HatchGen_UNDETERMINED : std::cout << "UNDETERMINED" ; break ;
|
||||
}
|
||||
std::cout << std::endl ;
|
||||
std::cout << '\n' ;
|
||||
std::cout << " State Before = " ;
|
||||
switch (myBefore) {
|
||||
case TopAbs_IN : std::cout << "IN" ; break ;
|
||||
@ -233,7 +233,7 @@ void HatchGen_PointOnElement::Dump (const Standard_Integer Index) const
|
||||
case TopAbs_ON : std::cout << "ON" ; break ;
|
||||
case TopAbs_UNKNOWN : std::cout << "UNKNOWN" ; break ;
|
||||
}
|
||||
std::cout << std::endl ;
|
||||
std::cout << '\n' ;
|
||||
std::cout << " State After = " ;
|
||||
switch (myAfter) {
|
||||
case TopAbs_IN : std::cout << "IN" ; break ;
|
||||
@ -241,9 +241,9 @@ void HatchGen_PointOnElement::Dump (const Standard_Integer Index) const
|
||||
case TopAbs_ON : std::cout << "ON" ; break ;
|
||||
case TopAbs_UNKNOWN : std::cout << "UNKNOWN" ; break ;
|
||||
}
|
||||
std::cout << std::endl ;
|
||||
std::cout << " Beginning of segment = " << (mySegBeg ? "TRUE" : "FALSE") << std::endl ;
|
||||
std::cout << " End of segment = " << (mySegEnd ? "TRUE" : "FALSE") << std::endl ;
|
||||
std::cout << '\n' ;
|
||||
std::cout << " Beginning of segment = " << (mySegBeg ? "TRUE" : "FALSE") << '\n' ;
|
||||
std::cout << " End of segment = " << (mySegEnd ? "TRUE" : "FALSE") << '\n' ;
|
||||
|
||||
std::cout << " ------------------------------------------" << std::endl ;
|
||||
std::cout << " ------------------------------------------" << '\n' ;
|
||||
}
|
||||
|
@ -166,10 +166,10 @@ void HatchGen_PointOnHatching::Dump (const Standard_Integer Index) const
|
||||
} else {
|
||||
std::cout << "------" ;
|
||||
}
|
||||
std::cout << "------------------" << std::endl ;
|
||||
std::cout << "------------------" << '\n' ;
|
||||
|
||||
std::cout << " Index of the hatching = " << myIndex << std::endl ;
|
||||
std::cout << " Parameter on hatching = " << myParam << std::endl ;
|
||||
std::cout << " Index of the hatching = " << myIndex << '\n' ;
|
||||
std::cout << " Parameter on hatching = " << myParam << '\n' ;
|
||||
std::cout << " Position on hatching = " ;
|
||||
switch (myPosit) {
|
||||
case TopAbs_FORWARD : std::cout << "FORWARD (i.e. BEGIN )" ; break ;
|
||||
@ -177,7 +177,7 @@ void HatchGen_PointOnHatching::Dump (const Standard_Integer Index) const
|
||||
case TopAbs_REVERSED : std::cout << "REVERSED (i.e. END )" ; break ;
|
||||
case TopAbs_EXTERNAL : std::cout << "EXTERNAL (i.e. UNKNOWN)" ; break ;
|
||||
}
|
||||
std::cout << std::endl ;
|
||||
std::cout << '\n' ;
|
||||
std::cout << " State Before = " ;
|
||||
switch (myBefore) {
|
||||
case TopAbs_IN : std::cout << "IN" ; break ;
|
||||
@ -185,7 +185,7 @@ void HatchGen_PointOnHatching::Dump (const Standard_Integer Index) const
|
||||
case TopAbs_ON : std::cout << "ON" ; break ;
|
||||
case TopAbs_UNKNOWN : std::cout << "UNKNOWN" ; break ;
|
||||
}
|
||||
std::cout << std::endl ;
|
||||
std::cout << '\n' ;
|
||||
std::cout << " State After = " ;
|
||||
switch (myAfter) {
|
||||
case TopAbs_IN : std::cout << "IN" ; break ;
|
||||
@ -193,20 +193,20 @@ void HatchGen_PointOnHatching::Dump (const Standard_Integer Index) const
|
||||
case TopAbs_ON : std::cout << "ON" ; break ;
|
||||
case TopAbs_UNKNOWN : std::cout << "UNKNOWN" ; break ;
|
||||
}
|
||||
std::cout << std::endl ;
|
||||
std::cout << " Beginning of segment = " << (mySegBeg ? "TRUE" : "FALSE") << std::endl ;
|
||||
std::cout << " End of segment = " << (mySegEnd ? "TRUE" : "FALSE") << std::endl ;
|
||||
std::cout << '\n' ;
|
||||
std::cout << " Beginning of segment = " << (mySegBeg ? "TRUE" : "FALSE") << '\n' ;
|
||||
std::cout << " End of segment = " << (mySegEnd ? "TRUE" : "FALSE") << '\n' ;
|
||||
|
||||
Standard_Integer NbPnt = myPoints.Length () ;
|
||||
if (NbPnt == 0) {
|
||||
std::cout << " No points on element" << std::endl ;
|
||||
std::cout << " No points on element" << '\n' ;
|
||||
} else {
|
||||
std::cout << " Contains " << NbPnt << " points on element" << std::endl ;
|
||||
std::cout << " Contains " << NbPnt << " points on element" << '\n' ;
|
||||
for (Standard_Integer IPnt = 1 ; IPnt <= NbPnt ; IPnt++) {
|
||||
const HatchGen_PointOnElement& Point = myPoints.Value (IPnt) ;
|
||||
Point.Dump (IPnt) ;
|
||||
}
|
||||
}
|
||||
|
||||
std::cout << "----------------------------------------------" << std::endl ;
|
||||
std::cout << "----------------------------------------------" << '\n' ;
|
||||
}
|
||||
|
@ -349,7 +349,7 @@ void IFSelect_ContextModif::TraceModifier
|
||||
if (modif.IsNull()) return;
|
||||
|
||||
Message_Messenger::StreamBuffer sout = Message::SendInfo();
|
||||
sout << "--- Run Modifier:" << std::endl;
|
||||
sout << "--- Run Modifier:" << '\n';
|
||||
Handle(IFSelect_Selection) sel = modif->Selection();
|
||||
if (!sel.IsNull()) sout<<" Selection:"<<sel->Label();
|
||||
else sout<<" (no Selection)";
|
||||
@ -359,8 +359,8 @@ void IFSelect_ContextModif::TraceModifier
|
||||
for (Standard_Integer i = 1; i <= nb; i ++) {
|
||||
if (thelist.Value(i) != ' ') ne ++;
|
||||
}
|
||||
if (nb == ne) sout<<" All Model ("<<nb<<" Entities)"<<std::endl;
|
||||
else sout<<" Entities,Total:"<<nb<<" Concerned:"<<ne<<std::endl;
|
||||
if (nb == ne) sout<<" All Model ("<<nb<<" Entities)"<<'\n';
|
||||
else sout<<" Entities,Total:"<<nb<<" Concerned:"<<ne<<'\n';
|
||||
}
|
||||
|
||||
|
||||
@ -375,11 +375,11 @@ void IFSelect_ContextModif::Trace (const Standard_CString mess)
|
||||
if (thecurr <= 0) return;
|
||||
Message_Messenger::StreamBuffer sout = Message::SendInfo();
|
||||
if (ValueOriginal() == ValueResult())
|
||||
sout<<"-- ContextModif. Entity n0 "<<thecurr<<std::endl;
|
||||
sout<<"-- ContextModif. Entity n0 "<<thecurr<<'\n';
|
||||
else
|
||||
sout<<"-- ContextModif. Entity in Original, n0 "<<thecurr<<" in Result, n0 "
|
||||
<<thecurt<<std::endl;
|
||||
if (mess[0] != '\0') sout<<"-- Message:"<<mess<<std::endl;
|
||||
<<thecurt<<'\n';
|
||||
if (mess[0] != '\0') sout<<"-- Message:"<<mess<<'\n';
|
||||
}
|
||||
|
||||
|
||||
|
@ -406,14 +406,14 @@ IFSelect_EditForm::IFSelect_EditForm
|
||||
void IFSelect_EditForm::PrintDefs (Standard_OStream& S) const
|
||||
{
|
||||
Standard_Integer iv, nbv = NbValues(Standard_True);
|
||||
S<<"***** EditForm, Label : "<<Label()<<std::endl;
|
||||
if (IsComplete()) S<<"Complete, "<<nbv<<" Values"<<std::endl;
|
||||
S<<"***** EditForm, Label : "<<Label()<<'\n';
|
||||
if (IsComplete()) S<<"Complete, "<<nbv<<" Values"<<'\n';
|
||||
else {
|
||||
S<<"Extraction on "<<nbv<<" Values : (extracted<-editor)"<<std::endl;
|
||||
S<<"Extraction on "<<nbv<<" Values : (extracted<-editor)"<<'\n';
|
||||
for (iv = 1; iv <= nbv; iv ++) S<<" "<<iv<<"<-"<<NumberFromRank(iv);
|
||||
S<<std::endl;
|
||||
S<<'\n';
|
||||
}
|
||||
S<<"*****"<<std::endl;
|
||||
S<<"*****"<<'\n';
|
||||
}
|
||||
|
||||
|
||||
@ -421,15 +421,15 @@ static void PrintList
|
||||
(const Handle(TColStd_HSequenceOfHAsciiString)& list,
|
||||
Standard_OStream& S, const Standard_Boolean alsolist)
|
||||
{
|
||||
if (list.IsNull()) { S<<"(NULL LIST)"<<std::endl; return; }
|
||||
if (list.IsNull()) { S<<"(NULL LIST)"<<'\n'; return; }
|
||||
|
||||
Standard_Integer i,nb = list->Length();
|
||||
S<<"(List : "<<nb<<" Items)"<<std::endl;
|
||||
S<<"(List : "<<nb<<" Items)"<<'\n';
|
||||
if (!alsolist) return;
|
||||
|
||||
for (i = 1; i <= nb; i ++) {
|
||||
Handle(TCollection_HAsciiString) str = list->Value(i);
|
||||
S<<" ["<<i<<"] "<< (str.IsNull() ? "(NULL)" : str->ToCString())<<std::endl;
|
||||
S<<" ["<<i<<"] "<< (str.IsNull() ? "(NULL)" : str->ToCString())<<'\n';
|
||||
}
|
||||
}
|
||||
|
||||
@ -438,11 +438,11 @@ static void PrintList
|
||||
const Standard_Boolean names, const Standard_Boolean alsolist) const
|
||||
{
|
||||
Standard_Integer iv, nbv = NbValues(Standard_True);
|
||||
S<< "****************************************************"<<std::endl;
|
||||
S<<"***** "<<Label()<<Interface_MSG::Blanks(Label(),40)<<"*****"<<std::endl;
|
||||
S<<"***** *****"<<std::endl;
|
||||
S<< "****************************************************"<<'\n';
|
||||
S<<"***** "<<Label()<<Interface_MSG::Blanks(Label(),40)<<"*****"<<'\n';
|
||||
S<<"***** *****"<<'\n';
|
||||
if (!theloaded)
|
||||
S<<"***** Values are NOT loaded *****"<<std::endl;
|
||||
S<<"***** Values are NOT loaded *****"<<'\n';
|
||||
|
||||
else {
|
||||
// Donnees sur lesquelles on a travaille
|
||||
@ -454,15 +454,15 @@ static void PrintList
|
||||
else { S<<"***** Loaded entity : "; themodel->PrintLabel (theent, S); }
|
||||
}
|
||||
}
|
||||
S<<std::endl<<"****************************************************"<<std::endl<<std::endl;
|
||||
S<<'\n'<<"****************************************************"<<'\n'<<'\n';
|
||||
|
||||
// Affichage des valeurs
|
||||
Standard_Boolean nams = names;
|
||||
Standard_Integer maxnam = theeditor->MaxNameLength (names ? 0 : -1);
|
||||
if (maxnam == 0) { maxnam = theeditor->MaxNameLength (0); nams = Standard_True; }
|
||||
Standard_Integer nbmod = 0;
|
||||
if (what != 0) S<<"Mod N0 Name Value"<<std::endl;
|
||||
else S<<" N0 Name Value"<<std::endl;
|
||||
if (what != 0) S<<"Mod N0 Name Value"<<'\n';
|
||||
else S<<" N0 Name Value"<<'\n';
|
||||
|
||||
for (iv = 1; iv <= nbv; iv ++) {
|
||||
Standard_Integer jv = NumberFromRank(iv);
|
||||
@ -487,7 +487,7 @@ static void PrintList
|
||||
if (what < 0) str = OriginalValue (jv);
|
||||
if (what > 0) str = EditedValue (jv);
|
||||
|
||||
S<< (str.IsNull() ? "(NULL)" : str->ToCString()) <<std::endl;
|
||||
S<< (str.IsNull() ? "(NULL)" : str->ToCString()) <<'\n';
|
||||
|
||||
// Modified only
|
||||
} else {
|
||||
@ -509,12 +509,12 @@ static void PrintList
|
||||
Handle(TCollection_HAsciiString) str = OriginalValue (jv);
|
||||
S<<Interface_MSG::Blanks(iv,3)<<iv<<" "
|
||||
<<name<<Interface_MSG::Blanks(name,maxnam)<<" ORIG:"
|
||||
<< (str.IsNull() ? "(NULL)" : str->ToCString()) <<std::endl;
|
||||
<< (str.IsNull() ? "(NULL)" : str->ToCString()) <<'\n';
|
||||
str = EditedValue (jv);
|
||||
S<<Interface_MSG::Blanks("",maxnam+4)<<" MOD :"<< (str.IsNull() ? "(NULL)" : str->ToCString()) <<std::endl;
|
||||
S<<Interface_MSG::Blanks("",maxnam+4)<<" MOD :"<< (str.IsNull() ? "(NULL)" : str->ToCString()) <<'\n';
|
||||
}
|
||||
}
|
||||
if (what == 0) S<<"On "<<nbv<<" Values, "<<nbmod<<" Modified"<<std::endl;
|
||||
if (what == 0) S<<"On "<<nbv<<" Values, "<<nbmod<<" Modified"<<'\n';
|
||||
}
|
||||
|
||||
|
||||
|
@ -105,11 +105,11 @@ Standard_Integer IFSelect_Editor::MaxList (const Standard_Integer num) const
|
||||
void IFSelect_Editor::PrintNames (Standard_OStream& S) const
|
||||
{
|
||||
Standard_Integer i, nb = NbValues();
|
||||
S<<"**** Editor : "<<Label()<<std::endl;
|
||||
S<<"**** Nb Values = "<<nb<<" **** Names / Labels"<<std::endl;
|
||||
S<<"**** Editor : "<<Label()<<'\n';
|
||||
S<<"**** Nb Values = "<<nb<<" **** Names / Labels"<<'\n';
|
||||
S<<" Num ";
|
||||
if (themaxsh > 0) S<<"Short"<<Interface_MSG::Blanks("Short",themaxsh)<<" ";
|
||||
S<<"Complete"<<Interface_MSG::Blanks("Complete",themaxco)<<" Label"<<std::endl;
|
||||
S<<"Complete"<<Interface_MSG::Blanks("Complete",themaxco)<<" Label"<<'\n';
|
||||
|
||||
for (i = 1; i <= nb; i ++) {
|
||||
Handle(Interface_TypedValue) tv = TypedValue(i);
|
||||
@ -119,7 +119,7 @@ Standard_Integer IFSelect_Editor::MaxList (const Standard_Integer num) const
|
||||
const TCollection_AsciiString& sho = theshorts(i);
|
||||
S<<sho<<Interface_MSG::Blanks(sho.ToCString(),themaxsh)<<" ";
|
||||
}
|
||||
S<<tv->Name()<<Interface_MSG::Blanks(tv->Name(),themaxco)<<" "<<tv->Label()<<std::endl;
|
||||
S<<tv->Name()<<Interface_MSG::Blanks(tv->Name(),themaxco)<<" "<<tv->Label()<<'\n';
|
||||
}
|
||||
}
|
||||
|
||||
@ -127,15 +127,15 @@ Standard_Integer IFSelect_Editor::MaxList (const Standard_Integer num) const
|
||||
(Standard_OStream& S, const Standard_Boolean labels) const
|
||||
{
|
||||
Standard_Integer i, nb = NbValues();
|
||||
S<<"**** Editor : "<<Label()<<std::endl;
|
||||
S<<"**** Nb Values = "<<nb<<" **** "<<(labels ? "Labels" : "Names")<<" / Definitions"<<std::endl;
|
||||
S<<"**** Editor : "<<Label()<<'\n';
|
||||
S<<"**** Nb Values = "<<nb<<" **** "<<(labels ? "Labels" : "Names")<<" / Definitions"<<'\n';
|
||||
S<<" Num ";
|
||||
if (labels) S<<"Label"<<Interface_MSG::Blanks("Label",themaxla);
|
||||
else {
|
||||
if (themaxsh > 0) S<<"Short"<<Interface_MSG::Blanks("Short",themaxsh+1);
|
||||
S<<"Complete"<<Interface_MSG::Blanks("Complete",themaxco);
|
||||
}
|
||||
S<<" Edit Mode & Definition"<<std::endl;
|
||||
S<<" Edit Mode & Definition"<<'\n';
|
||||
|
||||
for (i = 1; i <= nb; i ++) {
|
||||
Handle(Interface_TypedValue) tv = TypedValue(i);
|
||||
@ -166,7 +166,7 @@ Standard_Integer IFSelect_Editor::MaxList (const Standard_Integer num) const
|
||||
default : S<<"?????????"; break;
|
||||
}
|
||||
|
||||
S<<" "<<tv->Definition()<<std::endl;
|
||||
S<<" "<<tv->Definition()<<'\n';
|
||||
}
|
||||
}
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -132,7 +132,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier () { }
|
||||
const Handle(Interface_Protocol)& protocol,
|
||||
Interface_CopyTool& TC)
|
||||
{
|
||||
Message::SendInfo() << "** WorkSession : Copying split data before sending"<<std::endl;
|
||||
Message::SendInfo() << "** WorkSession : Copying split data before sending"<<'\n';
|
||||
const Interface_Graph& G = eval.Graph();
|
||||
Interface_CheckIterator checks;
|
||||
theshareout = eval.ShareOut();
|
||||
@ -161,7 +161,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier () { }
|
||||
(const Handle(IFSelect_WorkLibrary)& WL,
|
||||
const Handle(Interface_Protocol)& protocol)
|
||||
{
|
||||
Message::SendInfo() << "** WorkSession : Sending split data already copied"<<std::endl;
|
||||
Message::SendInfo() << "** WorkSession : Sending split data already copied"<<'\n';
|
||||
Standard_Integer nb = NbFiles();
|
||||
Interface_CheckIterator checks;
|
||||
if (nb > 0) {
|
||||
@ -180,7 +180,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier () { }
|
||||
if (!res) {
|
||||
char mess[100]; sprintf(mess,"Split Send (WriteFile) abandon on file n0.%d",i);
|
||||
checks.CCheck(0)->AddFail (mess);
|
||||
Message::SendInfo() << " ** Sending File n0."<<i<<" has failed, abandon **"<<std::endl;
|
||||
Message::SendInfo() << " ** Sending File n0."<<i<<" has failed, abandon **"<<'\n';
|
||||
return checks;
|
||||
}
|
||||
AddSentFile (FileName(i).ToCString());
|
||||
@ -212,7 +212,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier () { }
|
||||
const Interface_Graph& G = eval.Graph();
|
||||
Interface_CheckIterator checks;
|
||||
Standard_Integer i = 0;
|
||||
Message::SendInfo() << "** WorkSession : Copying then sending split data"<<std::endl;
|
||||
Message::SendInfo() << "** WorkSession : Copying then sending split data"<<'\n';
|
||||
theshareout = eval.ShareOut();
|
||||
theremain = new TColStd_HArray1OfInteger(0,G.Size()); theremain->Init(0);
|
||||
for (eval.Evaluate(); eval.More(); eval.Next()) {
|
||||
@ -237,7 +237,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier () { }
|
||||
if (!res) {
|
||||
char mess[100]; sprintf(mess,"Split Send (WriteFile) abandon on file n0.%d",i);
|
||||
checks.CCheck(0)->AddFail (mess);
|
||||
Message::SendInfo() << " ** Sending File "<<filename<<" has failed, abandon **"<<std::endl;
|
||||
Message::SendInfo() << " ** Sending File "<<filename<<" has failed, abandon **"<<'\n';
|
||||
checks.SetName ("X-STEP WorkSession : Split Send (only Write)");
|
||||
return checks;
|
||||
}
|
||||
@ -258,7 +258,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier () { }
|
||||
{
|
||||
Interface_CheckIterator checks;
|
||||
checks.SetName ("X-STEP WorkSession : Send All");
|
||||
Message::SendInfo() << "** WorkSession : Sending all data"<<std::endl;
|
||||
Message::SendInfo() << "** WorkSession : Sending all data"<<'\n';
|
||||
const Handle(Interface_InterfaceModel)& model = G.Model();
|
||||
if (model.IsNull() || protocol.IsNull() || WL.IsNull()) return checks;
|
||||
|
||||
@ -297,7 +297,7 @@ IFSelect_ModelCopier::IFSelect_ModelCopier () { }
|
||||
{
|
||||
Interface_CheckIterator checks;
|
||||
checks.SetName ("X-STEP WorkSession : Send Selected");
|
||||
Message::SendInfo() << "** WorkSession : Sending selected data"<<std::endl;
|
||||
Message::SendInfo() << "** WorkSession : Sending selected data"<<'\n';
|
||||
const Handle(Interface_InterfaceModel)& original = G.Model();
|
||||
if (original.IsNull() || protocol.IsNull() || WL.IsNull()) return checks;
|
||||
Handle(Interface_InterfaceModel) newmod = original->NewEmptyModel();
|
||||
|
@ -136,12 +136,12 @@ static int deja = 0;
|
||||
Message_Messenger::StreamBuffer sout = Message::SendInfo();
|
||||
|
||||
SplitLine (headerline);
|
||||
if (theline.Length() != 4) { sout<<"File Form Incorrect"<<std::endl; return Standard_False; }
|
||||
if (theline.Length() != 4) { sout<<"File Form Incorrect"<<'\n'; return Standard_False; }
|
||||
Handle(Standard_Type) sesstype = thesess->DynamicType();
|
||||
if (!theline.Value(1).IsEqual("!XSTEP") ||
|
||||
!theline.Value(2).IsEqual("SESSION") ||
|
||||
!theline.Value(4).IsEqual(sesstype->Name()) )
|
||||
{ sout<<"Lineno."<<thenl<<" : File Header Description Incorrect"<<std::endl; return Standard_False; }
|
||||
{ sout<<"Lineno."<<thenl<<" : File Header Description Incorrect"<<'\n'; return Standard_False; }
|
||||
// Value(3) definit la VERSION du format de fichier
|
||||
return Standard_True;
|
||||
}
|
||||
@ -421,12 +421,12 @@ static int deja = 0;
|
||||
thenames.Clear();
|
||||
// .. Donnees generales, controle
|
||||
if (!ReadLine()) return 1;
|
||||
if (theline.Length() != 4) { sout<<"File Form Incorrect"<<std::endl; return 1; }
|
||||
if (theline.Length() != 4) { sout<<"File Form Incorrect"<<'\n'; return 1; }
|
||||
Handle(Standard_Type) sesstype = thesess->DynamicType();
|
||||
if (!theline.Value(1).IsEqual("!XSTEP") ||
|
||||
!theline.Value(2).IsEqual("SESSION") ||
|
||||
!theline.Value(4).IsEqual(sesstype->Name()) )
|
||||
{ sout<<"Lineno."<<thenl<<" : File Header Description Incorrect"<<std::endl; return 1; }
|
||||
{ sout<<"Lineno."<<thenl<<" : File Header Description Incorrect"<<'\n'; return 1; }
|
||||
// Value(3) definit la VERSION du format de fichier
|
||||
if (!ReadLine()) return 1;
|
||||
|
||||
@ -440,15 +440,15 @@ static int deja = 0;
|
||||
if (ungen.Value(1) == '!') break; // fin des generaux
|
||||
if (ungen.IsEqual("ErrorHandle")) {
|
||||
if (theline.Length() != 2)
|
||||
{ sout<<"Lineno."<<thenl<<" : ErrorHandle Description Incorrect"<<std::endl; continue; }
|
||||
{ sout<<"Lineno."<<thenl<<" : ErrorHandle Description Incorrect"<<'\n'; continue; }
|
||||
if (theline.Value(2).IsEqual("0"))
|
||||
thesess->SetErrorHandle(Standard_False);
|
||||
else if (theline.Value(2).IsEqual("1"))
|
||||
thesess->SetErrorHandle(Standard_True);
|
||||
else { sout<<"Lineno."<<thenl<<" : ErrorHandle Incorrect : "<<theline.Value(2)<<std::endl; continue; }
|
||||
else { sout<<"Lineno."<<thenl<<" : ErrorHandle Incorrect : "<<theline.Value(2)<<'\n'; continue; }
|
||||
continue;
|
||||
}
|
||||
else sout<<"Lineno."<<thenl<<" : Unknown General Parameter : "<<ungen<<" , ignored"<<std::endl;
|
||||
else sout<<"Lineno."<<thenl<<" : Unknown General Parameter : "<<ungen<<" , ignored"<<'\n';
|
||||
}
|
||||
|
||||
// .. IntParams
|
||||
@ -458,7 +458,7 @@ static int deja = 0;
|
||||
if (!ReadLine()) return 1;
|
||||
if (theline.Value(1).Value(1) == '!') break; // liste suivante
|
||||
if (theline.Length() != 2)
|
||||
{ sout<<"Lineno."<<thenl<<" : An Integer Parameter is badly defined"<<std::endl; continue; }
|
||||
{ sout<<"Lineno."<<thenl<<" : An Integer Parameter is badly defined"<<'\n'; continue; }
|
||||
Handle(IFSelect_IntParam) par = new IFSelect_IntParam;
|
||||
par->SetValue ( atoi(theline.Value(2).ToCString()) );
|
||||
AddItem (par);
|
||||
@ -470,7 +470,7 @@ static int deja = 0;
|
||||
if (!ReadLine()) return 1;
|
||||
if (theline.Value(1).Value(1) == '!') break; // liste suivante
|
||||
if (theline.Length() != 2)
|
||||
{ sout<<"Lineno."<<thenl<<" : A Text Parameter is badly defined"<<std::endl; continue; }
|
||||
{ sout<<"Lineno."<<thenl<<" : A Text Parameter is badly defined"<<'\n'; continue; }
|
||||
// Attention, un texte peut contenir des blancs ... repartir de line(thenl)
|
||||
TCollection_AsciiString oneline = thelist.Value(thenl);
|
||||
Standard_Integer iw = 0, inc = 0;
|
||||
@ -490,7 +490,7 @@ static int deja = 0;
|
||||
if (!ReadLine()) return 1;
|
||||
if (theline.Value(1).Value(1) == '!') break; // liste suivante
|
||||
if (theline.Length() < 2)
|
||||
{ sout<<"Lineno."<<thenl<<" : A Selection is badly defined"<<std::endl; continue; }
|
||||
{ sout<<"Lineno."<<thenl<<" : A Selection is badly defined"<<'\n'; continue; }
|
||||
// .. Analyse de certains cas generaux
|
||||
Handle(IFSelect_IntParam) low,up;
|
||||
Standard_Integer firstown = 3;
|
||||
@ -514,12 +514,12 @@ static int deja = 0;
|
||||
if (item.IsNull()) continue;
|
||||
DeclareAndCast(IFSelect_SelectExtract,sxt,item);
|
||||
if (!sxt.IsNull()) {
|
||||
if (direct == 0) sout<<"Lineno."<<thenl<<" : A SelectExtract is badly defined"<<std::endl;
|
||||
if (direct == 0) sout<<"Lineno."<<thenl<<" : A SelectExtract is badly defined"<<'\n';
|
||||
else sxt->SetDirect( (direct > 0) );
|
||||
}
|
||||
DeclareAndCast(IFSelect_SelectAnyList,sli,item);
|
||||
if (!sli.IsNull()) {
|
||||
if (numlist == 0) sout<<"Lineno."<<thenl<<" : A SelectAnyList is badly defined"<<std::endl;
|
||||
if (numlist == 0) sout<<"Lineno."<<thenl<<" : A SelectAnyList is badly defined"<<'\n';
|
||||
else sli->SetRange(low,up);
|
||||
}
|
||||
AddItem(item);
|
||||
@ -531,29 +531,29 @@ static int deja = 0;
|
||||
if (!ReadLine()) return 1;
|
||||
if (theline.Value(1).Value(1) == '!') break; // liste suivante
|
||||
if (theline.Length() < 3)
|
||||
{ sout<<"Lineno."<<thenl<<" : A Selection Source List is badly defined"<<std::endl; continue; }
|
||||
{ sout<<"Lineno."<<thenl<<" : A Selection Source List is badly defined"<<'\n'; continue; }
|
||||
DeclareAndCast(IFSelect_Selection,sel,ItemValue(1));
|
||||
if (sel.IsNull())
|
||||
{ sout<<"Lineno."<<thenl<<" : A Source List is not for a Selection"<<std::endl; continue; }
|
||||
{ sout<<"Lineno."<<thenl<<" : A Source List is not for a Selection"<<'\n'; continue; }
|
||||
Standard_Integer nbs = atoi(theline.Value(2).ToCString());
|
||||
// .. Differents cas reconnus
|
||||
DeclareAndCast(IFSelect_SelectExtract,sxt,sel);
|
||||
if (!sxt.IsNull()) {
|
||||
if (nbs > 1)
|
||||
sout<<"Lineno."<<thenl<<" : SelectExtract, more than one source, following ignored"<<std::endl;
|
||||
sout<<"Lineno."<<thenl<<" : SelectExtract, more than one source, following ignored"<<'\n';
|
||||
DeclareAndCast(IFSelect_Selection,source,ItemValue(3));
|
||||
sxt->SetInput(source);
|
||||
}
|
||||
DeclareAndCast(IFSelect_SelectDeduct,sdt,sel);
|
||||
if (!sdt.IsNull()) {
|
||||
if (nbs > 1)
|
||||
sout<<"Lineno."<<thenl<<" : SelectDeduct, more than one source, following ignored"<<std::endl;
|
||||
sout<<"Lineno."<<thenl<<" : SelectDeduct, more than one source, following ignored"<<'\n';
|
||||
sdt->SetInput(GetCasted(IFSelect_Selection,ItemValue(3)));
|
||||
}
|
||||
DeclareAndCast(IFSelect_SelectControl,sct,sel);
|
||||
if (!sct.IsNull()) {
|
||||
if (nbs != 2)
|
||||
sout<<"Lineno."<<thenl<<" : SelectControl, not two sources, following ignored"<<std::endl;
|
||||
sout<<"Lineno."<<thenl<<" : SelectControl, not two sources, following ignored"<<'\n';
|
||||
sct->SetMainInput (GetCasted(IFSelect_Selection,ItemValue(3)));
|
||||
sct->SetSecondInput (GetCasted(IFSelect_Selection,ItemValue(4)));
|
||||
}
|
||||
@ -570,13 +570,13 @@ static int deja = 0;
|
||||
if (!ReadLine()) return 1;
|
||||
if (theline.Value(1).Value(1) == '!') break; // liste suivante
|
||||
if (theline.Length() < 2)
|
||||
{ sout<<"Lineno."<<thenl<<" : A Modifier is badly defined"<<std::endl; continue; }
|
||||
{ sout<<"Lineno."<<thenl<<" : A Modifier is badly defined"<<'\n'; continue; }
|
||||
Handle(Standard_Transient) item; // a fournir ...
|
||||
ReadOwn(item);
|
||||
if (item.IsNull()) continue;
|
||||
DeclareAndCast(IFSelect_GeneralModifier,modif,item);
|
||||
if (modif.IsNull())
|
||||
{ sout<<"Lineno."<<thenl<<" : A Modifier has not been Recognized"<<std::endl; continue; }
|
||||
{ sout<<"Lineno."<<thenl<<" : A Modifier has not been Recognized"<<'\n'; continue; }
|
||||
AddItem(modif,Standard_False); // active plus tard
|
||||
}
|
||||
|
||||
@ -586,13 +586,13 @@ static int deja = 0;
|
||||
if (!ReadLine()) return 1;
|
||||
if (theline.Value(1).Value(1) == '!') break; // liste suivante
|
||||
if (theline.Length() < 2)
|
||||
{ sout<<"Lineno."<<thenl<<" : A Transformer is badly defined"<<std::endl; continue; }
|
||||
{ sout<<"Lineno."<<thenl<<" : A Transformer is badly defined"<<'\n'; continue; }
|
||||
Handle(Standard_Transient) item; // a fournir ...
|
||||
ReadOwn(item);
|
||||
if (item.IsNull()) continue;
|
||||
DeclareAndCast(IFSelect_Transformer,trf,item);
|
||||
if (trf.IsNull())
|
||||
{ sout<<"Lineno."<<thenl<<" : A Transformer has not been Recognized"<<std::endl; continue; }
|
||||
{ sout<<"Lineno."<<thenl<<" : A Transformer has not been Recognized"<<'\n'; continue; }
|
||||
AddItem(trf,Standard_False); // active plus tard
|
||||
}
|
||||
|
||||
@ -602,7 +602,7 @@ static int deja = 0;
|
||||
if (!ReadLine()) return 1;
|
||||
if (theline.Value(1).Value(1) == '!') break; // liste suivante
|
||||
if (theline.Length() < 3)
|
||||
{ sout<<"Lineno."<<thenl<<" : A Dispatch is badly defined"<<std::endl; continue; }
|
||||
{ sout<<"Lineno."<<thenl<<" : A Dispatch is badly defined"<<'\n'; continue; }
|
||||
DeclareAndCast(IFSelect_Selection,input,ItemValue(3));
|
||||
SetLastGeneral(3);
|
||||
Handle(Standard_Transient) item; // a fournir ...
|
||||
@ -610,7 +610,7 @@ static int deja = 0;
|
||||
if (item.IsNull()) continue;
|
||||
DeclareAndCast(IFSelect_Dispatch,disp,item);
|
||||
if (disp.IsNull())
|
||||
{ sout<<"Lineno."<<thenl<<" : A Dispatch has not been Recognized"<<std::endl; continue; }
|
||||
{ sout<<"Lineno."<<thenl<<" : A Dispatch has not been Recognized"<<'\n'; continue; }
|
||||
AddItem(disp);
|
||||
thesess->SetItemSelection(disp,input);
|
||||
}
|
||||
@ -627,7 +627,7 @@ static int deja = 0;
|
||||
if (!ReadLine()) return 1;
|
||||
if (theline.Value(1).Value(1) == '!') break; // liste suivante
|
||||
if (theline.Length() != 2)
|
||||
{ sout<<"Lineno."<<thenl<<" : A File Root is badly defined"<<std::endl; continue; }
|
||||
{ sout<<"Lineno."<<thenl<<" : A File Root is badly defined"<<'\n'; continue; }
|
||||
DeclareAndCast(IFSelect_Dispatch,disp,ItemValue(1));
|
||||
thesess->SetFileRoot (disp,theline.Value(2).ToCString());
|
||||
}
|
||||
@ -648,12 +648,12 @@ static int deja = 0;
|
||||
if (!ReadLine()) return 1;
|
||||
if (theline.Value(1).Value(1) == '!') break; // liste suivante
|
||||
if (theline.Length() < 3)
|
||||
{ sout<<"Lineno."<<thenl<<" : A General Modifier is badly defined"<<std::endl; continue; }
|
||||
{ sout<<"Lineno."<<thenl<<" : A General Modifier is badly defined"<<'\n'; continue; }
|
||||
DeclareAndCast(IFSelect_GeneralModifier,modif,ItemValue(1));
|
||||
DeclareAndCast(IFSelect_Selection,input,ItemValue(2));
|
||||
DeclareAndCast(IFSelect_Dispatch,disp,ItemValue(3));
|
||||
if (modif.IsNull())
|
||||
{ sout<<"Lineno."<<thenl<<" : A General Modifier has not been Recognized"<<std::endl; continue; }
|
||||
{ sout<<"Lineno."<<thenl<<" : A General Modifier has not been Recognized"<<'\n'; continue; }
|
||||
thesess->SetItemSelection (modif,input);
|
||||
if (!disp.IsNull()) thesess->SetAppliedModifier (modif,disp);
|
||||
else thesess->SetAppliedModifier (modif,thesess->ShareOut());
|
||||
@ -670,7 +670,7 @@ static int deja = 0;
|
||||
if ( theline.Length() != 2 ||
|
||||
!theline.Value(1).IsEqual("!XSTEP") ||
|
||||
!theline.Value(2).IsEqual("END"))
|
||||
{ sout<<"End of File Incorrect, lineno"<<thenl<<std::endl; return 1; }
|
||||
{ sout<<"End of File Incorrect, lineno"<<thenl<<'\n'; return 1; }
|
||||
return 0;
|
||||
}
|
||||
|
||||
@ -726,7 +726,7 @@ static int deja = 0;
|
||||
if (dumper->ReadOwn(*this,type,item)) break;
|
||||
dumper = dumper->Next();
|
||||
}
|
||||
if (dumper.IsNull()) sout<<" -- Lineno."<<thenl<<" : an Item could not be read"<<std::endl;
|
||||
if (dumper.IsNull()) sout<<" -- Lineno."<<thenl<<" : an Item could not be read"<<'\n';
|
||||
return (!dumper.IsNull()); // IsNull -> echec
|
||||
}
|
||||
|
||||
@ -745,7 +745,7 @@ static int deja = 0;
|
||||
else id = thesess->AddNamedItem(name.ToCString(),item,active);
|
||||
}
|
||||
else sout<<"Lineno."<<thenl<<" -- Name : "<<name
|
||||
<<" : Item could not be defined" << std::endl;
|
||||
<<" : Item could not be defined" << '\n';
|
||||
thenames.Bind(name,id);
|
||||
}
|
||||
|
||||
@ -789,7 +789,7 @@ static int deja = 0;
|
||||
if (id != 0) filenum = thenums->Value(id);
|
||||
if (filenum == 0) {
|
||||
if (!par.IsNull()) sout << "Lineno " << thenl << " -- Unknown Item : "
|
||||
<< " Type:" << par->DynamicType()->Name() << std::endl; //sout<<Handle par
|
||||
<< " Type:" << par->DynamicType()->Name() << '\n'; //sout<<Handle par
|
||||
SendVoid();
|
||||
thedone = Standard_False;
|
||||
return;
|
||||
@ -872,7 +872,7 @@ static int deja = 0;
|
||||
if (name.IsEqual("$")) return res; // item non-defini justement
|
||||
if (!thenames.Find(name, id)) {
|
||||
sout << " -- Item Unknown in File : " << name
|
||||
<< " lineno " << thenl << " param." << nm << std::endl;
|
||||
<< " lineno " << thenl << " param." << nm << '\n';
|
||||
id = 0;
|
||||
}
|
||||
return thesess->Item(id);
|
||||
|
@ -92,8 +92,8 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
|
||||
(const TCollection_AsciiString& command)
|
||||
{
|
||||
Standard_Integer lc = command.Length();
|
||||
if (lc > 200) std::cout<<" Commande TRES LONGUE : "<<lc<<" caracteres :"<<std::endl
|
||||
<<command.ToCString()<<std::endl;
|
||||
if (lc > 200) std::cout<<" Commande TRES LONGUE : "<<lc<<" caracteres :"<<'\n'
|
||||
<<command.ToCString()<<'\n';
|
||||
thecommand = command;
|
||||
if (thecommand.Value(lc) <= ' ') { thecommand.Remove(lc); lc --; }
|
||||
thenbwords = 0;
|
||||
@ -113,7 +113,7 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
|
||||
continue;
|
||||
}
|
||||
if (nc == 0) thewordeb.SetValue (thenbwords,i);
|
||||
if (nc > MAXCARS) { std::cout<<"Arg."<<thenbwords<<" > "<<MAXCARS<<" car.s, tronque"<<std::endl; continue; }
|
||||
if (nc > MAXCARS) { std::cout<<"Arg."<<thenbwords<<" > "<<MAXCARS<<" car.s, tronque"<<'\n'; continue; }
|
||||
unarg[nc] = val; nc ++;
|
||||
}
|
||||
if (nc > 0) {
|
||||
@ -244,8 +244,8 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
|
||||
if (file != NULL && file[0] != '\0') {
|
||||
fic = OSD_OpenFile (file,"r");
|
||||
if (fic) lefic = 1;
|
||||
else { std::cout<<" ... Script File "<<file<<" not found"<<std::endl; return IFSelect_RetFail; }
|
||||
std::cout << " ... Reading Script File " << file << std::endl;
|
||||
else { std::cout<<" ... Script File "<<file<<" not found"<<'\n'; return IFSelect_RetFail; }
|
||||
std::cout << " ... Reading Script File " << file << '\n';
|
||||
}
|
||||
else fic = stdin;
|
||||
IFSelect_ReturnStatus stat = IFSelect_RetVoid;
|
||||
@ -266,11 +266,11 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
|
||||
stat = Execute(command);
|
||||
if (stat == IFSelect_RetStop) break;
|
||||
if ((stat == IFSelect_RetError || stat == IFSelect_RetFail) && lefic)
|
||||
{ std::cout << " ... Error in Script File, abandon"<<std::endl; break; }
|
||||
{ std::cout << " ... Error in Script File, abandon"<<'\n'; break; }
|
||||
}
|
||||
if (!lefic) return IFSelect_RetStop;
|
||||
fclose(fic);
|
||||
std::cout<<"End of Reading Script File " << file << std::endl;
|
||||
std::cout<<"End of Reading Script File " << file << '\n';
|
||||
if (stat == IFSelect_RetError || stat == IFSelect_RetFail) return stat;
|
||||
return IFSelect_RetVoid; // fin fichier : depiler
|
||||
}
|
||||
@ -296,17 +296,17 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
|
||||
if (!theobjrec.IsNull()) {
|
||||
thesession->RemoveItem(theobjrec); //// depannage ?
|
||||
Standard_Integer addws = thesession->AddItem(theobjrec);
|
||||
if (addws == 0) { std::cout<<"Could not add item to session, sorry"<<std::endl; return IFSelect_RetFail; }
|
||||
if (addws == 0) { std::cout<<"Could not add item to session, sorry"<<'\n'; return IFSelect_RetFail; }
|
||||
}
|
||||
|
||||
if (stat == IFSelect_RetVoid || stat == IFSelect_RetDone) {
|
||||
if (therecord) thecomlist.Append(thecommand);
|
||||
}
|
||||
else if (stat == IFSelect_RetError) std::cout<<"Error in Command : "<<thecommand<<std::endl;
|
||||
else if (stat == IFSelect_RetFail) std::cout << "Execution Failure for : " <<thecommand<<std::endl;
|
||||
else if (stat == IFSelect_RetError) std::cout<<"Error in Command : "<<thecommand<<'\n';
|
||||
else if (stat == IFSelect_RetFail) std::cout << "Execution Failure for : " <<thecommand<<'\n';
|
||||
return stat;
|
||||
}
|
||||
std::cout << " Command : " << thewords(0) << " unknown" << std::endl;
|
||||
std::cout << " Command : " << thewords(0) << " unknown" << '\n';
|
||||
return IFSelect_RetError; // pas reconnu donc incorrect
|
||||
}
|
||||
|
||||
@ -335,7 +335,7 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
|
||||
// on demande un givelist
|
||||
Handle(TColStd_HSequenceOfTransient) list = thesession->GiveList (CommandPart(numword));
|
||||
if (list.IsNull()) {
|
||||
std::cout<<"Nothing selected from : "<<CommandPart(numword)<<std::endl;
|
||||
std::cout<<"Nothing selected from : "<<CommandPart(numword)<<'\n';
|
||||
return IFSelect_RetError;
|
||||
}
|
||||
counter->AddWithGraph (list,thesession->Graph());
|
||||
@ -349,7 +349,7 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
|
||||
(const Standard_CString val) const
|
||||
{
|
||||
Standard_Integer num = thesession->NumberFromLabel (val);
|
||||
if (num < 0) std::cout<<" Label:"<<val<<" ->"<<-num<<" ent.s, refus"<<std::endl;
|
||||
if (num < 0) std::cout<<" Label:"<<val<<" ->"<<-num<<" ent.s, refus"<<'\n';
|
||||
return num;
|
||||
}
|
||||
|
||||
@ -372,7 +372,7 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
|
||||
switch (number) {
|
||||
case -1 : // **** HELP-XSNEW
|
||||
modhelp = 1;
|
||||
std::cout<<" -- Commands candidate for xsnew --"<<std::endl;
|
||||
std::cout<<" -- Commands candidate for xsnew --"<<'\n';
|
||||
// HELP : soit complet (par defaut) soit limite a xsnew
|
||||
Standard_FALLTHROUGH
|
||||
case 0 : { // **** HELP
|
||||
@ -382,20 +382,20 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
|
||||
list = IFSelect_Activator::Commands(modhelp);
|
||||
Standard_Integer nbcom = 0;
|
||||
Standard_Integer nb = list->Length();
|
||||
std::cout << " -- Liste des Commands Disponibles --"<<std::endl;
|
||||
std::cout << " -- Liste des Commands Disponibles --"<<'\n';
|
||||
for (Standard_Integer i = 1; i <= nb; i ++) {
|
||||
const TCollection_AsciiString& uncom = list->Value(i);
|
||||
Standard_Integer loncom = uncom.Length();
|
||||
nbcom ++;
|
||||
if (nbcom > MAXCOMPERLINE) { std::cout<<std::endl; nbcom = 1; }
|
||||
if (nbcom > MAXCOMPERLINE) { std::cout<<'\n'; nbcom = 1; }
|
||||
std::cout<<" "<<uncom;
|
||||
if (nbcom == MAXCOMPERLINE) continue;
|
||||
for (Standard_Integer j = loncom; j < LENGTHFORCOM; j ++) std::cout<<" ";
|
||||
}
|
||||
if (nbcom > 0) std::cout<<std::endl;
|
||||
if (nbcom > 0) std::cout<<'\n';
|
||||
std::cout<<"\nhelp * liste toutes les commandes avec un help sur chacune\n"
|
||||
<<"help <com> liste la ou les commande debutant par <com>"
|
||||
<<" avec un help sur chacune"<<std::endl;
|
||||
<<" avec un help sur chacune"<<'\n';
|
||||
|
||||
// Un Help particulier
|
||||
} else {
|
||||
@ -410,11 +410,11 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
|
||||
(list->Value(i).ToCString(),num,actor)) {
|
||||
if (IFSelect_Activator::Mode (list->Value(i).ToCString()) == 1)
|
||||
std::cout<<"[xsnew name] ";
|
||||
std::cout << list->Value(i) << " : " << actor->Help(num) << std::endl;
|
||||
std::cout << list->Value(i) << " : " << actor->Help(num) << '\n';
|
||||
}
|
||||
}
|
||||
if (nb == 0 && thenbwords > 1) std::cout<<" Command "<<Word(1)<<" unknown. "
|
||||
<< " help (without command) lists all the commands" << std::endl;
|
||||
<< " help (without command) lists all the commands" << '\n';
|
||||
}
|
||||
return IFSelect_RetVoid;
|
||||
}
|
||||
@ -426,51 +426,51 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
|
||||
if (argc < 2) { std::cout << "Donner une option :\n"
|
||||
<<"a : analyse une ligne r : toggle record mode\n"
|
||||
<<"l : list recorded c : clear f nom : sauver dans fichier de nom"
|
||||
<< std::endl; return IFSelect_RetVoid; }
|
||||
<< '\n'; return IFSelect_RetVoid; }
|
||||
switch (arg1[0]) {
|
||||
case 'a' : { // **** command analyse
|
||||
std::cout<<"Command n0 " << number <<" : "<< session->CommandLine()<<std::endl;
|
||||
std::cout<<"Command n0 " << number <<" : "<< session->CommandLine()<<'\n';
|
||||
std::cout<<"Nb Words : " << argc-2 << " :\n";
|
||||
for (Standard_Integer i = 2; i < argc; i ++) {
|
||||
std::cout << " Word." << i-1 << " : " << session->Word(i) <<std::endl;
|
||||
std::cout << " Word." << i-1 << " : " << session->Word(i) <<'\n';
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'c' : session->Clear(); break; // **** command clear
|
||||
case 'f' : {
|
||||
if (argc < 3) { std::cout<<"Donner nom de fichier"<<std::endl; return IFSelect_RetError; }
|
||||
if (argc < 3) { std::cout<<"Donner nom de fichier"<<'\n'; return IFSelect_RetError; }
|
||||
Standard_Integer nb = session->NbCommands();
|
||||
if (nb == 0) { std::cout<<"Aucune commande enregistree"<<std::endl; break; }
|
||||
std::cout << "Nb Commandes enregistrees : " << nb <<std::endl;
|
||||
if (nb == 0) { std::cout<<"Aucune commande enregistree"<<'\n'; break; }
|
||||
std::cout << "Nb Commandes enregistrees : " << nb <<'\n';
|
||||
std::ofstream fout(Word(2).ToCString(),std::ios::out);
|
||||
for (Standard_Integer i = 1; i <= nb; i ++)
|
||||
fout<<session->Command(i)<<std::endl;
|
||||
fout<<session->Command(i)<<'\n';
|
||||
break;
|
||||
}
|
||||
case 'l' : { // **** command list
|
||||
if (session->RecordMode()) std::cout<<" -- Record Mode Actif"<<std::endl;
|
||||
else std::cout<<" -- Record Mode Inactif"<<std::endl;
|
||||
if (session->RecordMode()) std::cout<<" -- Record Mode Actif"<<'\n';
|
||||
else std::cout<<" -- Record Mode Inactif"<<'\n';
|
||||
Standard_Integer nb = session->NbCommands();
|
||||
std::cout << "Nb Commandes enregistrees : " << nb << " :"<<std::endl;
|
||||
std::cout << "Nb Commandes enregistrees : " << nb << " :"<<'\n';
|
||||
for (Standard_Integer i = 1; i <= nb; i ++) {
|
||||
std::cout<<" "<<i<<" "<<session->Command(i)<<std::endl;
|
||||
std::cout<<" "<<i<<" "<<session->Command(i)<<'\n';
|
||||
}
|
||||
break;
|
||||
}
|
||||
case 'r' : { // **** command record
|
||||
Standard_Boolean mode = session->RecordMode();
|
||||
if (mode) std::cout << " -- Record Mode a present Inactif" <<std::endl;
|
||||
else std::cout << " -- Record Mode a present Actif" <<std::endl;
|
||||
if (mode) std::cout << " -- Record Mode a present Inactif" <<'\n';
|
||||
else std::cout << " -- Record Mode a present Actif" <<'\n';
|
||||
session->SetRecordMode(!mode);
|
||||
break;
|
||||
}
|
||||
default : std::cout << "Option de controle de commande non comprise"<<std::endl;
|
||||
default : std::cout << "Option de controle de commande non comprise"<<'\n';
|
||||
}
|
||||
return IFSelect_RetVoid;
|
||||
}
|
||||
|
||||
case 4 : { // **** FILE
|
||||
if (argc < 2) { std::cout<<"Donner nom de fichier"<<std::endl; return IFSelect_RetError; }
|
||||
if (argc < 2) { std::cout<<"Donner nom de fichier"<<'\n'; return IFSelect_RetError; }
|
||||
return session->ReadScript
|
||||
(TCollection_AsciiString(session->Word(1)).ToCString());
|
||||
// On recopie la string parce que Word(1) change tout le temps !
|
||||
@ -478,8 +478,8 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
|
||||
|
||||
case 5 : { // **** XSTEP
|
||||
if (argc < 2) {
|
||||
std::cout<<"xstep : prefixe neutre pour toute commande xstep-draw"<<std::endl
|
||||
<<"xstep command args equivaut a command args"<<std::endl;
|
||||
std::cout<<"xstep : prefixe neutre pour toute commande xstep-draw"<<'\n'
|
||||
<<"xstep command args equivaut a command args"<<'\n';
|
||||
return Do(2,this);
|
||||
} else {
|
||||
RemoveWord(0);
|
||||
@ -488,15 +488,15 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
|
||||
}
|
||||
case 6 : { // **** XSNEW(variable)
|
||||
if (argc < 3) {
|
||||
std::cout<<"xsnew nomvar command [args] creates an item"<<std::endl
|
||||
<<" nomvar : name of item (must be a new name) in the session"<<std::endl;
|
||||
std::cout<<"xsnew nomvar command [args] creates an item"<<'\n'
|
||||
<<" nomvar : name of item (must be a new name) in the session"<<'\n';
|
||||
return Do (-1,this);
|
||||
} else {
|
||||
|
||||
theobjrec.Nullify();
|
||||
TCollection_AsciiString name = Word(1);
|
||||
// Le nom ne doit pas etre deja pris !
|
||||
if (thesession.IsNull()) { std::cout<<"Command with a Name and no Session defined !"<<std::endl; return IFSelect_RetFail; }
|
||||
if (thesession.IsNull()) { std::cout<<"Command with a Name and no Session defined !"<<'\n'; return IFSelect_RetFail; }
|
||||
////// if (thesession->NameIdent(thewords(0).ToCString()) > 0)
|
||||
////// { std::cout<<"Command with name:"<<thewords(0)<<", already taken"<<std::endl; return IFSelect_RetFail; }
|
||||
RemoveWord(0); RemoveWord(0);
|
||||
@ -512,13 +512,13 @@ IFSelect_SessionPilot::IFSelect_SessionPilot (const Standard_CString prompt)
|
||||
Standard_Integer addws =
|
||||
thesession->AddNamedItem(name.ToCString(),theobjrec);
|
||||
theobjrec.Nullify();
|
||||
if (addws == 0) { std::cout<<"Could not add named item:"<<name<<", sorry"<<std::endl; return IFSelect_RetFail; }
|
||||
if (addws == 0) { std::cout<<"Could not add named item:"<<name<<", sorry"<<'\n'; return IFSelect_RetFail; }
|
||||
}
|
||||
else std::cout<<"Remark : xsnew with name:"<<name<<" and no result"<<std::endl;
|
||||
else std::cout<<"Remark : xsnew with name:"<<name<<" and no result"<<'\n';
|
||||
|
||||
return stat;
|
||||
}
|
||||
std::cout << " Command : " << thewords(0) << " unknown" << std::endl;
|
||||
std::cout << " Command : " << thewords(0) << " unknown" << '\n';
|
||||
return IFSelect_RetError; // pas reconnu donc incorrect
|
||||
}
|
||||
}
|
||||
|
@ -149,15 +149,15 @@ IFSelect_SignatureList::IFSelect_SignatureList
|
||||
{
|
||||
Standard_Integer nbtot = 0, nbsign = 0;
|
||||
NCollection_IndexedDataMap<TCollection_AsciiString, Standard_Integer>::Iterator iter(thedicount);
|
||||
S << " Count "<<thename->ToCString()<<"\n ----- -----------"<<std::endl;
|
||||
S << " Count "<<thename->ToCString()<<"\n ----- -----------"<<'\n';
|
||||
for (; iter.More(); iter.Next()) {
|
||||
Standard_Integer val = iter.Value();
|
||||
S << Interface_MSG::Blanks(val,6) << val <<" "<<iter.Key()<<std::endl;
|
||||
S << Interface_MSG::Blanks(val,6) << val <<" "<<iter.Key()<<'\n';
|
||||
nbtot += val;
|
||||
nbsign ++;
|
||||
}
|
||||
if (thenbnuls > 0) S << thename->ToCString()<< " Nul : " << thenbnuls <<std::endl;
|
||||
S << " Nb Total:"<<nbtot<<" for "<<nbsign<<" items"<<std::endl;
|
||||
if (thenbnuls > 0) S << thename->ToCString()<< " Nul : " << thenbnuls <<'\n';
|
||||
S << " Nb Total:"<<nbtot<<" for "<<nbsign<<" items"<<'\n';
|
||||
}
|
||||
|
||||
void IFSelect_SignatureList::PrintList
|
||||
@ -168,7 +168,7 @@ IFSelect_SignatureList::IFSelect_SignatureList
|
||||
if (mod == IFSelect_CountByItem) { PrintCount (S); return; }
|
||||
if (mod == IFSelect_CountSummary) { PrintSum (S); return; }
|
||||
if (!HasEntities()) {
|
||||
S <<" SignatureList "<<Name()<<" : PrintList, list not available"<<std::endl;
|
||||
S <<" SignatureList "<<Name()<<" : PrintList, list not available"<<'\n';
|
||||
PrintCount(S);
|
||||
return;
|
||||
}
|
||||
@ -176,8 +176,8 @@ IFSelect_SignatureList::IFSelect_SignatureList
|
||||
NCollection_IndexedDataMap<TCollection_AsciiString, Handle(Standard_Transient)>::Iterator iter(thediclist);
|
||||
for (; iter.More(); iter.Next()) {
|
||||
DeclareAndCast(TColStd_HSequenceOfTransient,list,iter.Value());
|
||||
S<<Name()<<" : "<<iter.Key()<<std::endl;
|
||||
if (list.IsNull()) { S<<" - (empty list)"<<std::endl; continue; }
|
||||
S<<Name()<<" : "<<iter.Key()<<'\n';
|
||||
if (list.IsNull()) { S<<" - (empty list)"<<'\n'; continue; }
|
||||
Standard_Integer nb = list->Length();
|
||||
S<<" - Nb: "<<nb<<" : ";
|
||||
Standard_Integer nc = nb; if (nb > 5 && mod == IFSelect_ShortByItem) nc = 5;
|
||||
@ -194,18 +194,18 @@ IFSelect_SignatureList::IFSelect_SignatureList
|
||||
{ S<<":"; model->PrintLabel(list->Value(i), S); }
|
||||
}
|
||||
if (nc < nb) S<<" .. etc";
|
||||
S<<std::endl;
|
||||
S<<'\n';
|
||||
nbtot += nb;
|
||||
nbsign ++;
|
||||
}
|
||||
S <<" Nb Total:"<<nbtot<<" for "<<nbsign<<" items"<<std::endl;
|
||||
S <<" Nb Total:"<<nbtot<<" for "<<nbsign<<" items"<<'\n';
|
||||
}
|
||||
|
||||
|
||||
void IFSelect_SignatureList::PrintSum (Standard_OStream& S) const
|
||||
{
|
||||
NCollection_IndexedDataMap<TCollection_AsciiString, Standard_Integer>::Iterator iter(thedicount);
|
||||
S << " Summary "<<thename->ToCString()<<"\n ----- -----------"<<std::endl;
|
||||
S << " Summary "<<thename->ToCString()<<"\n ----- -----------"<<'\n';
|
||||
Standard_Integer nbtot = 0, nbsign = 0, maxent = 0, nbval = 0, nbve = 0, minval = 0, maxval = 0, totval = 0;
|
||||
for (; iter.More(); iter.Next()) {
|
||||
Standard_Integer nbent = iter.Value();
|
||||
@ -231,18 +231,18 @@ IFSelect_SignatureList::IFSelect_SignatureList
|
||||
nbve += nbent;
|
||||
totval += (val*nbent);
|
||||
}
|
||||
S << " Nb Total:"<<nbtot<<" for "<<nbsign<<" items"<<std::endl;
|
||||
S << " Highest count of entities : "<<maxent<<" on one item"<<std::endl;
|
||||
S << " Nb Total:"<<nbtot<<" for "<<nbsign<<" items"<<'\n';
|
||||
S << " Highest count of entities : "<<maxent<<" on one item"<<'\n';
|
||||
if (nbval > 0) {
|
||||
S<<" Summary on Integer Values"<<std::endl;
|
||||
S<<" Nb Integer Items : "<<nbval<<std::endl;
|
||||
S<<" For Nb Entities : "<<nbve<<std::endl;
|
||||
S<<" Cumulated Values : "<<totval<<std::endl;
|
||||
S <<" Maximum Value : "<<maxval<<std::endl;
|
||||
S<<" Summary on Integer Values"<<'\n';
|
||||
S<<" Nb Integer Items : "<<nbval<<'\n';
|
||||
S<<" For Nb Entities : "<<nbve<<'\n';
|
||||
S<<" Cumulated Values : "<<totval<<'\n';
|
||||
S <<" Maximum Value : "<<maxval<<'\n';
|
||||
Standard_Integer avg1, avg2;
|
||||
avg1 = totval/nbve;
|
||||
avg2 = ((totval - (avg1*nbve)) * 10) / nbve;
|
||||
S <<" Average Value : "<<avg1<<" "<<avg2<<"/10"<<std::endl;
|
||||
S <<" Minimum Value : "<<minval<<std::endl;
|
||||
S <<" Average Value : "<<avg1<<" "<<avg2<<"/10"<<'\n';
|
||||
S <<" Minimum Value : "<<minval<<'\n';
|
||||
}
|
||||
}
|
||||
|
@ -176,11 +176,11 @@ IFSelect_TransformStandard::IFSelect_TransformStandard ()
|
||||
Interface_CheckIterator checklist = ctx.CheckList();
|
||||
if (!checklist.IsEmpty(Standard_False)) {
|
||||
checks.Merge(checklist);
|
||||
sout<<"IFSelect_TransformStandard : Messages from Modifier n0 "<<i<<" of "<<nb<<std::endl;
|
||||
sout<<"IFSelect_TransformStandard : Messages from Modifier n0 "<<i<<" of "<<nb<<'\n';
|
||||
checklist.Print(sout,newmod,Standard_False);
|
||||
}
|
||||
if (!checklist.IsEmpty(Standard_True)) {
|
||||
sout<<" -- Abandon TransformStandard --"<<std::endl;
|
||||
sout<<" -- Abandon TransformStandard --"<<'\n';
|
||||
res = Standard_False; break;
|
||||
}
|
||||
}
|
||||
|
@ -207,7 +207,7 @@ IFSelect_ReturnStatus IFSelect_WorkSession::ReadFile(const Standard_CString fil
|
||||
Message_Messenger::StreamBuffer sout = Message::SendInfo();
|
||||
sout<<" **** Interruption ReadFile par Exception : ****\n";
|
||||
sout << anException.GetMessageString();
|
||||
sout<<"\n Abandon"<<std::endl;
|
||||
sout<<"\n Abandon"<<'\n';
|
||||
status = IFSelect_RetFail;
|
||||
}
|
||||
if (status != IFSelect_RetDone) return status;
|
||||
@ -240,7 +240,7 @@ IFSelect_ReturnStatus IFSelect_WorkSession::ReadStream(const Standard_CString t
|
||||
Message_Messenger::StreamBuffer sout = Message::SendInfo();
|
||||
sout << " **** Interruption ReadFile par Exception : ****\n";
|
||||
sout << anException.GetMessageString();
|
||||
sout << "\n Abandon" << std::endl;
|
||||
sout << "\n Abandon" << '\n';
|
||||
status = IFSelect_RetFail;
|
||||
}
|
||||
if (status != IFSelect_RetDone) return status;
|
||||
@ -1263,7 +1263,7 @@ Interface_EntityIterator IFSelect_WorkSession::EvalSelection
|
||||
Message_Messenger::StreamBuffer sout = Message::SendInfo();
|
||||
sout<<" **** Interruption EvalSelection par Exception : ****\n";
|
||||
sout<<anException.GetMessageString();
|
||||
sout<<"\n Abandon"<<std::endl;
|
||||
sout<<"\n Abandon"<<'\n';
|
||||
}
|
||||
errhand = theerrhand;
|
||||
return iter;
|
||||
@ -1306,19 +1306,19 @@ Handle(TColStd_HSequenceOfTransient) IFSelect_WorkSession::SelectionResult
|
||||
Message_Messenger::StreamBuffer sout = Message::SendInfo();
|
||||
sout<<" **** Interruption SelectionResult par Exception : ****\n";
|
||||
sout<<anException.GetMessageString();
|
||||
sout<<"\n Abandon"<<std::endl;
|
||||
sout<<"\n Abandon"<<'\n';
|
||||
}
|
||||
errhand = theerrhand;
|
||||
return res;
|
||||
}
|
||||
|
||||
if (!IsLoaded()) {
|
||||
std::cout<< " *** Data for Evaluation not available ***"<<std::endl;
|
||||
std::cout<< " *** Data for Evaluation not available ***"<<'\n';
|
||||
return new TColStd_HSequenceOfTransient();
|
||||
}
|
||||
// if (ItemIdent(sel) == 0)
|
||||
if (sel.IsNull())
|
||||
{ std::cout << " Selection : Unknown"<<std::endl; return res; } //std::cout<<Handle
|
||||
{ std::cout << " Selection : Unknown"<<'\n'; return res; } //std::cout<<Handle
|
||||
return EvalSelection (sel).Content();
|
||||
}
|
||||
|
||||
@ -1724,7 +1724,7 @@ Standard_Integer IFSelect_WorkSession::RunTransformer
|
||||
|
||||
if (!checks.IsEmpty(Standard_False)) {
|
||||
Message_Messenger::StreamBuffer sout = Message::SendInfo();
|
||||
sout<<" ** RunTransformer has produced Check Messages : **"<<std::endl;
|
||||
sout<<" ** RunTransformer has produced Check Messages : **"<<'\n';
|
||||
checks.Print (sout,myModel,Standard_False);
|
||||
}
|
||||
thecheckdone = Standard_False;
|
||||
@ -2039,7 +2039,7 @@ void IFSelect_WorkSession::EvaluateFile ()
|
||||
Message_Messenger::StreamBuffer sout = Message::SendInfo();
|
||||
sout<<" **** Interruption EvaluateFile par Exception : ****\n";
|
||||
sout<<anException.GetMessageString();
|
||||
sout<<"\n Abandon"<<std::endl;
|
||||
sout<<"\n Abandon"<<'\n';
|
||||
checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
|
||||
}
|
||||
errhand = theerrhand;
|
||||
@ -2051,7 +2051,7 @@ void IFSelect_WorkSession::EvaluateFile ()
|
||||
checks = thecopier->Copy (R,thelibrary,theprotocol);
|
||||
if (!checks.IsEmpty(Standard_False)) {
|
||||
Message_Messenger::StreamBuffer sout = Message::SendInfo();
|
||||
sout<<" ** EvaluateFile has produced Check Messages : **"<<std::endl;
|
||||
sout<<" ** EvaluateFile has produced Check Messages : **"<<'\n';
|
||||
checks.Print (sout,myModel,Standard_False);
|
||||
}
|
||||
thecopier->SetRemaining (thegraph->CGraph());
|
||||
@ -2143,7 +2143,7 @@ Standard_Boolean IFSelect_WorkSession::SendSplit ()
|
||||
Message_Messenger::StreamBuffer sout = Message::SendInfo();
|
||||
sout<<" **** Interruption SendSplit par Exception : ****\n";
|
||||
sout<<anException.GetMessageString();
|
||||
sout<<"\n Abandon"<<std::endl;
|
||||
sout<<"\n Abandon"<<'\n';
|
||||
checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
|
||||
}
|
||||
errhand = theerrhand;
|
||||
@ -2158,7 +2158,7 @@ Standard_Boolean IFSelect_WorkSession::SendSplit ()
|
||||
}
|
||||
if (!IsLoaded()) {
|
||||
Message_Messenger::StreamBuffer sout = Message::SendInfo();
|
||||
sout<< " *** Data for SendSplit not available ***"<<std::endl;
|
||||
sout<< " *** Data for SendSplit not available ***"<<'\n';
|
||||
checks.CCheck(0)->AddFail("Data not available");
|
||||
thecheckrun = checks;
|
||||
return Standard_False;
|
||||
@ -2199,10 +2199,10 @@ Standard_Boolean IFSelect_WorkSession::SendSplit ()
|
||||
filepart = FileExtension();
|
||||
if (!filepart.IsNull()) filnam.AssignCat (filepart->ToCString());
|
||||
IFSelect_ReturnStatus stat = SendSelected (filnam.ToCString(),sp);
|
||||
if (stat != IFSelect_RetDone) std::cout<<"File "<<filnam<<" failed"<<std::endl;
|
||||
if (stat != IFSelect_RetDone) std::cout<<"File "<<filnam<<" failed"<<'\n';
|
||||
}
|
||||
}
|
||||
sout<<" .. Files Written : "<<nf<<std::endl;
|
||||
sout<<" .. Files Written : "<<nf<<'\n';
|
||||
}
|
||||
thecheckrun = checks;
|
||||
return Standard_True;
|
||||
@ -2286,9 +2286,9 @@ Standard_Boolean IFSelect_WorkSession::SetRemaining
|
||||
Interface_CopyTool TC(myModel,theprotocol);
|
||||
thecopier->CopiedRemaining (thegraph->Graph(),thelibrary,TC,newmod);
|
||||
if (newmod.IsNull()) {
|
||||
sout<<" No Remaining Data recorded"<<std::endl; return Standard_False;
|
||||
sout<<" No Remaining Data recorded"<<'\n'; return Standard_False;
|
||||
} else if (newmod == myModel) {
|
||||
sout<<" Remaining causes all original data to be kept"<<std::endl;
|
||||
sout<<" Remaining causes all original data to be kept"<<'\n';
|
||||
thecopier->SetRemaining (thegraph->CGraph());
|
||||
return Standard_False;
|
||||
} else {
|
||||
@ -2310,17 +2310,17 @@ Standard_Boolean IFSelect_WorkSession::SetRemaining
|
||||
for (Standard_Integer i = 1; i <= nb; i ++)
|
||||
{ if (thegraph->Graph().Status(i) >= 0) ne ++; }
|
||||
if (ne == 0) {
|
||||
sout<<" - All entities are remaining, none yet sent"<<std::endl; return Standard_True;
|
||||
sout<<" - All entities are remaining, none yet sent"<<'\n'; return Standard_True;
|
||||
}
|
||||
Interface_EntityIterator iter = SentList(0);
|
||||
nb = iter.NbEntities();
|
||||
if (nb == 0) {
|
||||
sout<<" - No recorded remaining entities"<<std::endl; return Standard_True;
|
||||
sout<<" - No recorded remaining entities"<<'\n'; return Standard_True;
|
||||
}
|
||||
sout <<" -- Recorded Remaining (not yet sent) Entities --"<<std::endl;
|
||||
sout <<" -- Recorded Remaining (not yet sent) Entities --"<<'\n';
|
||||
ListEntities (iter, 2, sout);
|
||||
sout << " -- Maximum Sending Count (i.e. duplication in files) "<<
|
||||
MaxSendingCount() << std::endl;
|
||||
MaxSendingCount() << '\n';
|
||||
|
||||
/*
|
||||
sout<< " - Now, dispatches are deactivated"<<std::endl;
|
||||
@ -2366,7 +2366,7 @@ IFSelect_ReturnStatus IFSelect_WorkSession::SendAll
|
||||
Message_Messenger::StreamBuffer sout = Message::SendInfo();
|
||||
sout<<" **** Interruption SendAll par Exception : ****\n";
|
||||
sout<<anException.GetMessageString();
|
||||
sout<<"\n Abandon"<<std::endl;
|
||||
sout<<"\n Abandon"<<'\n';
|
||||
errhand = theerrhand;
|
||||
checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
|
||||
thecheckrun = checks;
|
||||
@ -2416,7 +2416,7 @@ IFSelect_ReturnStatus IFSelect_WorkSession::SendSelected
|
||||
Message_Messenger::StreamBuffer sout = Message::SendInfo();
|
||||
sout<<" **** Interruption SendSelected par Exception : ****\n";
|
||||
sout<<anException.GetMessageString();
|
||||
sout<<"\n Abandon"<<std::endl;
|
||||
sout<<"\n Abandon"<<'\n';
|
||||
checks.CCheck(0)->AddFail ("Exception Raised -> Abandon");
|
||||
errhand = theerrhand;
|
||||
thecheckrun = checks;
|
||||
@ -2861,30 +2861,30 @@ void IFSelect_WorkSession::TraceStatics
|
||||
{
|
||||
Message_Messenger::StreamBuffer sout = Message::SendInfo();
|
||||
if (use > 0) {
|
||||
if (mode == 0) sout<<"******************************************"<<std::endl;
|
||||
if (mode == 0) sout<<"******************************************"<<'\n';
|
||||
if (use == 1) {
|
||||
if (mode == 0) sout<<"***** General Parameters *****"<<std::endl;
|
||||
if (mode == 0) sout<<"***** General Parameters *****"<<'\n';
|
||||
} else if (use == 2) {
|
||||
if (mode == 0) sout<<"***** Load File *****"<<std::endl;
|
||||
if (mode == 0) sout<<"***** Load File *****"<<'\n';
|
||||
} else if (use == 3) {
|
||||
if (mode == 0) sout<<"***** Write File *****"<<std::endl;
|
||||
if (mode == 0) sout<<"***** Write File *****"<<'\n';
|
||||
} else if (use == 4) {
|
||||
if (mode == 0) sout<<"***** Split File *****"<<std::endl;
|
||||
if (mode == 0) sout<<"***** Split File *****"<<'\n';
|
||||
} else if (use == 5) {
|
||||
if (mode == 0) sout<<"***** Transfer (Read) *****"<<std::endl;
|
||||
if (mode == 0) sout<<"***** Transfer (Read) *****"<<'\n';
|
||||
} else if (use == 6) {
|
||||
if (mode == 0) sout<<"***** Transfer (Write) *****"<<std::endl;
|
||||
if (mode == 0) sout<<"***** Transfer (Write) *****"<<'\n';
|
||||
}
|
||||
if (mode == 0) sout<<"******************************************"<<std::endl<<std::endl;
|
||||
if (mode == 0) sout<<"******************************************"<<'\n'<<'\n';
|
||||
}
|
||||
|
||||
// Echainements particuliers (use > 0)
|
||||
if (use == 5) {
|
||||
TraceStatics (-2,mode);
|
||||
if (mode == 0) sout<<std::endl;
|
||||
if (mode == 0) sout<<'\n';
|
||||
} else if (use == 4 || use == 6) {
|
||||
TraceStatics (-3,mode);
|
||||
if (mode == 0) sout<<std::endl;
|
||||
if (mode == 0) sout<<'\n';
|
||||
}
|
||||
|
||||
// Valeurs particulieres
|
||||
@ -2895,14 +2895,14 @@ void IFSelect_WorkSession::TraceStatics
|
||||
} else if (use == 4 || use == -4) { // Split : Prefix & cie
|
||||
if (mode == 0) {
|
||||
Handle(TCollection_HAsciiString) str = theshareout->Prefix();
|
||||
if (!str.IsNull()) sout << "Prefix : "<<str->ToCString()<<std::endl;
|
||||
else sout << "Prefix not Defined" << std::endl;
|
||||
if (!str.IsNull()) sout << "Prefix : "<<str->ToCString()<<'\n';
|
||||
else sout << "Prefix not Defined" << '\n';
|
||||
str = theshareout->DefaultRootName();
|
||||
if (!str.IsNull()) sout << "Default Root : "<<str->ToCString()<<std::endl;
|
||||
else sout << "Default Root not Defined" << std::endl;
|
||||
if (!str.IsNull()) sout << "Default Root : "<<str->ToCString()<<'\n';
|
||||
else sout << "Default Root not Defined" << '\n';
|
||||
str = theshareout->Extension();
|
||||
if (!str.IsNull()) sout << "Extension : "<<str->ToCString()<<std::endl;
|
||||
else sout << "Extension not defined" << std::endl;
|
||||
if (!str.IsNull()) sout << "Extension : "<<str->ToCString()<<'\n';
|
||||
else sout << "Extension not defined" << '\n';
|
||||
}
|
||||
}
|
||||
|
||||
@ -2911,7 +2911,7 @@ void IFSelect_WorkSession::TraceStatics
|
||||
|
||||
// Fin
|
||||
if (use > 0) {
|
||||
if (mode == 0) sout<<"******************************************"<<std::endl<<std::endl;
|
||||
if (mode == 0) sout<<"******************************************"<<'\n'<<'\n';
|
||||
}
|
||||
}
|
||||
|
||||
@ -2924,42 +2924,42 @@ void IFSelect_WorkSession::TraceStatics
|
||||
void IFSelect_WorkSession::DumpShare () const
|
||||
{
|
||||
Message_Messenger::StreamBuffer sout = Message::SendInfo();
|
||||
sout<<" ********** Definition ShareOut (Complete) **********"<<std::endl;
|
||||
sout<<" ********** Definition ShareOut (Complete) **********"<<'\n';
|
||||
|
||||
Handle(TCollection_HAsciiString) str = theshareout->Prefix();
|
||||
if (!str.IsNull()) sout << "Prefix : " << str->ToCString() << std::endl;
|
||||
else sout << "Prefix not Defined" << std::endl;
|
||||
if (!str.IsNull()) sout << "Prefix : " << str->ToCString() << '\n';
|
||||
else sout << "Prefix not Defined" << '\n';
|
||||
str = theshareout->DefaultRootName();
|
||||
if (!str.IsNull()) sout << "Default Root : " << str->ToCString() << std::endl;
|
||||
else sout << "Default Root not Defined" << std::endl;
|
||||
if (!str.IsNull()) sout << "Default Root : " << str->ToCString() << '\n';
|
||||
else sout << "Default Root not Defined" << '\n';
|
||||
str = theshareout->Extension();
|
||||
if (!str.IsNull()) sout << "Extension : " << str->ToCString() << std::endl;
|
||||
else sout << "Extension not defined" << std::endl;
|
||||
if (!str.IsNull()) sout << "Extension : " << str->ToCString() << '\n';
|
||||
else sout << "Extension not defined" << '\n';
|
||||
|
||||
Standard_Integer lr = theshareout->LastRun();
|
||||
Standard_Integer nb = theshareout->NbDispatches();
|
||||
sout << "Nb Dispatches : " << nb <<" (Last Run : " << lr << ") : "<<std::endl;
|
||||
sout << "Nb Dispatches : " << nb <<" (Last Run : " << lr << ") : "<<'\n';
|
||||
for (Standard_Integer i = 1; i <= nb; i ++) {
|
||||
Handle(IFSelect_Dispatch) disp = theshareout->Dispatch(i);
|
||||
sout << "Dispatch n0 " << i;
|
||||
if (HasName(disp)) sout << " Name:"<< Name(disp)->ToCString();
|
||||
sout << " Label:" << disp->Label() << std::endl;
|
||||
sout << " Label:" << disp->Label() << '\n';
|
||||
Handle(IFSelect_Selection) sel = disp->FinalSelection();
|
||||
if (sel.IsNull()) sout << " No Final Selection Defined" << std::endl;
|
||||
if (sel.IsNull()) sout << " No Final Selection Defined" << '\n';
|
||||
else if (HasName(sel)) sout << " Final Selection : Name:"
|
||||
<< Name(sel)->ToCString() << " Label:" << sel->Label() << std::endl;
|
||||
else sout << " Final Selection : " << sel->Label() << std::endl;
|
||||
<< Name(sel)->ToCString() << " Label:" << sel->Label() << '\n';
|
||||
else sout << " Final Selection : " << sel->Label() << '\n';
|
||||
if (disp->HasRootName())
|
||||
sout<<" File Root Name : "<<disp->RootName()->ToCString()<<std::endl;
|
||||
else sout<<" No specific file root name (see Default Root)"<<std::endl;
|
||||
sout<<" File Root Name : "<<disp->RootName()->ToCString()<<'\n';
|
||||
else sout<<" No specific file root name (see Default Root)"<<'\n';
|
||||
}
|
||||
Standard_Integer nbm = theshareout->NbModifiers(Standard_True);
|
||||
if (nbm > 0) sout<<
|
||||
" *** "<<nbm<<" active Model Modifiers : see ListModifiers ***"<<std::endl;
|
||||
" *** "<<nbm<<" active Model Modifiers : see ListModifiers ***"<<'\n';
|
||||
Standard_Integer nbf = theshareout->NbModifiers(Standard_False);
|
||||
if (nbf > 0) sout<<
|
||||
" *** "<<nbf<<" active File Modifiers : see ListModifiers ***"<<std::endl;
|
||||
if (nbm+nbf == 0) sout<<" *** No active Modifiers ***"<<std::endl;
|
||||
" *** "<<nbf<<" active File Modifiers : see ListModifiers ***"<<'\n';
|
||||
if (nbm+nbf == 0) sout<<" *** No active Modifiers ***"<<'\n';
|
||||
}
|
||||
|
||||
// #### #### #### #### #### #### #### #### ####
|
||||
@ -2973,7 +2973,7 @@ void IFSelect_WorkSession::DumpShare () const
|
||||
void IFSelect_WorkSession::ListItems (const Standard_CString lab) const
|
||||
{
|
||||
Message_Messenger::StreamBuffer sout = Message::SendInfo();
|
||||
sout<< " ********** Items in Session **********"<<std::endl;
|
||||
sout<< " ********** Items in Session **********"<<'\n';
|
||||
Standard_Integer nb = MaxIdent();
|
||||
Handle(TCollection_HAsciiString) str;
|
||||
if (lab[0] != '\0') str = new TCollection_HAsciiString (lab);
|
||||
@ -2985,7 +2985,7 @@ void IFSelect_WorkSession::ListItems (const Standard_CString lab) const
|
||||
sout<<"#"<<i;
|
||||
if (HasName(var)) sout<<" - Named : "<<Name(var)->ToCString()<<" - ";
|
||||
else sout<<" - (no name) - ";
|
||||
sout<<var->DynamicType()->Name()<<std::endl<<" "<<label->ToCString()<<std::endl;
|
||||
sout<<var->DynamicType()->Name()<<'\n'<<" "<<label->ToCString()<<'\n';
|
||||
}
|
||||
}
|
||||
|
||||
@ -3004,13 +3004,13 @@ void IFSelect_WorkSession::ListFinalModifiers
|
||||
Standard_Integer nb = theshareout->NbModifiers(formodel);
|
||||
sout<< " ********** Modifiers in Session ";
|
||||
sout<<(formodel ? "(For Model)" : "(For File)");
|
||||
sout<<": "<<nb<<" **********"<<std::endl;
|
||||
sout<<": "<<nb<<" **********"<<'\n';
|
||||
for (Standard_Integer i = 1; i <= nb; i ++) {
|
||||
Handle(IFSelect_GeneralModifier) modif =
|
||||
theshareout->GeneralModifier(formodel,i);
|
||||
if (!modif.IsNull()) sout<<"Modifier n0."<<i<<" : "<<modif->Label();
|
||||
if (HasName(modif)) sout << " Named as : " << Name(modif)->ToCString();
|
||||
sout<<std::endl;
|
||||
sout<<'\n';
|
||||
}
|
||||
}
|
||||
|
||||
@ -3027,21 +3027,21 @@ void IFSelect_WorkSession::DumpSelection
|
||||
{
|
||||
Message_Messenger::StreamBuffer sout = Message::SendInfo();
|
||||
if (ItemIdent(sel) == 0) {
|
||||
sout << "Selection : Unknown"<<std::endl; //sout<<Handle
|
||||
sout << "Selection : Unknown"<<'\n'; //sout<<Handle
|
||||
return;
|
||||
}
|
||||
sout << " ********** Selection";
|
||||
if (HasName(sel)) sout << " , Name : " << Name(sel)->ToCString();
|
||||
sout <<" **********"<<std::endl;
|
||||
sout<< "Label : " << sel->Label() << " . Input(s) : "<< std::endl;
|
||||
sout <<" **********"<<'\n';
|
||||
sout<< "Label : " << sel->Label() << " . Input(s) : "<< '\n';
|
||||
Standard_Integer nb = 0;
|
||||
IFSelect_SelectionIterator iter; sel->FillIterator(iter);
|
||||
for (; iter.More(); iter.Next()) {
|
||||
nb ++;
|
||||
const Handle(IFSelect_Selection)& newsel = iter.Value();
|
||||
sout<<" -- "<<newsel->Label()<<std::endl;
|
||||
sout<<" -- "<<newsel->Label()<<'\n';
|
||||
}
|
||||
sout << " Nb Inputs:"<<nb<<std::endl;
|
||||
sout << " Nb Inputs:"<<nb<<'\n';
|
||||
}
|
||||
|
||||
|
||||
@ -3093,7 +3093,7 @@ Handle(IFSelect_Selection) IFSelect_WorkSession::GiveSelection
|
||||
else if (!cnt.IsNull()) selsign =
|
||||
new IFSelect_SelectSignature (cnt,&nomsel[debsign],Standard_False);
|
||||
else {
|
||||
std::cout<<selname<<" : neither Signature nor Counter"<<std::endl;
|
||||
std::cout<<selname<<" : neither Signature nor Counter"<<'\n';
|
||||
return sel;
|
||||
}
|
||||
|
||||
@ -3229,7 +3229,7 @@ Handle(TColStd_HSequenceOfTransient) IFSelect_WorkSession::GiveListFromList
|
||||
|
||||
Handle(IFSelect_Selection) sel = GiveSelection (nomsel);
|
||||
if (sel.IsNull()) {
|
||||
std::cout<<"Neither Entity Number/Label nor Selection :"<<nomsel<<std::endl;
|
||||
std::cout<<"Neither Entity Number/Label nor Selection :"<<nomsel<<'\n';
|
||||
return list;
|
||||
}
|
||||
|
||||
@ -3294,15 +3294,15 @@ void IFSelect_WorkSession::DumpModel
|
||||
(const Standard_Integer level, Standard_OStream& S)
|
||||
{
|
||||
if (!IsLoaded())
|
||||
{ S << " *** Data for List not available ***"<<std::endl; return; }
|
||||
{ S << " *** Data for List not available ***"<<'\n'; return; }
|
||||
S << "\n *****************************************************************\n";
|
||||
if (theloaded.Length() > 0)
|
||||
S << " ******** Loaded File : "<<theloaded.ToCString()<<Interface_MSG::Blanks(32-theloaded.Length())<<" ********"<<std::endl;
|
||||
else S << " ******** No name for Loaded File"<<std::endl;
|
||||
S << " ******** Loaded File : "<<theloaded.ToCString()<<Interface_MSG::Blanks(32-theloaded.Length())<<" ********"<<'\n';
|
||||
else S << " ******** No name for Loaded File"<<'\n';
|
||||
if (level == 0) {
|
||||
S <<" ******** Short Dump of Header ********\n";
|
||||
S << " *****************************************************************\n\n";
|
||||
myModel->DumpHeader (S); S <<std::endl;
|
||||
myModel->DumpHeader (S); S <<'\n';
|
||||
}
|
||||
|
||||
Standard_Integer nbent = myModel->NbEntities();
|
||||
@ -3314,7 +3314,7 @@ void IFSelect_WorkSession::DumpModel
|
||||
}
|
||||
S << " *****************************************************************\n"
|
||||
<< " ******** Model : "<<nbent<<" Entities, of which "<<nbr<<" Root(s)\n"
|
||||
<< " *****************************************************************\n"<<std::endl;
|
||||
<< " *****************************************************************\n"<<'\n';
|
||||
|
||||
if (level <= 0) return;
|
||||
else if (level == 1) {
|
||||
@ -3330,8 +3330,8 @@ void IFSelect_WorkSession::DumpModel
|
||||
if (level == 7 || level == 10) mode = IFSelect_EntitiesByItem;
|
||||
PrintCheckList (S, ModelCheckList(),Standard_False, mode);
|
||||
} else {
|
||||
if (level == 3) S << " ******** Check Model (Fails) ********"<<std::endl;
|
||||
else S << " ******** Check Model (Complete) ********"<<std::endl;
|
||||
if (level == 3) S << " ******** Check Model (Fails) ********"<<'\n';
|
||||
else S << " ******** Check Model (Complete) ********"<<'\n';
|
||||
Interface_CheckTool CT (Graph());
|
||||
Interface_CheckIterator C;
|
||||
if (theerrhand) {
|
||||
@ -3344,7 +3344,7 @@ void IFSelect_WorkSession::DumpModel
|
||||
Message_Messenger::StreamBuffer sout = Message::SendInfo();
|
||||
sout<<" **** Interruption DumpModel (Check) par Exception ****\n";
|
||||
S <<" ** ** Exception Raised during Check ! ** **\n";
|
||||
S <<" --> what could be determined is listed"<<std::endl;
|
||||
S <<" --> what could be determined is listed"<<'\n';
|
||||
}
|
||||
}
|
||||
else if (level == 3) C = CT.CheckList();
|
||||
@ -3359,11 +3359,11 @@ void IFSelect_WorkSession::DumpModel
|
||||
Message_Messenger::StreamBuffer sout = Message::SendInfo();
|
||||
sout<<" **** Interruption DumpModel par Exception : ****\n";
|
||||
sout<<anException.GetMessageString();
|
||||
sout<<"\n Abandon"<<std::endl;
|
||||
sout<<"\n Abandon"<<'\n';
|
||||
}
|
||||
|
||||
}
|
||||
S <<std::endl<<"There are "<<nbent<<" Entities, of which "<<nbr<<" Root(s)"<<std::endl;
|
||||
S <<'\n'<<"There are "<<nbent<<" Entities, of which "<<nbr<<" Root(s)"<<'\n';
|
||||
}
|
||||
|
||||
// .... TraceDumpModel .... (Model + CheckList)
|
||||
@ -3396,12 +3396,12 @@ void IFSelect_WorkSession::DumpEntity
|
||||
Standard_OStream& S) const
|
||||
{
|
||||
if (!IsLoaded())
|
||||
{ S << " *** Data for List not available ***"<<std::endl; return; }
|
||||
{ S << " *** Data for List not available ***"<<'\n'; return; }
|
||||
Standard_Integer num = myModel->Number(ent);
|
||||
if (num == 0) { S <<" *** Entity to Dump not in the Model ***"<<std::endl; return; }
|
||||
if (thelibrary.IsNull()) { S <<" *** WorkLibrary not defined ***"<<std::endl; return; }
|
||||
if (num == 0) { S <<" *** Entity to Dump not in the Model ***"<<'\n'; return; }
|
||||
if (thelibrary.IsNull()) { S <<" *** WorkLibrary not defined ***"<<'\n'; return; }
|
||||
S << " ******** Dumping Entity n0 "<<num
|
||||
<<" level:"<<level<<" ********"<<std::endl;
|
||||
<<" level:"<<level<<" ********"<<'\n';
|
||||
thelibrary->DumpEntity (myModel,theprotocol,ent,S,level);
|
||||
}
|
||||
|
||||
@ -3431,38 +3431,38 @@ void IFSelect_WorkSession::PrintEntityStatus
|
||||
{
|
||||
Standard_Integer i,nb;
|
||||
Standard_Integer num = StartingNumber(ent);
|
||||
if (num == 0) { std::cout<<" -- PrintEntityStatus : unknown"<<std::endl; return; }
|
||||
if (num == 0) { std::cout<<" -- PrintEntityStatus : unknown"<<'\n'; return; }
|
||||
|
||||
S <<" Ent. n0/id: ";
|
||||
myModel->Print (ent, S);
|
||||
Handle(TCollection_HAsciiString) hname = EntityName(ent);
|
||||
if (!hname.IsNull() && hname->Length() > 0) S <<" Name:"<<hname->ToCString();
|
||||
S <<std::endl;
|
||||
S <<'\n';
|
||||
Handle(IFSelect_Signature) signtype = SignType();
|
||||
if (signtype.IsNull()) S <<" Type(CDL):"<<ent->DynamicType()->Name()<<std::endl;
|
||||
else S <<" Type:"<<signtype->Value (ent,myModel)<<std::endl;
|
||||
if (signtype.IsNull()) S <<" Type(CDL):"<<ent->DynamicType()->Name()<<'\n';
|
||||
else S <<" Type:"<<signtype->Value (ent,myModel)<<'\n';
|
||||
S <<" Category : " <<CategoryName (ent)
|
||||
<<" Validity : " <<ValidityName (ent) << std::endl;
|
||||
<<" Validity : " <<ValidityName (ent) << '\n';
|
||||
Interface_CheckIterator chl = CheckOne (ent);
|
||||
chl.Print (S,myModel,Standard_False,Standard_False);
|
||||
|
||||
Handle(TColStd_HSequenceOfTransient) list = Sharings(ent);
|
||||
if (list.IsNull()) S <<" Root"<<std::endl;
|
||||
if (list.IsNull()) S <<" Root"<<'\n';
|
||||
else {
|
||||
nb = list->Length();
|
||||
if (nb == 0) S <<" Root";
|
||||
else S <<" Super-entities:"<<nb<<" : (n0/id):";
|
||||
for (i = 1; i <= nb; i ++) { S <<" "; myModel->Print(list->Value(i), S); }
|
||||
S <<std::endl;
|
||||
S <<'\n';
|
||||
}
|
||||
list = Shareds (ent);
|
||||
if (list.IsNull()) S <<" No sub-entity"<<std::endl;
|
||||
if (list.IsNull()) S <<" No sub-entity"<<'\n';
|
||||
else {
|
||||
nb = list->Length();
|
||||
if (nb == 0) S <<" No sub-entity";
|
||||
else S <<" Sub-entities:"<<nb<<" , i.e. (n0/id):";
|
||||
for (i = 1; i <= nb; i ++) { S <<" "; myModel->Print(list->Value(i), S); }
|
||||
S <<std::endl;
|
||||
S <<'\n';
|
||||
}
|
||||
}
|
||||
|
||||
@ -3525,20 +3525,20 @@ void IFSelect_WorkSession::EvaluateSelection
|
||||
catch (Standard_Failure const& anException) {
|
||||
sout<<" **** Interruption EvaluateSelection par Exception **** Intitule\n";
|
||||
sout<<anException.GetMessageString();
|
||||
sout<<"\n Abandon"<<std::endl;
|
||||
sout<<"\n Abandon"<<'\n';
|
||||
}
|
||||
errhand = theerrhand;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!IsLoaded())
|
||||
{ sout<< " *** Data for Evaluation not available ***"<<std::endl; return; }
|
||||
{ sout<< " *** Data for Evaluation not available ***"<<'\n'; return; }
|
||||
if (ItemIdent(sel) == 0)
|
||||
{ sout << " Selection : Unknown"<<std::endl; return; } //sout<<Handle
|
||||
{ sout << " Selection : Unknown"<<'\n'; return; } //sout<<Handle
|
||||
Interface_EntityIterator iter = EvalSelection (sel);
|
||||
ListEntities (iter, 1, sout);
|
||||
sout << "**** (Unique) RootResult, Selection : "
|
||||
<<sel->Label()<<std::endl;
|
||||
<<sel->Label()<<'\n';
|
||||
}
|
||||
|
||||
|
||||
@ -3563,7 +3563,7 @@ void IFSelect_WorkSession::EvaluateDispatch
|
||||
catch (Standard_Failure const& anException) {
|
||||
sout<<" **** Interruption EvaluateDispatch par Exception **** Intitule\n";
|
||||
sout<<anException.GetMessageString();
|
||||
sout<<"\n Abandon"<<std::endl;
|
||||
sout<<"\n Abandon"<<'\n';
|
||||
}
|
||||
errhand = theerrhand;
|
||||
return;
|
||||
@ -3571,12 +3571,12 @@ void IFSelect_WorkSession::EvaluateDispatch
|
||||
|
||||
Standard_Integer numdisp = DispatchRank(disp);
|
||||
if (!IsLoaded())
|
||||
{ sout<< " *** Data for List not available ***"<<std::endl; return; }
|
||||
{ sout<< " *** Data for List not available ***"<<'\n'; return; }
|
||||
if (theshareout->NbDispatches() < numdisp || numdisp <= 0)
|
||||
{ sout<<"Dispatch : Unknown"<<std::endl; return; } //sout<<Handle
|
||||
{ sout<<"Dispatch : Unknown"<<'\n'; return; } //sout<<Handle
|
||||
if (disp->FinalSelection().IsNull())
|
||||
{ sout<<"Dispatch : No Final Selection"<<std::endl; return; }//sout<<Handle
|
||||
sout<<" --- Dispatch Label : "<<disp->Label()<<std::endl;
|
||||
{ sout<<"Dispatch : No Final Selection"<<'\n'; return; }//sout<<Handle
|
||||
sout<<" --- Dispatch Label : "<<disp->Label()<<'\n';
|
||||
|
||||
IFSelect_ShareOutResult eval(disp,thegraph->Graph());
|
||||
eval.Evaluate();
|
||||
@ -3585,34 +3585,34 @@ void IFSelect_WorkSession::EvaluateDispatch
|
||||
eval.Packets (mode ? Standard_True : Standard_False);
|
||||
Standard_Integer nbpack = evres->NbPackets();
|
||||
|
||||
sout<<"Nb Packets produced : "<<nbpack<<" :"<<std::endl;
|
||||
sout<<"Nb Packets produced : "<<nbpack<<" :"<<'\n';
|
||||
for (numpack = 1; numpack <= nbpack; numpack ++) {
|
||||
sout<<"\n **** Packet n0 : "<<numpack<<" ****"<<std::endl;
|
||||
if (!mode) std::cout<<"Root Entities :"<<std::endl;
|
||||
sout<<"\n **** Packet n0 : "<<numpack<<" ****"<<'\n';
|
||||
if (!mode) std::cout<<"Root Entities :"<<'\n';
|
||||
ListEntities (evres->Entities(numpack), (mode ? 2 : -1), sout);
|
||||
}
|
||||
|
||||
//// Interface_EntityIterator iterem = disp->Remainder(thegraph->Graph());
|
||||
if (mode == 0) return;
|
||||
if (mode == 1 || mode == 3) {
|
||||
sout<<std::endl;
|
||||
sout<<'\n';
|
||||
if (evres->NbDuplicated(0,Standard_False) == 0)
|
||||
sout<<" **** All the Model is taken into account ****"<<std::endl;
|
||||
sout<<" **** All the Model is taken into account ****"<<'\n';
|
||||
else {
|
||||
sout<<" **** Starting Entities not taken by this Dispatch ****"<<std::endl;
|
||||
sout<<" **** Starting Entities not taken by this Dispatch ****"<<'\n';
|
||||
ListEntities (evres->Duplicated(0,Standard_False), 2, sout);
|
||||
}
|
||||
}
|
||||
if (mode >= 2) {
|
||||
sout<<" **** Entites in more than one packet ****";
|
||||
Standard_Integer max = evres->HighestDuplicationCount();
|
||||
if (max < 2) sout<<" : There are none"<<std::endl;
|
||||
if (max < 2) sout<<" : There are none"<<'\n';
|
||||
else {
|
||||
Standard_Integer newcount;
|
||||
sout<<std::endl;
|
||||
sout<<'\n';
|
||||
for (newcount = 2; newcount <= max; newcount ++) {
|
||||
if (evres->NbDuplicated(newcount,Standard_False) == 0) continue;
|
||||
sout<<" **** Entities put in "<<newcount<<" packets ****"<<std::endl;
|
||||
sout<<" **** Entities put in "<<newcount<<" packets ****"<<'\n';
|
||||
ListEntities (evres->Duplicated(newcount,Standard_False), 2, sout);
|
||||
}
|
||||
}
|
||||
@ -3641,52 +3641,52 @@ void IFSelect_WorkSession::EvaluateComplete
|
||||
catch (Standard_Failure const& anException) {
|
||||
sout<<" **** Interruption EvaluateComplete par Exception : ****\n";
|
||||
sout<<anException.GetMessageString();
|
||||
sout<<"\n Abandon"<<std::endl;
|
||||
sout<<"\n Abandon"<<'\n';
|
||||
}
|
||||
errhand = theerrhand;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!IsLoaded())
|
||||
{ sout<< " *** Data for List not available ***"<<std::endl; return; }
|
||||
{ sout<< " *** Data for List not available ***"<<'\n'; return; }
|
||||
IFSelect_ShareOutResult eval(theshareout,thegraph->Graph());
|
||||
eval.Evaluate();
|
||||
sout<<"\n******** Evaluation ShareOutResult (Complete) ********\n";
|
||||
sout<<" **** List of Packets **** Count : "<<eval.NbPackets()<<std::endl;
|
||||
if (mode == 0) sout << " ** (for each one : Root Entities) **"<<std::endl;
|
||||
else sout << " ** (for each one : Evaluated Content) **"<<std::endl;
|
||||
sout<<" **** List of Packets **** Count : "<<eval.NbPackets()<<'\n';
|
||||
if (mode == 0) sout << " ** (for each one : Root Entities) **"<<'\n';
|
||||
else sout << " ** (for each one : Evaluated Content) **"<<'\n';
|
||||
|
||||
Standard_Integer numpack = 0;
|
||||
Handle(IFSelect_PacketList) evres =
|
||||
eval.Packets (mode ? Standard_True : Standard_False);
|
||||
Standard_Integer nbpack = evres->NbPackets();
|
||||
|
||||
sout<<"Nb Packets produced : "<<nbpack<<" :"<<std::endl;
|
||||
sout<<"Nb Packets produced : "<<nbpack<<" :"<<'\n';
|
||||
for (numpack = 1; numpack <= nbpack; numpack ++) {
|
||||
sout<<"\n **** Packet n0 : "<<numpack<<" ****"<<std::endl;
|
||||
if (!mode) std::cout<<"Root Entities :"<<std::endl;
|
||||
sout<<"\n **** Packet n0 : "<<numpack<<" ****"<<'\n';
|
||||
if (!mode) std::cout<<"Root Entities :"<<'\n';
|
||||
ListEntities (evres->Entities(numpack), (mode ? 2: -1), sout);
|
||||
}
|
||||
if (mode == 0) return;
|
||||
if (mode == 1 || mode == 3) {
|
||||
sout<<std::endl;
|
||||
sout<<'\n';
|
||||
if (evres->NbDuplicated(0,Standard_False) == 0)
|
||||
sout<<" **** All the Model is taken into account ****"<<std::endl;
|
||||
sout<<" **** All the Model is taken into account ****"<<'\n';
|
||||
else {
|
||||
sout<<" **** Starting Entities Forgotten ****"<<std::endl;
|
||||
sout<<" **** Starting Entities Forgotten ****"<<'\n';
|
||||
ListEntities (evres->Duplicated(0,Standard_False), 2, sout);
|
||||
}
|
||||
}
|
||||
if (mode >= 2) {
|
||||
sout<<" **** Entites in more than one packet ****"<<std::endl;
|
||||
sout<<" **** Entites in more than one packet ****"<<'\n';
|
||||
Standard_Integer max = evres->HighestDuplicationCount();
|
||||
if (max < 2) sout<<" : There are none"<<std::endl;
|
||||
if (max < 2) sout<<" : There are none"<<'\n';
|
||||
else {
|
||||
Standard_Integer newcount;
|
||||
sout<<std::endl;
|
||||
sout<<'\n';
|
||||
for (newcount = 2; newcount <= max; newcount ++) {
|
||||
if (evres->NbDuplicated(newcount,Standard_False) == 0) continue;
|
||||
sout<<" **** Entities put in "<<newcount<<" packets ****"<<std::endl;
|
||||
sout<<" **** Entities put in "<<newcount<<" packets ****"<<'\n';
|
||||
ListEntities (evres->Duplicated(newcount,Standard_False), 2, sout);
|
||||
}
|
||||
}
|
||||
@ -3707,9 +3707,9 @@ void IFSelect_WorkSession::ListEntities
|
||||
{
|
||||
int titre = 0;
|
||||
Standard_Integer mode = (mmode < 0 ? -mmode : mmode);
|
||||
if (mmode >= 0) sout << " List of " << iter.NbEntities() << " Entities :"<<std::endl;
|
||||
if (mmode >= 0) sout << " List of " << iter.NbEntities() << " Entities :"<<'\n';
|
||||
if (!IsLoaded())
|
||||
{ sout<< " *** Data for List not available ***"<<std::endl; return; }
|
||||
{ sout<< " *** Data for List not available ***"<<'\n'; return; }
|
||||
Interface_ShareFlags tool(thegraph->Graph());
|
||||
|
||||
try {
|
||||
@ -3717,9 +3717,9 @@ void IFSelect_WorkSession::ListEntities
|
||||
int newcount = -1; int mods = 0; int cnt = 0;
|
||||
for (iter.Start(); iter.More(); iter.Next()) {
|
||||
if (!titre && mode == 1) sout
|
||||
<< "Number/Id. Category Validity Type\n----------- ----...."<<std::endl;
|
||||
<< "Number/Id. Category Validity Type\n----------- ----...."<<'\n';
|
||||
// 123456789 123456789 123456 123456789 123456789 123456
|
||||
if (!titre && mode == 0) sout<<" Keys : R Root ? Unknown * Unloaded"<<std::endl;
|
||||
if (!titre && mode == 0) sout<<" Keys : R Root ? Unknown * Unloaded"<<'\n';
|
||||
if (!titre && mode == 2) sout<<"(";
|
||||
titre = 1;
|
||||
const Handle(Standard_Transient)& ent = iter.Value();
|
||||
@ -3734,14 +3734,14 @@ void IFSelect_WorkSession::ListEntities
|
||||
if (catnum > 0) sout<<" "<<Interface_Category::Name (catnum);
|
||||
sout << " (" << ValidityName (ent) << ") ";
|
||||
|
||||
sout<<" Type:"<<myModel->TypeName (ent, Standard_False)<<std::endl;
|
||||
sout<<" Type:"<<myModel->TypeName (ent, Standard_False)<<'\n';
|
||||
} else if (mode == 2) {
|
||||
newcount ++;
|
||||
if (newcount > 0) sout<<",";
|
||||
sout<<num;
|
||||
} else {
|
||||
newcount ++; mods = 0; cnt ++;
|
||||
if (newcount >= 10) { sout << std::endl<<"["<<cnt<<"]:"; newcount = 1; }
|
||||
if (newcount >= 10) { sout << '\n'<<"["<<cnt<<"]:"; newcount = 1; }
|
||||
if (newcount > 0) sout << " ";
|
||||
myModel->Print (ent, sout, 0);
|
||||
if (!tool.IsShared(ent)) { if(mods == 0) sout<<"("; sout<<"R"; mods++; }
|
||||
@ -3750,12 +3750,12 @@ void IFSelect_WorkSession::ListEntities
|
||||
if (mods) { sout<<")"; newcount ++; }
|
||||
}
|
||||
}
|
||||
if (mode == 0) sout<<std::endl;
|
||||
if (mode == 2) sout<<")"<<std::endl;
|
||||
if (mode == 0) sout<<'\n';
|
||||
if (mode == 2) sout<<")"<<'\n';
|
||||
}
|
||||
catch (Standard_Failure const& anException) {
|
||||
sout<<" **** Interruption ListEntities par Exception : ****\n";
|
||||
sout<<anException.GetMessageString();
|
||||
sout<<"\n Abandon"<<std::endl;
|
||||
sout<<"\n Abandon"<<'\n';
|
||||
}
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user