Patronum
Patronum::Feature Class Reference

The Feature class - it is atomic type for describe service command. More...

#include <feature.h>

Collaboration diagram for Patronum::Feature:
Collaboration graph

Public Member Functions

 Feature ()=default
 
 Feature (const QString &cmd, const QVariant &arg={}, const QString &description="", const QString &example="")
 
QString cmd () const
 
void setCmd (const QString &cmd)
 
QVariant arg () const
 
void setArg (const QVariantList &arg)
 
QString description () const
 
void setDescription (const QString &description)
 
QString example () const
 
void setExample (const QString &example)
 

Friends

QDataStream & operator<< (QDataStream &stream, const Feature &obj)
 
QDataStream & operator>> (QDataStream &stream, Feature &obj)
 

Detailed Description

The Feature class - it is atomic type for describe service command.

Definition at line 15 of file feature.h.

Constructor & Destructor Documentation

◆ Feature() [1/2]

Patronum::Feature::Feature ( )
default

◆ Feature() [2/2]

Patronum::Feature::Feature ( const QString &  cmd,
const QVariant &  arg = {},
const QString &  description = "",
const QString &  example = "" 
)

Definition at line 7 of file feature.cpp.

Here is the call graph for this function:

Member Function Documentation

◆ arg()

QVariant Patronum::Feature::arg ( ) const

Definition at line 23 of file feature.cpp.

Here is the caller graph for this function:

◆ cmd()

QString Patronum::Feature::cmd ( ) const

Definition at line 15 of file feature.cpp.

Here is the caller graph for this function:

◆ description()

QString Patronum::Feature::description ( ) const

Definition at line 31 of file feature.cpp.

Here is the caller graph for this function:

◆ example()

QString Patronum::Feature::example ( ) const

Definition at line 39 of file feature.cpp.

Here is the caller graph for this function:

◆ setArg()

void Patronum::Feature::setArg ( const QVariantList &  arg)

Definition at line 27 of file feature.cpp.

Here is the call graph for this function:

◆ setCmd()

void Patronum::Feature::setCmd ( const QString &  cmd)

Definition at line 19 of file feature.cpp.

Here is the call graph for this function:

◆ setDescription()

void Patronum::Feature::setDescription ( const QString &  description)

Definition at line 35 of file feature.cpp.

Here is the call graph for this function:

◆ setExample()

void Patronum::Feature::setExample ( const QString &  example)

Definition at line 43 of file feature.cpp.

Here is the call graph for this function:

Friends And Related Function Documentation

◆ operator<<

QDataStream& operator<< ( QDataStream &  stream,
const Feature obj 
)
friend

Definition at line 47 of file feature.cpp.

◆ operator>>

QDataStream& operator>> ( QDataStream &  stream,
Feature obj 
)
friend

Definition at line 53 of file feature.cpp.


The documentation for this class was generated from the following files: