29 #ifndef XML_RPC_TREE_ITEM_H 30 #define XML_RPC_TREE_ITEM_H 73 QVariant
data(
int row,
int column)
const;
75 bool isBool(
int row,
int column)
const;
QVariant xmlToVariant(XmlRpc::XmlRpcValue &val) const
Convert a XmlRpcValue to QVariant - only leaf values are supported.
A wrapper around the XmlRpcValue including a parent pointer and convenience functions for the qt mode...
XmlRpcTreeItem * parent()
bool setData(QVariant val)
set data for this item
void setParam()
write this XmlRpcValue to parameter server (for array childs).
deque< XmlRpcTreeItem * > _children
bool isBool(int row, int column) const
is the stored data a bool
void addChild(const std::string &name, XmlRpc::XmlRpcValue *childData)
Create a child from its data.
QVariant data(int row, int column) const
return the data in the map
int childIndexOf(const XmlRpcTreeItem *child) const
void createChildren()
Create all children based on data.
XmlRpc::XmlRpcValue * _data
XmlRpcTreeItem * child(unsigned int i)
int row() const
Figure out which row/nth child we are for the parent.
unsigned int childCount() const
XmlRpcTreeItem(XmlRpc::XmlRpcValue *data, XmlRpcTreeItem *parent, const std::string &path, ros::NodeHandle *nh)