#include <sstream>
#include "t_generator.h"
#include "platform.h"
+#include "version.h"
using namespace std;
string t_erl_generator::erl_autogen_comment() {
return
std::string("%%\n") +
- "%% Autogenerated by Thrift\n" +
+ "%% Autogenerated by Thrift Compiler (" + THRIFT_VERSION + ")\n" +
"%%\n" +
"%% DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING\n" +
"%%\n";
#include <algorithm>
#include "t_generator.h"
#include "platform.h"
+#include "version.h"
+
using namespace std;
*/
string t_go_generator::go_autogen_comment() {
return
- "/* Autogenerated by Thrift\n"
+ std::string() +
+ "/* Autogenerated by Thrift Compiler (" + THRIFT_VERSION + ")\n"
" *\n"
" * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING\n"
" */\n";
#include "t_oop_generator.h"
#include "platform.h"
+#include "version.h"
using namespace std;
*/
string t_hs_generator::hs_autogen_comment() {
return string("-----------------------------------------------------------------\n") +
- "-- Autogenerated by Thrift --\n" +
+ "-- Autogenerated by Thrift Compiler (" + THRIFT_VERSION + ") --\n" +
"-- --\n" +
"-- DO NOT EDIT UNLESS YOU ARE SURE YOU KNOW WHAT YOU ARE DOING --\n" +
"-----------------------------------------------------------------\n";
#include <sys/stat.h>
#include <sstream>
#include "platform.h"
+#include "version.h"
+
using namespace std;
std::string autogen_comment() {
return
std::string("//\n") +
- "// Autogenerated by Thrift\n" +
+ "// Autogenerated by Thrift Compiler (" + THRIFT_VERSION + ")\n" +
"//\n" +
"// DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING\n" +
"//\n";
#include <sstream>
#include "t_oop_generator.h"
#include "platform.h"
+#include "version.h"
+
using namespace std;
string t_ocaml_generator::ocaml_autogen_comment() {
return
std::string("(*\n") +
- " Autogenerated by Thrift\n" +
+ " Autogenerated by Thrift Compiler (" + THRIFT_VERSION + ")\n" +
"\n" +
" DO NOT EDIT UNLESS YOU ARE SURE YOU KNOW WHAT YOU ARE DOING\n" +
"*)\n";
#include "globals.h"
#include "t_generator.h"
+#include "version.h"
#include <algorithm>
virtual std::string autogen_comment() {
return
std::string("/**\n") +
- " * Autogenerated by Thrift\n" +
+ " * Autogenerated by Thrift Compiler (" + THRIFT_VERSION + ")\n" +
" *\n" +
" * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING\n" +
" */\n";
#include <sstream>
#include "t_oop_generator.h"
#include "platform.h"
+#include "version.h"
+
using namespace std;
std::string autogen_comment() {
return
std::string("#\n") +
- "# Autogenerated by Thrift\n" +
+ "# Autogenerated by Thrift Compiler (" + THRIFT_VERSION + ")\n" +
"#\n" +
"# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING\n" +
"#\n";
#include <algorithm>
#include "t_generator.h"
#include "platform.h"
+#include "version.h"
+
using namespace std;
string t_py_generator::py_autogen_comment() {
return
std::string("#\n") +
- "# Autogenerated by Thrift\n" +
+ "# Autogenerated by Thrift Compiler (" + THRIFT_VERSION + ")\n" +
"#\n" +
"# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING\n" +
"#\n";
#include "t_oop_generator.h"
#include "platform.h"
+#include "version.h"
+
using namespace std;
string t_rb_generator::rb_autogen_comment() {
return
std::string("#\n") +
- "# Autogenerated by Thrift\n" +
+ "# Autogenerated by Thrift Compiler (" + THRIFT_VERSION + ")\n" +
"#\n" +
"# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING\n" +
"#\n";
#include "platform.h"
#include "t_oop_generator.h"
+#include "version.h"
+
using namespace std;
string t_st_generator::st_autogen_comment() {
return
std::string("'") +
- "Autogenerated by Thrift\n" +
+ "Autogenerated by Thrift Compiler (" + THRIFT_VERSION + ")\n" +
"\n" +
"DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING\n" +
"'!\n";