9#include "webcface/common/webcface-config.h"
25 Member(
const std::weak_ptr<internal::ClientData> &data_w,
27 :
Field(data_w, member) {}
36 const std::string &
name()
const {
return member_.decode(); }
41 const std::wstring &
nameW()
const {
return member_.decodeW(); }
44 using Field::operator[];
46 using Field::canvas2D;
47 using Field::canvas3D;
49 using Field::funcListener;
51 using Field::robotModel;
70 using Field::canvas2DEntries;
71 using Field::canvas3DEntries;
72 using Field::funcEntries;
73 using Field::imageEntries;
74 using Field::logEntries;
75 using Field::robotModelEntries;
76 using Field::textEntries;
77 using Field::valueEntries;
78 using Field::viewEntries;
84 [[deprecated]] std::vector<Value> values()
const;
89 [[deprecated]] std::vector<Text> texts()
const;
95 [[deprecated]] std::vector<RobotModel> robotModels()
const;
101 [[deprecated]] std::vector<Func> funcs()
const;
106 [[deprecated]] std::vector<View> views()
const;
111 [[deprecated]] std::vector<Image> images()
const;
135 const Member &onRobotModelEntry(
167 const Member &onCanvas3DEntry(
175 const Member &onCanvas2DEntry(
200 template <
typename F,
typename std::enable_if_t<std::is_invocable_v<F>,
201 std::
nullptr_t> =
nullptr>
204 [callback = std::move(callback)](
const auto &) { callback(); });
212 std::chrono::system_clock::time_point syncTime()
const;
220 const std::string &libName()
const;
225 const std::string &libVersion()
const;
230 const std::string &remoteAddr()
const;
243 std::optional<int> pingStatus()
const;
263 template <
typename F,
typename std::enable_if_t<std::is_invocable_v<F>,
264 std::
nullptr_t> =
nullptr>
267 [callback = std::move(callback)](
const auto &) { callback(); });
274 template <
typename T,
typename std::enable_if_t<std::is_same_v<T, Member>,
275 std::
nullptr_t> =
nullptr>
277 return static_cast<Field>(*this) ==
static_cast<Field>(other);
279 template <
typename T,
typename std::enable_if_t<std::is_same_v<T, Member>,
280 std::
nullptr_t> =
nullptr>
282 return static_cast<Field>(*this) !=
static_cast<Field>(other);
Canvas2Dの送受信データを表すクラス
Definition canvas2d.h:24
Canvas3Dの送受信データを表すクラス
Definition canvas3d.h:28
関数1つを表すクラス
Definition func.h:95
(ver1.3から追加) 画像の送受信データを表すクラス
Definition image.h:20
ログの送受信データを表すクラス
Definition log.h:65
Memberを指すクラス
Definition member.h:22
bool operator==(const T &other) const
Memberを比較
Definition member.h:276
const std::string & name() const
Member名
Definition member.h:36
Log log(std::string_view name) const
Definition member.h:59
const std::wstring & nameW() const
Member名 (wstring)
Definition member.h:41
bool operator!=(const T &other) const
Definition member.h:281
const Member & onSync(F callback) const
Memberがsync()したときのイベント
Definition member.h:202
Member(const std::weak_ptr< internal::ClientData > &data_w, const SharedString &member)
Definition member.h:25
Log log(std::wstring_view name) const
Definition member.h:63
Member(const Field &base)
Definition member.h:28
const Member & onPing(F callback) const
通信速度が更新された時のイベント
Definition member.h:265
RobotModelの送受信データを表すクラス
Definition robot_model.h:26
u8stringとstringとwstringをshared_ptrで持ち共有する
Definition encoding.h:69
文字列の送受信データを表すクラス
Definition text.h:183
実数値またはその配列の送受信データを表すクラス
Definition value.h:23
Viewの送受信データを表すクラス
Definition view.h:26
ClientDataの参照とメンバ名とデータ名を持つクラス
Definition field.h:70
Log log(std::string_view field="") const
Definition field.cc:80
Definition client_internal.h:35
#define WEBCFACE_DLL
Definition webcface-config.h:60
#define WEBCFACE_NS_END
Definition webcface-config.h:104
#define WEBCFACE_NS_BEGIN
Definition webcface-config.h:103
#define WEBCFACE_CALL_FP
Definition webcface-config.h:98