#include <config.h>
Signals | |
void | added (const QString &full_name) |
void | cleared (const QString &full_name) |
void | defaultValueChanged (const QString &name, const QVariant &default_value) |
void | idChanged (const QString &id) |
void | nameChanged (const QString &previous_name, const QString &name) |
void | removed (const QString &full_name) |
void | toolTipChanged (const QString &name, const QString &tool_tip) |
void | typeChanged (const QString &name, const QMetaType::Type &type) |
void | valueChanged (const QString &name, const QVariant &value) |
Public Member Functions | |
void | addParam (ParamInterface *param) |
void | clearParams () |
void | clearParams (const QString &full_name) |
Config (QObject *parent=NULL) | |
bool | contains (const QString &full_name) const |
size_t | count () const |
size_t | count (const QString &full_name) const |
ParamInterface * | getChild (size_t index) const |
QVector< ParamInterface * > | getChildren () const |
QString | getId () const |
ParamInterface * | getParam (const QString &relative_name) const |
void | hideArrays () |
bool | isEmpty () const |
bool | isEmpty (const QString &full_name) const |
void | load (QSettings &settings) |
Config & | operator= (const Config &config) |
void | read (QDataStream &stream) |
void | removeParam (const QString &full_name) |
void | reset () |
void | save (QSettings &settings) const |
void | saveAsYaml (const QString &url) const |
void | setId (const QString &id) |
QString | validate () const |
void | write (QDataStream &stream) const |
virtual | ~Config () |
Private Types | |
typedef QMap< Param *, ParamsArray * > | ArrayMap |
typedef ArrayMap::const_iterator | const_iterator |
typedef ArrayMap::iterator | iterator |
Private Slots | |
void | arraySizeChanged (const QString &full_name, const QVariant &value) |
void | paramDestroyed () |
Private Member Functions | |
void | clearArrays () |
void | findArrays (Params *parent) |
QString | toYaml () const |
Private Attributes | |
ArrayMap | arrays_ |
QString | id_ |
QVector< ParamInterface * > | params_ |
typedef QMap<Param*, ParamsArray*> rqt_mrta::config::Config::ArrayMap [private] |
typedef ArrayMap::const_iterator rqt_mrta::config::Config::const_iterator [private] |
typedef ArrayMap::iterator rqt_mrta::config::Config::iterator [private] |
rqt_mrta::config::Config::Config | ( | QObject * | parent = NULL | ) |
Definition at line 11 of file config.cpp.
rqt_mrta::config::Config::~Config | ( | ) | [virtual] |
Definition at line 13 of file config.cpp.
void rqt_mrta::config::Config::added | ( | const QString & | full_name | ) | [signal] |
void rqt_mrta::config::Config::addParam | ( | ParamInterface * | param | ) |
Definition at line 63 of file config.cpp.
void rqt_mrta::config::Config::arraySizeChanged | ( | const QString & | full_name, |
const QVariant & | value | ||
) | [private, slot] |
Definition at line 367 of file config.cpp.
void rqt_mrta::config::Config::clearArrays | ( | ) | [private] |
Definition at line 357 of file config.cpp.
void rqt_mrta::config::Config::cleared | ( | const QString & | full_name | ) | [signal] |
Definition at line 117 of file config.cpp.
void rqt_mrta::config::Config::clearParams | ( | const QString & | full_name | ) |
Definition at line 135 of file config.cpp.
bool rqt_mrta::config::Config::contains | ( | const QString & | full_name | ) | const |
Definition at line 148 of file config.cpp.
size_t rqt_mrta::config::Config::count | ( | ) | const |
Definition at line 162 of file config.cpp.
size_t rqt_mrta::config::Config::count | ( | const QString & | full_name | ) | const |
Definition at line 164 of file config.cpp.
void rqt_mrta::config::Config::defaultValueChanged | ( | const QString & | name, |
const QVariant & | default_value | ||
) | [signal] |
void rqt_mrta::config::Config::findArrays | ( | Params * | parent | ) | [private] |
Definition at line 333 of file config.cpp.
ParamInterface * rqt_mrta::config::Config::getChild | ( | size_t | index | ) | const |
Definition at line 41 of file config.cpp.
QVector< ParamInterface * > rqt_mrta::config::Config::getChildren | ( | ) | const |
Definition at line 39 of file config.cpp.
QString rqt_mrta::config::Config::getId | ( | ) | const |
Definition at line 27 of file config.cpp.
ParamInterface * rqt_mrta::config::Config::getParam | ( | const QString & | relative_name | ) | const |
Definition at line 43 of file config.cpp.
void rqt_mrta::config::Config::hideArrays | ( | ) |
Definition at line 305 of file config.cpp.
void rqt_mrta::config::Config::idChanged | ( | const QString & | id | ) | [signal] |
bool rqt_mrta::config::Config::isEmpty | ( | ) | const |
Definition at line 174 of file config.cpp.
bool rqt_mrta::config::Config::isEmpty | ( | const QString & | full_name | ) | const |
Definition at line 176 of file config.cpp.
void rqt_mrta::config::Config::load | ( | QSettings & | settings | ) | [virtual] |
Implements utilities::AbstractConfig.
Definition at line 198 of file config.cpp.
void rqt_mrta::config::Config::nameChanged | ( | const QString & | previous_name, |
const QString & | name | ||
) | [signal] |
Definition at line 245 of file config.cpp.
void rqt_mrta::config::Config::paramDestroyed | ( | ) | [private, slot] |
Definition at line 320 of file config.cpp.
void rqt_mrta::config::Config::read | ( | QDataStream & | stream | ) | [virtual] |
Implements utilities::AbstractConfig.
Definition at line 231 of file config.cpp.
void rqt_mrta::config::Config::removed | ( | const QString & | full_name | ) | [signal] |
void rqt_mrta::config::Config::removeParam | ( | const QString & | full_name | ) |
Definition at line 88 of file config.cpp.
void rqt_mrta::config::Config::reset | ( | ) | [virtual] |
Implements utilities::AbstractConfig.
Definition at line 213 of file config.cpp.
void rqt_mrta::config::Config::save | ( | QSettings & | settings | ) | const [virtual] |
Implements utilities::AbstractConfig.
Definition at line 186 of file config.cpp.
void rqt_mrta::config::Config::saveAsYaml | ( | const QString & | url | ) | const |
Definition at line 282 of file config.cpp.
void rqt_mrta::config::Config::setId | ( | const QString & | id | ) |
Definition at line 29 of file config.cpp.
void rqt_mrta::config::Config::toolTipChanged | ( | const QString & | name, |
const QString & | tool_tip | ||
) | [signal] |
QString rqt_mrta::config::Config::toYaml | ( | ) | const [private] |
Definition at line 295 of file config.cpp.
void rqt_mrta::config::Config::typeChanged | ( | const QString & | name, |
const QMetaType::Type & | type | ||
) | [signal] |
QString rqt_mrta::config::Config::validate | ( | ) | const |
Definition at line 256 of file config.cpp.
void rqt_mrta::config::Config::valueChanged | ( | const QString & | name, |
const QVariant & | value | ||
) | [signal] |
void rqt_mrta::config::Config::write | ( | QDataStream & | stream | ) | const [virtual] |
Implements utilities::AbstractConfig.
Definition at line 221 of file config.cpp.
ArrayMap rqt_mrta::config::Config::arrays_ [private] |
QString rqt_mrta::config::Config::id_ [private] |
QVector<ParamInterface*> rqt_mrta::config::Config::params_ [private] |