MCPcopy Create free account
hub / github.com/LuxCoreRender/LuxCore / LoadSerialized

Method LoadSerialized

src/slg/renderconfig.cpp:380–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

378//------------------------------------------------------------------------------
379
380RenderConfig *RenderConfig::LoadSerialized(const std::string &fileName) {
381 SerializationInputFile sif(fileName);
382
383 RenderConfig *renderConfig;
384 sif.GetArchive() >> renderConfig;
385
386 if (!sif.IsGood())
387 throw runtime_error("Error while loading serialized render configuration: " + fileName);
388
389 return renderConfig;
390}
391
392void RenderConfig::SaveSerialized(const std::string &fileName, const RenderConfig *renderConfig) {
393 Properties emptyProps;

Callers

nothing calls this directly

Calls 1

IsGoodMethod · 0.80

Tested by

no test coverage detected