gr::blocks::file_source
gr::sync_block
gnuradio/blocks/file_source.h
std::shared_ptr< file_source > std::shared_ptr<file_source> gr::blocks::file_source::sptr sptr gr::blocks::file_source::sptr
sptr static sptr gr::blocks::file_source::make (size_t itemsize, const char *filename, bool repeat=false, uint64_t offset=0, uint64_t len=0) make gr::blocks::file_source::make size_t itemsize const char * filename bool repeat false uint64_t offset 0 uint64_t len 0

Create a file source.

Opens `filename` as a source of items into a flowgraph. The data is expected to be in binary format, item after item. The `itemsize` of the block determines the conversion from bits to items. The first `offset` items (default 0) will be skipped.

If `repeat` is turned on, the file will repeat the file after it's reached the end.

If `len` is non-zero, only items (offset, offset+len) will be produced.

itemsize

the size of each item in the file, in bytes

filename

name of the file to source from

repeat

repeat file from start

offset

begin this many items into file

len

produce only items (offset, offset+len)

bool virtual bool gr::blocks::file_source::seek (int64_t seek_point, int whence)=0 seek gr::blocks::file_source::seek int64_t seek_point int whence

seek file to `seek_point` relative to `whence`

seek_point

sample offset in file

whence

one of SEEK_SET, SEEK_CUR, SEEK_END (man fseek)

void virtual void gr::blocks::file_source::open (const char *filename, bool repeat, uint64_t offset=0, uint64_t len=0)=0 open gr::blocks::file_source::open const char * filename bool repeat uint64_t offset 0 uint64_t len 0

Opens a new file.

filename

name of the file to source from

repeat

repeat file from start

offset

begin this many items into file

len

produce only items [offset, offset+len)

void virtual void gr::blocks::file_source::close ()=0 close gr::blocks::file_source::close

Close the file handle.

void virtual void gr::blocks::file_source::set_begin_tag (pmt::pmt_t val)=0 set_begin_tag gr::blocks::file_source::set_begin_tag pmt::pmt_t val

Add a stream tag to the first sample of the file if true.

Read stream from file.

gr::basic_block
gr::block
gr::blocks::file_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_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_source
  _post
- gr::blocks::file_source
  active_thread_priority
- gr::blocks::file_source
  add_item_tag
- gr::blocks::file_source
  add_item_tag
- gr::blocks::file_source
  alias
- gr::blocks::file_source
  alias_pmt
- gr::blocks::file_source
  alias_set
- gr::blocks::file_source
  alignment
- gr::blocks::file_source
  allocate_buffer
- gr::blocks::file_source
  allocate_detail
- gr::blocks::file_source
  basic_block
- gr::blocks::file_source
  basic_block
- gr::blocks::file_source
  BLACK
- gr::blocks::file_source
  blkd_input_timer_value
- gr::blocks::file_source
  block
- gr::blocks::file_source
  block
- gr::blocks::file_source
  check_topology
- gr::blocks::file_source
  clear_finished
- gr::blocks::file_source
  close
- gr::blocks::file_source
  color
- gr::blocks::file_source
  consume
- gr::blocks::file_source
  consume_each
- gr::blocks::file_source
  d_blkd_input_timer_value
- gr::blocks::file_source
  d_color
- gr::blocks::file_source
  d_debug_logger
- gr::blocks::file_source
  d_input_signature
- gr::blocks::file_source
  d_logger
- gr::blocks::file_source
  d_max_output_buffer
- gr::blocks::file_source
  d_message_subscribers
- gr::blocks::file_source
  d_min_output_buffer
- gr::blocks::file_source
  d_name
- gr::blocks::file_source
  d_output_signature
- gr::blocks::file_source
  d_pmt_done
- gr::blocks::file_source
  d_rpc_set
- gr::blocks::file_source
  d_rpc_vars
- gr::blocks::file_source
  d_setlock
- gr::blocks::file_source
  d_symbol_alias
- gr::blocks::file_source
  d_symbol_name
- gr::blocks::file_source
  d_symbolic_id
- gr::blocks::file_source
  d_system_port
- gr::blocks::file_source
  d_unique_id
- gr::blocks::file_source
  declare_sample_delay
