|
MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
|
| StateDecoder::ReconstructionResult MayaFlux::Nexus::StateDecoder::reconstruct | ( | Fabric & | fabric, |
| const std::string & | base_path | ||
| ) |
Patch existing entities and construct missing ones from schema.
Entities whose id exists in the fabric are patched in place. Missing entities are constructed, their callables resolved via the fabric's function registry (left empty with a warning if absent), and wired. Restorable wiring kinds: every (with its scheduler tokens), move_to and commit_driven. Any other kind falls back to commit_driven with a warning. Entity ids are assigned by the Fabric, so a reconstructed entity may get a different id, which is warned. Hard failure (bad schema, unreadable EXR, dimension mismatch) sets last_error() and returns a zeroed result.
| fabric | Target fabric. May be empty, partial, or full. |
| base_path | Path stem without extension. |
Definition at line 754 of file Decoder.cpp.
References MayaFlux::Nexus::Fabric::all_ids(), MayaFlux::Nexus::StateDecoder::ReconstructionResult::constructed, MayaFlux::Journal::FileIO, MayaFlux::Nexus::State::k_exr_rows, MayaFlux::Nexus::State::kind_known(), MayaFlux::IO::JSONSerializer::last_error(), m_last_error, MF_ERROR, MF_INFO, MayaFlux::Journal::Nexus, MayaFlux::Nexus::StateDecoder::ReconstructionResult::patched, pixels, MayaFlux::IO::JSONSerializer::read(), MayaFlux::Nexus::StateDecoder::ReconstructionResult::skipped, MayaFlux::Nexus::StateDecoder::ReconstructionResult::warnings, and width.
Referenced by reconstruct().
Here is the call graph for this function:
Here is the caller graph for this function: