Commit | Line | Data |
---|---|---|
19facd85 TJ |
1 | /* |
2 | Copyright (C) 2006 by Intra2net AG - Gerd v. Egidy | |
3 | ||
4 | The software in this package is distributed under the GNU General | |
5 | Public License version 2 (with a special exception described below). | |
6 | ||
7 | A copy of GNU General Public License (GPL) is included in this distribution, | |
8 | in the file COPYING.GPL. | |
9 | ||
10 | As a special exception, if other files instantiate templates or use macros | |
11 | or inline functions from this file, or you compile this file and link it | |
12 | with other works to produce a work based on this file, this file | |
13 | does not by itself cause the resulting work to be covered | |
14 | by the GNU General Public License. | |
15 | ||
16 | However the source code for this file must still be made available | |
17 | in accordance with section (3) of the GNU General Public License. | |
18 | ||
19 | This exception does not invalidate any other reasons why a work based | |
20 | on this file might be covered by the GNU General Public License. | |
21 | */ | |
1758a7fb RP |
22 | |
23 | #include <boost/archive/binary_oarchive.hpp> | |
24 | #include <boost/archive/binary_iarchive.hpp> | |
25 | #include <boost/archive/xml_oarchive.hpp> | |
26 | #include <boost/archive/xml_iarchive.hpp> | |
27 | ||
28 | namespace libt2n | |
29 | { | |
30 | ||
31 | template<class Archive> | |
32 | void t2n_exception::serialize(Archive & ar, const unsigned int version) | |
33 | { | |
34 | ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(exception); | |
35 | ar & BOOST_SERIALIZATION_NVP(message); | |
36 | } | |
37 | ||
38 | template<class Archive> | |
39 | void t2n_communication_error::serialize(Archive & ar, const unsigned int version) | |
40 | { | |
41 | ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(t2n_exception); | |
42 | } | |
43 | ||
44 | template<class Archive> | |
45 | void t2n_connect_error::serialize(Archive & ar, const unsigned int version) | |
46 | { | |
47 | ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(t2n_communication_error); | |
48 | } | |
49 | ||
50 | template<class Archive> | |
51 | void t2n_server_error::serialize(Archive & ar, const unsigned int version) | |
52 | { | |
53 | ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(t2n_communication_error); | |
54 | } | |
55 | ||
56 | template<class Archive> | |
57 | void t2n_transfer_error::serialize(Archive & ar, const unsigned int version) | |
58 | { | |
59 | ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(t2n_communication_error); | |
60 | } | |
61 | ||
62 | template<class Archive> | |
63 | void t2n_version_mismatch::serialize(Archive & ar, const unsigned int version) | |
64 | { | |
65 | ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(t2n_communication_error); | |
66 | } | |
67 | ||
68 | template<class Archive> | |
69 | void t2n_command_error::serialize(Archive & ar, const unsigned int version) | |
70 | { | |
71 | ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(t2n_exception); | |
72 | } | |
73 | ||
74 | template<class Archive> | |
75 | void t2n_serialization_error::serialize(Archive & ar, const unsigned int version) | |
76 | { | |
77 | ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(t2n_exception); | |
78 | } | |
79 | ||
80 | template<class Archive> | |
81 | void t2n_runtime_error::serialize(Archive & ar, const unsigned int version) | |
82 | { | |
83 | ar & BOOST_SERIALIZATION_BASE_OBJECT_NVP(t2n_exception); | |
84 | } | |
85 | ||
86 | } // namespace libt2n |