gr::blocks::file_meta_source
gr::sync_block
gnuradio/blocks/file_meta_source.h
std::shared_ptr< file_meta_source > std::shared_ptr<file_meta_source> gr::blocks::file_meta_source::sptr sptr gr::blocks::file_meta_source::sptr
sptr static sptr gr::blocks::file_meta_source::make (const std::string &filename, bool repeat=false, bool detached_header=false, const std::string &hdr_filename="") make gr::blocks::file_meta_source::make const std::string & filename bool repeat false bool detached_header false const std::string & hdr_filename ""

Create a meta-data file source.

filename

(string): Name of file to write data to.

repeat

(bool): Repeats file when EOF is found.

detached_header

(bool): Set to true if header info is stored in a separate file (usually named filename.hdr)

hdr_filename

(string): Name of detached header file if used. Defaults to 'filename.hdr' if detached_header is true but this field is an empty string.

bool virtual bool gr::blocks::file_meta_source::open (const std::string &filename, const std::string &hdr_filename="")=0 open gr::blocks::file_meta_source::open const std::string & filename const std::string & hdr_filename ""
void virtual void gr::blocks::file_meta_source::close ()=0 close gr::blocks::file_meta_source::close
void virtual void gr::blocks::file_meta_source::do_update ()=0 do_update gr::blocks::file_meta_source::do_update

Reads stream from file with meta-data headers. Headers are parsed into tags.

The information in the metadata headers includes:

- rx_rate (double): sample rate of data.

- rx_time (uint64_t, double): time stamp of first sample in segment.

- size (uint32_t): item size in bytes.

- type (gr_file_types as int32_t): data type.

- cplx (bool): Is data complex?

- strt (uint64_t): Starting byte of data in this segment.

- bytes (uint64_t): Size in bytes of data in this segment.

Any item inside of the extra header dictionary is ready out and made into a stream tag.
gr::basic_block
gr::block
gr::blocks::file_meta_source
gr::messages::msg_accepter
gr::msg_accepter
gr::sync_block
std::enable_shared_from_this< basic_block >
T
gr::basic_block
d_name
d_symbol_alias
d_symbol_name
d_input_signature
d_output_signature
d_debug_logger
d_logger
msg_queue
d_rpc_vars
d_message_subscribers
gr::block
d_max_output_buffer
d_min_output_buffer
d_pmt_done
d_system_port
gr::blocks::file_meta_source
gr::io_signature
gr::messages::msg_accepter
gr::msg_accepter
gr::sync_block
std::basic_string< Char >
std::deque< T >
elements
std::enable_shared_from_this< basic_block >
std::map< pmt::pmt_t, msg_queue_t, msg_queue_comparator >
keys
elements
std::shared_ptr< T >
ptr
std::shared_ptr< io_signature >
ptr
std::shared_ptr< logger >
std::shared_ptr< pmt_base >
std::string
std::vector< long >
std::vector< rpcbasic_sptr >
elements
p
- gr::blocks::file_meta_source
  _post
- gr::blocks::file_meta_source
  active_thread_priority
- gr::blocks::file_meta_source
  add_item_tag
- gr::blocks::file_meta_source
  add_item_tag
- gr::blocks::file_meta_source
  alias
- gr::blocks::file_meta_source
  alias_pmt
- gr::blocks::file_meta_source
  alias_set
- gr::blocks::file_meta_source
  alignment
- gr::blocks::file_meta_source
  allocate_buffer
- gr::blocks::file_meta_source
  allocate_detail
- gr::blocks::file_meta_source
  basic_block
- gr::blocks::file_meta_source
  basic_block
- gr::blocks::file_meta_source
  BLACK
- gr::blocks::file_meta_source
  blkd_input_timer_value
- gr::blocks::file_meta_source
  block
- gr::blocks::file_meta_source
  block
- gr::blocks::file_meta_source
  check_topology
- gr::blocks::file_meta_source
  clear_finished
- gr::blocks::file_meta_source
  close
- gr::blocks::file_meta_source
  color
- gr::blocks::file_meta_source
  consume
- gr::blocks::file_meta_source
  consume_each
- gr::blocks::file_meta_source
  d_blkd_input_timer_value
- gr::blocks::file_meta_source
  d_color
- gr::blocks::file_meta_source
  d_debug_logger
- gr::blocks::file_meta_source
  d_input_signature
- gr::blocks::file_meta_source
  d_logger
- gr::blocks::file_meta_source
  d_max_output_buffer
- gr::blocks::file_meta_source
  d_message_subscribers
- gr::blocks::file_meta_source
  d_min_output_buffer
- gr::blocks::file_meta_source
  d_name
- gr::blocks::file_meta_source
  d_output_signature
- gr::blocks::file_meta_source
  d_pmt_done
- gr::blocks::file_meta_source
  d_rpc_set
- gr::blocks::file_meta_source
  d_rpc_vars
- gr::blocks::file_meta_source
  d_setlock
