Adding Cocoa generator to Thrift
Summary: Thanks to Andrew McGeachie for doing this
Reviewed By: dreiss
Test Plan: No merge/build issues. Will solicit McGeachie for additions to test/cocoa in the future
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@665254 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/compiler/cpp/src/parse/t_program.h b/compiler/cpp/src/parse/t_program.h
index 8420847..f7516a3 100644
--- a/compiler/cpp/src/parse/t_program.h
+++ b/compiler/cpp/src/parse/t_program.h
@@ -170,6 +170,14 @@
return perl_package_;
}
+ void set_cocoa_prefix(std::string cocoa_prefix) {
+ cocoa_prefix_ = cocoa_prefix;
+ }
+
+ const std::string& get_cocoa_prefix() const {
+ return cocoa_prefix_;
+ }
+
private:
// File path
@@ -219,6 +227,10 @@
// Perl namespace
std::string perl_package_;
+ // Cocoa/Objective-C naming prefix
+ std::string cocoa_prefix_;
+
+
};
#endif