Apache Qpid - AMQP Messaging for Java JMS, C++, Python, Ruby, and .NET
Apache Qpid Documentation
Main Page
Modules
Namespaces
Classes
Files
File List
File Members
qpid
framing
TypeCode.h
Go to the documentation of this file.
1
#ifndef QPID_FRAMING_TYPECODE_H
2
#define QPID_FRAMING_TYPECODE_H
3
/*
4
*
5
* Licensed to the Apache Software Foundation (ASF) under one
6
* or more contributor license agreements. See the NOTICE file
7
* distributed with this work for additional information
8
* regarding copyright ownership. The ASF licenses this file
9
* to you under the Apache License, Version 2.0 (the
10
* "License"); you may not use this file except in compliance
11
* with the License. You may obtain a copy of the License at
12
*
13
* http://www.apache.org/licenses/LICENSE-2.0
14
*
15
* Unless required by applicable law or agreed to in writing,
16
* software distributed under the License is distributed on an
17
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
18
* KIND, either express or implied. See the License for the
19
* specific language governing permissions and limitations
20
* under the License.
21
*
22
*/
23
28
29
30
#include <iosfwd>
31
#include "
qpid/sys/IntegerTypes.h
"
32
33
namespace
qpid {
34
namespace
framing {
35
36
enum
TypeCode
{
37
TYPE_CODE_BIN8
= 0x00,
38
TYPE_CODE_INT8
= 0x01,
39
TYPE_CODE_UINT8
= 0x02,
40
TYPE_CODE_CHAR
= 0x04,
41
TYPE_CODE_BOOLEAN
= 0x08,
42
TYPE_CODE_BIN16
= 0x10,
43
TYPE_CODE_INT16
= 0x11,
44
TYPE_CODE_UINT16
= 0x12,
45
TYPE_CODE_BIN32
= 0x20,
46
TYPE_CODE_INT32
= 0x21,
47
TYPE_CODE_UINT32
= 0x22,
48
TYPE_CODE_FLOAT
= 0x23,
49
TYPE_CODE_CHAR_UTF32
= 0x27,
50
TYPE_CODE_BIN64
= 0x30,
51
TYPE_CODE_INT64
= 0x31,
52
TYPE_CODE_UINT64
= 0x32,
53
TYPE_CODE_DOUBLE
= 0x33,
54
TYPE_CODE_DATETIME
= 0x38,
55
TYPE_CODE_BIN128
= 0x40,
56
TYPE_CODE_UUID
= 0x48,
57
TYPE_CODE_BIN256
= 0x50,
58
TYPE_CODE_BIN512
= 0x60,
59
TYPE_CODE_BIN1024
= 0x70,
60
TYPE_CODE_VBIN8
= 0x80,
61
TYPE_CODE_STR8_LATIN
= 0x84,
62
TYPE_CODE_STR8
= 0x85,
63
TYPE_CODE_STR8_UTF16
= 0x86,
64
TYPE_CODE_VBIN16
= 0x90,
65
TYPE_CODE_STR16_LATIN
= 0x94,
66
TYPE_CODE_STR16
= 0x95,
67
TYPE_CODE_STR16_UTF16
= 0x96,
68
TYPE_CODE_VBIN32
= 0xa0,
69
TYPE_CODE_MAP
= 0xa8,
70
TYPE_CODE_LIST
= 0xa9,
71
TYPE_CODE_ARRAY
= 0xaa,
72
TYPE_CODE_STRUCT32
= 0xab,
73
TYPE_CODE_BIN40
= 0xc0,
74
TYPE_CODE_DEC32
= 0xc8,
75
TYPE_CODE_BIN72
= 0xd0,
76
TYPE_CODE_DEC64
= 0xd8,
77
TYPE_CODE_VOID
= 0xf0,
78
TYPE_CODE_BIT
= 0xf1
79
};
80
82
bool
isTypeCode
(
uint8_t
t);
83
85
TypeCode
typeCode
(
uint8_t
);
86
88
const
char
*
typeName
(
TypeCode
t);
89
90
std::ostream&
operator<<
(std::ostream&,
TypeCode
);
91
92
93
}}
// namespace qpid::framing
94
95
#endif
qpid::framing::TYPE_CODE_VBIN8
Definition:
TypeCode.h:60
qpid::framing::TYPE_CODE_INT32
Definition:
TypeCode.h:46
qpid::framing::TYPE_CODE_STR16_LATIN
Definition:
TypeCode.h:65
qpid::framing::TYPE_CODE_BOOLEAN
Definition:
TypeCode.h:41
qpid::framing::TYPE_CODE_BIN16
Definition:
TypeCode.h:42
qpid::framing::TYPE_CODE_LIST
Definition:
TypeCode.h:70
qpid::framing::TYPE_CODE_INT64
Definition:
TypeCode.h:51
uint8_t
unsigned char uint8_t
Definition:
IntegerTypes.h:24
qpid::framing::typeName
const char * typeName(TypeCode t)
qpid::framing::TYPE_CODE_DOUBLE
Definition:
TypeCode.h:53
qpid::framing::TYPE_CODE_VBIN16
Definition:
TypeCode.h:64
qpid::framing::TYPE_CODE_UINT64
Definition:
TypeCode.h:52
qpid::framing::TYPE_CODE_STRUCT32
Definition:
TypeCode.h:72
qpid::framing::TYPE_CODE_DEC64
Definition:
TypeCode.h:76
qpid::framing::TYPE_CODE_BIN128
Definition:
TypeCode.h:55
qpid::framing::TYPE_CODE_BIN512
Definition:
TypeCode.h:58
IntegerTypes.h
qpid::framing::isTypeCode
bool isTypeCode(uint8_t t)
True if t is a valid TypeCode value.
qpid::framing::TYPE_CODE_BIN1024
Definition:
TypeCode.h:59
qpid::framing::TYPE_CODE_STR16
Definition:
TypeCode.h:66
qpid::framing::TYPE_CODE_STR16_UTF16
Definition:
TypeCode.h:67
qpid::framing::TYPE_CODE_MAP
Definition:
TypeCode.h:69
qpid::framing::TYPE_CODE_STR8_UTF16
Definition:
TypeCode.h:63
qpid::framing::TYPE_CODE_DEC32
Definition:
TypeCode.h:74
qpid::framing::TYPE_CODE_INT8
Definition:
TypeCode.h:38
qpid::framing::TYPE_CODE_VOID
Definition:
TypeCode.h:77
qpid::framing::operator<<
std::ostream & operator<<(std::ostream &, TypeCode)
qpid::framing::TYPE_CODE_BIN72
Definition:
TypeCode.h:75
qpid::framing::TYPE_CODE_UUID
Definition:
TypeCode.h:56
qpid::framing::TYPE_CODE_ARRAY
Definition:
TypeCode.h:71
qpid::framing::TYPE_CODE_STR8
Definition:
TypeCode.h:62
qpid::framing::TYPE_CODE_FLOAT
Definition:
TypeCode.h:48
qpid::framing::TYPE_CODE_INT16
Definition:
TypeCode.h:43
qpid::framing::TypeCode
TypeCode
Definition:
TypeCode.h:36
qpid::framing::TYPE_CODE_CHAR
Definition:
TypeCode.h:40
qpid::framing::typeCode
TypeCode typeCode(uint8_t)
Throw exception if not a valid TypeCode.
qpid::framing::TYPE_CODE_BIT
Definition:
TypeCode.h:78
qpid::framing::TYPE_CODE_BIN64
Definition:
TypeCode.h:50
qpid::framing::TYPE_CODE_BIN8
Definition:
TypeCode.h:37
qpid::framing::TYPE_CODE_BIN32
Definition:
TypeCode.h:45
qpid::framing::TYPE_CODE_STR8_LATIN
Definition:
TypeCode.h:61
qpid::framing::TYPE_CODE_DATETIME
Definition:
TypeCode.h:54
qpid::framing::TYPE_CODE_BIN256
Definition:
TypeCode.h:57
qpid::framing::TYPE_CODE_VBIN32
Definition:
TypeCode.h:68
qpid::framing::TYPE_CODE_CHAR_UTF32
Definition:
TypeCode.h:49
qpid::framing::TYPE_CODE_UINT8
Definition:
TypeCode.h:39
qpid::framing::TYPE_CODE_BIN40
Definition:
TypeCode.h:73
qpid::framing::TYPE_CODE_UINT32
Definition:
TypeCode.h:47
qpid::framing::TYPE_CODE_UINT16
Definition:
TypeCode.h:44
Qpid C++ API Reference
Generated on Tue Oct 28 2014 for Qpid C++ Client API by
1.8.5