libDXF 0.0.1
A library with DXF related functions written in C.
Functions

sortentstable.c File Reference

Functions for a DXF sortentstable object (SORTENTSTABLE). More...

#include "sortentstable.h"
Include dependency graph for sortentstable.c:

Go to the source code of this file.

Functions

DxfSortentsTabledxf_sortentstable_new ()
 Allocate memory for a DxfSortentsTable.
DxfSortentsTabledxf_sortentstable_init (DxfSortentsTable *sortentstable)
 Allocate memory and initialize data fields in a SORTENTSTABLE object.
DxfSortentsTabledxf_sortentstable_read (DxfFile *fp, DxfSortentsTable *sortentstable)
 Read data from a DXF file into a DXF SORTENTSTABLE object.
int dxf_sortentstable_write (DxfFile *fp, DxfSortentsTable *sortentstable)
 Write DXF output to a file for a DXF SORTENTSTABLE object.
int dxf_sortentstable_free (DxfSortentsTable *sortentstable)
 Free the allocated memory for a DXF SORTENTSTABLE and all it's data fields.
void dxf_sortentstable_free_chain (DxfSortentsTable *sortentstables)
 Free the allocated memory for a chain of DXF SORTENTSTABLE objects and all their data fields.
int dxf_sortentstable_get_id_code (DxfSortentsTable *sortentstable)
 Get the id_code from a DXF SORTENTSTABLE object.
DxfSortentsTabledxf_sortentstable_set_id_code (DxfSortentsTable *sortentstable, int id_code)
 Set the id_code for a DXF SORTENTSTABLE object.
char * dxf_sortentstable_get_dictionary_owner_soft (DxfSortentsTable *sortentstable)
 Get the pointer to the dictionary_owner_soft from a DXF SORTENTSTABLE object.
DxfSortentsTabledxf_sortentstable_set_dictionary_owner_soft (DxfSortentsTable *sortentstable, char *dictionary_owner_soft)
 Set the pointer to the dictionary_owner_soft for a DXF SORTENTSTABLE object.
char * dxf_sortentstable_get_dictionary_owner_hard (DxfSortentsTable *sortentstable)
 Get the pointer to the dictionary_owner_hard from a DXF SORTENTSTABLE object.
DxfSortentsTabledxf_sortentstable_set_dictionary_owner_hard (DxfSortentsTable *sortentstable, char *dictionary_owner_hard)
 Set the pointer to the dictionary_owner_hard for a DXF SORTENTSTABLE object.
char * dxf_sortentstable_get_block_owner (DxfSortentsTable *sortentstable)
 Get the pointer to the block_owner from a DXF SORTENTSTABLE object.
DxfSortentsTabledxf_sortentstable_set_block_owner (DxfSortentsTable *sortentstable, char *block_owner)
 Set the pointer to the block_owner for a DXF SORTENTSTABLE object.
DxfChardxf_sortentstable_get_entity_owner (DxfSortentsTable *sortentstable)
 Get the pointer to the entity_owner from a DXF SORTENTSTABLE object.
DxfSortentsTabledxf_sortentstable_set_entity_owner (DxfSortentsTable *sortentstable, DxfChar *entity_owner)
 Set the pointer to the entity_owner for a DXF SORTENTSTABLE object.
DxfChardxf_sortentstable_get_last_entity_owner (DxfChar *entity_owner)
 Get the pointer to the last entity_owner from a linked list of entity_owner.
char * dxf_sortentstable_get_entity_owner_value (DxfChar *entity_owner)
 Get the pointer to the value stored in a entity_owner from a DXF SORTENTSTABLE object.
DxfChardxf_sortentstable_set_entity_owner_value (DxfChar *entity_owner, char *value)
 Set the pointer to a value in a particular entity_owner for a DXF SORTENTSTABLE object.
int dxf_sortentstable_get_entity_owner_length (DxfChar *entity_owner)
 Get the length of the value stored in a entity_owner from a DXF SORTENTSTABLE object.
