CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Functions
OdPlatform.h File Reference
#include "OdPlatformSettings.h"
#include "OdGUID.h"
#include <stdio.h>
#include <limits.h>
#include <math.h>
#include <cstdlib>
#include <cmath>
#include <wchar.h>
#include <time.h>

Go to the source code of this file.

Classes

struct  OdTagRECT
 
struct  tagRGBQUAD
 
struct  tagBITMAPINFOHEADER
 
struct  tagCIEXYZ
 
struct  tagICEXYZTRIPLE
 
struct  tagBITMAPV4HEADER
 
struct  tagBITMAPINFO
 
struct  tagBITMAPFILEHEADER
 

Macros

#define odmin(X, Y)   ((X) < (Y) ? (X) : (Y))
 
#define odmax(X, Y)   ((X) > (Y) ? (X) : (Y))
 
#define GETSS(s, n)   fgets(s, n, stdin)
 
#define MAX_PATH   PATH_MAX
 
#define OdWprintf   wprintf
 
#define OdPrintf   printf
 
#define Odisnan(x)   std::isnan(x)
 
#define Odfinite(x)   (finite(x) != 0)
 
#define Od_abs   std::abs
 
#define Od_atof   atof
 
#define Od_labs   std::labs
 
#define Od_llabs   std::llabs
 
#define Od_srand   srand
 
#define Od_rand   rand
 
#define Od_wcstombs   wcstombs
 
#define Od_wcscpy   wcscpy
 
#define Od_wcscmp   wcscmp
 
#define Od_wcscat   wcscat
 
#define Od_wcschr   wcschr
 
#define Od_wcslen   wcslen
 
#define Od_wcsncpy   wcsncpy
 
#define Od_round   std::round
 
#define odStrChr(str, ch)   strchr(str, ch)
 
#define odWStrChr(str, ch)   Od_wcschr(str, ch)
 
#define odStrLen(str)   wcslen(str)
 
#define odStrLenA(str)   strlen(str)
 
#define odStrCmp(str, str2)   wcscmp(str, str2)
 
#define odStrCmpA(str, str2)   strcmp(str, str2)
 
#define FSEEK   fseeko64
 
#define FTELL   ftello64
 
#define FOPEN   fopen64
 
#define OFFSETTYPE(offset)   offset
 
#define odStrICmp   Od_stricmpW
 
#define odStrICmpA(str, str2)   stricmp(str, str2)
 
#define odStrnICmp   Od_stricmpW
 
#define odStrnICmpA(str, str2, n)   strnicmp(str, str2, n)
 
#define odStrUpr(str)   Od_struprW(str)
 
#define odStrUprA(str)   strupr(str)
 
#define odStrLwr(str)   Od_strlwrW(str)
 
#define odStrLwrA(str)   strlwr(str)
 
#define odStrRev(str)   Od_strrevW(str)
 
#define odStrRevA(str)   strrev(str)
 
#define odStrToInt(str)   Od_strtoint(str)
 
#define odStrToUInt(str)   Od_strtouint(str)
 
#define Od_isspace(ch)   isspace(ch)
 
#define Od_iswspace(ch)   iswspace(ch)
 
#define Od_isdigit(ch)   isdigit(ch)
 
#define Od_iswdigit(ch)   iswdigit(ch)
 
#define odSScanf   swscanf
 
#define odSprintf   swprintf
 
#define odSprintfA   snprintf
 
#define odStrToF   Od_wtof
 
#define OD_TYPENAME
 
#define OD_TYPENAME2
 
#define OD_TYPENAME3
 
#define OD_BSEARCH   ::bsearch
 
#define TD_USING(a)   using a
 
#define OD_LINKEDARRAY_SCOPE
 
#define odStrStr   ::wcsstr
 
#define OD_MAKEWORD(a, b)   ((OdUInt16)(((OdUInt8)(a)) | ((OdUInt16)((OdUInt8)(b))) << 8))
 
