ViewFactory
ViewFactory
Factory for creating type-specific view widgets. More…
#include <ViewFactory.hpp>
Public Functions
| Name | |
|---|---|
| std::unique_ptr< BaseDataView > | createView(DM_DataType type, std::shared_ptr< DataManager > data_manager, QWidget * parent =[nullptr]) Create a view widget for the given data type. |
| bool | hasView(DM_DataType type) Check if a data type has a supported view. |
Detailed Description
class ViewFactory;Factory for creating type-specific view widgets.
Provides methods to create the appropriate view widget based on data type.
Public Functions Documentation
function createView
static std::unique_ptr< BaseDataView > createView(
DM_DataType type,
std::shared_ptr< DataManager > data_manager,
QWidget * parent =nullptr
)Create a view widget for the given data type.
Parameters:
- type The data type to create a view for
- data_manager Shared DataManager for data access
- parent Parent widget
Return: Unique pointer to the created view, or nullptr if type not supported
The returned view implements IDataView and can be used with DataInspectorViewWidget.
function hasView
static bool hasView(
DM_DataType type
)Check if a data type has a supported view.
Parameters:
- type The data type to check
Return: true if the type has a view, false otherwise
Updated on 2026-11-13 at 20:25:39 +0000