45 #ifndef AI_EXPORT_HPP_INC 46 #define AI_EXPORT_HPP_INC 48 #ifndef ASSIMP_BUILD_NO_EXPORT 84 typedef void (*fpExportFunc)(
const char*,
IOSystem*,
const aiScene*);
93 fpExportFunc mExportFunction;
96 unsigned int mEnforcePP;
99 ExportFormatEntry(
const char* pId,
const char* pDesc,
const char* pExtension, fpExportFunc pFunction,
unsigned int pEnforcePP = 0u)
101 mDescription.
id = pId;
104 mExportFunction = pFunction;
105 mEnforcePP = pEnforcePP;
136 void SetIOHandler( IOSystem* pIOHandler);
145 IOSystem* GetIOHandler()
const;
152 bool IsDefaultIOHandler()
const;
174 const aiExportDataBlob* ExportToBlob(
const aiScene* pScene,
const char* pFormatId,
unsigned int pPreprocessing = 0u );
175 inline const aiExportDataBlob* ExportToBlob(
const aiScene* pScene,
const std::string& pFormatId,
unsigned int pPreprocessing = 0u );
211 aiReturn Export(
const aiScene* pScene,
const char* pFormatId,
const char* pPath,
unsigned int pPreprocessing = 0u);
212 inline aiReturn Export(
const aiScene* pScene,
const std::string& pFormatId,
const std::string& pPath,
unsigned int pPreprocessing = 0u);
225 const char* GetErrorString()
const;
255 size_t GetExportFormatCount()
const;
290 void UnregisterExporter(
const char*
id);
296 ExporterPimpl* pimpl;
303 return ExportToBlob(pScene,pFormatId.c_str(),pPreprocessing);
307 inline aiReturn
Exporter :: Export(
const aiScene* pScene,
const std::string& pFormatId,
const std::string& pPath,
unsigned int pPreprocessing )
309 return Export(pScene,pFormatId.c_str(),pPath.c_str(),pPreprocessing);
313 #endif // ASSIMP_BUILD_NO_EXPORT 314 #endif // AI_EXPORT_HPP_INC Assimp's CPP-API and all internal APIs.
Definition: DefaultLogger.hpp:51
const aiExportDataBlob * ExportToBlob(const aiScene *pScene, const char *pFormatId, unsigned int pPreprocessing=0u)
Exports the given scene to a chosen file format.
Defines the C-API for the Assimp export interface.
CPP-API: Interface to the file system.
Definition: IOSystem.hpp:67
Describes a blob of exported scene data.
Definition: cexport.h:194
CPP-API: The Exporter class forms an C++ interface to the export functionality of the Open Asset Impo...
Definition: Exporter.hpp:75
aiReturn Export(const aiScene *pScene, const char *pFormatId, const char *pPath, unsigned int pPreprocessing=0u)
Convenience function to export directly to a file.
Internal description of an Assimp export format option.
Definition: Exporter.hpp:87
aiExportFormatDesc mDescription
Public description structure to be returned by aiGetExportFormatDescription()
Definition: Exporter.hpp:90