#define OD_MAKELONG(a, b)   ((OdInt32)(((OdUInt16)(a)) | ((OdUInt32)((OdUInt16)(b))) << 16))
 
#define OD_LOWORD(l)   ((OdUInt16)(l))
 
#define OD_HIWORD(l)   ((OdUInt16)(((OdUInt32)(l) >> 16) & 0xFFFF))
 
#define OD_LOBYTE(w)   ((OdUInt8)(w))
 
#define OD_HIBYTE(w)   ((OdUInt8)(((OdUInt16)(w) >> 8) & 0xFF))
 
#define odSwap2BytesNumber(n)
 
#define odSwap4BytesNumber(n)
 
#define odSwap8Bytes(bytes)
 
#define odSwap4Bytes(bytes)
 
#define OD_INT8_FROM_BUFFPTR(pBuffPtr)   *(pBuffPtr++)
 
#define OD_BYTES_FROM_BUFFPTR(pBuffPtr, ResBuff, nCount)   (pBuffPtr+=nCount, ::memcpy(ResBuff, pBuffPtr-nCount, nCount))
 
#define OD_INT8_TO_BUFFPTR(pBuffPtr, val)   (++pBuffPtr, pBuffPtr[-1] = OdUInt8(val))
 
#define OD_BYTES_TO_BUFFPTR(pBuffPtr, FromBuff, nCount)   (pBuffPtr+=nCount, ::memcpy(pBuffPtr-nCount, FromBuff, nCount))
 
#define OD_INT16_FROM_BUFFPTR(pBuffPtr)   (pBuffPtr += 2, *((OdInt16*)(pBuffPtr - 2)))
 
#define OD_INT32_FROM_BUFFPTR(pBuffPtr)   (pBuffPtr += 4, *((OdInt32*)(pBuffPtr - 4)))
 
#define OD_INT64_FROM_BUFFPTR(pBuffPtr)   (pBuffPtr += 8, *((OdInt64*)(pBuffPtr - 8)))
 
#define OD_DOUBLE_FROM_BUFFPTR(pBuffPtr)   getValidDouble(&pBuffPtr)
 
#define OD_INT16_TO_BUFFPTR(pBuffPtr, val)   (pBuffPtr+=2, *((OdInt16*)(pBuffPtr-2)) = OdInt16(val))
 
#define OD_INT32_TO_BUFFPTR(pBuffPtr, val)   (pBuffPtr+=4, *((OdInt32*)(pBuffPtr-4)) = OdInt32(val))
 
#define OD_INT64_TO_BUFFPTR(pBuffPtr, val)   (pBuffPtr+=8, *((OdInt64*)(pBuffPtr-8)) = OdInt64(val))
 
#define OD_DOUBLE_TO_BUFFPTR(pBuffPtr, val)   (pBuffPtr+=8, *((double*)(pBuffPtr-8)) = double(val))
 
#define ODCOLORREF   OdUInt32
 
#define ODRGB(r, g, b)   ((ODCOLORREF)(((OdUInt8)(r)|((OdUInt16)((OdUInt8)(g))<<8))|(((OdUInt32)(OdUInt8)(b))<<16)))
 
#define ODRGBA(r, g, b, a)   (((ODCOLORREF)ODRGB(r,g,b))|(((OdUInt32)(OdUInt8)(a))<<24))
 
#define ODGETRED(rgb)   ((OdUInt8)(rgb))
 
#define ODGETGREEN(rgb)   ((OdUInt8)(((OdUInt16)(rgb)) >> 8))
 
#define ODGETBLUE(rgb)   ((OdUInt8)((rgb)>>16))
 
#define ODGETALPHA(rgba)   ((OdUInt8)((rgba)>>24))
 
#define RGBQUAD_DEFINED
 
#define BITMAPINFOHEADER_DEFINED
 
#define BITMAPINFO_DEFINED
 
