lilypond-1.4.3
[lilypond.git] / flower / include / nscalar.hh
blobb68664ce14df5260bf1a2106930b45e6ed57e8d7
1 /*
2 scalar.hh -- declare
4 source file of the Flower Library
6 (c) 1997--1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
10 #ifndef SCALAR_HH
11 #define SCALAR_HH
13 struct Scalar {
14 String str_;
15 // Real real_;
16 int int_;
17 // Rational rational_;
20 struct typebits {
21 string_bit: 1;
22 int_bit:1;
24 private:
27 // operator Real();
28 operator int();
30 /** perl -like string to bool conversion.
32 // operator bool() const;
34 //Scalar (Real r) : String (r) {}
35 Scalar (int i) : String (i) {}
36 // Scalar (char c) : String (c) {}
37 Scalar (char const *c) : String (c) {}
38 Scalar (String s):String (s) {}
39 //Scalar (Rational);
40 static Scalar undefined ();
43 #endif // SCALAR_HH