summaryrefslogtreecommitdiff
path: root/scores.cc
blob: 04efd6e4b1a7ff388ba21052bd0b94147b35a2d0 (about) (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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;
}