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 <vector>
9 
10 class QObject;
11 namespace State
12 {
13 struct Address;
14 } // namespace score
15 
16 namespace Automation
17 {
18 class ProcessModel;
20 {
21 public:
22  // watchedPoint : something between 0 and 1
23  ProcessState(ProcessModel& process, double watchedPoint, QObject* parent);
24 
25  ProcessModel& process() const;
26 
27  ::State::Message message() const;
28  double point() const;
29 
30  std::vector<State::AddressAccessor> matchingAddresses() override;
31  ::State::MessageList messages() const override;
32  ::State::MessageList
33  setMessages(const ::State::MessageList&, const Process::MessageNode&) override;
34 
35 private:
36  double m_point{};
37 };
38 }
Definition: AutomationModel.hpp:36
Definition: AutomationState.hpp:20
::State::MessageList messages() const override
messages The current messages in this point of the process.
Definition: AutomationState.cpp:100
std::vector< State::AddressAccessor > matchingAddresses() override
matchingAddresses The addresses that correspond to this state.
Definition: AutomationState.cpp:92
Definition: ProcessStateDataInterface.hpp:24
Namespace related to the Automation process.
Definition: AutomationColors.cpp:8
Utilities for OSSIA data structures.
Definition: DeviceInterface.hpp:33
The Message struct.
Definition: Message.hpp:15