rasdaman API
Public Member Functions | List of all members
r_Conv_TOR Class Reference

#include <tor.hh>

Inheritance diagram for r_Conv_TOR:
r_Convertor

Public Member Functions

 r_Conv_TOR (const char *source, const r_Minterval &lengthordomain, const r_Type *tp) throw (r_Error)
 
 r_Conv_TOR (const char *source, const r_Minterval &lengthordomain, int tp) throw (r_Error)
 
r_convDescconvertFrom (const char *options=NULL) throw (r_Error)
 convert DEF to array More...
 
r_convDescconvertTo (const char *options=NULL) throw (r_Error)
 convert array to DEF More...
 
const char * get_name () const
 identification More...
 
r_Data_Format get_data_format () const
 
r_Convertorclone () const
 cloning More...
 
- Public Member Functions inherited from r_Convertor
 r_Convertor (void)
 default constructor (should not be used) More...
 
 r_Convertor (const char *src, const r_Minterval &interv, const r_Type *tp, bool fullTypes=false) throw (r_Error)
 constructor using an r_Type object More...
 
 r_Convertor (const char *src, const r_Minterval &interv, int type) throw (r_Error)
 constructor using convert_type_e shortcut More...
 
virtual ~r_Convertor (void)
 destructor More...
 
void set_storage_handler (const r_Storage_Man &newStore)
 set storage handler, default is malloc/free More...
 
const r_Storage_Manget_storage_handler () const
 get storage handler, default is malloc/free More...
 

Additional Inherited Members

- Public Types inherited from r_Convertor
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
 
- Static Public Member Functions inherited from r_Convertor
static std::string type_to_string (int ctype) throw (r_Error)
 get a string representation of the internal type More...
 
static r_Typeget_external_type (int ctype) throw (r_Error)
 get a r_Type from an internal type More...
 
static convert_type_e get_internal_type (const r_Type *type, bool fullTypes=false) throw (r_Error)
 get a internal type from a r_Type More...
 
- Protected Member Functions inherited from r_Convertor
void initShare (const char *src, const r_Minterval &interv)
 initialize internal structures More...
 
template<class baseType >
void applyColorScheme ()
 convert unsupported type to rgb by applying the default color scheme More...
 
- Protected Attributes inherited from r_Convertor
bool destroySrc
 true if we should free the src area (in case the input was converted to rgb) More...
 
r_convDesc desc
 conversion context More...
 
r_Parse_Paramsparams
 parameter parser More...
 
r_Storage_Man mystore
 storage manager More...
 

Constructor & Destructor Documentation

r_Conv_TOR::r_Conv_TOR ( const char *  source,
const r_Minterval lengthordomain,
const r_Type tp 
)
throw (r_Error
)
r_Conv_TOR::r_Conv_TOR ( const char *  source,
const r_Minterval lengthordomain,
int  tp 
)
throw (r_Error
)

Member Function Documentation

r_Convertor* r_Conv_TOR::clone ( ) const
virtual

cloning

Implements r_Convertor.

r_convDesc& r_Conv_TOR::convertFrom ( const char *  options = NULL)
throw (r_Error
)
virtual

convert DEF to array

Implements r_Convertor.

r_convDesc& r_Conv_TOR::convertTo ( const char *  options = NULL)
throw (r_Error
)
virtual

convert array to DEF

Implements r_Convertor.

r_Data_Format r_Conv_TOR::get_data_format ( ) const
virtual

Implements r_Convertor.

const char* r_Conv_TOR::get_name ( ) const
virtual

identification

Implements r_Convertor.


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