Thrift: Limited Reflection for C++.
Summary:
The Thrift compiler now generates static methods for every service to generate
a reflection of the methods provided by the service. This reflection is fairly
limited, but should be enough for what we want to do with SMC.
Reviewed By: mcslee
Test Plan: test/ReflectionTest.cpp
Revert Plan: ok
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665226 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/test/DebugProtoTest.thrift b/test/DebugProtoTest.thrift
index bbd86df..090418c 100644
--- a/test/DebugProtoTest.thrift
+++ b/test/DebugProtoTest.thrift
@@ -63,3 +63,13 @@
service Srv {
i32 Janky(i32 arg)
}
+
+service PartiallyReflectable {
+ map<i32,map<i32,i32>> returnNotReflectable(1: i32 hello),
+ void argNotReflectable(1: list<set<i32>> arg),
+ void arg2NotReflectable(1: i32 arg1, 2: list<set<i32>> argNotReflectable),
+ void withMap(1: map<i32, string> amap),
+
+ OneOfEach refl1(1: list<Bonk> arg1),
+ OneOfEach refl2(2: list<string> arg1, 1: Bonk arg2);
+}