Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
onwards/src/tiers/cmwA.mdl.hh
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
51 lines (46 sloc)
1.09 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//File generated by the C++ Middleware Writer version 1.15. | |
#ifndef cmwA_mdl_hh | |
#define cmwA_mdl_hh | |
inline void | |
cmwCredentials::marshalMembers (auto& buf)const{ | |
receive(buf,ambassadorID); | |
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); | |
buf.receive(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.template receive<messageID>(id); | |
mar(buf,::std::forward<decltype(t)>(t)...); | |
buf.fillInSize(maxLength); | |
}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(); | |
receiveBool(buf,a.size()==0); | |
if(a.size()>0){ | |
receive(buf,a); | |
buf.receive(b); | |
} | |
buf.fillInSize(maxLength); | |
}catch(...){buf.rollback();throw;} | |
}; | |
#endif |