sample Thrift C++ code