VHISTlib
1.84.0.3018
|
A class for reading VHIST argfiles. More...
#include <argfilereader.h>
Public Member Functions | |
ArgfileReader () | |
Creates a new ArgfileReader. | |
~ArgfileReader () | |
Destroys the ArgfileReader. | |
ArgFile | readArgfile (const QString &content, const Environment *env=NULL) |
Parses the given argfile and generates an ArgFile object from it. |
A class for reading VHIST argfiles.
The class parses argfiles, replaces variables in the argfile and generates the result in an ArgFile object in a structured way.
ArgFile ArgfileReader::readArgfile | ( | const QString & | content, |
const Environment * | env = NULL |
||
) |
Parses the given argfile and generates an ArgFile object from it.
An optional Environment containing environment variables and their values can be passed to the method. If env is NULL
, variables inside the argfile will not be replaced.
content | The content of the argfile, which should be read. |
env | An optional hashtable containing environment variables. If a variable is used in the argfile but is not part of the environment, it is replaced by an empty string. If env is NULL , variables are not replaced. |