Commit Graph

323 Commits

Author SHA1 Message Date
Hugues Delorme
59e5daf983 Major reorganization to improve performance 2014-01-28 19:06:24 +01:00
Hugues Delorme
dbe36c0eb1 libstl: add stl_format.h,c 2014-01-28 19:05:18 +01:00
Hugues Delorme
c11804fcea libstl: put all error codes in stl_error.h 2014-01-28 19:04:32 +01:00
Hugues Delorme
b41817fcad ascii_parse: add function foug_checked_next_chars() 2014-01-28 10:11:26 +01:00
Hugues Delorme
340ed4f117 ascii_parse: simplify cookie function 2014-01-27 22:57:10 +01:00
Hugues Delorme
6ae2de4985 Move convert.* into internal/ folder 2014-01-27 15:30:46 +01:00
Hugues Delorme
fb9985855a libstl: put ASCII text parsing into separated header/source files 2014-01-27 15:28:12 +01:00
Hugues Delorme
11d5668d4b Simplify cookie mechanism 2014-01-27 15:03:50 +01:00
Hugues Delorme
90f5f084f6 libstl: use strtof() if available (in stla_read.c)
strtof() is faster than strtod(), see:
http://www.gnu.org/software/libc/manual/html_node/Parsing-of-Floats.html
"(...) strtof can be substantially faster than strtod, but has less precision"

