HAL  v4.5.0-232-g8053ac4b3
The Hardware Analyzer - a comprehensive reverse engineering and manipulation framework for gate-level netlists.
hal::DataTableEntry Class Reference

#include </home/runner/work/hal/hal/plugins/gui/include/gui/selection_details_widget/data_table_entry.h>

Collaboration diagram for hal::DataTableEntry:
Collaboration graph

Public Types

enum  PropertyType { CategoryProperty , KeyProperty , TypeProperty , ValueProperty }
 

Public Member Functions

 DataTableEntry (const QString &c=QString(), const QString &k=QString(), const QString t=QString(), const QString v=QString())
 
QString getPropertyValueByPropType (PropertyType ptype) const
 
bool isNull () const
 
void toContainer (DataContainer *container) const
 

Static Public Member Functions

static DataTableEntry fromContainer (DataContainer *container, std::string category, std::string key)
 

Public Attributes

QString category
 
QString key
 The data's category. More...
 
QString dataType
 The data's key. More...
 
QString value
 

Detailed Description

Definition at line 34 of file data_table_entry.h.

Member Enumeration Documentation

◆ PropertyType

Enumerator
CategoryProperty 
KeyProperty 
TypeProperty 
ValueProperty 

Definition at line 37 of file data_table_entry.h.

Constructor & Destructor Documentation

◆ DataTableEntry()

hal::DataTableEntry::DataTableEntry ( const QString &  c = QString(),
const QString &  k = QString(),
const QString  t = QString(),
const QString  v = QString() 
)

Definition at line 5 of file data_table_entry.cpp.

Referenced by fromContainer().

Member Function Documentation

◆ fromContainer()

DataTableEntry hal::DataTableEntry::fromContainer ( DataContainer *  container,
std::string  category,
std::string  key 
)
static

◆ getPropertyValueByPropType()

QString hal::DataTableEntry::getPropertyValueByPropType ( PropertyType  ptype) const

◆ isNull()

bool hal::DataTableEntry::isNull ( ) const

Definition at line 21 of file data_table_entry.cpp.

References category, QString::isEmpty(), and key.

Referenced by hal::ActionSetObjectData::exec().

◆ toContainer()

void hal::DataTableEntry::toContainer ( DataContainer *  container) const

Member Data Documentation

◆ category

◆ dataType

◆ key

◆ value


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