Wiselib
wiselib.testing/algorithms/bgu_clustering/Message.h
Go to the documentation of this file.
00001 #ifndef MESSAGE_H_
00002 #define MESSAGE_H_
00003 
00004 #include "utils.h"
00005 
00006 namespace wiselib {
00007 
00008 class MessageDestination;
00009 
00010 class Message
00011 {
00012 public:
00013    Message(uint8_t opcode);
00014    virtual ~Message();
00015 
00016    virtual error_code_t serialize(uint8_t *buffer, uint32_t buffer_size)=0;
00017    virtual error_code_t applyTo(MessageDestination* dest)=0;
00018 private:
00019    uint8_t _opcode;
00020 };
00021 
00022 }
00023 #endif /* MESSAGE_H_ */
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines