summaryrefslogtreecommitdiff
path: root/lily/script-def.cc
blob: 53bdd121efa41af4c2d7e87fc84c5e2c5a11e683 (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
#include "debug.hh"
#include "script-def.hh"

Script_def::Script_def(String idx,  int stem, int staff ,bool invert)
{
    symidx = idx ;
    stemdir =stem;
    staffdir = staff;
    invertsym = invert;
}
void
Script_def::print() const
{
    mtor << "Script_def{ idx: " << symidx 
	 << " direction, stem: " << stemdir << " staff : " << staffdir << "}\n";
}
int
Script_def::compare(Script_def const & c)
{
    return !(symidx == c.symidx &&
	stemdir == c.stemdir&&
	staffdir == c.staffdir&&
	invertsym == c.invertsym);
}