#define BITMAPFILEHEADER_DEFINED
 
#define CLSID   OdGUID
 
#define ODTOCMCOLOR(colorref)   OdCmEntityColor( ODGETRED(colorref), ODGETGREEN(colorref), ODGETBLUE(colorref) )
 
#define ODTOCOLORREF(cmColor)   ODRGB( cmColor.red(), cmColor.green(), cmColor.blue() )
 

Typedefs

typedef struct OdTagRECT ODRECT
 
typedef struct tagRGBQUAD RGBQUAD
 
typedef struct tagRGBQUADLPRGBQUAD
 
typedef struct tagBITMAPINFOHEADER BITMAPINFOHEADER
 
typedef struct tagBITMAPINFOHEADERPBITMAPINFOHEADER
 
typedef OdInt32 FXPT2DOT30
 
typedef struct tagCIEXYZ CIEXYZ
 
typedef struct tagICEXYZTRIPLE CIEXYZTRIPLE
 
typedef struct tagBITMAPV4HEADER BITMAPV4HEADER
 
typedef struct tagBITMAPV4HEADERPBITMAPV4HEADER
 
typedef struct tagBITMAPINFO BITMAPINFO
 
typedef struct tagBITMAPINFOPBITMAPINFO
 
typedef struct tagBITMAPFILEHEADER BITMAPFILEHEADER
 
typedef struct tagBITMAPFILEHEADERPBITMAPFILEHEADER
 

Functions

int Od_stricmpW (const OdChar *str, const OdChar *str2)
 
int Od_stricmpW (const OdChar *str, const OdChar *str2, size_t n)
 
OdCharOd_struprW (OdChar *str)
 
OdCharOd_strlwrW (OdChar *str)
 
OdCharOd_strrevW (OdChar *str)
 
long Od_strtoint (const OdChar *str)
 
long Od_strtouint (const OdChar *str)
 
double Od_wtof (const wchar_t *str)
 
void odSwapBytes (OdUInt8 &xX, OdUInt8 &yY)
 
void odSwapWords (OdUInt16 &xX, OdUInt16 &yY)
 
void odSwapInt64 (void *pBytes)
 
bool isValidNonZeroIEEEDouble (const OdUInt8 *buf)
 
void fixDouble (double *pD)
 
OdUInt64 OD_INT64_FROM_BUFFPTR (const OdUInt8 *pBuffPtr)
 
double getValidDouble (OdUInt8 **ppBuff)
 
FIRSTDLL_EXPORT size_t od_strftime (char *s, size_t maxsize, const char *format, const struct tm *t)
 
FIRSTDLL_EXPORT voidOd_memcpy_s (void *dest, size_t destSize, const void *src, size_t count)
 
FIRSTDLL_EXPORT voidOd_memcpy_s (void *dest, const void *src, size_t count)
 
FIRSTDLL_EXPORT voidOd_memmove_s (void *dest, size_t destSize, const void *src, size_t count)
 
FIRSTDLL_EXPORT voidOd_memmove_s (void *dest, const void *src, size_t count)
 
FIRSTDLL_EXPORT voidOd_memcpy (void *dest, const void *src, size_t count)
 
FIRSTDLL_EXPORT voidOd_memmove (void *dest, const void *src, size_t count)
 

Macro Definition Documentation

◆ BITMAPFILEHEADER_DEFINED

#define BITMAPFILEHEADER_DEFINED

Definition at line 1061 of file OdPlatform.h.

◆ BITMAPINFO_DEFINED

#define BITMAPINFO_DEFINED

Definition at line 1051 of file OdPlatform.h.

◆ BITMAPINFOHEADER_DEFINED

#define BITMAPINFOHEADER_DEFINED

Definition at line 977 of file OdPlatform.h.

◆ CLSID

#define CLSID   OdGUID

Definition at line 1090 of file OdPlatform.h.

◆ FOPEN

#define FOPEN   fopen64

