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
10
class
QString;
11
12
using
TagID
= std::uint64_t;
13
[[maybe_unused]]
constexpr
TagID
INVALID_TAG_ID
{ 0 };
14
15
namespace
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
atlas::tags
Definition
tags.cpp:10
atlas::tags::resolve
TagID resolve(const QString &str)
Resolves a string to a TagID if it exists. Otherwise returns INVALID_TAG_ID.
Definition
tags.cpp:33
atlas::tags::createTag
TagID createTag(const QString &str)
Creates a new tag (or returns an existing ID)
Definition
tags.cpp:11
atlas::tags::exists
bool exists(const QString &str)
Checks if a tag exists.
Definition
tags.cpp:28
INVALID_TAG_ID
constexpr TagID INVALID_TAG_ID
Definition
tags.hpp:13
TagID
std::uint64_t TagID
Definition
tags.hpp:12
atlas
core
database
record
tags.hpp
Generated by
1.13.2