| 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 | */ |
| 22 | |
| 23 | namespace libt2n |
| 24 | { |
| 25 | |
| 26 | template<class Archive> |
| 27 | void result_container::serialize(Archive & ar, const unsigned int /* version */) |
| 28 | { |
| 29 | // When the class Archive corresponds to an output archive, the |
| 30 | // & operator is defined similar to <<. Likewise, when the class Archive |
| 31 | // is a type of input archive the & operator is defined similar to >>. |
| 32 | |
| 33 | ar & BOOST_SERIALIZATION_NVP(result_type); |
| 34 | ar & BOOST_SERIALIZATION_NVP(res); |
| 35 | ar & BOOST_SERIALIZATION_NVP(ex); |
| 36 | } |
| 37 | |
| 38 | template<class Archive> |
| 39 | void command_container::serialize(Archive & ar, const unsigned int /* version */) |
| 40 | { |
| 41 | ar & BOOST_SERIALIZATION_NVP(cmd); |
| 42 | } |
| 43 | |
| 44 | |
| 45 | |
| 46 | } |