Atlas Game Manager
A game manager for f95 and dlsite written in c++
Loading...
Searching...
No Matches
tags.hpp
Go to the documentation of this file.
1//
2// Created by kj16609 on 7/29/23.
3//
4
5#ifndef ATLASGAMEMANAGER_TAGS_HPP
6#define ATLASGAMEMANAGER_TAGS_HPP
7
8#include <cstdint>
9
10class QString;
11
12using TagID = std::uint64_t;
13[[maybe_unused]] constexpr TagID INVALID_TAG_ID { 0 };
14
15namespace atlas::tags
16{
18 TagID createTag( const QString& str );
19
21 bool exists( const QString& str );
22
24 TagID resolve( const QString& str );
25
26} // namespace atlas::tags
27
28#endif //ATLASGAMEMANAGER_TAGS_HPP
Definition tags.cpp:10
TagID resolve(const QString &str)
Resolves a string to a TagID if it exists. Otherwise returns INVALID_TAG_ID.
Definition tags.cpp:33
TagID createTag(const QString &str)
Creates a new tag (or returns an existing ID)
Definition tags.cpp:11
bool exists(const QString &str)
Checks if a tag exists.
Definition tags.cpp:28
constexpr TagID INVALID_TAG_ID
Definition tags.hpp:13
std::uint64_t TagID
Definition tags.hpp:12