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/i_string.h>
6 #include <nx/sdk/i_string_map.h>
7 #include <nx/sdk/interface.h>
8
9 namespace nx::sdk {
10
11 class ISettingsResponse0: public Interface<ISettingsResponse0>
12 {
13 public:
14 static auto interfaceId() { return makeId("nx::sdk::ISettingsResponse"); }
15
17 protected: virtual IStringMap* getValues() const = 0;
22 public: Ptr<IStringMap> values() const { return Ptr(getValues()); }
23
25 protected: virtual IStringMap* getErrors() const = 0;
31 public: Ptr<IStringMap> errors() const { return Ptr(getErrors()); }
32 };
33
40 class ISettingsResponse: public Interface<ISettingsResponse, ISettingsResponse0>
41 {
42 public:
43 static auto interfaceId() { return makeId("nx::sdk::ISettingsResponse1"); }
44
46 protected: virtual IString* getModel() const = 0;
52 public: Ptr<IString> model() const { return Ptr(getModel()); }
53 };
54 using ISettingsResponse1 = ISettingsResponse;
55
56 } // namespace nx::sdk
nx::sdk::ISettingsResponse::getModel
virtual IString * getModel() const =0
nx::sdk::ISettingsResponse
Definition: i_settings_response.h:40
nx::sdk::IStringMap
Definition: i_string_map.h:9
nx::sdk::ISettingsResponse::model
Ptr< IString > model() const
Definition: i_settings_response.h:52
nx::sdk::Interface
Definition: interface.h:48
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:9
nx::sdk::ISettingsResponse0
Definition: i_settings_response.h:11
nx::sdk
Definition: device_agent.h:12
nx::sdk::ISettingsResponse0::values
Ptr< IStringMap > values() const
Definition: i_settings_response.h:22
nx::sdk::ISettingsResponse0::errors
Ptr< IStringMap > errors() const
Definition: i_settings_response.h:31
nx::sdk::IRefCountable::makeId
static const InterfaceId * makeId(const char(&charArray)[len])
Definition: i_ref_countable.h:77