|
KiCad PCB EDA Suite
|
#include <plugins/3dapi/model_import.h>#include <cstddef>#include <cstdint>#include <exception>#include <string>#include <wx/filefn.h>#include <wx/string.h>#include <locale.h>Go to the source code of this file.
Classes | |
| struct | MODEL_IMPORT_TEMP_FILE |
| Remove the scratch file an importer expanded a compressed model into. More... | |
| struct | MODEL_IMPORT_STATUS |
| class | MODEL_IMPORT_CANCELED |
| class | MODEL_IMPORT_NUMERIC_LOCALE |
Enumerations | |
| enum class | MODEL_IMPORT_GZIP_RESULT { OK , TOO_LARGE , CORRUPT } |
Functions | |
| wxString | CreateModelImportTempFileName (const wxString &aPrefix) |
| MODEL_IMPORT_GZIP_RESULT | DecompressBoundedModel (const char *aData, std::size_t aSize, std::uint64_t aMaxExpandedBytes, std::string &aExpanded) |
| Expand a gzip stream into aExpanded, refusing anything over aMaxExpandedBytes. | |
|
strong |
| Enumerator | |
|---|---|
| OK | |
| TOO_LARGE | |
| CORRUPT | |
Definition at line 59 of file model_import_internal.h.
| wxString CreateModelImportTempFileName | ( | const wxString & | aPrefix | ) |
Definition at line 100 of file model_import.cpp.
References directory, and result.
Referenced by LoadVRML(), and readSTEPZ().
| MODEL_IMPORT_GZIP_RESULT DecompressBoundedModel | ( | const char * | aData, |
| std::size_t | aSize, | ||
| std::uint64_t | aMaxExpandedBytes, | ||
| std::string & | aExpanded ) |
Expand a gzip stream into aExpanded, refusing anything over aMaxExpandedBytes.
Definition at line 125 of file model_import.cpp.
References CORRUPT, OK, and TOO_LARGE.
Referenced by LoadVRML(), and readSTEPZ().