VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtSerialize.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtSerialize.h,v $ $Revision: 1.7 $ $State: Exp $
7 ******************************************************************************/
8 
11 
12 #ifndef DtSerialize_H_
13 #define DtSerialize_H_
14 
15 
17 //
22 //
24 //
27 //
34 //
37 //
40 //
42 //
47 //
54 //
57 //
68 //
69 //
80 //
83 //
93 
94 
95 #include <boost/preprocessor/stringize.hpp>
96 #include <boost/serialization/nvp.hpp>
97 
98 class portable_binary_oarchive;
99 class portable_binary_iarchive;
100 
101 #ifdef __rhentws8__
102 namespace MAKBoost_1_63 {} namespace boost = MAKBoost_1_63; namespace MAKBoost_1_63
103 #else
104 namespace boost
105 #endif
106 {
107  namespace archive
108  {
109  class xml_oarchive;
110  class xml_iarchive;
111  class binary_oarchive;
112  class binary_iarchive;
113  class text_oarchive;
114  class text_iarchive;
115  }
116  namespace serialization
117  {
118  class access;
119  }
120 }
121 
123 #define DT_DECLARE_serialize_FUNCTIONS\
124  friend class boost::serialization::access;\
125  void serialize(boost::archive::xml_oarchive&, const unsigned int version = 0);\
126  void serialize(boost::archive::xml_iarchive&, const unsigned int version = 0);\
127  void serialize(boost::archive::binary_oarchive&, const unsigned int version = 0);\
128  void serialize(boost::archive::binary_iarchive&, const unsigned int version = 0);\
129  void serialize(boost::archive::text_oarchive&, const unsigned int version = 0);\
130  void serialize(boost::archive::text_iarchive&, const unsigned int version = 0);
131 
132 #define DT_DECLARE_PORTABLE_serialize_FUNCTIONS\
133  friend class boost::serialization::access;\
134  void serialize(portable_binary_oarchive&, const unsigned int version = 0);\
135  void serialize(portable_binary_iarchive&, const unsigned int version = 0);
136 
137 #define DT_DECLARE_ALL_serialize_FUNCTIONS\
138  friend class boost::serialization::access;\
139  void serialize(boost::archive::xml_oarchive&, const unsigned int version = 0);\
140  void serialize(boost::archive::xml_iarchive&, const unsigned int version = 0);\
141  void serialize(boost::archive::binary_oarchive&, const unsigned int version = 0);\
142  void serialize(boost::archive::binary_iarchive&, const unsigned int version = 0);\
143  void serialize(boost::archive::text_oarchive&, const unsigned int version = 0);\
144  void serialize(boost::archive::text_iarchive&, const unsigned int version = 0);\
145  void serialize(portable_binary_oarchive&, const unsigned int version = 0);\
146  void serialize(portable_binary_iarchive&, const unsigned int version = 0);
147 
148 
150 #define DT_SERIALIZE(NAME)\
151  boost::serialization::make_nvp(BOOST_PP_STRINGIZE(NAME),NAME)
152 
156 #define DT_SERIALIZE_REMOVE_PREFIX(NAME,PREFIX_SIZE)\
157  boost::serialization::make_nvp(BOOST_PP_STRINGIZE(NAME) + PREFIX_SIZE,NAME)
158 
161 #define DT_SERIALIZE_MEMBER(NAME) DT_SERIALIZE_REMOVE_PREFIX(NAME,2)
162 
164 #define DT_SERIALIZE_BASE(BASE_CLASS) BOOST_SERIALIZATION_BASE_OBJECT_NVP(BASE_CLASS)
165 
166 #endif

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)