Re-sync with internal repository
[hiphop-php.git] / third-party / thrift / src / thrift / compiler / test / fixtures / enums / gen-cpp2 / module_data.cpp
blobfb7dab165c8a85f19dee5b67322f40f5027619ca
1 /**
2 * Autogenerated by Thrift for src/module.thrift
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 * @generated @nocommit
6 */
8 #include "thrift/compiler/test/fixtures/enums/gen-cpp2/module_data.h"
10 #include <thrift/lib/cpp2/gen/module_data_cpp.h>
12 namespace apache {
13 namespace thrift {
15 const std::array<::test::fixtures::enums::Metasyntactic, 5> TEnumDataStorage<::test::fixtures::enums::Metasyntactic>::values = {{
16 type::FOO,
17 type::BAR,
18 type::BAZ,
19 type::BAX,
20 type::Unspecified,
21 }};
22 const std::array<folly::StringPiece, 5> TEnumDataStorage<::test::fixtures::enums::Metasyntactic>::names = {{
23 "FOO",
24 "BAR",
25 "BAZ",
26 "BAX",
27 "Unspecified",
28 }};
30 const std::array<::test::fixtures::enums::MyEnum1, 6> TEnumDataStorage<::test::fixtures::enums::MyEnum1>::values = {{
31 type::ME1_1,
32 type::ME1_2,
33 type::ME1_3,
34 type::ME1_5,
35 type::ME1_6,
36 type::ME1_0,
37 }};
38 const std::array<folly::StringPiece, 6> TEnumDataStorage<::test::fixtures::enums::MyEnum1>::names = {{
39 "ME1_1",
40 "ME1_2",
41 "ME1_3",
42 "ME1_5",
43 "ME1_6",
44 "ME1_0",
45 }};
47 const std::array<::test::fixtures::enums::MyEnum2, 3> TEnumDataStorage<::test::fixtures::enums::MyEnum2>::values = {{
48 type::ME2_0,
49 type::ME2_1,
50 type::ME2_2,
51 }};
52 const std::array<folly::StringPiece, 3> TEnumDataStorage<::test::fixtures::enums::MyEnum2>::names = {{
53 "ME2_0",
54 "ME2_1",
55 "ME2_2",
56 }};
58 const std::array<::test::fixtures::enums::MyEnum3, 6> TEnumDataStorage<::test::fixtures::enums::MyEnum3>::values = {{
59 type::ME3_0,
60 type::ME3_1,
61 type::ME3_N2,
62 type::ME3_N1,
63 type::ME3_9,
64 type::ME3_10,
65 }};
66 const std::array<folly::StringPiece, 6> TEnumDataStorage<::test::fixtures::enums::MyEnum3>::names = {{
67 "ME3_0",
68 "ME3_1",
69 "ME3_N2",
70 "ME3_N1",
71 "ME3_9",
72 "ME3_10",
73 }};
75 const std::array<::test::fixtures::enums::MyEnum4, 5> TEnumDataStorage<::test::fixtures::enums::MyEnum4>::values = {{
76 type::ME4_A,
77 type::ME4_B,
78 type::ME4_C,
79 type::ME4_D,
80 type::Unspecified,
81 }};
82 const std::array<folly::StringPiece, 5> TEnumDataStorage<::test::fixtures::enums::MyEnum4>::names = {{
83 "ME4_A",
84 "ME4_B",
85 "ME4_C",
86 "ME4_D",
87 "Unspecified",
88 }};
90 const std::array<::test::fixtures::enums::MyBitmaskEnum1, 4> TEnumDataStorage<::test::fixtures::enums::MyBitmaskEnum1>::values = {{
91 type::ONE,
92 type::TWO,
93 type::FOUR,
94 type::Unspecified,
95 }};
96 const std::array<folly::StringPiece, 4> TEnumDataStorage<::test::fixtures::enums::MyBitmaskEnum1>::names = {{
97 "ONE",
98 "TWO",
99 "FOUR",
100 "Unspecified",
103 const std::array<::test::fixtures::enums::MyBitmaskEnum2, 4> TEnumDataStorage<::test::fixtures::enums::MyBitmaskEnum2>::values = {{
104 type::ONE,
105 type::TWO,
106 type::FOUR,
107 type::Unspecified,
109 const std::array<folly::StringPiece, 4> TEnumDataStorage<::test::fixtures::enums::MyBitmaskEnum2>::names = {{
110 "ONE",
111 "TWO",
112 "FOUR",
113 "Unspecified",
116 const std::array<folly::StringPiece, 4> TStructDataStorage<::test::fixtures::enums::SomeStruct>::fields_names = {{
117 "reasonable",
118 "fine",
119 "questionable",
120 "tags",
122 const std::array<int16_t, 4> TStructDataStorage<::test::fixtures::enums::SomeStruct>::fields_ids = {{
128 const std::array<protocol::TType, 4> TStructDataStorage<::test::fixtures::enums::SomeStruct>::fields_types = {{
129 TType::T_I32,
130 TType::T_I32,
131 TType::T_I32,
132 TType::T_SET,
135 const std::array<folly::StringPiece, 4> TStructDataStorage<::test::fixtures::enums::MyStruct>::fields_names = {{
136 "me2_3",
137 "me3_n3",
138 "me1_t1",
139 "me1_t2",
141 const std::array<int16_t, 4> TStructDataStorage<::test::fixtures::enums::MyStruct>::fields_ids = {{
147 const std::array<protocol::TType, 4> TStructDataStorage<::test::fixtures::enums::MyStruct>::fields_types = {{
148 TType::T_I32,
149 TType::T_I32,
150 TType::T_I32,
151 TType::T_I32,
154 } // namespace thrift
155 } // namespace apache