]> git.gag.com Git - debian/gnuradio/commitdiff
fix for ticket:153, missing throw decl in .i file
authoreb <eb@221aa14e-8319-0410-a670-987f0aec2ac5>
Tue, 21 Aug 2007 19:15:43 +0000 (19:15 +0000)
committereb <eb@221aa14e-8319-0410-a670-987f0aec2ac5>
Tue, 21 Aug 2007 19:15:43 +0000 (19:15 +0000)
git-svn-id: http://gnuradio.org/svn/gnuradio/trunk@6161 221aa14e-8319-0410-a670-987f0aec2ac5

gnuradio-core/src/lib/general/gr_firdes.h
gnuradio-core/src/lib/general/gr_firdes.i

index 831c0ee688a766bb3304eada42fd8fb8941c0dd6..2a1d6e70a813439063f3a9a0a4439836131903eb 100644 (file)
@@ -172,7 +172,7 @@ class gr_firdes {
    * \p beta:                   Only used for Kaiser
    */
   static std::vector<float>
-  hilbert (unsigned int ntaps,
+  hilbert (unsigned int ntaps = 19,
           win_type windowtype = WIN_RECTANGULAR,
           double beta = 6.76);
    
index 71f0b4ed76201d8031a919d5bb8ee73478236615..7674d6b45809280f22e8658cdc13527bcadc6e4f 100644 (file)
@@ -39,7 +39,8 @@ class gr_firdes {
            double cutoff_freq,         // Hz center of transition band
            double transition_width,    // Hz width of transition band
            win_type window = WIN_HAMMING,
-           double beta = 6.76) throw(std::out_of_range); // used only with Kaiser
+           double beta = 6.76          // used only with Kaiser
+           ) throw(std::out_of_range, std::runtime_error);
 
   /*!
    * \brief use "window method" to design a high-pass FIR filter
@@ -61,7 +62,8 @@ class gr_firdes {
             double cutoff_freq,                // Hz center of transition band
             double transition_width,           // Hz width of transition band
             win_type window = WIN_HAMMING,
-            double beta = 6.76) throw(std::out_of_range); // used only with Kaiser
+            double beta = 6.76                 // used only with Kaiser
+            ) throw(std::out_of_range, std::runtime_error); 
 
   /*!
    * \brief use "window method" to design a band-pass FIR filter
@@ -85,7 +87,8 @@ class gr_firdes {
             double high_cutoff_freq,           // Hz center of transition band
             double transition_width,           // Hz width of transition band
             win_type window = WIN_HAMMING,
-            double beta = 6.76) throw(std::out_of_range); // used only with Kaiser
+            double beta = 6.76                 // used only with Kaiser
+            ) throw(std::out_of_range, std::runtime_error); 
 
 
   /*!
@@ -110,8 +113,9 @@ class gr_firdes {
             double low_cutoff_freq,            // Hz center of transition band
             double high_cutoff_freq,           // Hz center of transition band
             double transition_width,           // Hz width of transition band
-            win_type window = WIN_HAMMING,
-            double beta = 6.76) throw(std::out_of_range); // used only with Kaiser
+            win_type window = WIN_HAMMING,     // used only with Kaiser
+            double beta = 6.76
+            ) throw(std::out_of_range, std::runtime_error); 
 
 
   /*!
@@ -136,8 +140,9 @@ class gr_firdes {
               double low_cutoff_freq,          // Hz center of transition band
               double high_cutoff_freq,         // Hz center of transition band
               double transition_width,         // Hz width of transition band
-              win_type window = WIN_HAMMING,
-              double beta = 6.76) throw(std::out_of_range); // used only with Kaiser
+              win_type window = WIN_HAMMING,   // used only with Kaiser
+              double beta = 6.76
+              ) throw(std::out_of_range, std::runtime_error);
 
   /*!\brief design a Hilbert Transform Filter
    *
@@ -146,9 +151,10 @@ class gr_firdes {
    * \p beta:                   Only used for Kaiser
    */
   static std::vector<float>
-  hilbert (unsigned int ntaps,
+  hilbert (unsigned int ntaps = 19,
           win_type windowtype = WIN_RECTANGULAR,
-          double beta = 6.76) throw(std::out_of_range);
+          double beta = 6.76
+          ) throw(std::out_of_range, std::runtime_error);
    
   /*!
    * \brief design a Root Cosine FIR Filter (do we need a window?)
@@ -184,5 +190,5 @@ class gr_firdes {
    * Return window given type, ntaps and optional beta.
    */
   static std::vector<float> gr_firdes::window (win_type type, int ntaps, double beta) 
-    throw(std::runtime_error);
+    throw(std::runtime_error, std::runtime_error);
 };