OSSIA
Open Scenario System for Interactive Application
Loading...
Searching...
No Matches
ossia-qt/token_request.hpp
1#pragma once
2#include <ossia/dataflow/token_request.hpp>
3
4#include <ossia-qt/time.hpp>
5
6#include <QDataStream>
7
8#include <verdigris>
9
10inline QDataStream& operator<<(QDataStream& i, const ossia::token_request& sel)
11{
12 return i << sel.prev_date << sel.date << sel.parent_duration << sel.offset << sel.speed
13 << sel.tempo << sel.signature << sel.musical_start_last_signature
14 << sel.musical_start_last_bar << sel.musical_start_position
15 << sel.musical_end_last_bar << sel.musical_end_position
16 << sel.start_discontinuous << sel.end_discontinuous;
17}
18
19inline QDataStream& operator>>(QDataStream& i, ossia::token_request& sel)
20{
21 return i >> sel.prev_date >> sel.date >> sel.parent_duration >> sel.offset >> sel.speed
22 >> sel.tempo >> sel.signature >> sel.musical_start_last_signature
23 >> sel.musical_start_last_bar >> sel.musical_start_position
24 >> sel.musical_end_last_bar >> sel.musical_end_position
25 >> sel.start_discontinuous >> sel.end_discontinuous;
26}
27
28Q_DECLARE_METATYPE(ossia::token_request)
29W_REGISTER_ARGTYPE(ossia::token_request)