sequence_store.h
1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#ifndef SEQUENCE_SEQUENCE_STORE_H
#define SEQUENCE_SEQUENCE_STORE_H
#include "sequence.h"
#include "../shared/function_store.h"
#include <stdint.h>
#include <escher.h>
namespace Sequence {
class SequenceStore : public Shared::FunctionStore {
public:
using Shared::FunctionStore::FunctionStore;
uint32_t storeChecksum() override;
Sequence * functionAtIndex(int i) override;
Sequence * activeFunctionAtIndex(int i) override;
Sequence * definedFunctionAtIndex(int i) override;
Sequence * addEmptyFunction() override;
void removeFunction(Shared::Function * f) override;
int maxNumberOfFunctions() override;
const char * firstAvailableName() override;
char symbol() const override;
void removeAll() override;
static constexpr int k_maxNumberOfSequences = 2;
static constexpr const char * k_sequenceNames[k_maxNumberOfSequences] = {
"u", "v"//, "w"
};
private:
const KDColor firstAvailableColor() override;
static constexpr KDColor k_defaultColors[k_maxNumberOfSequences] = {
Palette::Red, Palette::Blue//, Palette::YellowDark
};
Sequence m_sequences[k_maxNumberOfSequences];
};
}
#endif