QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
opennurbs_archive.cpp File Reference
#include "opennurbs.h"

Classes

class  CUserDataHeaderInfo
 
class  ON__3dmV1_XDATA
 
struct  ON__3dmV1LayerIndex
 
class  ON_ReadChunkHelper
 

Macros

#define BUFLEN   128
 
#define CASEtcode2string(tc)   case tc: s = #tc ; break
 
#define RHINO_ANGULAR_DIMENSION_VERSION_1   1
 
#define RHINO_ANNOTATION_LEADER_VERSION_1   1
 
#define RHINO_ANNOTATION_SETTINGS_VERSION_1   1
 
#define RHINO_LINEAR_DIMENSION_VERSION_1   1
 
#define RHINO_RADIAL_DIMENSION_VERSION_1   1
 
#define RHINO_TEXT_BLOCK_VERSION_1   1
 
#define RHINO_TEXT_BLOCK_VERSION_2   2
 

Functions

static bool BeginRead3dmLEGACYSTUFF (ON_BinaryArchive &file, unsigned int stuff_tcode)
 
static const unsigned char * BufferToChunkValue (bool bReverseByteOrder, size_t sizeof_chunk_value, const unsigned char *buffer, const unsigned char *buffer_end, ON__INT64 *chunk_value)
 
static const unsigned char * BufferToINT64 (bool bReverseByteOrder, const unsigned char *buffer, const unsigned char *buffer_end, ON__INT64 *i64)
 
static const unsigned char * BufferToUINT16 (bool bReverseByteOrder, const unsigned char *buffer, const unsigned char *buffer_max, ON__UINT16 *u16)
 
static const unsigned char * BufferToUINT32 (bool bReverseByteOrder, const unsigned char *buffer, const unsigned char *buffer_end, ON__UINT32 *u32)
 
static const unsigned char * BufferToUuid (bool bReverseByteOrder, const unsigned char *buffer, const unsigned char *buffer_end, ON_UUID &uuid)
 
static const unsigned char * BufferValidateTcode (bool bReverseByteOrder, const unsigned char *buffer, const unsigned char *buffer_end, ON__UINT32 expected_tcode)
 
static bool DownSizeChunkValue (ON__UINT32 typecode, ON__INT64 v64, ON__INT32 *v32)
 
static bool DownSizeINT (ON__INT64 i64, ON__INT32 *i32)
 
static bool DownSizeUINT (ON__UINT64 u64, ON__UINT32 *u32)
 
static bool Dump3dmChunk_EndReadChunkHelper (ON_BinaryArchive &file, size_t offset0, ON__UINT32 tcode, ON__INT64 big_value, ON_TextLog &dump)
 
static void Dump3dmChunk_ErrorReportHelper (size_t offset, const char *msg, ON_TextLog &dump)
 
static bool Dump3dmChunk_UserDataHeaderHelper (size_t offset, ON_BinaryArchive &file, int major_userdata_version, int minor_userdata_version, ON_TextLog &dump)
 
static bool DumpChunk_PrintHeaderInfo (size_t offset0, ON__UINT32 typecode, ON__INT64 big_value, ON_TextLog &dump)
 
static const unsigned char * EmergencyFindTable_UuidHelper (bool bReverseByteOrder, size_t sizeof_chunk_value, const unsigned char *buffer, const unsigned char *buffer_end, const ON__UINT32 expected_tcode, const ON_UUID *expected_uuid)
 
static bool IsCoreUserData (const ON_UserData *ud)
 
bool ON_IsLongChunkTypecode (ON__UINT32 typecode)
 
bool ON_IsShorChunkTypecode (ON__UINT32 typecode)
 
bool ON_IsUnsignedChunkTypecode (ON__UINT32 typecode)
 
int on_strnicmp (const char *s1, const char *s2, int n)
 
bool ON_WriteOneObjectArchive (ON_BinaryArchive &archive, int version, const ON_Object &object)
 
static bool ReadObjectUserDataHeaderHelper (ON_BinaryArchive &binary_archive, const int major_userdata_version, const int minor_userdata_version, CUserDataHeaderInfo &ud_header)
 
static ON_CurveReadV1_RHINOIO_BREP_CURVE (ON_BinaryArchive &file)
 
static ON_NurbsCurveReadV1_RHINOIO_NURBS_CURVE_OBJECT_DATA (ON_BinaryArchive &file)
 
