From 91ab71809943b787bf012fcbdad34bedfaafda25 Mon Sep 17 00:00:00 2001 From: tastytea Date: Wed, 15 May 2019 22:39:14 +0200 Subject: [PATCH] Put global types in types.hpp. --- src/parse_options.hpp | 15 +-------------- src/types.hpp | 34 ++++++++++++++++++++++++++++++++++ 2 files changed, 35 insertions(+), 14 deletions(-) create mode 100644 src/types.hpp diff --git a/src/parse_options.hpp b/src/parse_options.hpp index d0a2cb0..fce3d5f 100644 --- a/src/parse_options.hpp +++ b/src/parse_options.hpp @@ -22,6 +22,7 @@ #include #include #include +#include "types.hpp" #include "time.hpp" using std::string; @@ -30,20 +31,6 @@ using std::array; using std::chrono::system_clock; using std::uint8_t; -enum class export_format -{ - undefined, - csv, - asciidoc -}; - -enum class sort_attribute -{ - both, - time, - tag -}; - typedef struct options { vector tags; diff --git a/src/types.hpp b/src/types.hpp new file mode 100644 index 0000000..486cec9 --- /dev/null +++ b/src/types.hpp @@ -0,0 +1,34 @@ +/* This file is part of remwharead. + * Copyright © 2019 tastytea + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef REMWHAREAD_TYPES_HPP +#define REMWHAREAD_TYPES_HPP + +enum class export_format +{ + undefined, + csv, + asciidoc +}; + +enum class sort_attribute +{ + both, + time, + tag +}; + +#endif // REMWHAREAD_TYPES_HPP