72 void connect(gr::top_block_sptr top_block)
override;
73 void disconnect(gr::top_block_sptr top_block)
override;
74 gr::basic_block_sptr get_left_block()
override;
75 gr::basic_block_sptr get_right_block()
override;
104 std::string default_item_type =
"short");
124 virtual gnss_shared_ptr<gr::block>
source()
const;
129 bool is_complex()
const;
132 gnss_shared_ptr<gr::block> file_source()
const;
133 gnss_shared_ptr<gr::block> valve()
const;
134 gnss_shared_ptr<gr::block> throttle()
const;
135 gnss_shared_ptr<gr::block> sink()
const;
136 SensorDataSource::sptr sensor_data_source()
const;
140 gr::blocks::file_source::sptr create_file_source();
141 gr::blocks::throttle::sptr create_throttle();
142 gnss_shared_ptr<gr::block> create_valve();
143 gr::blocks::file_sink::sptr create_sink();
144 SensorDataSource::sptr create_sensor_data_source();
147 virtual void create_file_source_hook();
148 virtual void create_throttle_hook();
149 virtual void create_valve_hook();
150 virtual void create_sink_hook();
153 virtual void pre_connect_hook(gr::top_block_sptr top_block);
154 virtual void post_connect_hook(gr::top_block_sptr top_block);
155 virtual void pre_disconnect_hook(gr::top_block_sptr top_block);
156 virtual void post_disconnect_hook(gr::top_block_sptr top_block);
159 gr::blocks::file_source::sptr file_source_;
160 gr::blocks::throttle::sptr throttle_;
161 gr::blocks::file_sink::sptr sink_;
162 SensorDataSource::sptr sensor_data_source_;
170 gnss_shared_ptr<gr::block> valve_;
174 std::string filename_;
175 std::string dump_filename_;
176 std::string item_type_;
180 int64_t sampling_frequency_;
181 double minimum_tail_s_;
182 double seconds_to_skip_;
185 bool enable_throttle_control_;
FileSourceBase(ConfigurationInterface const *configuration, std::string const &role, std::string impl, Concurrent_Queue< pmt::pmt_t > *queue, std::string default_item_type="short")
Constructor.
virtual std::tuple< size_t, bool > itemTypeToSize()
Compute the item size, from the item_type(). Subclasses may constrain types that don't make.