17 #include "generalmod.h" 21 #define mDeclConstr(T,ii,is) \ 22 DataCharacteristics( const T* ) \ 23 : BinDataDesc(ii,is,sizeof(T)), fmt_(Ieee), littleendian_(__islittle__) {} \ 24 DataCharacteristics( const T& ) \ 25 : BinDataDesc(ii,is,sizeof(T)), fmt_(Ieee), littleendian_(__islittle__) {} 49 : BinDataDesc(ii,is,n)
50 , fmt_(f), littleendian_(l) {}
55 inline bool isIeee()
const {
return fmt_ == Ieee; }
63 virtual void set(
const char*);
64 virtual void dump(
unsigned char&,
unsigned char&)
const;
65 virtual void set(
unsigned char,
unsigned char);
78 {
return isEqual(dc); }
80 {
return !isEqual(dc); }
82 { BinDataDesc::operator=(bd);
return *
this; }
85 {
return (
int)nrbytes_ > 1
88 enum UserType { Auto=0, SI8, UI8, SI16, UI16, SI32, UI32, F32,
92 UserType userType() const;
93 double getLimitValue(
bool max) const;
#define mExpClass(module)
Definition: commondefs.h:160
ByteCount
Definition: bindatadesc.h:47
#define od_int64
Definition: plftypes.h:36
#define mDeclareEnumUtils(enm)
Some utilities surrounding the often needed enum <-> string table.
Definition: enums.h:258
bool isIeee() const
Definition: datachar.h:55
#define __islittle__
Definition: plfdefs.h:136
DataCharacteristics(bool ii=false, bool is=true, ByteCount n=N4, Format f=Ieee, bool l=__islittle__)
Definition: datachar.h:46
bool littleendian_
Definition: datachar.h:44
byte-level data characteristics of stored data.
Definition: datachar.h:37
Format fmt_
Definition: datachar.h:43
bool operator!=(const ArrayNDInfo &a1, const ArrayNDInfo &a2)
Definition: arrayndinfo.h:62
bool needSwap() const
Definition: datachar.h:84
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
Definition: datachar.h:41
DataCharacteristics(const BinDataDesc &bd)
Definition: datachar.h:51
virtual int maxStringifiedSize() const
Definition: datachar.h:61
UserType
Definition: datachar.h:88
DataCharacteristics(const char *s)
Definition: datachar.h:59
Format
Definition: datachar.h:41
Description of binary data.
Definition: bindatadesc.h:43
#define mDeclConstr(T, ii, is)
Definition: datachar.h:21
ManagedObjectSet< BufferString > & operator=(const ObjectSet< BufferString > &)
Export_Basic const char * toString(ViewStyle)
DataCharacteristics(unsigned char c1, unsigned char c2)
Definition: datachar.h:57