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

◆ read_file() [2/2]

auto MayaFlux::Creator::read_file ( const std::string &  filepath,
std::optional< Kakshya::CompositeLayout >  layout = std::nullopt 
) -> std::shared_ptr<Kakshya::CompositeContainer>
inline

Load a supported Composite file into an owning container.

CSV and TSV are supported now. Without a supplied layout, fields remain UTF-8 text. This does not register the container as a signal.

Parameters
filepathSource file path.
layoutOptional exact field layout for typed values.
Returns
Loaded container, or nullptr on failure.

Definition at line 205 of file Creator.hpp.

209 {
210 auto container = load_composite_container(filepath, std::move(layout));
211 if (container)
212 MF_LIVE_EXPOSE_AUTO(container);
213 return container;
214 }
#define MF_LIVE_EXPOSE_AUTO(ptr)
Auto-expose variant that deduces the key prefix from the shared_ptr element type.
std::shared_ptr< Kakshya::CompositeContainer > load_composite_container(const std::string &filepath, std::optional< Kakshya::CompositeLayout > layout)
Definition Creator.cpp:148

References MF_LIVE_EXPOSE_AUTO.