lilypond-1.5.8
[lilypond.git] / flower / axis.cc
blob0bf70a244eca3e39b31c6c4bb79b19c152e8c647
1 /*
2 axis.cc -- implement Axis
6 (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
9 #include <assert.h>
10 #include "axes.hh"
11 #include "string.hh"
13 String
14 axis_name_str (Axis a)
16 return to_str (char (a + 'x'));
20 TODO inline these.
22 Axis
23 post_incr (Axis &a)
25 assert (a < NO_AXES);
26 Axis b= a;
27 a = Axis (int (a) + 1);
28 return b;
31 Axis
32 incr (Axis &a)
34 assert (a < NO_AXES);
35 a = Axis (int (a) + 1);
36 return a;