Public Member Functions | Private Attributes | List of all members
XmlRpcModel Class Reference

QAbstractItemModel for XmlRpcValues. More...

#include <xmlRpcModel.h>

Inheritance diagram for XmlRpcModel:
Inheritance graph
[legend]

Public Member Functions

int columnCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role) const
 
Qt::ItemFlags flags (const QModelIndex &index) const
 
unsigned int getMaxDisplayLength () const
 
QVariant headerData (int section, Qt::Orientation orientation, int role=Qt::DisplayRole) const
 
QModelIndex index (int row, int column, const QModelIndex &parent=QModelIndex()) const
 
QModelIndex parent (const QModelIndex &index) const
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 should return the number of children for a parent item More...
 
bool setData (const QModelIndex &index, const QVariant &value, int role=Qt::EditRole)
 
void setMaxDisplayLength (unsigned int l)
 
 XmlRpcModel (XmlRpc::XmlRpcValue *rootData, const std::string &rootPath, ros::NodeHandle *nh)
 
virtual ~XmlRpcModel ()
 

Private Attributes

unsigned int _maxDisplayLength
 
XmlRpcTreeItem_root
 

Detailed Description

QAbstractItemModel for XmlRpcValues.

Corresponding QModelIndeces will have the XmlRpcTreeItem that corresponds to the parent's XmlRpcValue as their internal pointer. So, only TreeItems with maps are contained in model indices.

Actual leaf data is accessed via the row/column of the QModelIndex.

Definition at line 43 of file xmlRpcModel.h.

Constructor & Destructor Documentation

◆ XmlRpcModel()

XmlRpcModel::XmlRpcModel ( XmlRpc::XmlRpcValue rootData,
const std::string &  rootPath,
ros::NodeHandle nh 
)

Definition at line 31 of file xmlRpcModel.cpp.

◆ ~XmlRpcModel()

XmlRpcModel::~XmlRpcModel ( )
virtual

Definition at line 37 of file xmlRpcModel.cpp.

Member Function Documentation

◆ columnCount()

int XmlRpcModel::columnCount ( const QModelIndex &  parent = QModelIndex()) const

Definition at line 223 of file xmlRpcModel.cpp.

◆ data()

QVariant XmlRpcModel::data ( const QModelIndex &  index,
int  role 
) const

Definition at line 112 of file xmlRpcModel.cpp.

◆ flags()

Qt::ItemFlags XmlRpcModel::flags ( const QModelIndex &  index) const

Definition at line 83 of file xmlRpcModel.cpp.

◆ getMaxDisplayLength()

unsigned int XmlRpcModel::getMaxDisplayLength ( ) const
inline

Definition at line 64 of file xmlRpcModel.h.

◆ headerData()

QVariant XmlRpcModel::headerData ( int  section,
Qt::Orientation  orientation,
int  role = Qt::DisplayRole 
) const

Definition at line 191 of file xmlRpcModel.cpp.

◆ index()

QModelIndex XmlRpcModel::index ( int  row,
int  column,
const QModelIndex &  parent = QModelIndex() 
) const

Definition at line 42 of file xmlRpcModel.cpp.

◆ parent()

QModelIndex XmlRpcModel::parent ( const QModelIndex &  index) const

Definition at line 68 of file xmlRpcModel.cpp.

◆ rowCount()

int XmlRpcModel::rowCount ( const QModelIndex &  parent = QModelIndex()) const

should return the number of children for a parent item

Definition at line 204 of file xmlRpcModel.cpp.

◆ setData()

bool XmlRpcModel::setData ( const QModelIndex &  index,
const QVariant &  value,
int  role = Qt::EditRole 
)

Definition at line 160 of file xmlRpcModel.cpp.

◆ setMaxDisplayLength()

void XmlRpcModel::setMaxDisplayLength ( unsigned int  l)
inline

Definition at line 65 of file xmlRpcModel.h.

Member Data Documentation

◆ _maxDisplayLength

unsigned int XmlRpcModel::_maxDisplayLength
private

Definition at line 70 of file xmlRpcModel.h.

◆ _root

XmlRpcTreeItem* XmlRpcModel::_root
private

Definition at line 68 of file xmlRpcModel.h.


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


qt_paramedit
Author(s): Christian Dornhege
autogenerated on Mon Feb 28 2022 23:37:51