1 #ifndef LIBR2C2_ZONE_H_
2 #define LIBR2C2_ZONE_H_
6 #include <msp/datafile/objectloader.h>
7 #include "trackchain.h"
14 class Zone: public TrackChain
17 class Loader: public Msp::DataFile::ObjectLoader<Zone>
22 virtual void finish();
24 void direction_hint(unsigned, Direction);
29 std::string qualifier;
37 virtual void set_name(const std::string &);
38 void set_name(const std::string &, const std::string &, unsigned);
42 const std::string &get_group() const { return group; }
43 const std::string &get_qualifier() const { return qualifier; }
44 unsigned get_number() const { return number; }
46 void set_direction_towards(Track &, Direction);
47 void clear_direction();
48 virtual TrackIter iter_for(Track &, Direction) const;
50 TrackIter next_iter(const TrackIter &) const;
52 virtual TrackIter get_end(Direction) const;
54 void save(std::list<Msp::DataFile::Statement> &) const;
55 virtual Msp::DataFile::Statement save_reference() const;