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_map.h>
8
9 namespace nx {
10 namespace sdk {
11
12 class ISettingsResponse: public Interface<ISettingsResponse>
13 {
14 public:
15 static auto interfaceId() { return makeId("nx::sdk::ISettingsResponse"); }
16
20 protected: virtual IStringMap* getValues() const = 0;
21 public: Ptr<IStringMap> values() const { return toPtr(getValues()); }
22
27 protected: virtual IStringMap* getErrors() const = 0;
28 public: Ptr<IStringMap> errors() const { return toPtr(getErrors()); }
29 };
30
31 } // namespace sdk
32 } // namespace nx
nx::sdk::ISettingsResponse
Definition: i_settings_response.h:12
nx::sdk::IStringMap
Definition: i_string_map.h:10
nx::sdk::Interface
Definition: interface.h:28
nx::sdk::Ptr
Definition: ptr.h:18
nx
Definition: apple_utils.h:6
nx::sdk::ISettingsResponse::getValues
virtual IStringMap * getValues() const =0
nx::sdk::IRefCountable::makeId
static constexpr const InterfaceId * makeId(const char(&charArray)[len])
Definition: i_ref_countable.h:78
nx::sdk::ISettingsResponse::getErrors
virtual IStringMap * getErrors() const =0