Version: 8.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
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

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

QtxActionMgr::Reader::Reader ( )
QtxActionMgr::Reader::~Reader ( )
virtual

Member Function Documentation

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

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

Parameters
nameoption name
defdefault option value
Returns
option value
QStringList QtxActionMgr::Reader::options ( ) const
Returns
options list
bool QtxActionMgr::Reader::read ( const QString &  fname,
Creator cr 
) const
pure virtual

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.

void QtxActionMgr::Reader::setOption ( const QString &  name,
const QString &  value 
)
Parameters
nameoption name
valuenew option value

Member Data Documentation

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

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