From 19d46b8e8eea3077d5daeba0df83c28c2f216f57 Mon Sep 17 00:00:00 2001 From: Diane Trout Date: Fri, 3 Aug 2007 01:37:57 +0000 Subject: [PATCH] add threshold/window flag getter/setters --- alg/mussa.cpp | 20 ++++++++++++++++++++ alg/mussa.hpp | 10 ++++++++++ 2 files changed, 30 insertions(+) diff --git a/alg/mussa.cpp b/alg/mussa.cpp index 1911c5d..0912cb4 100644 --- a/alg/mussa.cpp +++ b/alg/mussa.cpp @@ -90,6 +90,26 @@ Mussa::clear() set_dirty(false); } +void Mussa::set_append_window(bool v) +{ + win_append = v; +} + +bool Mussa::get_append_window() +{ + return win_append; +} + +void Mussa::set_append_threshold(bool v) +{ + thres_append = v; +} + +bool Mussa::get_append_threshold() +{ + return thres_append; +} + void Mussa::set_dirty(bool new_state) { if (dirty != new_state) { diff --git a/alg/mussa.hpp b/alg/mussa.hpp index 152d821..fb05ec7 100644 --- a/alg/mussa.hpp +++ b/alg/mussa.hpp @@ -111,6 +111,16 @@ public: //! must be in range [threshold..window size] void set_soft_threshold(int sft_thres); int get_soft_threshold() const; + + //! should we append the window size to the analysis name + void set_append_window(bool v); + //! should we append the window size to the analysis name + bool get_append_window(); + + //! should we append the threshold to the analysis name + void set_append_threshold(bool v); + //! should we append the threshold to the analysis name + bool get_append_threshold(); void set_analysis_mode(enum analysis_modes new_ana_mode); enum analysis_modes get_analysis_mode() const; -- 2.30.2