Cute Chess  0.1
Public Member Functions | Public Attributes | List of all members
MatchParser::Option Struct Reference

#include <matchparser.h>

Public Member Functions

QMap< QString, QStringtoMap (const QString &validArgs) const
 

Public Attributes

QString name
 The name of the option.
 
QVariant value
 The value of the option.
 

Detailed Description

A parsed command line option.

Member Function Documentation

QMap< QString, QString > MatchParser::Option::toMap ( const QString validArgs) const

Returns a QMap containing a StringList option's parameters as name-value pairs.

validArgs should contain all acceptable argument names for this option, separated by the '|' character (eg. "argument1|argument2").

If this option's arguments don't match the ones in validArgs exactly, an empty map is returned.


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