Getting closer to a subanalysis mode
[mussa.git] / alg / sequence_location.hpp
1 #ifndef _SEQUENCE_LOCATION_H_
2 #define _SEQUENCE_LOCATION_H_
3
4 #include <boost/shared_ptr.hpp>
5 #include "alg/sequence.hpp"
6
7 //! convenience structure for holding selected track segments
8 class SequenceLocation {
9   public:
10     SequenceLocation(boost::shared_ptr<Sequence> s, int l, int c);
11     SequenceLocation(const Sequence& s, int l, int c);
12     SequenceLocation(const SequenceLocation& );
13     SequenceLocation& operator=(const SequenceLocation&);
14
15     const Sequence& getSequence() const;
16     void setLeft(int l);
17     int getLeft() const;
18     void setCount(int c);
19     int getCount() const ;
20     void setRight(int r);
21     int getRight() const;
22
23   private:
24     boost::shared_ptr<Sequence> sequence;
25     int left;
26     int count;
27   };
28 #endif