David Reiss | 2375312 | 2007-08-27 19:57:34 +0000 | [diff] [blame] | 1 | #include <iostream> |
| 2 | #include "gen-cpp/PartiallyReflectable.h" |
| 3 | #include "gen-cpp/Service.h" |
| 4 | #include "../lib/cpp/src/protocol/TDebugProtocol.h" |
| 5 | |
| 6 | int main() { |
| 7 | using std::cout; |
| 8 | using std::endl; |
| 9 | |
| 10 | facebook::thrift::reflection::limited::Service srv1; |
David Reiss | 2a4bfd6 | 2008-04-07 23:45:00 +0000 | [diff] [blame] | 11 | thrift::test::debug::PartiallyReflectableIf::getStaticLimitedReflection(srv1); |
David Reiss | 2375312 | 2007-08-27 19:57:34 +0000 | [diff] [blame] | 12 | cout << facebook::thrift::ThriftDebugString(srv1) << endl << endl; |
| 13 | |
| 14 | facebook::thrift::reflection::limited::Service srv2; |
| 15 | test::stress::ServiceIf::getStaticLimitedReflection(srv2); |
| 16 | cout << facebook::thrift::ThriftDebugString(srv2) << endl << endl; |
| 17 | |
| 18 | return 0; |
| 19 | } |