libcluon  0.0.148
MsgPackConstants.hpp
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017-2018 Christian Berger
3  *
4  * This Source Code Form is subject to the terms of the Mozilla Public
5  * License, v. 2.0. If a copy of the MPL was not distributed with this
6  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7  */
8 
9 #ifndef CLUON_MSGPACKCONSTANTS_HPP
10 #define CLUON_MSGPACKCONSTANTS_HPP
11 
12 #include <cstdint>
13 
14 // clang-format off
15 namespace cluon {
16  enum class MsgPackConstants : uint16_t {
17  IS_FALSE = 0xC2,
18  IS_TRUE = 0xC3,
19  FLOAT = 0xCA,
20  DOUBLE = 0xCB,
21  UINT8 = 0xCC,
22  UINT16 = 0xCD,
23  UINT32 = 0xCE,
24  UINT64 = 0xCF,
25  NEGFIXINT = 0xE0,
26  INT8 = 0xD0,
27  INT16 = 0xD1,
28  INT32 = 0xD2,
29  INT64 = 0xD3,
30  FIXSTR = 0xA0,
31  FIXSTR_END = 0xBF,
32  STR8 = 0xD9,
33  STR16 = 0xDA,
34  STR32 = 0xDB,
35  FIXMAP = 0x80,
36  FIXMAP_END = 0x8F,
37  MAP16 = 0xDE,
38  MAP32 = 0xDF,
39  UNKNOWN_FORMAT = 0xFF00,
40  BOOL_FORMAT = 0xFF01,
41  UINT_FORMAT = 0xFF02,
42  INT_FORMAT = 0xFF03,
43  FLOAT_FORMAT = 0xFF04,
44  STR_FORMAT = 0xFF05,
45  MAP_FORMAT = 0xFF06, // Indicating also nested types.
46  };
47 }
48 // clang-format on
49 
50 #endif
Definition: cluon.hpp:65
MsgPackConstants
Definition: MsgPackConstants.hpp:16