From 407407a253b9d71cf212402e5896000a81dfd318 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 23 Jan 2020 15:12:25 +0100 Subject: Add option to read binary STL from a FILE * --- src/stl_binary_reader.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src/stl_binary_reader.h') diff --git a/src/stl_binary_reader.h b/src/stl_binary_reader.h index 4c8f6e1..fd85a3c 100644 --- a/src/stl_binary_reader.h +++ b/src/stl_binary_reader.h @@ -26,13 +26,16 @@ namespace sub { +class InputReader; + /** @class STLBinaryReader * @brief A class to read binary STL files. */ class STLBinaryReader : public Reader { public: - STLBinaryReader (std::istream &); + explicit STLBinaryReader (std::istream& in); + explicit STLBinaryReader (FILE* in); std::map metadata () const; @@ -67,6 +70,8 @@ public: std::string editor_contact_details; private: + void read (boost::shared_ptr reader); + STLBinaryTables _tables; }; -- cgit v1.2.3