Smithy Qt 0.1.0-pre
Internal development documentation
Loading...
Searching...
No Matches
shapeid_p.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2013-2025 Paul Colby <git@colby.id.au>
2// SPDX-License-Identifier: LGPL-3.0-or-later
3
4/*!
5 * \file
6 * Declares the ShapeIdPrivate class.
7 */
8
9#ifndef QTSMITHY_SHAPEID_P_H
10#define QTSMITHY_SHAPEID_P_H
11
12#include <qtsmithy/shapeid.h>
13
14#include <QCoreApplication>
15#include <QLoggingCategory>
16
18
20{
21Q_DECLARE_TR_FUNCTIONS(ShapeId);
22
23public:
24 explicit ShapeIdPrivate(ShapeId * const q);
25
26 void setShapeId(const QString &shapeId);
27
28protected:
29 ShapeId * q_ptr; ///< Internal q-pointer.
30 static Q_LOGGING_CATEGORY(lc, "smithy.ShapeId", QtInfoMsg); ///< Logging category for ShapeID.
31
32private:
33 QString memberName;
34 QString nameSpace;
35 QString shapeName;
36
37 Q_DECLARE_PUBLIC(ShapeId)
39};
40
42
43#endif // QTSMITHY_SHAPEID_P_H
ShapeId * q_ptr
Internal q-pointer.
Definition shapeid_p.h:29
ShapeIdPrivate(ShapeId *const q)
Definition shapeid.cpp:335
static Q_LOGGING_CATEGORY(lc, "smithy.ShapeId", QtInfoMsg)
Logging category for ShapeID.
void setShapeId(const QString &shapeId)
Splits shapeId into its components (namespace, shape name and member name) and assigns them to the eq...
Definition shapeid.cpp:347
The ShapeId class provides a Qt representation of a Smithy Shape ID.
Definition shapeid.h:29
#define QTSMITHY_EXPORT
QtSmithy library export/import macro.
#define QTSMITHY_BEGIN_NAMESPACE
Macro for starting the QtSmithy library's top-most namespace (if one is defined).
#define QTSMITHY_BEFRIEND_TEST(Class)
Macro for befriending a related unit test class, but only when QT_TESTLIB_LIB is defined.
#define QTSMITHY_END_NAMESPACE
Macro for ending the QtSmithy library's top-most namespace (if one is defined).
Declares the ShapeId class.