ex

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Committer:
TMBOY
Date:
Tue Jul 18 16:54:45 2017 +0800
Revision:
47:9e361da97763
?

Who changed what in which revision?

UserRevisionLine numberNew contents of line
TMBOY 47:9e361da97763 1 // Copyright 2017 Baidu Inc. All Rights Reserved.
TMBOY 47:9e361da97763 2 // Author: Su Hao (suhao@baidu.com)
TMBOY 47:9e361da97763 3 //
TMBOY 47:9e361da97763 4 // Description: Message
TMBOY 47:9e361da97763 5
TMBOY 47:9e361da97763 6 #ifndef BAIDU_IOT_TINYDU_IOT_OS_SRC_IOT_BAIDU_CA_SCHEDULER_BAIDU_CA_MESSAGE_H
TMBOY 47:9e361da97763 7 #define BAIDU_IOT_TINYDU_IOT_OS_SRC_IOT_BAIDU_CA_SCHEDULER_BAIDU_CA_MESSAGE_H
TMBOY 47:9e361da97763 8
TMBOY 47:9e361da97763 9 #include <cstddef>
TMBOY 47:9e361da97763 10
TMBOY 47:9e361da97763 11 namespace duer {
TMBOY 47:9e361da97763 12
TMBOY 47:9e361da97763 13 class Message {
TMBOY 47:9e361da97763 14 public:
TMBOY 47:9e361da97763 15 Message(int what, void* object);
TMBOY 47:9e361da97763 16
TMBOY 47:9e361da97763 17 Message(const Message& message);
TMBOY 47:9e361da97763 18
TMBOY 47:9e361da97763 19 int get_what() const;
TMBOY 47:9e361da97763 20
TMBOY 47:9e361da97763 21 void* get_object() const;
TMBOY 47:9e361da97763 22 private:
TMBOY 47:9e361da97763 23 int _what;
TMBOY 47:9e361da97763 24 void* _object;
TMBOY 47:9e361da97763 25 };
TMBOY 47:9e361da97763 26
TMBOY 47:9e361da97763 27 } // namespace duer
TMBOY 47:9e361da97763 28
TMBOY 47:9e361da97763 29 #endif // BAIDU_IOT_TINYDU_IOT_OS_SRC_IOT_BAIDU_CA_SCHEDULER_BAIDU_CA_MESSAGE_H