Commit Graph

444 Commits

Author SHA1 Message Date
Hugues Delorme
5605934628 gmio_stl: faster(2x) version of gmio_stla_infos_get() 2016-01-22 12:42:34 +01:00
Hugues Delorme
78ecd577dc gmio_stl: extract some STL ascii parsing functions to be reusable 2016-01-22 10:52:37 +01:00
Hugues Delorme
3619a43992 gmio_core: remove needless gmio_streampos_null() 2016-01-20 18:23:09 +01:00
Hugues Delorme
523cd028b8 gmio_stl: rename gmio_stl_triangle::normal -> gmio_stl_triangle::n 2016-01-20 17:47:30 +01:00
Hugues Delorme
62715a3822 gmio_stl: minor code simplification in stlb_byte_swap.c 2016-01-20 17:42:24 +01:00
Hugues Delorme
431bdf5bb1 gmio_stl: improve scoping of local variables in gmio_stla_write() 2016-01-20 12:17:38 +01:00
Hugues Delorme
d0b213a652 tests: move gmio_stlb_header_to_printable_str() to gmio_stl/stlb_header.h 2016-01-13 15:25:18 +01:00
Hugues Delorme
0d7eb270bc gmio_stl: make use of gmio_stl_read_args::func_stla_get_streamsize 2016-01-13 15:00:08 +01:00
Hugues Delorme
f84eba82fb gmio_stl: fix minor typos 2016-01-13 14:59:35 +01:00
Hugues Delorme
9dc842a35d tests: enable fast_atof() benchmark check only for release builds 2016-01-13 10:55:59 +01:00
Hugues Delorme
775c756818 gmio_core: rename GMIO_STRINGUTILS_CTYPE_H -> GMIO_STRING_ASCII_UTILS_CTYPE_H 2016-01-13 10:37:04 +01:00
Hugues Delorme
4a34063af9 gmio_core: rename string_utils.h -> string_ascii_utils.h 2016-01-13 10:21:27 +01:00
Hugues Delorme
a6dff8a150 More doc 2016-01-13 10:15:04 +01:00
Hugues Delorme
f2a1665493 gmio_core: rename gmio_stringstream_init() to gmio_stringstream_init_pos() 2016-01-13 10:04:41 +01:00
Hugues Delorme
38bfdb6e72 gmio_core: add gmio_stringstream() constructor 2016-01-12 16:29:31 +01:00
Hugues Delorme
b0803b0a7b gmio_stl: refactor gmio_stlb_infos_get() 2016-01-07 17:12:58 +01:00
Hugues Delorme
bdb02a9d8b gmio_stl: use gmio_ascii_stricmp() in gmio_stla_infos_get() 2016-01-07 17:11:56 +01:00
Hugues Delorme
a26008be93 gmio_core: add utility macro GMIO_ARRAY_SIZE() 2016-01-05 11:50:17 +01:00
Hugues Delorme
56241d22f6 gmio_core: fix spacing issues 2016-01-05 11:44:53 +01:00
Hugues Delorme
9d9d65bbd5 gmio_core: rename member gmio_rwargs::memblock -> stream_memblock 2016-01-05 11:44:10 +01:00
Hugues Delorme
0298cf3c89 gmio_stl: restore stream pos at exit of gmio_stl_infos_get() 2015-12-18 15:30:50 +01:00
Hugues Delorme
b8299e38ac gmio_stl: more docs 2015-12-18 10:45:51 +01:00
Hugues Delorme
ce50f76ef0 gmio_stl: add function gmio_stlb_header_str 2015-12-18 10:38:18 +01:00
Hugues Delorme
b514f12cc3 gmio_stl: rename STL write option for binary header 2015-12-17 19:02:24 +01:00
Hugues Delorme
bc986080d6 gmio_core: fix compilation error with GCC-4.6 2015-12-17 12:41:34 +01:00
Hugues Delorme
71bc14b6dc gmio_stl: API change in stl_io 2015-12-17 12:31:30 +01:00
Hugues Delorme
0f04b296fb gmio_stl: separate implementations for ASCII/binary gmio_stl_infos_get() 2015-12-17 12:03:45 +01:00
Hugues Delorme
5aa0b38f5a gmio_stl: major revamp of API 2015-12-09 18:51:03 +01:00
Hugues Delorme
ac93858dbd Fix C90 compilation issues 2015-12-03 18:29:23 +01:00
Hugues Delorme
9d08aa82ca Fix code style issue 2015-12-03 18:17:42 +01:00
Hugues Delorme
a2c071369b gmio_core: rename gmio_stream_pos -> gmio_streampos 2015-12-03 18:03:46 +01:00
Hugues Delorme
fb81b25407 Several changes
* Remove typedefs on struct and enums
* First working version of gmio_stla_stats_get()
2015-12-03 18:00:25 +01:00
Hugues Delorme
82270193e6 gmio_core/internal: fix error in code example 2015-11-23 16:51:02 +01:00
Hugues Delorme
f686f35207 gmio_core/internal: embed gmio_stream inside gmio_stringstream 2015-11-23 16:44:45 +01:00
Hugues Delorme
5e32375553 gmio_stl: delete unused functions 2015-11-23 16:35:43 +01:00
Hugues Delorme
c1db98e8c3 gmio_core/internal: rename gmio_string_stream_fwd_iterator -> gmio_stringstream 2015-11-20 11:53:57 +01:00
Hugues Delorme
083a885d0f gmio_stl: reorganize stla_read.c 2015-11-20 11:20:06 +01:00
Hugues Delorme
be5c1cd65d gmio_core/internal: add gmio_parse_float32() 2015-11-20 11:19:32 +01:00
Hugues Delorme
3afcde257d gmio_core/internal: make distinction between fast_strtof() and fast_atof() 2015-11-19 17:45:29 +01:00
Hugues Delorme
efe3e64648 gmio_core: safer int types when no <stdint.h> 2015-11-19 17:43:07 +01:00
Hugues Delorme
efeb15f36a gmio_core/internal: more doc in string.h, also add gmio_const_string() 2015-11-19 15:35:20 +01:00
Hugues Delorme
2db6415405 gmio_core: simplify strtof10() 2015-11-10 12:25:56 +01:00
Hugues Delorme
516242b9ba gmio_stl: fix some defects reported by coverity scan 2015-11-06 15:33:01 +01:00
Hugues Delorme
108acf2ccd gmio_core: layout code with brief /* */ comments 2015-11-06 14:15:22 +01:00
Hugues Delorme
978770c161 Fix more MSVC and GCC compilation warnings 2015-11-06 13:56:16 +01:00
Hugues Delorme
b356ced118 Introduce typedefs gmio_streamsize_t and gmio_streamoffset_t 2015-11-06 13:43:03 +01:00
Hugues Delorme
5a6ef8366c gmio_core: add typedef for 64b integers 2015-11-06 12:40:57 +01:00
Hugues Delorme
6988b777e9 gmio_stl: improve speed of STL ascii read operations 2015-11-02 10:47:11 +01:00
Hugues Delorme
620930b33f gmio_core/internal: add gmio_to_float32() which is faster than gmio_get_float32() 2015-11-02 10:46:42 +01:00
Hugues Delorme
4be2c0b3fc gmio_core/internal: micro-optimizations in gmio_ascii_stricmp() 2015-11-02 10:45:55 +01:00
Hugues Delorme
72e4660dfa gmio_core/internal: minor optimizations in string_parse 2015-10-30 12:38:57 +01:00
Hugues Delorme
28dd6de941 gmio_core/internal: give <ctype.h> implementations for tolower/toupper functions 2015-10-30 11:51:31 +01:00
Hugues Delorme
2f282d6c29 gmio_core/internal: rename gmio_clocale_xxx() -> gmio_ascii_xxx() 2015-10-29 15:23:21 +01:00
Hugues Delorme
e4b7753fea gmio_core/internal: separate declaration/definition in string_utils.h 2015-10-29 11:45:21 +01:00
Hugues Delorme
0981f63658 gmio_core/internal: rename buffer->str for gmio_string_t variables 2015-10-29 11:25:04 +01:00
Hugues Delorme
64e2456728 gmio_stl/internal: improve STL ascii output implementation 2015-10-28 16:38:57 +01:00
Hugues Delorme
39132c0b3f gmio_core/internal: fix strlen in GMIO_CONST_STRING_FROM_ARRAY() 2015-10-28 16:13:23 +01:00
Hugues Delorme
6d8d694806 gmio_core/internal: fix GCC "char subscripts" warnings in string_utils.h 2015-10-28 16:12:23 +01:00
Hugues Delorme
b7dc8335dd gmio_core/internal: fix GCC compilation error 2015-10-28 16:11:31 +01:00
Hugues Delorme
7a63ad86aa gmio_core/internal: create string.h for string objects 2015-10-22 09:58:38 +02:00
Hugues Delorme
7aeb74ef40 fast_atof: use gmio_clocale_isdigit() 2015-10-21 18:38:04 +02:00
Hugues Delorme
88252c8f8d gmio_core/internal: add gmio_clocale_isdigit()
Also use tables for islower/isupper conversions
2015-10-21 18:37:21 +02:00
Hugues Delorme
d7d51fa210 gmio_stl: faster parsing of STL ascii contents
Don't try to qualify each eaten word from the text stream.
Instead str compare the next word with the expected token string
2015-10-21 18:35:09 +02:00
Hugues Delorme
a66370a76a gmio_stl: cache add/get triangle function pointers 2015-10-14 18:17:03 +02:00
Hugues Delorme
83725f4201 gmio_support: cache OCC triangles and vertices arrays 2015-10-14 12:06:47 +02:00
Hugues Delorme
f5c93e70fe gmio_stl: µ optimizations in gmio_stlb_read_facets() 2015-10-06 11:30:36 +02:00
Hugues Delorme
0e7e0f9ff9 gmio_stl: fix compilation errors in stla_stats.* 2015-09-25 20:13:43 +02:00
Hugues Delorme
bfc38e58b8 gmio_stl: add stla_stats API(no implementation yet) 2015-09-25 16:26:08 +02:00
Hugues Delorme
598123ca47 Rename gmio_buffer -> gmio_memblock 2015-09-25 13:16:41 +02:00
Hugues Delorme
53002389e1 gmio_support: add gmio_[i/o]stream_cpp() functions 2015-09-21 15:58:44 +02:00
Hugues Delorme
ff2368e053 support: add (broken) support of C++ standard streams 2015-09-20 22:58:56 +02:00
Hugues Delorme
215fd68c2b gmio_core: more doc 2015-09-19 23:15:06 +02:00
Hugues Delorme
f6e5f8937b Fix minor code styles issues 2015-09-19 23:14:42 +02:00
Hugues Delorme
b0517b2f39 gmio: add get/set_pos functions to gmio_stream 2015-09-18 14:33:23 +02:00
Hugues Delorme
5ecb401bc0 core_internal: disable unsused function 2015-09-14 11:27:27 +02:00
Hugues Delorme
ac7fd554f8 stla: fix two potential bugs in gmio_stla_read()
* more tolerant read of solid name (can even include "solid")
* set the attribute_byte_count to 0 (triangle passed to callback)
2015-09-11 16:34:18 +02:00
Hugues Delorme
2a65d7b55b cmake: add coveralls support 2015-09-09 17:13:12 +02:00
Hugues Delorme
e60938ea84 Use Doxygen grouping 2015-09-09 11:44:34 +02:00
Hugues Delorme
16fdbb799c gmio_stl: fix Doxygen warnings about invalid <name> HTML tag 2015-09-09 10:56:42 +02:00
Hugues Delorme
409e590f28 gmio_support: make OCC support more C-ish 2015-09-09 10:54:45 +02:00
Hugues Delorme
36a4fd281e tests: add fake_support
fake_support allows to test compilation of gmio_support
is successful. It provides fake sources of the required
3rd party libraries (Qt and OpenCascade).
Fake sources allows to quickly check if nothing is broken
in gmio_support after API changes.
It will also be useful for CI.
2015-09-02 12:07:17 +02:00
Hugues Delorme
56bb6d8e65 cmake: simplifications
* All options reside in the top-level CMakeLists.txt file
* No need to find gmio library, just add "gmio" as a target dependency
* In tests, link to gmio library instead of recompiling needed source code
2015-09-01 18:20:31 +02:00
Hugues Delorme
9fa87e8b20 gmio_support: delete functions gmio_stl_set_occmesh*() 2015-09-01 17:32:57 +02:00
Hugues Delorme
d81ecefa09 cmake: rename option GMIO_BUILD_WITH_LIBSTL -> GMIO_BUILD_LIBSTL 2015-09-01 17:31:33 +02:00
Hugues Delorme
226f763bad cmake: fix build error with .rc file 2015-08-31 16:35:02 +02:00
Hugues Delorme
1ceacf01f0 cmake: fix installation of generated headers 2015-08-31 15:01:47 +02:00
Hugues Delorme
01d8806d2b Merge branch 'master' of https://github.com/fougue/gmio 2015-08-31 14:31:04 +02:00
Hugues Delorme
a06fdc331d cmake: split main CMakeLists.txt into sub-directory files 2015-08-11 23:57:57 +02:00
Hugues Delorme
56142b5826 gmio_stl: move param doc inline 2015-07-28 15:14:39 +02:00
Hugues Delorme
ef7538a4c8 gmio_support: fix build errors since API changes (xxx_func -> func_xxx) 2015-07-24 13:06:34 +02:00
Hugues Delorme
c406a8bb92 Replace fougsys.fr -> fougue.pro 2015-07-13 11:44:29 +02:00
Hugues Delorme
f0f30bb8f1 gmio_stl: silent false-positive coverity defect 2015-07-13 11:20:26 +02:00
Hugues Delorme
13b1d32a9a Rename pointer on functions members
xxx_func -> func_xxx
2015-07-10 11:33:05 +02:00
Hugues Delorme
26fc957569 gmio_stl: fix case where solid name is composed of many words 2015-07-10 10:55:02 +02:00
Hugues Delorme
2857f5ca30 gmio_stl: add gmio_stl_get_format_file() 2015-07-10 09:54:22 +02:00
Hugues Delorme
9fe35b1fc0 gmio_core/internal: add gmio_string_buffer_clear() and gmio_copy_spaces() 2015-07-10 09:52:20 +02:00
Hugues Delorme
1707dd7891 gmio_core: move internal build options into config.h.cmake 2015-06-11 17:22:13 +02:00
Hugues Delorme
44d73a66c8 Fix project name in some license headers 2015-06-10 16:18:59 +02:00
Hugues Delorme
5e51857bc2 gmio: move define GMIO_USE_FAST_ATOF in config.h.cmake 2015-06-10 16:17:06 +02:00
Hugues Delorme
2b099f8edb gmio_stl: simplify doc on STL error codes 2015-06-10 16:11:16 +02:00
Hugues Delorme
9091d714b2 gmio_stl: fix doc about filepath argument in stl_io.h 2015-06-10 15:05:49 +02:00
Hugues Delorme
02f083e02e gmio_core: simplify implementation of toupper() and tolower() in string_utils.h
Also activate GMIO_STRINGUTILS_DIRECT_TESTS
2015-06-09 16:55:06 +02:00
Hugues Delorme
602b4c74d0 gmio_core: fix minor indentation issue 2015-06-09 16:53:42 +02:00
Hugues Delorme
3508eaa236 gmio_stl: fix regression in gmio_stlb_read() 2015-05-28 17:32:05 +02:00
Hugues Delorme
304e1c39bb gmio_core,stl: add new error code GMIO_ERROR_STDIO 2015-05-28 17:31:36 +02:00
Hugues Delorme
62401d5655 gmio_core: fix bug in gmio_eat_word() 2015-05-28 16:20:27 +02:00
Hugues Delorme
3511859908 Hexadecimal error codes 2015-05-28 16:19:31 +02:00
Hugues Delorme
742de300fe gmio_stl: for passing STL binary header data, replace uint8_t* with new gmio_stlb_header 2015-05-28 16:19:07 +02:00
Hugues Delorme
3bd7ec8782 gmio_core: introduce ctype.h code alternative in string_utils.h 2015-05-28 13:57:18 +02:00
Hugues Delorme
37dcad8e5e gmio_core: fix bug in gmio_clocale_char_iequals() 2015-05-28 11:04:41 +02:00
Hugues Delorme
28d133dfa0 gmio_stl: fix doc 2015-05-28 09:52:56 +02:00
Hugues Delorme
fec6742698 GeomIO -> gmio 2015-05-28 09:40:24 +02:00
Hugues Delorme
fcf5e1b5bd cmake: add doc target 2015-05-28 09:36:24 +02:00
Hugues Delorme
ac0c7e2215 cmake: add generation of version.h and gmio.rc (DLL information) 2015-05-27 18:57:00 +02:00
Hugues Delorme
6eb38fcd8b gmio_stl: add option "stl_write_triangles_only" and function gmio_stlb_write_header() 2015-05-27 17:29:48 +02:00
Hugues Delorme
cad2a28f65 gmio_core: more doc in string_parse.h 2015-05-26 18:25:14 +02:00
Hugues Delorme
e79341ec26 gmio_core: more inlining in string_parse.h 2015-05-26 18:20:07 +02:00
Hugues Delorme
f677dc8f4f gmio_core: micro-optimization in gmio_next_char() 2015-05-26 17:59:03 +02:00
Hugues Delorme
4d1dd420fc gmio_core: remove NULL tests on input string in fast_atof.h 2015-05-26 17:57:53 +02:00
Hugues Delorme
3452545b76 gmio_core: micro-optimizations in implementation of string_parse.h 2015-05-07 15:56:44 +02:00
Hugues Delorme
0702632c95 gmio_core: optimize gmio_clocale_isspace() with table of chars 2015-05-07 15:55:54 +02:00
Hugues Delorme
4ee7981615 Fix FougSys -> Fougue 2015-05-06 09:39:37 +02:00
Hugues Delorme
5be4715046 gmio_core: fix copyright 2015-05-06 09:02:12 +02:00
Hugues Delorme
47f3724b3c gmio_stl: fix minor code style issue 2015-05-06 09:01:56 +02:00
Hugues Delorme
19316bc3ee gmio_stl: remove GMIO_LIBSTL_EXPORT from internal function decl 2015-05-06 09:01:38 +02:00
Hugues Delorme
25df817b82 Update copyright 2015-04-30 18:19:45 +02:00
Hugues Delorme
b0fdde43da gmio_stl: rename error GMIO_STL_ERROR_INVALID_REAL32_PREC to GMIO_STL_ERROR_INVALID_FLOAT32_PREC 2015-04-15 17:14:34 +02:00
Hugues Delorme
d3fb4132fb gmio_stl: add option stla_float32_format 2015-04-15 17:11:15 +02:00
Hugues Delorme
cf4961e359 gmio_core: add GMIO_RESTRICT macro wrapper around C99 restrict keyword 2015-04-10 15:07:22 +02:00
Hugues Delorme
e6aa381bad gmio_core: fix possible crashes in fast_atof.h 2015-04-10 14:26:32 +02:00
Hugues Delorme
b7aa93bcfa gmio_core: add conversion routines for float32/int32 2015-04-10 14:25:57 +02:00
Hugues Delorme
d2026aacb4 gmio_core: fix linking error when fast_atof.h get included more than once 2015-04-10 10:11:21 +02:00
Hugues Delorme
cc28eb9d54 gmio_core: inline functions in convert.h 2015-04-10 10:10:25 +02:00
Hugues Delorme
b92c0502e9 Merge branch 'master' of https://github.com/fougsys/gmio 2015-04-03 15:16:18 +02:00
Hugues Delorme
85839abf00 gmio_core: get rid of alloca() support 2015-04-03 15:15:01 +02:00
Hugues Delorme
0f5141979a cmake: on UNIX systems force 64b overrides of stat(), fstat(), ... 2015-04-03 15:12:58 +02:00
Hugues Delorme
32ef47c0d3 gmio_stl: remove needless #include 2015-04-03 11:16:25 +02:00
Hugues Delorme
4fe921c11a gmio_stl: simplify API for write operation 2015-04-02 18:05:01 +02:00
Hugues Delorme
8d8cff6f0e gmio_stl: fix constness of the mesh param in stl_io.h 2015-04-02 17:09:02 +02:00
Hugues Delorme
f0e4c41ed3 gmio_stl: move stl_io options into stl_io_options.h 2015-04-02 17:00:49 +02:00
Hugues Delorme
38c444e7b0 gmio_stl: add gmio_stl_write() and gmio_stl_write_file() 2015-04-02 16:38:14 +02:00
Hugues Delorme
9ee0abfdc6 gmio_core: add doc for task_iface 2015-04-02 16:14:46 +02:00
Hugues Delorme
560ca7c28b gmio_core: in string_parse.c, enable GMIO_USE_FAST_ATOF by default 2015-04-02 16:09:49 +02:00
Hugues Delorme
5302ff1ac6 gmio_stl: let gmio_stl_read_file() accept a gmio_task_iface object 2015-04-02 16:09:08 +02:00
Hugues Delorme
ef3beb2b50 gmio_core: add gmio_task_iface structure 2015-04-02 16:08:11 +02:00
Hugues Delorme
06bf919a3a gmio_stl: minor optimizations in stla_write.c 2015-04-02 15:38:50 +02:00
Hugues Delorme
6a5ac600bd gmio_core: fix bug in gmio_next_char_from_stream() 2015-04-02 15:38:06 +02:00
Hugues Delorme
69d68a4ba9 gmio_stl: simplify façade API for stl_io.h 2015-04-02 15:36:57 +02:00
Hugues Delorme
692c2d7f58 gmio_core: add "default gmio_buffer constructor function" 2015-04-02 15:36:30 +02:00
Hugues Delorme
7fc0836c2b gmio_stl: prefix enum values of gmio_stl_format with GMIO_STL_FORMAT 2015-04-02 10:58:10 +02:00