DxfChardxf_sortentstable_set_entity_owner_length (DxfChar *entity_owner, int length)
 Set the length of a value in a particular entity_owner for a DXF SORTENTSTABLE object.
DxfChardxf_sortentstable_get_next_entity_owner (DxfChar *entity_owner)
 Get the pointer to the next entity_owner from a entity_owner.
DxfChardxf_sortentstable_set_next_entity_owner (DxfChar *entity_owner, DxfChar *next)
 Set the pointer to the next entity_owner for a entity_owner.
DxfIntdxf_sortentstable_get_sort_handle (DxfSortentsTable *sortentstable)
 Get the sort_handle from a DXF SORTENTSTABLE object.
DxfSortentsTabledxf_sortentstable_set_sort_handle (DxfSortentsTable *sortentstable, DxfInt *sort_handle)
 Set the sort_handle for a DXF SORTENTSTABLE object.
int dxf_sortentstable_get_sort_handle_value (DxfInt *sort_handle)
 Get the value from the sort_handle member of a DXF SORTENTSTABLE object.
DxfIntdxf_sortentstable_set_sort_handle_value (DxfInt *sort_handle, int value)
 Set the value of a sort_handle for a DXF SORTENTSTABLE object.
DxfIntdxf_sortentstable_get_next_sort_handle (DxfInt *sort_handle)
 Get the pointer to the next sort_handle from a sort_handle.
DxfIntdxf_sortentstable_set_next_sort_handle (DxfInt *sort_handle, DxfInt *next)
 Set the pointer to the next sort_handle for a sort_handle.
DxfIntdxf_sortentstable_get_last_sort_handle (DxfInt *sort_handle)
 Get the pointer to the last sort_handle from a linked list of sort_handles.
DxfSortentsTabledxf_sortentstable_get_next (DxfSortentsTable *sortentstable)
 Get the pointer to the next SORTENTSTABLE object from a DXF ARC SORTENTSTABLE object.
DxfSortentsTabledxf_sortentstable_set_next (DxfSortentsTable *sortentstable, DxfSortentsTable *next)
 Set the pointer to the next SORTENTSTABLE object for a DXF SORTENTSTABLE object.
DxfSortentsTabledxf_sortentstable_get_last (DxfSortentsTable *sortentstable)
 Get the pointer to the last SORTENTSTABLE object from a linked list of DXF SORTENTSTABLE objects.

Detailed Description

Functions for a DXF sortentstable object (SORTENTSTABLE).

Author:
Copyright (C) 2015, 2017 by Bert Timmerman <bert.timmerman@xs4all.nl>.

If the SORTENTS Regen flag (bit-code value 16) is set, AutoCAD regenerates entities in ascending handle order. When the DRAWORDER command is used, a SORTENTSTABLE object is attached to the *Model_Space or *Paper_Space block's extension dictionary under the name ACAD_SORTENTS. The SORTENTSTABLE object related to this dictionary associates a different handle with each entity, which redefines the order in which the entities are regenerated.

Since:
The SORTENTSTABLE object was introduced in DXF R14.
Version:
According to DXF R10 (backward compatibility).
According to DXF R11 (backward compatibility).
According to DXF R12 (backward compatibility).
According to DXF R13 (backward compatibility).
According to DXF R14.

Copyright Notices.


This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to:
Free Software Foundation, Inc.,
59 Temple Place,
Suite 330,
Boston,
MA 02111 USA.

Drawing eXchange Format (DXF) is a defacto industry standard for the exchange of drawing files between various Computer Aided Drafting programs.
DXF is an industry standard designed by Autodesk(TM).
For more details see http://www.autodesk.com.


Definition in file sortentstable.c.


Function Documentation

DxfSortentsTable* dxf_sortentstable_new ( )

Allocate memory for a DxfSortentsTable.

Fill the memory contents with zeros.

Definition at line 61 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