- gr::blocks::file_meta_source
  d_symbol_alias
- gr::blocks::file_meta_source
  d_symbol_name
- gr::blocks::file_meta_source
  d_symbolic_id
- gr::blocks::file_meta_source
  d_system_port
- gr::blocks::file_meta_source
  d_unique_id
- gr::blocks::file_meta_source
  declare_sample_delay
- gr::blocks::file_meta_source
  declare_sample_delay
- gr::blocks::file_meta_source
  delete_head_nowait
- gr::blocks::file_meta_source
  detail
- gr::blocks::file_meta_source
  dispatch_msg
- gr::blocks::file_meta_source
  do_update
- gr::blocks::file_meta_source
  empty_handled_p
- gr::blocks::file_meta_source
  empty_handled_p
- gr::blocks::file_meta_source
  empty_p
- gr::blocks::file_meta_source
  empty_p
- gr::blocks::file_meta_source
  enable_update_rate
- gr::blocks::file_meta_source
  erase_msg
- gr::blocks::file_meta_source
  expand_minmax_buffer
- gr::blocks::file_meta_source
  finished
- gr::blocks::file_meta_source
  fixed_rate
- gr::blocks::file_meta_source
  fixed_rate_ninput_to_noutput
- gr::blocks::file_meta_source
  fixed_rate_noutput_to_ninput
- gr::blocks::file_meta_source
  forecast
- gr::blocks::file_meta_source
  general_work
- gr::blocks::file_meta_source
  get_iterator
- gr::blocks::file_meta_source
  get_msg_map
- gr::blocks::file_meta_source
  get_tags_in_range
- gr::blocks::file_meta_source
  get_tags_in_range
- gr::blocks::file_meta_source
  get_tags_in_window
- gr::blocks::file_meta_source
  get_tags_in_window
- gr::blocks::file_meta_source
  GREY
- gr::blocks::file_meta_source
  has_msg_handler
- gr::blocks::file_meta_source
  has_msg_port
- gr::blocks::file_meta_source
  history
- gr::blocks::file_meta_source
  identifier
- gr::blocks::file_meta_source
  input_signature
- gr::blocks::file_meta_source
  insert_tail
- gr::blocks::file_meta_source
  is_pc_rpc_set
- gr::blocks::file_meta_source
  is_rpc_set
- gr::blocks::file_meta_source
  is_set_max_noutput_items
- gr::blocks::file_meta_source
  is_unaligned
- gr::blocks::file_meta_source
  log_level
- gr::blocks::file_meta_source
  make
- gr::blocks::file_meta_source
  max_noutput_items
- gr::blocks::file_meta_source
  max_output_buffer
- gr::blocks::file_meta_source
  message_port_is_hier
- gr::blocks::file_meta_source
  message_port_is_hier_in
- gr::blocks::file_meta_source
  message_port_is_hier_out
- gr::blocks::file_meta_source
  message_port_pub
- gr::blocks::file_meta_source
  message_port_register_in
- gr::blocks::file_meta_source
  message_port_register_out
- gr::blocks::file_meta_source
  message_port_sub
- gr::blocks::file_meta_source
  message_port_unsub
- gr::blocks::file_meta_source
  message_ports_in
- gr::blocks::file_meta_source
  message_ports_out
- gr::blocks::file_meta_source
  message_subscribers
- gr::blocks::file_meta_source
  min_noutput_items
- gr::blocks::file_meta_source
  min_output_buffer
- gr::blocks::file_meta_source
  mp_relative_rate
- gr::blocks::file_meta_source
  msg_accepter
- gr::blocks::file_meta_source
  msg_queue
- gr::blocks::file_meta_source
  name
- gr::blocks::file_meta_source
  nitems_read
- gr::blocks::file_meta_source
  nitems_written
- gr::blocks::file_meta_source
  nmsgs
- gr::blocks::file_meta_source
  no_pc_rpc
- gr::blocks::file_meta_source
  notify_msg_neighbors
- gr::blocks::file_meta_source
  open
- gr::blocks::file_meta_source
  output_multiple
- gr::blocks::file_meta_source
  output_multiple_set
- gr::blocks::file_meta_source
  output_signature
- gr::blocks::file_meta_source
  pc_input_buffers_full
- gr::blocks::file_meta_source
  pc_input_buffers_full
- gr::blocks::file_meta_source
  pc_input_buffers_full_avg
- gr::blocks::file_meta_source
  pc_input_buffers_full_avg
- gr::blocks::file_meta_source
  pc_input_buffers_full_var
- gr::blocks::file_meta_source
  pc_input_buffers_full_var
- gr::blocks::file_meta_source
  pc_noutput_items
- gr::blocks::file_meta_source
  pc_noutput_items_avg
- gr::blocks::file_meta_source
  pc_noutput_items_var
- gr::blocks::file_meta_source
  pc_nproduced
- gr::blocks::file_meta_source
  pc_nproduced_avg
- gr::blocks::file_meta_source
  pc_nproduced_var
