MrSID Decode SDK for LiDAR Reference Manual  1.1.4.4709
DataTypeUtils Struct Reference

Helper functions for interaction with the DataType enum. More...

#include <PointData.h>

Static Public Member Functions

static bool isSigned (DataType dt)
 Determine if the datatype is signed. More...
 
static bool isFloat (DataType dt)
 Determine if the datatype is a floating point type. More...
 
static int byteWidth (DataType dt)
 Get the data type size. More...
 
static const char * toString (DataType dt)
 Get the string representation. More...
 
static DataType toDataType (const char *str)
 

Detailed Description

Definition at line 49 of file PointData.h.

Member Function Documentation

§ byteWidth()

static int DataTypeUtils::byteWidth ( DataType  dt)
inlinestatic

This function returns the size of the data type in bytes.

Parameters
dtthe datatype value
Returns
size of the data type in bytes

Definition at line 77 of file PointData.h.

References toDataType(), and toString().

§ isFloat()

static bool DataTypeUtils::isFloat ( DataType  dt)
inlinestatic

This function returns true if the data type is a floating point type.

Parameters
dtthe datatype value

Definition at line 67 of file PointData.h.

§ isSigned()

static bool DataTypeUtils::isSigned ( DataType  dt)
inlinestatic

This function returns true if the data type is signed.

Parameters
dtthe datatype value

Definition at line 58 of file PointData.h.

§ toDataType()

static DataType DataTypeUtils::toDataType ( const char *  str)
static

Referenced by byteWidth().

§ toString()

static const char* DataTypeUtils::toString ( DataType  dt)
static

This function returns the human readable representation of the data type.

Parameters
dtthe datatype value
Returns
human readable string

Referenced by byteWidth().


The documentation for this struct was generated from the following file:

LizardTech