* @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. */
| 674 | * live inputs (data tables) that do not exist during playback. |
| 675 | */ |
| 676 | bool 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. |