WebCFace 2.5.2
Web-based Communication Framework & Dashboard-like UI
Loading...
Searching...
No Matches
Field Struct Reference

ClientDataの参照とメンバ名とデータ名を持つクラス More...

#include <webcface/field.h>

Inheritance diagram for Field:
[legend]
Collaboration diagram for Field:
[legend]

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::ClientDatadataLock () const
 data_wをlockし、失敗したらruntime_errorを投げる
 
std::shared_ptr< internal::ClientDatasetCheck () 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< ValuevalueEntries () const
 
std::vector< TexttextEntries () const
 
std::vector< RobotModelrobotModelEntries () const
 
std::vector< FuncfuncEntries () const
 
std::vector< ViewviewEntries () const
 
std::vector< Canvas3Dcanvas3DEntries () const
 
std::vector< Canvas2Dcanvas2DEntries () const
 
std::vector< ImageimageEntries () const
 
std::vector< LoglogEntries () 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::ClientDatadata_w
 ClientDataの参照
 
SharedString member_
 メンバー名
 
SharedString field_
 フィールド名
 

Protected Member Functions

SharedString lastName8 () const
 

Detailed Description

ClientDataの参照とメンバ名とデータ名を持つクラス

Constructor & Destructor Documentation

◆ Field() [1/4]

Field ( )
default

◆ Field() [2/4]

Field ( const std::weak_ptr< internal::ClientData > &  data_w,
const SharedString member 
)
inline

◆ Field() [3/4]

Field ( const std::weak_ptr< internal::ClientData > &  data_w,
const SharedString member,
const SharedString field 
)
inline

◆ Field() [4/4]

Field ( const Field base,
const SharedString field 
)
inline

Member Function Documentation

◆ canvas2D() [1/2]

Canvas2D canvas2D ( std::string_view  field = "") const

◆ canvas2D() [2/2]

Canvas2D canvas2D ( std::wstring_view  field) const

◆ canvas2DEntries()

std::vector< Canvas2D > canvas2DEntries ( ) const

◆ canvas3D() [1/2]

Canvas3D canvas3D ( std::string_view  field = "") const

◆ canvas3D() [2/2]

Canvas3D canvas3D ( std::wstring_view  field) const

◆ canvas3DEntries()

std::vector< Canvas3D > canvas3DEntries ( ) const

◆ child() [1/4]

Field child ( const SharedString field) const

◆ child() [2/4]

Field child ( int  index) const
inline

「(thisの名前).(index)」を新しい名前とするField

Since
ver1.11

◆ child() [3/4]

Field child ( std::string_view  field) const
inline

「(thisの名前).(追加の名前)」を新しい名前とするField

Since
ver1.11

◆ child() [4/4]

Field child ( std::wstring_view  field) const
inline

「(thisの名前).(追加の名前)」を新しい名前とするField (wstring)

Since
ver2.0

◆ dataLock()

std::shared_ptr< internal::ClientData > dataLock ( ) const

data_wをlockし、失敗したらruntime_errorを投げる

◆ expired()

bool expired ( ) const

◆ func() [1/2]

Func func ( std::string_view  field = "") const

◆ func() [2/2]

Func func ( std::wstring_view  field) const

◆ funcEntries()

std::vector< Func > funcEntries ( ) const

◆ funcListener() [1/2]

FuncListener funcListener ( std::string_view  field) const

◆ funcListener() [2/2]

FuncListener funcListener ( std::wstring_view  field) const

◆ image() [1/2]

Image image ( std::string_view  field = "") const

◆ image() [2/2]

Image image ( std::wstring_view  field) const

◆ imageEntries()

std::vector< Image > imageEntries ( ) const

◆ isSelf()

bool isSelf ( ) const

memberがselfならtrue

data_wがlockできなければruntime_errorを投げる

◆ lastName()

std::string lastName ( ) const
inline

nameのうちピリオドで区切られた最後の部分を取り出す

Since
ver1.11

◆ lastName8()

SharedString lastName8 ( ) const
protected

◆ lastNameW()

std::wstring lastNameW ( ) const
inline

nameのうちピリオドで区切られた最後の部分を取り出す (wstring)

Since
ver2.0

◆ log() [1/2]

Log log ( std::string_view  field = "") const
Since
ver2.4

◆ log() [2/2]

Log log ( std::wstring_view  field) const
Since
ver2.4

◆ logEntries()

std::vector< Log > logEntries ( ) const
Since
ver2.4

◆ member()

Member member ( ) const

Memberを返す

◆ name()

const std::string & name ( ) const
inline

field名を返す

◆ nameW()

const std::wstring & nameW ( ) const
inline

field名を返す (wstring)

Since
ver2.0

◆ operator!=() [1/2]

bool operator!= ( const Field other) const
inline

◆ operator!=() [2/2]

bool operator!= ( const FieldBase rhs) const
inlineinherited

◆ operator==() [1/2]

bool operator== ( const Field other) const

◆ operator==() [2/2]

bool operator== ( const FieldBase rhs) const
inlineinherited

◆ operator[]() [1/3]

Field operator[] ( int  index) const
inline

「(thisの名前).(index)」を新しい名前とするField

Since
ver1.11

◆ operator[]() [2/3]

Field operator[] ( std::string_view  field) const
inline

「(thisの名前).(追加の名前)」を新しい名前とするField

Since
ver1.11

◆ operator[]() [3/3]

Field operator[] ( std::wstring_view  field) const
inline

「(thisの名前).(追加の名前)」を新しい名前とするField (wstring)

Since
ver2.0

◆ parent()

Field parent ( ) const

nameの最後のピリオドの前までを新しい名前とするField

Since
ver1.11

◆ robotModel() [1/2]

RobotModel robotModel ( std::string_view  field = "") const

◆ robotModel() [2/2]

RobotModel robotModel ( std::wstring_view  field) const

◆ robotModelEntries()

std::vector< RobotModel > robotModelEntries ( ) const

◆ setCheck()

std::shared_ptr< internal::ClientData > setCheck ( ) const

data_wをlockし、memberがselfではなければinvalid_argumentを投げる

◆ text() [1/2]

Text text ( std::string_view  field = "") const

◆ text() [2/2]

Text text ( std::wstring_view  field) const

◆ textEntries()

std::vector< Text > textEntries ( ) const

◆ value() [1/2]

Value value ( std::string_view  field = "") const

◆ value() [2/2]

Value value ( std::wstring_view  field) const

◆ valueEntries()

std::vector< Value > valueEntries ( ) const

◆ view() [1/2]

View view ( std::string_view  field = "") const

◆ view() [2/2]

View view ( std::wstring_view  field) const

◆ viewEntries()

std::vector< View > viewEntries ( ) const

Member Data Documentation

◆ data_w

std::weak_ptr<internal::ClientData> data_w

ClientDataの参照

ClientData内に保持するクラスもあるので循環参照を避けるためweak_ptr

◆ field_

SharedString field_
inherited

フィールド名

Memberなどフィールド名が不要なクラスでは使用しない

◆ member_

SharedString member_
inherited

メンバー名


The documentation for this struct was generated from the following files: