MeshLib C++ Docs
Loading...
Searching...
No Matches
MRObjectSave.h
Go to the documentation of this file.
1#pragma once
2
4#include "MRExpected.h"
5#include "MRIOFilters.h"
7#include <filesystem>
8
9namespace MR
10{
13
14
15namespace ObjectSave
16{
17
20MRMESH_API Expected<void> toAnySupportedSceneFormat( const Object& object, const std::filesystem::path& file,
21 const Settings& settings = {} );
22
26MRMESH_API Expected<void> toAnySupportedFormat( const Object& object, const std::filesystem::path& file,
27 const Settings& settings = {} );
28
29}
30
40MRMESH_API Expected<void> serializeObjectTree( const Object& object, const std::filesystem::path& path,
41 FolderCallback preCompress, const ObjectSave::Settings& settings = {} );
42MRMESH_API Expected<void> serializeObjectTree( const Object& object, const std::filesystem::path& path,
43 const ObjectSave::Settings& settings = {} );
44
45}
named object in the data model
Definition MRObject.h:62
std::function< void(const std::filesystem::path &tempFolderName)> FolderCallback
this callback will be called before compression on serialization and after decompression on deseriali...
Definition MRUniqueTemporaryFolder.h:14
MRMESH_API Expected< void > toAnySupportedSceneFormat(const Object &object, const std::filesystem::path &file, const Settings &settings={})
tl::expected< T, E > Expected
Definition MRExpected.h:31
MRMESH_API Expected< void > serializeObjectTree(const Object &object, const std::filesystem::path &path, FolderCallback preCompress, const ObjectSave::Settings &settings={})
namespace ObjectSave
MRMESH_API Expected< void > toAnySupportedFormat(const Object &object, const std::filesystem::path &file, const Settings &settings={})
only for bindings generation
Definition MRCameraOrientationPlugin.h:8
Definition MRObjectSaveSettings.h:11