]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/thrift/lib/haxe/src/org/apache/thrift/TBase.hx
buildsys: switch source download to quincy
[ceph.git] / ceph / src / jaegertracing / thrift / lib / haxe / src / org / apache / thrift / TBase.hx
CommitLineData
f67539c2
TL
1/*
2 * Licensed to the Apache Software Foundation (ASF) under one
3 * or more contributor license agreements. See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership. The ASF licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License. You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
20package org.apache.thrift;
21
22// Make sure we use at least 3.1.3
23// Some Linux platforms have waaaay too old packages in their repos
24// Pro Tip: Look at http://openfl.com for a good Linux install script
25#if( haxe_ver < 3.103)
26#error Haxe 3.1.3 or newer required, sorry!
27#end
28
29import org.apache.thrift.protocol.TProtocol;
30
31 /**
32 * Generic base interface for generated Thrift objects.
33 *
34 */
35interface TBase {
36
37 /**
38 * Reads the TObject from the given input protocol.
39 *
40 * @param iprot Input protocol
41 */
42 function read(iprot:TProtocol) : Void;
43
44 /**
45 * Writes the objects out to the protocol
46 *
47 * @param oprot Output protocol
48 */
49 function write(oprot:TProtocol) : Void;
50
51 /**
52 * Check if a field is currently set or unset.
53 *
54 * @param fieldId The field's id tag as found in the IDL.
55 */
56 function isSet(fieldId : Int) : Bool;
57
58 /**
59 * Get a field's value by id. Primitive types will be wrapped in the
60 * appropriate "boxed" types.
61 *
62 * @param fieldId The field's id tag as found in the IDL.
63 */
64 function getFieldValue(fieldId : Int) : Dynamic;
65
66 /**
67 * Set a field's value by id. Primitive types must be "boxed" in the
68 * appropriate object wrapper type.
69 *
70 * @param fieldId The field's id tag as found in the IDL.
71 */
72 function setFieldValue(fieldId : Int, value : Dynamic) : Void;
73}