projects
/
libsub.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add option to read binary STL from a FILE *
[libsub.git]
/
src
/
stl_binary_reader.h
diff --git
a/src/stl_binary_reader.h
b/src/stl_binary_reader.h
index 4c8f6e114a552abe7c2328d356e4de25c54be52b..fd85a3c95bdf63e55ddb1f8d7a6f32bd3c01559c 100644
(file)
--- a/
src/stl_binary_reader.h
+++ b/
src/stl_binary_reader.h
@@
-26,13
+26,16
@@
namespace sub {
namespace sub {
+class InputReader;
+
/** @class STLBinaryReader
* @brief A class to read binary STL files.
*/
class STLBinaryReader : public Reader
{
public:
/** @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;
std::map<std::string, std::string> metadata () const;
@@
-67,6
+70,8
@@
public:
std::string editor_contact_details;
private:
std::string editor_contact_details;
private:
+ void read (boost::shared_ptr<InputReader> reader);
+
STLBinaryTables _tables;
};
STLBinaryTables _tables;
};