- gr::blocks::file_source
  declare_sample_delay
- gr::blocks::file_source
  delete_head_nowait
- gr::blocks::file_source
  detail
- gr::blocks::file_source
  dispatch_msg
- gr::blocks::file_source
  empty_handled_p
- gr::blocks::file_source
  empty_handled_p
- gr::blocks::file_source
  empty_p
- gr::blocks::file_source
  empty_p
- gr::blocks::file_source
  enable_update_rate
- gr::blocks::file_source
  erase_msg
- gr::blocks::file_source
  expand_minmax_buffer
- gr::blocks::file_source
  finished
- gr::blocks::file_source
  fixed_rate
- gr::blocks::file_source
  fixed_rate_ninput_to_noutput
- gr::blocks::file_source
  fixed_rate_noutput_to_ninput
- gr::blocks::file_source
  forecast
- gr::blocks::file_source
  general_work
- gr::blocks::file_source
  get_iterator
- gr::blocks::file_source
  get_msg_map
- gr::blocks::file_source
  get_tags_in_range
- gr::blocks::file_source
  get_tags_in_range
- gr::blocks::file_source
  get_tags_in_window
- gr::blocks::file_source
  get_tags_in_window
- gr::blocks::file_source
  GREY
- gr::blocks::file_source
  has_msg_handler
- gr::blocks::file_source
  has_msg_port
- gr::blocks::file_source
  history
- gr::blocks::file_source
  identifier
- gr::blocks::file_source
  input_signature
- gr::blocks::file_source
  insert_tail
- gr::blocks::file_source
  is_pc_rpc_set
- gr::blocks::file_source
  is_rpc_set
- gr::blocks::file_source
  is_set_max_noutput_items
- gr::blocks::file_source
  is_unaligned
- gr::blocks::file_source
  log_level
- gr::blocks::file_source
  make
- gr::blocks::file_source
  max_noutput_items
- gr::blocks::file_source
  max_output_buffer
- gr::blocks::file_source
  message_port_is_hier
- gr::blocks::file_source
  message_port_is_hier_in
- gr::blocks::file_source
  message_port_is_hier_out
- gr::blocks::file_source
  message_port_pub
- gr::blocks::file_source
  message_port_register_in
- gr::blocks::file_source
  message_port_register_out
- gr::blocks::file_source
  message_port_sub
- gr::blocks::file_source
  message_port_unsub
- gr::blocks::file_source
  message_ports_in
- gr::blocks::file_source
  message_ports_out
- gr::blocks::file_source
  message_subscribers
- gr::blocks::file_source
  min_noutput_items
- gr::blocks::file_source
  min_output_buffer
- gr::blocks::file_source
  mp_relative_rate
- gr::blocks::file_source
  msg_accepter
- gr::blocks::file_source
  msg_queue
- gr::blocks::file_source
  name
- gr::blocks::file_source
  nitems_read
- gr::blocks::file_source
  nitems_written
- gr::blocks::file_source
  nmsgs
- gr::blocks::file_source
  no_pc_rpc
- gr::blocks::file_source
  notify_msg_neighbors
- gr::blocks::file_source
  open
- gr::blocks::file_source
  output_multiple
- gr::blocks::file_source
  output_multiple_set
- gr::blocks::file_source
  output_signature
- gr::blocks::file_source
  pc_input_buffers_full
- gr::blocks::file_source
  pc_input_buffers_full
- gr::blocks::file_source
  pc_input_buffers_full_avg
- gr::blocks::file_source
  pc_input_buffers_full_avg
- gr::blocks::file_source
  pc_input_buffers_full_var
- gr::blocks::file_source
  pc_input_buffers_full_var
- gr::blocks::file_source
  pc_noutput_items
- gr::blocks::file_source
  pc_noutput_items_avg
- gr::blocks::file_source
  pc_noutput_items_var
- gr::blocks::file_source
  pc_nproduced
- gr::blocks::file_source
  pc_nproduced_avg
- gr::blocks::file_source
  pc_nproduced_var
- gr::blocks::file_source
  pc_output_buffers_full
- gr::blocks::file_source
  pc_output_buffers_full
- gr::blocks::file_source
  pc_output_buffers_full_avg
