mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-09 13:22:24 +03:00
0030895: Coding Rules - specify std namespace explicitly for std::cout and streams
"endl" manipulator for Message_Messenger is renamed to "Message_EndLine". The following entities from std namespace are now used with std:: explicitly specified (from Standard_Stream.hxx): std::istream,std::ostream,std::ofstream,std::ifstream,std::fstream, std::filebuf,std::streambuf,std::streampos,std::ios,std::cout,std::cerr, std::cin,std::endl,std::ends,std::flush,std::setw,std::setprecision, std::hex,std::dec.
This commit is contained in:
@@ -615,26 +615,26 @@ Standard_Boolean STEPCAFControl_Reader::Transfer(STEPControl_Reader &reader,
|
||||
if (!format->IsSameString(ap203, Standard_False) &&
|
||||
!format->IsSameString(ap214, Standard_False)) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: STEPCAFControl_Reader::Transfer: Extern document is neither STEP AP203 nor AP214" << endl;
|
||||
std::cout << "Warning: STEPCAFControl_Reader::Transfer: Extern document is neither STEP AP203 nor AP214" << std::endl;
|
||||
#else
|
||||
continue;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
#ifdef OCCT_DEBUG
|
||||
else cout << "Warning: STEPCAFControl_Reader::Transfer: Extern document format not defined" << endl;
|
||||
else std::cout << "Warning: STEPCAFControl_Reader::Transfer: Extern document format not defined" << std::endl;
|
||||
#endif
|
||||
|
||||
// get and check filename of the current extern ref
|
||||
const Standard_CString filename = ExtRefs.FileName(i);
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "filename=" << filename << endl;
|
||||
std::cout << "filename=" << filename << std::endl;
|
||||
#endif
|
||||
|
||||
if (!filename || !filename[0]) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: STEPCAFControl_Reader::Transfer: Extern reference file name is empty" << endl;
|
||||
std::cout << "Warning: STEPCAFControl_Reader::Transfer: Extern reference file name is empty" << std::endl;
|
||||
#endif
|
||||
continue; // not a valid extern ref
|
||||
}
|
||||
@@ -785,9 +785,9 @@ TDF_Label STEPCAFControl_Reader::AddShape(const TopoDS_Shape &S,
|
||||
}
|
||||
#ifdef OCCT_DEBUG
|
||||
if (!EF->GetLabel().IsNull())
|
||||
cout << "Warning: STEPCAFControl_Reader::AddShape: Non-empty shape with external ref; ref is ignored" << endl;
|
||||
std::cout << "Warning: STEPCAFControl_Reader::AddShape: Non-empty shape with external ref; ref is ignored" << std::endl;
|
||||
else if (nbComponents <= 0)
|
||||
cout << "Warning: STEPCAFControl_Reader::AddShape: Result of reading extern ref is Null" << endl;
|
||||
std::cout << "Warning: STEPCAFControl_Reader::AddShape: Result of reading extern ref is Null" << std::endl;
|
||||
#endif
|
||||
}
|
||||
}
|
||||
@@ -835,7 +835,7 @@ Handle(STEPCAFControl_ExternFile) STEPCAFControl_Reader::ReadExternFile(const St
|
||||
}
|
||||
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Reading extern file: " << fullname << endl;
|
||||
std::cout << "Reading extern file: " << fullname << std::endl;
|
||||
#endif
|
||||
|
||||
// create new WorkSession and Reader
|
||||
@@ -939,7 +939,7 @@ Standard_Boolean STEPCAFControl_Reader::ReadColors(const Handle(XSControl_WorkSe
|
||||
STEPConstruct_Styles Styles(WS);
|
||||
if (!Styles.LoadStyles()) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: no styles are found in the model" << endl;
|
||||
std::cout << "Warning: no styles are found in the model" << std::endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
@@ -1147,7 +1147,7 @@ TDF_Label STEPCAFControl_Reader::FindInstance(const Handle(StepRepr_NextAssembly
|
||||
Handle(Transfer_Binder) binder = TP->Find(NAUO);
|
||||
if (binder.IsNull() || !binder->HasResult()) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Error: STEPCAFControl_Reader::FindInstance: NAUO is not mapped to shape" << endl;
|
||||
std::cout << "Error: STEPCAFControl_Reader::FindInstance: NAUO is not mapped to shape" << std::endl;
|
||||
#endif
|
||||
return L;
|
||||
}
|
||||
@@ -1155,7 +1155,7 @@ TDF_Label STEPCAFControl_Reader::FindInstance(const Handle(StepRepr_NextAssembly
|
||||
TopoDS_Shape S = TransferBRep::ShapeResult(TP, binder);
|
||||
if (S.IsNull()) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Error: STEPCAFControl_Reader::FindInstance: NAUO is not mapped to shape" << endl;
|
||||
std::cout << "Error: STEPCAFControl_Reader::FindInstance: NAUO is not mapped to shape" << std::endl;
|
||||
#endif
|
||||
return L;
|
||||
}
|
||||
@@ -1300,7 +1300,7 @@ Standard_Boolean STEPCAFControl_Reader::ReadValProps(const Handle(XSControl_Work
|
||||
STEPConstruct_ValidationProps Props(WS);
|
||||
if (!Props.LoadProps(props)) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: no validation props found in the model" << endl;
|
||||
std::cout << "Warning: no validation props found in the model" << std::endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
@@ -1463,7 +1463,7 @@ Standard_Boolean STEPCAFControl_Reader::ReadLayers(const Handle(XSControl_WorkSe
|
||||
for (subs.Start(); subs.More(); subs.Next()) {
|
||||
if (!subs.Value()->IsKind(STANDARD_TYPE(StepVisual_Invisibility))) continue;
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "\tLayer \"" << aLayerName << "\" is invisible" << endl;
|
||||
std::cout << "\tLayer \"" << aLayerName << "\" is invisible" << std::endl;
|
||||
#endif
|
||||
//TDF_Label InvLayerLab = LTool->FindLayer(aLayerName);
|
||||
TDF_Label InvLayerLab = LTool->AddLayer(aLayerName); //skl for OCC3926
|
||||
@@ -1537,7 +1537,7 @@ static TDF_Label setSHUOintoDoc(const Handle(XSControl_WorkSession) &WS,
|
||||
Handle(StepRepr_NextAssemblyUsageOccurrence) NUNAUO = SHUO->NextUsage();
|
||||
if (UUNAUO.IsNull() || NUNAUO.IsNull()) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: " << __FILE__ << ": Upper_usage or Next_usage of styled SHUO is null. Skip it" << endl;
|
||||
std::cout << "Warning: " << __FILE__ << ": Upper_usage or Next_usage of styled SHUO is null. Skip it" << std::endl;
|
||||
#endif
|
||||
return aMainLabel;
|
||||
}
|
||||
@@ -1596,7 +1596,7 @@ Standard_Boolean STEPCAFControl_Reader::ReadSHUOs(const Handle(XSControl_WorkSes
|
||||
STEPConstruct_Styles Styles(WS);
|
||||
if (!Styles.LoadStyles()) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: no styles are found in the model" << endl;
|
||||
std::cout << "Warning: no styles are found in the model" << std::endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
@@ -1616,7 +1616,7 @@ Standard_Boolean STEPCAFControl_Reader::ReadSHUOs(const Handle(XSControl_WorkSes
|
||||
continue;
|
||||
// found that current style is invisible.
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: item No " << i << "(" << style->Item()->DynamicType()->Name() << ") is invisible" << endl;
|
||||
std::cout << "Warning: item No " << i << "(" << style->Item()->DynamicType()->Name() << ") is invisible" << std::endl;
|
||||
#endif
|
||||
IsVisible = Standard_False;
|
||||
break;
|
||||
@@ -1655,7 +1655,7 @@ Standard_Boolean STEPCAFControl_Reader::ReadSHUOs(const Handle(XSControl_WorkSes
|
||||
TDF_Label aLabelForStyle = setSHUOintoDoc(WS, SHUO, STool, PDFileMap, ShapeLabelMap);
|
||||
if (aLabelForStyle.IsNull()) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: " << __FILE__ << ": coudnot create SHUO structure in the document" << endl;
|
||||
std::cout << "Warning: " << __FILE__ << ": coudnot create SHUO structure in the document" << std::endl;
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
@@ -2867,7 +2867,7 @@ TDF_Label STEPCAFControl_Reader::createGDTObjectInXCAF(const Handle(Standard_Tra
|
||||
}
|
||||
if (dim1 < 0) continue;
|
||||
if (dim2 < 0) dim2 = dim1;
|
||||
//cout<<"DimensionalSize: dim1="<<dim1<<" dim2="<<dim2<<endl;
|
||||
//std::cout<<"DimensionalSize: dim1="<<dim1<<" dim2="<<dim2<<std::endl;
|
||||
// now we know edge_curve and value range therefore
|
||||
// we can create corresponding D> labels
|
||||
Standard_Integer index = aTP->MapIndex(EC);
|
||||
@@ -2900,7 +2900,7 @@ TDF_Label STEPCAFControl_Reader::createGDTObjectInXCAF(const Handle(Standard_Tra
|
||||
STEPConstruct_UnitContext anUnitCtx;
|
||||
anUnitCtx.ComputeFactors(NU);
|
||||
dim = dim * anUnitCtx.LengthFactor();
|
||||
//cout<<"GeometricTolerance: Magnitude = "<<dim<<endl;
|
||||
//std::cout<<"GeometricTolerance: Magnitude = "<<dim<<std::endl;
|
||||
Handle(TColStd_HArray1OfReal) arr = new TColStd_HArray1OfReal(1, 1);
|
||||
arr->SetValue(1, dim);
|
||||
Handle(TCollection_HAsciiString) aName = GT->Name();
|
||||
@@ -2947,7 +2947,7 @@ TDF_Label STEPCAFControl_Reader::createGDTObjectInXCAF(const Handle(Standard_Tra
|
||||
else if (GTWDR->IsKind(STANDARD_TYPE(StepDimTol_PerpendicularityTolerance))) kind = 29;
|
||||
else if (GTWDR->IsKind(STANDARD_TYPE(StepDimTol_SymmetryTolerance))) kind = 30;
|
||||
else if (GTWDR->IsKind(STANDARD_TYPE(StepDimTol_TotalRunoutTolerance))) kind = 31;
|
||||
//cout<<"GTWDR: kind="<<kind<<endl;
|
||||
//std::cout<<"GTWDR: kind="<<kind<<std::endl;
|
||||
TDF_Label TolerL = aDGTTool->SetDimTol(shL, kind, arr, aName, aDescription);
|
||||
ReadDatums(aSTool, aDGTTool, aGraph, aTP, TolerL, GTWDR);
|
||||
}
|
||||
|
@@ -349,7 +349,7 @@ IFSelect_ReturnStatus STEPCAFControl_Writer::Write (const Standard_CString filen
|
||||
TCollection_AsciiString fname = OSD_Path::AbsolutePath ( dpath, EF->GetName()->String() );
|
||||
if ( fname.Length() <= 0 ) fname = EF->GetName()->String();
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Writing external file: " << fname.ToCString() << endl;
|
||||
std::cout << "Writing external file: " << fname.ToCString() << std::endl;
|
||||
#endif
|
||||
|
||||
EF->SetWriteStatus ( EF->GetWS()->SendAll ( fname.ToCString() ) );
|
||||
@@ -829,7 +829,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteExternRefs (const Handle(XSControl_
|
||||
Handle(TransferBRep_ShapeMapper) mapper = TransferBRep::ShapeMapper ( FP, S );
|
||||
if ( ! FP->FindTypedTransient ( mapper, STANDARD_TYPE(StepShape_ShapeDefinitionRepresentation), SDR ) ) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: Cannot find SDR for " << S.TShape()->DynamicType()->Name() << endl;
|
||||
std::cout << "Warning: Cannot find SDR for " << S.TShape()->DynamicType()->Name() << std::endl;
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
@@ -841,7 +841,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteExternRefs (const Handle(XSControl_
|
||||
Handle(StepRepr_PropertyDefinition) aPropDef = RD.PropertyDefinition();
|
||||
if (aPropDef.IsNull()) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: STEPCAFControl_Writer::WriteExternRefs StepRepr_PropertyDefinition is null for " << S.TShape()->DynamicType()->Name() << endl;
|
||||
std::cout << "Warning: STEPCAFControl_Writer::WriteExternRefs StepRepr_PropertyDefinition is null for " << S.TShape()->DynamicType()->Name() << std::endl;
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
@@ -849,7 +849,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteExternRefs (const Handle(XSControl_
|
||||
Handle(StepBasic_ProductDefinition) PD = CharDef.ProductDefinition();
|
||||
if (PD.IsNull()) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: STEPCAFControl_Writer::WriteExternRefs StepBasic_ProductDefinition is null for " << S.TShape()->DynamicType()->Name() << endl;
|
||||
std::cout << "Warning: STEPCAFControl_Writer::WriteExternRefs StepBasic_ProductDefinition is null for " << S.TShape()->DynamicType()->Name() << std::endl;
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
@@ -1082,7 +1082,7 @@ static void MakeSTEPStyles (STEPConstruct_Styles &Styles,
|
||||
TColStd_SequenceOfTransient seqRI;
|
||||
Standard_Integer nb = FindEntities ( Styles.FinderProcess(), S, L, seqRI );
|
||||
#ifdef OCCT_DEBUG
|
||||
if ( nb <=0 ) cout << "Warning: Cannot find RI for " << S.TShape()->DynamicType()->Name() << endl;
|
||||
if ( nb <=0 ) std::cout << "Warning: Cannot find RI for " << S.TShape()->DynamicType()->Name() << std::endl;
|
||||
#endif
|
||||
//Get overridden style gka 10.06.03
|
||||
if ( isComponent && nb)
|
||||
@@ -1176,8 +1176,8 @@ Standard_Boolean STEPCAFControl_Writer::WriteColors (const Handle(XSControl_Work
|
||||
// are not supported (it is not clear how to encode that in STEP)
|
||||
if ( XCAFDoc_ShapeTool::IsAssembly ( L ) ) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: Cannot write color for Assembly" << endl;
|
||||
cout << "Info: Check for colors assigned to components in assembly" << endl;
|
||||
std::cout << "Warning: Cannot write color for Assembly" << std::endl;
|
||||
std::cout << "Info: Check for colors assigned to components in assembly" << std::endl;
|
||||
#endif
|
||||
// PTV 22.01.2003 Write color for instances.
|
||||
TDF_LabelSequence compLabels;
|
||||
@@ -1262,7 +1262,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteColors (const Handle(XSControl_Work
|
||||
if (!isComponent) {
|
||||
if ( myMapCompMDGPR.IsBound( aTopSh )) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cerr << "Error: Current Top-Level shape have MDGPR already " << endl;
|
||||
std::cerr << "Error: Current Top-Level shape have MDGPR already " << std::endl;
|
||||
#endif
|
||||
}
|
||||
Styles.CreateMDGPR ( Context, aMDGPR );
|
||||
@@ -1371,7 +1371,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteNames (const Handle(XSControl_WorkS
|
||||
Handle(TransferBRep_ShapeMapper) mapper = TransferBRep::ShapeMapper ( FP, S );
|
||||
if ( ! FP->FindTypedTransient ( mapper, STANDARD_TYPE(StepShape_ShapeDefinitionRepresentation), SDR ) ) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: Cannot find SDR for " << S.TShape()->DynamicType()->Name() << endl;
|
||||
std::cout << "Warning: Cannot find SDR for " << S.TShape()->DynamicType()->Name() << std::endl;
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
@@ -1607,7 +1607,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteLayers (const Handle(XSControl_Work
|
||||
Standard_Integer nb =
|
||||
FindEntities ( FP, oneShape, Loc, seqRI );
|
||||
if ( nb <=0 )
|
||||
FP->Messenger() << "Warning: Cannot find RI for " << oneShape.TShape()->DynamicType()->Name() << endl;
|
||||
FP->Messenger() << "Warning: Cannot find RI for " << oneShape.TShape()->DynamicType()->Name() << Message_EndLine;
|
||||
}
|
||||
if ( seqRI.Length() <= 0 ) continue;
|
||||
|
||||
@@ -1619,7 +1619,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteLayers (const Handle(XSControl_Work
|
||||
if (L.FindAttribute(XCAFDoc::InvisibleGUID(), aUAttr)) {
|
||||
descr = new TCollection_HAsciiString ("invisible");
|
||||
#ifdef OCCT_DEBUG
|
||||
FP->Messenger() << "\tLayer \"" << hName->String().ToCString() << "\" is invisible"<<endl;
|
||||
FP->Messenger() << "\tLayer \"" << hName->String().ToCString() << "\" is invisible"<<Message_EndLine;
|
||||
#endif
|
||||
isLinv = Standard_True;
|
||||
}
|
||||
@@ -1788,7 +1788,7 @@ static Standard_Boolean writeSHUO (const Handle(XCAFDoc_GraphNode)& theSHUO,
|
||||
// store SHUO recursive
|
||||
#ifdef OCCT_DEBUG
|
||||
if ( aNextUsageLabs.Length() > 1 )
|
||||
cout << "Warning: store only one next_usage of current SHUO" << endl;
|
||||
std::cout << "Warning: store only one next_usage of current SHUO" << std::endl;
|
||||
#endif
|
||||
theSTool->GetSHUO( aNextUsageLabs.Value(1), NuSHUO );
|
||||
Handle(StepRepr_SpecifiedHigherUsageOccurrence) aNUEntSHUO =
|
||||
@@ -1807,7 +1807,7 @@ static Standard_Boolean writeSHUO (const Handle(XCAFDoc_GraphNode)& theSHUO,
|
||||
if (!getProDefinitionOfNAUO( WS, aUUSh, nullPD, UUNAUO, Standard_True ) ||
|
||||
!getProDefinitionOfNAUO( WS, aNUSh, aRelatedPD, NUNAUO, Standard_False )) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: cannot get related or relating PD" << endl;
|
||||
std::cout << "Warning: cannot get related or relating PD" << std::endl;
|
||||
#endif
|
||||
return Standard_False;
|
||||
}
|
||||
@@ -1892,7 +1892,7 @@ static Standard_Boolean createSHUOStyledItem (const XCAFPrs_Style& style,
|
||||
FindEntities ( FP, Sh, L, seqRI );
|
||||
#ifdef OCCT_DEBUG
|
||||
if ( seqRI.Length() <=0 )
|
||||
FP->Messenger() << "Warning: Cannot find RI for " << Sh.TShape()->DynamicType()->Name() << endl;
|
||||
FP->Messenger() << "Warning: Cannot find RI for " << Sh.TShape()->DynamicType()->Name() << Message_EndLine;
|
||||
#endif
|
||||
item = Handle(StepRepr_RepresentationItem)::DownCast(seqRI(1));
|
||||
//get overridden styled item
|
||||
@@ -1908,7 +1908,7 @@ static Standard_Boolean createSHUOStyledItem (const XCAFPrs_Style& style,
|
||||
if ( !aTopSh.IsNull() && !myMapCompMDGPR.IsBound( aTopSh ) ) {
|
||||
// create MDGPR and record it in model
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: " << __FILE__ << ": Create new MDGPR for SHUO instance" << endl;
|
||||
std::cout << "Warning: " << __FILE__ << ": Create new MDGPR for SHUO instance" << std::endl;
|
||||
#endif
|
||||
Handle(StepVisual_MechanicalDesignGeometricPresentationRepresentation) aMDGPR;
|
||||
Styles.CreateMDGPR ( Context, aMDGPR );
|
||||
@@ -1939,7 +1939,7 @@ static Standard_Boolean createSHUOStyledItem (const XCAFPrs_Style& style,
|
||||
else {
|
||||
WS->Model()->AddWithRefs ( STEPstyle ); // add as root to the model, but it is not good
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: " << __FILE__ << ": adds styled item of SHUO as root, casue cannot find MDGPR" << endl;
|
||||
std::cout << "Warning: " << __FILE__ << ": adds styled item of SHUO as root, casue cannot find MDGPR" << std::endl;
|
||||
#endif
|
||||
}
|
||||
// create invisibility item for the styled item
|
||||
@@ -2011,7 +2011,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteSHUOs (const Handle(XSControl_WorkS
|
||||
XCAFPrs_Style SHUOstyle;
|
||||
if ( !getSHUOstyle ( aSHUOlab, CTool, SHUOstyle ) ) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: " << __FILE__ << ": do not store SHUO without any style to the STEP model" << endl;
|
||||
std::cout << "Warning: " << __FILE__ << ": do not store SHUO without any style to the STEP model" << std::endl;
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
@@ -2024,13 +2024,13 @@ Standard_Boolean STEPCAFControl_Writer::WriteSHUOs (const Handle(XSControl_WorkS
|
||||
writeSHUO( aSHUO, CTool->ShapeTool(), WS, anEntOfSHUO, NAUOShape, aRelatingPD, isDeepest );
|
||||
if ( anEntOfSHUO.IsNull() || NAUOShape.IsNull() ) {
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Warning: " << __FILE__ << ": Cannot store SHUO" << endl;
|
||||
std::cout << "Warning: " << __FILE__ << ": Cannot store SHUO" << std::endl;
|
||||
#endif
|
||||
continue;
|
||||
}
|
||||
// create new Product Definition Shape for TOP SHUO
|
||||
#ifdef OCCT_DEBUG
|
||||
cout << "Info: " << __FILE__ << ": Create NEW PDS for current SHUO " << endl;
|
||||
std::cout << "Info: " << __FILE__ << ": Create NEW PDS for current SHUO " << std::endl;
|
||||
#endif
|
||||
Handle(StepRepr_ProductDefinitionShape) PDS = new StepRepr_ProductDefinitionShape;
|
||||
Handle(TCollection_HAsciiString) aPDSname = new TCollection_HAsciiString("SHUO");
|
||||
@@ -2320,7 +2320,7 @@ Handle(StepRepr_ShapeAspect) STEPCAFControl_Writer::WriteShapeAspect (const Hand
|
||||
TColStd_SequenceOfTransient aSeqRI;
|
||||
FindEntities( FP, theShape, aLoc, aSeqRI );
|
||||
if ( aSeqRI.Length() <= 0 ) {
|
||||
FP->Messenger() << "Warning: Cannot find RI for "<<theShape.TShape()->DynamicType()->Name()<<endl;
|
||||
FP->Messenger() << "Warning: Cannot find RI for "<<theShape.TShape()->DynamicType()->Name()<<Message_EndLine;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
@@ -2492,7 +2492,7 @@ Handle(StepDimTol_Datum) STEPCAFControl_Writer::WriteDatumAP242(const Handle(XSC
|
||||
aShape = XCAFDoc_ShapeTool::GetShape(theShapeL.Value(i));
|
||||
FindEntities(FP, aShape, aLoc, aSeqRI);
|
||||
if (aSeqRI.Length() <= 0) {
|
||||
FP->Messenger() << "Warning: Cannot find RI for " << aShape.TShape()->DynamicType()->Name() << endl;
|
||||
FP->Messenger() << "Warning: Cannot find RI for " << aShape.TShape()->DynamicType()->Name() << Message_EndLine;
|
||||
continue;
|
||||
}
|
||||
anEnt = aSeqRI.Value(1);
|
||||
@@ -3404,7 +3404,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteDGTs (const Handle(XSControl_WorkSe
|
||||
TColStd_SequenceOfTransient seqRI;
|
||||
FindEntities( FP, aShape, Loc, seqRI );
|
||||
if ( seqRI.Length() <= 0 ) {
|
||||
FP->Messenger() << "Warning: Cannot find RI for "<<aShape.TShape()->DynamicType()->Name()<<endl;
|
||||
FP->Messenger() << "Warning: Cannot find RI for "<<aShape.TShape()->DynamicType()->Name()<<Message_EndLine;
|
||||
continue;
|
||||
}
|
||||
Handle(StepRepr_ProductDefinitionShape) PDS;
|
||||
@@ -3414,7 +3414,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteDGTs (const Handle(XSControl_WorkSe
|
||||
Handle(StepShape_EdgeCurve) EC;
|
||||
FindPDSforDGT(aGraph,ent,PDS,RC,AF,EC);
|
||||
if(PDS.IsNull()) continue;
|
||||
//cout<<"Model->Number(PDS)="<<Model->Number(PDS)<<endl;
|
||||
//std::cout<<"Model->Number(PDS)="<<Model->Number(PDS)<<std::endl;
|
||||
Handle(XCAFDoc_Datum) DatumAttr;
|
||||
if(!DatumL.FindAttribute(XCAFDoc_Datum::GetID(),DatumAttr)) continue;
|
||||
Handle(TCollection_HAsciiString) aName = DatumAttr->GetName();
|
||||
@@ -3486,7 +3486,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteDGTs (const Handle(XSControl_WorkSe
|
||||
TColStd_SequenceOfTransient seqRI;
|
||||
FindEntities( FP, aShape, Loc, seqRI );
|
||||
if ( seqRI.Length() <= 0 ) {
|
||||
FP->Messenger() << "Warning: Cannot find RI for "<<aShape.TShape()->DynamicType()->Name()<<endl;
|
||||
FP->Messenger() << "Warning: Cannot find RI for "<<aShape.TShape()->DynamicType()->Name()<<Message_EndLine;
|
||||
continue;
|
||||
}
|
||||
Handle(StepRepr_ProductDefinitionShape) PDS;
|
||||
@@ -3496,7 +3496,7 @@ Standard_Boolean STEPCAFControl_Writer::WriteDGTs (const Handle(XSControl_WorkSe
|
||||
Handle(StepShape_EdgeCurve) EC;
|
||||
FindPDSforDGT(aGraph,ent,PDS,RC,AF,EC);
|
||||
if(PDS.IsNull()) continue;
|
||||
//cout<<"Model->Number(PDS)="<<Model->Number(PDS)<<endl;
|
||||
//std::cout<<"Model->Number(PDS)="<<Model->Number(PDS)<<std::endl;
|
||||
|
||||
Handle(XCAFDoc_DimTol) DimTolAttr;
|
||||
if(!DimTolL.FindAttribute(XCAFDoc_DimTol::GetID(),DimTolAttr)) continue;
|
||||
|
Reference in New Issue
Block a user