trikRuntime
trikKernel::RcReader Class Reference

Simple trikrc file parser. More...

#include <rcReader.h>

Inheritance diagram for trikKernel::RcReader:
Collaboration diagram for trikKernel::RcReader:

Public Member Functions

 RcReader (const QString &rcFilePath, QObject *parent=0)
 Constructor. More...
 
void read ()
 Clears data from previous trikrc reading and reads it again. More...
 
QString value (const QString &name) const
 Get value of variable in trikrc. More...
 

Detailed Description

Simple trikrc file parser.

Constructor & Destructor Documentation

RcReader::RcReader ( const QString &  rcFilePath,
QObject *  parent = 0 
)
explicit

Constructor.

Parameters
rcFilePath- trikrc file path.
parent- parent of this object in Qt object hierarchy.

Member Function Documentation

void RcReader::read ( )

Clears data from previous trikrc reading and reads it again.

QString RcReader::value ( const QString &  name) const

Get value of variable in trikrc.

Parameters
name- variable name.
Returns
value if variable is found and empty string otherwise.

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