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