add threshold/window flag getter/setters
[mussa.git] / alg / mussa.hpp
index 83e08cba7f7e42e8a32c9d092d2a516020d6a700..fb05ec704af23cabf1911bf20bac84758c5f6757 100644 (file)
@@ -72,8 +72,14 @@ public:
     void clear();
 
     //! set parameters from a file - 'mupa' ~ mussa parameters
-    void load_mupa_file(std::string para_file_path) { load_mupa_file(boost::filesystem::path(para_file_path));}
+    void load_mupa_file(std::string para_file_path);
     void load_mupa_file(boost::filesystem::path para_file_path);
+    //! load mussa parameters from a stream, specifing output location
+    void load_mupa_stream(
+           std::istream & para_file, 
+           boost::filesystem::path& file_path_base
+         );
+    
 
     // set parameters individually (eg from user input into gui classes)
     //! set analysis name
@@ -105,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;