v0.4.1
Fast, portable C library for geometry input/output
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules
amf_io_options.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** Copyright (c) 2017, Fougue Ltd. <http://www.fougue.pro>
3 ** All rights reserved.
4 **
5 ** Redistribution and use in source and binary forms, with or without
6 ** modification, are permitted provided that the following conditions
7 ** are met:
8 **
9 ** 1. Redistributions of source code must retain the above copyright
10 ** notice, this list of conditions and the following disclaimer.
11 **
12 ** 2. Redistributions in binary form must reproduce the above
13 ** copyright notice, this list of conditions and the following
14 ** disclaimer in the documentation and/or other materials provided
15 ** with the distribution.
16 **
17 ** THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
18 ** "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
19 ** LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
20 ** A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
21 ** OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
22 ** SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
23 ** LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24 ** DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
25 ** THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 ** (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
27 ** OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 ****************************************************************************/
29 
37 #pragma once
38 
39 #include "amf_global.h"
40 #include "../gmio_core/memblock.h"
41 #include "../gmio_core/task_iface.h"
42 #include "../gmio_core/text_format.h"
43 #include "../gmio_core/zlib_compress.h"
44 
52 {
59 
62 
67 
70  uint8_t float64_prec;
71 
72  /* ZIP/Deflate compression */
73 
76 
79  const char* zip_entry_filename;
80 
84 
88 
92 };
93 
Global declarations for the AMF module.
uint16_t zip_entry_filename_len
Filename length of the single AMF entry within the ZIP archive.
Definition: amf_io_options.h:83
uint8_t float64_prec
The maximum number of significant digits when writting double values.
Definition: amf_io_options.h:70
bool dont_use_zip64_extensions
Flag to disable use of the Zip64 format extensions.
Definition: amf_io_options.h:87
struct gmio_zlib_compress_options z_compress_options
Options for the zlib(deflate) compression.
Definition: amf_io_options.h:91
struct gmio_task_iface task_iface
Optional interface by which the I/O operation can be controlled.
Definition: amf_io_options.h:61
struct gmio_memblock stream_memblock
Used by the stream to bufferize I/O operations.
Definition: amf_io_options.h:58
enum gmio_float_text_format float64_format
The format used when writting double values as strings.
Definition: amf_io_options.h:66
bool create_zip_archive
Flag to write AMF document in ZIP archive containing one file entry.
Definition: amf_io_options.h:75
gmio_float_text_format
Various formats to textually represent a float(single/double precision)
Definition: text_format.h:40
const char * zip_entry_filename
Filename of the single AMF entry within the ZIP archive.
Definition: amf_io_options.h:79
Options of function gmio_amf_write()
Definition: amf_io_options.h:51
zlib compression options
Definition: zlib_compress.h:63
Basic memory block.
Definition: memblock.h:57
Defines an interface through which a task can be controlled.
Definition: task_iface.h:42
Fougue © 2017