WebCFace 2.5.2
Web-based Communication Framework & Dashboard-like UI
|
ClientDataの参照とメンバ名とデータ名を持つクラス More...
#include <webcface/field.h>
Public Member Functions | |
Field ()=default | |
Field (const std::weak_ptr< internal::ClientData > &data_w, const SharedString &member) | |
Field (const std::weak_ptr< internal::ClientData > &data_w, const SharedString &member, const SharedString &field) | |
Field (const Field &base, const SharedString &field) | |
std::shared_ptr< internal::ClientData > | dataLock () const |
data_wをlockし、失敗したらruntime_errorを投げる | |
std::shared_ptr< internal::ClientData > | setCheck () const |
data_wをlockし、memberがselfではなければinvalid_argumentを投げる | |
bool | expired () const |
Member | member () const |
Memberを返す | |
const std::string & | name () const |
field名を返す | |
const std::wstring & | nameW () const |
field名を返す (wstring) | |
Field | child (const SharedString &field) const |
std::string | lastName () const |
nameのうちピリオドで区切られた最後の部分を取り出す | |
std::wstring | lastNameW () const |
nameのうちピリオドで区切られた最後の部分を取り出す (wstring) | |
Field | parent () const |
nameの最後のピリオドの前までを新しい名前とするField | |
Field | child (std::string_view field) const |
「(thisの名前).(追加の名前)」を新しい名前とするField | |
Field | child (std::wstring_view field) const |
「(thisの名前).(追加の名前)」を新しい名前とするField (wstring) | |
Field | child (int index) const |
「(thisの名前).(index)」を新しい名前とするField | |
Field | operator[] (std::string_view field) const |
「(thisの名前).(追加の名前)」を新しい名前とするField | |
Field | operator[] (std::wstring_view field) const |
「(thisの名前).(追加の名前)」を新しい名前とするField (wstring) | |
Field | operator[] (int index) const |
「(thisの名前).(index)」を新しい名前とするField | |
Value | value (std::string_view field="") const |
Value | value (std::wstring_view field) const |
Text | text (std::string_view field="") const |
Text | text (std::wstring_view field) const |
RobotModel | robotModel (std::string_view field="") const |
RobotModel | robotModel (std::wstring_view field) const |
Image | image (std::string_view field="") const |
Image | image (std::wstring_view field) const |
Func | func (std::string_view field="") const |
Func | func (std::wstring_view field) const |
FuncListener | funcListener (std::string_view field) const |
FuncListener | funcListener (std::wstring_view field) const |
View | view (std::string_view field="") const |
View | view (std::wstring_view field) const |
Canvas3D | canvas3D (std::string_view field="") const |
Canvas3D | canvas3D (std::wstring_view field) const |
Canvas2D | canvas2D (std::string_view field="") const |
Canvas2D | canvas2D (std::wstring_view field) const |
Log | log (std::string_view field="") const |
Log | log (std::wstring_view field) const |
std::vector< Value > | valueEntries () const |
std::vector< Text > | textEntries () const |
std::vector< RobotModel > | robotModelEntries () const |
std::vector< Func > | funcEntries () const |
std::vector< View > | viewEntries () const |
std::vector< Canvas3D > | canvas3DEntries () const |
std::vector< Canvas2D > | canvas2DEntries () const |
std::vector< Image > | imageEntries () const |
std::vector< Log > | logEntries () const |
bool | isSelf () const |
memberがselfならtrue | |
bool | operator== (const Field &other) const |
bool | operator!= (const Field &other) const |
bool | operator== (const FieldBase &rhs) const |
bool | operator!= (const FieldBase &rhs) const |
Public Attributes | |
std::weak_ptr< internal::ClientData > | data_w |
ClientDataの参照 | |
SharedString | member_ |
メンバー名 | |
SharedString | field_ |
フィールド名 | |
Protected Member Functions | |
SharedString | lastName8 () const |
ClientDataの参照とメンバ名とデータ名を持つクラス
|
default |
|
inline |
|
inline |
|
inline |
Canvas2D canvas2D | ( | std::string_view | field = "" | ) | const |
Canvas2D canvas2D | ( | std::wstring_view | field | ) | const |
std::vector< Canvas2D > canvas2DEntries | ( | ) | const |
Canvas3D canvas3D | ( | std::string_view | field = "" | ) | const |
Canvas3D canvas3D | ( | std::wstring_view | field | ) | const |
std::vector< Canvas3D > canvas3DEntries | ( | ) | const |
Field child | ( | const SharedString & | field | ) | const |
|
inline |
「(thisの名前).(index)」を新しい名前とするField
|
inline |
「(thisの名前).(追加の名前)」を新しい名前とするField
|
inline |
「(thisの名前).(追加の名前)」を新しい名前とするField (wstring)
std::shared_ptr< internal::ClientData > dataLock | ( | ) | const |
data_wをlockし、失敗したらruntime_errorを投げる
bool expired | ( | ) | const |
Func func | ( | std::string_view | field = "" | ) | const |
Func func | ( | std::wstring_view | field | ) | const |
std::vector< Func > funcEntries | ( | ) | const |
FuncListener funcListener | ( | std::string_view | field | ) | const |
FuncListener funcListener | ( | std::wstring_view | field | ) | const |
Image image | ( | std::string_view | field = "" | ) | const |
Image image | ( | std::wstring_view | field | ) | const |
std::vector< Image > imageEntries | ( | ) | const |
bool isSelf | ( | ) | const |
memberがselfならtrue
data_wがlockできなければruntime_errorを投げる
|
inline |
nameのうちピリオドで区切られた最後の部分を取り出す
|
protected |
|
inline |
nameのうちピリオドで区切られた最後の部分を取り出す (wstring)
Log log | ( | std::string_view | field = "" | ) | const |
Log log | ( | std::wstring_view | field | ) | const |
std::vector< Log > logEntries | ( | ) | const |
Member member | ( | ) | const |
Memberを返す
|
inline |
field名を返す
|
inline |
field名を返す (wstring)
|
inline |
|
inlineinherited |
bool operator== | ( | const Field & | other | ) | const |
|
inlineinherited |
|
inline |
「(thisの名前).(index)」を新しい名前とするField
|
inline |
「(thisの名前).(追加の名前)」を新しい名前とするField
|
inline |
「(thisの名前).(追加の名前)」を新しい名前とするField (wstring)
Field parent | ( | ) | const |
nameの最後のピリオドの前までを新しい名前とするField
RobotModel robotModel | ( | std::string_view | field = "" | ) | const |
RobotModel robotModel | ( | std::wstring_view | field | ) | const |
std::vector< RobotModel > robotModelEntries | ( | ) | const |
std::shared_ptr< internal::ClientData > setCheck | ( | ) | const |
data_wをlockし、memberがselfではなければinvalid_argumentを投げる
Text text | ( | std::string_view | field = "" | ) | const |
Text text | ( | std::wstring_view | field | ) | const |
std::vector< Text > textEntries | ( | ) | const |
Value value | ( | std::string_view | field = "" | ) | const |
Value value | ( | std::wstring_view | field | ) | const |
std::vector< Value > valueEntries | ( | ) | const |
View view | ( | std::string_view | field = "" | ) | const |
View view | ( | std::wstring_view | field | ) | const |
std::vector< View > viewEntries | ( | ) | const |
std::weak_ptr<internal::ClientData> data_w |
ClientDataの参照
ClientData内に保持するクラスもあるので循環参照を避けるためweak_ptr
|
inherited |
フィールド名
Memberなどフィールド名が不要なクラスでは使用しない
|
inherited |
メンバー名