v0.2.1
Fast, portable C library for geometry input/output
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Modules
stlb_header.h
Go to the documentation of this file.
1 /****************************************************************************
2 ** gmio
3 ** Copyright Fougue (24 Jun. 2016)
4 ** contact@fougue.pro
5 **
6 ** This software is a reusable library whose purpose is to provide complete
7 ** I/O support for various CAD file formats (eg. STL)
8 **
9 ** This software is governed by the CeCILL-B license under French law and
10 ** abiding by the rules of distribution of free software. You can use,
11 ** modify and/ or redistribute the software under the terms of the CeCILL-B
12 ** license as circulated by CEA, CNRS and INRIA at the following URL
13 ** "http://www.cecill.info/licences/Licence_CeCILL-B_V1-en.html".
14 ****************************************************************************/
15 
23 #ifndef GMIO_STLB_HEADER_H
24 #define GMIO_STLB_HEADER_H
25 
26 #include "stl_global.h"
27 #include "stl_constants.h"
28 
31 {
33 };
34 
36 
44 GMIO_API struct gmio_stlb_header gmio_stlb_header_str(const char* str);
45 
54  const struct gmio_stlb_header* header,
55  char* str,
56  char replacement);
57 
59 
60 #endif /* GMIO_STLB_HEADER_H */
61 
void gmio_stlb_header_to_printable_str(const struct gmio_stlb_header *header, char *str, char replacement)
Copies header into C string str.
STL constants.
#define GMIO_API
Expands either to GMIO_DECL_EXPORT or GMIO_DECL_IMPORT when respectively compiling/using the DLL...
Definition: global.h:76
80-byte data at the beginning of any STL binary file
Definition: stlb_header.h:30
uint8_t data[GMIO_STLB_HEADER_SIZE]
Definition: stlb_header.h:32
#define GMIO_C_LINKAGE_BEGIN
Expands to extern "C" { when building with a C++ compiler.
Definition: global.h:181
Global declarations for the STL module.
#define GMIO_C_LINKAGE_END
Expands to } when building with a C++ compiler.
Definition: global.h:183
Size(in bytes) of the header data for STL binary.
Definition: stl_constants.h:40
struct gmio_stlb_header gmio_stlb_header_str(const char *str)
Returns a gmio_stlb_header object whose contents is a copy of str.
Fougue © 2016