VHISTlib  1.84.0.3018
Public Member Functions
vhist::ArgfileParser Class Reference

A class which parses an argfile and returns a list of argument strings. More...

#include <argfileparser.h>

List of all members.

Public Member Functions

 ArgfileParser ()
 Creates a new ArgfileParser object.
 ~ArgfileParser ()
 Destroys the ArfileParser object.
QStringList parseArgfile (const QString &content, const Environment *env=NULL)
 Parses the given argfile and returns a list of string arguments similar to argv.
TokenList getHighlighterList (const QString &content)

Detailed Description

A class which parses an argfile and returns a list of argument strings.

Variables used in the argfile are replaced using an environment hashtable.


Member Function Documentation

QStringList ArgfileParser::parseArgfile ( const QString &  content,
const Environment *  env = NULL 
)

Parses the given argfile and returns a list of string arguments similar to argv.

Parameters:
contentThe content of an argfile, which should be parsed.
envAn optional Environment containing variable names and values. Variables used inside the argfile are replaced by the values from the Environment. If a variable does not appear within the Environment, it is replaced by an empty string. If env is NULL, no variables are replaced.
Returns:
A list containing the single arguments as strings.
Note:
Since $ signs inside an argfile are used to indicate variables, literal $ signs within the argfile are represented by two $ signs in the argument list returned by parseArgfile().

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

VHISTlib 1.84.0.3018 of Jun 28 2013, generated by doxygen.