score
Home
Classes
Namespaces
Files
Loading...
Searching...
No Matches
AutomationState.hpp
1
#pragma once
2
3
#include <State/Message.hpp>
4
5
#include <Process/State/MessageNode.hpp>
6
#include <Process/State/ProcessStateDataInterface.hpp>
7
8
#include <score_plugin_automation_export.h>
9
10
#include <optional>
11
#include <vector>
12
13
class
QObject;
14
namespace
State
15
{
16
struct
Address;
17
}
// namespace score
18
19
namespace
Automation
20
{
21
class
ProcessModel;
22
class
SCORE_PLUGIN_AUTOMATION_TEST_EXPORT
ProcessState
final :
public
ProcessStateDataInterface
23
{
24
public
:
25
// watchedPoint : something between 0 and 1
26
ProcessState
(
ProcessModel
& process,
double
watchedPoint, QObject* parent);
27
28
ProcessModel
& process()
const
;
29
30
::State::Message
message()
const
;
31
double
point()
const
;
32
33
std::vector<State::AddressAccessor> matchingAddresses()
override
;
34
std::vector<State::AddressAccessor> takenOverAddresses()
const override
;
35
::State::MessageList messages()
const override
;
36
::State::MessageList
37
setMessages(const ::State::MessageList&,
const
Process::MessageNode
&)
override
;
38
41
void
updateMessages();
42
43
private
:
44
double
m_point{};
45
std::optional<::State::MessageList> m_announced;
46
};
47
}
Automation::ProcessModel
Definition
AutomationModel.hpp:36
Automation::ProcessState
Definition
AutomationState.hpp:23
ProcessStateDataInterface
Definition
ProcessStateDataInterface.hpp:24
TreeNode< StateNodeData >
Automation
Namespace related to the Automation process.
Definition
AutomationColors.cpp:8
State
Utilities for OSSIA data structures.
Definition
DeviceInterface.hpp:35
State::Message
The Message struct.
Definition
Message.hpp:15