66 lines
956 B
C++
66 lines
956 B
C++
#ifndef _MIDISEQ_TRACKINFO_HPP_
|
|
#define _MIDISEQ_TRACKINFO_HPP_
|
|
#ifndef _COMMON_BLOCK_HPP_
|
|
#include <common/block.hpp>
|
|
#endif
|
|
|
|
class TrackInfo;
|
|
typedef Block<TrackInfo> TrackInfos;
|
|
|
|
class TrackInfo
|
|
{
|
|
public:
|
|
TrackInfo();
|
|
TrackInfo(int trackNo,int eventCount);
|
|
virtual ~TrackInfo();
|
|
int getTrackNo(void)const;
|
|
void setTrackNo(int trackNo);
|
|
int getEventCount(void)const;
|
|
void setEventCount(int eventCount);
|
|
private:
|
|
int mTrackNo;
|
|
int mEventCount;
|
|
};
|
|
|
|
inline
|
|
TrackInfo::TrackInfo()
|
|
: mTrackNo(0), mEventCount(0)
|
|
{
|
|
}
|
|
|
|
inline
|
|
TrackInfo::TrackInfo(int trackNo,int eventCount)
|
|
: mTrackNo(0), mEventCount(0)
|
|
{
|
|
}
|
|
|
|
inline
|
|
TrackInfo::~TrackInfo()
|
|
{
|
|
}
|
|
|
|
inline
|
|
int TrackInfo::getTrackNo(void)const
|
|
{
|
|
return mTrackNo;
|
|
}
|
|
|
|
inline
|
|
void TrackInfo::setTrackNo(int trackNo)
|
|
{
|
|
mTrackNo=trackNo;
|
|
}
|
|
|
|
inline
|
|
int TrackInfo::getEventCount(void)const
|
|
{
|
|
return mEventCount;
|
|
}
|
|
|
|
inline
|
|
void TrackInfo::setEventCount(int eventCount)
|
|
{
|
|
mEventCount=eventCount;
|
|
}
|
|
#endif
|