avnd_tools::DeviceRecorder Struct Reference
Inheritance diagram for avnd_tools::DeviceRecorder:
avnd_tools::PatternObject

Detailed Description

Records the input into a CSV. To record an entire device: can be a pattern expression such as foo://

Writing to the disk is done in a worker thread as is tradition.

Classes

struct  process_message
 
struct  recorder_thread
 
struct  reset_message
 
struct  reset_path_message
 

Public Types

using worker_message = ossia::variant< reset_message, reset_path_message, process_message >
 
using tick = halp::tick_musical
 

Public Member Functions

 halp_meta (name, "CSV recorder") halp_meta(author
 
ossia team halp_meta (category, "Control/Recording") halp_meta(description
 
ossia team Record the messages of a device at regular interval halp_meta (c_name, "avnd_device_recorder") halp_meta(uuid
 
void operator() (const halp::tick_musical &tk)
 

Public Attributes

std::shared_ptr< recorder_threadimpl = std::make_shared<recorder_thread>()
 
struct {
   std::function< void(std::shared_ptr< recorder_thread >, worker_message)>   request
 
worker
 
struct {
   PatternSelector   pattern
 
   halp::time_chooser<"Interval">   time
 
      filename
 
inputs
 
struct {
outputs
 
bool started {}
 
std::optional< int64_t > first_message_sent_pos
 
std::optional< int64_t > last_message_sent_pos
 
- Public Attributes inherited from avnd_tools::PatternObject
ossia::exec_state_facade ossia_state
 
std::optional< ossia::traversal::path > m_path
 
std::vector< ossia::net::node_base * > roots
 

The documentation for this struct was generated from the following file: