OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ClassHelper.h
Go to the documentation of this file.
1#pragma once
2
18#define A_PROPERTY(___type, ___name) private: ___type m_##___name; public: void set##___name(const ___type& _##___name) { m_##___name = _##___name; }; ___type ___name(void) const { return m_##___name; };
19
36#define A_PROPERTY_POINTER(___type, ___name) private: ___type m_##___name; public: void set##___name(___type _##___name) { m_##___name = _##___name; }; ___type ___name(void) const { return m_##___name; };
37
55#define A_PROPERTY_POINTERGET(___type, ___name) private: ___type m_##___name; public: void set##___name(___type _##___name) { m_##___name = _##___name; }; ___type get##___name(void) const { return m_##___name; };
56
73#define A_PROPERTY_GET(___type, ___name) private: ___type m_##___name; public: void set##___name(const ___type& _##___name) { m_##___name = _##___name; }; ___type get##___name(void) const { return m_##___name; };
74
91#define A_PROPERTY_REF(___type, ___name) private: ___type m_##___name; public: void set##___name(const ___type& _##___name) { m_##___name = _##___name; }; ___type& ___name(void) { return m_##___name; };
92
109#define A_PROPERTY_CREF(___type, ___name) private: ___type m_##___name; public: void set##___name(const ___type& _##___name) { m_##___name = _##___name; }; const ___type& ___name(void) const { return m_##___name; };
110
128#define A_PROPERTY_REFGET(___type, ___name) private: ___type m_##___name; public: void set##___name(const ___type& _##___name) { m_##___name = _##___name; }; ___type& get##___name(void) { return m_##___name; };
129
147#define A_PROPERTY_CREFGET(___type, ___name) private: ___type m_##___name; public: void set##___name(const ___type& _##___name) { m_##___name = _##___name; }; const ___type& get##___name(void) const { return m_##___name; };
148
154#define A_PROPERTY_IS(___name) private: bool m_##___name; public: void set##___name(bool _##___name) { m_##___name = _##___name; }; bool is##___name(void) const { return m_##___name; };
155
162#define A_PROPERTY_HAS(___name) private: bool m_##___name; public: void set##___name(bool _##___name) { m_##___name = _##___name; }; bool has##___name(void) const { return m_##___name; };
163
168#define A_PROPERTY_P(___type, ___name) protected: ___type m_##___name; public: void set##___name(const ___type& _##___name) { m_##___name = _##___name; }; const ___type& ___name(void) const { return m_##___name; };