OpenCurves
0.9
|
Details how an expression is referencing a plot sample. More...
#include <plotsample.h>
Public Member Functions | |
PlotSampleId (const QString &name=QString(), char quote= '\0', bool regex=false) | |
Constructor. More... | |
PlotSampleId (const QString &name, bool regex) | |
Constructor for unquoted references. More... | |
PlotSampleId (const PlotSampleId &other) | |
Copy constructor. More... | |
operator bool () const | |
Bool operator: true if name is set. More... | |
bool | operator! () const |
Negation operator: true if not set. More... | |
void | fixQuote () |
Ensures the quote character is set for regular expressions, defaulting to ('). | |
Public Attributes | |
QString | name |
The plot name or regular expression. | |
char | quote |
The quote char parsed to define the ID. | |
bool | regex |
True if name is a regular expression. | |
Details how an expression is referencing a plot sample.
Used by PlotSample
to manage the curve and source references The ID structure contains the referenced name, the quote character it was defined with (' or ") and whether the name represents a regular expression.
|
inline |
Constructor.
name | The sample name or expression. |
quote | The quote char: generally ' or " or the null character. |
regex | True if name is a regular expression. |
References fixQuote().
|
inline |
Constructor for unquoted references.
name | The sample name or expression. |
regex | True if name is a regular expression. |
References fixQuote().
|
inline |
Copy constructor.
other | The object to copy. |
|
inline |
Bool operator: true if name is set.
name
is not empty.
|
inline |
Negation operator: true if not set.
name
is empty.