Definition at line 313 of file OdPlatform.h.

◆ FSEEK

#define FSEEK   fseeko64

Definition at line 311 of file OdPlatform.h.

◆ FTELL

#define FTELL   ftello64

Definition at line 312 of file OdPlatform.h.

◆ GETSS

#define GETSS (   s,
 
)    fgets(s, n, stdin)

Definition at line 69 of file OdPlatform.h.

◆ MAX_PATH

#define MAX_PATH   PATH_MAX

Definition at line 72 of file OdPlatform.h.

◆ Od_abs

#define Od_abs   std::abs

Definition at line 141 of file OdPlatform.h.

◆ Od_atof

#define Od_atof   atof

Definition at line 144 of file OdPlatform.h.

◆ OD_BSEARCH

#define OD_BSEARCH   ::bsearch

Definition at line 643 of file OdPlatform.h.

◆ OD_BYTES_FROM_BUFFPTR

#define OD_BYTES_FROM_BUFFPTR (   pBuffPtr,
  ResBuff,
  nCount 
)    (pBuffPtr+=nCount, ::memcpy(ResBuff, pBuffPtr-nCount, nCount))

Definition at line 796 of file OdPlatform.h.

◆ OD_BYTES_TO_BUFFPTR

#define OD_BYTES_TO_BUFFPTR (   pBuffPtr,
  FromBuff,
  nCount 
)    (pBuffPtr+=nCount, ::memcpy(pBuffPtr-nCount, FromBuff, nCount))

Definition at line 799 of file OdPlatform.h.

◆ OD_DOUBLE_FROM_BUFFPTR

#define OD_DOUBLE_FROM_BUFFPTR (   pBuffPtr)    getValidDouble(&pBuffPtr)

Definition at line 858 of file OdPlatform.h.

◆ OD_DOUBLE_TO_BUFFPTR

#define OD_DOUBLE_TO_BUFFPTR (   pBuffPtr,
  val 
)    (pBuffPtr+=8, *((double*)(pBuffPtr-8)) = double(val))

Definition at line 865 of file OdPlatform.h.

◆ OD_HIBYTE

#define OD_HIBYTE (   w)    ((OdUInt8)(((OdUInt16)(w) >> 8) & 0xFF))

Definition at line 668 of file OdPlatform.h.

◆ OD_HIWORD

#define OD_HIWORD (   l)    ((OdUInt16)(((OdUInt32)(l) >> 16) & 0xFFFF))

Definition at line 666 of file OdPlatform.h.

◆ OD_INT16_FROM_BUFFPTR

#define OD_INT16_FROM_BUFFPTR (   pBuffPtr)    (pBuffPtr += 2, *((OdInt16*)(pBuffPtr - 2)))

Definition at line 854 of file OdPlatform.h.

◆ OD_INT16_TO_BUFFPTR

#define OD_INT16_TO_BUFFPTR (   pBuffPtr,
  val 
)    (pBuffPtr+=2, *((OdInt16*)(pBuffPtr-2)) = OdInt16(val))

Definition at line 861 of file OdPlatform.h.

◆ OD_INT32_FROM_BUFFPTR

#define OD_INT32_FROM_BUFFPTR (   pBuffPtr)    (pBuffPtr += 4, *((OdInt32*)(pBuffPtr - 4)))

Definition at line 855 of file OdPlatform.h.

◆ OD_INT32_TO_BUFFPTR

#define OD_INT32_TO_BUFFPTR (   pBuffPtr,
  val 
)    (pBuffPtr+=4, *((OdInt32*)(pBuffPtr-4)) = OdInt32(val))

Definition at line 862 of file OdPlatform.h.

◆ OD_INT64_FROM_BUFFPTR

#define OD_INT64_FROM_BUFFPTR (   pBuffPtr)    (pBuffPtr += 8, *((OdInt64*)(pBuffPtr - 8)))

Definition at line 856 of file OdPlatform.h.

