nx_metadata_sdk 1.0 Metadata SDK

i_settings_response.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 <nx/sdk/interface.h>
6
7 #include <nx/sdk/i_string.h>
8 #include <nx/sdk/i_string_map.h>
9
10 namespace nx {
11 namespace sdk {
12
13 class ISettingsResponse0: public Interface<ISettingsResponse0>
14 {
15 public:
16 static auto interfaceId() { return makeId("nx::sdk::ISettingsResponse"); }
17
19 protected: virtual IStringMap* getValues() const = 0;
24 public: Ptr<IStringMap> values() const { return toPtr(getValues()); }
25
27 protected: virtual IStringMap* getErrors() const = 0;
33 public: Ptr<IStringMap> errors() const { return toPtr(getErrors()); }
34 };
35
36 class ISettingsResponse: public Interface<ISettingsResponse, ISettingsResponse0>
37 {
38 public:
39 static auto interfaceId() { return makeId("nx::sdk::ISettingsResponse1"); }
40
42 protected: virtual IString* getModel() const = 0;
48 public: Ptr<IString> model() const { return toPtr(getModel()); }
49 };
50 using ISettingsResponse1 = ISettingsResponse;
51
52 } // namespace sdk
53 } // namespace nx
nx::sdk::ISettingsResponse::getModel
virtual IString * getModel() const =0
nx::sdk::ISettingsResponse
Definition: i_settings_response.h:36
nx::sdk::IStringMap
Definition: i_string_map.h:10
nx::sdk::ISettingsResponse::model
Ptr< IString > model() const
Definition: i_settings_response.h:48
nx::sdk::Interface
Definition: interface.h:49
nx::sdk::ISettingsResponse0::getErrors
virtual IStringMap * getErrors() const =0
nx::sdk::Ptr
Definition: ptr.h:18
nx::sdk::ISettingsResponse0::getValues
virtual IStringMap * getValues() const =0
nx::sdk::IString
Definition: i_string.h:10
nx::sdk::ISettingsResponse0
Definition: i_settings_response.h:13
nx
Definition: apple_utils.h:6
nx::sdk::ISettingsResponse0::values
Ptr< IStringMap > values() const
Definition: i_settings_response.h:24
nx::sdk::IRefCountable::makeId
static constexpr const InterfaceId * makeId(const char(&charArray)[len])
Definition: i_ref_countable.h:77
nx::sdk::ISettingsResponse0::errors
Ptr< IStringMap > errors() const
Definition: i_settings_response.h:33