|
These functions take care of swapping bytes to get the right Endian.
|
|
typedef unsigned char | uchar |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
|
typedef unsigned short | ushort |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
|
typedef unsigned long | ulong |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
|
typedef signed char | int8_t |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
|
typedef unsigned char | uint8_t |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
|
typedef short | int16_t |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
|
typedef unsigned short | uint16_t |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
|
typedef int | int32_t |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
|
typedef unsigned int | uint32_t |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
|
typedef long long | int64_t |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
|
typedef unsigned long long | uint64_t |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
|
typedef float | float32_t |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
|
typedef double | float64_t |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
|
typedef uint8_t | rgb_t[3] |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
|
typedef uint8_t | rgba_t[4] |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
|
short int | read_short (FILE *_in, bool _swap=false) |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
|
int | read_int (FILE *_in, bool _swap=false) |
| | Binary read an int from _is and perform byte swapping if _swap is true.
|
| |
|
float | read_float (FILE *_in, bool _swap=false) |
| | Binary read a float from _is and perform byte swapping if _swap is true.
|
| |
|
double | read_double (FILE *_in, bool _swap=false) |
| | Binary read a double from _is and perform byte swapping if _swap is true.
|
| |
|
short int | read_short (std::istream &_in, bool _swap=false) |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
|
int | read_int (std::istream &_in, bool _swap=false) |
| | Binary read an int from _is and perform byte swapping if _swap is true.
|
| |
|
float | read_float (std::istream &_in, bool _swap=false) |
| | Binary read a float from _is and perform byte swapping if _swap is true.
|
| |
|
double | read_double (std::istream &_in, bool _swap=false) |
| | Binary read a double from _is and perform byte swapping if _swap is true.
|
| |
|
void | write_short (short int _i, FILE *_out, bool _swap=false) |
| | Binary write a short to _os and perform byte swapping if _swap is true.
|
| |
|
void | write_int (int _i, FILE *_out, bool _swap=false) |
| | Binary write an int to _os and perform byte swapping if _swap is true.
|
| |
|
void | write_float (float _f, FILE *_out, bool _swap=false) |
| | Binary write a float to _os and perform byte swapping if _swap is true.
|
| |
|
void | write_double (double _d, FILE *_out, bool _swap=false) |
| | Binary write a double to _os and perform byte swapping if _swap is true.
|
| |
|
void | write_short (short int _i, std::ostream &_out, bool _swap=false) |
| | Binary write a short to _os and perform byte swapping if _swap is true.
|
| |
|
void | write_int (int _i, std::ostream &_out, bool _swap=false) |
| | Binary write an int to _os and perform byte swapping if _swap is true.
|
| |
|
void | write_float (float _f, std::ostream &_out, bool _swap=false) |
| | Binary write a float to _os and perform byte swapping if _swap is true.
|
| |
|
void | write_double (double _d, std::ostream &_out, bool _swap=false) |
| | Binary write a double to _os and perform byte swapping if _swap is true.
|
| |
|
template<size_t N> |
| void | _reverse_byte_order_N (uint8_t *_val) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<> |
| void | _reverse_byte_order_N< 1 > (uint8_t *) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<> |
| void | _reverse_byte_order_N< 2 > (uint8_t *_val) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<> |
| void | _reverse_byte_order_N< 4 > (uint8_t *_val) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<> |
| void | _reverse_byte_order_N< 8 > (uint8_t *_val) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<> |
| void | _reverse_byte_order_N< 12 > (uint8_t *_val) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<> |
| void | _reverse_byte_order_N< 16 > (uint8_t *_val) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<typename T > |
| T * | reverse_byte_order (T *t) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
void | compile_time_error__no_fundamental_type () |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<typename T > |
| T & | reverse_byte_order (T &_t) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<> |
| bool & | reverse_byte_order (bool &_t) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<> |
| char & | reverse_byte_order (char &_t) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<> |
| uchar & | reverse_byte_order (uchar &_t) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<> |
| int16_t & | reverse_byte_order (int16_t &_t) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<> |
| uint16_t & | reverse_byte_order (uint16_t &_t) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<> |
| unsigned long & | reverse_byte_order (unsigned long &_t) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<> |
| int32_t & | reverse_byte_order (int32_t &_t) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<> |
| uint32_t & | reverse_byte_order (uint32_t &_t) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<> |
| int64_t & | reverse_byte_order (int64_t &_t) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<> |
| uint64_t & | reverse_byte_order (uint64_t &_t) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<> |
| float & | reverse_byte_order (float &_t) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<> |
| double & | reverse_byte_order (double &_t) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<> |
| long double & | reverse_byte_order (long double &_t) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<typename T > |
| T | reverse_byte_order (const T &a) |
| | this does not compile for g++3.4 and higher, hence we comment the function body which will result in a linker error
|
| |
|
template<typename T > |
| bool | is_streamable (void) |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
|
template<typename T > |
| bool | is_streamable (const T &) |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
|
template<typename T > |
| size_t | size_of (const T &_v) |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
|
template<typename T > |
| size_t | size_of (void) |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
|
template<typename T > |
| size_t | store (std::ostream &_os, const T &_v, bool _swap=false) |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
|
template<typename T > |
| size_t | restore (std::istream &_is, T &_v, bool _swap=false) |
| | Binary read a short from _is and perform byte swapping if _swap is true.
|
| |
This namespace contains functions for reading and writing polygonal meshes and a list of supported file formats.