◆ OD_INT64_TO_BUFFPTR

#define OD_INT64_TO_BUFFPTR (   pBuffPtr,
  val 
)    (pBuffPtr+=8, *((OdInt64*)(pBuffPtr-8)) = OdInt64(val))

Definition at line 863 of file OdPlatform.h.

◆ OD_INT8_FROM_BUFFPTR

#define OD_INT8_FROM_BUFFPTR (   pBuffPtr)    *(pBuffPtr++)

Definition at line 776 of file OdPlatform.h.

◆ OD_INT8_TO_BUFFPTR

#define OD_INT8_TO_BUFFPTR (   pBuffPtr,
  val 
)    (++pBuffPtr, pBuffPtr[-1] = OdUInt8(val))

Definition at line 798 of file OdPlatform.h.

◆ Od_isdigit

#define Od_isdigit (   ch)    isdigit(ch)

Definition at line 521 of file OdPlatform.h.

◆ Od_isspace

#define Od_isspace (   ch)    isspace(ch)

Definition at line 509 of file OdPlatform.h.

◆ Od_iswdigit

#define Od_iswdigit (   ch)    iswdigit(ch)

Definition at line 528 of file OdPlatform.h.

◆ Od_iswspace

#define Od_iswspace (   ch)    iswspace(ch)

Definition at line 516 of file OdPlatform.h.

◆ Od_labs

#define Od_labs   std::labs

Definition at line 145 of file OdPlatform.h.

◆ OD_LINKEDARRAY_SCOPE

#define OD_LINKEDARRAY_SCOPE

Definition at line 651 of file OdPlatform.h.

◆ Od_llabs

#define Od_llabs   std::llabs

Definition at line 146 of file OdPlatform.h.

◆ OD_LOBYTE

#define OD_LOBYTE (   w)    ((OdUInt8)(w))

Definition at line 667 of file OdPlatform.h.

◆ OD_LOWORD

#define OD_LOWORD (   l)    ((OdUInt16)(l))

Definition at line 665 of file OdPlatform.h.

◆ OD_MAKELONG

#define OD_MAKELONG (   a,
 
)    ((OdInt32)(((OdUInt16)(a)) | ((OdUInt32)((OdUInt16)(b))) << 16))

Definition at line 664 of file OdPlatform.h.

◆ OD_MAKEWORD

#define OD_MAKEWORD (   a,
 
)    ((OdUInt16)(((OdUInt8)(a)) | ((OdUInt16)((OdUInt8)(b))) << 8))

Definition at line 663 of file OdPlatform.h.

◆ Od_rand

#define Od_rand   rand

Definition at line 148 of file OdPlatform.h.

◆ Od_round

#define Od_round   std::round

Definition at line 170 of file OdPlatform.h.

◆ Od_srand

#define Od_srand   srand

Definition at line 147 of file OdPlatform.h.

◆ OD_TYPENAME

#define OD_TYPENAME

Definition at line 631 of file OdPlatform.h.

◆ OD_TYPENAME2

#define OD_TYPENAME2

Definition at line 635 of file OdPlatform.h.

◆ OD_TYPENAME3

#define OD_TYPENAME3

Definition at line 639 of file OdPlatform.h.

◆ Od_wcscat

#define Od_wcscat   wcscat

Definition at line 152 of file OdPlatform.h.

◆ Od_wcschr

#define Od_wcschr   wcschr

Definition at line 153 of file OdPlatform.h.

◆ Od_wcscmp

#define Od_wcscmp   wcscmp

Definition at line 151 of file OdPlatform.h.

◆ Od_wcscpy

#define Od_wcscpy   wcscpy

Definition at line 150 of file OdPlatform.h.

◆ Od_wcslen

#define Od_wcslen   wcslen

Definition at line 154 of file OdPlatform.h.

◆ Od_wcsncpy

#define Od_wcsncpy   wcsncpy

