blob: b4a00ce91b3edbda82289565927ad93be1902335 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
class UchSimpleMessage : public UchMessage {
public:
lword Data;
UchSimpleMessage () { Data = 0; }
UchSimpleMessage (lword d) { Data = d; }
void WriteTo (UchMsgBuffer& b) { b << Data; }
void ReadFrom (UchMsgBuffer& b, lword) { b >> Data; }
};
class UchStringMessage : public UchMessage {
public:
char* Data;
UchStringMessage () { Data = 0; }
UchStringMessage (char* d) { Data = d; }
void WriteTo (UchMsgBuffer& b) { b << Data; }
void ReadFrom (UchMsgBuffer& b, lword l) { Data = (char*) b.Buffer (); b.Flush ((int) l); }
void SetData (char* d) { Data = d; }
};
|