strtof() was added in C99 so BUILD_STRICT_C90 must be disabled to have any
chance to use it (MSVC does not provide strtof(), GCC does).
2014-01-23 17:30:23 +01:00
Hugues Delorme
5f0f9f9273 global: improve byte swapping functions (endian.h)
Use platform's builtin byte swapping functions when available
2014-01-23 17:28:59 +01:00
Hugues Delorme
0539a111fd cmake: many improvements about build options and platform checks
* Add option BUILD_STRICT_C90
* Rename options WITH_* by BUILD_WITH_*
* Detect if platform provides builtin byte swap functions
2014-01-23 17:24:50 +01:00
Hugues Delorme
5720614cdc libstl: use field instead of function pointer where possible 2014-01-22 19:17:19 +01:00
Hugues Delorme
6f7d8c4121 stlb: add define to control whether to use memcpy() or safe-align copy 2014-01-22 18:29:57 +01:00
Hugues Delorme
4750e2c989 Add convert.h/convert.c 2014-01-22 18:28:58 +01:00
Hugues Delorme
450c3fd1af Rename qt4_support to qt_support 2014-01-21 16:19:27 +01:00
Hugues Delorme
d0e9c44ae6 Add doxygen file 2014-01-21 16:18:17 +01:00
Hugues Delorme
23587a905e Reorganize source files 2014-01-21 11:59:40 +01:00
Hugues Delorme
3e7b8546eb Remove out-dated C++ stuff 2014-01-21 11:07:00 +01:00
Hugues Delorme
4f6ed17071 occ_support: minor performance improvement 2014-01-21 10:52:53 +01:00
Hugues Delorme
e3915c0bc7 Add more doxygen documentation 2014-01-21 10:51:23 +01:00
Hugues Delorme
b9f3c71d24 Fix minor indentation issues 2014-01-21 10:49:24 +01:00
Hugues Delorme
db509d6863 Fix indentation issues 2014-01-09 22:22:57 +01:00
Hugues Delorme
5467ff633f Merge branch 'master' of ssh://slave.lautre.net:22/home/projects/fougsys/fougdataex 2013-04-29 15:48:45 +02:00
Hugues Delorme
9d20aa9569 Fix warnings in occ_libstl.cpp with Visual C++ 2013-04-29 15:47:44 +02:00
Hugues Delorme
4e7049ae02 stla: fix typo error in grammar documentation 2013-04-29 13:21:39 +02:00
Hugues Delorme
d46de3ea86 stla: document grammar for STL ASCII 2013-04-29 12:24:51 +02:00
Hugues Delorme
e2bdc6b891 libstl: fix minor code style issues 2013-04-29 11:47:15 +02:00
Hugues Delorme
d55f1831e1 occ_support: fix minor code style issues 2013-04-27 00:20:12 +02:00
Hugues Delorme
4924de91cb stlb: introduce 'byte_order' parameter (for now only little-endian is supported) 2013-04-27 00:16:38 +02:00
Hugues Delorme
e983afe159 stla: implement writing 2013-04-27 00:11:53 +02:00
Hugues Delorme
f866df2127 stla: implement a recursive-descent parser for reading 2013-04-27 00:10:28 +02:00
Hugues Delorme
baf2859cca libstl: remove parameter names for cookie functions in stla_read.h 2013-04-02 12:07:35 +02:00
Hugues Delorme
1e56476821 STLb: Minor code improvement in foug_stlb_write_facets() 2013-03-27 13:11:00 +01:00
Hugues Delorme
8b5b6d5247 Fix indentation issues 2013-03-27 13:00:48 +01:00
Hugues Delorme
27f320012b Fix potential collisions on HAVE_STDINT_H (renamed to FOUG_HAVE_STDINT_H) 2013-03-27 12:49:57 +01:00
Hugues Delorme
0b2424570e endian.h: add foug_encode_uint32_be() 2013-03-06 18:30:02 +01:00
Hugues Delorme
a6128da7d2 Modular all-in-one QMake build script (foug_datax.pro) 2013-03-06 17:02:19 +01:00
Hugues Delorme
174fe74939 Refactor API of libSTL 2013-03-06 11:49:53 +01:00
Hugues Delorme
ed1a9f8bb8 Normalize inclusion guards 2013-03-06 10:27:37 +01:00
Hugues Delorme
a11ae5157c libstl: reorganize declarations of read/write functions 2013-03-05 16:46:42 +01:00
Hugues Delorme
1401860c83 stlb: localize variables in their direct scope 2013-03-05 16:22:26 +01:00
Hugues Delorme
fb89b4ddcb stla: add support of task interrupt (stop) 2013-03-05 14:54:11 +01:00
Hugues Delorme
d128eb92fd Easier and simpler task control 2013-03-05 01:04:29 +01:00
Hugues Delorme
85b616e84b Rename foug_dataex to foug_datax 2013-03-04 22:04:21 +01:00
Hugues Delorme
dbdb45bd24 Add first working impl of STL ASCII reading 2013-03-02 22:05:17 +01:00
Hugues Delorme
6353cbbb46 Merge manip structs in their respective 'main' struct 2013-03-02 21:51:08 +01:00
Hugues Delorme
7daa164a8b * Simplify syntax used to call function with pointers
* Some documentation for foug_stream functions
2013-03-01 21:37:31 +01:00
Hugues Delorme
f71c061328 libstl: improve rapidity by using C style cast to decode memory 2013-02-21 14:53:41 +01:00
Hugues Delorme
aebea13385 Fix minor C code style issues 2013-02-21 14:51:29 +01:00
Hugues Delorme
d74f67dad6 Fix minor issue with name of inclusion guard 2013-02-21 14:44:44 +01:00
Hugues Delorme
7f76079f80 Add cmake build script 2013-02-21 14:44:35 +01:00
Hugues Delorme
58fdac010b c-libstl: add foug_stlb_triangle struct 2013-02-05 12:26:41 +01:00
Hugues Delorme
24495d6655 c-libstl: add _set_cookie() functions and buffer parameter 2013-02-05 12:24:13 +01:00
Hugues Delorme
dc832d3f81 c-lib: in endian.c, move union types outside functions 2013-02-05 12:19:24 +01:00
Hugues Delorme
903d98d565 Fix definition of FOUG_DECL macros 2013-01-25 15:37:06 +01:00
Hugues Delorme
f73c2c37ad c-lib: fix warnings with Visual C++ 2010 2013-01-24 18:51:26 +01:00
Hugues Delorme
33b4d7f2e8 c-lib: strict conformance to C90 2013-01-24 18:38:43 +01:00
Hugues Delorme
2cae8b387c c-libstl: don't check argument buffer_size 2013-01-24 12:46:10 +01:00
Hugues Delorme
ff8a6fe6e5 libc++: adapt to core libc 2013-01-24 11:31:38 +01:00
Hugues Delorme
867cdc0098 libc: improve handling of stream error 2013-01-24 11:29:51 +01:00
Hugues Delorme
d3c56f7a52 libc: improve encoding routines 2013-01-24 11:28:59 +01:00
Hugues Delorme
2eeef375c7 c-lib: improve file name consistency 2013-01-15 17:56:24 +01:00
Hugues Delorme
8db6c9d077 c-lib: add DLL import/export directives 2013-01-15 16:45:01 +01:00
Hugues Delorme
1f0f4a311f c-lib: workable binary STL writing function 2013-01-15 13:10:44 +01:00
Hugues Delorme
6e513f6d68 c-lib: put STL binary reading code in stlb_read.* files 2013-01-15 10:40:35 +01:00
Hugues Delorme
8cbb5a0007 c-lib: workable reading of binary STL files 2013-01-14 19:31:12 +01:00
Hugues Delorme
5f4ed36e9f c-lib: initial work about base C library of FougDataEx 2013-01-10 18:48:46 +01:00
Hugues Delorme
598c376eb4 Reorganize source code file structure
Inroduce c++ language folder
2013-01-08 00:21:50 +01:00
Hugues Delorme
075077b4e1 Enhance interface of AbstractTaskProgress
* Rename handleTaskProgress() to taskProgressEvent()
* Add task control features (asyncStop() + taskStopEvent())
2012-07-12 09:50:42 +02:00
Hugues Delorme
19b790f61e stlb: change namespaces to stlb and stla (were stl::bin / stl::asc) 2012-07-05 12:56:25 +02:00
Hugues Delorme
5478c2c0a7 Fix for C++ std streams 2012-06-25 17:31:18 +02:00
Hugues Delorme
98176be41d libstl: add buffered reading of triangle data (binary format) 2012-02-28 20:32:00 +01:00
Hugues Delorme
6f7bfd31e6 Initial import 2012-02-28 20:27:32 +01:00