CFx SDK Documentation  2020SP3
Macros
NextCodeDefs.h File Reference

Go to the source code of this file.

Macros

#define NEXT_CODE(code)
 
#define NEXT_UINT64(code, ref64)
 
#define DXF_OUT_UINT64(code, ref64)
 
#define DWG_IN_UINT64(ref64)
 
#define DWG_OUT_UINT64(ref64)
 

Macro Definition Documentation

◆ DWG_IN_UINT64

#define DWG_IN_UINT64 (   ref64)
Value:
if (pFiler->dwgVersion() > OdDb::vAC21) \
ref64 = pFiler->rdInt64(); \
else \
{ \
ref64 = pFiler->rdInt32(); /* hi */ \
ref64 <<= 32; \
ref64 += (OdUInt32) pFiler->rdInt32(); /* low */ \
}

Definition at line 62 of file NextCodeDefs.h.

◆ DWG_OUT_UINT64

#define DWG_OUT_UINT64 (   ref64)
Value:
if (pFiler->dwgVersion() > OdDb::vAC21) \
pFiler->wrInt64(ref64); \
else \
{ \
pFiler->wrInt32((OdInt32) (ref64 >> 32)); /* hi */ \
pFiler->wrInt32((OdInt32) ref64); /* low */ \
}

Definition at line 72 of file NextCodeDefs.h.

◆ DXF_OUT_UINT64

#define DXF_OUT_UINT64 (   code,
  ref64 
)
Value:
if (pFiler->dwgVersion() > OdDb::vAC21) \
pFiler->wrUInt64(code, ref64); \
else \
{ \
pFiler->wrUInt32(91 + code - 160, (OdUInt32) (ref64 >> 32)); /* hi */ \
pFiler->wrUInt32(92 + code - 160, (OdInt32) ref64); /* low */ \
}

Definition at line 53 of file NextCodeDefs.h.

◆ NEXT_CODE

#define NEXT_CODE (   code)
Value:
if (pFiler->nextItem() != code) \
{ \
ODA_FAIL_ONCE(); \
return eMakeMeProxy; \
}

Definition at line 27 of file NextCodeDefs.h.

◆ NEXT_UINT64

#define NEXT_UINT64 (   code,
  ref64 
)
Value:
switch (pFiler->nextItem()) \
{ \
case code: \
ref64 = pFiler->rdUInt64(); \
break; \
case (91 + code - 160): /* hi */ \
ref64 = pFiler->rdUInt32(); \
ref64 <<= 32; \
if (pFiler->nextItem() != (91 + code - 160)) \
{ /* low */ \
ref64 += pFiler->rdUInt32(); \
break; \
} \
default: \
ODA_FAIL_ONCE(); \
return eMakeMeProxy; \
}

Definition at line 34 of file NextCodeDefs.h.

OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdInt32
int OdInt32
Definition: OdPlatformSettings.h:782
OdDb::vAC21
@ vAC21
Definition: OdaDefs.h:85