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

◆ fill_expanse()

template<typename Record >
void MayaFlux::Nexus::StateEncoder::fill_expanse ( Record &  record,
const Expanse &  expanse 
)
staticprivate

Definition at line 170 of file Encoder.cpp.

171{
172 record.fn_name = expanse.fn_name();
173 record.on_enter_fn_name = expanse.on_enter_fn_name();
174 record.on_exit_fn_name = expanse.on_exit_fn_name();
175 if (expanse.bounds()) {
176 record.bounds_min = expanse.bounds()->min;
177 record.bounds_max = expanse.bounds()->max;
178 }
179
180 if (const auto* hull = dynamic_cast<const Hull*>(&expanse)) {
181 record.subkind = "hull";
182 record.collection = hull->m_collection;
183 } else if (const auto* mantle = dynamic_cast<const Mantle*>(&expanse)) {
184 record.subkind = "mantle";
185 record.fit_name = Reflect::enum_to_lowercase_string(mantle->m_fit);
186 }
187
188 if (!record.subkind.empty()) {
190 "StateEncoder: {} wraps a live buffer that is not encoded", record.subkind);
191 }
192}
#define MF_WARN(comp, ctx,...)
@ FileIO
Filesystem I/O operations.
@ Nexus
Spatial indexing and scheduling for user-defined behaviour.
std::string enum_to_lowercase_string(EnumType value) noexcept
Universal enum to lowercase string converter using magic_enum.

References MayaFlux::Nexus::Expanse::bounds(), MayaFlux::Reflect::enum_to_lowercase_string(), MayaFlux::Journal::FileIO, MayaFlux::Nexus::Expanse::fn_name(), MF_WARN, MayaFlux::Journal::Nexus, MayaFlux::Nexus::Expanse::on_enter_fn_name(), and MayaFlux::Nexus::Expanse::on_exit_fn_name().

+ Here is the call graph for this function: