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 
27  std::string toString() const;
28 
29 private:
30  Level m_level = Level::info;
31  std::string m_caption;
32  std::string m_description;
33 };
34 
35 } // namespace sdk
36 } // namespace nx
Definition: plugin_diagnostic_event.h:13
Definition: apple_utils.h:6
std::string toString() const
Definition: plugin_diagnostic_event.cpp:63
Definition: ref_countable.h:84