]> git.tdb.fi Git - r2c2.git/blob - source/libr2c2/zone.h
Unify TrackChain names
[r2c2.git] / source / libr2c2 / zone.h
1 #ifndef LIBR2C2_ZONE_H_
2 #define LIBR2C2_ZONE_H_
3
4 #include <set>
5 #include <string>
6 #include <msp/datafile/objectloader.h>
7 #include "trackchain.h"
8
9 namespace R2C2 {
10
11 class Layout;
12 class Track;
13
14 class Zone: public TrackChain
15 {
16 public:
17         class Loader: public Msp::DataFile::ObjectLoader<Zone>
18         {
19         public:
20                 Loader(Zone &);
21         private:
22                 void block(unsigned);
23         };
24
25 private:
26         std::string group;
27         std::string qualifier;
28         unsigned number;
29
30 public:
31         Zone(Layout &);
32         ~Zone();
33
34         virtual void set_name(const std::string &);
35         void set_name(const std::string &, const std::string &, unsigned);
36         const std::string &get_group() const { return group; }
37         const std::string &get_qualifier() const { return qualifier; }
38         unsigned get_number() const { return number; }
39
40         void save(std::list<Msp::DataFile::Statement> &) const;
41 };
42
43 } // namespace R2C2
44
45 #endif