summaryrefslogtreecommitdiff
path: root/libs/ardour/route.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-02-14 22:47:50 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-02-14 22:47:50 +0000
commitc6740a61d766cef183525c1736ecb96496272fc2 (patch)
tree7f08a97c35bd829993227e7f993deb490fed4c91 /libs/ardour/route.cc
parentd56085060908f50be5f49021b04093596004b777 (diff)
track templates; indent fixes needed and will be forthcoming; minor fix for the curvetest hack
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@4565 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r--libs/ardour/route.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc
index bb14679970..04f3f39380 100644
--- a/libs/ardour/route.cc
+++ b/libs/ardour/route.cc
@@ -2664,3 +2664,15 @@ Route::shift (nframes64_t pos, nframes64_t frames)
}
}
}
+
+int
+Route::save_as_template (const string& path, const string& name)
+{
+ XMLNode& node (state (false));
+ XMLTree tree;
+
+ IO::set_name_in_state (*node.children().front(), name);
+
+ tree.set_root (&node);
+ return tree.write (path.c_str());
+}