modfileprivate.h File Reference

Go to the source code of this file.

Macros

#define READ_ASSERT(cond)
#define READ(setter, type, read)
#define READ_BYTE(setter)   READ(setter,uchar,readByte)
#define READ_U16L(setter)   READ(setter,ushort,readU16L)
#define READ_U32L(setter)   READ(setter,ulong,readU32L)
#define READ_U16B(setter)   READ(setter,ushort,readU16B)
#define READ_U32B(setter)   READ(setter,ulong,readU32B)
#define READ_STRING(setter, size)
#define READ_AS(type, name, read)
#define READ_BYTE_AS(name)   READ_AS(uchar,name,readByte)
#define READ_U16L_AS(name)   READ_AS(ushort,name,readU16L)
#define READ_U32L_AS(name)   READ_AS(ulong,name,readU32L)
#define READ_U16B_AS(name)   READ_AS(ushort,name,readU16B)
#define READ_U32B_AS(name)   READ_AS(ulong,name,readU32B)
#define READ_STRING_AS(name, size)

Macro Definition Documentation

#define READ (   setter,
  type,
  read 
)
Value:
{ \
type number; \
READ_ASSERT(read(number)); \
setter(number); \
}
#define READ_AS (   type,
  name,
  read 
)
Value:
type name = 0; \
READ_ASSERT(read(name));
#define READ_ASSERT (   cond)
Value:
if(!(cond)) \
{ \
setValid(false); \
return; \
}
#define READ_BYTE (   setter)    READ(setter,uchar,readByte)
#define READ_BYTE_AS (   name)    READ_AS(uchar,name,readByte)
#define READ_STRING (   setter,
  size 
)
Value:
{ \
String s; \
READ_ASSERT(readString(s, size)); \
setter(s); \
}
#define READ_STRING_AS (   name,
  size 
)
Value:
String name; \
READ_ASSERT(readString(name, size));
#define READ_U16B (   setter)    READ(setter,ushort,readU16B)
#define READ_U16B_AS (   name)    READ_AS(ushort,name,readU16B)
#define READ_U16L (   setter)    READ(setter,ushort,readU16L)
#define READ_U16L_AS (   name)    READ_AS(ushort,name,readU16L)
#define READ_U32B (   setter)    READ(setter,ulong,readU32B)
#define READ_U32B_AS (   name)    READ_AS(ulong,name,readU32B)
#define READ_U32L (   setter)    READ(setter,ulong,readU32L)
#define READ_U32L_AS (   name)    READ_AS(ulong,name,readU32L)