- gr::blocks::file_source
  pc_output_buffers_full_avg
- gr::blocks::file_source
  pc_output_buffers_full_var
- gr::blocks::file_source
  pc_output_buffers_full_var
- gr::blocks::file_source
  pc_throughput_avg
- gr::blocks::file_source
  pc_work_time
- gr::blocks::file_source
  pc_work_time_avg
- gr::blocks::file_source
  pc_work_time_total
- gr::blocks::file_source
  pc_work_time_var
- gr::blocks::file_source
  post
- gr::blocks::file_source
  processor_affinity
- gr::blocks::file_source
  produce
- gr::blocks::file_source
  relative_rate
- gr::blocks::file_source
  relative_rate_d
- gr::blocks::file_source
  relative_rate_i
- gr::blocks::file_source
  remove_item_tag
- gr::blocks::file_source
  remove_item_tag
- gr::blocks::file_source
  replace_buffer
- gr::blocks::file_source
  reset_perf_counters
- gr::blocks::file_source
  rpc_set
- gr::blocks::file_source
  sample_delay
- gr::blocks::file_source
  seek
- gr::blocks::file_source
  set_alignment
- gr::blocks::file_source
  set_begin_tag
- gr::blocks::file_source
  set_blkd_input_timer_value
- gr::blocks::file_source
  set_block_alias
- gr::blocks::file_source
  set_color
- gr::blocks::file_source
  set_detail
- gr::blocks::file_source
  set_fixed_rate
- gr::blocks::file_source
  set_history
- gr::blocks::file_source
  set_input_signature
- gr::blocks::file_source
  set_inverse_relative_rate
- gr::blocks::file_source
  set_is_unaligned
- gr::blocks::file_source
  set_log_level
- gr::blocks::file_source
  set_max_noutput_items
- gr::blocks::file_source
  set_max_output_buffer
- gr::blocks::file_source
  set_max_output_buffer
- gr::blocks::file_source
  set_min_noutput_items
- gr::blocks::file_source
  set_min_output_buffer
- gr::blocks::file_source
  set_min_output_buffer
- gr::blocks::file_source
  set_msg_handler
- gr::blocks::file_source
  set_output_multiple
- gr::blocks::file_source
  set_output_signature
- gr::blocks::file_source
  set_processor_affinity
- gr::blocks::file_source
  set_relative_rate
- gr::blocks::file_source
  set_relative_rate
- gr::blocks::file_source
  set_tag_propagation_policy
- gr::blocks::file_source
  set_thread_priority
- gr::blocks::file_source
  set_unaligned
- gr::blocks::file_source
  setup_pc_rpc
- gr::blocks::file_source
  setup_rpc
- gr::blocks::file_source
  shared_from_base
- gr::blocks::file_source
  sptr
- gr::blocks::file_source
  start
- gr::blocks::file_source
  stop
- gr::blocks::file_source
  symbol_name
- gr::blocks::file_source
  symbolic_id
- gr::blocks::file_source
  sync_block
- gr::blocks::file_source
  sync_block
- gr::blocks::file_source
  system_handler
- gr::blocks::file_source
  tag_propagation_policy
- gr::blocks::file_source
  tag_propagation_policy_t
- gr::blocks::file_source
  thread_priority
- gr::blocks::file_source
  to_basic_block
- gr::blocks::file_source
  TPP_ALL_TO_ALL
- gr::blocks::file_source
  TPP_CUSTOM
- gr::blocks::file_source
  TPP_DONT
- gr::blocks::file_source
  TPP_ONE_TO_ONE
- gr::blocks::file_source
  unaligned
- gr::blocks::file_source
  unique_id
- gr::blocks::file_source
  unset_max_noutput_items
- gr::blocks::file_source
  unset_processor_affinity
- gr::blocks::file_source
  update_rate
- gr::blocks::file_source
  vcolor
- gr::blocks::file_source
  WHITE
- gr::blocks::file_source
  work
- gr::blocks::file_source
  WORK_CALLED_PRODUCE
- gr::blocks::file_source
  WORK_DONE
- gr::blocks::file_source
  work_return_t
- gr::blocks::file_source
  ~basic_block
- gr::blocks::file_source
  ~block
- gr::blocks::file_source
  ~msg_accepter