MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / isFinalValuePlayerOpen

Method isFinalValuePlayerOpen

app/src/SerialStudio.cpp:676–687  ·  view source on GitHub ↗

* @brief Returns true when a player that stores post-transform values is open. The Sessions * player replays the stored final values, so transforms must not run again: they read * live inputs (data tables) that do not exist during playback. */

Source from the content-addressed store, hash-verified

674 * live inputs (data tables) that do not exist during playback.
675 */
676bool SerialStudio::isFinalValuePlayerOpen()
677{
678 static auto& csvPlayer = CSV::Player::instance();
679 static auto& mdf4Player = MDF4::Player::instance();
680
681#ifdef BUILD_COMMERCIAL
682 static auto& sqlPlayer = Sessions::Player::instance();
683 return csvPlayer.isOpen() || mdf4Player.isOpen() || sqlPlayer.isOpen();
684#else
685 return csvPlayer.isOpen() || mdf4Player.isOpen();
686#endif
687}
688
689/**
690 * @brief Retrieves the appropriate color for a dataset based on its index.

Callers

nothing calls this directly

Calls 1

isOpenMethod · 0.45

Tested by

no test coverage detected