X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=inline;f=source%2Flibr2c2%2Ftrackchain.h;h=7102e5659445062765793ac5d349894f36a649db;hb=3dd660ffad729fbd6e75e6401f5c7f27b9013faf;hp=e2d6176f2c1733ff093975d39ef5afe132bbebc4;hpb=1ac853ffc606b29ffd88b923ed3551ee6282afb2;p=r2c2.git diff --git a/source/libr2c2/trackchain.h b/source/libr2c2/trackchain.h index e2d6176..7102e56 100644 --- a/source/libr2c2/trackchain.h +++ b/source/libr2c2/trackchain.h @@ -23,6 +23,13 @@ public: class TrackChain: public sigc::trackable { public: + enum Direction + { + UNSPECIFIED, + UP, + DOWN + }; + typedef std::set TrackSet; protected: @@ -63,6 +70,9 @@ private: public: const TrackSet &get_tracks() const { return tracks; } bool has_track(Track &) const; + virtual TrackIter iter_for(Track &, Direction) const; + TrackIter get_end(unsigned) const; + bool is_loop() const; private: void object_removed(Object &); @@ -71,6 +81,10 @@ public: virtual Msp::DataFile::Statement save_reference() const = 0; }; + +void operator<<(Msp::LexicalConverter &, TrackChain::Direction); +void operator>>(const Msp::LexicalConverter &, TrackChain::Direction &); + } // namespace R2C2 #endif