v0.3.0
Fast, portable C library for geometry input/output
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules
Data Fields
gmio_stl_read_options Struct Reference

Options of function gmio_stl_read() More...

Data Fields

struct gmio_memblock stream_memblock
 Used by the stream to bufferize I/O operations. More...
 
struct gmio_task_iface task_iface
 Optional interface by which the I/O operation can be controlled. More...
 
gmio_streamsize_t(* func_stla_get_streamsize )(struct gmio_stream *stream, struct gmio_memblock *stream_memblock)
 Optional pointer to a function that returns the size(in bytes) of the STL ascii data to read. More...
 
bool stla_dont_check_lc_numeric
 Flag allowing to disable checking of the current locale's numeric formatting category. More...
 

Detailed Description

Options of function gmio_stl_read()

Initialising gmio_stl_read_options with {0} (or {} in C++) is the convenient way to set default values(passing NULL to gmio_stl_read() has the same effect).

Field Documentation

gmio_streamsize_t(* gmio_stl_read_options::func_stla_get_streamsize)(struct gmio_stream *stream, struct gmio_memblock *stream_memblock)

Optional pointer to a function that returns the size(in bytes) of the STL ascii data to read.

Useful only with STL ascii format. If set to NULL then by default gmio_stream::func_size() is called.

The resulting stream size is passed to gmio_task_iface::func_handle_progress() as the max_value argument.

See also
gmio_stla_infos_get_streamsize()
bool gmio_stl_read_options::stla_dont_check_lc_numeric

Flag allowing to disable checking of the current locale's numeric formatting category.

If false then LC_NUMERIC is checked to be "C" or "POSIX". If check fails then the function returns GMIO_ERROR_BAD_LC_NUMERIC

This applies only for STL ascii, where it affects text-related standard C functions(snprintf(), strtod(), ...)

LC_NUMERIC checking is enabled by default.

struct gmio_memblock gmio_stl_read_options::stream_memblock

Used by the stream to bufferize I/O operations.

If null, then a temporary memblock is created with the global default constructor function

See also
gmio_memblock_isnull()
gmio_memblock_default()
struct gmio_task_iface gmio_stl_read_options::task_iface

Optional interface by which the I/O operation can be controlled.


The documentation for this struct was generated from the following file:
Fougue © 2016