VR-Forces 4.5 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Macros

Go to the source code of this file.

Namespaces

namespace  boost
 Author: Philipp Moeller.
namespace  boost::archive
namespace  boost::serialization

Macros

#define DT_DECLARE_serialize_FUNCTIONS
 Declare all the serialize functions to use.
#define DT_DECLARE_PORTABLE_serialize_FUNCTIONS
#define DT_DECLARE_ALL_serialize_FUNCTIONS
#define DT_SERIALIZE(NAME)   boost::serialization::make_nvp(BOOST_PP_STRINGIZE(NAME),NAME)
 Serialize a variable using the variables own name.
#define DT_SERIALIZE_REMOVE_PREFIX(NAME, PREFIX_SIZE)   boost::serialization::make_nvp(BOOST_PP_STRINGIZE(NAME) + PREFIX_SIZE,NAME)
 Helper macro to serialize a variable and but with a name that starts several characters in (not that this is VERY DANGEROUS unless the prefix size is completely constant (like 'my' or 'the' or 'm_')
#define DT_SERIALIZE_MEMBER(NAME)   DT_SERIALIZE_REMOVE_PREFIX(NAME,2)
 Serialize a Member whose name starts with 'my' If your member does not have that name, use Dt_SERIALIZE.
#define DT_SERIALIZE_BASE(BASE_CLASS)   BOOST_SERIALIZATION_BASE_OBJECT_NVP(BASE_CLASS)
 Serialize the base class implementation.

Detailed Description

Macro Definition Documentation

#define DT_DECLARE_serialize_FUNCTIONS
Value:
friend class boost::serialization::access;\
void serialize(boost::archive::xml_oarchive&, const unsigned int version = 0);\
void serialize(boost::archive::xml_iarchive&, const unsigned int version = 0);\
void serialize(boost::archive::binary_oarchive&, const unsigned int version = 0);\
void serialize(boost::archive::binary_iarchive&, const unsigned int version = 0);\
void serialize(boost::archive::text_oarchive&, const unsigned int version = 0);\
void serialize(boost::archive::text_iarchive&, const unsigned int version = 0);

Declare all the serialize functions to use.

#define DT_DECLARE_PORTABLE_serialize_FUNCTIONS
Value:
friend class boost::serialization::access;\
void serialize(portable_binary_oarchive&, const unsigned int version = 0);\
void serialize(portable_binary_iarchive&, const unsigned int version = 0);
#define DT_DECLARE_ALL_serialize_FUNCTIONS
Value:
friend class boost::serialization::access;\
void serialize(boost::archive::xml_oarchive&, const unsigned int version = 0);\
void serialize(boost::archive::xml_iarchive&, const unsigned int version = 0);\
void serialize(boost::archive::binary_oarchive&, const unsigned int version = 0);\
void serialize(boost::archive::binary_iarchive&, const unsigned int version = 0);\
void serialize(boost::archive::text_oarchive&, const unsigned int version = 0);\
void serialize(boost::archive::text_iarchive&, const unsigned int version = 0);\
void serialize(portable_binary_oarchive&, const unsigned int version = 0);\
void serialize(portable_binary_iarchive&, const unsigned int version = 0);
#define DT_SERIALIZE (   NAME)    boost::serialization::make_nvp(BOOST_PP_STRINGIZE(NAME),NAME)

Serialize a variable using the variables own name.

#define DT_SERIALIZE_REMOVE_PREFIX (   NAME,
  PREFIX_SIZE 
)    boost::serialization::make_nvp(BOOST_PP_STRINGIZE(NAME) + PREFIX_SIZE,NAME)

Helper macro to serialize a variable and but with a name that starts several characters in (not that this is VERY DANGEROUS unless the prefix size is completely constant (like 'my' or 'the' or 'm_')

#define DT_SERIALIZE_MEMBER (   NAME)    DT_SERIALIZE_REMOVE_PREFIX(NAME,2)
#define DT_SERIALIZE_BASE (   BASE_CLASS)    BOOST_SERIALIZATION_BASE_OBJECT_NVP(BASE_CLASS)

Document ID: Generated on Thu Mar 23 18:54:12 EDT 2017 from SVN revision 174804
Copyright © 2005-2017 VT MÄK. All Rights Reserved (www.mak.com)