nx_metadata_sdk 1.0 Metadata SDK

plugin_diagnostic_event.h
1 // Copyright 2018-present Network Optix, Inc. Licensed under MPL 2.0: www.mozilla.org/MPL/2.0/
2
3 #pragma once
4
5 #include <string>
6
7 #include <nx/sdk/helpers/ref_countable.h>
8 #include <nx/sdk/i_plugin_diagnostic_event.h>
9
10 namespace nx {
11 namespace sdk {
12
13 class PluginDiagnosticEvent: public RefCountable<IPluginDiagnosticEvent>
14 {
15 public:
16 PluginDiagnosticEvent(Level level, std::string caption, std::string description);
17
18 virtual Level level() const override;
19 virtual const char* caption() const override;
20 virtual const char* description() const override;
21
22 void setLevel(IPluginDiagnosticEvent::Level level);
23 void setCaption(std::string caption);
24 void setDescription(std::string description);
25
26 private:
27 Level m_level = Level::info;
28 std::string m_caption;
29 std::string m_description;
30 };
31
32 } // namespace sdk
33 } // namespace nx
nx::sdk::PluginDiagnosticEvent
Definition: plugin_diagnostic_event.h:13
nx
Definition: apple_utils.h:6
nx::sdk::RefCountable
Definition: ref_countable.h:84