Referenced by dxf_sortentstable_init(), and dxf_sortentstable_read().

DxfSortentsTable* dxf_sortentstable_init ( DxfSortentsTable sortentstable)

Allocate memory and initialize data fields in a SORTENTSTABLE object.

Returns:
NULL when no memory was allocated, a pointer to the allocated memory when succesful.
Parameters:
sortentstablea pointer to the DXF SORTENTSTABLE object.

Definition at line 99 of file sortentstable.c.

References _, dxf_sortentstable_struct::block_owner, dxf_sortentstable_struct::dictionary_owner_hard, dxf_sortentstable_struct::dictionary_owner_soft, dxf_char_init(), DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_sortentstable_new(), dxf_sortentstable_struct::entity_owner, dxf_sortentstable_struct::id_code, dxf_sortentstable_struct::next, dxf_sortentstable_struct::sort_handle, and dxf_int_struct::value.

Referenced by dxf_sortentstable_read().

Here is the call graph for this function:

DxfSortentsTable* dxf_sortentstable_read ( DxfFile fp,
DxfSortentsTable sortentstable 
)

Read data from a DXF file into a DXF SORTENTSTABLE object.

The last line read from file contained the string "SORTENTSTABLE".
Now follows some data for the SORTENTSTABLE, to be terminated with a " 0" string announcing the following object, or the end of the OBJECTS section marker ENDSEC.
While parsing the DXF file store data in sortentstable.

Returns:
a pointer to sortentstable.

Todo:
Check for overrun of array index.

Parameters:
fpDXF file pointer to an input file (or device).
sortentstablea pointer to the DXF SORTENTSTABLE object.

Definition at line 149 of file sortentstable.c.

References _, dxf_file_struct::acad_version_number, AutoCAD_13, AutoCAD_14, dxf_sortentstable_struct::block_owner, dxf_sortentstable_struct::dictionary_owner_hard, dxf_sortentstable_struct::dictionary_owner_soft, dxf_char_init(), DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_int_init(), dxf_sortentstable_init(), dxf_sortentstable_new(), dxf_sortentstable_struct::entity_owner, dxf_file_struct::filename, dxf_file_struct::fp, dxf_sortentstable_struct::id_code, dxf_file_struct::line_number, dxf_char_struct::next, dxf_int_struct::next, dxf_sortentstable_struct::sort_handle, dxf_char_struct::value, and dxf_int_struct::value.

Here is the call graph for this function:

int dxf_sortentstable_write ( DxfFile fp,
DxfSortentsTable sortentstable 
)

Write DXF output to a file for a DXF SORTENTSTABLE object.

Returns:
EXIT_SUCCESS when done, or EXIT_FAILURE when an error occurred.

Todo:
for version R14.
Implementing the start of application-defined group "{application_name", with Group code 102.
For example: "{ACAD_REACTORS" indicates the start of the AutoCAD persistent reactors group.

application-defined codes: Group codes and values within the 102 groups are application defined (optional).

End of group, "}" (optional), with Group code 102.

Parameters:
fpDXF file pointer to an output file (or device).
sortentstablea pointer to the DXF SORTENTSTABLE object.

Definition at line 309 of file sortentstable.c.

References _, dxf_file_struct::acad_version_number, AutoCAD_13, AutoCAD_14, dxf_sortentstable_struct::block_owner, dxf_sortentstable_struct::dictionary_owner_hard, dxf_sortentstable_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_sortentstable_struct::entity_owner, dxf_file_struct::fp, dxf_sortentstable_struct::id_code, dxf_int_struct::next, dxf_char_struct::next, dxf_sortentstable_struct::sort_handle, dxf_int_struct::value, and dxf_char_struct::value.

int dxf_sortentstable_free ( DxfSortentsTable sortentstable)

Free the allocated memory for a DXF SORTENTSTABLE and all it's data fields.

Returns:
EXIT_SUCCESS when done, or EXIT_FAILURE when an error occurred.
Parameters:
sortentstablea pointer to the memory occupied by the DXF SORTENTSTABLE object.

Definition at line 419 of file sortentstable.c.

References _, dxf_sortentstable_struct::block_owner, dxf_sortentstable_struct::dictionary_owner_hard, dxf_sortentstable_struct::dictionary_owner_soft, dxf_char_free_chain(), DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_sortentstable_struct::entity_owner, and dxf_sortentstable_struct::next.

Referenced by dxf_sortentstable_free_chain().

Here is the call graph for this function:

void dxf_sortentstable_free_chain ( DxfSortentsTable sortentstables)

Free the allocated memory for a chain of DXF SORTENTSTABLE objects and all their data fields.

Parameters:
sortentstablesa pointer to the chain of DXF SORTENTSTABLE objects.

Definition at line 462 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_sortentstable_free(), and dxf_sortentstable_struct::next.

Here is the call graph for this function:

int dxf_sortentstable_get_id_code ( DxfSortentsTable sortentstable)

Get the id_code from a DXF SORTENTSTABLE object.

Returns:
id_code.
Parameters:
sortentstablea pointer to a DXF SORTENTSTABLE object.

Definition at line 496 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_sortentstable_struct::id_code.

DxfSortentsTable* dxf_sortentstable_set_id_code ( DxfSortentsTable sortentstable,
int  id_code 
)

Set the id_code for a DXF SORTENTSTABLE object.

Parameters:
sortentstablea pointer to a DXF SORTENTSTABLE object.
id_codethe id_code to be set for the entity.
This is to be an unique (sequential) number in the DXF file.

Definition at line 530 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_sortentstable_struct::id_code.

char* dxf_sortentstable_get_dictionary_owner_soft ( DxfSortentsTable sortentstable)

Get the pointer to the dictionary_owner_soft from a DXF SORTENTSTABLE object.

Returns:
pointer to the dictionary_owner_soft.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
sortentstablea pointer to a DXF SORTENTSTABLE object.

Definition at line 574 of file sortentstable.c.

References _, dxf_sortentstable_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfSortentsTable* dxf_sortentstable_set_dictionary_owner_soft ( DxfSortentsTable sortentstable,
char *  dictionary_owner_soft 
)

Set the pointer to the dictionary_owner_soft for a DXF SORTENTSTABLE object.

Parameters:
sortentstablea pointer to a DXF SORTENTSTABLE object.
dictionary_owner_softa string containing the pointer to the dictionary_owner_soft for the object.

Definition at line 610 of file sortentstable.c.

References _, dxf_sortentstable_struct::dictionary_owner_soft, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

char* dxf_sortentstable_get_dictionary_owner_hard ( DxfSortentsTable sortentstable)

Get the pointer to the dictionary_owner_hard from a DXF SORTENTSTABLE object.

Returns:
pointer to the dictionary_owner_hard.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
sortentstablea pointer to a DXF SORTENTSTABLE object.

Definition at line 654 of file sortentstable.c.

References _, dxf_sortentstable_struct::dictionary_owner_hard, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfSortentsTable* dxf_sortentstable_set_dictionary_owner_hard ( DxfSortentsTable sortentstable,
char *  dictionary_owner_hard 
)

Set the pointer to the dictionary_owner_hard for a DXF SORTENTSTABLE object.

Parameters:
sortentstablea pointer to a DXF SORTENTSTABLE object.
dictionary_owner_harda string containing the pointer to the dictionary_owner_hard for the object.

Definition at line 690 of file sortentstable.c.

References _, dxf_sortentstable_struct::dictionary_owner_hard, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

char* dxf_sortentstable_get_block_owner ( DxfSortentsTable sortentstable)

Get the pointer to the block_owner from a DXF SORTENTSTABLE object.

Returns:
pointer to the block_owner.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
sortentstablea pointer to a DXF SORTENTSTABLE object.

Definition at line 734 of file sortentstable.c.

References _, dxf_sortentstable_struct::block_owner, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfSortentsTable* dxf_sortentstable_set_block_owner ( DxfSortentsTable sortentstable,
char *  block_owner 
)

Set the pointer to the block_owner for a DXF SORTENTSTABLE object.

Parameters:
sortentstablea pointer to a DXF SORTENTSTABLE object.
block_ownera string containing the pointer to the block_owner for the object.

Definition at line 770 of file sortentstable.c.

References _, dxf_sortentstable_struct::block_owner, DXF_DEBUG_BEGIN, and DXF_DEBUG_END.

DxfChar* dxf_sortentstable_get_entity_owner ( DxfSortentsTable sortentstable)

Get the pointer to the entity_owner from a DXF SORTENTSTABLE object.

Returns:
pointer to the entity_owner.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
sortentstablea pointer to a DXF SORTENTSTABLE object.

Definition at line 814 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_sortentstable_struct::entity_owner, and dxf_char_struct::value.

DxfSortentsTable* dxf_sortentstable_set_entity_owner ( DxfSortentsTable sortentstable,
DxfChar entity_owner 
)

Set the pointer to the entity_owner for a DXF SORTENTSTABLE object.

Parameters:
sortentstablea pointer to a DXF SORTENTSTABLE object.
entity_ownera pointer to the entity_owner for the object.

Definition at line 856 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_sortentstable_struct::entity_owner, and dxf_char_struct::value.

DxfChar* dxf_sortentstable_get_last_entity_owner ( DxfChar entity_owner)

Get the pointer to the last entity_owner from a linked list of entity_owner.

Returns:
pointer to the last entity_owner.
Warning:
No checks are performed on the returned pointer.
Parameters:
entity_ownera pointer to a entity_owner.

Definition at line 905 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_char_struct::next.

char* dxf_sortentstable_get_entity_owner_value ( DxfChar entity_owner)

Get the pointer to the value stored in a entity_owner from a DXF SORTENTSTABLE object.

Returns:
pointer to the value in the entity_owner.
Warning:
No checks are performed on the returned pointer (string).
Parameters:
entity_ownera pointer to a entity_owner of a DXF SORTENTSTABLE object.

Definition at line 950 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_char_struct::value.

DxfChar* dxf_sortentstable_set_entity_owner_value ( DxfChar entity_owner,
char *  value 
)

Set the pointer to a value in a particular entity_owner for a DXF SORTENTSTABLE object.

Parameters:
entity_ownera pointer to a particular entity_owner for the object (a single linked list).
valuea pointer to a value (string).

Definition at line 987 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_char_struct::value.

int dxf_sortentstable_get_entity_owner_length ( DxfChar entity_owner)

Get the length of the value stored in a entity_owner from a DXF SORTENTSTABLE object.

Returns:
length the value in the entity_owner.
Parameters:
entity_ownera pointer to a DXF SORTENTSTABLE object.

Definition at line 1029 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_char_struct::length.

DxfChar* dxf_sortentstable_set_entity_owner_length ( DxfChar entity_owner,
int  length 
)

Set the length of a value in a particular entity_owner for a DXF SORTENTSTABLE object.

Parameters:
entity_ownera pointer to a particular entity_owner for the object (a single linked list).
lengthlength.

Definition at line 1058 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_char_struct::length.

DxfChar* dxf_sortentstable_get_next_entity_owner ( DxfChar entity_owner)

Get the pointer to the next entity_owner from a entity_owner.

Returns:
pointer to the next entity_owner.
Warning:
No checks are performed on the returned pointer.
Parameters:
entity_ownera pointer to a entity_owner.

Definition at line 1095 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_char_struct::next.

DxfChar* dxf_sortentstable_set_next_entity_owner ( DxfChar entity_owner,
DxfChar next 
)

Set the pointer to the next entity_owner for a entity_owner.

Parameters:
entity_ownera pointer to a entity_owner.
nexta pointer to the next entity_owner.

