summaryrefslogtreecommitdiff
path: root/src/scores.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/scores.cc')
-rw-r--r--src/scores.cc34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/scores.cc b/src/scores.cc
new file mode 100644
index 0000000000..04efd6e4b1
--- /dev/null
+++ b/src/scores.cc
@@ -0,0 +1,34 @@
+#include "main.hh"
+#include "score.hh"
+#include "string.hh"
+
+static svec<Score*> sv;
+
+static String outfn="lelie.uit";
+
+// todo: check we don't overwrite default output.
+
+void
+do_scores()
+{
+ for (int i=0; i < sv.sz(); i++) {
+ sv[i]->process();
+ sv[i]->output(outfn);
+ delete sv[i];
+ sv[i] =0;
+ }
+}
+
+void
+add_score(Score * s)
+{
+ sv.add(s);
+}
+
+
+void
+set_default_output(String s)
+{
+ outfn = s;
+}
+