- added functionaliy for the STLWriter to also write to ostreams

git-svn-id: http://www.openmesh.org/svnrepo/OpenMesh/trunk@705 fdac6126-5c0c-442c-9429-916003d36597
This commit is contained in:
Isaak Lim
2012-09-27 10:18:43 +00:00
parent 7d50c6def6
commit 10b271fb56
4 changed files with 228 additions and 17 deletions

View File

@@ -129,6 +129,21 @@ void write_float(float _f, FILE* _out, bool _swap=false);
\c _swap is true */
void write_double(double _d, FILE* _out, bool _swap=false);
/** Binary write a \c short to \c _os and perform byte swapping if
\c _swap is true */
void write_short(short int _i, std::ostream& _out, bool _swap=false);
/** Binary write an \c int to \c _os and perform byte swapping if
\c _swap is true */
void write_int(int _i, std::ostream& _out, bool _swap=false);
/** Binary write a \c float to \c _os and perform byte swapping if
\c _swap is true */
void write_float(float _f, std::ostream& _out, bool _swap=false);
/** Binary write a \c double to \c _os and perform byte swapping if
\c _swap is true */
void write_double(double _d, std::ostream& _out, bool _swap=false);
//@}