blob: c670c828057d520e557b226795228928b08cdbcf [file] [log] [blame]
David Reiss23753122007-08-27 19:57:34 +00001#include <iostream>
2#include "gen-cpp/PartiallyReflectable.h"
3#include "gen-cpp/Service.h"
4#include "../lib/cpp/src/protocol/TDebugProtocol.h"
5
6int main() {
7 using std::cout;
8 using std::endl;
9
T Jake Lucianib5e62212009-01-31 22:36:20 +000010 apache::thrift::reflection::limited::Service srv1;
David Reiss2a4bfd62008-04-07 23:45:00 +000011 thrift::test::debug::PartiallyReflectableIf::getStaticLimitedReflection(srv1);
T Jake Lucianib5e62212009-01-31 22:36:20 +000012 cout << apache::thrift::ThriftDebugString(srv1) << endl << endl;
David Reiss23753122007-08-27 19:57:34 +000013
T Jake Lucianib5e62212009-01-31 22:36:20 +000014 apache::thrift::reflection::limited::Service srv2;
David Reiss23753122007-08-27 19:57:34 +000015 test::stress::ServiceIf::getStaticLimitedReflection(srv2);
T Jake Lucianib5e62212009-01-31 22:36:20 +000016 cout << apache::thrift::ThriftDebugString(srv2) << endl << endl;
David Reiss23753122007-08-27 19:57:34 +000017
18 return 0;
19}