OSSIA
Open Scenario System for Interactive Application
ossia::oscquery::json_writer Class Reference

Creates the JSON message to send through OSCQuery. More...

Detailed Description

Creates the JSON message to send through OSCQuery.

Public Types

using string_t = rapidjson::StringBuffer
 
using writer_t = ossia::json_writer
 

Static Public Member Functions

static string_t device_info (int port)
 Sends the port at which a server opens its OSC port.
 
static string_t query_host_info (const std::string &name, const int osc_port, const std::string &local_ip, int ws_port)
 
static string_t query_namespace (const ossia::net::node_base &node)
 Reply to the namespace query : /foo/bar.
 
template<typename StringVec_T >
static string_t query_attributes (const ossia::net::node_base &node, const StringVec_T &methods)
 Reply to a query of attributes : /foo/bar?VALUE&RANGE.
 
static string_t listen (std::string_view address)
 
static string_t ignore (std::string_view address)
 
static string_t start_osc_streaming (int local_server_port, int local_sender_port)
 
static string_t path_added (const ossia::net::node_base &n)
 Sent when a new node is added.
 
static string_t path_changed (const ossia::net::node_base &n)
 Sent when the content of a node has changed.
 
static string_t path_removed (const std::string &path)
 Sent when a node is being removed.
 
static string_t path_renamed (const std::string &old_path, const std::string &new_path)
 Sent when a node is renamed.
 
static string_t attributes_changed (const ossia::net::node_base &n, std::string_view attribute)
 
static string_t attributes_changed (const ossia::net::node_base &n, const std::vector< std::string_view > &attributes)
 
static string_t paths_added (const std::vector< const ossia::net::node_base * > &vec)
 
static string_t paths_changed (const std::vector< const ossia::net::node_base * > &vec)
 
static string_t paths_removed (const std::vector< std::string > &vec)
 
static string_t attributes_changed_array (const std::vector< std::pair< const ossia::net::node_base *, std::vector< std::string_view >>> &vec)