Public Member Functions | Private Attributes
XmlRpcModel Class Reference

QAbstractItemModel for XmlRpcValues. More...

#include <xmlRpcModel.h>

List of all members.

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
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)
 ~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 ( XmlRpc::XmlRpcValue rootData,
const std::string &  rootPath,
ros::NodeHandle nh 
)

Definition at line 31 of file xmlRpcModel.cpp.

Definition at line 37 of file xmlRpcModel.cpp.


Member Function Documentation

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

Definition at line 223 of file xmlRpcModel.cpp.

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

Definition at line 112 of file xmlRpcModel.cpp.

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

Definition at line 83 of file xmlRpcModel.cpp.

unsigned int XmlRpcModel::getMaxDisplayLength ( ) const [inline]

Definition at line 64 of file xmlRpcModel.h.

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

Definition at line 191 of file xmlRpcModel.cpp.

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

Definition at line 42 of file xmlRpcModel.cpp.

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

Definition at line 68 of file xmlRpcModel.cpp.

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.

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

Definition at line 160 of file xmlRpcModel.cpp.

void XmlRpcModel::setMaxDisplayLength ( unsigned int  l) [inline]

Definition at line 65 of file xmlRpcModel.h.


Member Data Documentation

unsigned int XmlRpcModel::_maxDisplayLength [private]

Definition at line 70 of file xmlRpcModel.h.

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 Fri Aug 28 2015 12:50:12