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

Method LoadSerialized

src/slg/scene/sceneserialize.cpp:37–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

35BOOST_CLASS_EXPORT_IMPLEMENT(slg::Scene)
36
37Scene *Scene::LoadSerialized(const std::string &fileName) {
38 SerializationInputFile sif(fileName);
39
40 Scene *scene;
41 sif.GetArchive() >> scene;
42
43 if (!sif.IsGood())
44 throw runtime_error("Error while loading serialized scene: " + fileName);
45
46 return scene;
47}
48
49void Scene::SaveSerialized(const std::string &fileName, const Scene *scene) {
50 SerializationOutputFile sof(fileName);

Callers

nothing calls this directly

Calls 1

IsGoodMethod · 0.80

Tested by

no test coverage detected