| 776 | #endif |
| 777 | |
| 778 | Expected<void> readFromFile( STEPControl_Reader& reader, const std::filesystem::path& path ) |
| 779 | { |
| 780 | MR_TIMER; |
| 781 | |
| 782 | const TCollection_AsciiString pathStr( path.c_str() ); |
| 783 | if ( reader.ReadFile( pathStr.ToCString() ) != IFSelect_RetDone ) |
| 784 | return unexpected( "Failed to read STEP model" ); |
| 785 | return {}; |
| 786 | } |
| 787 | |
| 788 | Expected<void> readFromStream( STEPControl_Reader& reader, std::istream& in ) |
| 789 | { |
no test coverage detected