From 2731be3939dea5294aad6da0f86477f84ec2edff Mon Sep 17 00:00:00 2001 From: Antonio Ramos Date: Fri, 9 Jun 2017 14:12:55 +0200 Subject: [PATCH] Adding some lines to notch_filter.h Coding the class NotchFilter --- .../input_filter/adapters/notch_filter.h | 42 ++++++++++++++++++- 1 file changed, 41 insertions(+), 1 deletion(-) diff --git a/src/algorithms/input_filter/adapters/notch_filter.h b/src/algorithms/input_filter/adapters/notch_filter.h index 2783dcd37..d583ecc11 100644 --- a/src/algorithms/input_filter/adapters/notch_filter.h +++ b/src/algorithms/input_filter/adapters/notch_filter.h @@ -33,5 +33,45 @@ #ifndef GNSS_SDR_NOTCH_FILTER_H_ #define GNSS_SDR_NOTCH_FILTER_H_ +#include +#include +#include +#include "gnss_block_interface.h" +#include "notch_cc.h" -#endif +class ConfigurationInterface; + +class NotchFilter: public GNSSBlockInterface +{ +public: + NotchFilter(ConfigurationInterface* configuration, + std::string role, unsigned int in_streams, + unsigned int out_streams); + + virtual ~NotchFilter(); + std::string role() + { + return role_; + } + + //! Returns "Notch_Filter" + std::string implementation() + { + return "Notch_Filter"; + } + size_t item_size() + { + return 0; + } + void connect(gr::top_block_sptr top_block); + void disconnect(gr::top_block_sptr top_block); + gr::basic_block_sptr get_left_block(); + gr::basic_block_sptr get_right_block(); + +private: + ConfigurationInterface* config_; + + +}; + +#endif //GNSS_SDR_NOTCH_FILTER_H_