static ON_NurbsSurfaceReadV1_RHINOIO_NURBS_SURFACE_OBJECT_DATA (ON_BinaryArchive &file)
 
static bool ReadV1_TCODE_ANNOTATION_Helper (ON_BinaryArchive &archive, char *buffer, ON_wString &tc)
 
ON_CurveReadV1_TCODE_LEGACY_CRVSTUFF (ON_BinaryArchive &file)
 
static ON_BOOL32 ReadV1_TCODE_LEGACY_SPL (ON_BinaryArchive &file, ON_NurbsCurve *&pNurbsCurve)
 
static ON_NurbsCurveReadV1_TCODE_LEGACY_SPLSTUFF (ON_BinaryArchive &file)
 
static ON_BOOL32 ReadV1_TCODE_LEGACY_SRF (ON_BinaryArchive &file, ON_NurbsSurface *&pNurbsSurface)
 
static ON_NurbsSurfaceReadV1_TCODE_LEGACY_SRFSTUFF (ON_BinaryArchive &file)
 
static void TweakAnnotationPlane (ON_Plane &plane)
 

Macro Definition Documentation

◆ BUFLEN

#define BUFLEN   128

◆ CASEtcode2string

#define CASEtcode2string ( tc)    case tc: s = #tc ; break

◆ RHINO_ANGULAR_DIMENSION_VERSION_1

#define RHINO_ANGULAR_DIMENSION_VERSION_1   1

◆ RHINO_ANNOTATION_LEADER_VERSION_1

#define RHINO_ANNOTATION_LEADER_VERSION_1   1

◆ RHINO_ANNOTATION_SETTINGS_VERSION_1

#define RHINO_ANNOTATION_SETTINGS_VERSION_1   1

◆ RHINO_LINEAR_DIMENSION_VERSION_1

#define RHINO_LINEAR_DIMENSION_VERSION_1   1

◆ RHINO_RADIAL_DIMENSION_VERSION_1

#define RHINO_RADIAL_DIMENSION_VERSION_1   1

◆ RHINO_TEXT_BLOCK_VERSION_1

#define RHINO_TEXT_BLOCK_VERSION_1   1

◆ RHINO_TEXT_BLOCK_VERSION_2

#define RHINO_TEXT_BLOCK_VERSION_2   2

Function Documentation

◆ BeginRead3dmLEGACYSTUFF()

static bool BeginRead3dmLEGACYSTUFF ( ON_BinaryArchive & file,
unsigned int stuff_tcode )
static

◆ BufferToChunkValue()

static const unsigned char * BufferToChunkValue ( bool bReverseByteOrder,
size_t sizeof_chunk_value,
const unsigned char * buffer,
const unsigned char * buffer_end,
ON__INT64 * chunk_value )
static

◆ BufferToINT64()

static const unsigned char * BufferToINT64 ( bool bReverseByteOrder,
const unsigned char * buffer,
const unsigned char * buffer_end,
ON__INT64 * i64 )
static

◆ BufferToUINT16()

static const unsigned char * BufferToUINT16 ( bool bReverseByteOrder,
const unsigned char * buffer,
const unsigned char * buffer_max,
ON__UINT16 * u16 )
static

◆ BufferToUINT32()

static const unsigned char * BufferToUINT32 ( bool bReverseByteOrder,
const unsigned char * buffer,
const unsigned char * buffer_end,
ON__UINT32 * u32 )
static

◆ BufferToUuid()

static const unsigned char * BufferToUuid ( bool bReverseByteOrder,
const unsigned char * buffer,
const unsigned char * buffer_end,
ON_UUID & uuid )
static

◆ BufferValidateTcode()

static const unsigned char * BufferValidateTcode ( bool bReverseByteOrder,
const unsigned char * buffer,
const unsigned char * buffer_end,
ON__UINT32 expected_tcode )
static

◆ DownSizeChunkValue()

static bool DownSizeChunkValue ( ON__UINT32 typecode,
ON__INT64 v64,
ON__INT32 * v32 )
static

◆ DownSizeINT()

static bool DownSizeINT ( ON__INT64 i64,
ON__INT32 * i32 )
static

◆ DownSizeUINT()

static bool DownSizeUINT ( ON__UINT64 u64,
ON__UINT32 * u32 )
static

◆ Dump3dmChunk_EndReadChunkHelper()

