xdrpp
RFC4506 XDR compiler and message library
Static Public Member Functions | List of all members
xdr::archive_adapter< Archive > Struct Template Reference

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 *)
 

Detailed Description

template<typename Archive>
struct xdr::archive_adapter< Archive >

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.

Definition at line 125 of file types.h.


The documentation for this struct was generated from the following file: