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

section.h File Reference

Header file for a DXF section entity (SECTION). More...

#include "global.h"
#include "entities.h"
#include "header.h"
#include "util.h"
#include "block.h"
Include dependency graph for section.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int dxf_section_read (DxfFile *fp)
 Function reads a SECTION in a DXF file.
int dxf_section_write (DxfFile *fp, char *section_name)
 Write DXF output to a file for a section marker.

Detailed Description

Header file for a DXF section entity (SECTION).

Author:
Copyright (C) 2010, 2011, 2012, 2014, 2015, 2016, 2017 by Bert Timmerman <bert.timmerman@xs4all.nl>.
Copyright (C) 2010 by Luis Matos <gass@otiliamatos.ath.cx>.

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 section.h.


Function Documentation

int dxf_section_read ( DxfFile fp)

Function reads a SECTION in a DXF file.

Todo:
Invoke a function for parsing the CLASSES section.
Todo:
Invoke a function for parsing the TABLES section.
Todo:
Experimental usage of block_read
Todo:
Invoke a function for parsing the OBJECTS section.
Todo:
Invoke a function for parsing the THUMBNAIL section.

Parameters:
fpDXF file handle of input file (or device).

Definition at line 46 of file section.c.

References _, dxf_header::_AcadVer, DXF_DEBUG_BEGIN, DXF_DEBUG_END, dxf_entities_list, dxf_entities_read_table(), dxf_header_read(), dxf_read_line(), dxf_file_struct::filename, dxf_file_struct::fp, and dxf_file_struct::line_number.

Referenced by dxf_file_read().

Here is the call graph for this function:

int dxf_section_write ( DxfFile fp,
char *  section_name 
)

Write DXF output to a file for a section marker.

Definition at line 142 of file section.c.

References _, DXF_DEBUG_BEGIN, DXF_DEBUG_END, and dxf_file_struct::fp.

Referenced by dxf_header_write(), and dxf_tables_write().