mirror of
https://github.com/yokemura/Magical8bitPlug2.git
synced 2025-07-17 11:04:16 -04:00
(1)Added test class (2)Use separated findSegment method
This commit is contained in:
@ -13,6 +13,15 @@
|
||||
#include "FrameSequence.h"
|
||||
#include "FrameSequenceParseErrors.h"
|
||||
|
||||
struct SegmentIndexes {
|
||||
static const int NONE = -1;
|
||||
|
||||
int releaseBlockIndex = NONE;
|
||||
int repeatStartIndex = NONE;
|
||||
int repeatEndIndex = NONE;
|
||||
ParseError error;
|
||||
};
|
||||
|
||||
struct FrameSequenceParser
|
||||
{
|
||||
/*
|
||||
@ -23,15 +32,6 @@ struct FrameSequenceParser
|
||||
/*
|
||||
Semantically private (leave them open for unit testing)
|
||||
*/
|
||||
struct SegmentIndexes {
|
||||
const int NONE = -1;
|
||||
|
||||
int releaseBlockIndex = NONE;
|
||||
int repeatStartIndex = NONE;
|
||||
int repeatEndIndex = NONE;
|
||||
ParseError error;
|
||||
};
|
||||
|
||||
std::vector<int> parseSlope (const String& input,
|
||||
int minValue,
|
||||
int maxValue,
|
||||
|
Reference in New Issue
Block a user