Put global types in types.hpp.

This commit is contained in:
tastytea 2019-05-15 22:39:14 +02:00
parent cc912b8a36
commit 91ab718099
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
2 changed files with 35 additions and 14 deletions

View File

@ -22,6 +22,7 @@
#include <array>
#include <chrono>
#include <cstdint>
#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<string> tags;

34
src/types.hpp Normal file
View File

@ -0,0 +1,34 @@
/* This file is part of remwharead.
* Copyright © 2019 tastytea <tastytea@tastytea.de>
*
* 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 <http://www.gnu.org/licenses/>.
*/
#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