Import: Apply clang format
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
# include <sstream>
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
#include <Base/Exception.h>
|
||||
@@ -31,8 +31,8 @@
|
||||
#include <Interface_Static.hxx>
|
||||
#include <Message_Messenger.hxx>
|
||||
#include <Message_PrinterOStream.hxx>
|
||||
#include <Standard_Version.hxx>
|
||||
#include <STEPControl_Reader.hxx>
|
||||
#include <Standard_Version.hxx>
|
||||
#include <StepData_StepModel.hxx>
|
||||
|
||||
#include "StepShape.h"
|
||||
@@ -63,8 +63,8 @@ int StepShape::read(const char* fileName)
|
||||
|
||||
Handle(TColStd_HSequenceOfTransient) list = aReader.GiveList();
|
||||
|
||||
//Use method StepData_StepModel::NextNumberForLabel to find its rank with the following:
|
||||
//Standard_CString label = "#...";
|
||||
// Use method StepData_StepModel::NextNumberForLabel to find its rank with the following:
|
||||
// Standard_CString label = "#...";
|
||||
Handle(StepData_StepModel) model = aReader.StepModel();
|
||||
|
||||
|
||||
@@ -77,15 +77,15 @@ int StepShape::read(const char* fileName)
|
||||
model->DumpHeader(std::cout);
|
||||
#endif
|
||||
|
||||
for (int nent=1;nent<=model->NbEntities();nent++) {
|
||||
Handle(Standard_Transient) entity=model->Entity(nent);
|
||||
std::cout << "label entity " << nent << ":" ;
|
||||
for (int nent = 1; nent <= model->NbEntities(); nent++) {
|
||||
Handle(Standard_Transient) entity = model->Entity(nent);
|
||||
std::cout << "label entity " << nent << ":";
|
||||
#if OCC_VERSION_HEX < 0x070401
|
||||
model->PrintLabel(entity, msg);
|
||||
model->PrintLabel(entity, msg);
|
||||
#else
|
||||
model->PrintLabel(entity, std::cout);
|
||||
model->PrintLabel(entity, std::cout);
|
||||
#endif
|
||||
std::cout << ";"<< entity->DynamicType()->Name() << std::endl;
|
||||
std::cout << ";" << entity->DynamicType()->Name() << std::endl;
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user