Unravel Engine C++ Reference
Loading...
Searching...
No Matches
asset_writer.h File Reference
#include "../asset_handle.h"
#include <filesystem/filesystem.h>
#include <filesystem>
#include <string_utils/utils.h>
#include <engine/assets/impl/asset_extensions.h>

Go to the source code of this file.

Namespaces

namespace  unravel
 
namespace  unravel::asset_writer
 

Functions

auto unravel::asset_writer::atomic_rename_file (const fs::path &src, const fs::path &dst, fs::error_code &ec) noexcept -> bool
 
auto unravel::asset_writer::make_temp_path (const fs::path &dir, fs::path &out, fs::error_code &ec) noexcept -> bool
 
auto unravel::asset_writer::atomic_copy_file (const fs::path &src, const fs::path &dst, fs::error_code &ec) noexcept -> bool
 
void unravel::asset_writer::atomic_write_file (const fs::path &dst, const std::function< void(const fs::path &)> &callback, fs::error_code &ec) noexcept
 
template<typename T >
auto unravel::asset_writer::resolve_meta_file (const asset_handle< T > &asset) -> fs::path
 
template<typename T >
auto unravel::asset_writer::atomic_save_to_file (const fs::path &key, const asset_handle< T > &obj) -> bool
 
template<typename T >
auto unravel::asset_writer::atomic_save_to_file (const fs::path &key, const T &obj) -> bool