]> git.tdb.fi Git - r2c2.git/blob - source/libr2c2/catalogue.h
Rework article numbers
[r2c2.git] / source / libr2c2 / catalogue.h
1 #ifndef LIBR2C2_CATALOGUE_H_
2 #define LIBR2C2_CATALOGUE_H_
3
4 #include <map>
5 #include <msp/datafile/collection.h>
6 #include "articlenumber.h"
7 #include "layout.h"
8 #include "trackappearance.h"
9
10 namespace R2C2 {
11
12 class ObjectType;
13
14 class Catalogue: public Msp::DataFile::Collection
15 {
16 public:
17         class Loader: public Msp::DataFile::Collection::Loader
18         {
19         private:
20                 Catalogue &cat;
21
22         public:
23                 Loader(Catalogue &);
24         private:
25                 void layout();
26                 void scale(float, float);
27         };
28
29 private:
30         float scale;
31         Layout layout;
32
33 public:
34         Catalogue();
35
36         float get_scale() const { return scale; }
37         Layout &get_layout() { return layout; }
38 };
39
40 } // namespace R2C2
41
42 #endif