KTextTemplate

typeaccessor.h
Go to the documentation of this file.
1/*
2 This file is part of the KTextTemplate library
3
4 SPDX-FileCopyrightText: 2010 Stephen Kelly <steveire@gmail.com>
5
6 SPDX-License-Identifier: LGPL-2.1-or-later
7
8*/
9
10#ifndef KTEXTTEMPLATE_TYPEACCESSOR_H
11#define KTEXTTEMPLATE_TYPEACCESSOR_H
12
13#include "ktexttemplate_export.h"
14
15#include <QObject>
16
17/// @file
18
19namespace KTextTemplate
20{
21
22#ifndef K_DOXYGEN
23template<typename T>
24struct TypeAccessor {
25 static QVariant lookUp(const T object, const QString &property);
26};
27
28template<typename T>
29struct TypeAccessor<T *> {
30 static QVariant lookUp(const T *const object, const QString &property);
31};
32
33template<typename T>
34struct TypeAccessor<T &> {
35 static QVariant lookUp(const T &object, const QString &property);
36};
37#endif
38}
39
40#endif
The KTextTemplate namespace holds all public KTextTemplate API.
Definition Mainpage.dox:8
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:10:48 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.