Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-04-17 08:35:01

0001 /*
0002  * Licensed to the Apache Software Foundation (ASF) under one
0003  * or more contributor license agreements. See the NOTICE file
0004  * distributed with this work for additional information
0005  * regarding copyright ownership. The ASF licenses this file
0006  * to you under the Apache License, Version 2.0 (the
0007  * "License"); you may not use this file except in compliance
0008  * with the License. You may obtain a copy of the License at
0009  *
0010  *   http://www.apache.org/licenses/LICENSE-2.0
0011  *
0012  * Unless required by applicable law or agreed to in writing,
0013  * software distributed under the License is distributed on an
0014  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
0015  * KIND, either express or implied. See the License for the
0016  * specific language governing permissions and limitations
0017  * under the License.
0018  */
0019 
0020 #ifndef _THRIFT_ENUM_H_
0021 #define _THRIFT_ENUM_H_
0022 
0023 namespace apache {
0024 namespace thrift {
0025 namespace protocol {
0026 
0027 /**
0028  * Enumerated definition of the types that the Thrift protocol supports.
0029  * Take special note of the T_END type which is used specifically to mark
0030  * the end of a sequence of fields.
0031  */
0032 enum TType {
0033   T_STOP       = 0,
0034   T_VOID       = 1,
0035   T_BOOL       = 2,
0036   T_BYTE       = 3,
0037   T_I08        = 3,
0038   T_I16        = 6,
0039   T_I32        = 8,
0040   T_U64        = 9,
0041   T_I64        = 10,
0042   T_DOUBLE     = 4,
0043   T_STRING     = 11,
0044   T_UTF7       = 11,
0045   T_STRUCT     = 12,
0046   T_MAP        = 13,
0047   T_SET        = 14,
0048   T_LIST       = 15,
0049   T_UUID       = 16,
0050 };
0051 
0052 /**
0053  * Enumerated definition of the message types that the Thrift protocol
0054  * supports.
0055  */
0056 enum TMessageType {
0057   T_CALL       = 1,
0058   T_REPLY      = 2,
0059   T_EXCEPTION  = 3,
0060   T_ONEWAY     = 4
0061 };
0062 
0063 }}} // apache::thrift::protocol
0064 
0065 #endif // #define _THRIFT_ENUM_H_