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/if/regen.sh b/if/regen.sh
new file mode 100755
index 0000000..03dad02
--- /dev/null
+++ b/if/regen.sh
@@ -0,0 +1,5 @@
+#!/bin/sh
+cd "`dirname $0`"
+../compiler/cpp/thrift -cpp reflection_limited.thrift
+cp gen-cpp/reflection_limited_types.h   ../lib/cpp/src/
+cp gen-cpp/reflection_limited_types.cpp ../lib/cpp/src/