|
MrSID Decode SDK for LiDAR Reference Manual
1.1.4.4709
|
Helper functions for interaction with the DataType enum.
#include <PointData.h>
Static Public Member Functions | |
| static bool | isSigned (DataType dt) |
| Determine if the datatype is signed. | |
| static bool | isFloat (DataType dt) |
| Determine if the datatype is a floating point type. | |
| static int | byteWidth (DataType dt) |
| Get the data type size. | |
| static const char * | toString (DataType dt) |
| Get the string representation. | |
| static DataType | toDataType (const char *str) |
Definition at line 49 of file PointData.h.
| static int DataTypeUtils::byteWidth | ( | DataType | dt | ) | [inline, static] |
This function returns the size of the data type in bytes.
| dt | the datatype value |
Definition at line 77 of file PointData.h.
| static bool DataTypeUtils::isFloat | ( | DataType | dt | ) | [inline, static] |
This function returns true if the data type is a floating point type.
| dt | the datatype value |
Definition at line 67 of file PointData.h.
| static bool DataTypeUtils::isSigned | ( | DataType | dt | ) | [inline, static] |
This function returns true if the data type is signed.
| dt | the datatype value |
Definition at line 58 of file PointData.h.
| static DataType DataTypeUtils::toDataType | ( | const char * | str | ) | [static] |
| static const char* DataTypeUtils::toString | ( | DataType | dt | ) | [static] |
This function returns the human readable representation of the data type.
| dt | the datatype value |