mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-04 13:13:25 +03:00
0030895: Coding Rules - specify std namespace explicitly for std::cout and streams
"endl" manipulator for Message_Messenger is renamed to "Message_EndLine". The following entities from std namespace are now used with std:: explicitly specified (from Standard_Stream.hxx): std::istream,std::ostream,std::ofstream,std::ifstream,std::fstream, std::filebuf,std::streambuf,std::streampos,std::ios,std::cout,std::cerr, std::cin,std::endl,std::ends,std::flush,std::setw,std::setprecision, std::hex,std::dec.
This commit is contained in:
@@ -120,14 +120,14 @@ void IGESGraph_ToolColor::OwnDump
|
||||
(const Handle(IGESGraph_Color)& ent, const IGESData_IGESDumper& /*dumper*/,
|
||||
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
|
||||
{
|
||||
S << "IGESGraph_Color" << endl;
|
||||
S << "IGESGraph_Color" << Message_EndLine;
|
||||
|
||||
Standard_Real Red,Green,Blue;
|
||||
ent->RGBIntensity(Red,Green,Blue);
|
||||
S << "Red (in % Of Full Intensity) : " << Red << endl;
|
||||
S << "Green (in % Of Full Intensity) : " << Green << endl;
|
||||
S << "Blue (in % Of Full Intensity) : " << Blue << endl;
|
||||
S << "Red (in % Of Full Intensity) : " << Red << Message_EndLine;
|
||||
S << "Green (in % Of Full Intensity) : " << Green << Message_EndLine;
|
||||
S << "Blue (in % Of Full Intensity) : " << Blue << Message_EndLine;
|
||||
S << "Color Name : ";
|
||||
IGESData_DumpString(S,ent->ColorName());
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -114,10 +114,10 @@ void IGESGraph_ToolDefinitionLevel::OwnDump
|
||||
(const Handle(IGESGraph_DefinitionLevel)& ent, const IGESData_IGESDumper& /*dumper*/,
|
||||
const Handle(Message_Messenger)& S, const Standard_Integer level) const
|
||||
{
|
||||
S << "IGESGraph_DefinitionLevel" << endl;
|
||||
S << "IGESGraph_DefinitionLevel" << Message_EndLine;
|
||||
|
||||
S << "Level Numbers : ";
|
||||
IGESData_DumpVals(S ,level,1, ent->NbPropertyValues(),ent->LevelNumber);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
||||
|
@@ -113,10 +113,10 @@ void IGESGraph_ToolDrawingSize::OwnDump
|
||||
(const Handle(IGESGraph_DrawingSize)& ent, const IGESData_IGESDumper& /*dumper*/,
|
||||
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
|
||||
{
|
||||
S << "IGESGraph_DrawingSize" << endl;
|
||||
S << "IGESGraph_DrawingSize" << Message_EndLine;
|
||||
|
||||
S << "No. of property values : " << ent->NbPropertyValues() << endl;
|
||||
S << "Drawing extent along positive X-axis : " << ent->XSize() << endl;
|
||||
S << "Drawing extent along positive Y-axis : " << ent->YSize() << endl;
|
||||
S << endl;
|
||||
S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
|
||||
S << "Drawing extent along positive X-axis : " << ent->XSize() << Message_EndLine;
|
||||
S << "Drawing extent along positive Y-axis : " << ent->YSize() << Message_EndLine;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -223,12 +223,12 @@ void IGESGraph_ToolDrawingUnits::OwnDump
|
||||
(const Handle(IGESGraph_DrawingUnits)& ent, const IGESData_IGESDumper& /*dumper*/,
|
||||
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
|
||||
{
|
||||
S << "IGESGraph_DrawingUnits" << endl;
|
||||
S << "IGESGraph_DrawingUnits" << Message_EndLine;
|
||||
|
||||
S << "No. of property values : " << ent->NbPropertyValues() << endl;
|
||||
S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
|
||||
S << " Units Flag : " << ent->Flag();
|
||||
S << " Units Name : ";
|
||||
IGESData_DumpString(S,ent->Unit());
|
||||
S << " computed Value (in meters) : " << ent->UnitValue();
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -109,9 +109,9 @@ void IGESGraph_ToolHighLight::OwnDump
|
||||
(const Handle(IGESGraph_HighLight)& ent, const IGESData_IGESDumper& /*dumper*/,
|
||||
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
|
||||
{
|
||||
S << "IGESGraph_HighLight" << endl;
|
||||
S << "IGESGraph_HighLight" << Message_EndLine;
|
||||
|
||||
S << "No. of property values : " << ent->NbPropertyValues() << endl;
|
||||
S << "Highlight Status : " << ent->HighLightStatus() << endl;
|
||||
S << endl;
|
||||
S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
|
||||
S << "Highlight Status : " << ent->HighLightStatus() << Message_EndLine;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -111,9 +111,9 @@ void IGESGraph_ToolIntercharacterSpacing::OwnDump
|
||||
(const Handle(IGESGraph_IntercharacterSpacing)& ent, const IGESData_IGESDumper& /*dumper*/,
|
||||
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
|
||||
{
|
||||
S << "IGESGraph_IntercharacterSpacing" << endl;
|
||||
S << "IGESGraph_IntercharacterSpacing" << Message_EndLine;
|
||||
|
||||
S << "No. of property values : " << ent->NbPropertyValues() << endl;
|
||||
S << "Intercharacter space in % of text height : " << ent->ISpace() << endl;
|
||||
S << endl;
|
||||
S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
|
||||
S << "Intercharacter space in % of text height : " << ent->ISpace() << Message_EndLine;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -132,19 +132,19 @@ void IGESGraph_ToolLineFontDefPattern::OwnDump
|
||||
(const Handle(IGESGraph_LineFontDefPattern)& ent, const IGESData_IGESDumper& /*dumper*/,
|
||||
const Handle(Message_Messenger)& S, const Standard_Integer level) const
|
||||
{
|
||||
S << "IGESGraph_LineFontDefPattern" << endl;
|
||||
S << "IGESGraph_LineFontDefPattern" << Message_EndLine;
|
||||
|
||||
S << "Visible-Blank Segments : ";
|
||||
Standard_Integer nb = ent->NbSegments();
|
||||
IGESData_DumpVals(S ,level,1, nb,ent->Length);
|
||||
S <<endl << "Display Pattern : ";
|
||||
S <<Message_EndLine << "Display Pattern : ";
|
||||
IGESData_DumpString(S,ent->DisplayPattern());
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
if (level > 4) {
|
||||
S << " -> Which Segments are Visible (the others are Blank) : " << endl;
|
||||
S << " -> Which Segments are Visible (the others are Blank) : " << Message_EndLine;
|
||||
for (Standard_Integer I = 1; I <= nb; I ++) {
|
||||
if (ent->IsVisible(I)) S << " " << I;
|
||||
}
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
}
|
||||
|
@@ -121,14 +121,14 @@ void IGESGraph_ToolLineFontDefTemplate::OwnDump
|
||||
{
|
||||
Standard_Integer tempSubLevel = (level <= 4) ? 0 : 1;
|
||||
|
||||
S << "IGESGraph_LineFontDefTemplate" << endl;
|
||||
S << "IGESGraph_LineFontDefTemplate" << Message_EndLine;
|
||||
|
||||
S << "Orientation : " << ent->Orientation() << endl;
|
||||
S << "Orientation : " << ent->Orientation() << Message_EndLine;
|
||||
S << "Subfigure Display Entity For Template Display : ";
|
||||
dumper.Dump(ent->TemplateEntity(),S, tempSubLevel);
|
||||
S << endl;
|
||||
S << "Length Between Successive Template Figure : " << ent->Distance()<<endl;
|
||||
S << "Scale Factor for Subfigure : " << ent->Scale() << endl;
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "Length Between Successive Template Figure : " << ent->Distance()<<Message_EndLine;
|
||||
S << "Scale Factor for Subfigure : " << ent->Scale() << Message_EndLine;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
||||
|
@@ -108,9 +108,9 @@ void IGESGraph_ToolLineFontPredefined::OwnDump
|
||||
(const Handle(IGESGraph_LineFontPredefined)& ent, const IGESData_IGESDumper& /*dumper*/,
|
||||
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
|
||||
{
|
||||
S << "IGESGraph_LineFontPredefined" << endl;
|
||||
S << "IGESGraph_LineFontPredefined" << Message_EndLine;
|
||||
|
||||
S << "No. of property values : " << ent->NbPropertyValues() << endl;
|
||||
S << "Line font pattern code : " << ent->LineFontPatternCode() << endl;
|
||||
S << endl;
|
||||
S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
|
||||
S << "Line font pattern code : " << ent->LineFontPatternCode() << Message_EndLine;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -146,14 +146,14 @@ void IGESGraph_ToolNominalSize::OwnDump
|
||||
(const Handle(IGESGraph_NominalSize)& ent, const IGESData_IGESDumper& /*dumper*/,
|
||||
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
|
||||
{
|
||||
S << "IGESGraph_NominalSize" << endl;
|
||||
S << "IGESGraph_NominalSize" << Message_EndLine;
|
||||
|
||||
S << "No. of property values : " << ent->NbPropertyValues() << endl;
|
||||
S << "Nominal size value : " << ent->NominalSizeValue() << endl;
|
||||
S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
|
||||
S << "Nominal size value : " << ent->NominalSizeValue() << Message_EndLine;
|
||||
S << "Nominal size name : ";
|
||||
IGESData_DumpString(S,ent->NominalSizeName());
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "Name of relevant engineering standard : ";
|
||||
IGESData_DumpString(S,ent->StandardName());
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -111,10 +111,10 @@ void IGESGraph_ToolPick::OwnDump
|
||||
(const Handle(IGESGraph_Pick)& ent, const IGESData_IGESDumper& /*dumper*/,
|
||||
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
|
||||
{
|
||||
S << "IGESGraph_Pick" << endl;
|
||||
S << "IGESGraph_Pick" << Message_EndLine;
|
||||
|
||||
S << "No. of property values : " << ent->NbPropertyValues() << endl;
|
||||
S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
|
||||
S << "Pick flag : " << ent->PickFlag();
|
||||
S << (ent->PickFlag() == 0 ? " NO" : " YES" );
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -186,10 +186,10 @@ void IGESGraph_ToolTextDisplayTemplate::OwnDump
|
||||
{
|
||||
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
|
||||
|
||||
S << "IGESGraph_TextDisplayTemplate" << endl;
|
||||
S << "IGESGraph_TextDisplayTemplate" << Message_EndLine;
|
||||
|
||||
S << "Character box width : " << ent->BoxWidth() << " ";
|
||||
S << "Character box height : " << ent->BoxHeight() << endl;
|
||||
S << "Character box height : " << ent->BoxHeight() << Message_EndLine;
|
||||
if ( ent->IsFontEntity() )
|
||||
{
|
||||
S << "Font Entity : ";
|
||||
@@ -197,15 +197,15 @@ void IGESGraph_ToolTextDisplayTemplate::OwnDump
|
||||
}
|
||||
else
|
||||
S << "Font code : " << ent->FontCode();
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
S << "Slant angle : " << ent->SlantAngle() << " ";
|
||||
S << "Rotation angle : " << ent->RotationAngle() << endl;
|
||||
S << "Rotation angle : " << ent->RotationAngle() << Message_EndLine;
|
||||
S << "Mirror flag : " << ent->MirrorFlag() << " ";
|
||||
S << "Rotate flag : " << ent->RotateFlag() << endl;
|
||||
S << "Rotate flag : " << ent->RotateFlag() << Message_EndLine;
|
||||
if ( ent->FormNumber() == 0 )
|
||||
S << "Lower Left Corner coordinates : ";
|
||||
else
|
||||
S << "Increments from coordinates : ";
|
||||
IGESData_DumpXYZL(S,level, ent->StartingCorner(), ent->Location());
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -293,27 +293,27 @@ void IGESGraph_ToolTextFontDef::OwnDump
|
||||
Standard_Integer sublevel = (level <= 4) ? 0 : 1;
|
||||
Standard_Integer nbchars = ent->NbCharacters();
|
||||
|
||||
S << "IGESGraph_TextFontDef" << endl;
|
||||
S << "IGESGraph_TextFontDef" << Message_EndLine;
|
||||
|
||||
S << "Font Code : " << ent->FontCode() << endl;
|
||||
S << "Font Code : " << ent->FontCode() << Message_EndLine;
|
||||
S << "Font Name : ";
|
||||
IGESData_DumpString(S,ent->FontName());
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
if ( ent->IsSupersededFontEntity() ) {
|
||||
S << "Text Definition Entity : ";
|
||||
dumper.Dump(ent->SupersededFontEntity(),S, sublevel);
|
||||
}
|
||||
else S << "Superseding Font Number : " << ent->SupersededFontCode();
|
||||
S << endl;
|
||||
S << "No. of Grid Units eqvt to 1 Text Height : " << ent->Scale() << endl;
|
||||
S << "ASCII Codes : " << endl
|
||||
<< "Grid Locations of next character origins : " << endl
|
||||
<< "Pen Motions : " << endl
|
||||
<< "Pen Positions : " << endl
|
||||
S << Message_EndLine;
|
||||
S << "No. of Grid Units eqvt to 1 Text Height : " << ent->Scale() << Message_EndLine;
|
||||
S << "ASCII Codes : " << Message_EndLine
|
||||
<< "Grid Locations of next character origins : " << Message_EndLine
|
||||
<< "Pen Motions : " << Message_EndLine
|
||||
<< "Pen Positions : " << Message_EndLine
|
||||
<< "Grid Locations the pen moves to : ";
|
||||
S << "Count = " << nbchars << endl;
|
||||
S << "Count = " << nbchars << Message_EndLine;
|
||||
IGESData_DumpVals(S,-level,1,nbchars,ent->ASCIICode);
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
if (level > 4 )
|
||||
{
|
||||
Handle(TColgp_HArray1OfXY) arrXY;
|
||||
@@ -322,25 +322,25 @@ void IGESGraph_ToolTextFontDef::OwnDump
|
||||
{
|
||||
Standard_Integer IX,IY;
|
||||
S << "[" << I << "]: ";
|
||||
S << "ASCII Code : " << ent->ASCIICode(I) << endl;
|
||||
S << "ASCII Code : " << ent->ASCIICode(I) << Message_EndLine;
|
||||
S << "Grid Location of next character's origin : ";
|
||||
ent->NextCharOrigin(I,IX,IY);
|
||||
S << "X=" << IX << " Y=" << IY;
|
||||
nbmotions = ent->NbPenMotions(I);
|
||||
S << " No. of Pen Motions : " << nbmotions;
|
||||
if (level <= 5) S << " [ ask level > 5 for Details ]" << endl;
|
||||
if (level <= 5) S << " [ ask level > 5 for Details ]" << Message_EndLine;
|
||||
else {
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
for (J = 1; J <= nbmotions; J++)
|
||||
{
|
||||
S << "Pen up(1) / down(0) flag : " << (Standard_Integer)ent->IsPenUp(I,J);
|
||||
S << " Next Pen Position : ";
|
||||
ent->NextPenPosition(I,J, IX,IY);
|
||||
S << " X="<<IX<<" Y="<<IY;
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
S << endl;
|
||||
S << Message_EndLine;
|
||||
}
|
||||
|
@@ -161,17 +161,17 @@ void IGESGraph_ToolUniformRectGrid::OwnDump
|
||||
(const Handle(IGESGraph_UniformRectGrid)& ent, const IGESData_IGESDumper& /*dumper*/,
|
||||
const Handle(Message_Messenger)& S, const Standard_Integer /*level*/) const
|
||||
{
|
||||
S << "IGESGraph_UniformRectGrid" << endl;
|
||||
S << "IGESGraph_UniformRectGrid" << Message_EndLine;
|
||||
|
||||
S << "No. of property values : " << ent->NbPropertyValues() << endl;
|
||||
S << "No. of property values : " << ent->NbPropertyValues() << Message_EndLine;
|
||||
S << "Grid : " << ( ent->IsFinite() ? "Finite" : "Infinite");
|
||||
S << " - Composed of " << ( ent->IsLine() ? "Lines" : "Points");
|
||||
S << " - " << ( ent->IsWeighted() ? "Weighted" : "Unweighted") << endl;
|
||||
S << " - " << ( ent->IsWeighted() ? "Weighted" : "Unweighted") << Message_EndLine;
|
||||
S << "Grid Point : ";
|
||||
IGESData_DumpXY(S, ent->GridPoint());
|
||||
S << " Grid Spacing : ";
|
||||
IGESData_DumpXY(S, ent->GridSpacing()); S << endl;
|
||||
IGESData_DumpXY(S, ent->GridSpacing()); S << Message_EndLine;
|
||||
if (ent->IsFinite())
|
||||
S << "No. of points/lines in direction : X : " << ent->NbPointsX()
|
||||
<< " - Y : " << ent->NbPointsY() << endl;
|
||||
<< " - Y : " << ent->NbPointsY() << Message_EndLine;
|
||||
}
|
||||
|
Reference in New Issue
Block a user