diff options
author | Josh Blum | 2013-06-23 11:18:44 -0700 |
---|---|---|
committer | Josh Blum | 2013-06-23 11:18:44 -0700 |
commit | aab47788c038b9fe97243c3bbae49e72b814e419 (patch) | |
tree | 770beee081dc2587b8588f7afdb76671987f7f21 /lib/serialize_types.cpp | |
parent | 1cebdcfb645ca6abefaa5e2d8feac8140e95e5ad (diff) | |
download | sandhi-aab47788c038b9fe97243c3bbae49e72b814e419.tar.gz sandhi-aab47788c038b9fe97243c3bbae49e72b814e419.tar.bz2 sandhi-aab47788c038b9fe97243c3bbae49e72b814e419.zip |
gras: PMC and serialization hooks for Tag type
Diffstat (limited to 'lib/serialize_types.cpp')
-rw-r--r-- | lib/serialize_types.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/serialize_types.cpp b/lib/serialize_types.cpp index fde7277..ae4df65 100644 --- a/lib/serialize_types.cpp +++ b/lib/serialize_types.cpp @@ -54,6 +54,19 @@ void load(Archive & ar, gras::SBuffer & b, unsigned int version) BOOST_SERIALIZATION_SPLIT_FREE(gras::SBuffer) PMC_SERIALIZE_EXPORT(gras::SBuffer, "PMC<gras::SBuffer>") +/*********************************************************************** + * support for tag type + **********************************************************************/ +namespace boost { namespace serialization { +template <class Archive> +void serialize(Archive &ar, gras::Tag &t, const unsigned int) +{ + ar & t.offset; + ar & t.object; +} +}} + +PMC_SERIALIZE_EXPORT(gras::Tag, "PMC<gras::Tag>") /*********************************************************************** * support for special packet msg type |