Version: 9.12.0
QtxActionMgr::Reader Class Referenceabstract

Generic actions description files reader class. More...

#include <QtxActionMgr.h>

Inheritance diagram for QtxActionMgr::Reader:
Inheritance graph

Public Member Functions

 Reader ()
 Constructor. More...
 
virtual ~Reader ()
 Destructor. More...
 
QStringList options () const
 Get the list of options. More...
 
QString option (const QString &, const QString &=QString()) const
 Get option value. More...
 
void setOption (const QString &, const QString &)
 Set option value. More...
 
virtual bool read (const QString &, Creator &) const =0
 Read the file and fill and action manager with actions by using help actions creator. More...
 

Private Attributes

QMap< QString, QString > myOptions
 options map More...
 

Detailed Description

Generic actions description files reader class.

This class is used to read files of some format to create actions and fill an action manager with the actions automatically.

Constructor & Destructor Documentation

◆ Reader()

QtxActionMgr::Reader::Reader ( )

Constructor.

◆ ~Reader()

QtxActionMgr::Reader::~Reader ( )
virtual

Destructor.

Member Function Documentation

◆ option()

QString QtxActionMgr::Reader::option ( const QString &  name,
const QString &  def = QString() 
) const

Get option value.

If there is no such option the default value (def) is returned.

Parameters
nameoption name
defdefault option value
Returns
option value

◆ options()

QStringList QtxActionMgr::Reader::options ( ) const

Get the list of options.

Returns
options list

◆ read()

bool QtxActionMgr::Reader::read ( const QString &  fname,
Creator cr 
) const
pure virtual

Read the file and fill and action manager with actions by using help actions creator.

This method should be redefined in the subclasses.

Parameters
fnameXML file name
cractions creator
Returns
true on success and false in case of error

Implemented in QtxActionMgr::XMLReader.

◆ setOption()

void QtxActionMgr::Reader::setOption ( const QString &  name,
const QString &  value 
)

Set option value.

Parameters
nameoption name
valuenew option value

Member Data Documentation

◆ myOptions

QMap< QString, QString > QtxActionMgr::Reader::myOptions
private

options map


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