Put global types in types.hpp.
This commit is contained in:
parent
cc912b8a36
commit
91ab718099
|
@ -22,6 +22,7 @@
|
||||||
#include <array>
|
#include <array>
|
||||||
#include <chrono>
|
#include <chrono>
|
||||||
#include <cstdint>
|
#include <cstdint>
|
||||||
|
#include "types.hpp"
|
||||||
#include "time.hpp"
|
#include "time.hpp"
|
||||||
|
|
||||||
using std::string;
|
using std::string;
|
||||||
|
@ -30,20 +31,6 @@ using std::array;
|
||||||
using std::chrono::system_clock;
|
using std::chrono::system_clock;
|
||||||
using std::uint8_t;
|
using std::uint8_t;
|
||||||
|
|
||||||
enum class export_format
|
|
||||||
{
|
|
||||||
undefined,
|
|
||||||
csv,
|
|
||||||
asciidoc
|
|
||||||
};
|
|
||||||
|
|
||||||
enum class sort_attribute
|
|
||||||
{
|
|
||||||
both,
|
|
||||||
time,
|
|
||||||
tag
|
|
||||||
};
|
|
||||||
|
|
||||||
typedef struct options
|
typedef struct options
|
||||||
{
|
{
|
||||||
vector<string> tags;
|
vector<string> tags;
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue