Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
From 58121fb3ac477e83811e7b8013dd3fa6a925d985 Mon Sep 17 00:00:00 2001
From: Adam Simpkins <simpkins@fb.com>
Date: Mon, 19 Apr 2010 19:09:21 +0000
Subject: [PATCH 26/33] thrift: generate server interface factory classes
Summary:
The C++ generator now generates an abstract factory class definition for
all server interface classes. A singleton factory implementation is
always defined, which always returns a pointer to the same object.
Test Plan:
Generated code with cob_style and templates enabled, and everything
still compiles.
Revert Plan:
OK
—
compiler/cpp/src/generate/t_cpp_generator.cc | 161 ++++++++++++++++++++++++++
lib/cpp/src/TProcessor.h | 28 +++++
2 files changed, 189 insertions, 0 deletions