xdrpp
RFC4506 XDR compiler and message library
|
This is used to apply an archive to a field. More...
#include <types.h>
Static Public Member Functions | |
template<typename T > | |
static void | apply (Archive &ar, T &&t, const char *) |
This is used to apply an archive to a field.
It is designed as a template class that can be specialized to various archive formats, since some formats may want the fied name and others not. Other uses include translating types to supertypes, e.g., so an archive can handle std::string
instead of xdr::xstring
. Never invoke archive_adapter::apply
directly. Instead, call xdr::archive
, as the latter may be specialized for certain types.