diff options
| author | Kim van der Riet <kpvdr@apache.org> | 2006-12-18 15:37:14 +0000 |
|---|---|---|
| committer | Kim van der Riet <kpvdr@apache.org> | 2006-12-18 15:37:14 +0000 |
| commit | e2f8da33ed07775b8089873eeba68000cf229b81 (patch) | |
| tree | f71ca86b9c0f6da907743b1d2f4a914ff2dedfb4 /qpid/gentools/src | |
| parent | 1834344d41e4de814e900fee32ec61d4a078f261 (diff) | |
| download | qpid-python-e2f8da33ed07775b8089873eeba68000cf229b81.tar.gz | |
Added additional files AMQP_HighestVersion.h/.cpp to identify the highest available version for client use.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk@488304 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/gentools/src')
| -rw-r--r-- | qpid/gentools/src/org/apache/qpid/gentools/CppGenerator.java | 4 | ||||
| -rw-r--r-- | qpid/gentools/src/org/apache/qpid/gentools/Main.java | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/qpid/gentools/src/org/apache/qpid/gentools/CppGenerator.java b/qpid/gentools/src/org/apache/qpid/gentools/CppGenerator.java index 7aa6b2d21c..c96cb2b08f 100644 --- a/qpid/gentools/src/org/apache/qpid/gentools/CppGenerator.java +++ b/qpid/gentools/src/org/apache/qpid/gentools/CppGenerator.java @@ -348,6 +348,10 @@ public class CppGenerator extends Generator return generateServerOperationsInvoke(thisClass, method, version, 4, 4); if (token.compareTo("${mb_buffer_param}") == 0) return method.fieldMap.size() > 0 ? " buffer" : ""; + if (token.compareTo("${hv_latest_major}") == 0) + return String.valueOf(globalVersionSet.last().getMajor()); + if (token.compareTo("${hv_latest_minor}") == 0) + return String.valueOf(globalVersionSet.last().getMinor()); throw new AmqpTemplateException("Template token " + token + " unknown."); } diff --git a/qpid/gentools/src/org/apache/qpid/gentools/Main.java b/qpid/gentools/src/org/apache/qpid/gentools/Main.java index 28bf7e02c1..4f33ff8bde 100644 --- a/qpid/gentools/src/org/apache/qpid/gentools/Main.java +++ b/qpid/gentools/src/org/apache/qpid/gentools/Main.java @@ -201,7 +201,8 @@ public class Main new File(tmplDir + Utils.fileSeparator + "AMQP_ClientProxy.cpp.tmpl"), new File(tmplDir + Utils.fileSeparator + "AMQP_Constants.h.tmpl"), new File(tmplDir + Utils.fileSeparator + "AMQP_MethodVersionMap.h.tmpl"), - new File(tmplDir + Utils.fileSeparator + "AMQP_MethodVersionMap.cpp.tmpl") + new File(tmplDir + Utils.fileSeparator + "AMQP_MethodVersionMap.cpp.tmpl"), + new File(tmplDir + Utils.fileSeparator + "AMQP_HighestVersion.cpp.tmpl") }; methodTemplateFiles = new File[] { |