- gr::blocks::file_meta_source
  pc_output_buffers_full
- gr::blocks::file_meta_source
  pc_output_buffers_full
- gr::blocks::file_meta_source
  pc_output_buffers_full_avg
- gr::blocks::file_meta_source
  pc_output_buffers_full_avg
- gr::blocks::file_meta_source
  pc_output_buffers_full_var
- gr::blocks::file_meta_source
  pc_output_buffers_full_var
- gr::blocks::file_meta_source
  pc_throughput_avg
- gr::blocks::file_meta_source
  pc_work_time
- gr::blocks::file_meta_source
  pc_work_time_avg
- gr::blocks::file_meta_source
  pc_work_time_total
- gr::blocks::file_meta_source
  pc_work_time_var
- gr::blocks::file_meta_source
  post
- gr::blocks::file_meta_source
  processor_affinity
- gr::blocks::file_meta_source
  produce
- gr::blocks::file_meta_source
  relative_rate
- gr::blocks::file_meta_source
  relative_rate_d
- gr::blocks::file_meta_source
  relative_rate_i
- gr::blocks::file_meta_source
  remove_item_tag
- gr::blocks::file_meta_source
  remove_item_tag
- gr::blocks::file_meta_source
  replace_buffer
- gr::blocks::file_meta_source
  reset_perf_counters
- gr::blocks::file_meta_source
  rpc_set
- gr::blocks::file_meta_source
  sample_delay
- gr::blocks::file_meta_source
  set_alignment
- gr::blocks::file_meta_source
  set_blkd_input_timer_value
- gr::blocks::file_meta_source
  set_block_alias
- gr::blocks::file_meta_source
  set_color
- gr::blocks::file_meta_source
  set_detail
- gr::blocks::file_meta_source
  set_fixed_rate
- gr::blocks::file_meta_source
  set_history
- gr::blocks::file_meta_source
  set_input_signature
- gr::blocks::file_meta_source
  set_inverse_relative_rate
- gr::blocks::file_meta_source
  set_is_unaligned
- gr::blocks::file_meta_source
  set_log_level
- gr::blocks::file_meta_source
  set_max_noutput_items
- gr::blocks::file_meta_source
  set_max_output_buffer
- gr::blocks::file_meta_source
  set_max_output_buffer
- gr::blocks::file_meta_source
  set_min_noutput_items
- gr::blocks::file_meta_source
  set_min_output_buffer
- gr::blocks::file_meta_source
  set_min_output_buffer
- gr::blocks::file_meta_source
  set_msg_handler
- gr::blocks::file_meta_source
  set_output_multiple
- gr::blocks::file_meta_source
  set_output_signature
- gr::blocks::file_meta_source
  set_processor_affinity
- gr::blocks::file_meta_source
  set_relative_rate
- gr::blocks::file_meta_source
  set_relative_rate
- gr::blocks::file_meta_source
  set_tag_propagation_policy
- gr::blocks::file_meta_source
  set_thread_priority
- gr::blocks::file_meta_source
  set_unaligned
- gr::blocks::file_meta_source
  setup_pc_rpc
- gr::blocks::file_meta_source
  setup_rpc
- gr::blocks::file_meta_source
  shared_from_base
- gr::blocks::file_meta_source
  sptr
- gr::blocks::file_meta_source
  start
- gr::blocks::file_meta_source
  stop
- gr::blocks::file_meta_source
  symbol_name
- gr::blocks::file_meta_source
  symbolic_id
- gr::blocks::file_meta_source
  sync_block
- gr::blocks::file_meta_source
  sync_block
- gr::blocks::file_meta_source
  system_handler
- gr::blocks::file_meta_source
  tag_propagation_policy
- gr::blocks::file_meta_source
  tag_propagation_policy_t
- gr::blocks::file_meta_source
  thread_priority
- gr::blocks::file_meta_source
  to_basic_block
- gr::blocks::file_meta_source
  TPP_ALL_TO_ALL
- gr::blocks::file_meta_source
  TPP_CUSTOM
- gr::blocks::file_meta_source
  TPP_DONT
- gr::blocks::file_meta_source
  TPP_ONE_TO_ONE
- gr::blocks::file_meta_source
  unaligned
- gr::blocks::file_meta_source
  unique_id
- gr::blocks::file_meta_source
  unset_max_noutput_items
- gr::blocks::file_meta_source
  unset_processor_affinity
- gr::blocks::file_meta_source
  update_rate
- gr::blocks::file_meta_source
  vcolor
- gr::blocks::file_meta_source
  WHITE
- gr::blocks::file_meta_source
  work
- gr::blocks::file_meta_source
  WORK_CALLED_PRODUCE
- gr::blocks::file_meta_source
  WORK_DONE
- gr::blocks::file_meta_source
  work_return_t
- gr::blocks::file_meta_source
  ~basic_block
- gr::blocks::file_meta_source
  ~block
- gr::blocks::file_meta_source
  ~msg_accepter