Definition at line 155 of file OdPlatform.h.

◆ Od_wcstombs

#define Od_wcstombs   wcstombs

Definition at line 149 of file OdPlatform.h.

◆ ODCOLORREF

#define ODCOLORREF   OdUInt32

Definition at line 933 of file OdPlatform.h.

◆ Odfinite

#define Odfinite (   x)    (finite(x) != 0)

Definition at line 89 of file OdPlatform.h.

◆ ODGETALPHA

#define ODGETALPHA (   rgba)    ((OdUInt8)((rgba)>>24))

Definition at line 940 of file OdPlatform.h.

◆ ODGETBLUE

#define ODGETBLUE (   rgb)    ((OdUInt8)((rgb)>>16))

Definition at line 939 of file OdPlatform.h.

◆ ODGETGREEN

#define ODGETGREEN (   rgb)    ((OdUInt8)(((OdUInt16)(rgb)) >> 8))

Definition at line 938 of file OdPlatform.h.

◆ ODGETRED

#define ODGETRED (   rgb)    ((OdUInt8)(rgb))

Definition at line 937 of file OdPlatform.h.

◆ Odisnan

#define Odisnan (   x)    std::isnan(x)

Definition at line 88 of file OdPlatform.h.

◆ odmax

#define odmax (   X,
  Y 
)    ((X) > (Y) ? (X) : (Y))

Definition at line 35 of file OdPlatform.h.

◆ odmin

#define odmin (   X,
  Y 
)    ((X) < (Y) ? (X) : (Y))

Definition at line 34 of file OdPlatform.h.

◆ OdPrintf

#define OdPrintf   printf

Definition at line 76 of file OdPlatform.h.

◆ ODRGB

#define ODRGB (   r,
  g,
 
)    ((ODCOLORREF)(((OdUInt8)(r)|((OdUInt16)((OdUInt8)(g))<<8))|(((OdUInt32)(OdUInt8)(b))<<16)))

Definition at line 934 of file OdPlatform.h.

◆ ODRGBA

#define ODRGBA (   r,
  g,
  b,
 
)    (((ODCOLORREF)ODRGB(r,g,b))|(((OdUInt32)(OdUInt8)(a))<<24))

Definition at line 935 of file OdPlatform.h.

◆ odSprintf

#define odSprintf   swprintf

Definition at line 603 of file OdPlatform.h.

◆ odSprintfA

#define odSprintfA   snprintf

Definition at line 611 of file OdPlatform.h.

◆ odSScanf

#define odSScanf   swscanf

Definition at line 577 of file OdPlatform.h.

◆ odStrChr

#define odStrChr (   str,
  ch 
)    strchr(str, ch)

Definition at line 174 of file OdPlatform.h.

◆ odStrCmp

#define odStrCmp (   str,
  str2 
)    wcscmp(str, str2)

Definition at line 280 of file OdPlatform.h.

◆ odStrCmpA

#define odStrCmpA (   str,
  str2 
)    strcmp(str, str2)

Definition at line 284 of file OdPlatform.h.

◆ odStrICmp

#define odStrICmp   Od_stricmpW

Definition at line 409 of file OdPlatform.h.

◆ odStrICmpA

#define odStrICmpA (   str,
  str2 
)    stricmp(str, str2)

Definition at line 416 of file OdPlatform.h.

◆ odStrLen

#define odStrLen (   str)    wcslen(str)

Definition at line 272 of file OdPlatform.h.

◆ odStrLenA

#define odStrLenA (   str)    strlen(str)

Definition at line 276 of file OdPlatform.h.

◆ odStrLwr

#define odStrLwr (   str)    Od_strlwrW(str)

Definition at line 470 of file OdPlatform.h.

◆ odStrLwrA

#define odStrLwrA (   str)    strlwr(str)

Definition at line 477 of file OdPlatform.h.

◆ odStrnICmp

#define odStrnICmp   Od_stricmpW

