9#ifndef CLASSDESC_POLYPACKBASE_H
10#define CLASSDESC_POLYPACKBASE_H
20 virtual void pack(
pack_t&,
const string&)
const=0;
21 virtual void unpack(unpack_t&,
const string&)=0;
47 void pack(
pack_t& x,
const string& d)
const
48 {::pack(x,d,
static_cast<const T&
>(*
this));}
50 void unpack(unpack_t& x,
const string& d)
51 {::unpack(x,d,
static_cast<T&
>(*
this));}
57 static std::string name()
58 {
return "classdesc::PolyPackBase";}
62 static std::string name()
63 {
return "classdesc::PolyPack<"+typeName<T>()+
">";}
Definition pack_base.h:138
Contains definitions related to classdesc functionality.
interface for applying pack descriptors to polymorphic objects
Definition polyPackBase.h:19
utility class for defining pack descriptors for polymorphic types
Definition polyPackBase.h:46
Definition classdesc.h:571