#include "RuntimeStore.h" RuntimeStore::RuntimeStore(RuntimeHost& runtimeHost) : mRuntimeHost(runtimeHost) { } bool RuntimeStore::InitializeStore(std::string& error) { return mRuntimeHost.Initialize(error); } std::string RuntimeStore::BuildPersistentStateJson() const { return mRuntimeHost.BuildStateJson(); } bool RuntimeStore::CreateStoredLayer(const std::string& shaderId, std::string& error) { return mRuntimeHost.AddLayer(shaderId, error); } bool RuntimeStore::DeleteStoredLayer(const std::string& layerId, std::string& error) { return mRuntimeHost.RemoveLayer(layerId, error); } bool RuntimeStore::MoveStoredLayer(const std::string& layerId, int direction, std::string& error) { return mRuntimeHost.MoveLayer(layerId, direction, error); } bool RuntimeStore::MoveStoredLayerToIndex(const std::string& layerId, std::size_t targetIndex, std::string& error) { return mRuntimeHost.MoveLayerToIndex(layerId, targetIndex, error); } bool RuntimeStore::SetStoredLayerBypassState(const std::string& layerId, bool bypassed, std::string& error) { return mRuntimeHost.SetLayerBypass(layerId, bypassed, error); } bool RuntimeStore::SetStoredLayerShaderSelection(const std::string& layerId, const std::string& shaderId, std::string& error) { return mRuntimeHost.SetLayerShader(layerId, shaderId, error); } bool RuntimeStore::SetStoredParameterValue(const std::string& layerId, const std::string& parameterId, const JsonValue& newValue, std::string& error) { return mRuntimeHost.UpdateLayerParameter(layerId, parameterId, newValue, error); } bool RuntimeStore::SetStoredParameterValueByControlKey(const std::string& layerKey, const std::string& parameterKey, const JsonValue& newValue, std::string& error) { return mRuntimeHost.UpdateLayerParameterByControlKey(layerKey, parameterKey, newValue, error); } bool RuntimeStore::SetStoredParameterValueByControlKey(const std::string& layerKey, const std::string& parameterKey, const JsonValue& newValue, bool persistState, std::string& error) { return mRuntimeHost.UpdateLayerParameterByControlKey(layerKey, parameterKey, newValue, persistState, error); } bool RuntimeStore::ResetStoredLayerParameterValues(const std::string& layerId, std::string& error) { return mRuntimeHost.ResetLayerParameters(layerId, error); } bool RuntimeStore::SaveStackPresetSnapshot(const std::string& presetName, std::string& error) const { return mRuntimeHost.SaveStackPreset(presetName, error); } bool RuntimeStore::LoadStackPresetSnapshot(const std::string& presetName, std::string& error) { return mRuntimeHost.LoadStackPreset(presetName, error); } const std::filesystem::path& RuntimeStore::GetRuntimeRepositoryRoot() const { return mRuntimeHost.GetRepoRoot(); } const std::filesystem::path& RuntimeStore::GetRuntimeUiRoot() const { return mRuntimeHost.GetUiRoot(); } const std::filesystem::path& RuntimeStore::GetRuntimeDocsRoot() const { return mRuntimeHost.GetDocsRoot(); } const std::filesystem::path& RuntimeStore::GetRuntimeDataRoot() const { return mRuntimeHost.GetRuntimeRoot(); } unsigned short RuntimeStore::GetConfiguredControlServerPort() const { return mRuntimeHost.GetServerPort(); } unsigned short RuntimeStore::GetConfiguredOscPort() const { return mRuntimeHost.GetOscPort(); } const std::string& RuntimeStore::GetConfiguredOscBindAddress() const { return mRuntimeHost.GetOscBindAddress(); } double RuntimeStore::GetConfiguredOscSmoothing() const { return mRuntimeHost.GetOscSmoothing(); } unsigned RuntimeStore::GetConfiguredMaxTemporalHistoryFrames() const { return mRuntimeHost.GetMaxTemporalHistoryFrames(); } unsigned RuntimeStore::GetConfiguredPreviewFps() const { return mRuntimeHost.GetPreviewFps(); } bool RuntimeStore::IsExternalKeyingConfigured() const { return mRuntimeHost.ExternalKeyingEnabled(); } const std::string& RuntimeStore::GetConfiguredInputVideoFormat() const { return mRuntimeHost.GetInputVideoFormat(); } const std::string& RuntimeStore::GetConfiguredInputFrameRate() const { return mRuntimeHost.GetInputFrameRate(); } const std::string& RuntimeStore::GetConfiguredOutputVideoFormat() const { return mRuntimeHost.GetOutputVideoFormat(); } const std::string& RuntimeStore::GetConfiguredOutputFrameRate() const { return mRuntimeHost.GetOutputFrameRate(); } void RuntimeStore::SetCompileStatus(bool succeeded, const std::string& message) { mRuntimeHost.SetCompileStatus(succeeded, message); } void RuntimeStore::ClearReloadRequest() { mRuntimeHost.ClearReloadRequest(); }