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
10 * http://www.apache.org/licenses/LICENSE-2.0
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
19 * Contains some contributions under the Thrift Software License.
20 * Please see doc/old-thrift-license.txt in the Thrift distribution for
24 typedef i64 Temperature
28 typedef string Location
30 const i32 BoilingPoint = 100
32 const list<Temperature> Temperatures = [10, 11, 22, 33]
34 // IMPORTANT: temps should end with ".0" because this tests
35 // that we don't have a problem with const float list generation
36 const list<double> CommonTemperatures = [300.0, 450.0]
38 const double MealsPerDay = 2.5;
40 const string DefaultRecipeName = "Soup-rise of the Day"
41 const binary DefaultRecipeBinary = "Soup-rise of the 01010101"
45 2: Temperature cookTemp
49 1: optional list<Noodle> noodles
52 const Noodle SpeltNoodle = { "flourType": "spelt", "cookTemp": 110 }
54 struct MeasuringSpoon {
63 1: MeasuringSpoon spoon
67 struct CookingTemperatures {
68 1: set<double> commonTemperatures
69 2: list<double> usedTemperatures
70 3: map<double, double> fahrenheitToCentigradeConversions
80 1: set<MeasuringSpoon> measuringSpoons
81 2: map<Size, Location> measuringCups,
82 3: list<Recipe> recipes