MayaFlux 1.0.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 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
186 m_cache = std::move(cache);
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
@ 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=().

Here is the caller graph for this function: