summaryrefslogtreecommitdiff
path: root/libs/ardour/bundle.cc
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-01-29 12:40:57 +0000
committerCarl Hetherington <carl@carlh.net>2011-01-29 12:40:57 +0000
commita052488c002f21839ca7babb855a481a86eba648 (patch)
tree60d4160d324aab4916faee63faeec998dbdddee8 /libs/ardour/bundle.cc
parentce03319dd113b8a6c109414413ad01550f774d75 (diff)
Add operator<< for bundles.
git-svn-id: svn://localhost/ardour2/branches/3.0@8606 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/bundle.cc')
-rw-r--r--libs/ardour/bundle.cc15
1 files changed, 15 insertions, 0 deletions
diff --git a/libs/ardour/bundle.cc b/libs/ardour/bundle.cc
index 6037bfc7e9..e42239a1ea 100644
--- a/libs/ardour/bundle.cc
+++ b/libs/ardour/bundle.cc
@@ -496,3 +496,18 @@ Bundle::channel_type (uint32_t c) const
return _channel[c].type;
}
+ostream &
+operator<< (ostream& os, Bundle const & b)
+{
+ os << "BUNDLE " << b.nchannels() << " channels: ";
+ for (uint32_t i = 0; i < b.nchannels().n_total(); ++i) {
+ os << "( ";
+ Bundle::PortList const & pl = b.channel_ports (i);
+ for (Bundle::PortList::const_iterator j = pl.begin(); j != pl.end(); ++j) {
+ os << *j << " ";
+ }
+ os << ") ";
+ }
+
+ return os;
+}