The Battle for Wesnoth  1.19.5+dev
po_message_adapted.hpp
Go to the documentation of this file.
1 // (C) Copyright 2015 - 2017 Christopher Beck
2 
3 // Distributed under the Boost Software License, Version 1.0. (See accompanying
4 // file LICENSE or copy at http://www.boost.org/LICENSE_1_0.txt)
5 
6 #ifndef SPIRIT_PO_PO_MESSAGE_ADAPTED_HPP_INCLUDED
7 #define SPIRIT_PO_PO_MESSAGE_ADAPTED_HPP_INCLUDED
8 
9 #include <boost/fusion/adapted/struct/adapt_struct.hpp>
10 #include <boost/fusion/include/adapt_struct.hpp>
11 #include <boost/fusion/include/std_pair.hpp>
12 
13 #include <boost/optional/optional.hpp>
14 #include <string>
15 #include <utility>
16 #include <vector>
17 
18 #include <spirit_po/po_message.hpp>
19 
20 BOOST_FUSION_ADAPT_STRUCT(
22  (boost::optional<std::string>, context)
23  (std::string, id)
24  (spirit_po::plural_and_strings_type, plural_and_strings))
25 
26 #endif // SPIRIT_PO_PO_MESSAGE_ADAPTED_HPP_INCLUDED
std::pair< std::string, std::vector< std::string > > plural_and_strings_type
Definition: po_message.hpp:16