liblcf
lcf_saveopt.h
Go to the documentation of this file.
1
/*
2
* This file is part of liblcf. Copyright (c) 2020 liblcf authors.
3
* https://github.com/EasyRPG/liblcf - https://easyrpg.org
4
*
5
* liblcf is Free/Libre Open Source Software, released under the MIT License.
6
* For the full copyright and license information, please view the COPYING
7
* file that was distributed with this source code.
8
*/
9
10
#ifndef LCF_SAVEOPT_H
11
#define LCF_SAVEOPT_H
12
16
enum class
SaveOpt
{
17
eNone
= 0,
18
ePreserveHeader
= 1
19
};
20
21
constexpr
SaveOpt
operator|
(
SaveOpt
l,
SaveOpt
r) {
return
SaveOpt
(
int
(l) |
int
(r)); }
22
constexpr
SaveOpt
operator&
(
SaveOpt
l,
SaveOpt
r) {
return
SaveOpt
(
int
(l) &
int
(r)); }
23
constexpr
SaveOpt
operator^
(
SaveOpt
l,
SaveOpt
r) {
return
SaveOpt
(
int
(l) ^
int
(r)); }
24
constexpr
SaveOpt
operator~
(
SaveOpt
l) {
return
SaveOpt
(~
int
(l)); }
25
26
#endif
27
operator~
constexpr SaveOpt operator~(SaveOpt l)
Definition:
lcf_saveopt.h:24
operator&
constexpr SaveOpt operator&(SaveOpt l, SaveOpt r)
Definition:
lcf_saveopt.h:22
SaveOpt
SaveOpt
Definition:
lcf_saveopt.h:16
SaveOpt::ePreserveHeader
@ ePreserveHeader
SaveOpt::eNone
@ eNone
operator^
constexpr SaveOpt operator^(SaveOpt l, SaveOpt r)
Definition:
lcf_saveopt.h:23
operator|
constexpr SaveOpt operator|(SaveOpt l, SaveOpt r)
Definition:
lcf_saveopt.h:21
src
lcf_saveopt.h
Generated on Tue Jan 26 2021 00:00:00 for liblcf by
1.9.1