nx_metadata_sdk 1.0 Metadata SDK

device_info.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 <string>
6
7 #include <nx/sdk/i_device_info.h>
8 #include <nx/sdk/helpers/ref_countable.h>
9
10 namespace nx {
11 namespace sdk {
12
13 class DeviceInfo: public nx::sdk::RefCountable<IDeviceInfo>
14 {
15 public:
16 virtual const char* id() const override;
17 virtual const char* vendor() const override;
18 virtual const char* model() const override;
19 virtual const char* firmware() const override;
20 virtual const char* name() const override;
21 virtual const char* url() const override;
22 virtual const char* login() const override;
23 virtual const char* password() const override;
24 virtual const char* sharedId() const override;
25 virtual const char* logicalId() const override;
26 virtual int channelNumber() const override;
27
28 void setId(std::string id);
29 void setVendor(std::string vendor);
30 void setModel(std::string model);
31 void setFirmware(std::string firmware);
32 void setName(std::string name);
33 void setUrl(std::string url);
34 void setLogin(std::string login);
35 void setPassword(std::string password);
36 void setSharedId(std::string sharedId);
37 void setLogicalId(std::string logicalId);
38 void setChannelNumber(int channelNumber);
39
40 private:
41 std::string m_id;
42 std::string m_vendor;
43 std::string m_model;
44 std::string m_firmware;
45 std::string m_name;
46 std::string m_url;
47 std::string m_login;
48 std::string m_password;
49 std::string m_sharedId;
50 std::string m_logicalId;
51 int m_channelNumber = 0;
52 };
53
54 } // namespace sdk
55 } // namespace nx
nx::sdk::DeviceInfo::logicalId
virtual const char * logicalId() const override
Definition: device_info.cpp:53
nx::sdk::DeviceInfo::channelNumber
virtual int channelNumber() const override
Definition: device_info.cpp:58
nx::sdk::DeviceInfo::sharedId
virtual const char * sharedId() const override
Definition: device_info.cpp:48
nx
Definition: apple_utils.h:6
nx::sdk::RefCountable
Definition: ref_countable.h:84
nx::sdk::DeviceInfo
Definition: device_info.h:13