Static Public Member Functions

ctkPluginFrameworkUtil Class Reference

#include <Libs/PluginFramework/ctkPluginFrameworkUtil_p.h>

List of all members.

Static Public Member Functions

static QList< QMap< QString,
QStringList > > 
parseEntries (const QString &a, const QString &s, bool single, bool unique, bool single_entry)

Detailed Description

Definition at line 29 of file ctkPluginFrameworkUtil_p.h.


Member Function Documentation

QList< QMap< QString, QStringList > > ctkPluginFrameworkUtil::parseEntries ( const QString &  a,
const QString &  s,
bool  single,
bool  unique,
bool  single_entry 
) [static]

Parse strings of format:

ENTRY (, ENTRY)* ENTRY = key (; key)* (; PARAM)* PARAM = attribute '=' value PARAM = directive ':=' value

Parameters:
a Attribute being parsed
s String to parse
single If true, only allow one key per ENTRY
unique Only allow unique parameters for each ENTRY.
single_entry If true, only allow one ENTRY is allowed.
Returns:
QMap<QString, QString> mapping attributes to values.
Exceptions:
std::invalid_argument If syntax error in input string.

Definition at line 214 of file ctkPluginFrameworkUtil.cpp.


The documentation for this class was generated from the following files:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines