Neonode zForce(TM) SDK
FloatingProtectionMessage.h
Go to the documentation of this file.
1 
9 #if !defined(MESSAGE_FLOATINGPROTECTIONMESSAGE_FLOATINGPROTECTIONMESSAGE_H) && \
10  !defined(CONTAINS_FLOATINGPROTECTIONMESSAGE)
11 
12 #ifndef ZFORCECOMMON_H
13  #error Please include "zForceCommon.h" before this file.
14 #endif // ZFORCECOMMON_H
15 
22 {
23 #endif // !defined(MESSAGE_FLOATINGPROTECTIONMESSAGE.._H) && !defined(CONTAINS_FLOATINGPROTECTIONMESSAGE)
24 #if !defined(MESSAGE_FLOATINGPROTECTIONMESSAGE_FLOATINGPROTECTIONMESSAGE_H) && \
25  !defined(CONTAINS_FLOATINGPROTECTIONMESSAGE)
26  #define CONTAINS_MESSAGE
27  #include <Message.h>
28  #undef CONTAINS_MESSAGE
29  bool Enabled;
30  bool HasEnabled;
31  uint32_t Time;
32  bool HasTime;
33 #endif // !defined(MESSAGE_FLOATINGPROTECTIONMESSAGE.._H) && !defined(CONTAINS_FLOATINGPROTECTIONMESSAGE)
34 #if !defined(MESSAGE_FLOATINGPROTECTIONMESSAGE_FLOATINGPROTECTIONMESSAGE_H) && \
35  !defined(CONTAINS_FLOATINGPROTECTIONMESSAGE)
36 };
37 
38 #ifdef __cplusplus
39 extern "C"
40 {
41 #endif // __cplusplus
42 
58 DLLINTERNAL FloatingProtectionMessage * FloatingProtectionMessage_New (MessageGroup messageGroup, uint32_t size);
59 
60 #ifdef __cplusplus
61 }
62 #endif // __cplusplus
63 
64 #define MESSAGE_FLOATINGPROTECTIONMESSAGE_FLOATINGPROTECTIONMESSAGE_H
65 #endif // !defined(MESSAGE_FLOATINGPROTECTIONMESSAGE.._H) && !defined(CONTAINS_FLOATINGPROTECTIONMESSAGE)
66 
Base class for all Messages.
bool HasTime
True if the message contained this value.
Definition: FloatingProtectionMessage.h:32
uint32_t Time
Floating Protection time in ms.
Definition: FloatingProtectionMessage.h:31
MessageGroup
Enum describing the different groups a message can belong to.
Definition: zForceTypes.h:128
DLLINTERNAL FloatingProtectionMessage * FloatingProtectionMessage_New(MessageGroup messageGroup, uint32_t size)
Internal constructor for FloatingProtectionMessage.
bool Enabled
Is Floating Protection Enabled??
Definition: FloatingProtectionMessage.h:29
bool HasEnabled
True if the message contained this value.
Definition: FloatingProtectionMessage.h:30
This structure represents a floating protection message.
Definition: FloatingProtectionMessage.h:21