19 #if defined(__msvc__) && (defined(GENERAL_EXPORTS) || defined(General_EXPORTS) ) 20 # define mGenClass class dll_export 22 # define mGenClass class 58 bool ignoreendianness=
false);
61 bool ignoreendianness=
false);
65 {
set( dc, false );
return *
this; }
67 bool needSwap()
const;
69 { (this->*swpfn)( buf, bufsz_in_elements );
74 static bool get(
const DataInterpreter<T>*,
od_istream&,T&);
75 inline T
get(
const void* buf,
od_int64 nr )
const 76 {
return (this->*getfn)( buf, nr ); }
78 { (this->*putfn)( buf, nr, t ); }
81 {
return di.
getfn == getfn; }
83 {
return di.
getfn != getfn; }
87 DataCharacteristics dataChar()
const;
100 T getU2(
const void*,
od_int64)
const;
101 T getU4(
const void*,
od_int64)
const;
105 T getS2Ibm(
const void*,
od_int64)
const;
106 T getS4Ibm(
const void*,
od_int64)
const;
107 T getFIbm(
const void*,
od_int64)
const;
109 T getS2swp(
const void*,
od_int64)
const;
110 T getS4swp(
const void*,
od_int64)
const;
111 T getS8swp(
const void*,
od_int64)
const;
112 T getU2swp(
const void*,
od_int64)
const;
113 T getU4swp(
const void*,
od_int64)
const;
114 T getFswp(
const void*,
od_int64)
const;
115 T getDswp(
const void*,
od_int64)
const;
117 T getS2Ibmswp(
const void*,
od_int64)
const;
118 T getS4Ibmswp(
const void*,
od_int64)
const;
119 T getFIbmswp(
const void*,
od_int64)
const;
131 void putS2Ibm(
void*,
od_int64,T)
const;
132 void putS4Ibm(
void*,
od_int64,T)
const;
133 void putFIbm(
void*,
od_int64,T)
const;
135 void putS2swp(
void*,
od_int64,T)
const;
136 void putS4swp(
void*,
od_int64,T)
const;
137 void putS8swp(
void*,
od_int64,T)
const;
138 void putU2swp(
void*,
od_int64,T)
const;
139 void putU4swp(
void*,
od_int64,T)
const;
140 void putFswp(
void*,
od_int64,T)
const;
141 void putDswp(
void*,
od_int64,T)
const;
143 void putS2Ibmswp(
void*,
od_int64,T)
const;
144 void putS4Ibmswp(
void*,
od_int64,T)
const;
145 void putFIbmswp(
void*,
od_int64,T)
const;
147 typedef T (DataInterpreter<T>::*GetFn)(
const void*,
od_int64)
const;
148 typedef void (DataInterpreter<T>::*PutFn)(
void*,
od_int64,T)
const;
149 typedef void (DataInterpreter<T>::*SwapFn)(
void*,
od_int64)
const;
155 T
get0(
const void*,od_int64)
const {
return 0; }
156 void put0(
void*,od_int64,T)
const {}
void swap(void *buf, od_int64 bufsz_in_elements) const
Definition: datainterp.h:68
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:51
SwapFn swpfn
Definition: datainterp.h:152
T get0(const void *, od_int64) const
Definition: datainterp.h:155
#define mGenClass
Definition: datainterp.h:22
#define od_int64
Definition: plftypes.h:34
GetFn getfn
Definition: datainterp.h:150
OD class for stream read.
Definition: od_istream.h:23
Byte-level data interpreter.
Definition: cbvswriter.h:20
void put0(void *, od_int64, T) const
Definition: datainterp.h:156
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:53
PutFn putfn
Definition: datainterp.h:151
byte-level data characteristics of stored data.
Definition: datachar.h:35
void swap0(void *, od_int64) const
Definition: datainterp.h:154
T getF(const void *, od_int64) const
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:60
void put(void *buf, od_int64 nr, T t) const
Definition: datainterp.h:77
static uiHor3DInterpol * create(uiParent *)
DataInterpreter< T > & operator=(const DataCharacteristics &dc)
Definition: datainterp.h:64
bool isF32() const
Definition: datainterp.h:84