ex

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

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers baidu_ca_message.h Source File

baidu_ca_message.h

00001 // Copyright 2017 Baidu Inc. All Rights Reserved.
00002 // Author: Su Hao (suhao@baidu.com)
00003 //
00004 // Description: Message
00005 
00006 #ifndef BAIDU_IOT_TINYDU_IOT_OS_SRC_IOT_BAIDU_CA_SCHEDULER_BAIDU_CA_MESSAGE_H
00007 #define BAIDU_IOT_TINYDU_IOT_OS_SRC_IOT_BAIDU_CA_SCHEDULER_BAIDU_CA_MESSAGE_H
00008 
00009 #include <cstddef>
00010 
00011 namespace duer {
00012 
00013 class Message {
00014 public:
00015     Message(int what, void* object);
00016 
00017     Message(const Message& message);
00018 
00019     int get_what() const;
00020 
00021     void* get_object() const;
00022 private:
00023     int     _what;
00024     void*   _object;
00025 };
00026 
00027 } // namespace duer
00028 
00029 #endif // BAIDU_IOT_TINYDU_IOT_OS_SRC_IOT_BAIDU_CA_SCHEDULER_BAIDU_CA_MESSAGE_H