Patronum
|
The Feature class it is atomic type for describe service command. More...
#include <PFeature.h>
Public Member Functions | |
Feature ()=default | |
Feature (const QString &cmd, const QString &arg={}, const QString &description="", const QString &example="") | |
QString | cmd () const |
cmd This method return command of the feature. | |
void | setCmd (const QString &cmd) |
setCmd This method set new value of the command. | |
QString | arg () const |
arg This method return argument value. The argument value has a qvariant type, so this object maybe have a list or array type. | |
void | setArg (const QString &arg) |
setArg This method sets arg value for this object. | |
QString | description () const |
description This method return description message of the command. This string display in a terminal application in the help section. | |
void | setDescription (const QString &description) |
setDescription This method sets description for command. | |
QString | example () const |
example This is exmaple of using this command. | |
void | setExample (const QString &example) |
setExample This method sets a new example. | |
QString | toString () const |
toString This is general method of the converting command to string. | |
Friends | |
PATRONUM_LIBRARYSHARED_EXPORT friend QDataStream & | operator<< (QDataStream &stream, const Feature &obj) |
PATRONUM_LIBRARYSHARED_EXPORT friend QDataStream & | operator>> (QDataStream &stream, Feature &obj) |
PATRONUM_LIBRARYSHARED_EXPORT friend bool | operator== (const Feature &left, const Feature &right) |
The Feature class it is atomic type for describe service command.
Definition at line 21 of file PFeature.h.
|
explicitdefault |
|
explicit |
QString Patronum::Feature::arg | ( | ) | const |
arg This method return argument value. The argument value has a qvariant type, so this object maybe have a list or array type.
Definition at line 30 of file PFeature.cpp.
QString Patronum::Feature::cmd | ( | ) | const |
cmd This method return command of the feature.
Definition at line 22 of file PFeature.cpp.
QString Patronum::Feature::description | ( | ) | const |
description This method return description message of the command. This string display in a terminal application in the help section.
Definition at line 38 of file PFeature.cpp.
QString Patronum::Feature::example | ( | ) | const |
example This is exmaple of using this command.
Definition at line 46 of file PFeature.cpp.
void Patronum::Feature::setArg | ( | const QString & | arg | ) |
setArg This method sets arg value for this object.
arg | This is a new value. |
Definition at line 34 of file PFeature.cpp.
void Patronum::Feature::setCmd | ( | const QString & | cmd | ) |
setCmd This method set new value of the command.
cmd |
Definition at line 26 of file PFeature.cpp.
void Patronum::Feature::setDescription | ( | const QString & | description | ) |
setDescription This method sets description for command.
description | This is new value of the description command. |
Definition at line 42 of file PFeature.cpp.
void Patronum::Feature::setExample | ( | const QString & | example | ) |
setExample This method sets a new example.
example | This is a new example value. |
Definition at line 50 of file PFeature.cpp.
QString Patronum::Feature::toString | ( | ) | const |
toString This is general method of the converting command to string.
Definition at line 54 of file PFeature.cpp.
|
friend |
Definition at line 61 of file PFeature.cpp.
|
friend |
Definition at line 75 of file PFeature.cpp.
|
friend |
Definition at line 67 of file PFeature.cpp.