view dep/anitomy/anitomy/anitomy.h @ 335:5098387a3a46

kitsu: remove unused constants, fix token expiration calculation
author Paper <paper@paper.us.eu.org>
date Wed, 19 Jun 2024 06:11:38 -0400
parents 5c0397762b53
children a0aa8c8c4307
line wrap: on
line source

/*
** Copyright (c) 2014-2017, Eren Okka
**
** This Source Code Form is subject to the terms of the Mozilla Public
** License, v. 2.0. If a copy of the MPL was not distributed with this
** file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/

#pragma once

#include "element.h"
#include "options.h"
#include "string.h"
#include "token.h"

namespace anitomy {

class Anitomy {
	public:
		bool Parse(string_t filename);

		Elements& elements();
		Options& options();
		const token_container_t& tokens() const;

	private:
		bool RemoveExtensionFromFilename(string_t& filename, string_t& extension) const;
		void RemoveIgnoredStrings(string_t& filename) const;

		Elements elements_;
		Options options_;
		token_container_t tokens_;
};

} // namespace anitomy