Add interpolation and operator<<
This commit is contained in:
parent
927164e23e
commit
026c791c79
@ -1,11 +1,37 @@
|
||||
#include <string>
|
||||
|
||||
#include <QDebug>
|
||||
|
||||
class ATBDuration
|
||||
{
|
||||
public:
|
||||
explicit ATBDuration()
|
||||
: pun_id(0)
|
||||
, pun_label("")
|
||||
, pun_duration(0)
|
||||
, pun_duration_min(0)
|
||||
, pun_duration_max(0)
|
||||
, pun_interpolation_id(-1) {
|
||||
}
|
||||
|
||||
friend QDebug operator<<(QDebug debug, ATBDuration const &td) {
|
||||
QDebugStateSaver saver(debug);
|
||||
|
||||
debug.nospace()
|
||||
<< " pun_id: " << td.pun_id << "\n"
|
||||
<< " pun_label: " << QString::fromStdString(td.pun_label) << "\n"
|
||||
<< " pun_duration: " << td.pun_duration << "\n"
|
||||
<< " pun_duration_min: " << td.pun_duration_min << "\n"
|
||||
<< " pun_duration_max: " << td.pun_duration_max << "\n"
|
||||
<< "pun_interpolation_id: " << td.pun_interpolation_id << "\n";
|
||||
|
||||
return debug;
|
||||
}
|
||||
|
||||
int pun_id;
|
||||
std::string pun_label;
|
||||
int pun_duration;
|
||||
int pun_duration_min;
|
||||
int pun_duration_max;
|
||||
int pun_interpolation_id;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user