ComSquare
Public Member Functions | Public Attributes | Private Attributes | List of all members
ComSquare::Debugger::BusLogModel Class Reference

The qt model that bind the logs to the view. More...

#include <MemoryBusDebug.hpp>

Inheritance diagram for ComSquare::Debugger::BusLogModel:
Collaboration diagram for ComSquare::Debugger::BusLogModel:

Public Member Functions

 BusLogModel ()=default
 
 BusLogModel (const BusLogModel &)=delete
 
const BusLogModeloperator= (const BusLogModel &)=delete
 
 ~BusLogModel () override=default
 
void log (const ComSquare::Debugger::BusLog &log)
 Add a log to the model. More...
 
ComSquare::Debugger::BusLog getLogAt (int index)
 Get a log at an index. More...
 
void clearLogs ()
 Clear all the logs. More...
 
int rowCount (const QModelIndex &parent) const override
 The number of row the table has. More...
 
int columnCount (const QModelIndex &parent) const override
 The number of column the table has. More...
 
QVariant data (const QModelIndex &index, int role) const override
 Return a data representing the table cell. More...
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const override
 Override the headers to use hex values. More...
 

Public Attributes

const int column = 6
 The number of column;. More...
 

Private Attributes

std::vector< ComSquare::Debugger::BusLog_logs
 The logs to display. More...
 

Detailed Description

The qt model that bind the logs to the view.

Constructor & Destructor Documentation

◆ BusLogModel() [1/2]

ComSquare::Debugger::BusLogModel::BusLogModel ( )
default

◆ BusLogModel() [2/2]

ComSquare::Debugger::BusLogModel::BusLogModel ( const BusLogModel )
delete

◆ ~BusLogModel()

ComSquare::Debugger::BusLogModel::~BusLogModel ( )
overridedefault

Member Function Documentation

◆ clearLogs()

void ComSquare::Debugger::BusLogModel::clearLogs ( )

Clear all the logs.

◆ columnCount()

int ComSquare::Debugger::BusLogModel::columnCount ( const QModelIndex &  parent) const
override

The number of column the table has.

◆ data()

QVariant ComSquare::Debugger::BusLogModel::data ( const QModelIndex &  index,
int  role 
) const
override

Return a data representing the table cell.

◆ getLogAt()

BusLog ComSquare::Debugger::BusLogModel::getLogAt ( int  index)

Get a log at an index.

◆ headerData()

QVariant ComSquare::Debugger::BusLogModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role 
) const
override

Override the headers to use hex values.

◆ log()

void ComSquare::Debugger::BusLogModel::log ( const ComSquare::Debugger::BusLog log)

Add a log to the model.

◆ operator=()

const BusLogModel& ComSquare::Debugger::BusLogModel::operator= ( const BusLogModel )
delete

◆ rowCount()

int ComSquare::Debugger::BusLogModel::rowCount ( const QModelIndex &  parent) const
override

The number of row the table has.

Member Data Documentation

◆ _logs

std::vector<ComSquare::Debugger::BusLog> ComSquare::Debugger::BusLogModel::_logs
private

The logs to display.

◆ column

const int ComSquare::Debugger::BusLogModel::column = 6

The number of column;.


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