Definition at line 431 of file OdPlatform.h.

◆ odStrnICmpA

#define odStrnICmpA (   str,
  str2,
 
)    strnicmp(str, str2, n)

Definition at line 438 of file OdPlatform.h.

◆ odStrRev

#define odStrRev (   str)    Od_strrevW(str)

Definition at line 487 of file OdPlatform.h.

◆ odStrRevA

#define odStrRevA (   str)    strrev(str)

Definition at line 494 of file OdPlatform.h.

◆ odStrStr

#define odStrStr   ::wcsstr

Definition at line 659 of file OdPlatform.h.

◆ odStrToF

#define odStrToF   Od_wtof

Definition at line 625 of file OdPlatform.h.

◆ odStrToInt

#define odStrToInt (   str)    Od_strtoint(str)

Definition at line 500 of file OdPlatform.h.

◆ odStrToUInt

#define odStrToUInt (   str)    Od_strtouint(str)

Definition at line 505 of file OdPlatform.h.

◆ odStrUpr

#define odStrUpr (   str)    Od_struprW(str)

Definition at line 451 of file OdPlatform.h.

◆ odStrUprA

#define odStrUprA (   str)    strupr(str)

Definition at line 458 of file OdPlatform.h.

◆ odSwap2BytesNumber

#define odSwap2BytesNumber (   n)

Definition at line 729 of file OdPlatform.h.

◆ odSwap4Bytes

#define odSwap4Bytes (   bytes)

Definition at line 732 of file OdPlatform.h.

◆ odSwap4BytesNumber

#define odSwap4BytesNumber (   n)

Definition at line 730 of file OdPlatform.h.

◆ odSwap8Bytes

#define odSwap8Bytes (   bytes)

Definition at line 731 of file OdPlatform.h.

◆ ODTOCMCOLOR

#define ODTOCMCOLOR (   colorref)    OdCmEntityColor( ODGETRED(colorref), ODGETGREEN(colorref), ODGETBLUE(colorref) )

Definition at line 1094 of file OdPlatform.h.

◆ ODTOCOLORREF

#define ODTOCOLORREF (   cmColor)    ODRGB( cmColor.red(), cmColor.green(), cmColor.blue() )

Definition at line 1095 of file OdPlatform.h.

◆ OdWprintf

#define OdWprintf   wprintf

Definition at line 75 of file OdPlatform.h.

◆ odWStrChr

#define odWStrChr (   str,
  ch 
)    Od_wcschr(str, ch)

Definition at line 178 of file OdPlatform.h.

◆ OFFSETTYPE

#define OFFSETTYPE (   offset)    offset

Definition at line 314 of file OdPlatform.h.

◆ RGBQUAD_DEFINED

#define RGBQUAD_DEFINED

Definition at line 953 of file OdPlatform.h.

◆ TD_USING

#define TD_USING (   a)    using a

Definition at line 647 of file OdPlatform.h.

Typedef Documentation

◆ BITMAPFILEHEADER

<group !!RECORDS_TD_APIRef>

◆ BITMAPINFO

typedef struct tagBITMAPINFO BITMAPINFO

◆ BITMAPINFOHEADER

<group !!RECORDS_TD_APIRef>

◆ BITMAPV4HEADER

◆ CIEXYZ

typedef struct tagCIEXYZ CIEXYZ

◆ CIEXYZTRIPLE

typedef struct tagICEXYZTRIPLE CIEXYZTRIPLE

◆ FXPT2DOT30

Definition at line 1002 of file OdPlatform.h.

◆ LPRGBQUAD

typedef struct tagRGBQUAD * LPRGBQUAD

◆ ODRECT

typedef struct OdTagRECT ODRECT

◆ PBITMAPFILEHEADER

◆ PBITMAPINFO

typedef struct tagBITMAPINFO * PBITMAPINFO

◆ PBITMAPINFOHEADER

◆ PBITMAPV4HEADER

