Thrift: Smalltalk prefix support.
Reviewed By: mcslee
Test Plan: Built the compiler.
Revert Plan: ok
Other Notes:
Contributed by Ben Matasar.
Signed off by Patrick Collison.
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665391 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/parse/t_program.h b/compiler/cpp/src/parse/t_program.h
index ddc121c..dc8c80c 100644
--- a/compiler/cpp/src/parse/t_program.h
+++ b/compiler/cpp/src/parse/t_program.h
@@ -200,6 +200,14 @@
return smalltalk_category_;
}
+ void set_smalltalk_prefix(std::string smalltalk_prefix) {
+ smalltalk_prefix_ = smalltalk_prefix;
+ }
+
+ const std::string& get_smalltalk_prefix() const {
+ return smalltalk_prefix_;
+ }
+
private:
// File path
@@ -257,7 +265,8 @@
// Smalltalk category
std::string smalltalk_category_;
-
+ // Smalltalk prefix
+ std::string smalltalk_prefix_;
};
#endif