1 #ifndef OPCUABRIDGE_CLIENT_H_ 2 #define OPCUABRIDGE_CLIENT_H_ 6 #include "opcuabridge.h" 11 namespace filesystem {
26 const std::string& getUrl()
const {
return url_; }
29 struct DiscoveredEndPointCacheEntry {
32 std::string opcua_server_url;
35 struct DiscoveredEndPointCacheEntryHash {
36 typedef DiscoveredEndPointCacheEntry argument_type;
37 typedef std::size_t result_type;
39 result_type operator()(argument_type
const& e)
const;
42 struct DiscoveredEndPointCacheEntryEqual {
43 typedef DiscoveredEndPointCacheEntry argument_type;
45 bool operator()(
const argument_type& lhs,
const argument_type& rhs)
const;
48 typedef std::unordered_set<DiscoveredEndPointCacheEntry, DiscoveredEndPointCacheEntryHash,
49 DiscoveredEndPointCacheEntryEqual>
50 DiscoveredEndPointCache;
53 std::string makeOpcuaServerUri(
const std::string& address)
const;
54 void considerLdsRegisteredEndPoints(
const std::string& opcua_lds_url);
56 thread_local
static DiscoveredEndPointCache discovered_end_points_cache_;
64 explicit Client(
const std::string& url) noexcept;
70 explicit operator bool()
const;
75 bool sendMetadataFiles(std::vector<MetadataFile>& )
const;
76 bool syncDirectoryFiles(
const boost::filesystem::path& )
const;
84 #endif // OPCUABRIDGE_CLIENT_H_
Base data types that are used in The Update Framework (TUF), part of UPTANE.