◆ RGBQUAD

typedef struct tagRGBQUAD RGBQUAD

<group !!RECORDS_TD_APIRef>

Function Documentation

◆ fixDouble()

void fixDouble ( double *  pD)
inline

Definition at line 764 of file OdPlatform.h.

◆ getValidDouble()

double getValidDouble ( OdUInt8 **  ppBuff)
inline

Definition at line 847 of file OdPlatform.h.

◆ isValidNonZeroIEEEDouble()

bool isValidNonZeroIEEEDouble ( const OdUInt8 buf)
inline

Checks if 8 bytes buffer represents a valid non-zero IEEE double value. (In this format doubles are stored in .dwg files.)

Definition at line 748 of file OdPlatform.h.

◆ OD_INT64_FROM_BUFFPTR()

OdUInt64 OD_INT64_FROM_BUFFPTR ( const OdUInt8 pBuffPtr)
inline

Definition at line 778 of file OdPlatform.h.

◆ Od_memcpy()

FIRSTDLL_EXPORT void * Od_memcpy ( void dest,
const void src,
size_t  count 
)
inline

Definition at line 1155 of file OdPlatform.h.

◆ Od_memcpy_s() [1/2]

FIRSTDLL_EXPORT void * Od_memcpy_s ( void dest,
const void src,
size_t  count 
)

◆ Od_memcpy_s() [2/2]

FIRSTDLL_EXPORT void * Od_memcpy_s ( void dest,
size_t  destSize,
const void src,
size_t  count 
)

◆ Od_memmove()

FIRSTDLL_EXPORT void * Od_memmove ( void dest,
const void src,
size_t  count 
)
inline

Definition at line 1156 of file OdPlatform.h.

◆ Od_memmove_s() [1/2]

FIRSTDLL_EXPORT void * Od_memmove_s ( void dest,
const void src,
size_t  count 
)

◆ Od_memmove_s() [2/2]

FIRSTDLL_EXPORT void * Od_memmove_s ( void dest,
size_t  destSize,
const void src,
size_t  count 
)

◆ od_strftime()

FIRSTDLL_EXPORT size_t od_strftime ( char *  s,
size_t  maxsize,
const char *  format,
const struct tm t 
)

◆ Od_stricmpW() [1/2]

int Od_stricmpW ( const OdChar str,
const OdChar str2 
)
inline

Definition at line 407 of file OdPlatform.h.

◆ Od_stricmpW() [2/2]

int Od_stricmpW ( const OdChar str,
const OdChar str2,
size_t  n 
)
inline

Definition at line 429 of file OdPlatform.h.

◆ Od_strlwrW()

OdChar * Od_strlwrW ( OdChar str)
inline

Definition at line 468 of file OdPlatform.h.

◆ Od_strrevW()

OdChar * Od_strrevW ( OdChar str)
inline

Definition at line 485 of file OdPlatform.h.

◆ Od_strtoint()

long Od_strtoint ( const OdChar str)
inline

Definition at line 499 of file OdPlatform.h.

◆ Od_strtouint()

long Od_strtouint ( const OdChar str)
inline

Definition at line 504 of file OdPlatform.h.

◆ Od_struprW()

OdChar * Od_struprW ( OdChar str)
inline

Definition at line 449 of file OdPlatform.h.

◆ Od_wtof()

double Od_wtof ( const wchar_t *  str)
inline

Definition at line 620 of file OdPlatform.h.

◆ odSwapBytes()

void odSwapBytes ( OdUInt8 xX,
OdUInt8 yY 
)
inline

Definition at line 670 of file OdPlatform.h.

◆ odSwapInt64()

void odSwapInt64 ( void pBytes)
inline

Definition at line 734 of file OdPlatform.h.

◆ odSwapWords()

void odSwapWords ( OdUInt16 xX,
OdUInt16 yY 
)
inline

Definition at line 671 of file OdPlatform.h.