Remove old dvd test code.
[dcpomatic.git] / hacks / pretty-c++ / src / ratio.cc
1 #include <sstream>
2 #include "ratio.h"
3
4 using namespace std;
5
6 Ratio::Ratio ()
7         : _ratio (1.85)
8 {
9
10 }
11
12 Ratio::Ratio (float r)
13         : _ratio (r)
14 {
15
16 }
17
18 string
19 Ratio::name () const
20 {
21         switch (_ratio) {
22         case 1.85:
23                 return "Flat (1.85:1)";
24                 break;
25         case 2.39:
26                 return "Scope (2.39:1)";
27                 break;
28         }
29
30         stringstream s;
31         s << _ratio;
32         return s.str ();
33 }
34
35