15 const QString &description,
const QString &example) {
55 if (_description.size())
56 return _cmd +
": " + _description;
62 stream << obj._cmd << obj._arg;
68 decltype (obj._cmd) cmd;
69 stream >> cmd >> obj._arg;
76 return left.
cmd() == right.
cmd();
The Feature class it is atomic type for describe service command.
void setCmd(const QString &cmd)
setCmd This method set new value of the command.
QString description() const
description This method return description message of the command. This string display in a terminal ...
void setArg(const QString &arg)
setArg This method sets arg value for this object.
void setExample(const QString &example)
setExample This method sets a new example.
void setDescription(const QString &description)
setDescription This method sets description for command.
QString cmd() const
cmd This method return command of the feature.
QString arg() const
arg This method return argument value. The argument value has a qvariant type, so this object maybe h...
QString example() const
example This is exmaple of using this command.
QString toString() const
toString This is general method of the converting command to string.
The Patronum namespace - It is main name space of Patronum Library. The Patronum library support the ...
uint qHash(const Feature &feature)
bool operator==(const Feature &left, const Feature &right)
QDataStream & operator>>(QDataStream &stream, Feature &obj)
QDataStream & operator<<(QDataStream &stream, const Feature &obj)