Logo
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
boost_impl.hh
Go to the documentation of this file.
1 //
5 //
6 #pragma once
7 
8 // 1) Add your class here
9 #include "message.hh"
10 #include "fileinfo.hh"
11 #include "filelist.hh"
12 #include "blockinfo.hh"
13 #include "reply.hh"
14 #include "filerequest.hh"
15 #include "blockrequest.hh"
16 #include "filedescription.hh"
17 #include "filedel.hh"
18 #include "formatrequest.hh"
19 #include "fileexist.hh"
20 #include "fileupdate.hh"
21 #include "metadata.hh"
22 #include "IOoperation.hh"
23 #include "../common/blockmetadata.hh"
24 #include "../common/logical_block_metadata.hh"
25 
26 #include <boost/serialization/export.hpp>
27 #include <boost/serialization/tracking.hpp>
28 #include <boost/serialization/base_object.hpp>
29 
30 #ifndef BASE_OBJECT
31 #define BASE_OBJECT(X,Y) \
32  boost::serialization::make_nvp(#X, \
33  boost::serialization::base_object<X>(Y));
34 #endif
35 
36 // 2) Also here
37 namespace boost{
38 namespace serialization{
39 
40 template <typename Archive> void serialize (Archive&, eclipse::messages::Message&, unsigned);
41 template <typename Archive> void serialize (Archive&, eclipse::messages::FileInfo&, unsigned);
42 template <typename Archive> void serialize (Archive&, eclipse::messages::FileUpdate&, unsigned);
43 template <typename Archive> void serialize (Archive&, eclipse::messages::FileList&, unsigned);
44 template <typename Archive> void serialize (Archive&, eclipse::messages::BlockInfo&, unsigned);
45 template <typename Archive> void serialize (Archive&, eclipse::messages::Reply&, unsigned);
46 template <typename Archive> void serialize (Archive&, eclipse::messages::FileRequest&, unsigned);
47 template <typename Archive> void serialize (Archive&, eclipse::messages::BlockRequest&, unsigned);
48 template <typename Archive> void serialize (Archive&, eclipse::messages::FileDescription&, unsigned);
49 template <typename Archive> void serialize (Archive&, eclipse::messages::FileDel&, unsigned);
50 template <typename Archive> void serialize (Archive&, eclipse::messages::FormatRequest&, unsigned);
51 template <typename Archive> void serialize (Archive&, eclipse::messages::FileExist&, unsigned);
52 template <typename Archive> void serialize (Archive&, eclipse::messages::MetaData&, unsigned);
53 template <typename Archive> void serialize (Archive&, eclipse::BlockMetadata&, unsigned);
54 template <typename Archive> void serialize (Archive&, eclipse::messages::IOoperation&, unsigned);
55 template <typename Archive> void serialize (Archive&, eclipse::logical_block_metadata&, unsigned);
56 }
57 }
58 
60 
61 // 3) Also here
77 
78 // 4) and here
79 BOOST_CLASS_TRACKING(eclipse::messages::Message, boost::serialization::track_never);
80 BOOST_CLASS_TRACKING(eclipse::messages::FileInfo, boost::serialization::track_never);
81 BOOST_CLASS_TRACKING(eclipse::messages::FileUpdate, boost::serialization::track_never);
82 BOOST_CLASS_TRACKING(eclipse::messages::BlockInfo, boost::serialization::track_never);
83 BOOST_CLASS_TRACKING(eclipse::messages::FileList, boost::serialization::track_never);
84 BOOST_CLASS_TRACKING(eclipse::messages::Reply, boost::serialization::track_never);
85 BOOST_CLASS_TRACKING(eclipse::messages::FileRequest, boost::serialization::track_never);
86 BOOST_CLASS_TRACKING(eclipse::messages::BlockRequest, boost::serialization::track_never);
87 BOOST_CLASS_TRACKING(eclipse::messages::FileDescription, boost::serialization::track_never);
88 BOOST_CLASS_TRACKING(eclipse::messages::FileDel, boost::serialization::track_never);
89 BOOST_CLASS_TRACKING(eclipse::messages::FormatRequest, boost::serialization::track_never);
90 BOOST_CLASS_TRACKING(eclipse::messages::FileExist, boost::serialization::track_never);
91 BOOST_CLASS_TRACKING(eclipse::BlockMetadata, boost::serialization::track_never);
92 BOOST_CLASS_TRACKING(eclipse::messages::IOoperation, boost::serialization::track_never);
93 BOOST_CLASS_TRACKING(eclipse::logical_block_metadata, boost::serialization::track_never);
Definition: fileinfo.hh:10
Definition: IOoperation.hh:9
Definition: metadata.hh:6
Definition: logical_block_metadata.hh:8
Definition: filedescription.hh:10
Definition: fileupdate.hh:10
Definition: filedel.hh:8
Definition: message.hh:15
Definition: filerequest.hh:9
Definition: formatrequest.hh:9
BOOST_CLASS_TRACKING(eclipse::messages::Message, boost::serialization::track_never)
BOOST_CLASS_EXPORT_KEY(eclipse::messages::FileInfo)
BOOST_SERIALIZATION_ASSUME_ABSTRACT(eclipse::messages::Message)
Definition: filelist.hh:12
Definition: reply.hh:9
Definition: blockrequest.hh:9
Definition: blockinfo.hh:7
Definition: fileexist.hh:7
Definition: blockmetadata.hh:7
void serialize(Archive &ar, eclipse::messages::Message &m, unsigned int)
Definition: boost_impl.cc:18