2021-09-14 21:02:23 +02:00
|
|
|
#include "classicnote.h"
|
|
|
|
|
2021-09-28 05:48:06 +02:00
|
|
|
ClassicNote::ClassicNote(NoteInitializer &&init) :
|
2021-09-14 21:02:23 +02:00
|
|
|
Note(init.perfect_offset),
|
2021-09-28 05:48:06 +02:00
|
|
|
_state(State::NONE),
|
|
|
|
_context(init.context)
|
|
|
|
{}
|
2021-09-14 21:02:23 +02:00
|
|
|
|
2022-02-06 02:33:09 +01:00
|
|
|
void ClassicNote::setState(ClassicNote::State state) noexcept
|
2021-09-14 21:02:23 +02:00
|
|
|
{
|
2022-02-06 02:33:09 +01:00
|
|
|
_state = state;
|
2021-09-14 21:02:23 +02:00
|
|
|
}
|
|
|
|
|
2022-02-06 02:33:09 +01:00
|
|
|
auto ClassicNote::getState() const noexcept -> State
|
2021-09-14 21:02:23 +02:00
|
|
|
{
|
2022-02-06 02:33:09 +01:00
|
|
|
return _state;
|
2021-09-14 21:02:23 +02:00
|
|
|
}
|