05Robot 3.0

- Main Page
- Modules
- Classes
- Files

- File List
- File Members

Macros
common.h File Reference

Go to the source code of this file.

## Macros
#define | MYSHAREDLIB_EXPORT Q_DECL_IMPORT
#define | ADD_PROPERTY(member, _type)
#define | ADD_STREAM(member, _type)

## Macro Definition Documentation

#define ADD_PROPERTY | ( |  | member,
|  |  | _type
| ) |  |

Value:
public: \ \
void Set##member(_type _arg_##member) \
{ \
m_##member = _arg_##member;\
} \ \
_type member() const\
{ \
return m_##member;\
} \
private: \
_type m_##member; \
Q_PROPERTY(_type member READ member WRITE Set##member DESIGNABLE true USER true) \
public:

#define ADD_STREAM | ( |  | member,
|  |  | _type
| ) |  |

Value:
public: \ \
int member##_IsEmpty() \
{ \
return m_##member.isEmpty();\
} \ \
void member##_Enqueue(_type t)\
{ \
m_##member##.enqueue(t);\
} \
_type member##_Dequeue() const\
{ \
return m_##member.dequeue();\
} \
private: \
QQueue<_type> m_##member;

#define MYSHAREDLIB_EXPORT Q_DECL_IMPORT

05Robot - shared routines

Author
  P.Kaczmarek,J.Tomczynski,T.Mankowski

Version
  1.0 2017