38 auto rfsv = std::unique_ptr<RFSV>(
RFSV::connect(host, port, &internalError));
41 *
error = internalError;
48 auto deviceConfiguration = device::read_configuration(*rfsv, result);
49 std::string
id = deviceConfiguration ? deviceConfiguration->id() :
uuid::uuid4();
50 bool hasPersistentConfiguration =
static_cast<bool>(deviceConfiguration);
52 auto rpcs = std::unique_ptr<RPCS>(
RPCS::connect(host, port, &internalError));
55 *
error = internalError;
60 auto clip = std::unique_ptr<rclip>(
rclip::connect(host, port, &internalError));
63 *
error = internalError;
68 return std::unique_ptr<DeviceEndpoint>(
69 new DeviceEndpoint(
id, hasPersistentConfiguration, std::move(rfsv), std::move(rpcs), std::move(clip)));
73 bool hasPersistentConfiguration,
74 std::unique_ptr<RFSV> rfsv,
75 std::unique_ptr<RPCS> rpcs,
76 std::unique_ptr<rclip> clip)
77: rfsv_(
std::move(rfsv))
78, rpcs_(
std::move(rpcs))
79, clip_(
std::move(clip))
81, hasPersistentConfiguration_(hasPersistentConfiguration) {}
static void error(int line)