|
xentara-cpp-control v1.0.1
The Xentara C++ Control Framework
|
Access to the Xentara model. More...
#include <xentara/Model.hpp>
Public Member Functions | |
| Model ()=delete | |
| No default construction. | |
| auto | findElement (std::string_view primaryKey) const -> Element |
| Gets a element identified by the given primary key. | |
| auto | findDataPoint (std::string_view primaryKey) const -> Element |
| Gets a element of data point type identified by the given primary key. | |
| Model (const Model &)=delete | |
| Delete the copy constructor. | |
| auto | operator= (const Model &) -> Model &=delete |
| Delete the assignment operator. | |
Access to the Xentara model.
This class provides access to model elements from the Xentara model file, including elements that are data points. You never create objects of this class yourself, this class is always returned from InitContext::model().
|
delete |
No default construction.
| auto xentara::Model::findDataPoint | ( | std::string_view | primaryKey | ) | const -> Element |
Gets a element of data point type identified by the given primary key.
This function provides an element of data point type from the Xentara model tree based on the given primary key. The key must be the primary key of the Xentara element, and it can refer to any data point in the xentara model.
| primaryKey | The key used to identify the desired data point. |
| std::runtime_error | The requested element does not exist in the Xentara model tree |
| std::runtime_error | The requested element is not a data point in the Xentara model tree. |
| auto xentara::Model::findElement | ( | std::string_view | primaryKey | ) | const -> Element |
Gets a element identified by the given primary key.
This function provides an element from the Xentara model tree based on the given primary key. The key must be the primary key of the Xentara element, and it can refer to any element in the xentara model.
| primaryKey | The key used to identify the desired element. |
| std::runtime_error | The requested element does not exist in the Xentara model tree. |