Bayeux  3.4.1
Core Foundation library for SuperNEMO
portable_archives_support.h
Go to the documentation of this file.
1 /*
3  * Description :
4  *
5  * Support of portable binary archives.
6  *
7  * Copyright (C) 2019 Francois Mauger <mauger@lpccaen.in2p3.fr>
8  *
9  * This program is free software; you can redistribute it and/or modify
10  * it under the terms of the GNU General Public License as published by
11  * the Free Software Foundation; either version 3 of the License, or (at
12  * your option) any later version.
13  *
14  * This program is distributed in the hope that it will be useful, but
15  * WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  * General Public License for more details.
18  *
19  * You should have received a copy of the GNU General Public License
20  * along with this program; if not, write to the Free Software
21  * Foundation, Inc., 51 Franklin Street, Fifth Floor,
22  * Boston, MA 02110-1301, USA.
23  *
24  */
25 
26 #ifndef DATATOOLS_PORTABLE_ARCHIVES_SUPPORT_H
27 #define DATATOOLS_PORTABLE_ARCHIVES_SUPPORT_H
28 
29 // This project:
31 
32 // - Legacy EOS archive (version 5.0)
33 #if Bayeux_USE_EOS_ARCHIVES == 1
34 // 2012-06-07 FM : switch to Portable Archive v5.0
35 #include <datatools/eos/portable_iarchive.hpp>
36 #include <datatools/eos/portable_oarchive.hpp>
37 namespace datatools {
38  typedef eos::portable_iarchive portable_iarchive;
39  typedef eos::portable_oarchive portable_oarchive;
40 } // end of namespace datatools
41 #endif // Bayeux_USE_EOS_ARCHIVES == 1
42 
43 // - EPA archive (version 6.0, candidate for official Boost/Serialization)
44 #if Bayeux_USE_EPA_ARCHIVES == 1
47 namespace datatools {
48  typedef boost::archive::portable_iarchive portable_iarchive;
49  typedef boost::archive::portable_oarchive portable_oarchive;
50 } // end of namespace datatools
51 #endif // Bayeux_USE_EPA_ARCHIVES == 1
52 
53 #endif // DATATOOLS_PORTABLE_ARCHIVES_SUPPORT_H
54 
55 // Local Variables: --
56 // mode: c++ --
57 // c-file-style: "gnu" --
58 // tab-width: 2 --
59 // End: --
Provides an archive to create portable binary files.
Portable binary input archive using little endian format.
Definition: portable_iarchive.hpp:157
Provides an archive to read from portable binary files.
The Bayeux/datatools library top-level namespace.
Definition: algo.h:13
Describe the datatools API configuration.
Portable binary output archive using little endian format.
Definition: portable_oarchive.hpp:164