Thrift-1415: delphi: add version Info to the library
authorJake Farrell <jfarrell@apache.org>
Sat, 5 Nov 2011 13:36:27 +0000 (13:36 +0000)
committerJake Farrell <jfarrell@apache.org>
Sat, 5 Nov 2011 13:36:27 +0000 (13:36 +0000)
Client: delphi
Patch: Jens Geyer

Adding versioning to delphi library

git-svn-id: https://svn.apache.org/repos/asf/thrift/trunk@1197957 13f79535-47bb-0310-9956-ffa450edef68

compiler/cpp/src/generate/t_delphi_generator.cc
lib/delphi/src/Thrift.pas
lib/delphi/test/client.dpr
lib/delphi/test/server.dpr

index 148d284..9395457 100644 (file)
@@ -149,7 +149,7 @@ class t_delphi_generator : public t_oop_generator
     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";
index 48c3d47..a1c959d 100644 (file)
@@ -24,6 +24,9 @@ interface
 uses\r
   SysUtils, Thrift.Protocol;\r
 \r
+const\r
+  Version = '0.8.0-dev';\r
+       \r
 type\r
   IProcessor = interface\r
     ['{B1538A07-6CAC-4406-8A4C-AFED07C70A89}']\r
index d0152bf..d14079d 100644 (file)
@@ -44,6 +44,7 @@ var
 \r
 begin\r
   try\r
+    Writeln( 'Delphi TestClient '+Thrift.Version);\r
     nParamCount := ParamCount;\r
     SetLength( args, nParamCount);\r
     for i := 1 to nParamCount do\r
index 768de01..d6a53bc 100644 (file)
@@ -43,6 +43,7 @@ var
 \r
 begin\r
   try\r
+    Writeln( 'Delphi TestServer '+Thrift.Version);\r
     nParamCount := ParamCount;\r
     SetLength( args, nParamCount);\r
     for i := 1 to nParamCount do\r