MeshLib
 
Loading...
Searching...
No Matches
MR::AsyncObjectLoad Namespace Reference

Typedefs

using PostLoadCallback = std::function<void ( Expected<std::vector<ObjectPtr>> )>
 
using AsyncObjectLoader = void( * )( const std::filesystem::path&, std::string*, PostLoadCallback, ProgressCallback )
 

Functions

MRMESH_API AsyncObjectLoader getObjectLoader (IOFilter filter)
 Find an appropriate loader from the registry.
 
MRMESH_API void setObjectLoader (IOFilter filter, AsyncObjectLoader loader)
 Add or override a loader in the registry.
 
MRMESH_API IOFilters getFilters ()
 Get all registered filters.
 

Typedef Documentation

◆ AsyncObjectLoader

using MR::AsyncObjectLoad::AsyncObjectLoader = void( * )( const std::filesystem::path&, std::string*, PostLoadCallback, ProgressCallback )

◆ PostLoadCallback

using MR::AsyncObjectLoad::PostLoadCallback = std::function<void ( Expected<std::vector<ObjectPtr>> )>

Function Documentation

◆ getFilters()

MRMESH_API IOFilters MR::AsyncObjectLoad::getFilters ( )

Get all registered filters.

◆ getObjectLoader()

MRMESH_API AsyncObjectLoader MR::AsyncObjectLoad::getObjectLoader ( IOFilter filter)

Find an appropriate loader from the registry.

◆ setObjectLoader()

MRMESH_API void MR::AsyncObjectLoad::setObjectLoader ( IOFilter filter,
AsyncObjectLoader loader )

Add or override a loader in the registry.