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
Definition: i_settings_response.h:12
Definition: i_string_map.h:10
Definition: interface.h:28
Definition: ptr.h:18
Definition: apple_utils.h:6
virtual IStringMap * getValues() const =0
static constexpr const InterfaceId * makeId(const char(&charArray)[len])
Definition: i_ref_countable.h:77
virtual IStringMap * getErrors() const =0