Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #ifndef __BARRY_RECORD_MESSAGE_H__
00023 #define __BARRY_RECORD_MESSAGE_H__
00024
00025 #include "dll.h"
00026 #include "r_message_base.h"
00027
00028 namespace Barry {
00029
00030
00031
00032
00033
00034
00035
00036
00037
00038 class BXEXPORT Message : public MessageBase
00039 {
00040 public:
00041 void Clear()
00042 {
00043 MessageBase::Clear();
00044
00045 RecType = GetDefaultRecType();
00046 RecordId = 0;
00047 }
00048
00049
00050 static const char * GetDBName() { return "Messages"; }
00051 static uint8_t GetDefaultRecType() { return 0; }
00052 };
00053
00054 BXEXPORT inline std::ostream& operator<<(std::ostream &os, const Message &msg) {
00055 msg.Dump(os);
00056 return os;
00057 }
00058
00059
00060
00061 }
00062
00063 #endif
00064