RTC Toolkit 6.0.0
Loading...
Searching...
No Matches
gui.runtime_repo_model.RuntimeRepoModel._DataUpdateCompletion Class Reference

This class behaves like a closure, holding the tree node to update in the model. More...

Public Member Functions

 __init__ (self, TreeNode node, RuntimeRepoModel model)
 
 data_point_updated (self, path, value)
 This completion handler replaces the existing value object in the corresponding model's node with the new value given.
 

Public Attributes

 node = node
 
 model = model
 

Detailed Description

This class behaves like a closure, holding the tree node to update in the model.

Instances of this class are passed as the tag argument to the RuntimeRepoControl subscription request. This is the same pattern used for the _FetchCompletion and _CommitCompletion classes, which allows the inherited on_data_point_updated slot method to appropriately dispatch the data updates to the data_point_updated method of this class.

Constructor & Destructor Documentation

◆ __init__()

gui.runtime_repo_model.RuntimeRepoModel._DataUpdateCompletion.__init__ ( self,
TreeNode node,
RuntimeRepoModel model )

Member Function Documentation

◆ data_point_updated()

gui.runtime_repo_model.RuntimeRepoModel._DataUpdateCompletion.data_point_updated ( self,
path,
value )

This completion handler replaces the existing value object in the corresponding model's node with the new value given.

Member Data Documentation

◆ model

gui.runtime_repo_model.RuntimeRepoModel._DataUpdateCompletion.model = model

◆ node

gui.runtime_repo_model.RuntimeRepoModel._DataUpdateCompletion.node = node

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