summaryrefslogtreecommitdiff
path: root/src/stl_binary_reader.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2020-01-23 15:12:25 +0100
committerCarl Hetherington <cth@carlh.net>2020-01-23 20:59:31 +0100
commit407407a253b9d71cf212402e5896000a81dfd318 (patch)
tree1763790eccff820e65f9410127c20f823b7ca308 /src/stl_binary_reader.h
parent0981aef3083080030445c9510523e6247ea5e302 (diff)
Add option to read binary STL from a FILE *
Diffstat (limited to 'src/stl_binary_reader.h')
-rw-r--r--src/stl_binary_reader.h7
1 files changed, 6 insertions, 1 deletions
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<std::string, std::string> metadata () const;
@@ -67,6 +70,8 @@ public:
std::string editor_contact_details;
private:
+ void read (boost::shared_ptr<InputReader> reader);
+
STLBinaryTables _tables;
};