MCPcopy Create free account
hub / github.com/PlotJuggler/PlotJuggler / rebuildInstance

Method rebuildInstance

pj_scripting/src/lua_siso_transform.cpp:85–99  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85void LuaSisoTransform::rebuildInstance() {
86 has_session_start_ = false;
87 instance_.reset();
88 error_.clear();
89 if (!engine_) {
90 error_ = "no script engine";
91 return;
92 }
93 auto made = engine_->createInstance(klass_, params_json_);
94 if (!made.has_value()) {
95 error_ = made.error();
96 return;
97 }
98 instance_ = std::move(made).value();
99}
100
101const char* LuaSisoTransform::id() const {
102 return klass_.id.c_str();

Callers

nothing calls this directly

Calls 4

resetMethod · 0.45
clearMethod · 0.45
createInstanceMethod · 0.45
valueMethod · 0.45

Tested by

no test coverage detected