| 49 | FrameList::Parser< FrameRange > FrameRange::g_parserRegistrar; |
| 50 | |
| 51 | FrameRange::FrameRange( Frame start, Frame end, Frame step ) : m_start( start ), m_end( end ), m_step( step ) |
| 52 | { |
| 53 | if ( start > end ) |
| 54 | { |
| 55 | throw Exception( "FrameRange start must be less than or equal to end." ); |
| 56 | } |
| 57 | if ( step == 0 ) |
| 58 | { |
| 59 | throw Exception( "FrameRange step cannot be zero" ); |
| 60 | } |
| 61 | if ( step < 0 ) |
| 62 | { |
| 63 | throw Exception( "FrameRange step cannot be negative. Consider using the reverse suffix instead." ); |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | FrameRange::~FrameRange() |
| 68 | { |
no outgoing calls