-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathcmwA.mdl.hh
49 lines (43 loc) · 1.04 KB
/
cmwA.mdl.hh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//File generated by the C++ Middleware Writer version 1.15.
#pragma once
inline void
cmwCredentials::marshalMembers (auto& buf)const{
receive(buf,ambassID);
password.marshal(buf);
}
struct back{
static void mar (auto& buf
,cmwCredentials const& a){
a.marshal(buf);
}
static void mar (auto& buf
,cmwCredentials const& a
,::int32_t b){
a.marshal(buf);
receive(buf,b);
}
static void mar (auto& buf
,cmwRequest const& a){
a.marshal(buf);
}
template<messageID id,int maxLength=10000>
static void marshal (auto& buf,auto&&...t)try{
buf.reserveBytes(buf.getZ()+sizeof id);
mar(buf,::std::forward<decltype(t)>(t)...);
buf.fillInHdr(maxLength,id);
}catch(...){buf.rollback();throw;}
};
struct front{
template<int maxLength=10000>
static void marshal (auto& buf
,::cmw::stringPlus const& a={}
,::int8_t b={})try{
buf.reserveBytes();
receive(buf,a.size()==0);
if(a.size()>0){
receive(buf,a);
receive(buf,b);
}
buf.fillInSize(maxLength);
}catch(...){buf.rollback();throw;}
};