#include <convertor.hh>
|
enum | convert_type_e {
ctype_void,
ctype_bool,
ctype_char,
ctype_rgb,
ctype_int8,
ctype_uint8,
ctype_int16,
ctype_uint16,
ctype_int32,
ctype_uint32,
ctype_int64,
ctype_uint64,
ctype_float32,
ctype_float64,
ctype_struct
} |
| base type shortcuts More...
|
|
|
typedef struct
r_Convertor::convert_string_s | convert_string_t |
|
base type shortcuts
Enumerator |
---|
ctype_void |
|
ctype_bool |
|
ctype_char |
|
ctype_rgb |
|
ctype_int8 |
|
ctype_uint8 |
|
ctype_int16 |
|
ctype_uint16 |
|
ctype_int32 |
|
ctype_uint32 |
|
ctype_int64 |
|
ctype_uint64 |
|
ctype_float32 |
|
ctype_float64 |
|
ctype_struct |
|
r_Convertor::r_Convertor |
( |
void |
| ) |
|
default constructor (should not be used)
constructor using an r_Type object
r_Convertor::r_Convertor |
( |
const char * |
src, |
|
|
const r_Minterval & |
interv, |
|
|
int |
type |
|
) |
| |
throw | ( | r_Error |
| ) | | |
constructor using convert_type_e shortcut
virtual r_Convertor::~r_Convertor |
( |
void |
| ) |
|
|
virtual |
destructor
convert_type_e is an enumerator that acts as a shortcut to base types relevant for DEFs. The values and what they correspond to are listed below (the types below the line are for HDF):
{tabular}{ll} ctype_void && No type, used for errors\ ctype_bool && bool\ ctype_char && char\ ctype_rgb && struct {char, char, char}\ ctype_int8 && signed char\ ctype_uint8 && unsigned char\ ctype_int16 && short\ ctype_uint16 && unsigned short\ ctype_int32 && int\ ctype_uint32 && unsigned int\ ctype_int64 && (unsupported)\ ctype_uint64 && (unsupported)\ ctype_float32 && float\ ctype_float64 && double\ ctype_struct && struct \ {tabular}
template<class baseType >
void r_Convertor::applyColorScheme |
( |
| ) |
|
|
protected |
convert unsupported type to rgb by applying the default color scheme
cloning
Implemented in r_Conv_DEM, r_Conv_TIFF, r_Conv_CSV, r_Conv_HDF, r_Conv_NETCDF, r_Conv_BMP, r_Conv_TOR, r_Conv_VFF, r_Conv_JPEG, r_Conv_ECW, r_Conv_NTF, and r_Conv_PNG.
virtual r_convDesc& r_Convertor::convertFrom |
( |
const char * |
options = NULL | ) |
|
throw | ( | r_Error |
| ) | | |
|
pure virtual |
convert DEF to array
Implemented in r_Conv_DEM, r_Conv_TIFF, r_Conv_CSV, r_Conv_HDF, r_Conv_NETCDF, r_Conv_BMP, r_Conv_VFF, r_Conv_JPEG, r_Conv_NTF, r_Conv_TOR, r_Conv_PNG, and r_Conv_ECW.
virtual r_convDesc& r_Convertor::convertTo |
( |
const char * |
options = NULL | ) |
|
throw | ( | r_Error |
| ) | | |
|
pure virtual |
convert array to DEF
Implemented in r_Conv_DEM, r_Conv_TIFF, r_Conv_CSV, r_Conv_HDF, r_Conv_NETCDF, r_Conv_BMP, r_Conv_VFF, r_Conv_TOR, r_Conv_JPEG, r_Conv_ECW, r_Conv_NTF, and r_Conv_PNG.
virtual r_Data_Format r_Convertor::get_data_format |
( |
void |
| ) |
const |
|
pure virtual |
Implemented in r_Conv_DEM, r_Conv_TIFF, r_Conv_CSV, r_Conv_HDF, r_Conv_NETCDF, r_Conv_BMP, r_Conv_VFF, r_Conv_JPEG, r_Conv_NTF, r_Conv_TOR, r_Conv_PNG, and r_Conv_ECW.
static r_Type* r_Convertor::get_external_type |
( |
int |
ctype | ) |
|
throw | ( | r_Error |
| ) | | |
|
static |
get a r_Type from an internal type
get a internal type from a r_Type
virtual const char* r_Convertor::get_name |
( |
void |
| ) |
const |
|
pure virtual |
identification
Implemented in r_Conv_DEM, r_Conv_TIFF, r_Conv_CSV, r_Conv_HDF, r_Conv_NETCDF, r_Conv_BMP, r_Conv_VFF, r_Conv_JPEG, r_Conv_NTF, r_Conv_TOR, r_Conv_PNG, and r_Conv_ECW.
get storage handler, default is malloc/free
void r_Convertor::initShare |
( |
const char * |
src, |
|
|
const r_Minterval & |
interv |
|
) |
| |
|
protected |
initialize internal structures
void r_Convertor::set_storage_handler |
( |
const r_Storage_Man & |
newStore | ) |
|
set storage handler, default is malloc/free
static std::string r_Convertor::type_to_string |
( |
int |
ctype | ) |
|
throw | ( | r_Error |
| ) | | |
|
static |
get a string representation of the internal type
bool r_Convertor::destroySrc |
|
protected |
true if we should free the src area (in case the input was converted to rgb)
The documentation for this class was generated from the following file: