Scanframe Modular Application 0.1.0
Loading...
Searching...
No Matches
gii/qt/Macros.h
Go to the documentation of this file.
1#pragma once
2
3#include <gii/qt/Namespace.h>
4
5// clang-format off
10#define SF_DECL_INFO_ID(Name) \
11 [[nodiscard]] gii::IdType get##Name() const; \
12 void set##Name(gii::IdType id);
13
18#define SF_IMPL_INFO_ID(Class, Name, Instance) \
19 gii::IdType Class::get##Name() const \
20 { \
21 return (Instance).getDesiredId(); \
22 } \
23 \
24 void Class::set##Name(gii::IdType id) \
25 { \
26 (Instance).setup(id, true); \
27 }
28// clang-format on