Definition at line 1131 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_char_struct::next.

DxfInt* dxf_sortentstable_get_sort_handle ( DxfSortentsTable sortentstable)

Get the sort_handle from a DXF SORTENTSTABLE object.

Returns:
sort_handle.
Parameters:
sortentstablea pointer to a DXF SORTENTSTABLE object.

Definition at line 1171 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_sortentstable_struct::sort_handle.

DxfSortentsTable* dxf_sortentstable_set_sort_handle ( DxfSortentsTable sortentstable,
DxfInt sort_handle 
)

Set the sort_handle for a DXF SORTENTSTABLE object.

Parameters:
sortentstablea pointer to a DXF SORTENTSTABLE object.
sort_handlethe sort_handle to be set for the object.

Definition at line 1206 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_sortentstable_struct::sort_handle.

int dxf_sortentstable_get_sort_handle_value ( DxfInt sort_handle)

Get the value from the sort_handle member of a DXF SORTENTSTABLE object.

Returns:
value from the sort_handle.
Parameters:
sort_handlea pointer to a sort_handle member.

Definition at line 1247 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_int_struct::value.

DxfInt* dxf_sortentstable_set_sort_handle_value ( DxfInt sort_handle,
int  value 
)

Set the value of a sort_handle for a DXF SORTENTSTABLE object.

Parameters:
sort_handlethe sort_handle to be set for the object.
valuethe value to be set.

Definition at line 1276 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_char_struct::value, and dxf_int_struct::value.

DxfInt* dxf_sortentstable_get_next_sort_handle ( DxfInt sort_handle)

Get the pointer to the next sort_handle from a sort_handle.

Returns:
pointer to the next sort_handle.
Warning:
No checks are performed on the returned pointer.
Parameters:
sort_handlea pointer to a DXF sort_handle.

Definition at line 1312 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_int_struct::next.

DxfInt* dxf_sortentstable_set_next_sort_handle ( DxfInt sort_handle,
DxfInt next 
)

Set the pointer to the next sort_handle for a sort_handle.

Parameters:
sort_handlea pointer to a sort_handle entity.
nexta pointer to the next sort_handle.

Definition at line 1348 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_int_struct::next.

DxfInt* dxf_sortentstable_get_last_sort_handle ( DxfInt sort_handle)

Get the pointer to the last sort_handle from a linked list of sort_handles.

Returns:
pointer to the last sort_handle.
Warning:
No checks are performed on the returned pointer.
Parameters:
sort_handlea pointer to a sort_handle.

Definition at line 1391 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_int_struct::next.

DxfSortentsTable* dxf_sortentstable_get_next ( DxfSortentsTable sortentstable)

Get the pointer to the next SORTENTSTABLE object from a DXF ARC SORTENTSTABLE object.

Returns:
pointer to the next SORTENTSTABLE object.
Warning:
No checks are performed on the returned pointer.
Parameters:
sortentstablea pointer to a DXF SORTENTSTABLE object.

Definition at line 1436 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_sortentstable_struct::next.

DxfSortentsTable* dxf_sortentstable_set_next ( DxfSortentsTable sortentstable,
DxfSortentsTable next 
)

Set the pointer to the next SORTENTSTABLE object for a DXF SORTENTSTABLE object.

Parameters:
sortentstablea pointer to a DXF SORTENTSTABLE object.
nexta pointer to the next SORTENTSTABLE object for the SORTENTSTABLE object.

Definition at line 1472 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_sortentstable_struct::next.

DxfSortentsTable* dxf_sortentstable_get_last ( DxfSortentsTable sortentstable)

Get the pointer to the last SORTENTSTABLE object from a linked list of DXF SORTENTSTABLE objects.

Returns:
pointer to the last SORTENTSTABLE object.
Warning:
No checks are performed on the returned pointer.
Parameters:
sortentstablea pointer to a DXF SORTENTSTABLE object.

Definition at line 1516 of file sortentstable.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_sortentstable_struct::next.