libxcks  0.1.0.1
defs.hpp
Go to the documentation of this file.
1 /*
2  * libxcks
3  * Copyright (C) 2022 Julien Couot
4  *
5  * This program is free software: you can redistribute it and/or modify it
6  * under the terms of the GNU Lesser General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or (at your
8  * option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful, but
11  * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12  * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
13  * License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with this program. If not, see <https://www.gnu.org/licenses/>.
17  */
18 
25 #ifndef INC_DEFS_HPP_3CF68D59_D15A_4A05_AFB1_5B4AA3A71E6A
26 #define INC_DEFS_HPP_3CF68D59_D15A_4A05_AFB1_5B4AA3A71E6A
27 
28 //---------------------------------------------------------------------------
29 #include <cstdint>
30 #include <ctime>
31 //---------------------------------------------------------------------------
32 
33 
34 namespace libxcks
35 {
37 constexpr std::uintmax_t Invalid_File_Size = static_cast<std::uintmax_t>(-1);
38 //---------------------------------------------------------------------------
39 
40 
42 constexpr std::time_t Invalid_DateTime = static_cast<std::time_t>(-1);
43 //---------------------------------------------------------------------------
44 
45 
47 constexpr const char* libxcks_domain = "libxcks";
48 } // namespace libxcks
49 //---------------------------------------------------------------------------
50 
51 #endif // INC_DEFS_HPP_3CF68D59_D15A_4A05_AFB1_5B4AA3A71E6A
constexpr const char * libxcks_domain
Domain for translations (i18n).
Definition: defs.hpp:47
constexpr std::uintmax_t Invalid_File_Size
Invalid file size.
Definition: defs.hpp:37
constexpr std::time_t Invalid_DateTime
Invalid date/time.
Definition: defs.hpp:42