The ShapeIdPrivate class provides private implementation for ShapeId.
More...
|
| ShapeIdPrivate (ShapeId *const q) |
|
void | setShapeId (const QString &shapeId) |
| Splits shapeId into its components (namespace, shape name and member name) and assigns them to the equivalent object members.
|
|
|
static | Q_LOGGING_CATEGORY (lc, "smithy.ShapeId", QtInfoMsg) |
| Logging category for ShapeID.
|
|
The ShapeIdPrivate class provides private implementation for ShapeId.
Definition at line 19 of file shapeid_p.h.
◆ ShapeIdPrivate()
ShapeIdPrivate::ShapeIdPrivate |
( |
ShapeId *const | q | ) |
|
|
explicit |
Constructs a new ShapeIdPrivate object with public implementation q.
Definition at line 335 of file shapeid.cpp.
336{
337
338}
ShapeId * q_ptr
Internal q-pointer.
References q_ptr.
◆ setShapeId()
void ShapeIdPrivate::setShapeId |
( |
const QString & | shapeId | ) |
|
Splits shapeId into its components (namespace, shape name and member name) and assigns them to the equivalent object members.
Both the namespace and member name are optional; their equivalent object members will be set to empty strings if not present in shapeId.
Definition at line 347 of file shapeid.cpp.
348{
349 const int sep1 = shapeId.indexOf(QLatin1Char('#'));
350 const int sep2 = shapeId.lastIndexOf(QLatin1Char('$'));
351 if (sep1 > 0) nameSpace = shapeId.mid(0, sep1);
352 if (sep2 > 0) memberName = shapeId.mid(sep2+1);
353 shapeName = shapeId.mid(sep1+1, sep2-sep1-1);
354}
◆ memberName
QString ShapeIdPrivate::memberName |
|
private |
◆ nameSpace
QString ShapeIdPrivate::nameSpace |
|
private |
◆ q_ptr
◆ shapeName
QString ShapeIdPrivate::shapeName |
|
private |
The documentation for this class was generated from the following files: