mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 15:25:01 +01:00
add PBD::PropertyChange::dump (std::ostream&) to make it easier to see what changed
This commit is contained in:
parent
f58b8e3cb4
commit
baf2323798
1 changed files with 3 additions and 0 deletions
|
|
@ -24,6 +24,7 @@
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <set>
|
#include <set>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
|
#include <ostream>
|
||||||
|
|
||||||
#include "pbd/libpbd_visibility.h"
|
#include "pbd/libpbd_visibility.h"
|
||||||
#include "pbd/xml++.h"
|
#include "pbd/xml++.h"
|
||||||
|
|
@ -79,6 +80,8 @@ public:
|
||||||
void add (PropertyID id) { insert (id); }
|
void add (PropertyID id) { insert (id); }
|
||||||
void add (const PropertyChange& other) { insert (other.begin (), other.end ()); }
|
void add (const PropertyChange& other) { insert (other.begin (), other.end ()); }
|
||||||
template<typename T> void add (PropertyDescriptor<T> p);
|
template<typename T> void add (PropertyDescriptor<T> p);
|
||||||
|
|
||||||
|
void dump (std::ostream& out) const { int n = 0; for (auto const & what_changed : *this) { if (n > 0) { out << ',' ; } out << g_quark_to_string (what_changed); ++n; } }
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Base (non template) part of Property
|
/** Base (non template) part of Property
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue