MCPcopy Create free account
hub / github.com/NTNU-IHB/PythonFMU / fmi2SetString

Function fmi2SetString

src/pythonfmu/fmi2.cpp:373–390  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

371}
372
373fmi2Status fmi2SetString(
374 fmi2Component c,
375 const fmi2ValueReference vr[],
376 size_t nvr,
377 const fmi2String value[])
378{
379 const auto component = static_cast<Fmi2Component*>(c);
380 try {
381 component->slave->SetString(vr, nvr, value);
382 return fmi2OK;
383 } catch (const pythonfmu::fatal_error& e) {
384 component->logger->log(fmi2Fatal, e.what());
385 return fmi2Fatal;
386 } catch (const std::exception& e) {
387 component->logger->log(fmi2Error, e.what());
388 return fmi2Error;
389 }
390}
391
392
393fmi2Status fmi2GetFMUstate(

Callers

nothing calls this directly

Calls 2

SetStringMethod · 0.80
logMethod · 0.45

Tested by

no test coverage detected