WebCFace 2.5.2
Web-based Communication Framework & Dashboard-like UI
Loading...
Searching...
No Matches
ViewBuf Class Referencefinal

Viewの送信用データを保持する More...

#include <webcface/internal/data_buffer.h>

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

Public Member Functions

void addVC (TemporalViewComponent &&vc)
 componentsに追加
 
void addText (std::string_view text, const TemporalViewComponent *vc=nullptr)
 
void syncSetBuf ()
 
 ViewBuf ()
 
 ViewBuf (const Field &base)
 
 ~ViewBuf () override
 
void onDestroy ()
 
void onSync ()
 データを処理しtargetにsetする
 
void onSync ()
 
void onSync ()
 
void onSync ()
 
void onSync ()
 
void onSync ()
 
void onSync ()
 
void onSync ()
 
void onSync ()
 
void init ()
 
virtual void onAdd ()
 add時のチェック
 
void add (TemporalViewComponent &&cp)
 
void set (const std::vector< TemporalViewComponent > &cv)
 まとめてセット
 
void set (std::initializer_list< TemporalViewComponent > cl)
 
const std::vector< TemporalViewComponent > & components () const
 

Private Member Functions

int sync () override
 

Detailed Description

Viewの送信用データを保持する

Constructor & Destructor Documentation

◆ ViewBuf() [1/2]

ViewBuf ( )
explicit

◆ ViewBuf() [2/2]

ViewBuf ( const Field base)
explicit

◆ ~ViewBuf()

~ViewBuf ( )
override

Member Function Documentation

◆ add()

void add ( TemporalViewComponent &&  cp)
inlineinherited

◆ addText()

void addText ( std::string_view  text,
const TemporalViewComponent vc = nullptr 
)

◆ addVC()

void addVC ( TemporalViewComponent &&  vc)

componentsに追加

textは改行で分割する

◆ components()

const std::vector< TemporalViewComponent > & components ( ) const
inlineinherited

◆ init()

void init ( )
inlineinherited

◆ onAdd()

virtual void onAdd ( )
inlinevirtualinherited

add時のチェック

◆ onDestroy()

void onDestroy ( )
inlineinherited

◆ onSync() [1/9]

void onSync ( )
inherited

データを処理しtargetにsetする

実装は型ごと

◆ onSync() [2/9]

void onSync ( )
inherited

◆ onSync() [3/9]

void onSync ( )
inherited

◆ onSync() [4/9]

void onSync ( )
inherited

◆ onSync() [5/9]

void onSync ( )
inherited

◆ onSync() [6/9]

void onSync ( )
inherited

◆ onSync() [7/9]

void onSync ( )
inherited

◆ onSync() [8/9]

void onSync ( )
inherited

◆ onSync() [9/9]

void onSync ( )
inherited

◆ set() [1/2]

void set ( const std::vector< TemporalViewComponent > &  cv)
inlineinherited

まとめてセット

initしてcomponentsを置き換えてsyncする

◆ set() [2/2]

void set ( std::initializer_list< TemporalViewComponent cl)
inlineinherited

◆ sync()

int sync ( )
overrideprivate

こっちはstreambufのsync

◆ syncSetBuf()

void syncSetBuf ( )
inline

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