Loading...
Searching...
No Matches
LocalTreeDocumentPlugin.hpp
1#pragma once
2
3#include <LocalTree/Device/LocalDevice.hpp>
4
5#include <score/plugins/documentdelegate/plugin/DocumentPlugin.hpp>
6#include <score/tools/Metadata.hpp>
7
8#include <score_plugin_engine_export.h>
9namespace score
10{
11class ModelMetadata;
12}
13
14namespace Scenario
15{
16class ProcessModel;
17class IntervalModel;
18class EventModel;
19class TimeSyncModel;
20class StateModel;
21}
22
23namespace LocalTree
24{
25class Interval;
26class SCORE_PLUGIN_ENGINE_EXPORT DocumentPlugin final : public score::DocumentPlugin
27{
28public:
29 DocumentPlugin(const score::DocumentContext& doc, QObject* parent);
30
32
33 void init();
34
35 void on_documentClosing() override;
36 ossia::net::device_base& device() { return *m_localDevice; }
37 const ossia::net::device_base& device() const { return *m_localDevice; }
38
39 Protocols::LocalDevice& localDevice() { return m_localDeviceWrapper; }
40
41private:
42 void create();
43 void cleanup();
44
45 Interval* m_root{};
46 std::unique_ptr<ossia::net::device_base> m_localDevice;
47 Protocols::LocalDevice m_localDeviceWrapper;
48};
49}
Definition LocalTreeDocumentPlugin.hpp:27
Definition LocalTree/IntervalComponent.hpp:48
Definition LocalDevice.hpp:25
Extend a document with custom data and systems.
Definition DocumentPluginBase.hpp:24
Local tree provides a way to extend the tree given through the Engine::Network::LocalDevice.
Definition BaseCallbackWrapper.hpp:9
Main plug-in of score.
Definition score-plugin-dataflow/Dataflow/PortItem.hpp:13
Base toolkit upon which the software is built.
Definition Application.cpp:90
Definition DocumentContext.hpp:18