Diff to HTML by rtfpessoa

Files changed (4) hide show
  1. {baseline → generated}/Debug/ThunderInterfaces/definitions/generated/JMessageControl.h +0 -126
  2. {baseline → generated}/Debug/ThunderInterfaces/definitions/generated/JsonData_MessageControl.h +0 -134
  3. {baseline → generated}/Debug/ThunderInterfaces/definitions/generated/JsonEnum_MessageControl.cpp +0 -22
  4. {baseline → generated}/Debug/ThunderInterfaces/definitions/generated/json_IMessageControl.h +0 -7
{baseline → generated}/Debug/ThunderInterfaces/definitions/generated/JMessageControl.h RENAMED
@@ -1,126 +0,0 @@
1
- // Generated automatically from 'IMessageControl.h'. DO NOT EDIT.
2
-
3
- #pragma once
4
- #include "Module.h"
5
- #include "JsonData_MessageControl.h"
6
- #include <interfaces/IMessageControl.h>
7
-
8
- namespace Thunder {
9
-
10
- namespace Exchange {
11
-
12
- namespace JMessageControl {
13
-
14
- namespace Version {
15
-
16
- constexpr uint8_t Major = 1;
17
- constexpr uint8_t Minor = 0;
18
- constexpr uint8_t Patch = 0;
19
-
20
- } // namespace Version
21
-
22
- PUSH_WARNING(DISABLE_WARNING_UNUSED_FUNCTIONS)
23
- PUSH_WARNING(DISABLE_WARNING_DEPRECATED_USE)
24
- PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
25
-
26
- template<typename MODULE>
27
- static void Register(MODULE& _module__, IMessageControl* _implementation__)
28
- {
29
- ASSERT(_implementation__ != nullptr);
30
-
31
- _module__.PluginHost::JSONRPC::RegisterVersion(_T("JMessageControl"), Version::Major, Version::Minor, Version::Patch);
32
-
33
- // Register methods and properties...
34
-
35
- // Method: 'enable' - Enables/disables a message control
36
- _module__.PluginHost::JSONRPC::template Register<JsonData::MessageControl::ControlInfo, void>(_T("enable"),
37
- [_implementation__](const JsonData::MessageControl::ControlInfo& params) -> uint32_t {
38
- uint32_t _errorCode__ = Core::ERROR_NONE;
39
-
40
- if ((params.IsSet() == false) || (params.IsDataValid() == false)) {
41
- _errorCode__ = Core::ERROR_BAD_REQUEST;
42
- }
43
- else {
44
- const Exchange::IMessageControl::messagetype _type_{params.Type};
45
- const string _category_{params.Category};
46
- const string _module_{params.Module};
47
- const bool _enabled_{params.Enabled};
48
-
49
- _errorCode__ = _implementation__->Enable(_type_, _category_, _module_, _enabled_);
50
-
51
- }
52
-
53
- return (_errorCode__);
54
- });
55
-
56
- // Property: 'modules' - Retrieves a list of current message modules (r/o)
57
- _module__.PluginHost::JSONRPC::template Register<void, Core::JSON::ArrayType<Core::JSON::String>>(_T("modules"),
58
- [_implementation__](Core::JSON::ArrayType<Core::JSON::String>& result) -> uint32_t {
59
- uint32_t _errorCode__ = Core::ERROR_NONE;
60
-
61
- ::Thunder::RPC::IIteratorType<string, RPC::ID_STRINGITERATOR>* _result_{};
62
-
63
- _errorCode__ = _implementation__->Modules(_result_);
64
-
65
- if (_errorCode__ == Core::ERROR_NONE) {
66
- result.Set(true);
67
-
68
- if (_result_ != nullptr) {
69
- string _resultItem__{};
70
- while (_result_->Next(_resultItem__) == true) { result.Add() = _resultItem__; }
71
- _result_->Release();
72
- }
73
- }
74
-
75
- return (_errorCode__);
76
- });
77
-
78
- // Indexed Property: 'controls' - Retrieves a list of current message controls for a specific module (r/o)
79
- _module__.PluginHost::JSONRPC::template Register<void, Core::JSON::ArrayType<JsonData::MessageControl::ControlInfo>, std::function<uint32_t(const string&, Core::JSON::ArrayType<JsonData::MessageControl::ControlInfo>&)>>(_T("controls"),
80
- [_implementation__](const string& module, Core::JSON::ArrayType<JsonData::MessageControl::ControlInfo>& result) -> uint32_t {
81
- uint32_t _errorCode__ = Core::ERROR_NONE;
82
-
83
- if (module.empty() == true) {
84
- _errorCode__ = Core::ERROR_BAD_REQUEST;
85
- }
86
-
87
- if (_errorCode__ == Core::ERROR_NONE) {
88
- ::Thunder::RPC::IIteratorType<IMessageControl::Control, ID_MESSAGE_CONTROL_ITERATOR>* _result_{};
89
-
90
- _errorCode__ = _implementation__->Controls(module, _result_);
91
-
92
- if (_errorCode__ == Core::ERROR_NONE) {
93
- result.Set(true);
94
-
95
- if (_result_ != nullptr) {
96
- Exchange::IMessageControl::Control _resultItem__{};
97
- while (_result_->Next(_resultItem__) == true) { result.Add() = _resultItem__; }
98
- _result_->Release();
99
- }
100
- }
101
- }
102
-
103
- return (_errorCode__);
104
- });
105
-
106
- }
107
-
108
- template<typename MODULE>
109
- static void Unregister(MODULE& _module__)
110
- {
111
- // Unregister methods and properties...
112
- _module__.PluginHost::JSONRPC::Unregister(_T("enable"));
113
- _module__.PluginHost::JSONRPC::Unregister(_T("modules"));
114
- _module__.PluginHost::JSONRPC::Unregister(_T("controls"));
115
- }
116
-
117
- POP_WARNING()
118
- POP_WARNING()
119
- POP_WARNING()
120
-
121
- } // namespace JMessageControl
122
-
123
- } // namespace Exchange
124
-
125
- } // namespace Thunder
126
-
{baseline → generated}/Debug/ThunderInterfaces/definitions/generated/JsonData_MessageControl.h RENAMED
@@ -1,134 +0,0 @@
1
- // C++ types for MessageControl API.
2
- // Generated automatically from 'IMessageControl.h'. DO NOT EDIT.
3
-
4
- // Note: This code is inherently not thread safe. If required, proper synchronisation must be added.
5
-
6
- #pragma once
7
-
8
- #include <core/JSON.h>
9
- #include <interfaces/IMessageControl.h>
10
-
11
- namespace Thunder {
12
-
13
- namespace JsonData {
14
-
15
- PUSH_WARNING(DISABLE_WARNING_TYPE_LIMITS)
16
-
17
- namespace MessageControl {
18
-
19
- // Common classes
20
- //
21
-
22
- class ControlInfo : public Core::JSON::Container {
23
- public:
24
- ControlInfo()
25
- : Core::JSON::Container()
26
- {
27
- _Init();
28
- }
29
-
30
- ControlInfo(const ControlInfo& _other)
31
- : Core::JSON::Container()
32
- , Type(_other.Type)
33
- , Category(_other.Category)
34
- , Module(_other.Module)
35
- , Enabled(_other.Enabled)
36
- {
37
- _Init();
38
- }
39
-
40
- ControlInfo(ControlInfo&& _other) noexcept
41
- : Core::JSON::Container()
42
- , Type(std::move(_other.Type))
43
- , Category(std::move(_other.Category))
44
- , Module(std::move(_other.Module))
45
- , Enabled(std::move(_other.Enabled))
46
- {
47
- _Init();
48
- }
49
-
50
- ControlInfo(const Exchange::IMessageControl::Control& _other)
51
- : Core::JSON::Container()
52
- {
53
- Type = _other.type;
54
- Category = _other.category;
55
- Module = _other.module;
56
- Enabled = _other.enabled;
57
- _Init();
58
- }
59
-
60
- ControlInfo& operator=(const ControlInfo& _rhs)
61
- {
62
- Type = _rhs.Type;
63
- Category = _rhs.Category;
64
- Module = _rhs.Module;
65
- Enabled = _rhs.Enabled;
66
- return (*this);
67
- }
68
-
69
- ControlInfo& operator=(ControlInfo&& _rhs) noexcept
70
- {
71
- Type = std::move(_rhs.Type);
72
- Category = std::move(_rhs.Category);
73
- Module = std::move(_rhs.Module);
74
- Enabled = std::move(_rhs.Enabled);
75
- return (*this);
76
- }
77
-
78
- ControlInfo& operator=(const Exchange::IMessageControl::Control& _rhs)
79
- {
80
- Type = _rhs.type;
81
- Category = _rhs.category;
82
- Module = _rhs.module;
83
- Enabled = _rhs.enabled;
84
- return (*this);
85
- }
86
-
87
- operator Exchange::IMessageControl::Control() const
88
- {
89
- Exchange::IMessageControl::Control _value{};
90
- _value.type = Type;
91
- _value.category = Category;
92
- _value.module = Module;
93
- _value.enabled = Enabled;
94
- return (_value);
95
- }
96
-
97
- ~ControlInfo() = default;
98
-
99
- public:
100
- bool IsDataValid() const
101
- {
102
- return ((Type.IsSet() == true) && (Category.IsSet() == true) && (Module.IsSet() == true) && (Enabled.IsSet() == true));
103
- }
104
-
105
- private:
106
- void _Init()
107
- {
108
- Add(_T("type"), &Type);
109
- Add(_T("category"), &Category);
110
- Add(_T("module"), &Module);
111
- Add(_T("enabled"), &Enabled);
112
- }
113
-
114
- public:
115
- Core::JSON::EnumType<Exchange::IMessageControl::messagetype> Type; // Type of message
116
- Core::JSON::String Category; // Name of the message category
117
- Core::JSON::String Module; // Name of the module the message is originating from
118
- Core::JSON::Boolean Enabled; // Denotes if the control is enabled (true) or disabled (false)
119
- }; // class ControlInfo
120
-
121
- // Method params/result classes
122
- //
123
-
124
- } // namespace MessageControl
125
-
126
- POP_WARNING()
127
-
128
- } // namespace JsonData
129
-
130
- // Enum conversion handlers
131
- ENUM_CONVERSION_HANDLER(Exchange::IMessageControl::messagetype)
132
-
133
- }
134
-
{baseline → generated}/Debug/ThunderInterfaces/definitions/generated/JsonEnum_MessageControl.cpp RENAMED
@@ -1,22 +0,0 @@
1
- // Enumeration code for MessageControl API.
2
- // Generated automatically from 'IMessageControl.h'.
3
-
4
- #include <core/Enumerate.h>
5
-
6
- #include "definitions.h"
7
- #include <interfaces/IMessageControl.h>
8
- #include "JsonData_MessageControl.h"
9
-
10
- namespace Thunder {
11
-
12
- ENUM_CONVERSION_BEGIN(Exchange::IMessageControl::messagetype)
13
- { Exchange::IMessageControl::messagetype::INVALID, _TXT("Invalid") },
14
- { Exchange::IMessageControl::messagetype::TRACING, _TXT("Tracing") },
15
- { Exchange::IMessageControl::messagetype::LOGGING, _TXT("Logging") },
16
- { Exchange::IMessageControl::messagetype::REPORTING, _TXT("Reporting") },
17
- { Exchange::IMessageControl::messagetype::OPERATIONAL_STREAM, _TXT("OperationalStream") },
18
- { Exchange::IMessageControl::messagetype::ASSERT, _TXT("Assert") },
19
- { Exchange::IMessageControl::messagetype::TELEMETRY, _TXT("Telemetry") },
20
- ENUM_CONVERSION_END(Exchange::IMessageControl::messagetype)
21
-
22
- }
{baseline → generated}/Debug/ThunderInterfaces/definitions/generated/json_IMessageControl.h RENAMED
@@ -1,7 +0,0 @@
1
- // IMessageControl API
2
- // Generated automatically. DO NOT EDIT.
3
-
4
- #pragma once
5
-
6
- #include "JsonData_MessageControl.h"
7
- #include "JMessageControl.h"