static bool Dump3dmChunk_EndReadChunkHelper ( ON_BinaryArchive & file,
size_t offset0,
ON__UINT32 tcode,
ON__INT64 big_value,
ON_TextLog & dump )
static

◆ Dump3dmChunk_ErrorReportHelper()

static void Dump3dmChunk_ErrorReportHelper ( size_t offset,
const char * msg,
ON_TextLog & dump )
static

◆ Dump3dmChunk_UserDataHeaderHelper()

static bool Dump3dmChunk_UserDataHeaderHelper ( size_t offset,
ON_BinaryArchive & file,
int major_userdata_version,
int minor_userdata_version,
ON_TextLog & dump )
static

◆ DumpChunk_PrintHeaderInfo()

static bool DumpChunk_PrintHeaderInfo ( size_t offset0,
ON__UINT32 typecode,
ON__INT64 big_value,
ON_TextLog & dump )
static

◆ EmergencyFindTable_UuidHelper()

static const unsigned char * EmergencyFindTable_UuidHelper ( bool bReverseByteOrder,
size_t sizeof_chunk_value,
const unsigned char * buffer,
const unsigned char * buffer_end,
const ON__UINT32 expected_tcode,
const ON_UUID * expected_uuid )
static

◆ IsCoreUserData()

static bool IsCoreUserData ( const ON_UserData * ud)
static

◆ ON_IsLongChunkTypecode()

bool ON_IsLongChunkTypecode ( ON__UINT32 typecode)

◆ ON_IsShorChunkTypecode()

bool ON_IsShorChunkTypecode ( ON__UINT32 typecode)

◆ ON_IsUnsignedChunkTypecode()

bool ON_IsUnsignedChunkTypecode ( ON__UINT32 typecode)

◆ on_strnicmp()

int on_strnicmp ( const char * s1,
const char * s2,
int n )

◆ ON_WriteOneObjectArchive()

bool ON_WriteOneObjectArchive ( ON_BinaryArchive & archive,
int version,
const ON_Object & object )

◆ ReadObjectUserDataHeaderHelper()

static bool ReadObjectUserDataHeaderHelper ( ON_BinaryArchive & binary_archive,
const int major_userdata_version,
const int minor_userdata_version,
CUserDataHeaderInfo & ud_header )
static

◆ ReadV1_RHINOIO_BREP_CURVE()

static ON_Curve * ReadV1_RHINOIO_BREP_CURVE ( ON_BinaryArchive & file)
static

◆ ReadV1_RHINOIO_NURBS_CURVE_OBJECT_DATA()

static ON_NurbsCurve * ReadV1_RHINOIO_NURBS_CURVE_OBJECT_DATA ( ON_BinaryArchive & file)
static

◆ ReadV1_RHINOIO_NURBS_SURFACE_OBJECT_DATA()

static ON_NurbsSurface * ReadV1_RHINOIO_NURBS_SURFACE_OBJECT_DATA ( ON_BinaryArchive & file)
static

◆ ReadV1_TCODE_ANNOTATION_Helper()

static bool ReadV1_TCODE_ANNOTATION_Helper ( ON_BinaryArchive & archive,
char * buffer,
ON_wString & tc )
static

◆ ReadV1_TCODE_LEGACY_CRVSTUFF()

ON_Curve * ReadV1_TCODE_LEGACY_CRVSTUFF ( ON_BinaryArchive & file)

◆ ReadV1_TCODE_LEGACY_SPL()

static ON_BOOL32 ReadV1_TCODE_LEGACY_SPL ( ON_BinaryArchive & file,
ON_NurbsCurve *& pNurbsCurve )
static

◆ ReadV1_TCODE_LEGACY_SPLSTUFF()

static ON_NurbsCurve * ReadV1_TCODE_LEGACY_SPLSTUFF ( ON_BinaryArchive & file)
static

◆ ReadV1_TCODE_LEGACY_SRF()

static ON_BOOL32 ReadV1_TCODE_LEGACY_SRF ( ON_BinaryArchive & file,
ON_NurbsSurface *& pNurbsSurface )
static

◆ ReadV1_TCODE_LEGACY_SRFSTUFF()

static ON_NurbsSurface * ReadV1_TCODE_LEGACY_SRFSTUFF ( ON_BinaryArchive & file)
static

◆ TweakAnnotationPlane()

static void TweakAnnotationPlane ( ON_Plane & plane)
static