MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ start()

bool MayaFlux::IO::RelaxationGridCapture::start ( const std::string &  filepath)

Open the archive.

Subsequent write_snapshot() calls append to it.

Returns
False if SpatialCache::open() fails; not capturing in that case.

Definition at line 176 of file SpatialTransfer.cpp.

177{
178 auto cache = std::make_shared<SpatialCache>();
179 if (!cache->open(filepath)) {
181 "RelaxationGridCapture: failed to open '{}': {}", filepath, cache->get_last_error());
182 return false;
183 }
184
185 m_cache = std::move(cache);
187 "RelaxationGridCapture: recording '{}' to '{}'", m_stream_name, filepath);
188 return true;
189}
#define MF_INFO(comp, ctx,...)
#define MF_ERROR(comp, ctx,...)
std::shared_ptr< SpatialCache > m_cache
@ 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.