Open the archive.
Subsequent write_snapshot() calls append to it.
- Returns
- False if SpatialCache::open() fails; not capturing in that case.
Definition at line 177 of file SpatialTransfer.cpp.
178{
179 auto cache = std::make_shared<SpatialCache>();
180 if (!cache->open(filepath)) {
182 "RelaxationGridCapture: failed to open '{}': {}", filepath, cache->get_last_error());
183 return false;
184 }
185
188 "RelaxationGridCapture: recording '{}' to '{}'",
m_stream_name, filepath);
189 return true;
190}
#define MF_INFO(comp, ctx,...)
#define MF_ERROR(comp, ctx,...)
std::shared_ptr< SpatialCache > m_cache
std::string m_stream_name
@ FileIO
Filesystem I/O operations.
@ IO
Networking, file handling, streaming.
References MayaFlux::Journal::FileIO, MayaFlux::Journal::IO, m_cache, m_stream_name, MF_ERROR, and MF_INFO.
Referenced by operator=().