Digital Barriers
Digital Barriers EdgeVis Decoder SDK
Loading...
Searching...
No Matches
ServerInfo.h
Go to the documentation of this file.
1
2// Copyright (c) 2016 Digital Barriers
4
17
18#pragma once
19
20#include <string>
21#include "EdgeVisSDK.h"
22#include "Pimpl.h"
23#include "OpResult.h"
24
25namespace EdgeVisDecoderSDK
26{
27 class ServerInfoImpl;
28
29 class ServerInfo : public EdgeVisSDKPimpl<ServerInfoImpl>
30 {
31 public:
32 DB_EDGEVIS_SDK ServerInfo();
33 ServerInfo(
34 const std::string& address,
35 const std::string& name,
36 const std::string& version,
37 const std::string& uniqueID,
38 OpResult result = OR_Unknown);
39 EdgeVisSDKPimplWeakConstructor(ServerInfo);
40 DB_EDGEVIS_SDK virtual ~ServerInfo();
41
47 DB_EDGEVIS_SDK std::wstring Address() const;
48
54 DB_EDGEVIS_SDK bool SetIPAddress(const std::wstring& ip_address);
55
61 DB_EDGEVIS_SDK std::wstring IPAddress() const;
62
68 DB_EDGEVIS_SDK std::wstring Name() const;
69
75 DB_EDGEVIS_SDK std::wstring Version() const;
76
83 DB_EDGEVIS_SDK std::wstring UniqueID() const;
84
94 DB_EDGEVIS_SDK OpResult GetResult() const;
95
102 DB_EDGEVIS_SDK bool HasClientCamsFeature() const;
103
109 DB_EDGEVIS_SDK bool HasDevicePasswordFeature() const;
110
116 DB_EDGEVIS_SDK std::wstring GetServerBaseURL() const;
117
125 DB_EDGEVIS_SDK std::vector<int32_t> SupportedStreamProfileAPILevels() const;
126 };
127}
OpResult
Result of an operation.
Definition OpResult.h:26
@ OR_Unknown
Unknown error.
Definition OpResult.h:118
DB_EDGEVIS_SDK std::wstring Name() const
Returns the name of the server.
DB_EDGEVIS_SDK std::wstring Address() const
Returns the address of the server.
DB_EDGEVIS_SDK std::vector< int32_t > SupportedStreamProfileAPILevels() const
Check the stream profile API levels supported on this server.
DB_EDGEVIS_SDK bool HasClientCamsFeature() const
Check if this server supports CAMS rule builder in client applications.
DB_EDGEVIS_SDK std::wstring IPAddress() const
Returns the IP address of the server.
DB_EDGEVIS_SDK bool SetIPAddress(const std::wstring &ip_address)
Set the IP address of the server currently connected.
DB_EDGEVIS_SDK std::wstring UniqueID() const
The unique ID of the server.
DB_EDGEVIS_SDK std::wstring GetServerBaseURL() const
Retrieve the base URL for the server's web pages.
DB_EDGEVIS_SDK OpResult GetResult() const
Gets the result that was set when the info was populated.
DB_EDGEVIS_SDK std::wstring Version() const
The version number of the server.
DB_EDGEVIS_SDK bool HasDevicePasswordFeature() const
Check if this server supports the device password feature.
The EdgeVis Decoder SDK namespace.