21 #if defined(__msvc__) && (defined(GENERAL_EXPORTS) || defined(General_EXPORTS) ) 22 # define mGenClass class dll_export 24 # define mGenClass class 60 bool ignoreendianness=
false);
63 bool ignoreendianness=
false);
67 {
set( dc, false );
return *
this; }
69 bool needSwap()
const;
71 { (this->*swpfn)( buf, bufsz_in_elements );
76 static bool get(
const DataInterpreter<T>*,
od_istream&,T&);
77 inline T
get(
const void* buf,
od_int64 nr )
const 78 {
return (this->*getfn)( buf, nr ); }
80 { (this->*putfn)( buf, nr, t ); }
83 {
return di.
getfn == getfn; }
85 {
return di.
getfn != getfn; }
89 DataCharacteristics dataChar()
const;
100 T getS8(
const void*,
od_int64)
const;
101 T getU1(
const void*,
od_int64)
const;
102 T getU2(
const void*,
od_int64)
const;
103 T getU4(
const void*,
od_int64)
const;
107 T getS2Ibm(
const void*,
od_int64)
const;
108 T getS4Ibm(
const void*,
od_int64)
const;
109 T getFIbm(
const void*,
od_int64)
const;
111 T getS2swp(
const void*,
od_int64)
const;
112 T getS4swp(
const void*,
od_int64)
const;
113 T getS8swp(
const void*,
od_int64)
const;
114 T getU2swp(
const void*,
od_int64)
const;
115 T getU4swp(
const void*,
od_int64)
const;
116 T getFswp(
const void*,
od_int64)
const;
117 T getDswp(
const void*,
od_int64)
const;
119 T getS2Ibmswp(
const void*,
od_int64)
const;
120 T getS4Ibmswp(
const void*,
od_int64)
const;
121 T getFIbmswp(
const void*,
od_int64)
const;
133 void putS2Ibm(
void*,
od_int64,T)
const;
134 void putS4Ibm(
void*,
od_int64,T)
const;
135 void putFIbm(
void*,
od_int64,T)
const;
137 void putS2swp(
void*,
od_int64,T)
const;
138 void putS4swp(
void*,
od_int64,T)
const;
139 void putS8swp(
void*,
od_int64,T)
const;
140 void putU2swp(
void*,
od_int64,T)
const;
141 void putU4swp(
void*,
od_int64,T)
const;
142 void putFswp(
void*,
od_int64,T)
const;
143 void putDswp(
void*,
od_int64,T)
const;
145 void putS2Ibmswp(
void*,
od_int64,T)
const;
146 void putS4Ibmswp(
void*,
od_int64,T)
const;
147 void putFIbmswp(
void*,
od_int64,T)
const;
149 typedef T (DataInterpreter<T>::*GetFn)(
const void*,
od_int64)
const;
150 typedef void (DataInterpreter<T>::*PutFn)(
void*,
od_int64,T)
const;
151 typedef void (DataInterpreter<T>::*SwapFn)(
void*,
od_int64)
const;
157 T
get0(
const void*,od_int64)
const {
return 0; }
158 void put0(
void*,od_int64,T)
const {}
void swap(void *buf, od_int64 bufsz_in_elements) const
Definition: datainterp.h:70
bool operator==(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:53
SwapFn swpfn
Definition: datainterp.h:154
T get0(const void *, od_int64) const
Definition: datainterp.h:157
#define mGenClass
Definition: datainterp.h:24
#define od_int64
Definition: plftypes.h:36
GetFn getfn
Definition: datainterp.h:152
bool isSUCompat() const
Definition: datainterp.h:86
OD class for stream read.
Definition: od_istream.h:24
Byte-level data interpreter.
Definition: cbvswriter.h:22
void put0(void *, od_int64, T) const
Definition: datainterp.h:158
Generalized set of parameters of the keyword-value type.
Definition: iopar.h:47
PutFn putfn
Definition: datainterp.h:153
byte-level data characteristics of stored data.
Definition: datachar.h:37
void swap0(void *, od_int64) const
Definition: datainterp.h:156
T getF(const void *, od_int64) const
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:62
void put(void *buf, od_int64 nr, T t) const
Definition: datainterp.h:79
static uiHor3DInterpol * create(uiParent *)
DataInterpreter< T > & operator=(const DataCharacteristics &dc)
Definition: datainterp.h:66
od_istream & operator=(const od_istream &s)
Definition: od_istream.h:39