summaryrefslogtreecommitdiff
path: root/le/le_header.cpp
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-06-19 22:05:32 +0200
committerDennis Brentjes <d.brentjes@gmail.com>2016-06-19 22:05:32 +0200
commitde95ca22ec87cc8b79ceb7beba475301461713a6 (patch)
treedce723a717ac0ba583de992777d7d968c3be870b /le/le_header.cpp
parentcea325b7451c1fb8dd22462ec2e7b5b88ea9b547 (diff)
downloadopenwar-de95ca22ec87cc8b79ceb7beba475301461713a6.tar.gz
openwar-de95ca22ec87cc8b79ceb7beba475301461713a6.tar.bz2
openwar-de95ca22ec87cc8b79ceb7beba475301461713a6.zip
adds an LE file parser and refactors some code.
Diffstat (limited to 'le/le_header.cpp')
-rw-r--r--le/le_header.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/le/le_header.cpp b/le/le_header.cpp
index a429add..f28cc4d 100644
--- a/le/le_header.cpp
+++ b/le/le_header.cpp
@@ -59,17 +59,17 @@ BOOST_FUSION_ADAPT_STRUCT(
namespace le {
template <int... Indices>
-LEHeader parse_file_impl(std::istream& is, indices<Indices...>) {
+LEHeader parse_header_impl(std::istream& is, indices<Indices...>) {
return {parse<typename std::decay<typename boost::fusion::result_of::at_c<LEHeader, Indices>::type>::type>(is, boost::fusion::extension::struct_member_name<LEHeader, Indices>::call())...};
}
-LEHeader parse_file(std::istream& is) {
+LEHeader parse_header(std::istream& is) {
typedef build_indices<boost::fusion::result_of::size<LEHeader>::value>::type indices;
- return parse_file_impl(is, indices{});
+ return parse_header_impl(is, indices{});
}
std::ostream& output_impl(std::ostream& os, LEHeader const&, indices<>) {