39 auto rfsv = std::unique_ptr<RFSV>(
RFSV::connect(host, port, &internalError));
42 *
error = internalError;
49 auto deviceConfiguration = device::read_configuration(*rfsv, result);
50 std::string
id = deviceConfiguration ? deviceConfiguration->id() :
uuid::uuid4();
51 auto name = deviceConfiguration ? std::optional<std::string>(deviceConfiguration->name()) : std::nullopt;
52 bool hasPersistentConfiguration =
static_cast<bool>(deviceConfiguration);
54 auto rpcs = std::unique_ptr<RPCS>(
RPCS::connect(host, port, &internalError));
57 *
error = internalError;
62 auto clip = std::unique_ptr<rclip>(
rclip::connect(host, port, &internalError));
65 *
error = internalError;
70 return std::unique_ptr<DeviceEndpoint>(
73 hasPersistentConfiguration,
80 const std::optional<std::string> &name,
81 bool hasPersistentConfiguration,
82 std::unique_ptr<RFSV> rfsv,
83 std::unique_ptr<RPCS> rpcs,
84 std::unique_ptr<rclip> clip)
85: rfsv_(
std::move(rfsv))
86, rpcs_(
std::move(rpcs))
87, clip_(
std::move(clip))
90, hasPersistentConfiguration_(hasPersistentConfiguration) {
DeviceEndpoint(const std::string &id, const std::optional< std::string > &name, bool hasPersistentConfiguration, std::unique_ptr< RFSV > rfsv, std::unique_ptr< RPCS > rpcs, std::unique_ptr< rclip > clip)
static void error(int line)